Exemplo n.º 1
0
            /// <summary>
            /// 通过索引IX_WSLog_ClassName_MethodName进行查询(参数对象接口)
            /// </summary>
            public WSLog.EntityList FindByIXWSLogClassNameMethodName(IXWSLogClassNameMethodNameParameter parameter)
            {
                if (parameter == null)
                {
                    throw new ArgumentException("parameter");
                }
                System.Text.StringBuilder  sbuilder  = new System.Text.StringBuilder(20 * 2);
                UFSoft.UBF.PL.OqlParamList paramlist = new UFSoft.UBF.PL.OqlParamList();

                if (System.String.IsNullOrEmpty(parameter.ClassName))
                {
                    sbuilder.Append("  ClassName is null ");
                }
                else
                {
                    sbuilder.Append("ClassName = @ClassName");
                    paramlist.Add(new UFSoft.UBF.PL.OqlParam("ClassName", parameter.ClassName));
                }
                if (System.String.IsNullOrEmpty(parameter.MethodName))
                {
                    sbuilder.Append("  and  MethodName is null ");
                }
                else
                {
                    sbuilder.Append(" and MethodName = @MethodName");
                    paramlist.Add(new UFSoft.UBF.PL.OqlParam("MethodName", parameter.MethodName));
                }
                return(this.FindAll(sbuilder.ToString(), paramlist.ToArray()));
            }
Exemplo n.º 2
0
            /// <summary>
            /// 通过索引UFIDA_U9_Cust_JSDY_BarCode_CheckBarCode_BusinessKey_Index进行查询(参数对象接口)
            /// </summary>
            public CheckBarCode FindByBusinessKeyIndex(BusinessKeyIndexParameter parameter)
            {
                if (parameter == null)
                {
                    throw new ArgumentException("parameter");
                }
                System.Text.StringBuilder  sbuilder  = new System.Text.StringBuilder(20 * 2);
                UFSoft.UBF.PL.OqlParamList paramlist = new UFSoft.UBF.PL.OqlParamList();

                sbuilder.Append("Org = @Org");
                paramlist.Add(new UFSoft.UBF.PL.OqlParam("Org", parameter.Org.ID));
                sbuilder.Append(" and BarCode = @BarCode");
                paramlist.Add(new UFSoft.UBF.PL.OqlParam("BarCode", parameter.BarCode));
                return(this.Find(sbuilder.ToString(), paramlist.ToArray()));
            }