Exemplo n.º 1
0
        private void pmInitPopUpDialog(string inDialogName)
        {
            switch (inDialogName.TrimEnd().ToUpper())
            {
            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 "BRANCH":
                if (this.pofrmGetBranch == null)
                {
                    this.pofrmGetBranch          = new DialogForms.dlgGetBranch();
                    this.pofrmGetBranch.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBranch.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;

            case "REFTYPE":
                if (this.pofrmGetDocType == null)
                {
                    this.pofrmGetDocType          = new DialogForms.dlgGetFMDocType(" 'SR','SO','PO','WR','WX','RW','RX','Q1','FR','TR','AJ','GD' ");
                    this.pofrmGetDocType.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetDocType.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;
            }
        }
Exemplo 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;
            }
        }
Exemplo n.º 3
0
        private void pmInitPopUpDialog(string inDialogName)
        {
            switch (inDialogName.TrimEnd().ToUpper())
            {
            case "BRANCH":
                if (this.pofrmGetBranch == null)
                {
                    this.pofrmGetBranch          = new DialogForms.dlgGetBranch();
                    this.pofrmGetBranch.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBranch.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;

            case "BOOK":
                if (this.pofrmGetBook == null)
                {
                    this.pofrmGetBook          = new DialogForms.dlgGetBook();
                    this.pofrmGetBook.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBook.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;

            case "VAT":
                if (this.pofrmGetVatType == null)
                {
                    this.pofrmGetVatType          = new DialogForms.dlgGetVatType();
                    this.pofrmGetVatType.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetVatType.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;
            }
        }
Exemplo n.º 4
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 "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;
            }
        }
Exemplo n.º 5
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;
            }
        }
Exemplo n.º 6
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 "PLANT":
                if (this.pofrmGetPlant == null)
                {
                    this.pofrmGetPlant          = new frmEMPlant(FormActiveMode.Report);
                    this.pofrmGetPlant.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetPlant.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;

            case "HOLIDAY":
                if (this.pofrmEMHoliday == null)
                {
                    this.pofrmEMHoliday          = new frmEMHoliday(FormActiveMode.Report);
                    this.pofrmEMHoliday.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmEMHoliday.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;

            case "STDWORKHOUR":
                if (this.pofrmEMStdWorkHour == null)
                {
                    this.pofrmEMStdWorkHour          = new frmEMStdWorkHour(FormActiveMode.Report);
                    this.pofrmEMStdWorkHour.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmEMStdWorkHour.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;
            }
        }
Exemplo n.º 7
0
        private void pmInitPopUpDialog(string inDialogName)
        {
            switch (inDialogName.TrimEnd().ToUpper())
            {
            case "BRANCH":
                if (this.pofrmGetBranch == null)
                {
                    this.pofrmGetBranch          = new DialogForms.dlgGetBranch();
                    this.pofrmGetBranch.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBranch.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;

            case "BOOK":
                if (this.pofrmGetBook == null)
                {
                    this.pofrmGetBook          = new DialogForms.dlgGetBook();
                    this.pofrmGetBook.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetBook.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;

            case "CRZONE":
                if (this.pofrmGetCrZone == null)
                {
                    this.pofrmGetCrZone          = new DialogForms.dlgGetCrZone();
                    this.pofrmGetCrZone.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetCrZone.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;

            case "WKGRP":
                if (this.pofrmGetWkStat == null)
                {
                    this.pofrmGetWkStat = new frmWorkStation(FormActiveMode.PopUp);
                    //this.pofrmGetWkStat.Location = new Point(AppUtil.CommonHelper.SysMetric(1) - this.pofrmGetWkStat.Width - 10, AppUtil.CommonHelper.SysMetric(9) + 5);
                }
                break;
            }
        }