本文整理汇总了C#中SAPbouiCOM.Query方法的典型用法代码示例。如果您正苦于以下问题:C# SAPbouiCOM.Query方法的具体用法?C# SAPbouiCOM.Query怎么用?C# SAPbouiCOM.Query使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SAPbouiCOM
的用法示例。
在下文中一共展示了SAPbouiCOM.Query方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: QueryWithConditions_MASTER
private void QueryWithConditions_MASTER(ref SAPbouiCOM.DBDataSource oDB, string pYYYYMM, string pCENTCD)
{
SAPbouiCOM.Conditions oConditions;
SAPbouiCOM.Condition oCondition;
oConditions = (SAPbouiCOM.Conditions)B1Connections.theAppl.CreateObject(BoCreatableObjectType.cot_Conditions);
oCondition = oConditions.Add();
oCondition.Alias = "U_YYYYMM";
oCondition.Operation = BoConditionOperation.co_EQUAL;
oCondition.CondVal = pYYYYMM;
oCondition.Relationship = BoConditionRelationship.cr_AND;
oCondition = oConditions.Add();
oCondition.Alias = "U_CENTCD";
oCondition.Operation = BoConditionOperation.co_EQUAL;
oCondition.CondVal = pCENTCD;
oCondition.Relationship = BoConditionRelationship.cr_AND;
oCondition = oConditions.Add();
oCondition.Alias = "U_BTYPE";
oCondition.Operation = BoConditionOperation.co_EQUAL;
oCondition.CondVal = "KIS_SO0310_HRD";
oDB.Query(oConditions);
}
示例2: QueryWithConditions
private void QueryWithConditions(ref SAPbouiCOM.DBDataSource oDB, string strAlias, string strCondVal)
{
SAPbouiCOM.Conditions oConditions;
SAPbouiCOM.Condition oCondition;
oConditions = (SAPbouiCOM.Conditions)B1Connections.theAppl.CreateObject(BoCreatableObjectType.cot_Conditions);
oCondition = oConditions.Add();
oCondition.Alias = strAlias;
oCondition.Operation = BoConditionOperation.co_EQUAL;
oCondition.CondVal = strCondVal;
oDB.Query(oConditions);
}
示例3: QueryWithConditions
private void QueryWithConditions(ref SAPbouiCOM.DBDataSource oDB, Dictionary<string, string> pDictionary)
{
SAPbouiCOM.Conditions oConditions = null;
SAPbouiCOM.Condition oCondition = null;
oConditions = (SAPbouiCOM.Conditions)B1Connections.theAppl.CreateObject(BoCreatableObjectType.cot_Conditions);
string strCenterCd = string.Empty;
string strBranchCd = string.Empty;
int iLoop = 0;
try
{
if (pDictionary != null)
{
foreach (KeyValuePair<string, string> item in pDictionary)
{
if (iLoop > 0)
oCondition.Relationship = BoConditionRelationship.cr_AND;
oCondition = oConditions.Add();
switch (item.Key.ToString())
{
case "U_PAPERTP":
oCondition.Alias = item.Key.ToString();
oCondition.Operation = BoConditionOperation.co_EQUAL;
oCondition.CondVal = item.Value.ToString();
break;
case "U_CENTCD":
oCondition.Alias = item.Key.ToString();
oCondition.Operation = BoConditionOperation.co_EQUAL;
oCondition.CondVal = item.Value.ToString();
break;
case "U_BRCHCD":
oCondition.Alias = item.Key.ToString();
oCondition.Operation = BoConditionOperation.co_EQUAL;
oCondition.CondVal = item.Value.ToString();
break;
default:
break;
}
iLoop += 1;
}
oDB.Query(oConditions);
}
}
catch (Exception)
{
throw;
}
}