Пример #1
0
        public void Init()
        {
            Console.WriteLine("Init");

            // set up the web service object
            shopConfigService                 = new ShopConfigService();
            shopConfigService.Credentials     = new System.Net.NetworkCredential(WEBSERVICE_LOGIN, WEBSERVICE_PASSWORD);
            shopConfigService.PreAuthenticate = true;
            shopConfigService.Url             = WEBSERVICE_URL;

            CleanUp();
        }
Пример #2
0
        public async Task <IHttpActionResult> SetConfirmState(string userId, string shopNo, int mtState, int eleState)
        {
            try
            {
                var service = new ShopConfigService();

                await service.SetAsync(userId, shopNo, mtState, eleState);

                return(Json(Tools.ResultOk()));
            }
            catch (Exception e)
            {
                _log.DebugFormat("【系统错误】类型:SetConfirmState  信息{0}", e.Message);
                _log.DebugFormat("【系统错误】类型:SetConfirmState  信息{0}", e.GetOriginalException().Message);
                return(Json(Tools.ResultErr(e.Message)));
            }
        }
Пример #3
0
        private void deleteIfExists(string alias)
        {
            ShopConfigService shopConfigService = new ShopConfigService();

            shopConfigService.Credentials     = new System.Net.NetworkCredential(WEBSERVICE_LOGIN, WEBSERVICE_PASSWORD);
            shopConfigService.PreAuthenticate = true;
            shopConfigService.Url             = WEBSERVICE_URL;

            EpagesProviderWebServices.ShopConfigService6Ref.TShopRef shopRef = new EpagesProviderWebServices.ShopConfigService6Ref.TShopRef();
            shopRef.Alias = ALIAS;
            if (shopConfigService.exists(shopRef))
            {
                shopConfigService.deleteShopRef(shopRef);
            }

            shopRef.Alias = NEW_ALIAS;
            if (shopConfigService.exists(shopRef))
            {
                shopConfigService.deleteShopRef(shopRef);
            }
        }
Пример #4
0
 public EleCallBackService()
 {
     _preProdService    = new PreProdService();
     _shopConfigService = new ShopConfigService();
 }