| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- using System;
- using System.Collections.Generic;
- using Core.Mes.Client.Comm.Tool;
- using Core.StlMes.Client.Mcp.Control.Entity;
- namespace Core.StlMes.Client.Mcp.Mch.Report
- {
- public partial class FrmTreatmentReport : FrmReportBase
- {
- private string _type = "00";
- public FrmTreatmentReport()
- {
- InitializeComponent();
- chkTim.Text = @"检查时间";
- }
- protected override void LoadView()
- {
- DataBindingSource.DataSource = typeof(MchFinalCheckTreatmentEntityPlus);
- EntityHelper.ShowGridCaption<MchFinalCheckTreatmentEntityPlus>(CrackDetectGrid.DisplayLayout.Bands[0]);
- _type = CustomInfo.ToString2();
- CrackDetectGrid.DisplayLayout.Bands[0].Columns["ApprovalStatus"].EditorComponent = uceType;
- //uceType
- ViewList = new List<string>
- {
- "JudgeStoveNo",
- "BatchNo",
- "PlineName",
- "Producname",
- "Steelname",
- "Gradename",
- "Outdiameter",
- "Wallthick",
- "ModelDesc",
- "OrderNo",
- "ApprovalStatus"
- };
- ProductionInfo = new List<string>
- {
- "UnqualifiedNum",
- "FailNum"
- };
- OperationInfo = new List<string>
- {
- "TreatmentName",
- "ProUser",
- "ProTime",
- "TreatmentReply",
- "ReplyName",
- "Departname",
- "ReplyShift",
- "ReplyGroup",
- "ReplyTime",
- "ApprovalNote",
- "ApprovalName",
- "ApprovalTime"
- };
- }
- protected override void QuerySinglePlan()
- {
- var paras = new Dictionary<string, object>();
- var condition = GetQueryCondition();
- if ((condition.Length > 0) && condition[0] is Dictionary<string, object>)
- {
- paras = (Dictionary<string, object>) condition[0];
- paras.Add("responsibleCode", _type);
- paras.Add("status", "");
- }
- DataBindingSource.DataSource = EntityHelper.GetData<MchFinalCheckTreatmentEntityPlus>(
- "com.steering.mes.mcp.Mch.FrmJgxReport.doQueryTreatment",
- new object[] {paras},
- ob);
- }
- }
- }
|