Beispiel #1
0
        private void get_status_send_document()
        {
            string result = "";

            string documents_not_out = MainStaticClass.get_documents_not_out().ToString();

            if (documents_not_out == "-1")
            {
                result = " Произошли ошибки при получении кол-ва неотправленных документов, ";
            }
            else
            {
                result = " Не отправлено документов " + documents_not_out + ",";
            }

            int documents_out_of_the_range_of_dates = MainStaticClass.get_documents_out_of_the_range_of_dates();

            if (documents_out_of_the_range_of_dates == -1)
            {
                result += " Не удалось получить дату с сервера ";
            }
            else if (documents_out_of_the_range_of_dates == -2)
            {
                result += " Не удалось получить количество документов вне диапазона ";
            }
            else if (documents_out_of_the_range_of_dates > 0)
            {
                result += " За диапазоном находится " + documents_out_of_the_range_of_dates.ToString();
            }

            result += "  " + DateTime.Now.ToString("dd-MM-yyyy HH:mm:ss");

            Invoke(new set_message_on_txtB_not_unloaded_docs(set_text_on_txtB_not_unloaded_docs), new object[] { result });
        }