private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { 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 "TAG_PDGRP": using (DialogForms.dlgTagItems dlg = new mBudget.DialogForms.dlgTagItems()) { dlg.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - dlg.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); string strSQLExec = "select {0}.FCSKID, {0}.FCCODE, {0}.FCNAME from {0} "; string strFMDBName = App.ConfigurationManager.ConnectionInfo.ERPDBMSName; string strEmplRTab = strFMDBName + ".dbo.EMPLR"; strSQLExec = string.Format(strSQLExec, new string[] { MapTable.Table.ProdGroup, strEmplRTab }); dlg.SetBrowView(strSQLExec, null, MapTable.Table.ProdGroup, DialogForms.dlgGetProd.MAXLENGTH_CODE, DialogForms.dlgGetProd.MAXLENGTH_NAME); dlg.ShowDialog(); if (dlg.PopUpResult) { dlg.LoadTagValue(ref this.pATagCode); //this.txtTagCode.Text = this.pmGetRngCode(); } } break; } }
private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { case "PRODUCT": 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; } }
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 "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; } }