Beispiel #1
0
 public bool AddServer(string ServerName)
 {
     return(BSClient.Send <AddClearCache_ServerConfigResponse>(new AddClearCache_ServerConfigRequest
     {
         ServerIp = ServerName
     }).DoFlag);
 }
Beispiel #2
0
        /// <summary>
        /// Queries the word library manage page list.查询列表
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        /// Creator:ysx2012
        /// 6/2/2016
        public WordLibManageRefer QueryWordLibManagePageList(WordLibManageRefer request)
        {
            var result = new WordLibManageRefer();
            var req    = new QueryWordLibPageListReqeust()
            {
                Enable        = request.WordLibManageDetail.Enable,
                ForbiddenType = request.WordLibManageDetail.ForbiddenType,
                Type          = request.WordLibManageDetail.Type,
                KeyWord       = request.WordLibManageDetail.KeyWord,
                Sort          = request.WordLibManageDetail.Sort,
                PageIndex     = request.PageIndex,
                PageSize      = request.PageSize
            };


            var res = BSClient.Send <QueryWordLibPageListResponse>(req);

            if (res.DoFlag)
            {
                result.List  = Mapper.MappGereric <WordLibManage, WordLibManageDetail>(res.WordLibManage);
                result.Total = res.Total;
            }
            result.WordLibManageDetail = request.WordLibManageDetail;
            result.PageIndex           = request.PageIndex;
            result.PageSize            = request.PageSize;
            return(result);
        }
Beispiel #3
0
        /// <summary>
        /// 查询订单扭转物流信息配置
        /// </summary>
        /// <param name="orderProduct"></param>
        /// <returns></returns>
        public OrderProductStateRefer QueryOrderProductStatusConfig(OrderProductStateRefer orderProduct)
        {
            var result = new OrderProductStateRefer();
            var req = new QueryOrderProductStatusConfigRequest();
            if (orderProduct.SearchDetail != null)
            {
                req.MallType = orderProduct.SearchDetail.MallType;
                req.OrderStatusName = orderProduct.SearchDetail.OrderStatusName;
                req.IsDeleted = orderProduct.SearchDetail.IsDeleted;
                req.FlowStatus = orderProduct.SearchDetail.FlowStatus;
            }
            req.PageIndex = orderProduct.PageIndex;
            req.PageSize = orderProduct.PageSize;

            var res = BSClient.Send<QueryOrderProductStatusConfigResponse>(req);
            if (res.DoFlag)
            {
                result.List = Mapper.MappGereric<order_ProductStatus_ConfigExt, OrderProductStateDetail>(
                        res.ProductStatusConfigDos);
                result.Total = res.Total;
            }
            result.SearchDetail = orderProduct.SearchDetail;
            result.PageIndex = orderProduct.PageIndex;
            result.PageSize = orderProduct.PageSize;
            return result;
        }
Beispiel #4
0
        /// <summary>
        /// 查询发送记录
        /// </summary>
        /// <param name="refer"></param>
        /// <returns></returns>
        public SendRecorsRefer QuerySendRecordsPageList(SendRecorsRefer refer)
        {
            var req      = refer.Search;
            var ret      = new SendRecorsRefer();
            var response = BSClient.Send <QuerySendRecordsListResponse>(new QuerySendRecordsList
            {
                UserId          = req.UserId,
                Mobile          = req.Mobile,
                SmsSendRes      = req.SmsSendRes,
                TemplSysNO      = req.TemplSysNO,
                SmsContent      = req.SmsContent,
                SmsProvider     = req.SmsProvider,
                SmsChannel      = req.SmsChannel,
                SmsSendMode     = req.SmsSendMode,
                SendSource      = req.SendSource,
                TempKey         = req.TempKey,
                SourceTypeSysNo = req.SourceTypeSysNo,
                PageIndex       = refer.PageIndex,
                PageSize        = refer.PageSize,
            });

            ret.List      = Mapper.MappGereric <QuerySendRecordsDto, SendRecordsModel>(response.Dtos);
            ret.PageIndex = response.PageIndex;
            ret.PageSize  = response.PageSize;
            ret.Total     = response.Total;
            return(ret);
        }
Beispiel #5
0
        /// <summary>
        /// Adds the word library manage.新增一个类型
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        /// Creator:ysx2012
        /// 2016/6/8
        public AddFbTpResponse AddForbiddenType(ForbiddenTypeDetail request)
        {
            var req = Mapper.Map <ForbiddenTypeDetail, AddFbTpRequest>(request);
            var res = BSClient.Send <AddFbTpResponse>(req);

            return(res);
        }
Beispiel #6
0
 public bool BlackListUpdate(BlackListModel model)
 {
     return(BSClient.Send <BlackListUpdateResponse>(new BlackListUpdate
     {
         UpdDto = Mapper.Map <BlackListModel, BlackListDto>(model)
     }).DoFlag);
 }
Beispiel #7
0
        /// <summary>
        /// Resets the index.重建索引
        /// </summary>
        /// <returns></returns>
        /// Creator:ysx2012
        /// 2016/6/10
        public RebuildForbiddenDicResponse ResetIndex()
        {
            var result = new RebuildForbiddenDicResponse();

            result = BSClient.Send <RebuildForbiddenDicResponse>(new RebuildForbiddenDic());
            return(result);
        }
Beispiel #8
0
 public bool BlackListAdd(BlackListModel model)
 {
     return(BSClient.Send <BlackListAddResponse>(new BlackListAdd
     {
         AddDto = Mapper.Map <BlackListModel, BlackListDto>(model)
     }).DoFlag);
 }
Beispiel #9
0
        /// <summary>
        /// 快速入口管理
        /// </summary>
        /// <param name="wordMsg"></param>
        /// <returns></returns>
        public WebIndexRefer QueryWordMsgRefer(WebIndexRefer webIndex)
        {
            var result = new WebIndexRefer();
            var req    = new QueryWebIndexRapidInRequest();

            if (webIndex.SearchDetail != null)
            {
                //条件查询
                req.VchName           = webIndex.SearchDetail.VchName;
                req.IntIsVisibleIndex = webIndex.SearchDetail.IntIsVisibleIndex;
                req.IntNewUserVerify  = webIndex.SearchDetail.IntNewUserVerify;
                req.IntSystemType     = webIndex.SearchDetail.IntSystemType;
            }
            req.PageIndex = webIndex.PageIndex.GetValueOrDefault();;
            req.PageSize  = webIndex.PageSize.GetValueOrDefault();;

            var res = BSClient.Send <QueryWebIndexRapidInResponse>(req);

            if (res.DoFlag)
            {
                result.List  = Mapper.MappGereric <Web_Index_Rapid_InExt, WebIndexDetail>(res.RapidInDos);
                result.Total = res.Total;
            }
            result.SearchDetail = webIndex.SearchDetail;
            result.PageIndex    = webIndex.PageIndex;
            result.PageSize     = webIndex.PageSize;

            return(result);
        }
Beispiel #10
0
 public bool WhiteListAdd(WhiteListModel model)
 {
     return(BSClient.Send <WhiteListAddResponse>(new WhiteListAdd
     {
         AddDto = Mapper.Map <WhiteListModel, WhiteListDto>(model)
     }).DoFlag);
 }
Beispiel #11
0
 public bool WhiteListUpdate(WhiteListModel model)
 {
     return(BSClient.Send <WhiteListUpdateResponse>(new WhiteListUpdate
     {
         UpdDto = Mapper.Map <WhiteListModel, WhiteListDto>(model)
     }).DoFlag);
 }
Beispiel #12
0
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="webIndex"></param>
        /// <returns></returns>
        public bool UpdateWordMsgRefer(WebIndexDetail webIndex)
        {
            var req = Mapper.Map <WebIndexDetail, UpdateWebIndexRapidInRequest>(webIndex);
            var res = BSClient.Send <UpdateWebIndexRapidInResponse>(req);

            return(res.DoFlag);
        }
Beispiel #13
0
 /// <summary>
 /// 修改短信模板
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool UpdateTemplate(TemplateModel model)
 {
     return(BSClient.Send <TemplateUpdateResponse>(new TemplateUpdate
     {
         UpdModel = Mapper.Map <TemplateModel, TemplateDto>(model)
     }).DoFlag);
 }
Beispiel #14
0
        /// <summary>
        /// 禁词列表
        /// </summary>
        /// <returns></returns>
        public WordMsgRefer QueryGetWordMsg(WordMsgRefer wordMsg)
        {
            var result = new WordMsgRefer();
            var req    = new QueryWebForbidWordMessageRequest();

            if (wordMsg.SearchDetail != null)
            {
                req.VchForbidWord = wordMsg.SearchDetail.VchForbidWord;
                req.IntWordType   = wordMsg.SearchDetail.IntWordType;
            }
            req.PageIndex = wordMsg.PageIndex.GetValueOrDefault();;
            req.PageSize  = wordMsg.PageSize.GetValueOrDefault();;

            var res = BSClient.Send <QueryWebForbidWordMessageResponse>(req);

            if (res.DoFlag)
            {
                result.List  = Mapper.MappGereric <Web_Forbid_Word_MessageExt, WordMsgDetail>(res.ForbidWordDos);
                result.Total = res.Total;
            }
            result.SearchDetail = wordMsg.SearchDetail;
            result.PageIndex    = wordMsg.PageIndex;
            result.PageSize     = wordMsg.PageSize;
            return(result);
        }
Beispiel #15
0
 /// <summary>
 /// 导入处理意见
 /// </summary>
 /// <param name="dList"></param>
 /// <returns></returns>
 public EC_ImportHandleInfoResponse ImportHandleInfo(List <ExpressImportModel> dList)
 {
     return(BSClient.Send <EC_ImportHandleInfoResponse>(new EC_ImportHandleInfo
     {
         Dtos = Mapper.MappGereric <ExpressImportModel, EC_ImportHandleInfoDto>(dList).ToList()
     }));
 }
Beispiel #16
0
        ////批量重新订阅(重推-重开)(修改物流中间表实现)
        //public bool SetSubscribeRetry(int OrderCode)
        //{
        //    return BSClient.Send<EC_SetSubscribeRetryResponse>(new EC_SetSubscribeRetry
        //        {
        //            OrderCode = OrderCode
        //        }).DoFlag;
        //}

        //刷新查询缓存
        public bool RefreshExpressCache(string ordercode)
        {
            return(BSClient.Send <EC_RefreshExpressCacheResponse>(new EC_RefreshExpressCache
            {
                OrderCode = ordercode
            }).DoFlag);
        }
Beispiel #17
0
 public bool AddSite(string SiteName, string SitePort)
 {
     return(BSClient.Send <AddClearCache_SiteConfigResponse>(new AddClearCache_SiteConfigRequest
     {
         SiteName = SiteName,
         SitePort = SitePort
     }).DoFlag);
 }
Beispiel #18
0
 public bool AddServerSite(List <int> ServerSysNo, int SiteSysNo)
 {
     return(BSClient.Send <AddClearCache_ServerSiteResponse>(new AddClearCache_ServerSiteRequest
     {
         ServerNoList = ServerSysNo,
         SiteSysNo = SiteSysNo
     }).DoFlag);
 }
Beispiel #19
0
 public bool UpdateServer(int SysNo, bool IsEnable)
 {
     return(BSClient.Send <UpdateClearCache_ServerConfigResponse>(new UpdateClearCache_ServerConfigRequest
     {
         SysNo = SysNo,
         IsEnable = IsEnable
     }).DoFlag);
 }
Beispiel #20
0
 /// <summary>
 ///  修改订单扭转排序
 /// </summary>
 /// <returns></returns>
 public bool UpdateOrderProductStatusConfigSort(int id, int sort)
 {
     var req = new UpdateOrderProductStatusConfigSortRequest();
     req.ID = id;
     req.Sort = sort;
     var res = BSClient.Send<UpdateOrderProductStatusConfigSortResponse>(req);
     return res.DoFlag;
 }
Beispiel #21
0
 /// <summary>
 ///  修改订单扭转状态
 /// </summary>
 /// <returns></returns>
 public bool UpdateOrderProductStatusConfigState(int id, int state)
 {
     var req = new UpdateOrderProductStatusConfigStateRequest();
     req.ID = id;
     req.IsDeleted = state;
     var res = BSClient.Send<UpdateOrderProductStatusConfigStateResponse>(req);
     return res.DoFlag;
 }
Beispiel #22
0
        public SmsBalanceRefer QuerySmsBalanceList(SmsBalanceRefer refer)
        {
            var req      = refer.Search;
            var ret      = new SmsBalanceRefer();
            var response = BSClient.Send <SmsBanlanceResponse>(new SmsBanlance());

            ret.List = Mapper.MappGereric <SmsBalanceDto, SmsBanlanceModel>(response.Dtos);
            return(ret);
        }
Beispiel #23
0
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public bool DelWordMsgRefer(int id)
        {
            var req = new DelWebIndexRapidInRequest();

            req.IntRapidInID = id;
            var res = BSClient.Send <DelWebIndexRapidInResponse>(req);

            return(res.DoFlag);
        }
Beispiel #24
0
        /// <summary>
        /// Adds the word library manage.添加数据
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        /// Creator:ysx2012
        /// 6/2/2016
        public AddWordLibManageResponse AddWordLibManage(WordLibManageDetail request)
        {
            var req = Mapper.Map <WordLibManageDetail, AddWordLibManageRequest>(request);

            req.IsDelete = request.IsDelete ?? false;
            var res = BSClient.Send <AddWordLibManageResponse>(req);

            return(res);
        }
Beispiel #25
0
        public bool DelWordMsg(int id)
        {
            var req = new DelWebForbidWordMessageRequest();

            req.IntForbidID = id;
            var res = BSClient.Send <DelWebForbidWordMessageResponse>(req);

            return(res.DoFlag);
        }
Beispiel #26
0
 /// <summary>
 /// 对账单查询
 /// </summary>
 /// <param name="StartTime"></param>
 /// <param name="EndTime"></param>
 /// <returns></returns>
 public int QueryAccountStateMent(DateTime StartTime, DateTime EndTime)
 {
     return(BSClient.Send <EC_QueryAccountStateMentResponse>(new
                                                             EC_QueryAccountStateMent
     {
         StartTime = StartTime,
         EndTime = EndTime
     }).Sum);
 }
Beispiel #27
0
        public bool SaveCarriageConfig(string config)
        {
            var response = BSClient.Send <UpdateCarriageConfigRes>(new UpdateCarriageConfigReq
            {
                ExecMethod = "BuyAppointGoodsCarriage",
                Configure  = config
            });

            return(response.DoFlag);
        }
Beispiel #28
0
        /// <summary>
        /// 修改排序
        /// </summary>
        /// <param name="id"></param>
        /// <param name="sort"></param>
        /// <returns></returns>
        public bool UpdateSort(int id, int sort)
        {
            var req = new UpdateWebIndexRapidInSortRequest();

            req.IntRapidInID = id;
            req.IntSort      = sort;
            var res = BSClient.Send <UpdateWebIndexRapidInSortResponse>(req);

            return(res.DoFlag);
        }
Beispiel #29
0
        /// <summary>
        /// 修改状态
        /// </summary>
        /// <param name="id"></param>
        /// <param name="sort"></param>
        /// <returns></returns>
        public bool UpdateVisible(int id, byte isvisible)
        {
            var req = new UpdateWebIndexRapidInVisibleRequest();

            req.IntRapidInID      = id;
            req.IntIsVisibleIndex = isvisible;
            var res = BSClient.Send <UpdateWebIndexRapidInVisibleResponse>(req);

            return(res.DoFlag);
        }
Beispiel #30
0
        /// <summary>
        /// 查询配送商
        /// </summary>
        /// <param name="refer"></param>
        /// <returns></returns>
        public ExpressAcessConfigRefer QueryExpressAccessConfigPageList(ExpressAcessConfigRefer refer)
        {
            var req      = refer.Search;
            var ret      = new ExpressAcessConfigRefer();
            var response = BSClient.Send <EC_SelfAccessConfigListResponse>(new EC_SelfAccessConfigList {
            });

            ret.List = Mapper.MappGereric <EC_SelfAccessConfigListDto, SelfAccessConfigModel>(response.Dtos);
            return(ret);
        }