public JsonResult SendBillTypeNumber(string BillTypeNumber)
        {
            StaffApplications staffApplication = new StaffApplications();
            var item = (from p in db.BillProperties where BillTypeNumber == p.Type select p).FirstOrDefault();

            staffApplication.BillTypeName = item.TypeName;
            return Json(staffApplication);
        }
 public JsonResult SendData(string StaffNumber)
 {
     StaffApplications staffApplication = new StaffApplications();
     var itemStaff = (from p in db.Staffs
                      where StaffNumber == p.StaffNumber
                      select p.Name).FirstOrDefault();
     //赋值
     staffApplication.StaffName = itemStaff;
     //staffChange.EffectiveDate = null;
     staffApplication.HopeLeaveDate = null;
     staffApplication.ApplyDate = null;
     return Json(staffApplication);
 }
 public ActionResult Edit(StaffApplications staffApplications)
 {
     if (ModelState.IsValid)
     {
         db.Entry(staffApplications).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(staffApplications);
 }