Created
August 4, 2014 11:49
-
-
Save ansmirnov/37060644128fb88bad5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bitel.billing.server.task.bean.*; | |
import bitel.billing.server.npay.*; | |
import java.util.*; | |
import java.sql.Connection; | |
import java.util.Calendar; | |
import java.util.GregorianCalendar; | |
import bitel.billing.common.TimeUtils; | |
import bitel.billing.server.task.bean.RunTaskDataManager; | |
import ru.bitel.bgbilling.kernel.script.server.dev.GlobalScriptBase; | |
import ru.bitel.bgbilling.server.util.Setup; | |
import ru.bitel.common.sql.ConnectionSet; | |
import ru.bitel.common.*; | |
public class npay_recalc | |
extends GlobalScriptBase | |
{ | |
@Override | |
public void execute( Setup setup1, ConnectionSet connectionSet2 ) | |
throws Exception | |
{ | |
Connection con = connectionSet2.getConnection(); | |
int NPAY_MID = 1; | |
// можно указать через запятую конкретные коды договоров, пустая строка - все договора | |
String cids = ""; | |
// месяц за который идёт перерасчёт | |
Calendar date = new GregorianCalendar(); | |
date.add( Calendar.MONTH, -1 ); | |
// EMail для отправки отчёта о завершении начисления | |
String email = null; | |
// набор услуг, 0- все услуги | |
int serviceSet = 0; | |
new RunTaskDataManager( con ).addTask( new Recalculator( NPAY_MID, date, email, serviceSet, cids, "" ) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment