private Form CreateFormByCollectType(string collectType) { collectType = collectType.ToUpper(); Form f = null; if (collectType == "ComponentLoading".ToUpper()) { f = new FCollectionMetrial(); } else if (collectType == "BurnIn".ToUpper()) { f = new FBurnIn(); } else if (collectType == "BurnOut".ToUpper()) { f = new FBurnOut(); } else if (collectType == "Packing".ToUpper()) { f = new FGenLotIDMerge(); } else if (collectType == "IDTranslation".ToUpper()) { f = new FCollectionIDMerge(); } else if (collectType == "OQC".ToUpper()) { f = new FCollectionOQC(); } else if (collectType == "Testing".ToUpper()) { f = new FCollectionGDNG(); } return(f); }
private Form CreateFormByOPControl(string opControl) { Form f = null; if (opControl[(int)BenQGuru.eMES.BaseSetting.OperationList.ComponentLoading] == '1') { f = new FCollectionMetrial(); } else if (opControl[(int)BenQGuru.eMES.BaseSetting.OperationList.BurnIn] == '1') { f = new FBurnIn(); } else if (opControl[(int)BenQGuru.eMES.BaseSetting.OperationList.BurnOut] == '1') { f = new FBurnOut(); } else if (opControl[(int)BenQGuru.eMES.BaseSetting.OperationList.Packing] == '1') { f = new FGenLotIDMerge(); } else if (opControl[(int)BenQGuru.eMES.BaseSetting.OperationList.IDTranslation] == '1') { f = new FCollectionIDMerge(); } else if (opControl[(int)BenQGuru.eMES.BaseSetting.OperationList.OQC] == '1') { f = new FCollectionOQC(); } else if (opControl[(int)BenQGuru.eMES.BaseSetting.OperationList.Testing] == '1') { f = new FCollectionGDNG(); } return(f); }
public FAutoTestActionMaterial(FCollectionMetrial form, FAutoTestConfig testConfig) : base(testConfig) { actionForm = form; if (htKeyPartIndex == null || htKeyPartIndex.Count <= 0) // 没有KeyPart设置时,只做集成上料 { actionForm.opsetCollectObject.CheckedIndex = 0; actionForm.edtINNO.Checked = true; actionForm.edtINNO.Value = f.GetAppConfig("INNO"); } else if (f.GetAppConfig("INNO") == "") //没有集成上料,当有KeyPart设置时,做KeyPart上料 { actionForm.opsetCollectObject.CheckedIndex = 1; } else // INNO和KeyPart都有设置 { actionForm.opsetCollectObject.CheckedIndex = 2; actionForm.edtINNO.Checked = true; actionForm.edtINNO.Value = f.GetAppConfig("INNO"); } }