protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //设置只读权限
         if (Request.QueryString["type"] == "read")
         {
             btn_submit.Visible = false;
             ScriptManager.RegisterStartupScript(this, this.GetType(), "message", "$(function(){$('input').attr('readonly', 'readonly');$('select').attr('disabled', 'true');$('textarea').attr('readonly', 'readonly');});", true);
         }
         //项目
         ProjectName.DataSource     = WebBLL.Tbl_ProjectManager.GetTbl_ProjectAll();
         ProjectName.DataTextField  = "ProjectName";
         ProjectName.DataValueField = "ID";
         ProjectName.DataBind();
         //节点ID
         FlowNodeID.DataSource     = WebBLL.Tbl_FlowNodeManager.GetTbl_FlowNodeAll();
         FlowNodeID.DataTextField  = "NodeName";
         FlowNodeID.DataValueField = "ID";
         FlowNodeID.DataBind();
         //遍历绑定人员列表
         WebBLL.Tbl_UserManager.GetUsersByListBox(UserName);
         Bind();
     }
 }
Ejemplo n.º 2
0
 protected void FlowWorkID_SelectedIndexChanged(object sender, EventArgs e)
 {
     //流程工作对应的流程的节点
     FlowNodeID.DataSource     = WebBLL.Tbl_FlowNodeManager.GetDataTableByPage(20, 1, "flowid=" + FlowWorkID.SelectedValue, "nodeno asc");
     FlowNodeID.DataTextField  = "NodeName";
     FlowNodeID.DataValueField = "ID";
     FlowNodeID.DataBind();
     FlowNodeID.Items.Insert(0, new ListItem("选择节点", ""));
 }