TubeRolling.cs 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using Core.Mes.Client.Comm.Control;
  10. using Core.Mes.Client.Comm.Server;
  11. using Core.Mes.Client.Comm.Tool;
  12. using Core.StlMes.Client.PlnSaleOrd.BaseMethod;
  13. using Core.StlMes.Client.PlnSaleOrd.InventoryAdjustment.entity;
  14. using Core.StlMes.Client.PlnSaleOrd.工序排产;
  15. using Infragistics.Win.UltraWinGrid;
  16. namespace Core.StlMes.Client.PlnSaleOrd.InventoryAdjustment
  17. {
  18. public partial class TubeRolling : InventoryAdjustment
  19. {
  20. public TubeRolling()
  21. {
  22. InitializeComponent();
  23. }
  24. private string[] plineCode = null;//获取产线代码
  25. private void TubeRolling_Load(object sender, EventArgs e)
  26. {
  27. plineCode = PlanHelper.InitDropPlinePower("D", ucePline, this.ValidDataPurviewIds, this.ob);
  28. EntityHelper.ShowGridCaption<PlnOrderZgSOEntity>(ugOrderInfo.DisplayLayout.Bands[0]);
  29. EntityHelper.ShowGridCaption<PlnZyZgMEntityAc>(ugStovePlan.DisplayLayout.Bands[0]);
  30. BaseHelper.setOtherColumnReadOnly(ugOrderInfo, new[] {"" });
  31. BaseHelper.setOtherColumnReadOnly(ugStovePlan, new[] { "" });
  32. }
  33. protected override void Query()
  34. {
  35. string comPlineCode = "";
  36. if (chcPline.Checked)
  37. {
  38. comPlineCode = ucePline.Value == null ? "" : ucePline.Value.ToString();
  39. }
  40. WaitingForm2 wf3 = new WaitingForm2("正在查询数据,请稍候....");
  41. try
  42. {
  43. /* this.Cursor = Cursors.WaitCursor;
  44. //执行状态
  45. string[] statusArr = contorlPlanStatus1.statusArr;
  46. //合同号
  47. string orderNo = "";
  48. if (chcOrderNo.Checked) { orderNo = txtOrderNo.Text.Trim(); }
  49. string proPlanId = "";
  50. if (chcProPlanId.Checked) { proPlanId = txtProPlanId.Text.Trim(); }
  51. string planTimeB1 = "";
  52. string planTimeB2 = "";
  53. if (chcPlanTimeB.Checked && txtPlanTimeB2.Value != null && txtPlanTimeB1.Value != null)
  54. {
  55. planTimeB1 = DateTime.Parse(txtPlanTimeB1.Value.ToString()).ToString("yyyy-MM-dd HH:mm:ss");
  56. planTimeB2 = DateTime.Parse(txtPlanTimeB2.Value.ToString()).ToString("yyyy-MM-dd HH:mm:ss");
  57. }
  58. string planTimeE1 = "";
  59. string planTimeE2 = "";
  60. if (chcPlanTimeE.Checked && txtPlanTimeE2.Value != null && txtPlanTimeE1.Value != null)
  61. {
  62. planTimeE1 = DateTime.Parse(txtPlanTimeE1.Value.ToString()).ToString("yyyy-MM-dd HH:mm:ss");
  63. planTimeE2 = DateTime.Parse(txtPlanTimeE2.Value.ToString()).ToString("yyyy-MM-dd HH:mm:ss");
  64. }
  65. if (plineCode == null)
  66. {
  67. MessageUtil.ShowTips("该用户没有轧管产线查看权限!");
  68. return;
  69. }
  70. List<PlnOrderZgSOEntity> listSource = EntityHelper.GetData<PlnOrderZgSOEntity>
  71. ("com.steering.pss.plnsaleord.processOrder.base.ProducHelper.queryPlanOrderD", new object[] { plineCode, proPlanId, orderNo, statusArr, planTimeB1, planTimeB2, planTimeE1, planTimeE2, comPlineCode }, this.ob);
  72. plnOrderZgSOEntityBindingSource.DataSource = listSource;*/
  73. }
  74. finally
  75. {
  76. wf3.Close();
  77. this.Cursor = Cursors.Default;
  78. }
  79. }
  80. }
  81. }