示例#1
0
    public override Resolver ScanBarcode(Resolver resolver)
    {
        try
        {
            resolver.IsCSClient = true;
            resolver            = TheResolverMgr.Resolve(resolver);

            //KSS 客户化,只有手持扫描枪需要B/S打印监控
            //if ((resolver.ModuleType == BusinessConstants.TRANSFORMER_MODULE_TYPE_SHIP || resolver.ModuleType == BusinessConstants.TRANSFORMER_MODULE_TYPE_SHIPORDER)
            //    && resolver.NeedPrintAsn && resolver.PrintUrl != null && resolver.PrintUrl.Trim() != string.Empty)
            //{
            //    //resolver.PrintUrl = null;
            //    InProcessLocation inProcessLocation = TheInProcessLocationMgr.LoadInProcessLocation(resolver.Code);
            //    inProcessLocation.IsPrinted = true;//to be refactored
            //    TheInProcessLocationMgr.UpdateInProcessLocation(inProcessLocation);
            //}
            return(resolver);
        }
        catch (BusinessErrorException ex)
        {
            string exMessage = RenderingLanguage(ex.Message, resolver.UserCode, ex.MessageParams);
            throw new SoapException(exMessage, SoapException.ServerFaultCode, string.Empty);
        }
        catch (Exception ex)
        {
            throw new SoapException(ex.Message, SoapException.ServerFaultCode, string.Empty);
        }
    }
示例#2
0
        protected void ResolveInput(string input, bool bind)
        {
            CacheResolver.Input = input;
            CacheResolver       = TheResolverMgr.Resolve(this.CacheResolver);

            if (bind)
            {
                Bind();
            }
        }
 public virtual Resolver ScanBarcode(Resolver resolver)
 {
     try
     {
         resolver.IsCSClient = false;
         resolver            = TheResolverMgr.Resolve(resolver);
         return(resolver);
     }
     catch (BusinessErrorException ex)
     {
         string exMessage = RenderingLanguage(ex.Message, resolver.UserCode, ex.MessageParams);
         throw new SoapException(exMessage, SoapException.ServerFaultCode, string.Empty);
     }
     catch (Exception ex)
     {
         //throw new Exception("", ex);
         //log.Error("Kill Excell Process fail", ex);
         throw new SoapException(ex.Message, SoapException.ServerFaultCode, string.Empty);
     }
 }
示例#4
0
 protected void ExecuteCancel()
 {
     this.CacheResolver.Input = BusinessConstants.BARCODE_SPECIAL_MARK + BusinessConstants.BARCODE_HEAD_CANCEL;
     this.CacheResolver       = TheResolverMgr.Resolve(CacheResolver);
 }
示例#5
0
 protected void ExecuteSubmit()
 {
     this.CacheResolver.Input = BusinessConstants.BARCODE_SPECIAL_MARK + BusinessConstants.BARCODE_HEAD_OK;
     this.CacheResolver       = TheResolverMgr.Resolve(CacheResolver);
 }