コード例 #1
0
 protected void FormType_SelectedIndexChanged(object sender, EventArgs e)
 {
     //选择表单
     FormID.DataSource     = WebBLL.Tbl_FlowFormManager.GetTbl_FlowFormByType(this.FormType.SelectedValue);
     FormID.DataTextField  = "IF_Name";
     FormID.DataValueField = "ID";
     FormID.DataBind();
     FormID.Items.Insert(0, new ListItem("选择表单", ""));
 }
コード例 #2
0
        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);
                }

                //流程分类
                FlowType.DataSource     = WebBLL.Tbl_ClassManager.GetTbl_ClassByParentID(67);
                FlowType.DataTextField  = "ClassName";
                FlowType.DataValueField = "ClassName";
                FlowType.DataBind();
                //表单
                FormID.DataSource     = WebBLL.Tbl_FlowFormManager.GetTbl_FlowFormAll();
                FormID.DataTextField  = "IF_Name";
                FormID.DataValueField = "ID";
                FormID.DataBind();
                Bind();
            }
        }