예제 #1
0
        private void pmInitPopUpDialog(string inDialogName)
        {
            switch (inDialogName.TrimEnd().ToUpper())
            {
            case "FILTER":
                using (Common.dlgFilter04 dlgFilter = new Common.dlgFilter04())
                {
                    dlgFilter.SetTitle(this.Text, TASKNAME);
                    dlgFilter.ShowDialog();
                    if (dlgFilter.DialogResult == DialogResult.OK)
                    {
                        this.mbllFilterResult = true;

                        //this.txtQnRefType.Text = "เอกสารการปันส่วนงบประมาณ";
                        this.mstrBranchID = dlgFilter.BranchID;
                        this.mstrRefType  = dlgFilter.RefTypeCode;

                        this.txtQcRefType.Text = this.mstrRefType;
                        this.txtQnRefType.Text = dlgFilter.RefTypeName;

                        this.pmRefreshBrowView();
                        this.grdBrowView.Focus();
                    }
                }
                break;
            }
        }
예제 #2
0
        private void pmInitPopUpDialog(string inDialogName)
        {
            switch (inDialogName.TrimEnd().ToUpper())
            {
            case "FILTER":
                using (Common.dlgFilter04 dlgFilter = new Common.dlgFilter04())
                {
                    dlgFilter.SetTitle(this.Text, TASKNAME);
                    dlgFilter.ShowDialog();
                    if (dlgFilter.DialogResult == DialogResult.OK)
                    {
                        this.mbllFilterResult = true;

                        //this.txtQnRefType.Text = "เอกสารการปันส่วนงบประมาณ";
                        this.mstrBranchID = dlgFilter.BranchID;
                        this.mstrRefType  = dlgFilter.RefTypeCode;

                        this.txtQcRefType.Text = this.mstrRefType;
                        this.txtQnRefType.Text = dlgFilter.RefTypeName;

                        this.pmRefreshBrowView();
                        this.grdBrowView.Focus();
                    }
                }
                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;
            }
        }