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]); }
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(); }
protected void Button3_Click(object sender, EventArgs e) { mvRefund.ActiveViewIndex = 1; FVRefundApplication.ChangeMode(FormViewMode.Edit); }