Пример #1
0
        public static bool DelDebitNote(string[] noteIds, out int count)
        {
            ManagerHelper.CheckPrivilege(Privilege.DeleteOrder);
            bool flag = true;

            count = 0;
            foreach (string str in noteIds)
            {
                if (!string.IsNullOrEmpty(str))
                {
                    flag &= new DebitNoteDao().DelDebitNote(str);
                    if (flag)
                    {
                        count++;
                    }
                }
            }
            return(flag);
        }
Пример #2
0
        public static bool DelDebitNote(string[] noteIds, out int count)
        {
            ManagerHelper.CheckPrivilege(Privilege.DeleteOrder);
            bool flag = true;

            count = 0;
            for (int i = 0; i < noteIds.Length; i++)
            {
                string text = noteIds[i];
                if (!string.IsNullOrEmpty(text))
                {
                    flag &= new DebitNoteDao().DelDebitNote(text);
                    if (flag)
                    {
                        count++;
                    }
                }
            }
            return(flag);
        }