public ActionResult GetApplyDetail() { string ApplyCode = Request.Form["ApplyID"].ToString(); var list = new I_ApplyBLL().getApplyDetailList(ApplyCode); return(Json(list, "appliction/json", JsonRequestBehavior.AllowGet)); }
public ActionResult CancelApply() { string ApprovalId = Request.Form["ApprovalId"].ToString(); I_Apply model = new I_Apply(); model.ApplyCode = ApprovalId; model.ApplyType = "ApplyType-4"; int res = new I_ApplyBLL().Modify(model, "ApplyCode", "ApplyType"); if (res > 0) return this.JsonResult(Utility.E_JsonResult.OK, "作废申领单成功!", null, null); else return this.JsonResult(Utility.E_JsonResult.Error, "作废申领单失败!", null, null); }
public ActionResult GetApplyList() { DateTime StartDate = Convert.ToDateTime(Request.Form["StartDate"]); DateTime EndDate = Convert.ToDateTime(Request.Form["EndDate"]); string userID = Request.Form["SelectUsers"].ToString(); string ApplyType = Request.Form["ApplyType"].ToString(); //获取页容量 int pageSize = int.Parse(Request.Form["rows"]); //获取请求的页码 int pageIndex = int.Parse(Request.Form["page"]); int total = 0; var list = new I_ApplyBLL().GetApplyList(pageIndex, pageSize, ref total, StartDate, EndDate, userID, ApplyType); return Json(new { total = total, rows = list }, "appliction/json", JsonRequestBehavior.AllowGet); }
public ActionResult GetApplyList() { DateTime StartDate = Convert.ToDateTime(Request.Form["StartDate"]); DateTime EndDate = Convert.ToDateTime(Request.Form["EndDate"]); string userID = Request.Form["SelectUsers"].ToString(); string ApplyType = Request.Form["ApplyType"].ToString(); //获取页容量 int pageSize = int.Parse(Request.Form["rows"]); //获取请求的页码 int pageIndex = int.Parse(Request.Form["page"]); int total = 0; var list = new I_ApplyBLL().GetApplyList(pageIndex, pageSize, ref total, StartDate, EndDate, userID, ApplyType); return(Json(new { total = total, rows = list }, "appliction/json", JsonRequestBehavior.AllowGet)); }
public ActionResult RejectApply() { string ApprovalId = Request.Form["ApprovalId"].ToString(); I_Apply model = new I_Apply(); model.ApplyCode = ApprovalId; model.ApplyType = "ApplyType-3"; int res = new I_ApplyBLL().Modify(model, "ApplyCode", "ApplyType"); if (res > 0) { return(this.JsonResult(Utility.E_JsonResult.OK, "拒绝申领单成功!", null, null)); } else { return(this.JsonResult(Utility.E_JsonResult.Error, "拒绝申领单失败!", null, null)); } }
public ActionResult GetApplyDetail() { string ApplyCode = Request.Form["ApplyID"].ToString(); var list = new I_ApplyBLL().getApplyDetailList(ApplyCode); return Json(list, "appliction/json", JsonRequestBehavior.AllowGet); }