Exemplo n.º 1
0
        public JsonResult LoadDeliverBillsOwnOrgansByTimespan(string startTime, string endTime)
        {
            string strErrText;
            DeliverSystem deliver = new DeliverSystem();
            List<Organization> listOrgan = deliver.LoadDeliverBillsOwnOrgansByTimespan(startTime, endTime, LoginAccountId, LoginStaffName, out strErrText);
            if (listOrgan == null)
            {
                throw new Exception(strErrText);
            }

            var ret = from o in listOrgan
                      select new
                      {
                          Id = o.Id.ToString(),
                          FullName = o.FullName
                      };

            return Json(ret, JsonRequestBehavior.AllowGet);
        }