public class BillUtil
extends java.lang.Object
Constructor and Description |
---|
BillUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addInline(org.w3c.dom.Element rootNode,
Preferences moduleSetup,
int userID) |
static void |
addTariffInfo(java.sql.Connection con,
javax.xml.stream.XMLStreamWriter node,
int cid,
java.util.Date date1,
java.util.Date date2) |
static void |
buildParamsAndAttributesList(java.sql.Connection con,
int moduleId,
Preferences moduleSetup,
int cid,
javax.xml.stream.XMLStreamWriter node,
int docTypeId,
java.lang.String userName) |
static void |
convertDocument(Setup setup,
java.sql.Connection con,
int mid,
org.w3c.dom.Document doc,
java.lang.String patternName,
java.io.OutputStream baos) |
protected static java.math.BigDecimal |
getCharge(java.util.Calendar month,
java.lang.String cids,
java.lang.String pt,
java.sql.Connection con) |
protected static java.math.BigDecimal |
getDebt(java.util.Calendar month,
int cid,
java.sql.Connection con) |
protected static java.math.BigDecimal |
getInrest(java.util.Calendar month,
int cid,
java.sql.Connection con) |
static java.lang.String |
getPatternName(Setup setup,
java.lang.String type,
java.sql.Connection con,
int mid,
int docId) |
protected static java.math.BigDecimal |
getPayment(java.util.Calendar month,
java.lang.String cids,
java.lang.String pt,
java.sql.Connection con) |
static java.util.List<PositionValue> |
getPositionList(java.sql.Connection con,
java.util.Calendar month,
int contractId,
java.lang.String cids,
DocType docType,
java.util.Map<java.lang.Integer,Position> positionMap) |
protected static void |
getServiceAccount(java.util.Calendar month,
java.lang.String cids,
java.lang.String sid,
java.sql.Connection con,
java.math.BigDecimal[] sum) |
protected static void |
getTariffDetailCost(int mid,
java.util.Calendar month,
java.lang.String monthMacro,
java.lang.String cids,
java.lang.String costTypes,
java.sql.Connection con,
java.math.BigDecimal[] sum) |
static boolean |
isPast(int yy,
int mm)
Для того чтобы не создавать счета за будущий месяц и не добавлять в базу
пересчитанный баланс за месяц, который еще не начался
|
static java.util.Calendar |
moveDate(java.util.Calendar month,
java.lang.String monthMacro) |
static java.lang.String |
parsePositionName(java.lang.String name,
java.util.Calendar _month) |
public static java.lang.String parsePositionName(java.lang.String name, java.util.Calendar _month)
public static boolean isPast(int yy, int mm)
yy
- mm
- protected static java.math.BigDecimal getInrest(java.util.Calendar month, int cid, java.sql.Connection con)
protected static java.math.BigDecimal getDebt(java.util.Calendar month, int cid, java.sql.Connection con)
protected static java.math.BigDecimal getPayment(java.util.Calendar month, java.lang.String cids, java.lang.String pt, java.sql.Connection con)
protected static java.math.BigDecimal getCharge(java.util.Calendar month, java.lang.String cids, java.lang.String pt, java.sql.Connection con)
protected static void getServiceAccount(java.util.Calendar month, java.lang.String cids, java.lang.String sid, java.sql.Connection con, java.math.BigDecimal[] sum)
month
- cids
- sid
- con
- sum
- [0] - unscaled, [1] - scaledprotected static void getTariffDetailCost(int mid, java.util.Calendar month, java.lang.String monthMacro, java.lang.String cids, java.lang.String costTypes, java.sql.Connection con, java.math.BigDecimal[] sum)
public static void buildParamsAndAttributesList(java.sql.Connection con, int moduleId, Preferences moduleSetup, int cid, javax.xml.stream.XMLStreamWriter node, int docTypeId, java.lang.String userName) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public static void addTariffInfo(java.sql.Connection con, javax.xml.stream.XMLStreamWriter node, int cid, java.util.Date date1, java.util.Date date2) throws javax.xml.stream.XMLStreamException, java.sql.SQLException
javax.xml.stream.XMLStreamException
java.sql.SQLException
public static java.util.List<PositionValue> getPositionList(java.sql.Connection con, java.util.Calendar month, int contractId, java.lang.String cids, DocType docType, java.util.Map<java.lang.Integer,Position> positionMap)
public static final java.lang.String getPatternName(Setup setup, java.lang.String type, java.sql.Connection con, int mid, int docId)
public static java.util.Calendar moveDate(java.util.Calendar month, java.lang.String monthMacro)
public static void addInline(org.w3c.dom.Element rootNode, Preferences moduleSetup, int userID)
public static void convertDocument(Setup setup, java.sql.Connection con, int mid, org.w3c.dom.Document doc, java.lang.String patternName, java.io.OutputStream baos) throws org.apache.fop.apps.FOPException, javax.xml.transform.TransformerException
org.apache.fop.apps.FOPException
javax.xml.transform.TransformerException