Beispiel #1
0
        public JsonResult LoadDeliverBillsPayersByTimespan(string startTime, string endTime)
        {
            string strErrText;
            DeliverSystem deliver = new DeliverSystem();
            List<Customer> listPayer = deliver.LoadDeliverBillsPayersByTimespan(startTime, endTime, LoginAccountId, LoginStaffName, out strErrText);
            if (listPayer == null)
            {
                throw new Exception(strErrText);
            }

            var ret = from p in listPayer
                      select new
                      {
                          Id = p.Id.ToString(),
                          Name = p.Name,
                          FullName = p.FullName
                      };

            return Json(ret, JsonRequestBehavior.AllowGet);
        }