コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //流程分类
         FlowType.DataSource     = WebBLL.Tbl_ClassManager.GetTbl_ClassByParentID(67);
         FlowType.DataTextField  = "ClassName";
         FlowType.DataValueField = "ClassName";
         FlowType.DataBind();
         FlowType.SelectedIndex = 0;
         //表单分类
         FormType.DataSource     = WebBLL.Tbl_ClassManager.GetTbl_ClassByParentID(61);
         FormType.DataTextField  = "ClassName";
         FormType.DataValueField = "ClassName";
         FormType.DataBind();
         FormType.Items.Insert(0, new ListItem("选择分类", ""));
         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();
            }
        }