Example #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]);
 }
Example #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);
    }
Example #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();
    }
Example #4
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     FVRefundApplication.InsertItem(true);
 }
Example #5
0
 protected void FVRefundApplication_PageIndexChanging(object sender, FormViewPageEventArgs e)
 {
     string TxtTotalValueOfStamps = ((TextBox)FVRefundApplication.FindControl("TxtTotalValueOfStamps")).Text;
 }
Example #6
0
 protected void Button3_Click(object sender, EventArgs e)
 {
     mvRefund.ActiveViewIndex = 1;
     FVRefundApplication.ChangeMode(FormViewMode.Edit);
 }