Пример #1
0
 public ActionResult Edit()
 {
     Business.Sys_EmployeeSalary Sys_EmployeeSalary = new Business.Sys_EmployeeSalary();
     Model.EmployeeSalary        EmployeeSalary     = Sys_EmployeeSalary.GetModel(Request["id"]);
     ViewData["SexListItems"]  = GetSex(EmployeeSalary.Sex);
     ViewData["GetMonthItems"] = GetMonthItems(EmployeeSalary.Month.ToString());
     return(View(EmployeeSalary));
 }
Пример #2
0
 public ActionResult Edit(Model.EmployeeSalary EmployeeSalary)
 {
     Business.Sys_EmployeeSalary Sys_EmployeeSalary = new Business.Sys_EmployeeSalary();
     Sys_EmployeeSalary.Update(EmployeeSalary);
     ViewData["SexListItems"]  = GetSex(EmployeeSalary.Sex);
     ViewData["GetMonthItems"] = GetMonthItems(EmployeeSalary.Month.ToString());
     Response.Write("<script>parent.layer.closeAll();</script>");
     return(View());
 }
Пример #3
0
 public ActionResult Add(Model.EmployeeSalary EmployeeSalary)
 {
     ViewData["SexListItems"]  = GetSex();
     ViewData["GetMonthItems"] = GetMonthItems();
     Business.Sys_EmployeeSalary Sys_EmployeeSalary = new Business.Sys_EmployeeSalary();
     Sys_EmployeeSalary.Add(EmployeeSalary);
     Response.Write("<script>parent.layer.closeAll();</script>");
     return(View());
 }
Пример #4
0
        public ActionResult GetList(int limit, int offset, string Name)
        {
            Business.Sys_EmployeeSalary Sys_EmployeeSalary = new Business.Sys_EmployeeSalary();
            StringBuilder sb = new StringBuilder();

            if (!string.IsNullOrEmpty(Name))
            {
                sb.Append(" and Name='" + Name + "'");
            }
            return(Json(new { total = Sys_EmployeeSalary.GetUserAdminListCount(sb.ToString()), rows = Sys_EmployeeSalary.UserAdminList(limit, offset, sb.ToString()) }, JsonRequestBehavior.AllowGet));
        }
Пример #5
0
 public ActionResult Delete()
 {
     Business.Sys_EmployeeSalary Sys_EmployeeSalary = new Business.Sys_EmployeeSalary();
     Sys_EmployeeSalary.Delete(Request["id"]);
     return(Content("1"));
 }