Exemple #1
0
        public JsonResult LoadCarrierByName(string strName)
        {
            string   strErrText;
            DDSystem dd   = new DDSystem();
            Carrier  data = dd.LoadCarrierByName(strName, LoginAccountId, LoginStaffName, out strErrText);

            if (data == null)
            {
                return(Json(null, JsonRequestBehavior.AllowGet));
            }
            else
            {
                var ret = new
                {
                    Id           = data.Id,
                    Name         = data.Name,
                    BusinessType = data.BusinessType,
                    PaymentType  = data.PaymentType
                };

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