protected override void InitData() { var materialData = materialService.GetInputData(); SetGridLookUpEdit(repositoryItemMaterial, materialData, 2); repositoryItemMaterial.DisplayMember = "Value"; productMaterialViewModelBindingSource.DataSource = viewService.GetBOMMaterialView(planId); }
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; }
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; }
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(); }