Exemple #1
0
        public ActionResult Carrier()
        {
            string SnNum = WebUtil.GetQueryStringValue <string>("SnNum");

            OutStorageEntity entity = null;

            if (!SnNum.IsEmpty())
            {
                ITopClient client = new TopClientDefault();
                Dictionary <string, string> dic = new Dictionary <string, string>();

                dic.Add("CompanyID", CompanyID);
                dic.Add("SnNum", SnNum);

                string result = client.Execute(OutStorageApiName.OutStorageApiName_GetOrder, dic);
                DataResult <OutStorageEntity> dataResult = JsonConvert.DeserializeObject <DataResult <OutStorageEntity> >(result);
                entity = dataResult.Result;
            }
            entity          = entity.IsNull() ? new OutStorageEntity() : entity;
            ViewBag.Entity  = entity;
            ViewBag.Carrier = DropDownHelper.GetCarrier(entity.CarrierNum, this.CompanyID);
            return(View());
        }