Ejemplo n.º 1
0
            public CheckBarCode FindByBusinessKey(UFIDA.U9.Base.Organization.Organization org, System.String barCode)
            {
                BusinessKeyParameter parameter = new BusinessKeyParameter();

                parameter.Org     = org == null?null:org.Key;
                parameter.BarCode = barCode;
                return(this.FindByBusinessKey(parameter));
            }
Ejemplo n.º 2
0
            /// <summary>
            /// 通过实体设置的业务主键进行查询-建议使用.
            /// </summary>
            public CheckBarCode FindByBusinessKey(BusinessKeyParameter parameter)
            {
                if (parameter == null)
                {
                    throw new ArgumentException("parameter");
                }
                System.Text.StringBuilder  sbuilder  = new System.Text.StringBuilder(40 * 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()));
            }