コード例 #1
0
ファイル: RefundList.aspx.cs プロジェクト: 15831944/JIBE-ERP
    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; }
    }
コード例 #2
0
ファイル: RefundList.aspx.cs プロジェクト: 15831944/JIBE-ERP
    protected void BindRefundList()
    {
        int rowcount = ucCustomPagerItems.isCountRecord;

        string         status    = ViewState["Status"].ToString();
        BLL_TRV_Refund objRefund = new BLL_TRV_Refund();

        int VCode = 0;

        if (!String.IsNullOrEmpty(cmbVessel.SelectedValue))
        {
            VCode = Convert.ToInt32(cmbVessel.SelectedValue);
        }

        DataSet ds = new DataSet();

        ds = objRefund.GetRefund_RequestList(Convert.ToInt32(cmbFleet.SelectedValue), VCode, Convert.ToInt32(cmbSupplier.SelectedValue),
                                             txtSectorFrom.Text, txtSectorTo.Text, txtTrvDateFrom.Text, txtTrvDateTo.Text, status, txtPaxName.Text
                                             , ucCustomPagerItems.CurrentPageIndex, ucCustomPagerItems.PageSize, ref rowcount);

        if (ucCustomPagerItems.isCountRecord == 1)
        {
            ucCustomPagerItems.CountTotalRec = rowcount.ToString();
            ucCustomPagerItems.BuildPager();
        }

        rptParent.DataSource = ds;
        rptParent.DataBind();
    }