Ejemplo n.º 1
0
    protected void cmdUpdteRefund_Click(object source, EventArgs e)
    {
        BLL_TRV_Refund objRefund = new BLL_TRV_Refund();

        try
        {
            objRefund.UpdateRefund(UDFLib.ConvertToInteger(hdRefundID.Value),
                                   UDFLib.ConvertToDecimal(txtNoShowAmount.Text),
                                   UDFLib.ConvertToDecimal(txtCancellationAmount.Text),
                                   UDFLib.ConvertToDecimal(txtRefundAmount.Text),
                                   UDFLib.ConvertToDecimal(txtAmountReceived.Text),
                                   txtRefundRemark.Text,
                                   UDFLib.ConvertToInteger(Session["USERID"].ToString()));
            txtNoShowAmount.Text       = "";
            txtAmountReceived.Text     = "";
            txtCancellationAmount.Text = "";
            txtRefundAmount.Text       = "";
            txtRefundRemark.Text       = "";
            string msgmodal = String.Format("hideModal('dvRefund');");
            ScriptManager.RegisterStartupScript(Page, Page.GetType(), "refundclose", msgmodal, true);


            BindRefundList();
        }
        catch { }
        finally { objRefund = null; }
    }