Esempio n. 1
0
        public frmFRCS(UserInformation userInformation, WPF.MDI.MdiChild mdiChild, int entityPrimaryKey,
                       OperationMode operationMode, string title = "Feasibility Report and Cost Sheet")
        {
            // Progress.ProcessingText = PDMsg.Load;
            //Progress.Start();
            InitializeComponent();

            this.mdiChild = mdiChild;
            vm            = new FeasibleReportAndCostSheetViewModel(userInformation, mdiChild, entityPrimaryKey, operationMode, title);
            //vm.SsCostDetails = ssCostDetails;
            //Progress.End();
            this.DataContext  = vm;
            mdiChild.Closing += vm.CloseMethod;

            if (vm.CloseAction == null && mdiChild.IsNotNullOrEmpty())
            {
                vm.CloseAction = new Action(() => mdiChild.Close());
            }

            bll = new FeasibleReportAndCostSheet(userInformation);

            List <ProcessDesigner.Model.V_TABLE_DESCRIPTION> lstTableDescription = bll.GetTableColumnsSize("DDCI_INFO");

            this.SetColumnLength <TextBox>(lstTableDescription);
        }
Esempio n. 2
0
        public frmPendingPartStatus(UserInformation userInformation, WPF.MDI.MdiChild mdiChild, bool refreshOnLoad = false, string title = "Pending Parts Status Report")
        {
            InitializeComponent();
            this.mdiChild = mdiChild;

            vm = new ReportPendingPartNumberStatusViewModel(userInformation, mdiChild, refreshOnLoad, title);
            this.DataContext  = vm;
            mdiChild.Closing += vm.CloseMethod;
            if (vm.CloseAction == null && mdiChild.IsNotNullOrEmpty())
            {
                vm.CloseAction = new Action(() => mdiChild.Close());
            }
        }
Esempio n. 3
0
        public frmOperatorQualityAssurance(UserInformation userInformation, WPF.MDI.MdiChild mdiChild, int entityPrimaryKey,
                                           OperationMode operationMode, string title = "Operator Quality Assurance Chart")
        {
            InitializeComponent();

            this.mdiChild    = mdiChild;
            vm               = new OperatorQualityAssuranceViewModel(userInformation, mdiChild, entityPrimaryKey, operationMode, title);
            this.DataContext = vm;
            if (vm.CloseAction == null && mdiChild.IsNotNullOrEmpty())
            {
                vm.CloseAction = new Action(() => mdiChild.Close());
            }

            bll = new OperatorQualityAssurance(userInformation);
        }
        public frmCopyCIReference(UserInformation userInformation, WPF.MDI.MdiChild mdiChild, DDCI_INFO activeentity, OperationMode operationMode)
        {
            InitializeComponent();
            bll = new FeasibleReportAndCostSheet(userInformation);
            this.ActiveEntity = activeentity;

            Vm = new CopyCIReferenceViewModel(userInformation, mdiChild, activeentity, operationMode);
            this.DataContext = Vm;
            if (Vm.CloseAction == null && mdiChild.IsNotNullOrEmpty())
            {
                Vm.CloseAction = new Action(() => mdiChild.Close());
            }

            bll = new FeasibleReportAndCostSheet(userInformation);

            List <ProcessDesigner.Model.V_TABLE_DESCRIPTION> lstTableDescription = bll.GetTableColumnsSize("DDCI_INFO");

            this.SetColumnLength <TextBox>(lstTableDescription);
        }
        public frmProductInformation(UserInformation userInformation, WPF.MDI.MdiChild mdiChild, int entityPrimaryKey,
                                     OperationMode operationMode, string title = "Product Master")
        {
            InitializeComponent();

            this.mdiChild     = mdiChild;
            vm                = new ProductInformationViewModel(userInformation, mdiChild, entityPrimaryKey, operationMode, title);
            this.DataContext  = vm;
            mdiChild.Closing += vm.CloseMethod;
            if (vm.CloseAction == null && mdiChild.IsNotNullOrEmpty())
            {
                vm.CloseAction = new Action(() => mdiChild.Close());
            }

            bll = new FeasibleReportAndCostSheet(userInformation);

            List <ProcessDesigner.Model.V_TABLE_DESCRIPTION> lstTableDescription = bll.GetTableColumnsSize("PRD_MAST");

            this.SetColumnLength <TextBox>(lstTableDescription);
        }