-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.h
21 lines (21 loc) · 1.13 KB
/
functions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
using namespace System::Windows::Forms;
using namespace Microsoft::Office::Interop::Excel;
// Ýêñïîðò òàáëèöû â ýêñåëü
void generateExcelExport(System::Windows::Forms::DataGridView^ tableName);
// Ñîçäàíèå ôàéëà, åñëè îí íå ñóùåñòâóåò
void createFileIfUndef(System::String^ path);
// Óäàëåíèå âûáðàííîé ñòðîêè ñ òàáëèöû
void deleteRowFromTable(System::Windows::Forms::DataGridView^ tableName);
// ñîçäàíèå ôàéëà åñëè îí íå ñóùåñòâóåò
void createFileIfUndef(System::String^ path);
// âàëèäàöèÿ ââîäà íîìåðà òåëåôîíà, öèôðîâûõ âûðàæåíèé
bool numberValidation(System::String^ nums, int typeError);
// Ïîèñê äàííûõ ïî òàáëèöå
void searchFromTable(System::Windows::Forms::TextBox^ inputValue, System::Windows::Forms::DataGridView^ tableName);
// Âàëèäàöèÿ äàòû
bool dateValidation(System::String^ date);
// ïðîâåðêà âõîäèò ëè äàòà â çàäàííûé èíòåðâàë âðåìåíè
bool dateLocInInterval(System::String^ date, System::String^ startDate, System::String^ endDate);
// ñ÷èòàåò êîëè÷åñòâî ñäåëîê, êîëè÷åñòâî ïðîäàæ, êîëè÷åñòâî ïîêóïîê, âîçâðàùàåò îáùèé äåíåæíûé ïîòîê ïî ñäåëêàì
long int statisticCalc(int& countOfDeals, int& countOfSales, int& countOfByus);