Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }