Beispiel #1
0
        public JsonResult LoadReceiverByName(string strName)
        {
            string strErrText;
            DDSystem dd = new DDSystem();
            Receiver data = dd.LoadReceiverByName(strName, LoginAccountId, LoginStaffName, out strErrText);
            if (data == null)
            {
                return Json(null, JsonRequestBehavior.AllowGet);
            }
            else
            {
                var ret = new
                {
                    Country = data.Country,
                    Province = data.Province,
                    City = data.City,
                    Address = data.Address,
                    Contact = data.Contact,
                    ContactTel = data.ContactTel
                };

                return Json(ret, JsonRequestBehavior.AllowGet);
            }
        }