/// <summary> /// 员工入职页面 /// </summary> /// <returns></returns> public ActionResult EmployeeEntry() { if (Request["Number"] != null) //修改 { if (Request["IsShowInfo"] != null) //查看详情 { ViewData["IsShowInfo"] = "True"; } Business.Sys_EmployeeEntry Sys_EmployeeEntry = new Business.Sys_EmployeeEntry(); return(View(Sys_EmployeeEntry.GetInfoByNumber(Request["Number"]))); } return(View()); }
public ActionResult EmployeeEntry(Model.EmployeeEntry EmployeeEntry) { Business.Sys_EmployeeEntry Sys_EmployeeEntry = new Business.Sys_EmployeeEntry(); if (!string.IsNullOrEmpty(EmployeeEntry.Number)) { Sys_EmployeeEntry.UpdateEmployeeEntry(EmployeeEntry); Response.Write("<script>parent.layer.alert('修改成功!');</script>"); } else { EmployeeEntry.Number = Utility.ChangeText.OrderIdCreate(); if (Sys_EmployeeEntry.InsertEmployeeEntry(EmployeeEntry)) { Response.Write("<script>parent.layer.alert('添加成功!');</script>"); } } //页面待定 调往订单详情页面 return(View()); }