/// <summary> /// 通过组合条件查询物资申请记录 /// </summary> /// <param name="state">物资申请记录状态 当state=3时,不按照state筛选物资申请记录</param> /// <param name="departmentid">部门ID</param> /// <returns>查询到的物资申请记录</returns> public object QueryMaterialApplication(int state, string departmentid) { MaterialapplyService materialapplyService = new MaterialapplyService(); var materialapplyList = materialapplyService.QuerybyDS(departmentid, state); return(Json(new { code = 200, msg = "Material application query successfully!", materialapplyList = materialapplyList })); }
/// <summary> /// 通过物资申请表的ID处理指定物资申请记录的状态 /// </summary> /// <param name="id">物资申请表的ID</param> /// <param name="state">物资申请状态 当state=3时,不按照state筛选物资申请记录</param> /// <returns></returns> public object HandleMaterialApplication(int id, int state) { MaterialapplyService materialapplyService = new MaterialapplyService(); materialapplyService.Update(id, state); var materialapplyList = materialapplyService.QuerybyDS("", 3); return(Json(new { code = 200, msg = "Handle application query successfully!", materialapplyList = materialapplyList })); }