FrmTreatmentReport.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. using System;
  2. using System.Collections.Generic;
  3. using Core.Mes.Client.Comm.Tool;
  4. using Core.StlMes.Client.Mcp.Control.Entity;
  5. namespace Core.StlMes.Client.Mcp.Mch.Report
  6. {
  7. public partial class FrmTreatmentReport : FrmReportBase
  8. {
  9. private string _type = "00";
  10. public FrmTreatmentReport()
  11. {
  12. InitializeComponent();
  13. chkTim.Text = @"检查时间";
  14. }
  15. protected override void LoadView()
  16. {
  17. DataBindingSource.DataSource = typeof(MchFinalCheckTreatmentEntityPlus);
  18. EntityHelper.ShowGridCaption<MchFinalCheckTreatmentEntityPlus>(CrackDetectGrid.DisplayLayout.Bands[0]);
  19. _type = CustomInfo.ToString2();
  20. CrackDetectGrid.DisplayLayout.Bands[0].Columns["ApprovalStatus"].EditorComponent = uceType;
  21. //uceType
  22. ViewList = new List<string>
  23. {
  24. "JudgeStoveNo",
  25. "BatchNo",
  26. "PlineName",
  27. "Producname",
  28. "Steelname",
  29. "Gradename",
  30. "Outdiameter",
  31. "Wallthick",
  32. "ModelDesc",
  33. "OrderNo",
  34. "ApprovalStatus"
  35. };
  36. ProductionInfo = new List<string>
  37. {
  38. "UnqualifiedNum",
  39. "FailNum"
  40. };
  41. OperationInfo = new List<string>
  42. {
  43. "TreatmentName",
  44. "ProUser",
  45. "ProTime",
  46. "TreatmentReply",
  47. "ReplyName",
  48. "Departname",
  49. "ReplyShift",
  50. "ReplyGroup",
  51. "ReplyTime",
  52. "ApprovalNote",
  53. "ApprovalName",
  54. "ApprovalTime"
  55. };
  56. }
  57. protected override void QuerySinglePlan()
  58. {
  59. var paras = new Dictionary<string, object>();
  60. var condition = GetQueryCondition();
  61. if ((condition.Length > 0) && condition[0] is Dictionary<string, object>)
  62. {
  63. paras = (Dictionary<string, object>) condition[0];
  64. paras.Add("responsibleCode", _type);
  65. paras.Add("status", "");
  66. }
  67. DataBindingSource.DataSource = EntityHelper.GetData<MchFinalCheckTreatmentEntityPlus>(
  68. "com.steering.mes.mcp.Mch.FrmJgxReport.doQueryTreatment",
  69. new object[] {paras},
  70. ob);
  71. }
  72. }
  73. }