private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { case "DOC_MO": if (this.pofrmGetDoc == null) { this.pofrmGetDoc = new DialogForms.dlgGetDocMO(); this.pofrmGetDoc.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetDoc.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); this.pofrmGetDoc.FIlterStep = " and MFWORDERHD.CMSTEP <> 'P' and MFWORDERHD.CSTAT <> 'C' "; } break; } }
private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { case "BRANCH": if (this.pofrmGetBranch == null) { this.pofrmGetBranch = new BeSmartMRP.DialogForms.dlgGetBranch(); this.pofrmGetBranch.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBranch.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "COOR": if (this.pofrmGetCoor == null) { this.pofrmGetCoor = new DialogForms.dlgGetCoor(CoorType.Supplier); this.pofrmGetCoor.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetCoor.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "BOOK": if (this.pofrmGetBook == null) { this.pofrmGetBook = new DialogForms.dlgGetFMBook(this.mstrRefType); this.pofrmGetBook.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBook.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "DOC_MO": if (this.pofrmGetDoc == null) { this.pofrmGetDoc = new DialogForms.dlgGetDocMO(); this.pofrmGetDoc.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetDoc.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); this.pofrmGetDoc.FIlterStep = " and MFWORDERHD.CMSTEP <> 'P' and MFWORDERHD.CSTAT <> 'C' and MFWORDERHD.CPRSTEP = ' ' "; } break; } }
private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { case "BRANCH": if (this.pofrmGetBranch == null) { this.pofrmGetBranch = new BeSmartMRP.DialogForms.dlgGetBranch(); this.pofrmGetBranch.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBranch.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "PLANT": if (this.pofrmGetPlant == null) { this.pofrmGetPlant = new frmEMPlant(FormActiveMode.PopUp); this.pofrmGetPlant.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetPlant.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "MFGBOOK": if (this.pofrmGetMfgBook == null) { this.pofrmGetMfgBook = new frmMfgBook(FormActiveMode.PopUp, this.mstrRefType); this.pofrmGetMfgBook.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetMfgBook.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "SECT": if (this.pofrmGetSect == null) { this.pofrmGetSect = new DialogForms.dlgGetSect(); //this.pofrmGetSect.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetSect.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "JOB": if (this.pofrmGetJob == null) { this.pofrmGetJob = new DialogForms.dlgGetJob(); //this.pofrmGetJob.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetJob.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "PROD": if (this.pofrmGetProd == null) { this.pofrmGetProd = new DialogForms.dlgGetProd(); this.pofrmGetProd.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetProd.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "DOC_MO": if (this.pofrmGetDoc == null) { this.pofrmGetDoc = new DialogForms.dlgGetDocMO(); this.pofrmGetDoc.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetDoc.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; } }