Ejemplo n.º 1
0
        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 "COOR":
                if (this.pofrmGetCoor == null)
                {
                    this.pofrmGetCoor          = new DialogForms.dlgGetCoor(CoorType.Supplier);
                    this.pofrmGetCoor.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetCoor.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;

            case "BOOK":
                if (this.pofrmGetBook == null)
                {
                    this.pofrmGetBook          = new DialogForms.dlgGetFMBook(this.mstrRefType);
                    this.pofrmGetBook.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBook.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;
            }
        }
Ejemplo n.º 2
0
        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 "COOR":
                if (this.pofrmGetCoor == null)
                {
                    this.pofrmGetCoor          = new DialogForms.dlgGetCoor(CoorType.Supplier);
                    this.pofrmGetCoor.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetCoor.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;

            case "BOOK":
                if (this.pofrmGetBook == null)
                {
                    this.pofrmGetBook          = new DialogForms.dlgGetFMBook(this.mstrRefType);
                    this.pofrmGetBook.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBook.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);
                    this.pofrmGetDoc.FIlterStep = " and MFWORDERHD.CMSTEP <> 'P' and MFWORDERHD.CSTAT <> 'C' and MFWORDERHD.CPRSTEP = ' ' ";
                }
                break;
            }
        }