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 "BGBOOK": if (this.pofrmGetBGBook == null) { //this.pofrmGetBGBook = new DialogForms.dlgGetBGBook(SysDef.gc_REFTYPE_BUDALLOC); this.pofrmGetBGBook = new frmBGBook(FormActiveMode.PopUp, SysDef.gc_REFTYPE_BUDALLOC); this.pofrmGetBGBook.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBGBook.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 "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 "PROJ": if (this.pofrmGetProj == null) { this.pofrmGetProj = new frmEMProj(FormActiveMode.Report); this.pofrmGetProj.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetProj.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 frmBranch(FormActiveMode.PopUp); this.pofrmGetBranch.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBranch.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "BGBOOK": if (this.pofrmGetBGBook == null) { this.pofrmGetBGBook = new frmBGBook(FormActiveMode.PopUp, this.mstrRefType); this.pofrmGetBGBook.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBGBook.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5); } break; case "JOB": if (this.pofrmGetJob == null) { this.pofrmGetJob = new frmEMJob(FormActiveMode.PopUp); this.pofrmGetJob.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetJob.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; } }