Esempio n. 1
0
        public static bool FillData_ManagerNames(OutputDocument oOutputDocument, DateTime?dDateBeg, DateTime?dDateEnd)
        {
            if (oOutputDocument == null)
            {
                return(false);
            }

            if (!dDateBeg.HasValue)
            {
                dDateBeg = DateTime.Now;
            }
            if (!dDateEnd.HasValue)
            {
                dDateEnd = DateTime.Now;
            }

            RFMCursorWait.Set(true);
            if (!oOutputDocument.FillTableManagerNames(dDateBeg, dDateEnd) ||
                oOutputDocument.ErrorNumber != 0 ||
                oOutputDocument.TableManagerNames == null)
            {
                RFMCursorWait.Set(false);
                RFMMessage.MessageBoxError("Ошибка при получении данных (менеджеры)...");
                return(false);
            }
            RFMCursorWait.Set(false);
            if (oOutputDocument.TableManagerNames.Rows.Count == 0)
            {
                RFMMessage.MessageBoxError("Нет данных (менеджеры)...");
                return(false);
            }
            return(true);
        }