Esempio n. 1
0
    //删除一行记录
    //modify  by ggh
    //
    protected void rptPAcount_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        string type = e.CommandName;

        Id = Convert.ToInt32(e.CommandArgument);

        if (type == "del")
        {
            Hi.Model.PAY_PaymentBank PAmodel = PAbll.GetModel(Id);

            if (PAmodel != null)
            {
                PAmodel.dr = 1;
                bool falg = PAbll.Update(PAmodel);
                if (falg)
                {
                    JScript.AlertMsgOne(this, "操作成功!", JScript.IconOption.笑脸);
                    Bind();
                }
            }
        }
    }
Esempio n. 2
0
    //删除一行记录
    //modify  by ggh
    //
    protected void rptPAcount_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        string type = e.CommandName;

        Id = Convert.ToInt32(e.CommandArgument);

        if (type == "del")
        {
            Hi.Model.PAY_PaymentBank PAmodel = PAbll.GetModel(Id);

            if (PAmodel != null)
            {
                PAmodel.dr = 1;
                bool falg = PAbll.Update(PAmodel);
                if (falg)
                {
                    falg = new Hi.BLL.PAY_PaymentAccountdtl().DeldtlBYpbID(Id);
                    Bind();
                }
            }
        }
    }
Esempio n. 3
0
    /// <summary>
    /// 复核
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void btnAudit_Click(object sender, EventArgs e)
    {
        Hi.BLL.PAY_PaymentBank   PAbll   = new Hi.BLL.PAY_PaymentBank();
        Hi.Model.PAY_PaymentBank PAmodel = PAbll.GetModel(this.KeyID);

        if (PAmodel != null)
        {
            PAmodel.Start = 1;
            bool falg = PAbll.Update(PAmodel);
            if (falg)
            {
                JScript.ShowAlert(this, "操作成功!");
                Bind();
            }
        }
    }