Exemplo n.º 1
0
 public ActionResult EditFeeDetail(StudentFeeDetail objClass)
 {
     using (wisdomDBEntities db = new wisdomDBEntities())
     {
         ClassController _class = new ClassController();
         objClass.Class = _class.GetClassID(objClass.Class).ToString();
         StudentFeeDetail Existing = db.StudentFeeDetails.Find(objClass.Id);
         Existing.Name         = objClass.Name;
         Existing.Class        = objClass.Class;
         Existing.AdmissionNo  = objClass.AdmissionNo;
         Existing.ReciptNo     = objClass.ReciptNo;
         Existing.Months       = objClass.Months;
         Existing.PaidAmount   = objClass.PaidAmount;
         Existing.PreviousDue  = objClass.PreviousDue;
         Existing.TotalAmount  = objClass.TotalAmount;
         Existing.GrandTotal   = objClass.GrandTotal;
         Existing.Balance      = objClass.Balance;
         Existing.Concession   = objClass.Concession;
         Existing.Fine         = objClass.Fine;
         Existing.OldBalanced  = objClass.OldBalanced;
         Existing.TransportFee = objClass.TransportFee;
         Existing.BalancedShow = objClass.BalancedShow;
         db.SaveChanges();
         return(RedirectToAction("StudentFeeDetailList"));
     }
 }
Exemplo n.º 2
0
 public ActionResult EditFeeHeading(NewFeeHeading objNewFeeHeading)
 {
     using (wisdomDBEntities db = new wisdomDBEntities())
     {
         ClassController _class   = new ClassController();
         NewFeeHeading   Existing = db.NewFeeHeadings.Find(objNewFeeHeading.FID);
         Existing.January   = objNewFeeHeading.January;
         Existing.February  = objNewFeeHeading.February;
         Existing.March     = objNewFeeHeading.March;
         Existing.April     = objNewFeeHeading.April;
         Existing.May       = objNewFeeHeading.May;
         Existing.June      = objNewFeeHeading.June;
         Existing.July      = objNewFeeHeading.July;
         Existing.August    = objNewFeeHeading.August;
         Existing.September = objNewFeeHeading.September;
         Existing.October   = objNewFeeHeading.October;
         Existing.November  = objNewFeeHeading.November;
         Existing.December  = objNewFeeHeading.December;
         Existing.Class     = Convert.ToString(_class.GetClassID(objNewFeeHeading.Class));
         Existing.Heading   = objNewFeeHeading.Heading;
         Existing.IsMonth   = objNewFeeHeading.IsMonth;
         db.SaveChanges();
         return(RedirectToAction("FeeHeadings"));
     }
 }