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


C# QueryType类代码示例

本文整理汇总了C#中QueryType的典型用法代码示例。如果您正苦于以下问题:C# QueryType类的具体用法?C# QueryType怎么用?C# QueryType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


QueryType类属于命名空间,在下文中一共展示了QueryType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: QuerySwitch

        public DataTable QuerySwitch(QueryType QT,
                                     ArrayList ParameterList
                                     )
        {
            DBO.VDM_VCMSLevelDBO dbo = new VDM_VCMSLevelDBO(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.ALL:
                        Dt = dbo.doQueryAll();
                        break;
                    case QueryType.CODE:
                        Dt = dbo.doQueryByCode(ParameterList);
                        break;
                    case QueryType.ID:
                        Dt = dbo.doQueryByID(ParameterList);
                        break;
                    case QueryType.Custom:
                        Dt = dbo.doQueryByFind(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:35,代码来源:MaintainVCMSLevel.cs

示例2: QuerySwitch

        public DataTable QuerySwitch(QueryType QT,
                                     ArrayList ParameterList
                                     )
        {
            DBO.RemoveDataDetail dbo = new RemoveDataDetail(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.ALL:
                        Dt = dbo.doQueryAll();
                        break;
                    
                    case QueryType.ID:
                        Dt = dbo.doQueryByID(ParameterList);
                        break;
                    case QueryType.Custom:
                        Dt = dbo.doQueryByFind(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:33,代码来源:MaintainRemoveDataDetail.cs

示例3: QuerySwitch

        public DataTable QuerySwitch(QueryType QT,
                                     ArrayList ParameterList
                                     )
        {
            DBO.MKT_PurchaseCardNondissStDBO dbo = new MKT_PurchaseCardNondissStDBO(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.ALL:
                        Dt = dbo.doQueryAll();
                        break;
                    case QueryType.ID:
                        Dt = dbo.doQueryByID(ParameterList);
                        break;
                    case QueryType.Custom:
                        Dt = dbo.doQueryByFind(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:32,代码来源:MaintainPurchaseCardNondissSt+.cs

示例4: QuerySwitch

        public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
        {
            #region
            VDS_ALO_POSOURCE_NO_TMP_DBO ALOM = new VDS_ALO_POSOURCE_NO_TMP_DBO(ref USEDB);

            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.CheckCurrentItemStatus:
                        Dt = ALOM.doCheckCurrentItemStatus(ParameterList);
                        break;
                    case QueryType.GetPOSOURCE_NO_TmpSchema:
                        Dt = ALOM.GetPOSOURCE_NO_TmpSchema(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw GetNewException(ex);
            }
            #endregion
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:30,代码来源:ImportChainPO.cs

示例5: QuerySwitch

        public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
        {
            DBO.VDS_CRM_RECORD_MAINDBO VCRM = new VDS_CRM_RECORD_MAINDBO(ref USEDB);
            DBO.VDS_CRM_RECORD_DETLDBO VCRD = new VDS_CRM_RECORD_DETLDBO(ref USEDB);

            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.QueryLastThreeCRMRecord:
                        Dt = VCRM.DO_CRM011_QUERY_RECORD_THREE(ParameterList);
                        break;
                    case QueryType.CRM011_DETL_SCHEMA:
                        Dt = VCRD.DO_CRM011_DETAIL_SCHEMA(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw GetNewException(ex);
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:29,代码来源:RecordCRMRecord.cs

示例6: Query

	    public Query(QueryType type, long token, ReqlAst term, OptArgs globalOptions)
		{
			this.Type = type;
			this.Token = token;
			this.Term = term;
			this.GlobalOptions = globalOptions;
		}
开发者ID:cadabloom,项目名称:RethinkDb.Driver,代码行数:7,代码来源:Query.cs

示例7: Lambda

        /// <summary>
        /// Creates a LinqLambdaType given the body type and parameter types.
        /// </summary>
        /// <param name="bodyType">Type of the lambda body.</param>
        /// <param name="parameterTypes">Collection of lambda parameter types.</param>
        /// <returns>LinqLambdaType with given body and parameter types.</returns>
        public static LinqLambdaType Lambda(QueryType bodyType, IEnumerable<QueryType> parameterTypes)
        {
            ExceptionUtilities.CheckArgumentNotNull(bodyType, "bodyType");
            ExceptionUtilities.CheckArgumentNotNull(parameterTypes, "parameterTypes");

            return new LinqLambdaType(bodyType, parameterTypes, bodyType.EvaluationStrategy);
        }
开发者ID:larsenjo,项目名称:odata.net,代码行数:13,代码来源:LinqTypes.cs

示例8: Query

 /// <summary>
 /// Инициализирует новый запрос
 /// </summary>
 /// <param name="type">Тип запроса</param>
 /// <param name="sql">Текст запроса</param>
 /// <param name="storedProcedure">Является ли хранимой процедурой</param>
 /// <param name="parameters">Параметры запроса</param>
 public Query(QueryType type, string sql, bool storedProcedure, params DbParam[] parameters)
 {
     Sql = sql;
     Parameters = parameters;
     Type = type;
     StoredProcedure = storedProcedure;
 }
开发者ID:qrunner,项目名称:Default,代码行数:14,代码来源:Query.cs

示例9: SQLWriter

 public SQLWriter(Servers server, QueryType queryType, String tableName, int buffSize = 100)
 {
     m_queryType = queryType;
     m_buffSize = buffSize;
     m_server = server;
     m_tableName = tableName;
 }
开发者ID:ExShini,项目名称:workRep,代码行数:7,代码来源:SQLWriter.cs

示例10: QuerySwitchLine

        public DataTable QuerySwitchLine(QueryType QT, ArrayList ParameterList)
        {
            DBO.VDS_ITM_PERIOD_MAIN_DBO STDM = new VDS_ITM_PERIOD_MAIN_DBO(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.ITEM_PERIOD:
                        Dt = STDM.doQueryByFind(ParameterList);
                        break;

                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:25,代码来源:MaintainSTDImport.cs

示例11: QuerySwitch

        public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
        {
            DBO.STD_IMPORT_DBO STDM = new STD_IMPORT_DBO(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.CHAN_NO:
                        Dt = STDM.doQueryByChanNo(ParameterList);
                        break;
                   
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:25,代码来源:MaintainSTDImport.cs

示例12: StQuerySwitch

        public string StQuerySwitch(QueryType QT, ArrayList ParameterList, out string errMsg)
        {
            CGD.VDS_CGD23_DBO CGDM = new VDS_CGD23_DBO(ref USEDB);
            string str;
            string ErrMsg = "";

            try
            {
                switch (QT)
                {
                    case QueryType.GetMaxPickBatch:
                        str = CGDM.GetMaxPickBatch(ParameterList, out ErrMsg);
                        errMsg = ErrMsg;
                        break;

                    case QueryType.GetCheckBatch:
                        str = CGDM.GetCheckBatch(ParameterList, out ErrMsg);
                        errMsg = ErrMsg;
                        break;

                    default:
                        str = "";
                        errMsg = "";
                        break;
                }
                return str;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:32,代码来源:ProcessPickQualityCheck.cs

示例13: QuerySwitch

        public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
        {
            CGD.VDS_CGD41_DBO CGDM = new VDS_CGD41_DBO(ref USEDB);
            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.GetPickBatch:
                        Dt = CGDM.GetPickBatch(ParameterList);
                        break;

                    case QueryType.Label:
                        Dt = CGDM.ExpLabelData(ParameterList);
                        break;

                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:29,代码来源:VDS_CGD41_BCO.cs

示例14: QuerySwitch

        public DataTable QuerySwitch(QueryType QT, ArrayList ParameterList)
        {
            #region
            VDS_ALO_DISRECORD_TMP_DBO ALOM = new VDS_ALO_DISRECORD_TMP_DBO(ref USEDB);

            DataTable Dt;

            try
            {
                switch (QT)
                {
                    case QueryType.GetDISRECORD_TmpSchema:
                        Dt = ALOM.GetDISRECORD_TmpSchema(ParameterList);
                        break;
                    default:
                        Dt = new DataTable();
                        break;
                }

                return Dt;
            }
            catch (Exception ex)
            {
                throw GetNewException(ex);
            }
            #endregion
        }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:27,代码来源:ImportDisRecord.cs

示例15: BuildDataQuery

        /// <summary>
        /// Build data query from the specified <paramref name="queryType"/>
        /// </summary>
        /// <param name="queryType">
        /// The query type.
        /// </param>
        /// <param name="structureRetrievalManager">
        /// The structure retrieval manager.
        /// </param>
        /// <returns>
        /// The data query from the specified <paramref name="queryType"/>
        /// </returns>
        public IList<IDataQuery> BuildDataQuery(
            QueryType queryType, ISdmxObjectRetrievalManager structureRetrievalManager)
        {
            IList<IDataQuery> returnList = new List<IDataQuery>();

            foreach (DataWhereType dataWhere in queryType.DataWhere)
            {
                // TODO java 0.9.9 no support for default limit. Opened : http://www.metadatatechnology.com/mantis/view.php?id=1427
                DataQueryProcessor dataQueryProcessor = null;

                if (queryType.defaultLimit.HasValue && queryType.defaultLimit.Value < int.MaxValue)
                {
                    int limit = decimal.ToInt32(queryType.defaultLimit.Value);
                    dataQueryProcessor = new DataQueryProcessor(limit);
                }
                else
                {
                    dataQueryProcessor = new DataQueryProcessor();
                }

                returnList.Add(dataQueryProcessor.BuildDataQuery(dataWhere, structureRetrievalManager));
            }

            return returnList;
        }
开发者ID:SDMXISTATFRAMEWORK,项目名称:ISTAT_ENHANCED_SDMXRI_WS,代码行数:37,代码来源:DataQueryBuilderV2.cs


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