public JsonResult ApproveSpecialOrderWithdrew(DemandOrderInput demandOrderInput) { string msg; _orderManageService.ApproveSpecialOrderWithdrew(demandOrderInput, out msg); return(Json(msg)); }
public JsonResult WithdrewMyApplicationBySpecial(DemandOrderInput demandOrderInput) { string msg; demandOrderInput.UserId = HttpContext.Session.GetString("UserId"); _orderManageService.WithdrewMyApplicationBySpecial(demandOrderInput, out msg); return(Json(msg)); }
public JsonResult ReleaseOrder(DemandOrderInput demandOrderInput) { string msg; demandOrderInput.EnterpriseId = HttpContext.Session.GetString("UserId"); if (string.IsNullOrEmpty(demandOrderInput.EnterpriseId)) { msg = "未登录!或登录已失效!"; return(Json(msg)); } if (string.IsNullOrEmpty(demandOrderInput.CategoryId) || string.IsNullOrEmpty(demandOrderInput.Unit)) { msg = "必须选择类别与单位!"; return(Json(msg)); } if ((demandOrderInput.Name.Contains("铁") && demandOrderInput.CategoryId != "G1001") || (demandOrderInput.Name.Contains("纸") && demandOrderInput.CategoryId != "G1002") || (demandOrderInput.Name.Contains("塑料") && demandOrderInput.CategoryId != "G1003") || (demandOrderInput.Name.Contains("玻璃瓶") && demandOrderInput.CategoryId != "G1004")) { msg = "所选类目不正确,不与物品们相匹配!"; return(Json(msg)); } _orderManageService.ReleaseOrder(demandOrderInput, out msg); return(Json(msg)); }