Package bitel.billing.server.admin.bean
Class PaymentAndChargeTypeManager
java.lang.Object
bitel.billing.server.admin.bean.PaymentAndChargeTypeManager
Deprecated.
Исплользовать PaymentTypeDao или ChargeTypeDao если нужно прямое обращение к базе,
 если же нужны просто сами типы, то вытаскивать через справочники: getDirectory( ChargeType.class, -1, true ) или так getDirectory( ChargeType.class ) в клиенте,
 точно так же и с payment.
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetChargeTitleById(int chid) Deprecated.getChargeTitleByID(int chid) Deprecated.getChargeTypes(Integer flag) Deprecated.getChargeTypes(Integer flag, Integer type) Deprecated.getPaymentOrChargeTypes(int mode) Deprecated.Мэп типов приходов/расходов.getPaymentTitleById(int pid) Deprecated.getPaymentTitleByID(int pid) Deprecated.getPaymentTypes(Integer flag) Deprecated.Мэп типов платежей.getPaymentTypes(Integer flag, Integer type) Deprecated.booleanisPaymentTypeExists(int id) Deprecated.Использовать directory, если вернет null, значит не существует. 
- 
Field Details
- 
FLAG_EDITABLE
public static final int FLAG_EDITABLEDeprecated.- See Also:
 
 - 
FLAG_NOTEDITABLE
public static final int FLAG_NOTEDITABLEDeprecated.- See Also:
 
 - 
TYPE_BRANCH
public static final int TYPE_BRANCHDeprecated.- See Also:
 
 - 
TYPE_LEAF
public static final int TYPE_LEAFDeprecated.- See Also:
 
 
 - 
 - 
Constructor Details
- 
PaymentAndChargeTypeManager
Deprecated. 
 - 
 - 
Method Details
- 
getPaymentOrChargeTypes
Deprecated.Мэп типов приходов/расходов. Берутся все, со всеми type и flag- Parameters:
 mode- 0 - contract_payment_types, 1,(+ещё?) - contract_charge_types- Returns:
 - мэп(ид=>заголовок)
 - Throws:
 SQLException
 - 
getChargeTypes
Deprecated.- Throws:
 SQLException
 - 
getChargeTypes
Deprecated. - 
getPaymentTypes
Deprecated.Мэп типов платежей. Возвращается только type=0.- Parameters:
 flag- если не null то возвращается только с указанным флагом- Returns:
 - мэп(ид=>заголовок)
 - Throws:
 SQLException
 - 
getPaymentTypes
Deprecated.- Throws:
 SQLException
 - 
getChargeTitleById
Deprecated. - 
getChargeTitleByID
Deprecated.ИспользоватьgetChargeTitleById(int).- Parameters:
 chid-- Returns:
 - Throws:
 SQLException
 - 
getPaymentTitleById
Deprecated.- Throws:
 SQLException
 - 
getPaymentTitleByID
Deprecated.ИспользоватьgetPaymentTitleById(int).- Parameters:
 pid-- Returns:
 - Throws:
 SQLException
 - 
isPaymentTypeExists
public boolean isPaymentTypeExists(int id) Deprecated.Использовать directory, если вернет null, значит не существует. Проверяет, существует ли данный тип платежа.- Parameters:
 id- код типа платежа- Returns:
 - true - если существует
 
 
 -