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;
}
///
/// 按钮控件
///
///
///
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;
}
}
///
/// 选择评标人员分组
///
private void confirm()
{
if (QstrTaskId == "")
{
dtEvaGroup = dataTable1;
}
else
{
}
}
///
/// 选择节点
///
///
///
private void ultraTree1_AfterSelect(object sender, Infragistics.Win.UltraWinTree.SelectEventArgs e)
{
if (ultraTree1.ActiveNode != null)
{
getSelEvaGroup(ultraTree1.ActiveNode.Key);
}
}
///
/// 查询选择评标人员角色信息
///
private void getSelEvaGroup(string strEvaGroupId)
{
PurConfEvaUserEntity ConfEvaUserEntity = new PurConfEvaUserEntity();
ConfEvaUserEntity.EvaGroupId = strEvaGroupId;
ConfEvaUserEntity.Validflag = "1";
DataTable dt = this.execute("com.hnshituo.pur.purplan.service.ConfEvaUserService", "find", new object[] { ConfEvaUserEntity, 0, 0 });
GridHelper.CopyDataToDatatable(ref dt, ref dataTable1, true);
}
///
/// 查询评标人员分组
///
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());
}
}
}
///
/// 初始化界面
///
///
///
private void frmPopSelEvaGroup_Load(object sender, EventArgs e)
{
getSelEvaGroup();
}
}
}