public ActionResult OnGetRepairList(string userCode, string ztCode, string status, string orderType) { StatusReport sr = new StatusReport(); if (string.IsNullOrEmpty(userCode) || string.IsNullOrEmpty(ztCode) || string.IsNullOrEmpty(status) || string.IsNullOrEmpty(orderType)) { sr.status = "Fail"; sr.result = "信息不完整"; return(Json(sr)); } sr = RepairDal.GetRepairOrder(userCode, ztCode, status, orderType); return(Json(sr)); }
public ActionResult OnGetRepairOrder(string name, string phone) { StatusReport sr = new StatusReport(); //throw new Exception("hello world"); if (string.IsNullOrEmpty(name) || string.IsNullOrEmpty(phone)) { sr.status = "Fail"; sr.result = "信息不完整"; } else { sr = RepairDal.GetRepairOrder(name, phone); } return(Json(sr)); }