示例#1
0
        protected void LoadInfo()
        {
            int      id = WS.RequestInt("id");
            UserForm f  = UserFormView.GetModelByID(id.ToS());

            if (f.ID < 0)
            {
                return;
            }
            txt_FormName.Text = f.FormName;
            txt_Content.Text  = f.Content;
        }
示例#2
0
        protected void btn_Save_Click(object sender, EventArgs e)
        {
            int      id = WS.RequestInt("id");
            UserForm f  = UserFormView.GetModelByID(id.ToS());

            f.FormName = txt_FormName.Text;
            f.Content  = txt_Content.Text.TrimDbDangerousChar();

            if (f.ID > 0)
            {
                UserFormView.Update(f);
            }
            else
            {
                UserFormView.Insert(f);
            }

            Js.AlertAndChangUrl("保存成功!", "UserFormList.aspx");
        }
示例#3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int formID = UserGroupView.GetModelByID(WS.RequestString("group")).RegForm;

            formString = UserFormView.GetModelByID(formID.ToS()).Content;
        }