public ActionResult Edit([Bind(Prefix = "Item1", Include = "empTrainID,empID,TrainingTitle,StartDate,EndDate,DurationHours,EventSponsor,EventVenue")] EmpTraining empTraining) { if (ModelState.IsValid) { db.Entry(empTraining).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(empTraining)); }
public ActionResult Edit([Bind(Include = "WorkersMajorOccupationID,MajorOccupationID,AgeGroupID,GenderID,NumberofPopulation,YearTaken")] WorkersByMajorOCcupation workersByMajorOCcupation) { if (ModelState.IsValid) { db.Entry(workersByMajorOCcupation).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(workersByMajorOCcupation)); }
public ActionResult Edit([Bind(Include = "ProjectProfileID,FunctionID,ProgramID,AccountCodeID,OfficialCodeID,LineNumber,SectorID,ProjectTitle,ProjectDescription,ImpDeptID,ProjStartDate,ProjEndDate,ProjStatusID,ProjExpectedOutput,SourceFundID,BDIPID,ProjCatID,ProjReferenceOutput,ProjItemWork,MunicipalityID,barangayID,ProjPurok,Remarks,ProjPS,ProjMOOE,ProjCapitalOutlay,StrategicPriorityID,StrategicPriorityAreaID,MitigationTypologyID,AdaptationTypologyID")] ProjectProfile projectProfile) { if (ModelState.IsValid) { db.Entry(projectProfile).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(projectProfile)); }
public ActionResult Edit([Bind(Include = "empAttendanceMainID,StartDate,EndDate,IsPosted")] EmpAttendanceMain empAttendanceMain) { if (ModelState.IsValid) { db.Entry(empAttendanceMain).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(empAttendanceMain)); }
public ActionResult Edit([Bind(Include = "HolidayID,HolidayDescription,HolidayDate,DayTypeID,NoOfHours")] ref_Holiday ref_Holiday) { if (ModelState.IsValid) { db.Entry(ref_Holiday).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(ref_Holiday)); }
public ActionResult Edit([Bind(Include = "AttendanceDetailDTRId,empAttendanceMainID,NameDate,DTRDate,empID,LOGIN,LOGOUT,AbsHrs,AbsHrsDec,LateHrs,LateHrsDec,UnderTimeHours,UnderTimeHoursDec")] rep_AbsencesTardinessDetailsPerEmployee rep_AbsencesTardinessDetailsPerEmployee) { if (ModelState.IsValid) { db.Entry(rep_AbsencesTardinessDetailsPerEmployee).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(rep_AbsencesTardinessDetailsPerEmployee)); }
public ActionResult Edit([Bind(Include = "workID,empID,Company,StartDate,EndDate,PositionID,MonthlySalary,SalaryGradeID,SGIncrementID,AppointmentStatusID,IsGovService,IsSupervisor, DisplayPicturePath")] EmpWorkHistory empWorkHistory) { if (ModelState.IsValid) { db.Entry(empWorkHistory).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(empWorkHistory)); }
public ActionResult Edit([Bind(Include = "empLeaveAppID,empID,Fullname,LeaveTypeDescription,DateFiled,StartDate,EndDate,AppliedHours,IsApproved,IsCancelled,Supervisor,DateAction,empAttendanceMainID,LeaveReason")] Rep_EmpLeaveApplication rep_EmpLeaveApplication) { if (ModelState.IsValid) { db.Entry(rep_EmpLeaveApplication).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(rep_EmpLeaveApplication)); }
public ActionResult Edit([Bind(Include = "BDIPID,MunicipalityID,BDIPMunicipalityCode,BDIPMunicipality")] ref_BDIPperMunicipality ref_BDIPperMunicipality) { if (ModelState.IsValid) { db.Entry(ref_BDIPperMunicipality).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(ref_BDIPperMunicipality)); }
public ActionResult Edit([Bind(Include = "PopCitizenSexID,CountryID,GenderID,NumberofHousehold,YearTaken")] PopulationByCitizenshipGender populationByCitizenshipGender) { if (ModelState.IsValid) { db.Entry(populationByCitizenshipGender).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(populationByCitizenshipGender)); }
public ActionResult Edit([Bind(Include = "empVolID,empID,OrganizationName,OrganizationAddress,StartDate,EndDate,HoursVolunteered,InvolveTypeID,OrganizationNature")] EmpVolunteer empVolunteer) { if (ModelState.IsValid) { db.Entry(empVolunteer).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(empVolunteer)); }
public ActionResult Edit([Bind(Include = "SectorID,SectorCode,SectorDescription")] ref_Sector ref_Sector) { if (ModelState.IsValid) { db.Entry(ref_Sector).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(ref_Sector)); }
public ActionResult Edit([Bind(Include = "StratPriorityClassID,StrategicPriorityClassification")] ref_StrategicPriorityClassification ref_StrategicPriorityClassification) { if (ModelState.IsValid) { db.Entry(ref_StrategicPriorityClassification).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(ref_StrategicPriorityClassification)); }
public ActionResult Edit([Bind(Include = "empEducID,empID,EducLevelID,SchoolName,DegreeID,YearGraduated,Earned,StartDate,EndDate,Distinction")] EmpEducationHistory empEducationHistory) { if (ModelState.IsValid) { db.Entry(empEducationHistory).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(empEducationHistory)); }
public ActionResult Edit([Bind(Include = "PopGrowthRateID,MunicipalityID,GrowthRate,YearTaken")] PopulationGrowthRate populationGrowthRate) { if (ModelState.IsValid) { db.Entry(populationGrowthRate).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(populationGrowthRate)); }
public ActionResult Edit([Bind(Include = "CornProdID,MunicipalityID,CornID,AreaHectares,Production,ProdYield,YearTaken")] CornProduction cornProduction) { if (ModelState.IsValid) { db.Entry(cornProduction).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(cornProduction)); }
public ActionResult Edit([Bind(Include = "TypologyID,StrategicPriorityID,StrategicPriorityAreaID,StratPriorityClassID,StrategicPriorityGrpID,TypologyCode,TypologyDescription")] ref_ClimateChangeTypology ref_ClimateChangeTypology) { if (ModelState.IsValid) { db.Entry(ref_ClimateChangeTypology).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(ref_ClimateChangeTypology)); }
public ActionResult Edit([Bind(Include = "PopDistributionID,MunicipalityID,Population,YearTaken")] PopulationDistribution populationDistribution) { if (ModelState.IsValid) { db.Entry(populationDistribution).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(populationDistribution)); }
public ActionResult Edit([Bind(Include = "EthnicityID,EthnicityDesc")] ref_Ethnicity ref_Ethnicity) { if (ModelState.IsValid) { db.Entry(ref_Ethnicity).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(ref_Ethnicity)); }
public ActionResult Edit([Bind(Include = "provinceID,CountryID,RegionID,ProvinceDistrict,Capital")] ref_Province ref_Province) { if (ModelState.IsValid) { db.Entry(ref_Province).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(ref_Province)); }
public ActionResult Edit([Bind(Include = "PositionID,PositionDescription")] ref_Position ref_Position) { if (ModelState.IsValid) { db.Entry(ref_Position).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(ref_Position)); }
public ActionResult Edit([Bind(Include = "AppointmentStatusID,EmpStatusCode,EmpStatusDescription")] ref_AppointmentStatus ref_AppointmentStatus) { if (ModelState.IsValid) { db.Entry(ref_AppointmentStatus).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(ref_AppointmentStatus)); }
public ActionResult Edit([Bind(Include = "DeptID,DeptCode,DeptDescription")] ref_Department ref_Department) { if (ModelState.IsValid) { db.Entry(ref_Department).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(ref_Department)); }
public ActionResult Edit([Bind(Include = "PopMigrationID,MunicipalityID,MigratingIN,MigratingINPer,MigratingOUT,MigratingOUTPer,YearTaken")] PopulationMigrationRate populationMigrationRate) { if (ModelState.IsValid) { db.Entry(populationMigrationRate).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(populationMigrationRate)); }
public ActionResult Edit([Bind(Include = "ProjCatID,ProjCategoryCode,ProjCategoryDescription")] ref_ProjectCategory ref_ProjectCategory) { if (ModelState.IsValid) { db.Entry(ref_ProjectCategory).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(ref_ProjectCategory)); }
public ActionResult Edit([Bind(Include = "AccountCodeID,FunctionID,ProgramID,AccountCode,AccountDescription")] ref_AccountCode ref_AccountCode) { if (ModelState.IsValid) { db.Entry(ref_AccountCode).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(ref_AccountCode)); }
public ActionResult Edit([Bind(Include = "DayTypeID,DayTypeCode,DayTypeDescription")] ref_DayType ref_DayType) { if (ModelState.IsValid) { db.Entry(ref_DayType).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(ref_DayType)); }
public ActionResult Edit([Bind(Include = "empOTID,empID,AttendanceDetailDTRId,In1,Out1,OTReason,AppliedOTHoursDEC,AppliedOTHoursCHAR,SupervisorID,Remarks,DateApproved,DateApplied,IsApproved,IsDenied")] EmpOvertime empOvertime) { if (ModelState.IsValid) { db.Entry(empOvertime).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(empOvertime)); }
public ActionResult Edit([Bind(Include = "empLeaveAppID,empID,LeaveTypeID,LeaveReason,DateFiled,StartDate,EndDate,AppliedHours,ApprovedDate,ApprovedBy,IsApproved,IsWithPay,IsCancelled,Remarks,StampTime")] EmpLeaveApplication empLeaveApplication) { if (ModelState.IsValid) { db.Entry(empLeaveApplication).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(empLeaveApplication)); }
public ActionResult Edit([Bind(Include = "empCertID,empID,ExamName,Rating,ExamDate,ExamVenue,LicenseNumber,ReleaseDate")] EmpCertificate empCertificate) { if (ModelState.IsValid) { db.Entry(empCertificate).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Create")); } return(View(empCertificate)); }