private void pmInitPopUpDialog(string inDialogName) { switch (inDialogName.TrimEnd().ToUpper()) { case "SEMPL": if (this.pofrmGetEmpl == null) { this.pofrmGetEmpl = new DialogForms.dlgGetEmplSM("S"); this.pofrmGetEmpl.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetEmpl.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.dlgGetPdGrp.MAXLENGTH_CODE, DialogForms.dlgGetPdGrp.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 "COOR": if (this.pofrmGetCoor == null) { //this.pofrmGetCoor = new DialogForms.dlgGetCoor(); this.pofrmGetCoor = new DatabaseForms.frmCust(FormActiveMode.PopUp); this.pofrmGetCoor.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetCoor.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "WHOUSE": if (this.pofrmGetWHouse == null) { this.pofrmGetWHouse = new DialogForms.dlgGetWHouse(); this.pofrmGetWHouse.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetWHouse.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "SEMPL": if (this.pofrmGetSEmpl == null) { this.pofrmGetSEmpl = new DialogForms.dlgGetEmplSM("S"); this.pofrmGetSEmpl.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetSEmpl.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "EMPL": if (this.pofrmGetEmpl == null) { this.pofrmGetEmpl = new DialogForms.dlgGetEmplSM("X"); this.pofrmGetEmpl.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetEmpl.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; } }