Exemplo n.º 1
0
        void InitControl()
        {
            UserHelpGroupQueryModel queryModel = new UserHelpGroupQueryModel();

            queryModel.UserCodeEqual = user.UserCode;
            UserHelpGroupBFL bfl = new UserHelpGroupBFL();

            this.GroupName.DataSource = bfl.GetUserHelpGroupList(queryModel);
            this.GroupName.DataBind();
        }
Exemplo n.º 2
0
    protected void btnAddGroup_Click1(object sender, EventArgs e)
    {
        TextBox            tbxGroupName = (TextBox)(this.GridView2.Controls[0].Controls[0].FindControl("tbxGroupName"));
        UserHelpGroupBFL   gBFL         = new UserHelpGroupBFL();
        UserHelpGroupModel gModel       = new UserHelpGroupModel();

        gModel.GroupName  = tbxGroupName.Text.Trim();
        gModel.CreateTime = DateTime.Now;
        gModel.UserCode   = user.UserCode;
        gBFL.Insert(gModel);
        Response.Write("<script>window.parent.location.reload();</script>");
    }