コード例 #1
0
 protected void GvRefundAlerts_SelectedIndexChanged(object sender, EventArgs e)
 {
     odsRefundDetails.SelectParameters["RefundApplicationId"].DefaultValue = GvRefundAlerts.SelectedDataKey.Value.ToString();
     //FVRefundApplication.ChangeMode(FormViewMode.Edit);
     FVRefundApplication.ChangeMode(FormViewMode.ReadOnly);
     mvRefund.SetActiveView(mvRefund.Views[0]);
 }
コード例 #2
0
    protected void btnApprove_Click(object sender, EventArgs e)
    {
        //RefundApplication RfApplication = new RefundApplication();
        //RfApplication.InsertNewRefundOrders(
        string            userName      = Thread.CurrentPrincipal.Identity.Name;
        string            RefundOrderID = ((TextBox)FVRefundApplication.FindControl("txtRefundOrderId")).Text;
        DateTime          RefundDate    = Convert.ToDateTime(((TextBox)FVRefundApplication.FindControl("txtRefundDate")).Text);
        RefundApplication RfApplication = new RefundApplication();
        Guid      RefundApplicationId   = (Guid)FVRefundApplication.SelectedValue;
        DataTable dtTotAmount           = RfApplication.GetAllRefundApplicationsById(RefundApplicationId);
        string    TotAmount             = Convert.ToString(dtTotAmount.Rows[0]["TotalValueOfStamps"]);
        decimal   cTotAmount            = Convert.ToDecimal(TotAmount);
        decimal   PenalityAmount        = (cTotAmount) * Convert.ToDecimal(0.10);
        decimal   RefundAmount          = (cTotAmount) * Convert.ToDecimal(0.90);

        RfApplication.UpdateRefundOrderDetails(RefundApplicationId, PenalityAmount, RefundAmount, RefundOrderID, RefundDate, userName, DateTime.Now);
    }
コード例 #3
0
    protected void EditOnApproving_Click(object sender, EventArgs e)
    {
        FVRefundApplication.ChangeMode(FormViewMode.Edit);

        //string RefundOrderID = ((TextBox) FVRefundApplication.FindControl("txtRefundOrderId")).Text;
        //string RefundDate = Convert.ToDateTime(((TextBox) FVRefundApplication.FindControl("txtRefundDate")).Text);
        //RefundApplication RfApplication = new RefundApplication();
        //Guid RefundApplicationId = (Guid) FVRefundApplication.SelectedValue;
        //DataTable dt = new DataTable();
        //string totAmount = RfApplication.GetAllRefundApplicationsById(RefundApplicationId);
        //decimal CtotAmount = Convert.ToString(dtTotAmount.Rows[0]["TotalValueOfStamps"]);
        //decimal cTotAmount = Convert.ToDecimal(TotAmount);
        //decimal PenalityAmount = (cTotAmount) * Convert.ToString(0.10);
        //decimal RefundAmount = (cTotAmount) * Convert.ToDecimal(0.90);
        //RfApplication.GetAllRefundOrders();
        //RfApplication.SelectRefundStampDetailsByRefundId(RefundApplicationId);
        //DataTable dtNew = new DataTable();
        //RfApplication.GetAllStampDetails();
    }
コード例 #4
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     FVRefundApplication.InsertItem(true);
 }
コード例 #5
0
 protected void FVRefundApplication_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     string TxtTotalValueOfStamps = ((TextBox)FVRefundApplication.FindControl("TxtTotalValueOfStamps")).Text;
 }
コード例 #6
0
 protected void Button3_Click(object sender, EventArgs e)
 {
     mvRefund.ActiveViewIndex = 1;
     FVRefundApplication.ChangeMode(FormViewMode.Edit);
 }