Exemplo n.º 1
0
        public CommonResponse InterlockProduct(int productNo)
        {
            CommonResponse res = new CommonResponse();

            IPublishProvider iProvider = attachProvider();

            try
            {
                int syncLevel = (int)SyncType.SaleStart + (int)SyncType.SaleStop + (int)SyncType.ModifyPrice
                                + (int)SyncType.ModifyOption + (int)SyncType.ModifyProductInfo;

                res = iProvider.ExecuteProductInterlock(productNo, syncLevel);
            }
            catch (Exception ex)
            {
                res.ResultCd  = Common.CommonResponse.ReturnType.Error;
                res.ResultMsg = ex.ToString();
            }

            return(res);
        }