frmPopSelEvaGroup.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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 Pur.Entity;
  10. using CoreFS.CA06;
  11. using Core.Mes.Client.Comm.Control;
  12. using Pur.Entity.configureEntity;
  13. using Core.Mes.Client.Comm.Server;
  14. namespace Pur.Pop_upWindow
  15. {
  16. public partial class frmPopSelEvaGroup : FrmPmsBase
  17. {
  18. public DataTable dtEvaGroup = null;
  19. private string QstrTaskId = "";
  20. public frmPopSelEvaGroup(OpeBase ob)
  21. {
  22. InitializeComponent();
  23. this.ob = ob;
  24. }
  25. public frmPopSelEvaGroup(OpeBase ob,string strTaskId)
  26. {
  27. InitializeComponent();
  28. this.ob = ob;
  29. QstrTaskId = strTaskId;
  30. }
  31. /// <summary>
  32. /// 按钮控件
  33. /// </summary>
  34. /// <param name="sender"></param>
  35. /// <param name="e"></param>
  36. private void barsManagerButon_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
  37. {
  38. switch (e.Tool.Key.ToString())
  39. {
  40. case "conFirmation":
  41. {
  42. confirm();
  43. this.Close();
  44. }
  45. break;
  46. case "ESC":
  47. {
  48. this.Close();
  49. }
  50. break;
  51. }
  52. }
  53. /// <summary>
  54. /// 选择评标人员分组
  55. /// </summary>
  56. private void confirm()
  57. {
  58. if (QstrTaskId == "")
  59. {
  60. dtEvaGroup = dataTable1;
  61. }
  62. else
  63. {
  64. }
  65. }
  66. /// <summary>
  67. /// 选择节点
  68. /// </summary>
  69. /// <param name="sender"></param>
  70. /// <param name="e"></param>
  71. private void ultraTree1_AfterSelect(object sender, Infragistics.Win.UltraWinTree.SelectEventArgs e)
  72. {
  73. if (ultraTree1.ActiveNode != null)
  74. {
  75. getSelEvaGroup(ultraTree1.ActiveNode.Key);
  76. }
  77. }
  78. /// <summary>
  79. /// 查询选择评标人员角色信息
  80. /// </summary>
  81. private void getSelEvaGroup(string strEvaGroupId)
  82. {
  83. PurConfEvaUserEntity ConfEvaUserEntity = new PurConfEvaUserEntity();
  84. ConfEvaUserEntity.EvaGroupId = strEvaGroupId;
  85. ConfEvaUserEntity.Validflag = "1";
  86. DataTable dt = this.execute<DataTable>("com.hnshituo.pur.purplan.service.ConfEvaUserService", "find", new object[] { ConfEvaUserEntity, 0, 0 });
  87. GridHelper.CopyDataToDatatable(ref dt, ref dataTable1, true);
  88. }
  89. /// <summary>
  90. /// 查询评标人员分组
  91. /// </summary>
  92. private void getSelEvaGroup()
  93. {
  94. ultraTree1.Nodes.Clear();
  95. //评标人员分组
  96. DataTable dt = ServerHelper.GetData("com.hnshituo.pur.configure.service.impl.CoreBaseInfoNew.doQuery", new Object[] { "1227" }, this.ob);
  97. for (int j = 0; j < dt.Rows.Count; j++)
  98. {
  99. if (dt.Rows[j]["Validflag"].ToString() == "1")
  100. {
  101. ultraTree1.Nodes.Add(dt.Rows[j]["BASECODE"].ToString(), dt.Rows[j]["BASENAME"].ToString());
  102. }
  103. }
  104. }
  105. /// <summary>
  106. /// 初始化界面
  107. /// </summary>
  108. /// <param name="sender"></param>
  109. /// <param name="e"></param>
  110. private void frmPopSelEvaGroup_Load(object sender, EventArgs e)
  111. {
  112. getSelEvaGroup();
  113. }
  114. }
  115. }