Esempio n. 1
0
        protected override void InitData()
        {
            //级别
            SetGridLookUpEdit(TLevelTextEdit, codeService.GetCodeDataByCodeId("PLLEVEL"), 1);
            //状态
            SetGridLookUpEdit(StatusTextEdit, codeService.GetCodeDataByCodeId("PLSTATUS"), 1);
            //班次
            var codeData = codeService.GetCodeDataByCodeId("SHIFT");

            SetGridLookUpEdit(ShiftCodeTextEdit, codeData, 1);
            //机台
            codeData = codeService.GetCodeDataByCodeId("MACHINE");
            SetGridLookUpEdit(MacCodeTextEdit, codeData, 1);
            //产品
            var productData = productService.GetProductInputData();

            SetGridLookUpEdit(PartNoTextEdit, productData, 1);
            //客户
            var customerData = customerServer.GetCustomerInputData();

            SetGridLookUpEdit(CustCodeTextEdit, customerData, 1);
            //计划单
            var planData = planDetailService.GetInputList();

            SetGridLookUpEdit(txtPlanDetialId, planData, 5);

            var processFlowList = processFlowService.GetProcessFlowInputData();

            SetGridLookUpEdit(ProcessFlowTextEdit, processFlowList, 1);
            //repositoryItemPlan.DisplayMember = "Value";
            //repositoryItemPlan.View.Columns[0].Caption = "计划单号";
            txtPlanDetialId.Properties.View.Columns[1].Caption = "SO工单";
            txtPlanDetialId.Properties.View.Columns[2].Caption = "料号";
            txtPlanDetialId.Properties.View.Columns[3].Caption = "品名";
            txtPlanDetialId.Properties.View.Columns[4].Caption = "数量";
            txtPlanDetialId.Properties.View.Columns[5].Caption = "完成数量";


            if (this.Tag.ToStr() == BtnCommandEnum.Add)
            {
                //保存时自动生成单号
                string ls_TaskNo = "";
                ls_TaskNo       = viewService.GetGenerateOrderCode(4);
                tempData.TaskNo = ls_TaskNo;
            }

            this.mESM202TaskDetailBindingSource.DataSource = tempData;
            var taskJobLotList = taskJobLotService.GetQuery().Where(a => a.JobNo == tempData.TaskNo).ToList();

            this.mESM202TaskJobLotBindingSource.DataSource = taskJobLotList;

            //this.gridProduct.BestFitColumns();
            //this.gridMaterial.BestFitColumns();
        }
Esempio n. 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;
        }
Esempio n. 3
0
 protected override void InitData()
 {
     ERPHelper.Instance.SetGridLookUpEdit(CustCodeTextEdit, customerService.GetCustomerInputData(), 2);          //客户
     ERPHelper.Instance.SetGridLookUpEdit(StatusTextEdit, codeService.GetCodeDataByCodeId("ST"), 2);             //状态
     ERPHelper.Instance.SetGridLookUpEdit(ProcessFlowTextEdit, processFlowService.GetProcessFlowInputData(), 2); //工艺流程
     CustCodeTextEdit.EditValueChanging               += new DevExpress.XtraEditors.Controls.ChangingEventHandler(CustCodeTextEdit_EditValueChanging);
     StatusTextEdit.EditValueChanging                 += new DevExpress.XtraEditors.Controls.ChangingEventHandler(CustCodeTextEdit_EditValueChanging);
     ProcessFlowTextEdit.EditValueChanging            += new DevExpress.XtraEditors.Controls.ChangingEventHandler(CustCodeTextEdit_EditValueChanging);
     this.gridView1.CellValueChanged                  += new DevExpress.XtraGrid.Views.Base.CellValueChangedEventHandler(gridView1_CellValueChanged);
     this.gridView1.RowCountChanged                   += new EventHandler(gridView1_RowCountChanged);
     this.gridView1.FocusedRowChanged                 += new DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventHandler(gridView1_FocusedRowChanged);
     this.mESM002JobBindingSource.DataSource           = jobData;
     this.mESM002JobLotBindingSource.DataSource        = jobService.GetJobLotListByJobNo(jobData.JobNo);
     this.mESM002JobLotProcessBindingSource.DataSource = new List <MES_M002_Job_Lot_Process>();
 }
Esempio n. 4
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;
        }