private void TViewDept_Create(int iSysID) { this.TViewDept.Nodes.Clear(); DeptManageDb deptManageDb = new DeptManageDb(); DataSet allDepartmentSet = deptManageDb.GetAllDepartmentSet(); DataTable arg_29_0 = allDepartmentSet.Tables[0]; this.Tree_Bind(); string hT; if ((hT = this.HT) != null) { if (hT == "1") { this.Page.RegisterClientScriptBlock("gourl", "<SCRIPT language=\"JavaScript\">parent.FraHuman.location.href='human.aspx?sysid=" + iSysID.ToString() + "&deptid=0';</SCRIPT>"); return; } if (hT == "2") { this.Page.RegisterClientScriptBlock("gourl", "<SCRIPT language=\"JavaScript\">parent.FraHuman.location.href='human2.aspx?sysid=" + iSysID.ToString() + "&deptid=0';</SCRIPT>"); return; } if (!(hT == "3")) { return; } this.Page.RegisterClientScriptBlock("gourl", "<SCRIPT language=\"JavaScript\">parent.FraHuman.location.href='human3.aspx?sysid=" + iSysID.ToString() + "&deptid=0';</SCRIPT>"); } }
private void TViewDept_Create() { this.TViewDept.Nodes.Clear(); DeptManageDb deptManageDb = new DeptManageDb(); DataSet allDepartmentSet = deptManageDb.GetAllDepartmentSet(); DataTable deptDTable = allDepartmentSet.Tables[0]; this.TViewDept_Generate(this.TViewDept.Nodes, deptDTable, "0"); }
private void TViewDept_Create() { this.TViewDept.Nodes.Clear(); DeptManageDb deptManageDb = new DeptManageDb(); DataSet allDepartmentSet = deptManageDb.GetAllDepartmentSet(); DataTable deptDTable = allDepartmentSet.Tables[0]; this.TViewDept_Generate(this.TViewDept.Nodes, deptDTable, "0"); this.Page.RegisterClientScriptBlock("gourl", "<SCRIPT language=\"JavaScript\">parent.FraHuman.location.href='human.aspx?deptid=0';</SCRIPT>"); }
private void TViewDept_Create(int iSysID) { this.TView.Nodes.Clear(); DeptManageDb deptManageDb = new DeptManageDb(); DataSet allDepartmentSet = deptManageDb.GetAllDepartmentSet(); DataTable deptDTable = allDepartmentSet.Tables[0]; TreeNode preNodes = new TreeNode(); this.TViewDept_Generate(preNodes, deptDTable, "0", iSysID); this.Page.RegisterClientScriptBlock("gourl", "<SCRIPT language=\"JavaScript\">parent.FraHuman.location.href='human.aspx?sysid=" + iSysID.ToString() + "&deptid=0';</SCRIPT>"); }