public ActionResult Create([Bind(Include = "Id,Title,Description,Note,status,datepaymentstarted,datepaymentcompleted,terminationdate,paidby,createdBy,Guid,CreatedOn,UpdatedOn,IsDeleted,SiteId,terminatedby")] PaymentBatch paymentBatch) { if (ModelState.IsValid) { db.PaymentBatches.Add(paymentBatch); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(paymentBatch)); }
public ActionResult Create([Bind(Include = "Id,ProviderId,month,year,Batch,status,submitedVetbyUser,submitedReviewbyUser,SubmitedForReviewDate,reviewDate,reviewedBy,VetDate,SubmitedForPaymentDate,submitedPaymentbyUser,AuthorizationStatus,AuthorizationNote,DisapprovalNote,AuthorizedBy,DisapprovedBy,AuthorizedDate,DisapprovalDate,DeletionNote,Guid,CreatedOn,UpdatedOn,IsDeleted,SiteId,paymentbatchId,AmountPaid,paymentmethod,paymentref,chequeno,sourceBankName,sourceBankAccountNo,DestBankName,DestBankAccountNo,remark,paymentdate,paidby,markpaidby,ProviderName,claimscountfromclient,paymentmethodstring,paymentadvicesent,datepaymentadvicesent,isremote")] ClaimBatch claimBatch) { if (ModelState.IsValid) { db.ClaimBatches.Add(claimBatch); db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.paymentbatchId = new SelectList(db.PaymentBatches, "Id", "Title", claimBatch.paymentbatchId); return(View(claimBatch)); }
public ActionResult Create([Bind(Include = "Id,ProviderId,Enrolleeid,enrolleeFullname,enrolleeGender,enrolleeCompanyName,enrolleeCompanyId,enrolleePolicyNumber,EnrolleePlan,ClaimsSerialNo,EVSCode,DoctorsName,DoctorsId,AreaOfSpecialty,Signature,DoctorSigned,DoctorSignecDate,specialistName,AreaOfSpecialtyforspecialist,specialistphonenumber,specialistSigned,specialistSignecDate,ServiceDate,AdmissionDate,DischargeDate,Durationoftreatment,Diagnosis,TreatmentGiven,TreatmentCode,referalCode,enrolleeSigned,EnrolleeSignDate,AllprescibedDrugs,LaboratoryInvestigation,Admission,Feeding,Note,Tag,capturedBy,capturedName,vettedBy,RevettedBy,VettedDate,ReVettedDate,status,Guid,CreatedOn,UpdatedOn,IsDeleted,ClaimBatchId,SiteId,enrolleeage,ClientsideID,diagnosticsIDString,SubmitByProvider,ipaddressofprovider,MyUserId,vettedName")] Claim claim) { if (ModelState.IsValid) { db.Claims.Add(claim); db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.ClaimBatchId = new SelectList(db.ClaimBatches, "Id", "Batch", claim.ClaimBatchId); return(View(claim)); }
public ActionResult Index(int?id, int?Id, List <ClaimDrug> drugList) { if (ModelState.IsValid) { using (DB_A0009D_NovoHubEntities DbDrugs = new DB_A0009D_NovoHubEntities()) { foreach (var i in drugList) { ClaimDrug drugRows = DbDrugs.ClaimDrugs.Where(a => a.ClaimId == i.Id).FirstOrDefault(); if (drugRows != null) { drugRows.ClaimId = i.ClaimId; drugRows.costofdrug = i.costofdrug; drugRows.DrugDescription = i.DrugDescription; drugRows.DrugId = i.DrugId; drugRows.DrugName = i.DrugName; drugRows.InitialAmount = i.InitialAmount; drugRows.Quantity = i.Quantity; drugRows.rate = i.rate; drugRows.status = i.status; drugRows.VettedAmount = i.VettedAmount; drugRows.VettingComment = i.VettingComment; } } DbDrugs.SaveChanges(); } // ViewBag.Message = "Records have been Updated Successfully. '<a href='~/Services?Id = i.Id'> Next >>> </a>'"; return(RedirectToAction("Index", "Services", new { id })); } else { ViewBag.Message = "Failed ! Please try again."; return(View(drugList)); } }
public ActionResult Index(int?id, int?Id, List <ClaimService> serviceList) { if (ModelState.IsValid) { using (DB_A0009D_NovoHubEntities DbServices = new DB_A0009D_NovoHubEntities()) { foreach (var y in serviceList) { ClaimService serviceRows = DbServices.ClaimServices.Where(a => a.ClaimId == y.Id).FirstOrDefault(); if (serviceRows != null) { serviceRows.ClaimId = y.ClaimId; serviceRows.costofdrug = y.costofdrug; serviceRows.ServiceDescription = y.ServiceDescription; serviceRows.ServiceId = y.ServiceId; serviceRows.ServiceName = y.ServiceName; serviceRows.InitialAmount = y.InitialAmount; serviceRows.Duration = y.Duration; serviceRows.rate = y.rate; serviceRows.status = y.status; serviceRows.VettedAmount = y.VettedAmount; serviceRows.VettingComment = y.VettingComment; } } DbServices.SaveChanges(); } ViewBag.Message = "Records have been Updated Successfully."; return(RedirectToAction("Index", "VetClaim", new { id })); } else { ViewBag.Message = "Failed ! Please try again."; return(View(serviceList)); } }