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.
|
|
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections;
namespace ICSSoft.Frame.DataConnect { #region DataCollect
public interface IInternalSystemVariable { string Group { get; }
ArrayList Items { get; } }
public class ActionType : IInternalSystemVariable { private ArrayList _list = new ArrayList();
//根据action获取对应的模块
public static string GetOperationResultModule(string Action) { string returnStr = Action; if (Action == ActionType.DataCollectAction_CollectKeyParts || Action == ActionType.DataCollectAction_CollectINNO) { returnStr = "ComponentLoading"; } else if (Action == ActionType.DataCollectAction_GOOD || Action == ActionType.DataCollectAction_NG || Action == ActionType.DataCollectAction_SMTGOOD || Action == ActionType.DataCollectAction_SMTNG || Action == ActionType.DataCollectAction_OutLineGood || Action == ActionType.DataCollectAction_OutLineNG) { returnStr = "Testing"; } else if (Action == ActionType.DataCollectAction_IDTran || Action == ActionType.DataCollectAction_Split) { returnStr = "IDTranslation"; } else if (Action == ActionType.DataCollectAction_Carton || Action == ActionType.DataCollectAction_Pallet || Action == ActionType.DataCollectAction_OQCLotAddID /* || Action == ActionType.DataCollectAction_OQCLotRemoveID*/ || Action == ActionType.DataCollectAction_LOT) { returnStr = "Packing"; } else if (Action == ActionType.DataCollectAction_OQCLotRemoveID) { returnStr = "UnPacking"; } else if (Action == ActionType.DataCollectAction_OQCGood || Action == ActionType.DataCollectAction_OQCNG || Action == ActionType.DataCollectAction_OQCPass || Action == ActionType.DataCollectAction_OQCReject) { returnStr = "OQC"; } else if (Action == ActionType.DataCollectAction_TSConfirm || Action == ActionType.DataCollectAction_TSComplete) { returnStr = "TS"; } else if (Action == ActionType.DataCollectAction_Reject) { returnStr = "Reject"; } else if (Action == ActionType.DataCollectAction_GoMO) { returnStr = "GoMO"; } else if (Action == ActionType.DataCollectAction_ECN) { returnStr = "ECN"; } else if (Action == ActionType.DataCollectAction_SoftINFO) { returnStr = "SoftINFO"; } else if (Action == ActionType.DataCollectAction_TRY) { returnStr = "TRY"; } else if (Action == ActionType.DataCollectAction_TryNew) { returnStr = "TryNew"; } else if (Action == ActionType.DataCollectAction_OffMo) { returnStr = "OffMo"; } else if (Action == ActionType.DataCollectAction_DropMaterial) { returnStr = "DropMaterial"; } else if (Action == ActionType.DataCollectAction_BurnIn) { returnStr = "BurnIn"; } else if (Action == ActionType.DataCollectAction_BurnOut) { returnStr = "BurnOut"; } else if (Action == ActionType.DataCollectAction_OQCFuncTest) { returnStr = "OQC"; }
else if (Action == ActionType.DataCollectAction_FCTTS) { returnStr = "FCTTS"; } else if (Action == ActionType.DataCollectAction_FCTGOOD) { returnStr = "FCTGOOD"; } else if (Action == ActionType.DataCollectAction_FCT) { returnStr = "FCT"; } else if (Action == ActionType.DataCollectAction_AOI) { returnStr = "AOI"; } else if (Action == ActionType.DataCollectAction_LABELING) { returnStr = "Labeling"; } else if (Action == ActionType.DataCollectAction_ICT) { returnStr = "ICT"; } return returnStr;
}
public ActionType() { this._list.Add(ActionType.DataCollectAction_GOOD); this._list.Add(ActionType.DataCollectAction_NG); this._list.Add(ActionType.DataCollectAction_SMTGOOD); this._list.Add(ActionType.DataCollectAction_SMTNG); this._list.Add(ActionType.DataCollectAction_Split); this._list.Add(ActionType.DataCollectAction_Carton); this._list.Add(ActionType.DataCollectAction_Pallet); this._list.Add(ActionType.DataCollectAction_Reject); this._list.Add(ActionType.DataCollectAction_CollectKeyParts); this._list.Add(ActionType.DataCollectAction_CollectINNO); this._list.Add(ActionType.DataCollectAction_GoMO); this._list.Add(ActionType.DataCollectAction_OutLineGood); this._list.Add(ActionType.DataCollectAction_ECN); this._list.Add(ActionType.DataCollectAction_OutLineNG); this._list.Add(ActionType.DataCollectAction_SoftINFO); this._list.Add(ActionType.DataCollectAction_TRY); this._list.Add(ActionType.DataCollectAction_TryNew); this._list.Add(ActionType.DataCollectAction_OQCLotAddID); this._list.Add(ActionType.DataCollectAction_OQCLotRemoveID); this._list.Add(ActionType.DataCollectAction_OQCGood); this._list.Add(ActionType.DataCollectAction_OQCNG); this._list.Add(ActionType.DataCollectAction_OQCPass); this._list.Add(ActionType.DataCollectAction_OQCReject); this._list.Add(ActionType.DataCollectAction_IDTran); this._list.Add(ActionType.DataCollectAction_TSConfirm); this._list.Add(ActionType.DataCollectAction_TSComplete); this._list.Add(ActionType.DataCollectAction_OffMo); this._list.Add(ActionType.DataCollectAction_DropMaterial); this._list.Add(ActionType.DataCollectAction_BurnIn); this._list.Add(ActionType.DataCollectAction_BurnOut); this._list.Add(ActionType.DataCollectAction_OQCFuncTest); this._list.Add(ActionType.DataCollectAction_OutLineReject); this._list.Add(ActionType.DataCollectAction_CompareAppendix); this._list.Add(ActionType.DataCollectAction_Mix); this._list.Add(ActionType.DataCollectAction_KBatch); this._list.Add(ActionType.DataCollectAction_CompareProductCode); this._list.Add(ActionType.DataCollectAction_CompareTwo); this._list.Add(ActionType.DataCollectAction_AutoNG); this._list.Add(ActionType.DataCollectAction_FGPacking); this._list.Add(ActionType.DataCollectAction_MACALL); this._list.Add(ActionType.DataCollectAction_MACID); this._list.Add(ActionType.DataCollectAction_ONPost); this._list.Add(ActionType.DataCollectAction_OffPost); this._list.Add(ActionType.DataCollectAction_FCTTS); this._list.Add(ActionType.DataCollectAction_FCTGOOD); this._list.Add(ActionType.DataCollectAction_ICT); this._list.Add(ActionType.DataCollectAction_FCT); this._list.Add(ActionType.DataCollectAction_AOI); this._list.Add(ActionType.DataCollectAction_LABELING); }
public const string DataCollectAction_OffMo = "OFFMO"; public const string DataCollectAction_GOOD = "GOOD"; public const string DataCollectAction_NG = "NG"; public const string DataCollectAction_SMTGOOD = "SMTGOOD"; public const string DataCollectAction_SMTNG = "SMTNG"; public const string DataCollectAction_Split = "SPLIT"; public const string DataCollectAction_Carton = "CARTON"; public const string DataCollectAction_Pallet = "PALLECT"; public const string DataCollectAction_Reject = "REJECT"; public const string DataCollectAction_CollectKeyParts = "CKEPARTS"; public const string DataCollectAction_CollectINNO = "CINNO"; public const string DataCollectAction_GoMO = "GOMO"; public const string DataCollectAction_OutLineGood = "OUTLINEGOOD"; public const string DataCollectAction_OutLineNG = "OUTLINENG"; public const string DataCollectAction_ECN = "ECN"; public const string DataCollectAction_SoftINFO = "SOFTINFO"; public const string DataCollectAction_TRY = "TRY"; public const string DataCollectAction_TryNew = "TryNew"; public const string DataCollectAction_LOT = "LOT"; public const string DataCollectAction_OQCLotAddID = "OQCLOTADDID"; public const string DataCollectAction_OQCLotRemoveID = "OQCLOTREMOVEID"; public const string DataCollectAction_OQCGood = "OQCGOOD"; public const string DataCollectAction_OQCNG = "OQCNG"; public const string DataCollectAction_OQCPass = "OQCPASS"; public const string DataCollectAction_OQCReject = "OQCREJECT"; public const string DataCollectAction_IDTran = "IDTRAN"; public const string DataCollectAction_TSConfirm = "TSCONFIRM"; public const string DataCollectAction_TSComplete = "TSCOMPLETE"; public const string DataCollectAction_DropMaterial = "DROPMATERIAL"; public const string DataCollectAction_BurnIn = "BURNIN"; public const string DataCollectAction_BurnOut = "BURNOUT"; public const string DataCollectAction_OQCFuncTest = "OQCFUNCTEST"; public const string DataCollectAction_OutLineReject = "OUTLINEREJECT"; public const string DataCollectAction_CompareAppendix = "COMPAPP"; public const string DataCollectAction_Mix = "MIX"; public const string DataCollectAction_KBatch = "KBATCH"; public const string DataCollectAction_CompareProductCode = "COMPPROCODE"; public const string DataCollectAction_CompareTwo = "COMPTWO"; public const string DataCollectAction_AutoNG = "AUTONG"; public const string DataCollectAction_FGPacking = "FGPACKING"; public const string DataCollectAction_MACID = "MACID"; public const string DataCollectAction_MACALL = "MACALL"; public const string DataCollectAction_ONPost = "ONPOST"; public const string DataCollectAction_OffPost = "OFFPOST"; public const string DataCollectAction_FCTTS = "FCTTS"; public const string DataCollectAction_FCTGOOD = "FCTGOOD"; public const string DataCollectAction_ICT = "ICT"; public const string DataCollectAction_FCT = "FCT"; public const string DataCollectAction_AOI = "AOI"; public const string DataCollectAction_LABELING = "LABELING";
#region IInternalSystemVariable 成员
public string Group { get { return "ActionType"; } }
public ArrayList Items { get { return this._list; } }
#endregion
}
public class ProductStatus : IInternalSystemVariable { private ArrayList _list = new ArrayList();
public ProductStatus() { this._list.Add(GOOD); this._list.Add(NG); this._list.Add(Reject); this._list.Add(OutLine); this._list.Add(OffLine); this._list.Add(Scrap); this._list.Add(OffMo); }
public const string GOOD = "GOOD"; public const string NG = "NG"; public const string Reject = "REJECT"; public const string OutLine = "OUTLINE"; public const string OffLine = "OFFLINE"; public const string Scrap = "SCRAP"; public const string OffMo = "OFFMO";
#region IInternalSystemVariable 成员
public string Group { get { return "ProductStatus"; } }
public ArrayList Items { get { return this._list; } }
#endregion
} public class MCardType : IInternalSystemVariable { private ArrayList _list = new ArrayList();
public MCardType() { this._list.Add(MCardType_Keyparts); this._list.Add(MCardType_INNO); }
public const string MCardType_Keyparts = "0"; public const string MCardType_INNO = "1";
#region IInternalSystemVariable 成员
public string Group { get { return "MCardType"; } }
public ArrayList Items { get { return this._list; } }
#endregion
} public class TransactionStatus : IInternalSystemVariable { private ArrayList _list = new ArrayList();
public TransactionStatus() { this._list.Add(TransactionStatus_NO); this._list.Add(TransactionStatus_YES); }
public const string TransactionStatus_NO = "否"; public const string TransactionStatus_YES = "是";
#region IInternalSystemVariable 成员
public string Group { get { return "TransactionStatus"; } }
public ArrayList Items { get { return this._list; } }
#endregion
} public class ProductComplete : IInternalSystemVariable { private ArrayList _list = new ArrayList();
public ProductComplete() { this._list.Add(Complete); this._list.Add(NoComplete); }
public const string Complete = "1"; public const string NoComplete = "0";
#region IInternalSystemVariable 成员
public string Group { get { return "ProductComplete"; } }
public ArrayList Items { get { return this._list; } }
#endregion
}
public enum MaterialType { CollectMaterial = 0, DropMaterial = 1, }
public enum OperationList { ComponentLoading = 0, Testing = 1, IDTranslation = 2, Packing = 3, OQC = 4, TS = 5, OutsideRoute = 6, SMT = 7, SPC = 8, DeductBOMItem = 9, MidistOutput = 10, MidistInput = 11, ComponentDown = 12, BurnIn = 13, BurnOut = 14, }
#region BOMItemControlType
public class BOMItemControlType : IInternalSystemVariable { private ArrayList _list = new ArrayList();
public BOMItemControlType() { this._list.Add(BOMItemControlType.ITEM_CONTROL_LOT); this._list.Add(BOMItemControlType.ITEM_CONTROL_KEYPARTS); this._list.Add(BOMItemControlType.ITEM_CONTROL_NOCONTROL); } public const string ITEM_CONTROL_LOT = "item_control_lot"; public const string ITEM_CONTROL_KEYPARTS = "item_control_keyparts"; public const string ITEM_CONTROL_NOCONTROL = "item_control_nocontrol";
#region IInternalSystemVariable 成员
public string Group { get { return "BOMItemControlType"; } }
public ArrayList Items { get { return this._list; } }
#endregion
}
#endregion
#region OPBOMDetailParseType
public class OPBOMDetailParseType : IInternalSystemVariable { private ArrayList _list = new ArrayList();
public OPBOMDetailParseType() { this._list.Add(OPBOMDetailParseType.PARSE_BARCODE); this._list.Add(OPBOMDetailParseType.PARSE_PREPARE); this._list.Add(OPBOMDetailParseType.PARSE_PRODUCT); } public const string PARSE_BARCODE = "parse_barcode"; public const string PARSE_PREPARE = "parse_prepare"; public const string PARSE_PRODUCT = "parse_product";
#region IInternalSystemVariable 成员
public string Group { get { return "OPBOMDetailParseType"; } }
public ArrayList Items { get { return this._list; } }
#endregion
}
#endregion
#region OPBOMDetailCheckType
public class OPBOMDetailCheckType : IInternalSystemVariable { private ArrayList _list = new ArrayList();
public OPBOMDetailCheckType() { this._list.Add(OPBOMDetailCheckType.CHECK_LINKBARCODE); this._list.Add(OPBOMDetailCheckType.CHECK_COMPAREITEM); } public const string CHECK_LINKBARCODE = "check_linkbarcode"; public const string CHECK_COMPAREITEM = "check_compareitem";
#region IInternalSystemVariable 成员
public string Group { get { return "OPBOMDetailCheckType"; } }
public ArrayList Items { get { return this._list; } }
#endregion
}
#endregion
#region MOType
public class MOType : IInternalSystemVariable { private ArrayList _list = new ArrayList(); public const string GroupType = "MOTYPE";
public MOType() { this._list.Add(MOType.MOTYPE_NORMALMOTYPE); this._list.Add(MOType.MOTYPE_REWORKMOTYPE); this._list.Add(MOType.MOTYPE_MONTHREWORKMOTYPE); this._list.Add(MOType.MOTYPE_RMAREWORKMOTYPE); } public static readonly string MOTYPE_NORMALMOTYPE = "motype_normalmotype"; //正常
public static readonly string MOTYPE_REWORKMOTYPE = "motype_reworkmotype"; //返工
public static readonly string MOTYPE_MONTHREWORKMOTYPE = "motype_monthreworkmotype"; //每月大返工 ( 处理方式与返工不同 )
public static readonly string MOTYPE_RMAREWORKMOTYPE = "motype_rmareworkmotype"; //RMA返工 ( 处理方式与返工不同 )
#region IInternalSystemVariable 成员
public string Group { get { return "MOType"; } }
public ArrayList Items { get { return this._list; } }
#endregion
}
#endregion
#region INVERPType
public class INVERPType : IInternalSystemVariable { private ArrayList _list = new ArrayList(); public const string GroupType = "INVERPType";
public INVERPType() { this._list.Add(INVERPType.INVERPTYPE_PROCESSED); this._list.Add(INVERPType.INVERPTYPE_NEW); } public static readonly string INVERPTYPE_PROCESSED = "inverptype_processed"; //已经抛转
public static readonly string INVERPTYPE_NEW = "inverptype_new"; //尚未抛转
#region IInternalSystemVariable 成员
public string Group { get { return "INVERPType"; } }
public ArrayList Items { get { return this._list; } }
#endregion
}
#endregion
#region ItemControlType
public class ItemControlType : IInternalSystemVariable { private ArrayList _list = new ArrayList();
public ItemControlType() { this._list.Add(ItemControlType.ITEMCONTROLTYPE_LOT); this._list.Add(ItemControlType.ITEMCONTROLTYPE_PICS); } public const string ITEMCONTROLTYPE_LOT = "itemcontroltype_lot"; public const string ITEMCONTROLTYPE_PICS = "itemcontroltype_pics";
#region IInternalSystemVariable 成员
public string Group { get { return "ItemControlType"; } }
public ArrayList Items { get { return this._list; } }
#endregion
}
#endregion
#region ItemType
public class ItemType : IInternalSystemVariable { private ArrayList _list = new ArrayList(); public ItemType() { this._list.Add(ItemType.ITEMTYPE_FINISHEDPRODUCT); this._list.Add(ItemType.ITEMTYPE_SEMIMANUFACTURE); this._list.Add(ItemType.ITEMTYPE_RAWMATERIAL); } public const string ITEMTYPE_FINISHEDPRODUCT = "itemtype_finishedproduct"; //成品
public const string ITEMTYPE_SEMIMANUFACTURE = "itemtype_semimanufacture"; //半成品
public const string ITEMTYPE_RAWMATERIAL = "itemtype_rawmaterial"; //原物料
#region IInternalSystemVariable 成员
public string Group { get { return "ItemType"; } }
public ArrayList Items { get { return this._list; } }
#endregion
}
#endregion
#region SerialStatus
public class SerialStatus : IInternalSystemVariable { private ArrayList _list = new ArrayList();
public SerialStatus() { this._list.Add(SerialStatus.SerialStatus_Storage); this._list.Add(SerialStatus.SerialStatus_Unstorage); this._list.Add(SerialStatus.SerialStatus_Used); } public const string SerialStatus_Storage = "STORAGE";//在库
public const string SerialStatus_Unstorage = "UNSTORAGE";//不在库
public const string SerialStatus_Used = "USED";//已使用
#region IInternalSystemVariable 成员
public string Group { get { return "SerialStatus"; } }
public ArrayList Items { get { return this._list; } }
#endregion
} #endregion
/// <summary>
/// 盘点状态
/// </summary>
public enum CycleStatus { /// <summary>
/// 产线暂停
/// </summary>
Hold = -1, /// <summary>
/// 正常采集
/// </summary>
Pass = 0 }
#endregion
#region TSStatus 维修状态
public class TSStatus : IInternalSystemVariable { private ArrayList _list = new ArrayList();
public TSStatus() { this._list.Add(TSStatus_New); this._list.Add(TSStatus_Confirm); this._list.Add(TSStatus_TS); this._list.Add(TSStatus_Split); this._list.Add(TSStatus_Scrap); this._list.Add(TSStatus_Complete); this._list.Add(TSStatus_Reflow); this._list.Add(TSStatus_OffMo); this._list.Add(TSStatus_RepeatNG); } public const string TSStatus_New = "tsstatus_new"; //送修
public const string TSStatus_Confirm = "tsstatus_confirm"; //待修
public const string TSStatus_TS = "tsstatus_ts"; //维修中
public const string TSStatus_Split = "tsstatus_split"; //拆解
public const string TSStatus_Scrap = "tsstatus_scrap"; //报废
public const string TSStatus_Complete = "tsstatus_complete"; //维修完成
public const string TSStatus_Reflow = "tsstatus_reflow"; //回流
public const string TSStatus_OffMo = "tsstatus_offmo"; //脱离工单
public const string TSStatus_RepeatNG = "tsstatus_repeatng"; //不良品重复测试
#region IInternalSystemVariable 成员
public string Group { get { return "TSStatus"; } }
public ArrayList Items { get { return this._list; } }
#endregion
} #endregion
#region CardType
public class CardType : IInternalSystemVariable { private ArrayList _list = new ArrayList();
public CardType() { this._list.Add(CardType_Product); this._list.Add(CardType_Part); } public const string CardType_Product = "cardtype_product"; public const string CardType_Part = "cardtype_part";
#region IInternalSystemVariable 成员
public string Group { get { return "CardType"; } }
public ArrayList Items { get { return this._list; } }
#endregion
} #endregion
#region IDMergeType
public class IDMergeType { private ArrayList _list = new ArrayList(); public IDMergeType() { this._list.Add(IDMERGETYPE_IDMERGE); this._list.Add(IDMERGETYPE_ROUTER); } public const string IDMERGETYPE_IDMERGE = "idmergetype_idmerge"; public const string IDMERGETYPE_ROUTER = "idmergetype_router";
#region IInternalSystemVariable 成员
public string Group { get { return "IDMergeType"; } }
public ArrayList Items { get { return this._list; } }
#endregion
}
#endregion
}
|