Beispiel #1
0
        /// <summary>
        /// 报修受理
        /// </summary>
        /// <returns></returns>
        public JsonResult RepairDetailJson(int repaidID, string exceptDate, string innderNumber, string type)
        {
            string msg = "Y";

            try
            {
                switch (type)
                {
                case "1":
                    DateTime date;
                    DateTime.TryParse(exceptDate, out date);
                    msg = repairHelper.Accept(repaidID, date, innderNumber) != null ? "Y" : "N";
                    ; break;
                }
                return(Json(new { msg = msg }));
            }
            catch (Exception)
            {
                return(Json(new { msg = msg }));
            }
        }
Beispiel #2
0
        public void TestAccept(int repid)
        {
            var rh = new RepairHelper();

            rh.Accept(repid, DateTime.Now, "");
        }