Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import ru.ufanet.bgbilling.dyn.kernel.AccountingPeriodProcessor;
- import ru.ufanet.bgbilling.dyn.kernel.mes.ConnectionChargeProcessor;
- import ru.ufanet.bgbilling.dyn.kernel.mes.contracttatiffoption.ContractTariffOptionProcessor;
- public void onEvent( event, setup, con, conSlave )
- {
- try
- {
- if ( event.getUserId() == 0 )
- {
- new ConnectionChargeProcessor( event, con ).call();
- print( "Параметр договора меняет сервер" );
- }
- //new ConnectionChargeProcessor( event, con ).call();
- }
- catch( Throwable throwable )
- {
- print( throwable.getMessage() );
- for( StackTraceElement s : throwable.getStackTrace() )
- {
- print( s.toString() );
- }
- }
- try
- {
- new ContractTariffOptionProcessor( con ).tryChangeActionDateOfOptionToConnectionDate( event );
- }
- catch( Throwable throwable )
- {
- print( throwable.getMessage() );
- for( StackTraceElement s : throwable.getStackTrace() )
- {
- print( s.toString() );
- }
- }
- try
- {
- new AccountingPeriodProcessor( con ).addFirstPeriodAccount( event );
- }
- catch( Throwable throwable )
- {
- print( throwable.getMessage() );
- for( StackTraceElement s : throwable.getStackTrace() )
- {
- print( s.toString() );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement