private TreeNodeCollection AddTipoApparecchiatura(DataRow Dr, TreeNodeCollection nodes) { string descrizione = Dr["eq_std"].ToString() + " " + Dr["family_description"].ToString(); nodes.Add(Node(descrizione, "apparecchaiture", "", false, false)); return(nodes); }
private TreeNodeCollection AddNodesServizi(DataRow Dr, TreeNodeCollection nodes) { string descrizione = Dr["ID"].ToString() + "&servizio_id=" + Dr["servizi_id"].ToString(); nodes.Add(Node(Dr["DESCRIZIONE"].ToString(), "servizio", descrizione, true, true)); return(nodes); }
private void TViewDept_Generate(Microsoft.Web.UI.WebControls.TreeNodeCollection preNodes, DataTable deptDTable, string isjCode) { DataRow[] array = deptDTable.Select("i_sjdm=" + isjCode); DataRow[] array2 = array; for (int i = 0; i < array2.Length; i++) { DataRow dataRow = array2[i]; Microsoft.Web.UI.WebControls.TreeNode treeNode = new Microsoft.Web.UI.WebControls.TreeNode(); treeNode.NodeData = dataRow["i_bmdm"].ToString(); treeNode.Text = dataRow["v_bmmc"].ToString(); treeNode.Target = "_self"; treeNode.NavigateUrl = "javascript:clicknode('" + treeNode.NodeData + "');"; preNodes.Add(treeNode); this.TViewDept_Generate(treeNode.Nodes, deptDTable, dataRow["i_bmdm"].ToString()); } }
private TreeNodeCollection AddNodesServizi(string id_bl, DataRow Dr, TreeNodeCollection nodes) { TreeNode n = new TreeNode(); n.Type = "servizio"; n.Text = Dr["DESCRIZIONE"].ToString(); n.Target = Dr["ID"].ToString(); // Uso la proprietà Target per memorizzare l'ID n.CheckBox = true; //controllo se il servizio in esame è già associato al ruolo per quel BL Classi.MailSend _MailSend = new TheSite.Classi.MailSend(); bool stato = _MailSend.ControllaEmailBlServizi(itemId, Int32.Parse(id_bl), Int32.Parse(n.Target)); n.Checked = stato; nodes.Add(n); return(nodes); }
private void TViewDept_Generate(Microsoft.Web.UI.WebControls.TreeNodeCollection preNodes, DataTable deptDTable, string isjCode, int iSysID) { DataRow[] array = deptDTable.Select("i_sjdm=" + isjCode); DataRow[] array2 = array; for (int i = 0; i < array2.Length; i++) { DataRow dataRow = array2[i]; Microsoft.Web.UI.WebControls.TreeNode treeNode = new Microsoft.Web.UI.WebControls.TreeNode(); treeNode.NodeData = dataRow["i_bmdm"].ToString(); treeNode.Text = dataRow["v_bmmc"].ToString(); string hT; if (dataRow["i_bmdm"].ToString().Trim() != "1" && (hT = this.HT) != null) { if (!(hT == "1")) { if (!(hT == "2")) { if (hT == "3") { treeNode.NavigateUrl = "human3.aspx?sysid=" + this._iSysID.ToString() + "&deptid=" + dataRow["i_bmdm"].ToString(); treeNode.Target = "FraHuman"; } } else { treeNode.NavigateUrl = "human2.aspx?sysid=" + this._iSysID.ToString() + "&deptid=" + dataRow["i_bmdm"].ToString(); treeNode.Target = "FraHuman"; } } else { treeNode.NavigateUrl = "human.aspx?sysid=" + this._iSysID.ToString() + "&deptid=" + dataRow["i_bmdm"].ToString(); treeNode.Target = "FraHuman"; } } preNodes.Add(treeNode); this.TViewDept_Generate(treeNode.Nodes, deptDTable, dataRow["i_bmdm"].ToString(), iSysID); } }
private void AddApparecchiatura(DataRow Dr, TreeNodeCollection nodes) { string descrizione = Dr["eq_std"].ToString() + " " + Dr["EQ_ID"].ToString(); nodes.Add(Node(descrizione, "apparecchiatura", Dr["EQ_ID"].ToString(), true, false)); }
private TreeNodeCollection AddNodesServizi(DataRow Dr, TreeNodeCollection nodes) { nodes.Add(Node(Dr["DESCRIZIONE"].ToString(), "servizio", "", false)); return(nodes); }