Beispiel #1
0
        public ActionResult DeskLoad(int ActionId)
        {
            BLL.Notice.NoticeList notice = new BLL.Notice.NoticeList();

            //获取页面权限
            Anchor.FA.Utility.ButtonPower p = new Anchor.FA.Utility.ButtonPower();
            p.ActionIDRang = UserInfo.GetRange(ActionId);//新方法
            BLL.BasicInfo.Ambulance am = new BLL.BasicInfo.Ambulance();

            var result = notice.GetAllDesk(p, UserInfo);

            return(Json(result));
        }
Beispiel #2
0
        public ActionResult NoticeSearch(int page, int rows, string order, string sort, DateTime startTime, DateTime endTime,
                                         int?sendType, string station, string vehicle, int ActionId)
        {
            BLL.Notice.NoticeList notice = new BLL.Notice.NoticeList();

            sendType = sendType == null ? -1 : sendType;
            if (station == "--请选择--" || station == "")
            {
                station = "-1";
            }
            if (vehicle == "--请选择--" || vehicle == "")
            {
                vehicle = "-1";
            }

            Anchor.FA.Utility.ButtonPower p = new Anchor.FA.Utility.ButtonPower();
            p.ActionIDRang = UserInfo.GetRange(ActionId);//新方法
            BLL.BasicInfo.Ambulance am = new BLL.BasicInfo.Ambulance();

            var result = notice.GetNoticeList(page, rows, order, sort, startTime, endTime,
                                              (int)sendType, station, vehicle, p, UserInfo);

            return(Json(result));
        }