예제 #1
0
        protected override void InitData()
        {
            var materialData = materialService.GetInputData();

            SetGridLookUpEdit(repositoryItemMaterial, materialData, 2);
            repositoryItemMaterial.DisplayMember             = "Value";
            productMaterialViewModelBindingSource.DataSource = viewService.GetBOMMaterialView(planId);
        }
예제 #2
0
        public override void OnAttachEvent()
        {
            var custData = customerServer.GetCustomerInputData();

            SetGridLookUpEdit(repositoryCustCode, custData, 3);
            var processFlowList = processFlowService.GetProcessFlowInputData();

            SetGridLookUpEdit(repositoryItemProcessFlow, processFlowList, 1);
            SetGridLookUpEdit(repositoryItemPROC, codeService.GetCodeDataByCodeId("PROC"));
            SetGridLookUpEdit(repositoryItemPROCPMS, codeService.GetCodeDataByCodeId("PROCPMS"));
            SetGridLookUpEdit(repositoryItemPROCPMSTATUS, codeService.GetCodeDataByCodeId("PROCPMSTATUS"));
            SetGridLookUpEdit(repositoryItemMatCode, materialService.GetInputData());
            this.eRPM001ProductProcessFlowBindingSource.CurrentChanged += eRPM001ProductProcessFlowBindingSource_CurrentChanged;
            this.eRPM001ProductBindingSource.CurrentChanged            += eRPM001ProductBindingSource_CurrentChanged;
        }
예제 #3
0
        protected override void OnSetLayoutItemStyle()
        {
            ERPHelper.Instance.ApplyBindingSettings(ItemForPartNo, ItemBindingType.Required);
            ERPHelper.Instance.ApplyBindingSettings(ItemForPartName, ItemBindingType.Required);
            var custData = customerServer.GetCustomerInputData();

            SetGridLookUpEdit(repositoryCustCode, custData, 3);
            var processFlowList = processFlowService.GetProcessFlowInputData();

            SetGridLookUpEdit(ProcessFlowTextEdit, processFlowList, 1);
            SetGridLookUpEdit(repositoryItemPROC, codeService.GetCodeDataByCodeId("PROC"));
            SetGridLookUpEdit(repositoryItemPROCPMS, codeService.GetCodeDataByCodeId("PROCPMS"));
            SetGridLookUpEdit(repositoryItemPROCPMSTATUS, codeService.GetCodeDataByCodeId("PROCPMSTATUS"));
            SetGridLookUpEdit(repositoryItemMatCode, materialService.GetInputData());
            this.eRPM001ProductProcessFlowBindingSource.CurrentChanged += eRPM001ProductProcessFlowBindingSource_CurrentChanged;
        }
예제 #4
0
        protected override void InitData()
        {
            var productData = productService.GetProductInputData();

            SetGridLookUpEdit(PartNoTextEdit, productData, 2);
            var materialData = materialService.GetInputData();

            SetGridLookUpEdit(repositoryItemMaterial, materialData, 2);
            this.eRPM002BOMBindingSource.DataSource = tempData;
            var bomMatData = bomService.GetBomMatQuery().Where(a => a.PartNo == tempData.PartNo).ToList();

            if (this.Tag.ToString() == BtnCommandEnum.Add)
            {
                for (int i = 0; i < 10; i++)
                {
                    ERP_M002_BOM_Material bomMat = new ERP_M002_BOM_Material();
                    bomMatData.Add(bomMat);
                }
            }
            this.eRPM002BOMMaterialBindingSource.DataSource = bomMatData;
            PartNoTextEdit.Focus();
        }