예제 #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);
        }
예제 #2
0
        public frmFRCS(UserInformation userInformation, System.Windows.Window window, int entityPrimaryKey,
                       OperationMode operationMode, string title = "Feasibility Report and Cost Sheet")
        {
            InitializeComponent();

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

            bll = new FeasibleReportAndCostSheet(userInformation);

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

            this.SetColumnLength <TextBox>(lstTableDescription);
        }
예제 #3
0
        public frmCopyCIReference(UserInformation userInformation, Window mdiChild, DDCI_INFO activeentity, OperationMode operationMode)
        {
            InitializeComponent();
            bll = new FeasibleReportAndCostSheet(userInformation);
            this.ActiveEntity = activeentity;

            Vm = new CopyCIReferenceViewModel(userInformation, 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);
        }