コード例 #1
0
        public static bool CheckDiscountCriteriaCodeExists(string[] ADiscountCriteriaCode)
        {
            TDBTransaction ReadTransaction = new TDBTransaction();

            Boolean CriteriaCodeExists = true;

            DBAccess.ReadTransaction(ref ReadTransaction,
                                     delegate
            {
                foreach (string CriteriaCode in ADiscountCriteriaCode)
                {
                    if (!PcDiscountCriteriaAccess.Exists(CriteriaCode, ReadTransaction))
                    {
                        CriteriaCodeExists = false;
                        break;
                    }
                }
            });

            return(CriteriaCodeExists);
        }
コード例 #2
0
        public static bool CheckDiscountCriteriaCodeExists(string[] ADiscountCriteriaCode)
        {
            TDBTransaction ReadTransaction = null;

            Boolean CriteriaCodeExists = true;

            DBAccess.GDBAccessObj.GetNewOrExistingAutoReadTransaction(IsolationLevel.ReadCommitted,
                                                                      TEnforceIsolationLevel.eilMinimum, ref ReadTransaction,
                                                                      delegate
            {
                foreach (string CriteriaCode in ADiscountCriteriaCode)
                {
                    if (!PcDiscountCriteriaAccess.Exists(CriteriaCode, ReadTransaction))
                    {
                        CriteriaCodeExists = false;
                        break;
                    }
                }
            });

            return(CriteriaCodeExists);
        }