本文整理汇总了Java中org.compiere.util.Env.isSOTrx方法的典型用法代码示例。如果您正苦于以下问题:Java Env.isSOTrx方法的具体用法?Java Env.isSOTrx怎么用?Java Env.isSOTrx使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.compiere.util.Env
的用法示例。
在下文中一共展示了Env.isSOTrx方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getOnly_Product_ID
import org.compiere.util.Env; //导入方法依赖的package包/类
/**
* Get Product restriction if any.
* @return M_Product_ID or 0
*/
private int getOnly_Product_ID()
{
if (!Env.isSOTrx(Env.getCtx(), m_WindowNo))
return 0; // No product restrictions for PO
//
String only_Product = Env.getContext(Env.getCtx(), m_WindowNo, "M_Product_ID", true);
int only_Product_ID = 0;
try
{
if (only_Product != null && only_Product.length () > 0)
only_Product_ID = Integer.parseInt (only_Product);
}
catch (Exception ex)
{
}
return only_Product_ID;
}
示例2: discount
import org.compiere.util.Env; //导入方法依赖的package包/类
public String discount(
final Properties ctx, final int windowNo,
final GridTab mTab, final GridField mField, final Object value)
{
if (isCalloutActive() || !Env.isSOTrx(ctx, windowNo))
{
return "";
}
final I_C_OrderLine ol = InterfaceWrapperHelper.create(mTab, I_C_OrderLine.class);
if (ol.getM_Product_ID() == 0)
{
return "";
}
ol.setIsManualDiscount(true);
Services.get(IInstanceTriggerBL.class).updateCommissionPointsNet(ol);
return "";
}
示例3: isManualCommissionPoints
import org.compiere.util.Env; //导入方法依赖的package包/类
/** When this Flag is set to false, override previous points with default
* @param ctx
* @param windowNo
* @param mTab
* @param mField
* @param value
* @return
*/
public String isManualCommissionPoints(
final Properties ctx, final int windowNo,
final GridTab mTab, final GridField mField, final Object value)
{
if (isCalloutActive() || !Env.isSOTrx(ctx, windowNo))
{
return "";
}
String retVal = "";
if (!(Boolean)value)
{
final I_C_OrderLine ol = InterfaceWrapperHelper.create(mTab, I_C_OrderLine.class);
final IInstanceTriggerBL instanceTriggerBL = Services.get(IInstanceTriggerBL.class);
retVal = instanceTriggerBL.setCommissionPoints(ctx, ol, false, TRX_NAME);
if (!retVal.equals(""))
{
return retVal;
}
retVal = instanceTriggerBL.setCommissionPointsSum(ctx, ol, false, TRX_NAME);
}
return retVal;
}
示例4: isManualCommissionPoints
import org.compiere.util.Env; //导入方法依赖的package包/类
/** When this Flag is set to false, override previous points with default (If available take
* the points from order line, else use the price list)
* @param ctx
* @param windowNo
* @param mTab
* @param mField
* @param value
* @return
*/
public String isManualCommissionPoints(
final Properties ctx, final int windowNo,
final GridTab mTab, final GridField mField, final Object value)
{
if (isCalloutActive() || !Env.isSOTrx(ctx, windowNo))
{
return "";
}
String retVal = "";
if(!(Boolean)value)
{
final I_C_InvoiceLine il = InterfaceWrapperHelper.create(mTab, I_C_InvoiceLine.class);
final IInstanceTriggerBL instanceTriggerBL = Services.get(IInstanceTriggerBL.class);
retVal = instanceTriggerBL.setCommissionPoints(ctx, il, false, TRX_NAME);
if(!retVal.equals(""))
{
return retVal;
}
retVal = instanceTriggerBL.setCommissionPointsSum(ctx, il, false, TRX_NAME);
}
return retVal;
}
示例5: commissionPointsSum
import org.compiere.util.Env; //导入方法依赖的package包/类
/**
* If commissionPointsSum is changed update CommissionPoints
* @param ctx
* @param windowNo
* @param mTab
* @param mField
* @param value
* @return
*/
public String commissionPointsSum(
final Properties ctx, final int windowNo,
final GridTab mTab, final GridField mField, final Object value)
{
if (!Env.isSOTrx(ctx, windowNo))
{
return "";
}
final I_C_InvoiceLine il = InterfaceWrapperHelper.create(mTab, I_C_InvoiceLine.class);
Services.get(IInstanceTriggerBL.class).updateCommissionPointsNet(il);
return "";
}
示例6: updateCommissionPoints
import org.compiere.util.Env; //导入方法依赖的package包/类
private String updateCommissionPoints(
final Properties ctx,
final int windowNo,
final GridTab mTab)
{
if (isCalloutActive() || !Env.isSOTrx(ctx, windowNo))
{
return "";
}
final I_C_OrderLine ol = InterfaceWrapperHelper.create(mTab, I_C_OrderLine.class);
return Services.get(IInstanceTriggerBL.class).setCommissionPoints(ctx, ol, false, TRX_NAME);
}
示例7: updateCommissionPointsSum
import org.compiere.util.Env; //导入方法依赖的package包/类
private String updateCommissionPointsSum(
final Properties ctx,
final int windowNo,
final GridTab mTab)
{
if (isCalloutActive() || !Env.isSOTrx(ctx, windowNo))
{
return "";
}
final I_C_OrderLine ol = InterfaceWrapperHelper.create(mTab, I_C_OrderLine.class);
return Services.get(IInstanceTriggerBL.class).setCommissionPointsSum(ctx, ol, false, TRX_NAME);
}
示例8: commissionPoints
import org.compiere.util.Env; //导入方法依赖的package包/类
public String commissionPoints(
final Properties ctx, final int windowNo,
final GridTab mTab, final GridField mField, final Object value)
{
if (isCalloutActive() || !Env.isSOTrx(ctx, windowNo))
{
return "";
}
final I_C_OrderLine ol = InterfaceWrapperHelper.create(mTab, I_C_OrderLine.class);
final IInstanceTriggerBL instanceTriggerBL = Services.get(IInstanceTriggerBL.class);
return instanceTriggerBL.setCommissionPointsSum(ctx, ol, false, TRX_NAME);
}
示例9: commissionPointsSum
import org.compiere.util.Env; //导入方法依赖的package包/类
public String commissionPointsSum(
final Properties ctx, final int windowNo,
final GridTab mTab, final GridField mField, final Object value)
{
if (!Env.isSOTrx(ctx, windowNo))
{
return "";
}
final I_C_OrderLine ol = InterfaceWrapperHelper.create(mTab, I_C_OrderLine.class);
Services.get(IInstanceTriggerBL.class).updateCommissionPointsNet(ol);
return "";
}
示例10: commissionPoints
import org.compiere.util.Env; //导入方法依赖的package包/类
/**
* If commissionPoints is changed update CommissionPointsSum
* @param ctx
* @param windowNo
* @param mTab
* @param mField
* @param value
* @return
*/
public String commissionPoints(
final Properties ctx, final int windowNo,
final GridTab mTab, final GridField mField, final Object value)
{
if (isCalloutActive() || !Env.isSOTrx(ctx, windowNo))
{
return "";
}
final I_C_InvoiceLine il = InterfaceWrapperHelper.create(mTab, I_C_InvoiceLine.class);
final IInstanceTriggerBL instanceTriggerBL = Services.get(IInstanceTriggerBL.class);
return instanceTriggerBL.setCommissionPointsSum(ctx, il, false, TRX_NAME);
}
示例11: qtyEntered
import org.compiere.util.Env; //导入方法依赖的package包/类
/**
* If commissionPointsSum is changed update CommissionPoints
* @param ctx
* @param windowNo
* @param mTab
* @param mField
* @param value
* @return
*/
public String qtyEntered(
final Properties ctx, final int windowNo,
final GridTab mTab, final GridField mField, final Object value)
{
if (!Env.isSOTrx(ctx, windowNo))
{
return "";
}
final I_C_InvoiceLine il = InterfaceWrapperHelper.create(mTab, I_C_InvoiceLine.class);
return Services.get(IInstanceTriggerBL.class).setCommissionPointsSum(ctx, il, false, TRX_NAME);
}
示例12: product
import org.compiere.util.Env; //导入方法依赖的package包/类
/**
* If the Product is changed update CommissionPoints
* @param ctx
* @param windowNo
* @param mTab
* @param mField
* @param value
* @return
*/
public String product(
final Properties ctx, final int windowNo,
final GridTab mTab, final GridField mField, final Object value)
{
if (!Env.isSOTrx(ctx, windowNo))
{
return "";
}
final I_C_InvoiceLine il = InterfaceWrapperHelper.create(mTab, I_C_InvoiceLine.class);
return Services.get(IInstanceTriggerBL.class).setCommissionPoints(ctx, il, false, TRX_NAME);
}
示例13: isSOTrx
import org.compiere.util.Env; //导入方法依赖的package包/类
default boolean isSOTrx()
{
return Env.isSOTrx(getCtx());
}
示例14: isSOTrx
import org.compiere.util.Env; //导入方法依赖的package包/类
@Override
public boolean isSOTrx()
{
return Env.isSOTrx(ctx, windowNo);
}
示例15: newStandardInfoWindow
import org.compiere.util.Env; //导入方法依赖的package包/类
private Info newStandardInfoWindow()
{
final String tableName = getTableName();
final String keyColumn = getKeyColumn();
final Frame parentFrame = getParentFrame();
final boolean modal = isModal();
final int windowNo = getWindowNo();
final String value = getSearchValue();
final boolean multiSelection = isMultiSelection();
final String whereClause = getWhereClause();
final Info info;
if (tableName.equals("C_BPartner"))
{
final boolean isSOTrx = Env.isSOTrx(getCtx(), windowNo);
info = new InfoBPartner(parentFrame, modal, windowNo, value, isSOTrx, multiSelection, whereClause);
}
else if (tableName.equals("M_Product"))
{
final int m_Warehouse_ID = 0;
final int m_PriceList_ID = 0;
@SuppressWarnings("deprecation")
final InfoProduct infoProduct = new InfoProduct(parentFrame, modal, windowNo, m_Warehouse_ID, m_PriceList_ID, value, multiSelection, whereClause);
info = infoProduct;
}
else if (tableName.equals("C_Invoice"))
{
info = new InfoInvoice(parentFrame, modal, windowNo, value,
multiSelection, whereClause);
}
else if (tableName.equals("A_Asset"))
{
final int assetId = 0;
info = new InfoAsset(parentFrame, modal, windowNo, assetId, value, multiSelection, whereClause);
}
else if (tableName.equals("C_Order"))
{
info = new InfoOrder(parentFrame, modal, windowNo, value, multiSelection, whereClause);
}
else if (tableName.equals("M_InOut"))
{
info = new InfoInOut(parentFrame, modal, windowNo, value, multiSelection, whereClause);
}
else if (tableName.equals("C_Payment"))
{
info = new InfoPayment(parentFrame, modal, windowNo, value, multiSelection, whereClause);
}
else if (tableName.equals("C_CashLine"))
{
info = new InfoCashLine(parentFrame, modal, windowNo, value, multiSelection, whereClause);
}
else if (tableName.equals("S_ResourceAssigment"))
{
info = new InfoAssignment(parentFrame, modal, windowNo, value, multiSelection, whereClause);
}
else
{
info = new InfoGeneral(parentFrame, modal, windowNo, value,
tableName, keyColumn,
multiSelection, whereClause);
}
//
Check.assumeNotNull(info, "info not null");
//
// Set icon if any
final Image icon = getIconImage();
if (icon != null)
{
info.getWindow().setIconImage(icon);
}
return info;
}