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

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

            return Json(ret, JsonRequestBehavior.AllowGet);
        }