/// <summary> /// 得到信箱分类组 /// </summary> private void AddGroupNodes() { Db_ConsultMana mana = new Db_ConsultMana(); bool isNeedCheck = new Db_ConsultMana().GetDetail(Request.QueryString["HistoryGuid"]).InfoStatus == 0 ? false : true; EpointTreeNode node; DataView dvBox = BoxMana.BoxSelectAll(); //选择所有的邮箱 dvBox.RowFilter = "BoxGroupID='" + Frame_Config.GetConfigValue("Consult_FenFaGroup") + "'"; //判断组下是否有信箱 if (dvBox.Count > 0) { EpointTreeNode newnode; for (int j = 0; j < dvBox.Count; j++) { newnode = new EpointTreeNode(); newnode.ShowInputCtrl = true; newnode.Text = dvBox[j]["BoxName"].ToString(); newnode.Value = dvBox[j]["BoxGuid"].ToString(); //if (isNeedCheck)//有未处理的则不能选择 //{ // if (mana.IsNotHandle(Request.QueryString["HistoryGuid"], dvBox[j]["BoxGuid"].ToString())) // { // newnode.CtrlEnable = false; // } //} TextTreeView1.Nodes.Add(newnode); } } }
/// <summary> /// 得到信箱分类组 /// </summary> private void AddGroupNodes() { Db_ConsultMana mana = new Db_ConsultMana(); bool isNeedCheck = new Db_ConsultMana().GetDetail(Request.QueryString["HistoryGuid"]).InfoStatus == 0 ? false : true; EpointTreeNode node; DataView dvBox = BoxMana.BoxSelectAll();//选择所有的邮箱 dvBox.RowFilter = "BoxGroupID='" + Frame_Config.GetConfigValue("Consult_FenFaGroup") + "'";//判断组下是否有信箱 if (dvBox.Count > 0) { EpointTreeNode newnode; for (int j = 0; j < dvBox.Count; j++) { newnode = new EpointTreeNode(); newnode.ShowInputCtrl = true; newnode.Text = dvBox[j]["BoxName"].ToString(); newnode.Value = dvBox[j]["BoxGuid"].ToString(); //if (isNeedCheck)//有未处理的则不能选择 //{ // if (mana.IsNotHandle(Request.QueryString["HistoryGuid"], dvBox[j]["BoxGuid"].ToString())) // { // newnode.CtrlEnable = false; // } //} TextTreeView1.Nodes.Add(newnode); } } }
/// <summary> /// 得到信箱分类组 /// </summary> private void AddTopNodes() { Db_ConsultMana mana = new Db_ConsultMana(); bool isNeedCheck = new Db_ConsultMana().GetDetail(Request.QueryString["HistoryGuid"]).InfoStatus == 0 ? false : true; EpointTreeNode node; DataView dvBox = BoxMana.BoxSelectAll(); //选择所有的邮箱 DataView dvGroup = BoxMana.BoxGroupSelectAll(); //选择所有的信箱分类 //循环生成树顶级节点 for (int i = 0; i < dvGroup.Count; i++) { node = new EpointTreeNode(); node.Text = dvGroup[i]["BoxGroupName"].ToString(); node.Value = dvGroup[i]["BoxGroupID"].ToString(); dvBox.RowFilter = "BoxGroupID='" + dvGroup[i]["BoxGroupID"] + "'";//判断组下是否有信箱 node.ShowInputCtrl = false; if (dvBox.Count > 0) { node.PopulateOnDemand = true; EpointTreeNode newnode; for (int j = 0; j < dvBox.Count; j++) { newnode = new EpointTreeNode(); newnode.ShowInputCtrl = true; node.PopulateOnDemand = false; newnode.Text = dvBox[j]["BoxName"].ToString(); newnode.Value = dvBox[j]["BoxGuid"].ToString(); node.ChildNodes.Add(newnode); } } treeSendToBox.Nodes.Add(node); } }
/// <summary> /// 得到信箱分类组 /// </summary> private void AddGroupNodes() { Db_ConsultMana mana = new Db_ConsultMana(); EpointTreeNode node; DataView dvBox = BoxMana.BoxSelectAll();//选择所有的邮箱 string tmpBoxGroupID = ""; if ("TopGroup" == Frame_Config.GetConfigValue("Consult_UserSendToGroup")) { tmpBoxGroupID = BoxMana.GetDetail(treeSendToBox.Value).BoxGroupID; } else { tmpBoxGroupID = Frame_Config.GetConfigValue("Consult_UserSendToGroup"); } string[] BoxGroupIDs = tmpBoxGroupID.Split('|'); foreach (string BoxGroupID in BoxGroupIDs) { if (string.IsNullOrEmpty(BoxGroupID)) { continue; } node = new EpointTreeNode(); Detail_RG_ConsultBoxGroup boxgroup = BoxMana.BoxGroupGetDetail(BoxGroupID); node.Text = boxgroup.BoxGroupName; node.Value = boxgroup.BoxGroupID; node.ShowInputCtrl = false; dvBox.RowFilter = "BoxGroupID='" + BoxGroupID + "'";//判断组下是否有信箱 if (dvBox.Count > 0) { EpointTreeNode newnode; for (int j = 0; j < dvBox.Count; j++) { newnode = new EpointTreeNode(); newnode.ShowInputCtrl = true; newnode.Text = dvBox[j]["BoxName"].ToString(); newnode.Value = dvBox[j]["BoxGuid"].ToString(); node.ChildNodes.Add(newnode); } } treeSendToBox.Nodes.Add(node); } }
/// <summary> /// �õ���������� /// </summary> private void AddTopNodes() { Db_ConsultMana mana = new Db_ConsultMana(); bool isNeedCheck = new Db_ConsultMana().GetDetail(Request.QueryString["HistoryGuid"]).InfoStatus == 0 ? false : true; EpointTreeNode node; DataView dvBox = BoxMana.BoxSelectAll();//ѡ�����е����� DataView dvGroup = BoxMana.BoxGroupSelectAll();//ѡ�����е�������� //ѭ�������������ڵ� for (int i = 0; i < dvGroup.Count; i++) { node = new EpointTreeNode(); node.Text = dvGroup[i]["BoxGroupName"].ToString(); node.Value = dvGroup[i]["BoxGroupID"].ToString(); dvBox.RowFilter = "BoxGroupID='" + dvGroup[i]["BoxGroupID"] + "'";//�ж������Ƿ������� node.ShowInputCtrl = false; if (dvBox.Count > 0) { node.PopulateOnDemand = true; EpointTreeNode newnode; for (int j = 0; j < dvBox.Count; j++) { newnode = new EpointTreeNode(); newnode.ShowInputCtrl = true; node.PopulateOnDemand = false; newnode.Text = dvBox[j]["BoxName"].ToString(); newnode.Value = dvBox[j]["BoxGuid"].ToString(); node.ChildNodes.Add(newnode); } } treeSendToBox.Nodes.Add(node); } }
/// <summary> /// �õ���������� /// </summary> private void AddGroupNodes() { Db_ConsultMana mana = new Db_ConsultMana(); EpointTreeNode node; DataView dvBox = BoxMana.BoxSelectAll();//ѡ�����е����� string tmpBoxGroupID = ""; if ("TopGroup" == Frame_Config.GetConfigValue("Consult_UserSendToGroup")) { tmpBoxGroupID = BoxMana.GetDetail(treeSendToBox.Value).BoxGroupID; } else { tmpBoxGroupID = Frame_Config.GetConfigValue("Consult_UserSendToGroup"); } string[] BoxGroupIDs = tmpBoxGroupID.Split('|'); foreach (string BoxGroupID in BoxGroupIDs) { if (string.IsNullOrEmpty(BoxGroupID)) continue; node = new EpointTreeNode(); Detail_RG_ConsultBoxGroup boxgroup= BoxMana.BoxGroupGetDetail(BoxGroupID); node.Text = boxgroup.BoxGroupName; node.Value = boxgroup.BoxGroupID; node.ShowInputCtrl = false; dvBox.RowFilter = "BoxGroupID='" + BoxGroupID + "'";//�ж������Ƿ������� if (dvBox.Count > 0) { EpointTreeNode newnode; for (int j = 0; j < dvBox.Count; j++) { newnode = new EpointTreeNode(); newnode.ShowInputCtrl = true; newnode.Text = dvBox[j]["BoxName"].ToString(); newnode.Value = dvBox[j]["BoxGuid"].ToString(); node.ChildNodes.Add(newnode); } } treeSendToBox.Nodes.Add(node); } }
/// <summary> /// 得到信箱分类组 /// </summary> private void AddTopNodes() { Db_ConsultMana mana = new Db_ConsultMana(); bool isNeedCheck = new Db_ConsultMana().GetDetail(Request.QueryString["HistoryGuid"]).InfoStatus == 0 ? false : true; EpointTreeNode node; DataView dvBox = BoxMana.BoxSelectAll();//选择所有的邮箱 DataView dvGroup = BoxMana.BoxGroupSelectAll();//选择所有的信箱分类 //循环生成树顶级节点 for (int i = 0; i < dvGroup.Count; i++) { node = new EpointTreeNode(); node.Text = dvGroup[i]["BoxGroupName"].ToString(); node.Value = dvGroup[i]["BoxGroupID"].ToString(); dvBox.RowFilter = "BoxGroupID='" + dvGroup[i]["BoxGroupID"] + "'";//判断组下是否有信箱 node.ShowInputCtrl = false; if (dvBox.Count > 0) { node.PopulateOnDemand = true; EpointTreeNode newnode; for (int j = 0; j < dvBox.Count; j++) { newnode = new EpointTreeNode(); newnode.ShowInputCtrl = true; node.PopulateOnDemand = false; newnode.Text = dvBox[j]["BoxName"].ToString(); newnode.Value = dvBox[j]["BoxGuid"].ToString(); //if (isNeedCheck)//有未处理的则不能选择 //{ // if (mana.IsNotHandle(Request.QueryString["HistoryGuid"], dvBox[j]["BoxGuid"].ToString())) // { // newnode.CtrlEnable = false; // } //} node.ChildNodes.Add(newnode); } } TextTreeView1.Nodes.Add(node); } }