示例#1
0
 protected override void SetBaseInfo(Resolver resolver)
 {
     if (resolver.BarcodeHead == BusinessConstants.BARCODE_HEAD_BIN)
     {
         setBaseMgr.FillResolverByBin(resolver);
     }
     else if (resolver.BarcodeHead == BusinessConstants.BARCODE_HEAD_LOCATION)
     {
         setBaseMgr.FillResolverByLocation(resolver);
     }
     else if (resolver.BarcodeHead == BusinessConstants.BARCODE_HEAD_FLOW)
     {
         setBaseMgr.FillResolverByFlow(resolver);
         if (resolver.OrderType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_PROCUREMENT &&
             resolver.ModuleType == BusinessConstants.TRANSFORMER_MODULE_TYPE_SHIPRETURN)
         {
             throw new BusinessErrorException("Flow.ShipReturn.Error.FlowTypeIsProcurement", resolver.OrderType);
         }
         if (resolver.OrderType == BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_DISTRIBUTION &&
             resolver.ModuleType == BusinessConstants.TRANSFORMER_MODULE_TYPE_RECEIVERETURN)
         {
             throw new BusinessErrorException("Flow.ReceiveReturn.Error.FlowTypeIsDistribution", resolver.OrderType);
         }
     }
     else
     {
         throw new BusinessErrorException("Common.Business.Error.BarCodeInvalid");
     }
 }
示例#2
0
 protected override void SetBaseInfo(Resolver resolver)
 {
     if (resolver.BarcodeHead == BusinessConstants.BARCODE_HEAD_FLOW)
     {
         setBaseMgr.FillResolverByFlow(resolver);
         if (resolver.OrderType != BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_PRODUCTION)
         {
             throw new BusinessErrorException("Flow.Error.FlowTypeIsNotProductLine", resolver.OrderType);
         }
     }
     else
     {
         throw new BusinessErrorException("Common.Business.Error.BarCodeInvalid");
     }
 }
示例#3
0
 protected override void SetBaseInfo(Resolver resolver)
 {
     setBaseMgr.FillResolverByFlow(resolver);
     if (resolver.OrderType != BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_PRODUCTION)
     {
         throw new BusinessErrorException("Flow.ShipReturn.Error.FlowTypeIsNotDistribution", resolver.OrderType);
     }
 }
示例#4
0
 protected override void SetBaseInfo(Resolver resolver)
 {
     if (resolver.BarcodeHead == BusinessConstants.BARCODE_HEAD_BIN)
     {
         setBaseMgr.FillResolverByBin(resolver);
     }
     //暂不支持不扫描物流路线移库到库位
     //else if (resolver.BarcodeHead == BusinessConstants.BARCODE_HEAD_LOCATION)
     //{
     //    setBaseMgr.FillResolverByLocation(resolver);
     //}
     else if (resolver.BarcodeHead == BusinessConstants.BARCODE_HEAD_FLOW)
     {
         setBaseMgr.FillResolverByFlow(resolver);
         if (resolver.OrderType != BusinessConstants.CODE_MASTER_ORDER_TYPE_VALUE_TRANSFER)
         {
             throw new BusinessErrorException("Flow.Error.FlowTypeIsNotTransfer", resolver.OrderType);
         }
     }
     else
     {
         throw new BusinessErrorException("Common.Business.Error.BarCodeInvalid");
     }
 }