當前位置: 首頁>>代碼示例>>Java>>正文


Java Env.isSOTrx方法代碼示例

本文整理匯總了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;
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:22,代碼來源:VLocator.java

示例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 "";
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:20,代碼來源:OrderLine.java

示例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;
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:34,代碼來源:OrderLine.java

示例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;
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:35,代碼來源:InvoiceLine.java

示例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 "";
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:25,代碼來源:InvoiceLine.java

示例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);
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:14,代碼來源:OrderLine.java

示例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);
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:14,代碼來源:OrderLine.java

示例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);
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:15,代碼來源:OrderLine.java

示例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 "";
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:16,代碼來源:OrderLine.java

示例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);
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:24,代碼來源:InvoiceLine.java

示例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);
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:23,代碼來源:InvoiceLine.java

示例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);
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:23,代碼來源:InvoiceLine.java

示例13: isSOTrx

import org.compiere.util.Env; //導入方法依賴的package包/類
default boolean isSOTrx()
{
	return Env.isSOTrx(getCtx());
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:5,代碼來源:ZoomInfoFactory.java

示例14: isSOTrx

import org.compiere.util.Env; //導入方法依賴的package包/類
@Override
public boolean isSOTrx()
{
	return Env.isSOTrx(ctx, windowNo);
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:6,代碼來源:VPAttributeWindowContext.java

示例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;
}
 
開發者ID:metasfresh,項目名稱:metasfresh,代碼行數:75,代碼來源:InfoBuilder.java


注:本文中的org.compiere.util.Env.isSOTrx方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。