FG.aspx.cs
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:2k
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- using com.etong.BusinessRule.Zwf;
- public partial class Workflow_FG : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- int OpID = -1;
- try
- {
- OpID = Convert.ToInt16(Request.QueryString["OpID"].ToString().Trim());
- if (OpID == 7)
- {
- LB_title.Text = " 请选择分管领导";
- Page.Title = "请选择分管领导";
- }
- if (OpID == 4)
- {
- LB_title.Text = " 请选择职能审核领导";
- Page.Title = "请选择职能审核领导";
- }
- }
- catch (Exception ex)
- {
- this.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + ex.Message.Replace("'", "").Replace("rn", "").Replace("n", "") + "');</script>");
- return;
- }
- EtongZwf etongzwf = new EtongZwf();
- DataView dv = etongzwf.GetEmpLD(OpID);
- int rows = dv.Count;
- for (int i = 0; i < rows; i++)
- {
- TreeNode tnode = new TreeNode();
- tnode.Text = dv[i]["EmpName"].ToString();
- tnode.Value = dv[i]["UserID"].ToString();
- FGLDTree.Nodes.Add(tnode);
- }
- }
- }
-
- protected void FGLDTree_SelectedNodeChanged(object sender, EventArgs e)
- {
- string EmId = FGLDTree.SelectedValue;
- ClientScript.RegisterStartupScript(this.GetType(), "", "<script>window.returnValue='" + EmId + "';window.close();</script>");
- }
- }