Ejemplo n.º 1
0
        public JsonResult LoadGenerateBusinessPayersByTimespan(string startTime, string endTime)
        {
            string strErrText;
            CustomerSystem customer = new CustomerSystem();
            List<Customer> listPayer = customer.LoadGenerateBusinessPayersByTimespan(startTime, endTime, LoginAccountId, LoginStaffName, out strErrText);
            if (listPayer == null)
            {
                throw new Exception(strErrText);
            }

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

            return Json(ret, JsonRequestBehavior.AllowGet);
        }