コード例 #1
0
 public ActionResult Update(tblDepartment department)
 {
     if (ModelState.IsValid)
     {
         db.Entry(department).State = EntityState.Modified;
         db.SaveChanges();
     }
     return(Json(department, JsonRequestBehavior.AllowGet));
 }
コード例 #2
0
 public ActionResult Update(tblSection section)
 {
     if (ModelState.IsValid)
     {
         db.Entry(section).State = EntityState.Modified;
         db.SaveChanges();
     }
     return(Json(section, JsonRequestBehavior.AllowGet));
 }
コード例 #3
0
 public ActionResult Update(tblEmployeeType employeeType)
 {
     if (ModelState.IsValid)
     {
         db.Entry(employeeType).State = EntityState.Modified;
         db.SaveChanges();
     }
     return(Json(employeeType, JsonRequestBehavior.AllowGet));
 }
コード例 #4
0
 public ActionResult Edit([Bind(Include = "DivCode,Division")] tblDivision tblDivision)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tblDivision).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tblDivision));
 }
コード例 #5
0
 public ActionResult Edit([Bind(Include = "EmpCode,AttDate,InHour,InMinute,OutHour,OutMinute,AttStatus,TotalRegularHour,Remarks")] tblAttendence tblAttendence)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tblAttendence).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.EmpCode = new SelectList(db.tblEmployees, "EmpCode", "EmpName", tblAttendence.EmpCode);
     return(View(tblAttendence));
 }
コード例 #6
0
 public ActionResult Edit([Bind(Include = "TRCode,TRDate,OldDeptCode,NewDeptCode,OldDesignationCode,NewDesigtnationCode,OldSecCode,NewSecCode,OldDivCode,NewDivCode,TrActivateDate,EmpCode,StateStatus,Remarks,EmpName")] tbleTransferInfo tbleTransferInfo)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbleTransferInfo).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.EmpCode = new SelectList(db.tblEmployees, "EmpCode", "EmpName", tbleTransferInfo.EmpCode);
     return(View(tbleTransferInfo));
 }
コード例 #7
0
 public ActionResult Edit([Bind(Include = "BenefitCode,EmpCode,BenefitAmount,BenefitDate,BenefitType,PreviousNetSalary,NewNetSalary,Gross,Basic,HouseRent,Medical,ConvenceAll,CashIntensive,launceAllowance,otherAllowance,StateStatus,BenifitActiveDate,Remarks")] tblBenefit tblBenefit)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tblBenefit).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.EmpCode = new SelectList(db.tblEmployees, "EmpCode", "EmpName", tblBenefit.EmpCode);
     return(View(tblBenefit));
 }
コード例 #8
0
 public ActionResult Edit([Bind(Include = "DesigCode,Designation,DeptCode")] tblDesignation tblDesignation)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tblDesignation).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.DeptCode = new SelectList(db.tblDepartments, "DeptCode", "DepartmentName", tblDesignation.DeptCode);
     return(View(tblDesignation));
 }
コード例 #9
0
 public ActionResult Edit([Bind(Include = "EmpCode,EmpName,Address,Email,DOB,FatherName,MotherName,ContactNo,Gender,Nationality,Religion,NID,JoiningDate,DeptCode,DesigCode,SecCode,DivCode,EmpTypeCode,CurrentSalary,AccNo,BankName")] tblEmployee tblEmployee)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tblEmployee).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.DeptCode    = new SelectList(db.tblDepartments, "DeptCode", "DepartmentName", tblEmployee.DeptCode);
     ViewBag.DesigCode   = new SelectList(db.tblDesignations, "DesigCode", "Designation", tblEmployee.DesigCode);
     ViewBag.DivCode     = new SelectList(db.tblDivisions, "DivCode", "Division", tblEmployee.DivCode);
     ViewBag.EmpTypeCode = new SelectList(db.tblEmployeeTypes, "EmpTypecode", "EmpType", tblEmployee.EmpTypeCode);
     ViewBag.SecCode     = new SelectList(db.tblSections, "SecCode", "SectionName", tblEmployee.SecCode);
     return(View(tblEmployee));
 }