当前位置: 首页>>代码示例>>C#>>正文


C# SAPbouiCOM.Query方法代码示例

本文整理汇总了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);
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:22,代码来源:KIS_SO0311A_HRD.cs

示例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);
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:12,代码来源:KIS_SO0030A_HRD.cs

示例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;
            }
        }
开发者ID:wldyd0210,项目名称:TEST,代码行数:51,代码来源:KIS_SO0291A_HRD.cs


注:本文中的SAPbouiCOM.Query方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。