Beispiel #1
0
        /// <summary>
        /// 产品财产所在地
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>

        public ProductPropertyAreaResp GetProductPropertyArea(ProductPropertyAreaReq model)
        {
            try
            {
                string methodName = "getProductPropertyArea";
                model.customkey = Customkey;//costomKey!=Customkey ?
                string strJson   = SerializerHelper.ToJson(model);
                string sign      = UtilityHelper.Utils.MD5(VI + strJson);
                string url       = URLBaseMoFang + methodName + ".html?sign=" + sign;
                string retrunStr = UtilityHelper.HttpService.GetHttpWebResponseByRestSharp(url, strJson);
                ProductPropertyAreaResp outModel = new ProductPropertyAreaResp();
                outModel = SerializerHelper.FromJsonTo <ProductPropertyAreaResp>(retrunStr);
                if (outModel.respstat != "0000")
                {
                    ReceivedLog(model.transNo, "GetProductPropertyArea", outModel.respmsg);
                }
                return(outModel);
            }
            catch (Exception ex)
            {
                ExceptionLogBLL.WriteExceptionLogToDB(ex.ToString());

                return(null);
            }
        }
Beispiel #2
0
        /// <summary>
        /// 获取产品财产所在地
        /// </summary>
        static public Object GetProductPropertyArea()
        {
            string result = string.Empty;

            try
            {
                #region 获取列表

                BaoxianDataBLL         baoxianDataBLL = new BaoxianDataBLL();
                ProductPropertyAreaReq model          = new ProductPropertyAreaReq();
                model.transNo  = DNTRequest.GetString("transNo");
                model.caseCode = DNTRequest.GetString("caseCode");
                model.areaCode = DNTRequest.GetString("areaCode");
                ProductPropertyAreaResp res = baoxianDataBLL.GetProductPropertyArea(model);

                object obj = new
                {
                    result = true,
                    msg    = "",
                    data   = res.areas,
                };
                result = Newtonsoft.Json.JsonConvert.SerializeObject(obj);

                #endregion
            }
            catch (Exception ex)
            {
                result = DNTRequest.GetResultJson(false, "操作异常,请稍候再试", null);
                Log.WriteLog(" " + ex);
            }
            return(result);
        }
Beispiel #3
0
        public void ProductPropertyArea()
        {
            BaoxianDataBLL         baoxianDataBLL = new BaoxianDataBLL();
            ProductPropertyAreaReq model          = new ProductPropertyAreaReq();

            model.transNo = UtilityHelper.CommonHelper.OrderNoOne();
            //model.costomKey = "bowangjishi"; //costomKey!=Customkey ?
            model.caseCode = "0001075211202628";
            model.areaCode = "110000";
            var res = baoxianDataBLL.GetProductPropertyArea(model);
        }