public string RepairInfoDelete(wxdj wxdjInfo)
        {
            wxdj wxdj = baseDAL.Get <wxdj>().FirstOrDefault(c => c.wxdbh == wxdjInfo.wxdbh);

            baseDAL.DeleteItem(wxdj);
            if (baseDAL.SaveAllChanges())
            {
                return("删除成功!");
            }
            else
            {
                return("删除失败!");
            }
        }
        //返回维修单数据
        public JsonResult RepairInfoShow(wxdj wxdjInfo)
        {
            DateTime dt       = DateTime.Now;
            string   today    = dt.ToShortDateString();
            string   todayB   = today + " 00:00:00";
            string   todayE   = today + " 23:59:59";
            DateTime begin    = Convert.ToDateTime(todayB);
            DateTime end      = Convert.ToDateTime(todayE);
            var      wxdjlist = baseDAL.Get <wxdj>().Where(c => c.xlsj >= begin).
                                Where(c => c.xlsj <= end).
                                Where(c => c.ywbh == wxdjInfo.ywbh).ToList().
                                Select(c =>
            {
                if (c.hb == 0)
                {
                    return(new
                    {
                        xlsj = c.xlsj.ToString("yyyy-MM-dd HH:mm:ss"),
                        bzm = c.bzm,
                        hb = "否",
                        czy = c.czy,
                        wxdbh = c.wxdbh
                    });
                }
                else
                {
                    return new
                    {
                        xlsj  = c.xlsj.ToString("yyyy-MM-dd HH:mm:ss"),
                        bzm   = c.bzm,
                        hb    = "是",
                        czy   = c.czy,
                        wxdbh = c.wxdbh
                    }
                };
            });

            return(Json(wxdjlist));
        }