Ejemplo n.º 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);
        }
    }
Ejemplo n.º 2
0
        protected void ResolveInput(string input, bool bind)
        {
            CacheResolver.Input = input;
            CacheResolver       = TheResolverMgr.Resolve(this.CacheResolver);

            if (bind)
            {
                Bind();
            }
        }
Ejemplo n.º 3
0
 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);
     }
 }
Ejemplo n.º 4
0
 protected void ExecuteCancel()
 {
     this.CacheResolver.Input = BusinessConstants.BARCODE_SPECIAL_MARK + BusinessConstants.BARCODE_HEAD_CANCEL;
     this.CacheResolver       = TheResolverMgr.Resolve(CacheResolver);
 }
Ejemplo n.º 5
0
 protected void ExecuteSubmit()
 {
     this.CacheResolver.Input = BusinessConstants.BARCODE_SPECIAL_MARK + BusinessConstants.BARCODE_HEAD_OK;
     this.CacheResolver       = TheResolverMgr.Resolve(CacheResolver);
 }