| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using Pur.Entity;
- using CoreFS.CA06;
- using Core.Mes.Client.Comm.Control;
- using Pur.Entity.configureEntity;
- using Core.Mes.Client.Comm.Server;
- namespace Pur.Pop_upWindow
- {
-
- public partial class frmPopSelEvaGroup : FrmPmsBase
- {
- public DataTable dtEvaGroup = null;
- private string QstrTaskId = "";
- public frmPopSelEvaGroup(OpeBase ob)
- {
- InitializeComponent();
- this.ob = ob;
- }
- public frmPopSelEvaGroup(OpeBase ob,string strTaskId)
- {
- InitializeComponent();
- this.ob = ob;
- QstrTaskId = strTaskId;
- }
- /// <summary>
- /// 按钮控件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void barsManagerButon_ToolClick(object sender, Infragistics.Win.UltraWinToolbars.ToolClickEventArgs e)
- {
- switch (e.Tool.Key.ToString())
- {
- case "conFirmation":
- {
- confirm();
- this.Close();
- }
- break;
- case "ESC":
- {
- this.Close();
- }
- break;
- }
- }
- /// <summary>
- /// 选择评标人员分组
- /// </summary>
- private void confirm()
- {
- if (QstrTaskId == "")
- {
- dtEvaGroup = dataTable1;
- }
- else
- {
-
- }
- }
- /// <summary>
- /// 选择节点
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void ultraTree1_AfterSelect(object sender, Infragistics.Win.UltraWinTree.SelectEventArgs e)
- {
- if (ultraTree1.ActiveNode != null)
- {
- getSelEvaGroup(ultraTree1.ActiveNode.Key);
- }
- }
- /// <summary>
- /// 查询选择评标人员角色信息
- /// </summary>
- private void getSelEvaGroup(string strEvaGroupId)
- {
- PurConfEvaUserEntity ConfEvaUserEntity = new PurConfEvaUserEntity();
- ConfEvaUserEntity.EvaGroupId = strEvaGroupId;
- ConfEvaUserEntity.Validflag = "1";
- DataTable dt = this.execute<DataTable>("com.hnshituo.pur.purplan.service.ConfEvaUserService", "find", new object[] { ConfEvaUserEntity, 0, 0 });
- GridHelper.CopyDataToDatatable(ref dt, ref dataTable1, true);
- }
- /// <summary>
- /// 查询评标人员分组
- /// </summary>
- private void getSelEvaGroup()
- {
- ultraTree1.Nodes.Clear();
- //评标人员分组
- DataTable dt = ServerHelper.GetData("com.hnshituo.pur.configure.service.impl.CoreBaseInfoNew.doQuery", new Object[] { "1227" }, this.ob);
- for (int j = 0; j < dt.Rows.Count; j++)
- {
- if (dt.Rows[j]["Validflag"].ToString() == "1")
- {
- ultraTree1.Nodes.Add(dt.Rows[j]["BASECODE"].ToString(), dt.Rows[j]["BASENAME"].ToString());
- }
- }
- }
- /// <summary>
- /// 初始化界面
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void frmPopSelEvaGroup_Load(object sender, EventArgs e)
- {
- getSelEvaGroup();
- }
- }
- }
|