Пример #1
0
        static void Main(string[] args)
        {
            /*
             * //  lm  For Test UpLoad
             * string upLoadImageUrl = "http://localhost:14249/UpLoad/Post";
             * string imageByte = "/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/4QMraHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjMtYzAxMSA2Ni4xNDU2NjEsIDIwMTIvMDIvMDYtMTQ6NTY6MjcgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjk2RTEwRjAwRkUwOTExRTRCNTQzRkRBNzQ3OEM3ODQ0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjk2RTEwRjAxRkUwOTExRTRCNTQzRkRBNzQ3OEM3ODQ0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OTZFMTBFRkVGRTA5MTFFNEI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Ynz6eGvI4mRtDWC1o3fbery57iXPNzjv+2wLF1u0/3WCy+57oR2EMrVwqsoFqEelT59N2ikT8ywvnJ4dNSRKnaf7p+3mEndCmyZI1ryqCFWCweVwsm2zSRFiKx8gBy89EWi7eod4VMPLXzF2LIZKV5SLakqiJvwhCpx8QgVn/AJt9Vyh1pt2qTKV12Kc1LJ+q7+qrIxXgm/EqAwL/ADbdeY/w1jGKep82mmle/v8ABW1j4apxauS+QtZO2z+ogO/XcmIA7b9N9mPnr0Qy6ebj+n6pezh9t6gZvG9w2MKtKjZUWSYnsTO7IXRHQzQKyqzR+qgZfUHVfhrIgY5jQCalVSEOOzRUUva/eol51LcdYcUFLaxMfaMJCzmTdP8Auc49h+Ztt5fHVxcTtKrDGjYAl7U7f/culmqsufzsV/FVYrUZhQMJZnnkWSJ5SQATCN412+79OvFJbnREaIjREaIl30RGiI0RGiI0RGiI0RG+iJNERoiNEX//2Q==";
             *
             * //imageByte 是base64, UTF8会修改特殊符号,在转码之前必要的匹配掉+号
             * imageByte = imageByte.Replace("+", "%2B");
             * string type = "product";
             * string filename = "test";
             * string method = "jxdyf.upload.uploadimage.post";
             * string extName = "jpg";
             * string sourceType = "web";
             *
             * //////请求
             * //HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create(upLoadImageUrl);
             * //httpWebRequest.ContentType = "application/x-www-form-urlencoded;charset=UTF-8";
             * //httpWebRequest.Method = "POST";
             * ////imageByte: imageStr, type: 'product', method: 'jxdyf.upload.uploadimage.post',fileName:'test',ExtName:'jpg',sourceType:'web'
             * //string data = "type=" + type + "&fileName=" + filename + "&method=" + method + "&extName=" + extName + "&sourceType=" + sourceType + "&imageByte=" + imageByte;
             * //byte[] bytes = System.Text.Encoding.UTF8.GetBytes(data);
             * //httpWebRequest.ContentLength = bytes.Length;
             * //Stream requestStream = httpWebRequest.GetRequestStream();
             * //requestStream.Write(bytes, 0, bytes.Length);
             * //requestStream.Flush();
             * //requestStream.Close();
             *
             * ////响应
             * //HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
             * //StreamReader streamReader = new StreamReader(httpWebResponse.GetResponseStream());
             * //string responseContent = streamReader.ReadToEnd();
             * //httpWebResponse.Close();
             * //streamReader.Close();
             * //httpWebRequest.Abort();
             * //httpWebResponse.Close();
             *
             * //UpLoadService us = UpLoadService.Instance;
             * //UpLoadImageRequest req = new UpLoadImageRequest();
             * //req.ImageByte = imageByte;
             * //req.SourceType = sourceType;
             * //req.Method = method;
             * //req.FileName = filename;
             * //req.ExtName = extName;
             * //us.UpLoadImage(req);
             */
            long testStartTime = ConvertDataTimeHelper.ConvertDataTimeLong(DateTime.Now.AddDays(-40));
            long testEndTime   = ConvertDataTimeHelper.ConvertDataTimeLong(DateTime.Now);

            #region 测试使用的时间
            long startTime = ConvertDataTimeHelper.ConvertDataTimeLong(DateTime.Parse("2015-08-05 0:00:00"));
            long endTime   = ConvertDataTimeHelper.ConvertDataTimeLong(DateTime.Parse("2015-08-07 23:59:59"));
            #endregion


            JXAPI.JXSdk.Response.RegionListResponse response = JXAPI.JXSdk.Service.RegionService.Instance.List();
            if (response.code == 0)
            {
                IList <JXAPI.JXSdk.Domain.RegionInfo> regionInfoList = response.regionTemplates;
            }


            #region 购物卡
            ShoppingCardService sc = ShoppingCardService.Instance;
            ////list
            //ShoppingCardListRequest request = new ShoppingCardListRequest();
            ////request.cardNo = "744122134"; //选填
            ////request.orderID = "666666";
            //request.cardType = "1"; //选填
            //request.startTime = startTime;
            //request.endTime = endTime;
            //request.pageForm = new JXSdk.Domain.PageFormInfo { page = 1, size = 10 };
            //ShoppingCardListResponse result = sc.List(request);

            //add
            //ShoppingCardInfo scInfo = new ShoppingCardInfo();
            //scInfo.productCode = "666666";
            //scInfo.productID = 666666;
            //scInfo.orderID = "666666";
            //scInfo.cardType = "1";
            //scInfo.startTime = startTime;
            //scInfo.endTime = endTime;
            //scInfo.remainingSum = 666666;
            //scInfo.totalAmount = 666666;
            //scInfo.type = 0;
            //scInfo.remarks = "test 测试";
            //bool result = sc.Add(scInfo);

            //get
            // sc.Get("744122134");

            //update
            //ShoppingCardInfo scInfo2 = new ShoppingCardInfo();
            //scInfo2.productCode = "777777";
            //scInfo2.productID = 777777;
            //scInfo2.orderID = "777777";
            //scInfo2.cardType = "1";
            //scInfo2.startTime = startTime;
            //scInfo2.endTime = endTime;
            //scInfo2.remainingSum = 777777;
            //scInfo2.totalAmount = 777777;
            //scInfo2.type = 0;
            //scInfo2.remarks = "test 测试";
            //scInfo2.cardNo = "744122134";
            //sc.Update(scInfo2);


            //merge 合并购物卡(未测试)
            //MergeShoppingCardRequest request = new MergeShoppingCardRequest();
            //request.mainCode = "";
            //request.mainPass = "";
            //request.viceCode = "";
            //request.vicePass = "";
            //request.creator = "LM";
            //request.remarks = "测试合并";
            //sc.Merge(request);

            //JXAPI.JXSdk.Request.UseShoppingCardListRequest request=new UseShoppingCardListRequest();
            //request.uid = 600404;
            //request.isUse = 1;
            //sc.UseList(request);

            #endregion

            #region 优惠渠道
            CouponChannelService ccs = CouponChannelService.Instance;
            ////list
            //CouponChannelListRequest request = new CouponChannelListRequest();
            //request.pageForm = new JXSdk.Domain.PageFormInfo { page = 1, size = 10 };
            //CouponChannelListResponse response = ccs.List(request);

            //add
            //CouponChannelInfo ccInfo = new CouponChannelInfo();
            //ccInfo.channelName = "测试";
            //ccInfo.spellName = "ceshi";
            //ccInfo.description = "我是测试";
            //ccInfo.creator = "LM";
            //ccInfo.isOuter = 0;
            //ccs.Add(ccInfo);


            //update
            //CouponChannelInfo ccInfo2 = new CouponChannelInfo();
            //ccInfo2.channelName = "test";
            //ccInfo2.spellName = "test";
            //ccInfo2.description = "test";
            //ccInfo2.creator = "LM";
            //ccInfo2.isOuter = 0;
            //ccInfo2.channelID = 101;
            //ccs.Update(ccInfo2);

            //get
            //ccs.Get(101);

            //delete
            //bool result=ccs.Delete(101);


            //ChannelList
            //CouponChannelListResponse response=ccs.ChannelList();
            ////int responseCount=response.count;//此参数在ChannelList返回里是无效参数,接口不提供count
            #endregion

            #region  优惠券类型
            CouponTypeService cts = CouponTypeService.Instance;

            ////list
            //CouponTypeListRequest request = new CouponTypeListRequest();
            //request.typeCategory = 0;

            //request.pageForm = new JXSdk.Domain.PageFormInfo { page = 1, size = 10 };
            //CouponTypeListResponse response = cts.List(request);


            //get
            //cts.Get(66);

            //add
            //CouponTypeInfo ctInfo = new CouponTypeInfo();
            //ctInfo.typeCategory = 1;
            //ctInfo.typeName = "现金";
            //ctInfo.paymentMethod = "0";
            //ctInfo.productInfo = "6666,7777";//测试
            //ctInfo.productPriceMin = 0;
            //ctInfo.orderMin = 0;
            //ctInfo.toShipFee = 0;
            //ctInfo.couponChannel = 0;
            //ctInfo.toSpecial = 0;
            //ctInfo.nominalValue = 10;
            //ctInfo.preferential = 0;
            //ctInfo.useType = 0;
            //ctInfo.creator = "LM";
            //ctInfo.status = 2;
            //ctInfo.remarks = "测试添加";
            //cts.Add(ctInfo);

            //update
            //CouponTypeInfo ctInfo2 = new CouponTypeInfo();
            //ctInfo2.typeCategory = 1;
            //ctInfo2.typeName = "现金";
            //ctInfo2.paymentMethod = "0";
            //ctInfo2.productInfo = "555,555";//测试
            //ctInfo2.productPriceMin = 0;
            //ctInfo2.orderMin = 0;
            //ctInfo2.toShipFee = 0;
            //ctInfo2.couponChannel = 0;
            //ctInfo2.toSpecial = 0;
            //ctInfo2.nominalValue = 10;
            //ctInfo2.preferential = 0;
            //ctInfo2.useType = 0;
            //ctInfo2.creator = "LM";
            //ctInfo2.status = 2;
            //ctInfo2.remarks = "测试修改";
            //ctInfo2.typeID = 172;
            //cts.Update(ctInfo2);

            //delete
            //cts.Delete(172);

            //typeList
            //CouponTypeListResponse response=cts.TypeList();//返回里的count值无效
            #endregion

            #region 优惠券批次
            //CouponBatchService cbs =  CouponBatchService.Instance;
            ////list
            //CouponBatchListRequest request = new CouponBatchListRequest();
            //request.StartTime = startTime;
            //request.EndTime = endTime;
            //request.pageForm = new PageFormInfo { page = 1, size = 10 };
            //CouponBatchListResponse response = cbs.List(request);


            //add
            //CouponBatchInfo cbInfo = new CouponBatchInfo();
            //cbInfo.channelID = 52;
            //cbInfo.typeID = 107;
            //cbInfo.numCount = 1;
            //cbInfo.startTime = startTime;
            //cbInfo.endTime = endTime;
            //cbInfo.creator = "LM";
            //cbInfo.description = "测试添加";
            //cbs.Add(cbInfo);

            //update
            //CouponBatchInfo cbInfo2 = new CouponBatchInfo();
            //cbInfo2.channelID = 52;
            //cbInfo2.description = "测试更新";
            //cbInfo2.batchID = "3D3C6434";
            //cbInfo2.startTime = startTime;
            //cbInfo2.endTime = endTime;
            //cbInfo2.numCount = 10;
            //cbInfo2.typeID = 107;
            //cbs.Update(cbInfo2);

            //delete
            //cbs.Delete("3E88417C");

            //batchList
            //CouponBatchListResponse response = cbs.BatchList();//返回里的count值无效
            #endregion

            #region 优惠券
            //CouponService cs = CouponService.Instance;
            ////list
            //CouponListRequest request = new CouponListRequest();
            ////request.batchID = "BH45B259AB";
            ////request.couponCode = "";
            ////request.channelID = 52;
            ////request.typeID = 170;
            ////request.isUsed = 0;
            ////request.hasSend = 0;
            ////request.userName="";
            //request.channelID = 66;
            //request.pageForm = new PageFormInfo { page = 1, size = 10 };
            //CouponListResponse response = cs.List(request);

            //add
            //CouponInfo cInfo = new CouponInfo();
            //cInfo.batchID = "BH44C56EBC";
            //cInfo.channelID = 52;
            //cInfo.typeID = 170;
            //cInfo.startTime = startTime;
            //cInfo.endTime = endTime;
            //cInfo.creator = "LM";
            //cInfo.remark = "测试添加";
            //cs.Add(cInfo);
            #endregion

            #region 优惠券-购物卡订单交互
            OrderUseService ous = OrderUseService.Instance;
            //UseCouponRequest ucrequest=new UseCouponRequest();
            //ucrequest.couponNo = "00011CD0";
            //ous.UseCoupon(ucrequest);

            //UseCouponRequest ucrequest = new UseCouponRequest();
            //ucrequest.couponNo = "00011CD0";
            //ous.NotUseCoupon(ucrequest);

            #endregion


            #region  用户列表
            AccountService accountServer = AccountService.Instance;
            //AccountListRequest accountListRequest = new AccountListRequest();
            //accountListRequest.pageForm = new PageFormInfo() {page=1,size=10 };
            //AccountListResponse response = accountServer.List(accountListRequest);


            // accountServer.ResetPwd("941761");


            //AccountBalanceListRequest request = new AccountBalanceListRequest();
            //request.pageForm = new PageFormInfo() { page = 1, size = 10 };
            //request.passportID = 1;
            //AccountBalanceListResponse response = accountServer.BalanceList(request);

            //AccountRecordListRequest request = new AccountRecordListRequest();
            //request.pageForm = new PageFormInfo() { page = 1, size = 10 };
            //accountServer.RecordList(request);

            //AccountUpdateBalanceRequest accountUpdateBalanceRequest = new AccountUpdateBalanceRequest();
            //accountUpdateBalanceRequest.passportID = 1;
            //accountUpdateBalanceRequest.balance = 11;
            //accountUpdateBalanceRequest.remarks = "lm测试更新";
            //accountServer.UpdateBalance(accountUpdateBalanceRequest);
            //accountServer.EnableStutus(new AccountEnableStutusRequest { passportID=1,status=1});
            #endregion

            #region 临时调测
            //ProductEvaluationListRequest request = new ProductEvaluationListRequest();
            //request.ceilTime = endTime;
            //request.floorTime = startTime;
            //request.pageForm = new JXAPI.JXSdk.Domain.PageFormInfo() { page = 1, size = 10 };
            //ProductEvaluationListResponse response= ProductEvaluationService.Instance.List(request);

            //FeedBackListRequest far = new FeedBackListRequest();
            //JXAPI.JXSdk.Domain.PageFormInfo pageInfo = new JXAPI.JXSdk.Domain.PageFormInfo() { page = 1, size = 10 };
            //far.pageForm = pageInfo;
            //FeedBackListResponse feedBackData = FeedBackService.Instance.List(far);

            //FeedBackService.Instance.Get(2);

            //CouponService coupoonService = CouponService.Instance;
            //JXAPI.JXSdk.Request.CouponValidateRequest request=new CouponValidateRequest();
            //coupoonService.WebValidateCard(request);



            #endregion
        }
Пример #2
0
        /// <summary>
        /// 拉取订单待发货订单
        /// </summary>
        /// <returns></returns>
        public string List()
        {
            var    result   = new JsonResult();
            string appid    = HttpContext.Current.Request["appid"];
            string sign     = HttpContext.Current.Request["sign"];
            string jsonData = HttpContext.Current.Request["jsonData"];

            //验证秘钥
            bool isPass = Security.SecurityCheck(appid, sign, jsonData);

            if (!isPass)
            {
                result.code    = (int)OrderError.接口秘钥无效;
                result.message = OrderError.接口秘钥无效.ToString();
                result.data    = null;
                return(JsonHelper.GetJson(result));
            }

            //序列化json
            PageForm pageFrom = JsonHelper.ConvertToObj <PageForm>(jsonData);

            string strWhere = string.Empty;

            strWhere += " CreateTime > '" + ConvertDataTimeHelper.ConvertLongDateTime(pageFrom.StartTime).ToString() + "'";
            strWhere += " AND CreateTime < '" + ConvertDataTimeHelper.ConvertLongDateTime(pageFrom.EndTime).ToString() + "'";
            int count = 0;//总条数
            OperationResult <IList <OrdersInfo> > orderInfoList =
                OrderLogisticsSqlBLL.Instance.Orders_GetList(pageFrom.Page, pageFrom.Size, " CreateTime DESC ", strWhere, 0, out count);

            OperationResult <IList <OrderProductInfo> > orderProductInfoList =
                OrderLogisticsSqlBLL.Instance.OrderProduct_GetList(strWhere);
            //数据组合
            IList <OrdersResponse> response = new List <OrdersResponse>();

            foreach (var o in orderInfoList.AppendData)
            {
                OrdersResponse or = new OrdersResponse();
                or.OrderID      = o.OrderID;
                or.PaySum       = o.PaySum;
                or.ProductFee   = o.ProductFee;
                or.NewShipFee   = o.NewShipFee;
                or.VoucherFee   = o.VoucherFee;
                or.ShipMethodID = o.ShipMethodID;
                or.Province     = o.Province;
                or.City         = o.City;
                or.County       = o.County;
                or.Address      = o.Address;
                or.Receiver     = o.Receiver;
                or.Telephone    = o.Telephone;
                or.Mobile       = o.Mobile;
                or.Invoice      = o.Invoice;
                or.Remarks      = o.Remarks;
                or.CreateTime   = ConvertDataTimeHelper.ConvertDataTimeLong(o.CreateTime);
                or.OrderDetails = new List <OrderProductInfo>();
                foreach (var op in orderProductInfoList.AppendData)
                {
                    if (o.OrderID == op.OrderID)
                    {
                        OrderProductInfo opInfo = new OrderProductInfo();
                        opInfo.OrderID        = op.OrderID;
                        opInfo.ProductCode    = op.ProductCode;
                        opInfo.ProductID      = op.ProductID;
                        opInfo.ProductName    = op.ProductName;
                        opInfo.ProfeeDiscount = op.ProfeeDiscount;
                        opInfo.Quantity       = opInfo.Quantity;
                        or.OrderDetails.Add(opInfo);
                    }
                }
                response.Add(or);
            }
            //返回结果
            if (orderInfoList.ResultType != OperationResultType.Success)
            {
                result.message = orderInfoList.Message;
                result.code    = (int)OrderError.数据连接失败;
                result.data    = null;
            }
            else
            {
                result.message = OrderError.数据返回成功.ToString();
                result.code    = (int)OrderError.数据返回成功;
                result.data    = JsonHelper.GetJson(response);
            }
            return(JsonHelper.GetJson(result));
        }