private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { case "BRANCH": if (this.pofrmGetBranch == null) { this.pofrmGetBranch = new frmBranch(FormActiveMode.PopUp); this.pofrmGetBranch.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBranch.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "EMSECT": if (this.pofrmGetSect == null) { this.pofrmGetSect = new frmEMSect(FormActiveMode.PopUp); //this.pofrmGetSect.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetSect.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "BGYEAR": if (this.pofrmGetBGYear == null) { this.pofrmGetBGYear = new frmBGYear(FormActiveMode.PopUp); //this.pofrmGetBGYear.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBGYear.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; } }
private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { case "WHPACK": if (this.pofrmGetWHPack == null) { this.pofrmGetWHPack = new frmWHPack(FormActiveMode.PopUp); } break; case "SHOW_PACKDET": DataRow dtrTemPack = this.gridView1.GetDataRow(this.gridView1.FocusedRowHandle); if (dtrTemPack == null) { return; } using (Common.dlgShowPack_Det dlgRefTo = new Common.dlgShowPack_Det()) { dlgRefTo.BindData(this.mstrQcProd, dtrTemPack["cQcPackStyle"].ToString(), dtrTemPack["cQnPackStyle"].ToString(), Convert.ToDecimal(dtrTemPack["nPackSize"]), this.dtsDataEnv, this.dtsDataEnv.Tables[this.mstrTemPd]); dlgRefTo.ShowDialog(); if (dlgRefTo.DialogResult == DialogResult.OK) { //this.pmLoadRefToOrder(dlgRefTo.RefTable); //this.pmRecalTotPd(); } } // break; } }
private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { case "DEPT": if (this.pofrmGetDept == null) { this.pofrmGetDept = new frmEMDept(FormActiveMode.PopUp); //this.pofrmGetDept.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetDept.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; } }
private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { case "EMJOB": if (this.pofrmGetOption1 == null) { this.pofrmGetOption1 = new frmEMJob(UIHelper.FormActiveMode.Report); //this.pofrmGetOption1.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetOption1.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; } }
private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { case "BGYEAR": if (this.pofrmGetBGYear == null) { this.pofrmGetBGYear = new frmBGYear(FormActiveMode.Report); this.pofrmGetBGYear.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBGYear.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "JOB": if (this.pofrmGetJob == null) { this.pofrmGetJob = new frmEMJob(FormActiveMode.Report); //this.pofrmGetJob.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetJob.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; } }
private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { case "APPLOGIN": if (this.pofrmGetLogin == null) { this.pofrmGetLogin = new DatabaseForms.frmAppLogin(FormActiveMode.Report); //this.pofrmGetEMSect.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetEMSect.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "SECT": if (this.pofrmGetEMSect == null) { this.pofrmGetEMSect = new DatabaseForms.frmEMSect(FormActiveMode.PopUp); //this.pofrmGetEMSect.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetEMSect.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; } }
private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { case "BRANCH": if (this.pofrmGetBranch == null) { this.pofrmGetBranch = new DialogForms.dlgGetBranch(); this.pofrmGetBranch.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBranch.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "BOOK": if (this.pofrmGetBook == null) { this.pofrmGetBook = new DialogForms.dlgGetBook(); this.pofrmGetBook.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBook.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "CRZONE": if (this.pofrmGetCrZone == null) { this.pofrmGetCrZone = new DialogForms.dlgGetCrZone(); this.pofrmGetCrZone.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetCrZone.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "WKGRP": if (this.pofrmGetWkStat == null) { this.pofrmGetWkStat = new frmWorkStation(FormActiveMode.PopUp); //this.pofrmGetWkStat.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetWkStat.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; } }
private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { case "EMCORP": if (this.pofrmGetOption1 == null) { this.pofrmGetOption1 = new frmCorp(FormActiveMode.Report); //this.pofrmGetOption1.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetOption1.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "EMBRANCH": if (this.pofrmGetOption1 == null) { this.pofrmGetOption1 = new frmBranch(FormActiveMode.Report); //this.pofrmGetOption1.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetOption1.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "EMDEPT": if (this.pofrmGetOption1 == null) { this.pofrmGetOption1 = new frmEMDept(FormActiveMode.Report); //this.pofrmGetOption1.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetOption1.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "EMSECT": if (this.pofrmGetOption1 == null) { this.pofrmGetOption1 = new frmEMSect(FormActiveMode.Report); //this.pofrmGetOption1.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetOption1.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "EMPROJ": if (this.pofrmGetOption1 == null) { this.pofrmGetOption1 = new frmEMProj(FormActiveMode.Report); //this.pofrmGetOption1.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetOption1.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "EMJOB": if (this.pofrmGetOption1 == null) { this.pofrmGetOption1 = new frmEMJob(FormActiveMode.Report); //this.pofrmGetOption1.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetOption1.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "BGTYPE": if (this.pofrmGetOption1 == null) { this.pofrmGetOption1 = new frmBudType(FormActiveMode.Report); //this.pofrmGetOption1.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetOption1.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "BGCHARTHD": if (this.pofrmGetOption1 == null) { this.pofrmGetOption1 = new frmBudChart(FormActiveMode.Report); //this.pofrmGetOption1.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetOption1.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "EMACCHART": if (this.pofrmGetOption1 == null) { this.pofrmGetOption1 = new frmEMAcChart(FormActiveMode.Report); //this.pofrmGetOption1.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetOption1.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "EMUOM": if (this.pofrmGetOption1 == null) { this.pofrmGetOption1 = new frmEMUOM(FormActiveMode.Report); //this.pofrmGetOption1.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetOption1.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "APPEMPL": if (this.pofrmGetOption1 == null) { this.pofrmGetOption1 = new frmAppEmpl(FormActiveMode.Report); //this.pofrmGetOption1.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetOption1.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "APPLOGIN": if (this.pofrmGetOption1 == null) { this.pofrmGetOption1 = new frmAppLogin(FormActiveMode.Report); //this.pofrmGetOption1.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetOption1.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } 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; } }