Example #1
0
        public frmPartNumberConfig(UserInformation userInformation, System.Windows.Window window, int entityPrimaryKey,
                                   OperationMode operationMode, string title = "Part Number Configuration")
        {
            try
            {
                InitializeComponent();
                CustPartNoDescription.Focus();

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

                bll = new PartNumberConfiguration(userInformation);

                List <ProcessDesigner.Model.V_TABLE_DESCRIPTION> lstTableDescription = bll.GetTableColumnsSize("PartNumberConfig");
                this.SetColumnLength <TextBox>(lstTableDescription);
            }
            catch (Exception ex)
            {
                throw ex.LogException();
            }
        }
        public frmProductReleaseDate(UserInformation userInformation, System.Windows.Window window, ProductInformationModel productInformationModel,
                                     ProcessDesigner.Common.OperationMode operationMode, string title = "Document Release Date")
        {
            InitializeComponent();

            vm = new ProductReleaseDateViewModel(userInformation, window, productInformationModel, operationMode, title);
            this.DataContext = vm;
            if (vm.CloseAction == null && window.IsNotNullOrEmpty())
            {
                vm.CloseAction = new Action(() => window.Close());
            }
        }
Example #3
0
        public frmOperatorQualityAssurance(UserInformation userInformation, System.Windows.Window window, int entityPrimaryKey,
                                           OperationMode operationMode, string title = "Operator Quality Assurance Chart")
        {
            InitializeComponent();

            vm = new OperatorQualityAssuranceViewModel(userInformation, mdiChild, entityPrimaryKey, operationMode, title);
            this.DataContext = vm;
            if (vm.CloseAction == null && window.IsNotNullOrEmpty())
            {
                vm.CloseAction = new Action(() => window.Close());
            }
        }
Example #4
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);
        }