Exemple #1
0
    private void ShowInfo(int _id)
    {
        tbl_erweima model = new tbl_erweima();

        model.GetModel(_id);

        txttitle.Text      = model.home_title;
        txtImgUrl_com.Text = model.home_code;
    }
Exemple #2
0
    private void RptBind(string _strWhere, string _orderby)
    {
        this.page = AXRequest.GetQueryInt("page", 1);

        tbl_erweima bll = new tbl_erweima();

        this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
        this.rptList.DataBind();
    }
Exemple #3
0
    private bool DoEdit(int _id)
    {
        bool result = false;

        tbl_erweima model = new tbl_erweima();

        if (model.Exists(txttitle.Text.Trim(), _id))
        {
            mym.JscriptMsg(this.Page, "您输入的名称已经存在,请检查!", "", "Error");
            return(false);
        }
        model.GetModel(_id);

        model.home_title = txttitle.Text.Trim();
        model.home_code  = txtImgUrl_com.Text;

        if (model.Update())
        {
            // mym.AddAdminLog("修改", "修改商品类别:" + txttitle.Text); //记录日志
            result = true;
        }

        return(result);
    }