Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.39 KB | None | 0 0
  1. import ru.ufanet.bgbilling.dyn.kernel.AccountingPeriodProcessor;
  2. import ru.ufanet.bgbilling.dyn.kernel.mes.ConnectionChargeProcessor;
  3. import ru.ufanet.bgbilling.dyn.kernel.mes.contracttatiffoption.ContractTariffOptionProcessor;
  4.  
  5. public void onEvent( event, setup, con, conSlave )
  6. {
  7.     try
  8.     {
  9.        
  10.         if ( event.getUserId() == 0 )
  11.         {
  12.             new ConnectionChargeProcessor( event, con ).call();
  13.             print( "Параметр договора меняет сервер" );
  14.         }
  15.        
  16.         //new ConnectionChargeProcessor( event, con ).call();
  17.     }
  18.     catch( Throwable throwable )
  19.     {
  20.         print( throwable.getMessage() );
  21.         for( StackTraceElement s : throwable.getStackTrace() )
  22.         {
  23.             print( s.toString() );
  24.         }
  25.     }
  26.  
  27.     try
  28.     {
  29.         new ContractTariffOptionProcessor( con ).tryChangeActionDateOfOptionToConnectionDate( event );
  30.     }
  31.     catch( Throwable throwable )
  32.     {
  33.         print( throwable.getMessage() );
  34.         for( StackTraceElement s : throwable.getStackTrace() )
  35.         {
  36.             print( s.toString() );
  37.         }
  38.     }
  39.  
  40.     try
  41.     {
  42.         new AccountingPeriodProcessor( con ).addFirstPeriodAccount( event );
  43.     }
  44.     catch( Throwable throwable )
  45.     {
  46.         print( throwable.getMessage() );
  47.         for( StackTraceElement s : throwable.getStackTrace() )
  48.         {
  49.             print( s.toString() );
  50.         }
  51.     }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement