Esempio n. 1
0
        protected void LoadInfo()
        {
            ddl_RegForm.DataSource     = UserFormView.GetModelList();
            ddl_RegForm.DataTextField  = "FormName";
            ddl_RegForm.DataValueField = "ID";
            ddl_RegForm.DataBind();

            int id = WS.RequestInt("id");

            Voodoo.Model.UserGroup g = UserGroupView.GetModelByID(id.ToS());
            if (g.ID < 0)
            {
                return;
            }
            txt_GroupName.Text        = g.GroupName;
            txt_grade.Text            = g.Grade.ToS();
            txt_MaxPost.Text          = g.MaxPost.ToS();
            chk_PostAotuAudit.Checked = g.PostAotuAudit;
            chk_EnableReg.Checked     = g.EnableReg;
            chk_RegAutoAudit.Checked  = g.RegAutoAudit;
            ddl_RegForm.SelectedValue = g.RegForm.ToS();
        }
Esempio n. 2
0
 protected void BindData()
 {
     rp_list.DataSource = UserFormView.GetModelList();
     rp_list.DataBind();
 }