华恒Mes鼎捷代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

951 lines
33 KiB

5 months ago
  1. using System;
  2. using System.Collections;
  3. using ICSSoft.Frame.Data;
  4. namespace ICSSoft.Frame.DataConnect.Action
  5. {
  6. /// <summary>
  7. /// ActionEventArgs ��ժҪ˵����
  8. /// </summary>
  9. ///
  10. [Serializable]
  11. public class ActionEventArgs : System.EventArgs
  12. {
  13. public ActionEventArgs()
  14. {
  15. }
  16. /// <summary>
  17. /// ��ǰ����
  18. /// </summary>
  19. public ICSSoft.Frame.Data.Entity.ICSMO CurrentMO;
  20. /// <summary>
  21. /// ��ǰ����;��
  22. /// </summary>
  23. public ICSSoft.Frame.Data.Entity.ICSITEMROUTE2OP CurrentItemRoute2OP;
  24. public ActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode)
  25. {
  26. this.UserCode = userCode;
  27. this.ResourceCode = resourceCode;
  28. this.RunningCard = runningCard;
  29. this.ActionType = actionType;
  30. }
  31. public ActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfo)
  32. : this(actionType, runningCard, userCode, resourceCode)
  33. {
  34. this.ProductInfo = productInfo;
  35. }
  36. public ActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, object[] param)
  37. : this(actionType, runningCard, userCode, resourceCode)
  38. {
  39. this.Params = param;
  40. }
  41. public ActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfo, object[] param)
  42. : this(actionType, runningCard, userCode, resourceCode)
  43. {
  44. this.Params = param;
  45. this.ProductInfo = productInfo;
  46. }
  47. public ActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string maintainUser)
  48. : this(actionType, runningCard, userCode, resourceCode)
  49. {
  50. this.MaintainUser = maintainUser;
  51. }
  52. public ActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string shelfNO, ProductInfo productInfo)
  53. : this(actionType, runningCard, userCode, resourceCode)
  54. {
  55. this.ProductInfo = productInfo;
  56. this.ShelfNO = shelfNO;
  57. }
  58. public ActionEventArgs(string actionType, object[] ICTobjects)
  59. {
  60. this.ActionType = actionType;
  61. this.ICTobjects = ICTobjects;
  62. }
  63. public string ActionType = string.Empty;
  64. public string RunningCard = string.Empty;
  65. public string UserCode = string.Empty;
  66. public string ResourceCode = string.Empty;
  67. public string CollectType = string.Empty;
  68. public string Passwod = String.Empty;
  69. public object[] UserGroup;
  70. public ProductInfo ProductInfo = null;
  71. public object[] Params = null;
  72. public IList OnWIP = new ArrayList();
  73. public string MaintainUser = string.Empty;
  74. public string ShelfNO = string.Empty;
  75. public bool NeedUpdateReport = true;
  76. public bool IsRMA = false;
  77. public int orgid = 0;
  78. public object[] ICTobjects = null;
  79. /// <summary>
  80. /// �����
  81. /// </summary>
  82. public string DutyDepartment = string.Empty;
  83. /// <summary>
  84. /// ���Ϸ����׶�
  85. /// </summary>
  86. public string TroubleStage = string.Empty;
  87. }
  88. [Serializable]
  89. public class GoToMOActionEventArgs : ActionEventArgs
  90. {
  91. public GoToMOActionEventArgs()
  92. {
  93. }
  94. public GoToMOActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string moCode)
  95. : base(actionType, runningCard, userCode, resourceCode)
  96. {
  97. this.MOCode = moCode.Trim().ToUpper();
  98. }
  99. public GoToMOActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfo, string moCode)
  100. : base(actionType, runningCard, userCode, resourceCode)
  101. {
  102. this.MOCode = moCode.Trim().ToUpper();
  103. this.ProductInfo = productInfo;
  104. }
  105. public string Memo = String.Empty;
  106. public string MOCode = string.Empty;
  107. public bool PassCheck = true;
  108. }
  109. [Serializable]
  110. public class CINNOActionEventArgs : ActionEventArgs
  111. {
  112. public CINNOActionEventArgs()
  113. {
  114. }
  115. public CINNOActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfo, string iNNO
  116. )
  117. : base(actionType, runningCard, userCode, resourceCode)
  118. {
  119. this.INNO = iNNO.ToUpper();
  120. this.ProductInfo = productInfo;
  121. }
  122. public string INNO = string.Empty;
  123. }
  124. [Serializable]
  125. public class CKeypartsActionEventArgs : ActionEventArgs
  126. {
  127. public CKeypartsActionEventArgs()
  128. {
  129. }
  130. public CKeypartsActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfo, OPBomKeyparts keyParts
  131. )
  132. : base(actionType, runningCard, userCode, resourceCode)
  133. {
  134. this.Keyparts = keyParts;
  135. this.ProductInfo = productInfo;
  136. }
  137. public OPBomKeyparts Keyparts = null;
  138. }
  139. [Serializable]
  140. public class OutLineActionEventArgs : ActionEventArgs
  141. {
  142. public OutLineActionEventArgs()
  143. {
  144. }
  145. public OutLineActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfo, string opCode)
  146. : base(actionType, runningCard, userCode, resourceCode)
  147. {
  148. this.OPCode = opCode;
  149. this.ProductInfo = productInfo;
  150. }
  151. public OutLineActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfo, string opCode, object[] errorCodes, string memo)
  152. : base(actionType, runningCard, userCode, resourceCode)
  153. {
  154. this.ErrorCodes = errorCodes;
  155. this.Memo = memo;
  156. this.ProductInfo = productInfo;
  157. this.OPCode = opCode;
  158. }
  159. public string OPCode = string.Empty;
  160. public object[] ErrorCodes = null;
  161. public string Memo = null;
  162. }
  163. [Serializable]
  164. public class SplitIDActionEventArgs : ActionEventArgs
  165. {
  166. public SplitIDActionEventArgs()
  167. {
  168. }
  169. public SplitIDActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, object[] splitedIDs, string idMergeType)
  170. : base(actionType, runningCard, userCode, resourceCode)
  171. {
  172. this.SplitedIDs = splitedIDs;
  173. this.IDMergeType = idMergeType;
  174. }
  175. public SplitIDActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfro, object[] splitedIDs, string idMergeType)
  176. : base(actionType, runningCard, userCode, resourceCode, productInfro)
  177. {
  178. this.SplitedIDs = splitedIDs;
  179. this.IDMergeType = idMergeType;
  180. }
  181. public SplitIDActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfro, object[] splitedIDs, string idMergeType, bool isSameMO, int existIMEISeq, bool updateSimulation)
  182. : base(actionType, runningCard, userCode, resourceCode, productInfro)
  183. {
  184. this.SplitedIDs = splitedIDs;
  185. this.IDMergeType = idMergeType;
  186. this.IsSameMO = isSameMO;
  187. this.ExistIMEISeq = existIMEISeq;
  188. this.UpdateSimulation = updateSimulation;
  189. }
  190. public object[] SplitedIDs = null;
  191. public string IDMergeType = string.Empty;
  192. public bool IsSameMO = false;
  193. public int ExistIMEISeq = 0;
  194. public bool UpdateSimulation = false;
  195. public bool IsUndo = false;//�Ƿ�����Undo
  196. }
  197. [Serializable]
  198. public class BurnInActionEventArgs : ActionEventArgs
  199. {
  200. public BurnInActionEventArgs()
  201. {
  202. }
  203. }
  204. [Serializable]
  205. public class PackActionEventArgs : ActionEventArgs
  206. {
  207. public PackActionEventArgs()
  208. {
  209. }
  210. public PackActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, object[] idDatas)
  211. : base(actionType, runningCard, userCode, resourceCode)
  212. {
  213. this.IDDatas = idDatas;
  214. }
  215. public object[] IDDatas = null;
  216. }
  217. [Serializable]
  218. public class OQCFuncTestActionEventArgs : ActionEventArgs
  219. {
  220. public OQCFuncTestActionEventArgs()
  221. {
  222. }
  223. public decimal minDutyRatoValue = 0;
  224. public decimal burstMdFreValue = 0;
  225. public Hashtable listTestValueFre = null;
  226. public Hashtable listTestValueEle = null;
  227. public bool Result = true;
  228. }
  229. [Serializable]
  230. public class TSActionEventArgs : OutLineActionEventArgs
  231. {
  232. public TSActionEventArgs()
  233. {
  234. }
  235. public TSActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfo, object[] errorCodes, object[] errorLocations, string memo)
  236. {
  237. this.UserCode = userCode;
  238. this.ResourceCode = resourceCode;
  239. this.RunningCard = runningCard;
  240. this.ActionType = actionType;
  241. this.ErrorCodes = errorCodes;
  242. this.ErrorLocations = errorLocations;
  243. this.Memo = memo;
  244. this.ProductInfo = productInfo;
  245. }
  246. public TSActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, object[] errorCodes, object[] errorLocations, string memo)
  247. {
  248. this.UserCode = userCode;
  249. this.ResourceCode = resourceCode;
  250. this.RunningCard = runningCard;
  251. this.ActionType = actionType;
  252. this.ErrorCodes = errorCodes;
  253. this.ErrorLocations = errorLocations;
  254. this.Memo = memo;
  255. }
  256. public TSActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfo, object[] errorCodes, object[] errorLocations, string memo, object[] testData)
  257. {
  258. this.UserCode = userCode;
  259. this.ResourceCode = resourceCode;
  260. this.RunningCard = runningCard;
  261. this.ActionType = actionType;
  262. this.ErrorCodes = errorCodes;
  263. this.ErrorLocations = errorLocations;
  264. this.Memo = memo;
  265. this.ProductInfo = productInfo;
  266. this.Params = testData;
  267. }
  268. public TSActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfo, object[] errorInfor, string memo)
  269. {
  270. this.UserCode = userCode;
  271. this.ResourceCode = resourceCode;
  272. this.RunningCard = runningCard;
  273. this.ActionType = actionType;
  274. this.ErrorInfor = errorInfor;
  275. this.Memo = memo;
  276. this.ProductInfo = productInfo;
  277. }
  278. public TSActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string tsStatus, string moCode, string itemCode, string routeCode, string opCode)
  279. {
  280. this.UserCode = userCode;
  281. this.ResourceCode = resourceCode;
  282. this.RunningCard = runningCard;
  283. this.ActionType = actionType;
  284. this.TSStatus = tsStatus;
  285. this.MOCode = moCode;
  286. this.ItemCode = itemCode;
  287. this.OPCode = opCode;
  288. this.RouteCode = routeCode;
  289. }
  290. public TSActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string tsStatus, string moCode,
  291. string itemCode, string routeCode, string opCode, string maintenUser)
  292. {
  293. this.UserCode = userCode;
  294. this.ResourceCode = resourceCode;
  295. this.RunningCard = runningCard;
  296. this.ActionType = actionType;
  297. this.TSStatus = tsStatus;
  298. this.MOCode = moCode;
  299. this.ItemCode = itemCode;
  300. this.OPCode = opCode;
  301. this.RouteCode = routeCode;
  302. this.MaintainUser = maintenUser;
  303. }
  304. ///���Ӵ�¼�ˣ�����ԭ��
  305. public TSActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string tsStatus, string moCode,
  306. string itemCode, string routeCode, string opCode, string maintainUser, string scrapCause)
  307. {
  308. this.UserCode = userCode;
  309. this.ResourceCode = resourceCode;
  310. this.RunningCard = runningCard;
  311. this.ActionType = actionType;
  312. this.TSStatus = tsStatus;
  313. this.MOCode = moCode;
  314. this.ItemCode = itemCode;
  315. this.OPCode = opCode;
  316. this.RouteCode = routeCode;
  317. this.MaintainUser = maintainUser;
  318. this.ScrapCause = scrapCause;
  319. }
  320. // public object[] ErrorCodes = null;
  321. public object[] ErrorInfor = null;
  322. public object[] ErrorLocations = null;
  323. // public string Memo = null;
  324. public string TSStatus = String.Empty;
  325. public string MOCode = String.Empty;
  326. public string ItemCode = String.Empty;
  327. public string RouteCode = String.Empty;
  328. public string MaiternUser = String.Empty;
  329. public string ScrapCause = String.Empty;
  330. //���Լ���Resource�Ƿ���TS�Ĺ�����
  331. public bool IgnoreResourceInOPTS = false;
  332. }
  333. [Serializable]
  334. public class EcnTryActionEventArgs : ActionEventArgs
  335. {
  336. public EcnTryActionEventArgs()
  337. {
  338. }
  339. public EcnTryActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string ecnNo, string tryNo)
  340. : base(actionType, runningCard, userCode, resourceCode)
  341. {
  342. this.ECNNo = ecnNo.Trim().ToUpper();
  343. this.TryNo = tryNo.Trim().ToUpper();
  344. }
  345. public EcnTryActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfo, string ecnNo, string tryNo)
  346. : base(actionType, runningCard, userCode, resourceCode)
  347. {
  348. this.ECNNo = ecnNo.Trim().ToUpper();
  349. this.TryNo = tryNo.Trim().ToUpper();
  350. this.ProductInfo = productInfo;
  351. }
  352. public string ECNNo = string.Empty;
  353. public string TryNo = string.Empty;
  354. }
  355. [Serializable]
  356. public class SoftwareActionEventArgs : ActionEventArgs
  357. {
  358. public SoftwareActionEventArgs()
  359. {
  360. }
  361. public SoftwareActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string softwareVersion, string softwareName)
  362. : base(actionType, runningCard, userCode, resourceCode)
  363. {
  364. this.SoftwareVersion = softwareVersion;
  365. this.SoftwareName = softwareName;
  366. }
  367. public SoftwareActionEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfo, string softwareVersion, string softwareName)
  368. : base(actionType, runningCard, userCode, resourceCode)
  369. {
  370. this.SoftwareVersion = softwareVersion;
  371. this.SoftwareName = softwareName;
  372. this.ProductInfo = productInfo;
  373. }
  374. //public
  375. public string SoftwareVersion = string.Empty;
  376. public string SoftwareName = string.Empty;
  377. }
  378. [Serializable]
  379. public class CartonPackEventArgs : ActionEventArgs
  380. {
  381. public CartonPackEventArgs()
  382. {
  383. }
  384. public CartonPackEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string cartonMemo, string cartonNo, ProductInfo productInfo)
  385. : base(actionType, runningCard, userCode, resourceCode)
  386. {
  387. this.ProductInfo = productInfo;
  388. this.CartonMemo = cartonMemo;
  389. this.CartonNo = cartonNo;
  390. }
  391. public string CartonMemo = string.Empty;
  392. public string CartonNo = String.Empty;
  393. }
  394. #region this is for packing produce OQCLot
  395. [Serializable]
  396. public class OQCLotAddIDEventArgs : ActionEventArgs
  397. {
  398. public OQCLotAddIDEventArgs()
  399. {
  400. }
  401. public OQCLotAddIDEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string oqcLotNO, string oqcLotNOType, decimal oqcLotMaxSize, bool isRemixMO)
  402. : base(actionType, runningCard, userCode, resourceCode)
  403. {
  404. this.OQCLotNO = oqcLotNO;
  405. this.OQCLotNOType = oqcLotNOType;
  406. this.OQCLotMaxSize = oqcLotMaxSize;
  407. this.IsRemixMO = isRemixMO;
  408. }
  409. public OQCLotAddIDEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string oqcLotNO, string oqcLotNOType, bool checkOQCLotMaxSize, decimal oqcLotMaxSize, bool isRemixMO, ProductInfo productInfo)
  410. : base(actionType, runningCard, userCode, resourceCode)
  411. {
  412. this.OQCLotNO = oqcLotNO;
  413. this.OQCLotNOType = oqcLotNOType;
  414. this.IsCheckOQCLotMaxSize = checkOQCLotMaxSize;
  415. this.OQCLotMaxSize = oqcLotMaxSize;
  416. this.IsRemixMO = isRemixMO;
  417. this.ProductInfo = productInfo;
  418. }
  419. //Carton Memo
  420. public string CartonMemo = string.Empty;
  421. //Support Carton Number
  422. public string CartonNo = String.Empty;
  423. public string OQCLotNO = string.Empty;
  424. public decimal OQCLotMaxSize = -1;
  425. public bool IsRemixMO = false;
  426. public bool IsCheckOQCLotMaxSize = false;
  427. public string OQCLotNOType = string.Empty;
  428. }
  429. [Serializable]
  430. public class OQCLotRemoveIDEventArgs : ActionEventArgs
  431. {
  432. public OQCLotRemoveIDEventArgs()
  433. {
  434. }
  435. public OQCLotRemoveIDEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string oqcLotNO, ProductInfo productInfo)
  436. : base(actionType, runningCard, userCode, resourceCode)
  437. {
  438. this.OQCLotNO = oqcLotNO;
  439. this.ProductInfo = productInfo;
  440. }
  441. public string OQCLotNO = string.Empty;
  442. }
  443. [Serializable]
  444. public class OQCGoodEventArgs : ActionEventArgs
  445. {
  446. public OQCGoodEventArgs()
  447. {
  448. }
  449. public OQCGoodEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string oqcLotNO, object[] objsCheckItems, object[] objsCheckGroups, ProductInfo productInfo)
  450. : base(actionType, runningCard, userCode, resourceCode)
  451. {
  452. this.OQCLotNO = oqcLotNO;
  453. this.ProductInfo = productInfo;
  454. this.OQCLOTCardCheckLists = objsCheckItems;
  455. this.OQCLot2CheckGroupList = objsCheckGroups;
  456. }
  457. public OQCGoodEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string oqcLotNO, object[] objsCheckItems, object[] objsCheckGroups, ProductInfo productInfo, object[] testDatas)
  458. : base(actionType, runningCard, userCode, resourceCode)
  459. {
  460. this.OQCLotNO = oqcLotNO;
  461. this.ProductInfo = productInfo;
  462. this.OQCLOTCardCheckLists = objsCheckItems;
  463. this.OQCLot2CheckGroupList = objsCheckGroups;
  464. this.Params = testDatas;
  465. }
  466. public string IsDataLink = "1"; //��ʶ�����Dz��Ǵ�������������
  467. public string Memo = String.Empty;
  468. public string OQCLotNO = string.Empty;
  469. public object[] OQCLOTCardCheckLists = null;
  470. //Add CheckGroup
  471. public object[] OQCLot2CheckGroupList = null;
  472. //End Added
  473. public decimal CheckSequence = 1;
  474. }
  475. [Serializable]
  476. public class OQCNGEventArgs : ActionEventArgs
  477. {
  478. public OQCNGEventArgs()
  479. {
  480. }
  481. public OQCNGEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string oqcLotNO, object[] objsCheckItems, object[] objsCheckGroups, object[] objsErrorCodeInformations, ProductInfo productInfo)
  482. : base(actionType, runningCard, userCode, resourceCode)
  483. {
  484. this.OQCLotNO = oqcLotNO;
  485. this.ProductInfo = productInfo;
  486. this.OQCLOTCardCheckLists = objsCheckItems;
  487. this.ErrorCodeInformations = objsErrorCodeInformations;
  488. this.OQCLot2CheckGroupList = objsCheckGroups;
  489. }
  490. public OQCNGEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string oqcLotNO, object[] objsCheckItems, object[] objsCheckGroups, object[] objsErrorCodeInformations, ProductInfo productInfo, object[] testDatas)
  491. : base(actionType, runningCard, userCode, resourceCode)
  492. {
  493. this.OQCLotNO = oqcLotNO;
  494. this.ProductInfo = productInfo;
  495. this.OQCLOTCardCheckLists = objsCheckItems;
  496. this.ErrorCodeInformations = objsErrorCodeInformations;
  497. this.OQCLot2CheckGroupList = objsCheckGroups;
  498. this.Params = testDatas;
  499. }
  500. public string IsDataLink = "1"; //��ʶ�����Dz��Ǵ�������������
  501. public string OQCLotNO = string.Empty;
  502. public object[] OQCLOTCardCheckLists = null;
  503. public object[] ErrorCodeInformations = null;
  504. public string Memo = String.Empty;
  505. //Add CheckGroup
  506. public object[] OQCLot2CheckGroupList = null;
  507. //End Added
  508. public decimal CheckSequence = 1;
  509. public string rightResource = string.Empty;
  510. }
  511. [Serializable]
  512. public class OQCPASSEventArgs : ActionEventArgs
  513. {
  514. public OQCPASSEventArgs()
  515. {
  516. }
  517. //���е�RCARD
  518. public object[] CardOfLot = null;
  519. //���еı��ϻ�����RCARD
  520. public ArrayList CardOfLotForDelete = new ArrayList();
  521. //��������MO�б�
  522. public Hashtable listActionCheckStatus = new Hashtable();
  523. //��
  524. public object Lot;
  525. //��������
  526. public bool isLastOp;
  527. public OQCPASSEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string oqcLotNO, ProductInfo productInfo)
  528. : base(actionType, runningCard, userCode, resourceCode)
  529. {
  530. this.OQCLotNO = oqcLotNO;
  531. this.ProductInfo = productInfo;
  532. }
  533. public string OQCLotNO = string.Empty;
  534. public bool IsForcePass = false;
  535. public string Memo = string.Empty;
  536. public bool IsUnFrozen = false;
  537. public string UnFrozenReason = string.Empty;
  538. }
  539. [Serializable]
  540. public class OQCRejectEventArgs : ActionEventArgs
  541. {
  542. public OQCRejectEventArgs()
  543. {
  544. }
  545. //��������MO�б�
  546. public Hashtable listActionCheckStatus = new Hashtable();
  547. //MoCode
  548. public string MOCODE;
  549. //���е�RCARD
  550. public object[] CardOfLot = null;
  551. //��
  552. public object Lot;
  553. //��������
  554. public bool isLastOp;
  555. public OQCRejectEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string oqcLotNO, ProductInfo productInfo)
  556. : base(actionType, runningCard, userCode, resourceCode)
  557. {
  558. this.OQCLotNO = oqcLotNO;
  559. this.ProductInfo = productInfo;
  560. }
  561. public string OQCLotNO = string.Empty;
  562. public bool IsForceReject = false;
  563. public bool IsAutoGenerateReworkSheet = false;
  564. public bool IsCreateNewLot = false;
  565. public string Memo = string.Empty;
  566. public bool IsUnFrozen = false;
  567. public string UnFrozenReason = string.Empty;
  568. public string rightResource = string.Empty;
  569. }
  570. //���빤��
  571. [Serializable]
  572. public class OffMoEventArgs : ActionEventArgs
  573. {
  574. public string MOCode = string.Empty;
  575. public bool PassCheck = true;
  576. public string MOType = String.Empty;
  577. public OffMoEventArgs(string actionType, string runningCard, string userCode, string resourceCode, string moCode)
  578. : base(actionType, runningCard, userCode, resourceCode)
  579. {
  580. this.MOCode = moCode.Trim().ToUpper();
  581. }
  582. public OffMoEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfo, string moCode)
  583. : base(actionType, runningCard, userCode, resourceCode)
  584. {
  585. this.MOCode = moCode.Trim().ToUpper();
  586. this.ProductInfo = productInfo;
  587. }
  588. }
  589. //����
  590. [Serializable]
  591. public class DropMaterialEventArgs : ActionEventArgs
  592. {
  593. public bool PassCheck = true;
  594. public object[] OnwipItems = null;
  595. public DropMaterialEventArgs(string actionType, string runningCard, string userCode, string resourceCode)
  596. : base(actionType, runningCard, userCode, resourceCode)
  597. {
  598. }
  599. public DropMaterialEventArgs(string actionType, string runningCard, string userCode, string resourceCode, ProductInfo productInfo)
  600. : base(actionType, runningCard, userCode, resourceCode)
  601. {
  602. this.ProductInfo = productInfo;
  603. }
  604. }
  605. //���������IJ���
  606. [Serializable]
  607. public class TryEventArgs : ActionEventArgs
  608. {
  609. public string OPCode = string.Empty;
  610. public string MRunningCard = string.Empty;
  611. public string MItemCode = string.Empty;
  612. public string ItemCode = string.Empty;
  613. public string TryCode = string.Empty;
  614. public bool ForCollect = true;
  615. public bool ForLinkLot = false;
  616. public TryEventArgs(string actionType, string userCode, string opCode, string resourceCode,
  617. string itemCode, string runningCard, string mItemCode, string mRunningCard, string tryCode, bool forCollect, bool forLinkLot)
  618. : base(actionType, runningCard, userCode, resourceCode)
  619. {
  620. this.OPCode = opCode;
  621. this.MRunningCard = mRunningCard;
  622. this.MItemCode = mItemCode;
  623. this.ItemCode = itemCode;
  624. this.TryCode = tryCode;
  625. this.ForCollect = forCollect;
  626. this.ForLinkLot = forLinkLot;
  627. }
  628. }
  629. #endregion
  630. /// <summary>
  631. /// ��Ʒ��Ϣ
  632. /// </summary>
  633. ///
  634. [Serializable]
  635. public class ProductInfo
  636. {
  637. public DateTime WorkDateTime;
  638. //public Domain.TS.TS LastTS;
  639. public string ECG2ErrCodes;
  640. public ExtendSimulation LastSimulation;
  641. public ICSSoft.Frame.Data.Entity.ICSSimulation NowSimulation;
  642. public ICSSoft.Frame.Data.Entity.ICSSimulationReport NowSimulationReport;
  643. public ICSSoft.Frame.Data.Entity.ICSRES Resource;
  644. public ICSSoft.Frame.Data.Entity.ICSTP TimePeriod;
  645. // Added end
  646. /// <summary>
  647. /// ��ǰ����;��
  648. /// </summary>
  649. public ICSSoft.Frame.Data.Entity.ICSITEMROUTE2OP CurrentItemRoute2OP;
  650. /// <summary>
  651. /// ��ǰ����
  652. /// </summary>
  653. public ICSSoft.Frame.Data.Entity.ICSMO CurrentMO;
  654. public ProductInfo()
  655. {
  656. //
  657. // TODO: �ڴ˴����ӹ��캯���߼�
  658. //
  659. }
  660. public override string ToString()
  661. {
  662. string s = "";
  663. if (LastSimulation != null)
  664. {
  665. s = LastSimulation.ToString();
  666. }
  667. s = string.Format("{0}&", s);
  668. if (NowSimulation != null)
  669. {
  670. s = string.Format("{0}{1}", s, NowSimulation.ToString());
  671. }
  672. return s;
  673. }
  674. }
  675. [Serializable]
  676. public class ExtendSimulation : ICSSoft.Frame.Data.Entity.ICSSimulation
  677. {
  678. public ExtendSimulation(ICSSoft.Frame.Data.Entity.ICSSimulation simulation)
  679. {
  680. if (simulation == null)
  681. {
  682. return;
  683. }
  684. this.ACTIONLIST = simulation.ACTIONLIST;
  685. this.CARTONCODE = simulation.CARTONCODE;
  686. this.EATTRIBUTE1 = simulation.EATTRIBUTE1;
  687. this.EATTRIBUTE2 = simulation.EATTRIBUTE2;
  688. this.FROMOP = simulation.FROMOP;
  689. this.FROMROUTE = simulation.FROMROUTE;
  690. this.IDMERGERULE = simulation.IDMERGERULE;
  691. this.ISCOM = simulation.ISCOM;
  692. this.ITEMCODE = simulation.ITEMCODE;
  693. this.LACTION = simulation.LACTION;
  694. this.LOTNO = simulation.LOTNO;
  695. this.MTIME = simulation.MTIME;
  696. this.MUSER = simulation.MUSER;
  697. this.MOCODE = simulation.MOCODE;
  698. this.MODELCODE = simulation.MODELCODE;
  699. this.NGTIMES = simulation.NGTIMES;
  700. this.OPCODE = simulation.OPCODE;
  701. this.PALLETCODE = simulation.PALLETCODE;
  702. this.PRODUCTSTATUS = simulation.PRODUCTSTATUS;
  703. this.RESCODE = simulation.RESCODE;
  704. this.ROUTECODE = simulation.ROUTECODE;
  705. this.RCARD = simulation.RCARD;
  706. this.RCARDSEQ = simulation.RCARDSEQ;
  707. this.SCARD = simulation.SCARD;
  708. this.SCARDSEQ = simulation.SCARDSEQ;
  709. this.TCARD = simulation.TCARD;
  710. this.TCARDSEQ = simulation.TCARDSEQ;
  711. this.IsHold = simulation.ISHOLD;
  712. this.MOSEQ = simulation.MOSEQ;
  713. }
  714. public string NextOPCode = string.Empty;
  715. public string NextRouteCode = string.Empty;
  716. public string AdjustProductStatus = string.Empty;
  717. public string NextAction = string.Empty;
  718. public string NextActionList = string.Empty;
  719. public string IsHold = string.Empty;//Web.Helper.CycleStatus.Pass;
  720. }
  721. ///
  722. /// <summary>
  723. /// ��ʶAction�����ж�Check����ִ������
  724. /// ��Actionִ��ʱ���ȼ�����Ӧ״̬�Ƿ���ִ�й���������ִ�й����������ٴ�Check
  725. /// </summary>
  726. ///
  727. [Serializable]
  728. public class ActionCheckStatus
  729. {
  730. /// <summary>
  731. /// �Ƿ�����CheckMO���� (����MO״̬)
  732. /// </summary>
  733. public bool CheckedMO = false;
  734. /// <summary>
  735. /// �Ƿ�����CheckOP���� (����;�̡�OP)
  736. /// </summary>
  737. public bool CheckedOP = false;
  738. /// <summary>
  739. /// �Ƿ�����CheckID����
  740. /// </summary>
  741. public bool CheckedID = false;
  742. /// <summary>
  743. /// �Ƿ�������NextOP������CheckOnlineOP������
  744. /// </summary>
  745. public bool CheckedNextOP = false;
  746. /// <summary>
  747. /// �ڼ���NextOPʱ��ԭ����NextOPCode������CheckOnlineOP������
  748. /// </summary>
  749. public string CheckedNextOPCode = string.Empty;
  750. /// <summary>
  751. /// �ڼ���NextOPʱ��ԭ����NextRouteCode������CheckOnlineOP������
  752. /// </summary>
  753. public string CheckedNextRouteCode = string.Empty;
  754. /// <summary>
  755. /// �Ƿ���Ҫ����Simulation
  756. /// </summary>
  757. public bool NeedUpdateSimulation = true;
  758. /// <summary>
  759. /// �Ƿ���Ҫд����
  760. /// </summary>
  761. public bool NeedFillReport = true;
  762. /// <summary>
  763. /// ����ִ�й���Action�б�
  764. /// </summary>
  765. public IList ActionList = new ArrayList();
  766. /// <summary>
  767. /// MO
  768. /// </summary>
  769. public ICSSoft.Frame.Data.Entity.ICSMO MO = null;
  770. /// <summary>
  771. /// MOType��Parameterֵ
  772. /// </summary>
  773. public string MOTypeParamValue = string.Empty;
  774. /// <summary>
  775. /// Route
  776. /// </summary>
  777. public ICSSoft.Frame.Data.Entity.ICSMO2ROUTE Route = null;
  778. /// <summary>
  779. /// OP
  780. /// </summary>
  781. public ICSSoft.Frame.Data.Entity.ICSITEMROUTE2OP OP = null;
  782. /// <summary>
  783. /// Model
  784. /// </summary>
  785. public ICSSoft.Frame.Data.Entity.ICSMODEL Model = null;
  786. /// <summary>
  787. /// ProductInfo
  788. /// </summary>
  789. public ProductInfo ProductInfo = null;
  790. /// <summary>
  791. /// �Ƿ�������һ��������N��ʾ����Y��ʾyes��string.Empty��ʾδ��ֵ
  792. /// </summary>
  793. public string IsLastOP = string.Empty;
  794. /// <summary>
  795. /// �Ƿ����м乤��, "No"��ʾ����"Yes"��ʾ�ǣ�""��ʾδ����
  796. /// </summary>
  797. public string IsMidOutputOP = string.Empty;
  798. /// <summary>
  799. /// �Ƿ����м�Ͷ�빤��, "No"��ʾ����"Yes"��ʾ�ǣ�""��ʾδ����
  800. /// </summary>
  801. public string IsMidInputOP = string.Empty;
  802. /// <summary>
  803. /// �Ƿ�ִ�й�updateItem2Route
  804. /// </summary>
  805. public bool IsUpdateRefItem2Route = false;
  806. /// <summary>
  807. /// OP BOM����
  808. /// </summary>
  809. public string opBOMType = string.Empty;
  810. /// <summary>
  811. /// Keypart����
  812. /// </summary>
  813. public int keypartTimes = 0;
  814. /// <summary>
  815. /// ������������
  816. /// </summary>
  817. public int innoTimes = 0;
  818. /// <summary>
  819. /// �����
  820. /// </summary>
  821. public string DutyDepartment = string.Empty;
  822. /// <summary>
  823. /// ���Ϸ����׶�
  824. /// </summary>
  825. public string TroubleStage = string.Empty;
  826. }
  827. // Added end
  828. }