FrmPreGxInfo.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using Core.Mes.Client.Comm.Tool;
  2. using Core.StlMes.Client.PlnSaleOrd.BaseMethod;
  3. using Core.StlMes.Client.PlnSaleOrd.Entity;
  4. using CoreFS.CA06;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.ComponentModel;
  8. using System.Data;
  9. using System.Drawing;
  10. using System.Linq;
  11. using System.Text;
  12. using System.Windows.Forms;
  13. namespace Core.StlMes.Client.PlnSaleOrd.窗体
  14. {
  15. public partial class FrmPreGxInfo : FrmBase
  16. {
  17. private string proPlanId;
  18. private string processCode;
  19. private string flag;
  20. public FrmPreGxInfo()
  21. {
  22. InitializeComponent();
  23. }
  24. public FrmPreGxInfo(string proPlanId,string processCode,string flag,OpeBase ob)
  25. {
  26. this.proPlanId = proPlanId;
  27. this.processCode = processCode;
  28. this.flag = flag;
  29. this.ob = ob;
  30. //窗体居中
  31. this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
  32. InitializeComponent();
  33. }
  34. private void FrmPreGxInfo_Load(object sender, EventArgs e)
  35. {
  36. if (flag.Equals("Pr"))
  37. {
  38. this.Text = "前工序信息";
  39. }
  40. else
  41. {
  42. this.Text = "后工序信息";
  43. }
  44. BaseHelper.InitCellPosition(gridGxInfo, new string[] { "WeigthS", "NumS", "GxPlanNo" });
  45. BaseHelper.setOtherColumnReadOnly(gridGxInfo, new string[] { "" });
  46. Query(flag);
  47. }
  48. private void Query(string flag)
  49. {
  50. List<PreGxInfoEntity> entityList = EntityHelper.GetData<PreGxInfoEntity>(
  51. "com.steering.pss.plnsaleord.processOrder.base.PreGxInfo.queryGxInfo", new object[] { proPlanId, processCode, flag }, ob);
  52. preGxInfoEntityBindingSource.DataSource = entityList;
  53. }
  54. }
  55. }