commit 0d52423c92e5f89ad987f2872667c56ca17f4a00 Author: Aria Date: Thu May 14 15:38:46 2026 +0400 first commit diff --git a/ER-PDF.pdf b/ER-PDF.pdf new file mode 100644 index 0000000..7ef9798 Binary files /dev/null and b/ER-PDF.pdf differ diff --git a/ScriptBD.sql b/ScriptBD.sql new file mode 100644 index 0000000..05975f0 --- /dev/null +++ b/ScriptBD.sql @@ -0,0 +1,280 @@ +-- MySQL dump 10.13 Distrib 8.0.42, for Win64 (x86_64) +-- +-- Host: 85.239.57.125 Database: Scriabin_Sophia_ProbModul +-- ------------------------------------------------------ +-- Server version 8.0.45-0ubuntu0.24.04.1 + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!50503 SET NAMES utf8 */; +/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; +/*!40103 SET TIME_ZONE='+00:00' */; +/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +-- +-- Table structure for table `Category` +-- + +DROP TABLE IF EXISTS `Category`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `Category` ( + `idCategory` int NOT NULL AUTO_INCREMENT, + `Category` varchar(45) NOT NULL, + PRIMARY KEY (`idCategory`) +) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `Category` +-- + +LOCK TABLES `Category` WRITE; +/*!40000 ALTER TABLE `Category` DISABLE KEYS */; +INSERT INTO `Category` VALUES (1,'Мячи'),(2,'Обувь'),(3,'Тренажеры'),(4,'Лыжный спорт'),(5,'Экипировка'),(6,'Силовые'),(7,'Кардио'),(8,'Фитнес'),(9,'Одежда'),(10,'Туризм'),(11,'Единоборства'),(12,'Теннис'),(13,'Плавание'); +/*!40000 ALTER TABLE `Category` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `Klients` +-- + +DROP TABLE IF EXISTS `Klients`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `Klients` ( + `idKlient` int NOT NULL AUTO_INCREMENT, + `Login` varchar(45) NOT NULL, + `Password` varchar(45) NOT NULL, + `FIO` varchar(100) NOT NULL, + `RoleID` int NOT NULL, + `Mail` varchar(100) NOT NULL, + `Phone` bigint NOT NULL, + PRIMARY KEY (`idKlient`), + KEY `klients_Role_idx` (`RoleID`), + CONSTRAINT `klients_Role` FOREIGN KEY (`RoleID`) REFERENCES `Role` (`idRole`) +) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `Klients` +-- + +LOCK TABLES `Klients` WRITE; +/*!40000 ALTER TABLE `Klients` DISABLE KEYS */; +INSERT INTO `Klients` VALUES (1,'client_001','hash45678','Сидоров Алексей Михайлович',3,'sidorov@mail.ru',89110001122),(2,'client_002','hash56789','Кузнецова Елена Владимировна',3,'kuz_el@ya.ru',89120002233),(3,'client_003','hash67890','Попов Дмитрий Николаевич',3,'popov_d@gmail.com',89140004455),(4,'client_004','hash78901','Васильева Мария Александровна',3,'vasya_m@mail.ru',89150005566),(5,'client_005','hash89012','Соколов Максим Андреевич',3,'sokol_max@ya.ru',89160006677),(6,'client_006','hash90123','Михайлова Дарья Юрьевна',3,'mikh_d@gmail.com',89170007788),(7,'client_007','hash01234','Федоров Артем Викторович',3,'fedorov_a@mail.ru',89190009900),(8,'client_008','hash11234','Морозова Екатерина Олеговна',3,'moroz_e@ya.ru',89200001111),(9,'client_009','hash22345','Волков Илья',3,'volkov_i@gmail.com',89210002222),(10,'client_010','hash33456','Алексеева Анастасия Денисовна',3,'alekseeva@mail.ru',89220003333),(11,'client_011','hash44567','Лебедев Никита Павлович',3,'lebedev_n@ya.ru',892304444),(12,'client_012','hash55678','Семенова Ольга Константиновна',3,'semenova_o@gmail.com',89240005555),(13,'client_013','hash66789','Егоров Павел',3,'egorov_p@mail.ru',89250006666),(14,'client_014','hash77890','Павлова Татьяна Евгеньевна',3,'pavlova_t@ya.ru',89260007777),(15,'client_015','hash88901','Козлов Роман Борисович',3,'kozlov_r@gmail.com',89270008888),(16,'client_016','hash99012','Степанова Юлия Аркадьевна',3,'stepanova_y@mail.ru',89280009999),(17,'client_017','hash00123','Николаев Глеб Степанович',3,'nikolaev_g@ya.ru',892901234),(18,'client_018','hash11122','Орлова Виктория',3,'orlova_v@gmail.com',89300002345),(19,'client_019','hash22233','Макаров Даниил Антонович',3,'makarov_d@mail.ru',89310003456),(20,'client_020','hash33344','Андреева Полина Вячеславовна',3,'andreeva_p@ya.ru',89320004567),(21,'client_021','hash44455','Захаров Кирилл Леонидович',3,'zaharov_k@gmail.com',89330005678),(22,'client_022','hash55566','Зайцева Алина Федоровна',3,'zaitseva_a@mail.ru',893406789),(23,'client_023','hash66677','Соловьев Владислав Игоревич',3,'soloviev_v@ya.ru',89350007890),(24,'client_024','hash77788','Борисова Яна Станиславовна',3,'borisova_y@gmail.com',89360008901),(25,'client_025','hash88899','Яковлев Арсений Максимович',3,'yakovlev_a@mail.ru',89370009012),(26,'client_026','hash99900','Григорьева Вера Руслановна',3,'grigorieva_v@ya.ru',89001112233),(27,'3','3','Романов Вадим',3,'romanov_v@gmail.com',89002223344),(28,'1','1','Иванов Иван Иванович',1,'Ivanov@mail.ru',89456666666),(29,'2','2','Петров Петр Петрович',2,'Petrov@mail.ru',89453632636); +/*!40000 ALTER TABLE `Klients` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `Manufacturer` +-- + +DROP TABLE IF EXISTS `Manufacturer`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `Manufacturer` ( + `idManufacturer` int NOT NULL AUTO_INCREMENT, + `Manufacturer` varchar(45) NOT NULL, + PRIMARY KEY (`idManufacturer`) +) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `Manufacturer` +-- + +LOCK TABLES `Manufacturer` WRITE; +/*!40000 ALTER TABLE `Manufacturer` DISABLE KEYS */; +INSERT INTO `Manufacturer` VALUES (1,'Adidas'),(2,'Nike'),(3,'Kettler'),(4,'Fischer'),(5,'СпортМастер'),(6,'Spalding'),(7,'Mikasa'),(8,'Demix'),(9,'Torneo'),(10,'Barbell'),(11,'Reebok'),(12,'Puma'),(13,'Under Armour'),(14,'Outventure'),(15,'Nordway'),(16,'Deuter'),(17,'Stanley'),(18,'Everlast'),(19,'Venum'),(20,'Wilson'),(21,'Head'),(22,'Speedo'),(23,'Joss'); +/*!40000 ALTER TABLE `Manufacturer` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `Orders` +-- + +DROP TABLE IF EXISTS `Orders`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `Orders` ( + `idOrders` int NOT NULL AUTO_INCREMENT, + `Article` varchar(45) NOT NULL, + `FIOID` int NOT NULL, + `StatusID` int NOT NULL, + `PickUpPoint` varchar(45) NOT NULL, + `DateOrders` date NOT NULL, + `DateDelivery` date DEFAULT NULL, + `SostavID` int NOT NULL, + PRIMARY KEY (`idOrders`), + KEY `Klient_Orders_idx` (`FIOID`), + KEY `Status_Orders_idx` (`StatusID`), + KEY `Product_Orders_idx` (`SostavID`), + CONSTRAINT `Klient_Orders` FOREIGN KEY (`FIOID`) REFERENCES `Klients` (`idKlient`), + CONSTRAINT `Product_Orders` FOREIGN KEY (`SostavID`) REFERENCES `Product` (`idProduct`), + CONSTRAINT `Status_Orders` FOREIGN KEY (`StatusID`) REFERENCES `Status` (`idStatus`) +) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `Orders` +-- + +LOCK TABLES `Orders` WRITE; +/*!40000 ALTER TABLE `Orders` DISABLE KEYS */; +INSERT INTO `Orders` VALUES (1,'ORD-1001',1,1,'ул. Ленина, 15','2023-09-01','2023-09-05',1),(2,'ORD-1002',2,2,'Пр. Мира, 42','2023-09-02',NULL,8),(3,'ORD-1003',3,1,'ул. Пушкина, 10','2023-09-05','2023-09-08',14),(4,'ORD-1004',1,3,'ул. Ленина, 15','2023-10-25','2023-10-30',4),(5,'ORD-1005',4,4,'ул. Гагарина, 8','2023-10-24','2023-10-29',20),(6,'ORD-1006',5,1,'пр. Строителей, 1','2023-09-10','2023-09-15',2),(7,'ORD-1007',6,1,'ул. Чехова, 33','2023-09-11','2023-09-14',6),(8,'ORD-1008',25,3,'ул. Кирова, 12','2023-10-26','2023-11-01',24),(9,'ORD-1009',8,4,'пер. Тихий, 4','2023-10-23','2023-10-28',27),(10,'ORD-1010',9,2,'бульвар Роз, 7','2023-09-15',NULL,10),(11,'ORD-1011',10,1,'ул. Садовая, 19','2023-09-18','2023-09-22',15),(12,'ORD-1012',19,1,'пр. Победы, 50','2023-09-20','2023-09-25',19),(13,'ORD-1013',6,3,'ул. Новая, 2','2023-10-26','2023-10-31',13),(14,'ORD-1014',25,4,'ул. Северная, 9','2023-10-25','2023-10-29',12),(15,'ORD-1015',14,1,'ул. Южная, 11','2023-09-22','2023-09-26',3),(16,'ORD-1016',19,2,'ул. Ленина, 15','2023-10-01',NULL,22),(17,'ORD-1017',15,1,'пр. Ленина, 100','2023-09-25','2023-09-28',17),(18,'ORD-1018',6,3,'ул. Советская, 3','2023-10-26','2023-11-02',29),(19,'ORD-1019',17,4,'ул. Труда, 14','2023-10-22','2023-10-27',1),(20,'ORD-1020',18,1,'ул. Зеленая, 8','2023-10-05','2023-10-09',16),(21,'ORD-1021',25,1,'пер. Школьный, 1','2023-10-08','2023-10-12',26),(22,'ORD-1022',20,2,'ул. Цветочная, 5','2023-10-10',NULL,9),(23,'ORD-1023',6,3,'пр. Мира, 42','2023-10-26','2023-11-01',5),(24,'ORD-1024',22,4,'ул. Гагарина, 8','2023-10-24','2023-10-29',6),(25,'ORD-1025',23,1,'ул. Чехова, 33','2023-10-12','2023-10-16',11),(26,'ORD-1026',19,1,'бульвар Роз, 7','2023-10-15','2023-10-18',12),(27,'ORD-1027',25,3,'пр. Строителей, 1','2023-10-26','2023-11-03',24),(28,'ORD-1028',6,4,'ул. Кирова, 12','2023-10-25','2023-10-30',29),(29,'ORD-1029',27,1,'ул. Садовая, 19','2023-10-18','2023-10-22',20),(30,'ORD-1030',25,2,'Пр. Мира, 42','2023-10-20',NULL,8); +/*!40000 ALTER TABLE `Orders` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `Product` +-- + +DROP TABLE IF EXISTS `Product`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `Product` ( + `idProduct` int NOT NULL AUTO_INCREMENT, + `Article` varchar(45) NOT NULL, + `Name` varchar(100) NOT NULL, + `CategoryID` int NOT NULL, + `Description` varchar(100) NOT NULL, + `ManufacturerID` int NOT NULL, + `SupplierID` int NOT NULL, + `Price` decimal(10,2) NOT NULL, + `Discount` varchar(45) DEFAULT NULL, + `Quantity` int NOT NULL, + `EdinicaID` int NOT NULL, + `Photo` varchar(45) DEFAULT NULL, + PRIMARY KEY (`idProduct`), + KEY `Unit_idx` (`EdinicaID`), + KEY `Category_idx` (`CategoryID`), + KEY `Manufacturer_idx` (`ManufacturerID`), + KEY `Supplier_idx` (`SupplierID`), + CONSTRAINT `Category` FOREIGN KEY (`CategoryID`) REFERENCES `Category` (`idCategory`), + CONSTRAINT `Manufacturer` FOREIGN KEY (`ManufacturerID`) REFERENCES `Manufacturer` (`idManufacturer`), + CONSTRAINT `Supplier` FOREIGN KEY (`SupplierID`) REFERENCES `Supplier` (`idSupplier`), + CONSTRAINT `Unit` FOREIGN KEY (`EdinicaID`) REFERENCES `Unit` (`idUnit`) +) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `Product` +-- + +LOCK TABLES `Product` WRITE; +/*!40000 ALTER TABLE `Product` DISABLE KEYS */; +INSERT INTO `Product` VALUES (1,'P-001','Мяч футбольный Pro',1,'Профессиональный мяч',1,1,4500.00,'10%',15,2,''),(2,'P-002','Кроссовки беговые X1',2,'Для бега по асфальту',2,2,8990.50,NULL,42,2,'cross x1.jpg'),(3,'P-003','Велотренажер Fit-3',3,'Домашний велотренажер',3,1,25000.00,'25 Процентов',5,1,'bike fit.png'),(4,'P-004','Лыжи беговые Skate',4,'Коньковый ход',4,2,12500.00,'5%',0,2,'ski skate.jpg'),(5,'P-005','Гантели разборные 15кг',3,'Стальные гантели',5,3,3200.75,'30%',20,2,NULL),(6,'P-006','Спортивный костюм',5,'Хлопок 100%',1,1,6500.00,'15%',8,1,'suit.jpg'),(7,'P-007','Мяч баскетбольный',1,'Для игры в зале',2,1,3100.00,NULL,12,1,'basket.png'),(8,'P-008','Беговая дорожка RunMax',3,'Складная конструкция',3,2,45900.00,'5 Процентов',0,1,NULL),(9,'P-009','Бутсы футбольные',2,'Шиповки',2,1,7500.00,'25%',30,2,'boots.jpg'),(10,'P-010','Палки лыжные',4,'Карбоновые',4,2,4100.50,'10%',18,2,'poles.jpg'),(11,'P-011','Эспандер трубчатый',3,'Набор 5 шт',5,3,950.00,'50%',100,3,NULL),(12,'P-012','Футболка спортивная',5,'Дышащая ткань',1,1,1800.00,NULL,50,1,'tshirt.jpg'),(13,'P-013','Мяч волейбольный',1,'Тренировочный',5,3,2200.00,'15%',25,1,'volley.png'),(14,'P-014','Перчатки для фитнеса',5,'Кожа/текстиль',2,2,1250.00,'25%',0,2,'gloves.jpg'),(15,'P-015','Мяч футбольный',1,'Профессиональный мяч для игр на газоне',1,1,4500.50,'10%',50,1,'adidas_ball.jpg'),(16,'P-016','Мяч баскетбольный',1,'Мяч для зала и улицы, размер 7',6,4,3200.00,NULL,30,1,'bball_spalding.png'),(17,'P-017','Мяч волейбольный',1,'Мяч для классического волейбола',7,1,3800.75,'5%',120,1,'mikasa_vol.jpg'),(18,'P-018','Гантели разборные 15кг',6,'Набор гантелей в кейсе',8,5,2500.00,'25%',15,4,'dumbbell_15.png'),(19,'P-019','Гантели литые 5кг',6,'Неопреновое покрытие',9,5,900.00,NULL,0,2,'dumbbell_5.jpg'),(20,'P-020','Штанга олимпийская',6,'Гриф 20кг + замки',3,4,15000.00,'15%',8,1,'barbell.png'),(21,'P-021','Блины для штанги 10кг',6,'Обрезиненные диски',10,4,2100.50,NULL,40,1,'disk_10.jpg'),(22,'P-022','Беговая дорожка',7,'Складная, до 15 км/ч',3,6,45000.00,'30%',5,1,'treadmill.jpg'),(23,'P-023','Эллиптический тренажер',7,'Магнитная система нагрузки',9,6,32000.00,'10%',0,1,'elliptic.png'),(24,'P-024','Велотренажер',7,'Вертикальная посадка',3,6,28000.00,'5%',12,1,'bike.jpg'),(25,'P-025','Коврик для йоги',8,'Толщина 6мм, TPE',2,1,1200.00,'15%',200,1,'yoga_mat.jpg'),(26,'P-026','Фитнес-резинки',8,'Набор из 5 эспандеров',8,5,600.00,'25%',150,4,'bands.png'),(27,'P-027','Скакалка скоростная',8,'Металлический трос',11,4,850.50,NULL,80,1,'rope.jpg'),(28,'P-028','Кроссовки беговые',2,'Амортизирующая подошва',2,7,8900.00,'20%',45,2,'nike_run.jpg'),(29,'P-029','Бутсы футбольные',2,'Шиповки для натурального газона',12,7,7500.00,'35%',25,2,'puma_boots.png'),(30,'P-030','Штангетки',2,'Обувь для тяжелой атлетики',1,7,12000.00,NULL,10,2,'adipower.jpg'),(31,'P-031','Футболка компрессионная',9,'Отводит влагу',13,8,2500.00,'10%',60,1,'ua_shirt.png'),(32,'P-032','Шорты спортивные',9,'Легкие дышащие шорты',2,8,1800.00,NULL,85,1,'nike_shorts.jpg'),(33,'P-033','Костюм спортивный',9,'Хлопок + полиэстер',12,8,5500.00,'15%',30,1,'puma_suit.jpg'),(34,'P-034','Палатка 3-местная',10,'Водостойкость 3000мм',14,9,8500.00,'25%',20,1,'tent_3.png'),(35,'P-035','Спальный мешок',10,'До -5 градусов комфорт',15,9,3200.50,'5%',40,1,'sleeping_bag.jpg'),(36,'P-036','Рюкзак туристический',10,'Объем 60 литров',16,4,11000.00,NULL,15,1,'backpack.png'),(37,'P-037','Термос 1 литр',10,'Держит тепло 24 часа',17,9,2800.00,'10%',50,1,'thermos.jpg'),(38,'P-038','Боксерские перчатки',11,'Натуральная кожа, 12 унций',18,10,4500.00,NULL,35,2,'gloves.png'),(39,'P-039','Капа одночелюстная',11,'Термопластичная',19,10,500.00,NULL,100,1,'mouthguard.jpg'),(40,'P-040','Шлем боксерский',11,'С защитой скул',18,10,3500.00,'15%',18,1,'helmet.jpg'),(41,'P-041','Ракетка для тенниса',12,'Легкий графит',20,4,9500.00,'20%',12,1,'racket.png'),(42,'P-042','Мячи теннисные (3шт)',12,'Для грунтовых кортов',21,4,900.00,NULL,60,5,'tennis_balls.jpg'),(43,'P-043','Очки для плавания',13,'Антифог, защита от УФ',22,11,1800.00,'5%',80,1,'goggles.png'),(44,'P-044','Шапочка для плавания',13,'Силиконовая',23,11,400.00,'30%',150,1,'cap.jpg'); +/*!40000 ALTER TABLE `Product` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `Role` +-- + +DROP TABLE IF EXISTS `Role`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `Role` ( + `idRole` int NOT NULL AUTO_INCREMENT, + `Role` varchar(45) NOT NULL, + PRIMARY KEY (`idRole`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `Role` +-- + +LOCK TABLES `Role` WRITE; +/*!40000 ALTER TABLE `Role` DISABLE KEYS */; +INSERT INTO `Role` VALUES (1,'Администратор'),(2,'Менеджер'),(3,'Клиент'); +/*!40000 ALTER TABLE `Role` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `Status` +-- + +DROP TABLE IF EXISTS `Status`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `Status` ( + `idStatus` int NOT NULL AUTO_INCREMENT, + `Status` varchar(45) NOT NULL, + PRIMARY KEY (`idStatus`) +) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `Status` +-- + +LOCK TABLES `Status` WRITE; +/*!40000 ALTER TABLE `Status` DISABLE KEYS */; +INSERT INTO `Status` VALUES (1,'Доставлен'),(2,'Отменен'),(3,'Формируется'),(4,'Отправлен'); +/*!40000 ALTER TABLE `Status` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `Supplier` +-- + +DROP TABLE IF EXISTS `Supplier`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `Supplier` ( + `idSupplier` int NOT NULL AUTO_INCREMENT, + `Supplier` varchar(45) NOT NULL, + PRIMARY KEY (`idSupplier`) +) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `Supplier` +-- + +LOCK TABLES `Supplier` WRITE; +/*!40000 ALTER TABLE `Supplier` DISABLE KEYS */; +INSERT INTO `Supplier` VALUES (1,'ООО СпортОпт'),(2,'ЗАО АктивЛайф'),(3,'ИП Смирнов'),(4,'ЗАО Актив'),(5,'ИП Иванов'),(6,'ООО ФитнесПро'),(7,'ООО ОбувьПро'),(8,'ООО Текстиль'),(9,'ООО ТурСнаб'),(10,'ООО Ринг'),(11,'ООО ВодаСпорт'); +/*!40000 ALTER TABLE `Supplier` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `Unit` +-- + +DROP TABLE IF EXISTS `Unit`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `Unit` ( + `idUnit` int NOT NULL AUTO_INCREMENT, + `Unit` varchar(45) NOT NULL, + PRIMARY KEY (`idUnit`) +) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `Unit` +-- + +LOCK TABLES `Unit` WRITE; +/*!40000 ALTER TABLE `Unit` DISABLE KEYS */; +INSERT INTO `Unit` VALUES (1,'шт.'),(2,'пара'),(3,'компл'),(4,'набор'),(5,'туба'); +/*!40000 ALTER TABLE `Unit` ENABLE KEYS */; +UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; + +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; + +-- Dump completed on 2026-05-14 12:59:44 diff --git a/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/4506ce25-e573-40ad-b206-b1b01e8ec54e.vsidx b/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/4506ce25-e573-40ad-b206-b1b01e8ec54e.vsidx new file mode 100644 index 0000000..9ac3221 Binary files /dev/null and b/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/4506ce25-e573-40ad-b206-b1b01e8ec54e.vsidx differ diff --git a/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/50387090-1286-4d1f-847c-50fc439fd74a.vsidx b/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/50387090-1286-4d1f-847c-50fc439fd74a.vsidx new file mode 100644 index 0000000..43cbbd3 Binary files /dev/null and b/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/50387090-1286-4d1f-847c-50fc439fd74a.vsidx differ diff --git a/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/72db00b6-10aa-4afb-9225-8132291fcaf5.vsidx b/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/72db00b6-10aa-4afb-9225-8132291fcaf5.vsidx new file mode 100644 index 0000000..b33dbc3 Binary files /dev/null and b/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/72db00b6-10aa-4afb-9225-8132291fcaf5.vsidx differ diff --git a/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/a3a15754-f7d6-4ada-b836-88b907c86f22.vsidx b/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/a3a15754-f7d6-4ada-b836-88b907c86f22.vsidx new file mode 100644 index 0000000..fed16e1 Binary files /dev/null and b/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/a3a15754-f7d6-4ada-b836-88b907c86f22.vsidx differ diff --git a/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/aca09612-9df2-4184-b63a-387bcb664979.vsidx b/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/aca09612-9df2-4184-b63a-387bcb664979.vsidx new file mode 100644 index 0000000..eaca6a2 Binary files /dev/null and b/SkryabinaModul/.vs/SkryabinaModul/FileContentIndex/aca09612-9df2-4184-b63a-387bcb664979.vsidx differ diff --git a/SkryabinaModul/.vs/SkryabinaModul/v17/.suo b/SkryabinaModul/.vs/SkryabinaModul/v17/.suo new file mode 100644 index 0000000..df9d832 Binary files /dev/null and b/SkryabinaModul/.vs/SkryabinaModul/v17/.suo differ diff --git a/SkryabinaModul/.vs/SkryabinaModul/v17/DocumentLayout.backup.json b/SkryabinaModul/.vs/SkryabinaModul/v17/DocumentLayout.backup.json new file mode 100644 index 0000000..1bd371e --- /dev/null +++ b/SkryabinaModul/.vs/SkryabinaModul/v17/DocumentLayout.backup.json @@ -0,0 +1,420 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|c:\\users\\student\\desktop\\modul_skryabina\\skryabinamodul\\skryabinamodul\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\orderseditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\orderseditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\admin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\admin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\ordersadmin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\ordersadmin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\producteditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\producteditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\orderseditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\orderseditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\producteditform.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\producteditform.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\ordersadmin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\ordersadmin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\producteditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\producteditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\ordersmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\ordersmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\admin.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\admin.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\admin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\admin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\ordersmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\ordersmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\guest.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\guest.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\guest.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\guest.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\manager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\manager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\manager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\manager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\client.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\client.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\client.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\client.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\class1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\class1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\guest.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\guest.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\manager.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\manager.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\client.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\client.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\form1.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\form1.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 20, + "Children": [ + { + "$type": "Bookmark", + "Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}" + }, + { + "$type": "Bookmark", + "Name": "ST:128:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}" + }, + { + "$type": "Document", + "DocumentIndex": 1, + "Title": "OrdersEditForm.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersEditForm.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\OrdersEditForm.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersEditForm.cs", + "RelativeToolTip": "SkryabinaModul\\OrdersEditForm.cs", + "ViewState": "AgIAAFIAAAAAAAAAAAAcwG0AAABxAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:35:48.151Z" + }, + { + "$type": "Document", + "DocumentIndex": 5, + "Title": "OrdersEditForm.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersEditForm.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\OrdersEditForm.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersEditForm.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\OrdersEditForm.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:34:33.323Z" + }, + { + "$type": "Document", + "DocumentIndex": 3, + "Title": "OrdersAdmin.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersAdmin.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\OrdersAdmin.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersAdmin.cs", + "RelativeToolTip": "SkryabinaModul\\OrdersAdmin.cs", + "ViewState": "AgIAAC8AAAAAAAAAAAA1wEwAAABRAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:29:53.293Z" + }, + { + "$type": "Document", + "DocumentIndex": 7, + "Title": "OrdersAdmin.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersAdmin.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\OrdersAdmin.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersAdmin.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\OrdersAdmin.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:27:33.599Z" + }, + { + "$type": "Document", + "DocumentIndex": 9, + "Title": "OrdersManager.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersManager.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\OrdersManager.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersManager.cs", + "RelativeToolTip": "SkryabinaModul\\OrdersManager.cs", + "ViewState": "AgIAABEAAAAAAAAAAAAmwCgAAAAJAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:14:50.125Z" + }, + { + "$type": "Document", + "DocumentIndex": 12, + "Title": "OrdersManager.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersManager.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\OrdersManager.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersManager.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\OrdersManager.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:12:32.263Z" + }, + { + "$type": "Document", + "DocumentIndex": 14, + "Title": "Guest.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Guest.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Guest.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Guest.cs", + "RelativeToolTip": "SkryabinaModul\\Guest.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAA8AAACTAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:01:15.059Z" + }, + { + "$type": "Document", + "DocumentIndex": 21, + "Title": "Guest.Designer.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Guest.Designer.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Guest.Designer.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Guest.Designer.cs", + "RelativeToolTip": "SkryabinaModul\\Guest.Designer.cs", + "ViewState": "AgIAAC4AAAAAAAAAAAApwEkAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:00:19.484Z" + }, + { + "$type": "Document", + "DocumentIndex": 17, + "Title": "Client.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Client.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Client.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Client.cs", + "RelativeToolTip": "SkryabinaModul\\Client.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAABMAAAAbAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:58:06.815Z" + }, + { + "$type": "Document", + "DocumentIndex": 15, + "Title": "Manager.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Manager.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Manager.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Manager.cs", + "RelativeToolTip": "SkryabinaModul\\Manager.cs", + "ViewState": "AgIAAEYAAAAAAAAAAAASwFgAAAAnAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:55:11.21Z" + }, + { + "$type": "Document", + "DocumentIndex": 22, + "Title": "Manager.Designer.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Manager.Designer.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Manager.Designer.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Manager.Designer.cs", + "RelativeToolTip": "SkryabinaModul\\Manager.Designer.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAYwIMAAABUAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:54:28.495Z" + }, + { + "$type": "Document", + "DocumentIndex": 23, + "Title": "Client.Designer.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Client.Designer.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Client.Designer.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Client.Designer.cs", + "RelativeToolTip": "SkryabinaModul\\Client.Designer.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:54:08.898Z" + }, + { + "$type": "Document", + "DocumentIndex": 19, + "Title": "Class1.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Class1.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Class1.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Class1.cs", + "RelativeToolTip": "SkryabinaModul\\Class1.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:26:13.043Z" + }, + { + "$type": "Document", + "DocumentIndex": 4, + "Title": "ProductEditForm.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\ProductEditForm.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\ProductEditForm.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\ProductEditForm.cs", + "RelativeToolTip": "SkryabinaModul\\ProductEditForm.cs", + "ViewState": "AgIAAEgAAAAAAAAAAAAAAGoAAAAJAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:23:22.722Z" + }, + { + "$type": "Document", + "DocumentIndex": 6, + "Title": "ProductEditForm.Designer.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\ProductEditForm.Designer.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\ProductEditForm.Designer.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\ProductEditForm.Designer.cs", + "RelativeToolTip": "SkryabinaModul\\ProductEditForm.Designer.cs", + "ViewState": "AgIAABEBAAAAAAAAAADwvxkBAAA8AAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:22:52.901Z" + }, + { + "$type": "Document", + "DocumentIndex": 8, + "Title": "ProductEditForm.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\ProductEditForm.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\ProductEditForm.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\ProductEditForm.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\ProductEditForm.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:22:19.812Z" + }, + { + "$type": "Document", + "DocumentIndex": 2, + "Title": "Admin.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Admin.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Admin.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Admin.cs", + "RelativeToolTip": "SkryabinaModul\\Admin.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAD0AAAAcAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:21:11.655Z" + }, + { + "$type": "Document", + "DocumentIndex": 10, + "Title": "Admin.Designer.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Admin.Designer.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Admin.Designer.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Admin.Designer.cs", + "RelativeToolTip": "SkryabinaModul\\Admin.Designer.cs", + "ViewState": "AgIAAHEAAAAAAAAAAAAwwH4AAAA7AAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:20:13.813Z" + }, + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Form1.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Form1.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Form1.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Form1.cs", + "RelativeToolTip": "SkryabinaModul\\Form1.cs", + "ViewState": "AgIAABcAAAAAAAAAAAAUwDUAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:16:24.514Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 24, + "Title": "Form1.Designer.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Form1.Designer.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Form1.Designer.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Form1.Designer.cs", + "RelativeToolTip": "SkryabinaModul\\Form1.Designer.cs", + "ViewState": "AgIAAEwAAAAAAAAAAADwv2AAAABQAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:13:33.445Z" + }, + { + "$type": "Document", + "DocumentIndex": 13, + "Title": "Guest.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Guest.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Guest.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Guest.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\Guest.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:03:21.947Z" + }, + { + "$type": "Document", + "DocumentIndex": 16, + "Title": "Manager.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Manager.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Manager.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Manager.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\Manager.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:03:02.065Z" + }, + { + "$type": "Document", + "DocumentIndex": 18, + "Title": "Client.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Client.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Client.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Client.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\Client.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:02:50.887Z" + }, + { + "$type": "Document", + "DocumentIndex": 11, + "Title": "Admin.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Admin.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Admin.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Admin.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\Admin.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:02:35.015Z" + }, + { + "$type": "Document", + "DocumentIndex": 20, + "Title": "Form1.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Form1.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Form1.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Form1.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\Form1.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:02:02.699Z" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/SkryabinaModul/.vs/SkryabinaModul/v17/DocumentLayout.json b/SkryabinaModul/.vs/SkryabinaModul/v17/DocumentLayout.json new file mode 100644 index 0000000..1bd371e --- /dev/null +++ b/SkryabinaModul/.vs/SkryabinaModul/v17/DocumentLayout.json @@ -0,0 +1,420 @@ +{ + "Version": 1, + "WorkspaceRootPath": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\", + "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|c:\\users\\student\\desktop\\modul_skryabina\\skryabinamodul\\skryabinamodul\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\orderseditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\orderseditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\admin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\admin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\ordersadmin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\ordersadmin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\producteditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\producteditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\orderseditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\orderseditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\producteditform.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\producteditform.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\ordersadmin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\ordersadmin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\producteditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\producteditform.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\ordersmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\ordersmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\admin.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\admin.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\admin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\admin.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\ordersmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\ordersmanager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\guest.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\guest.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\guest.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\guest.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\manager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\manager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\manager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\manager.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\client.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\client.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\client.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\client.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\class1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\class1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\form1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}|Form" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\guest.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\guest.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\manager.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\manager.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\client.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\client.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\skryabinamodul\\form1.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{9BE5A1F3-D5DA-4431-9A90-979504879292}|SkryabinaModul\\SkryabinaModul.csproj|solutionrelative:skryabinamodul\\form1.designer.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + } + ], + "DocumentGroupContainers": [ + { + "Orientation": 0, + "VerticalTabListWidth": 256, + "DocumentGroups": [ + { + "DockedWidth": 200, + "SelectedChildIndex": 20, + "Children": [ + { + "$type": "Bookmark", + "Name": "ST:0:0:{1c4feeaa-4718-4aa9-859d-94ce25d182ba}" + }, + { + "$type": "Bookmark", + "Name": "ST:128:0:{116d2292-e37d-41cd-a077-ebacac4c8cc4}" + }, + { + "$type": "Document", + "DocumentIndex": 1, + "Title": "OrdersEditForm.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersEditForm.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\OrdersEditForm.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersEditForm.cs", + "RelativeToolTip": "SkryabinaModul\\OrdersEditForm.cs", + "ViewState": "AgIAAFIAAAAAAAAAAAAcwG0AAABxAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:35:48.151Z" + }, + { + "$type": "Document", + "DocumentIndex": 5, + "Title": "OrdersEditForm.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersEditForm.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\OrdersEditForm.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersEditForm.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\OrdersEditForm.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:34:33.323Z" + }, + { + "$type": "Document", + "DocumentIndex": 3, + "Title": "OrdersAdmin.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersAdmin.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\OrdersAdmin.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersAdmin.cs", + "RelativeToolTip": "SkryabinaModul\\OrdersAdmin.cs", + "ViewState": "AgIAAC8AAAAAAAAAAAA1wEwAAABRAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:29:53.293Z" + }, + { + "$type": "Document", + "DocumentIndex": 7, + "Title": "OrdersAdmin.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersAdmin.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\OrdersAdmin.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersAdmin.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\OrdersAdmin.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:27:33.599Z" + }, + { + "$type": "Document", + "DocumentIndex": 9, + "Title": "OrdersManager.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersManager.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\OrdersManager.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersManager.cs", + "RelativeToolTip": "SkryabinaModul\\OrdersManager.cs", + "ViewState": "AgIAABEAAAAAAAAAAAAmwCgAAAAJAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:14:50.125Z" + }, + { + "$type": "Document", + "DocumentIndex": 12, + "Title": "OrdersManager.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersManager.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\OrdersManager.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\OrdersManager.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\OrdersManager.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:12:32.263Z" + }, + { + "$type": "Document", + "DocumentIndex": 14, + "Title": "Guest.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Guest.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Guest.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Guest.cs", + "RelativeToolTip": "SkryabinaModul\\Guest.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAA8AAACTAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:01:15.059Z" + }, + { + "$type": "Document", + "DocumentIndex": 21, + "Title": "Guest.Designer.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Guest.Designer.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Guest.Designer.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Guest.Designer.cs", + "RelativeToolTip": "SkryabinaModul\\Guest.Designer.cs", + "ViewState": "AgIAAC4AAAAAAAAAAAApwEkAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T10:00:19.484Z" + }, + { + "$type": "Document", + "DocumentIndex": 17, + "Title": "Client.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Client.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Client.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Client.cs", + "RelativeToolTip": "SkryabinaModul\\Client.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAABMAAAAbAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:58:06.815Z" + }, + { + "$type": "Document", + "DocumentIndex": 15, + "Title": "Manager.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Manager.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Manager.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Manager.cs", + "RelativeToolTip": "SkryabinaModul\\Manager.cs", + "ViewState": "AgIAAEYAAAAAAAAAAAASwFgAAAAnAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:55:11.21Z" + }, + { + "$type": "Document", + "DocumentIndex": 22, + "Title": "Manager.Designer.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Manager.Designer.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Manager.Designer.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Manager.Designer.cs", + "RelativeToolTip": "SkryabinaModul\\Manager.Designer.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAYwIMAAABUAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:54:28.495Z" + }, + { + "$type": "Document", + "DocumentIndex": 23, + "Title": "Client.Designer.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Client.Designer.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Client.Designer.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Client.Designer.cs", + "RelativeToolTip": "SkryabinaModul\\Client.Designer.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:54:08.898Z" + }, + { + "$type": "Document", + "DocumentIndex": 19, + "Title": "Class1.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Class1.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Class1.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Class1.cs", + "RelativeToolTip": "SkryabinaModul\\Class1.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:26:13.043Z" + }, + { + "$type": "Document", + "DocumentIndex": 4, + "Title": "ProductEditForm.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\ProductEditForm.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\ProductEditForm.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\ProductEditForm.cs", + "RelativeToolTip": "SkryabinaModul\\ProductEditForm.cs", + "ViewState": "AgIAAEgAAAAAAAAAAAAAAGoAAAAJAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:23:22.722Z" + }, + { + "$type": "Document", + "DocumentIndex": 6, + "Title": "ProductEditForm.Designer.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\ProductEditForm.Designer.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\ProductEditForm.Designer.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\ProductEditForm.Designer.cs", + "RelativeToolTip": "SkryabinaModul\\ProductEditForm.Designer.cs", + "ViewState": "AgIAABEBAAAAAAAAAADwvxkBAAA8AAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:22:52.901Z" + }, + { + "$type": "Document", + "DocumentIndex": 8, + "Title": "ProductEditForm.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\ProductEditForm.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\ProductEditForm.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\ProductEditForm.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\ProductEditForm.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:22:19.812Z" + }, + { + "$type": "Document", + "DocumentIndex": 2, + "Title": "Admin.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Admin.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Admin.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Admin.cs", + "RelativeToolTip": "SkryabinaModul\\Admin.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAD0AAAAcAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:21:11.655Z" + }, + { + "$type": "Document", + "DocumentIndex": 10, + "Title": "Admin.Designer.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Admin.Designer.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Admin.Designer.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Admin.Designer.cs", + "RelativeToolTip": "SkryabinaModul\\Admin.Designer.cs", + "ViewState": "AgIAAHEAAAAAAAAAAAAwwH4AAAA7AAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:20:13.813Z" + }, + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "Form1.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Form1.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Form1.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Form1.cs", + "RelativeToolTip": "SkryabinaModul\\Form1.cs", + "ViewState": "AgIAABcAAAAAAAAAAAAUwDUAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:16:24.514Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 24, + "Title": "Form1.Designer.cs", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Form1.Designer.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Form1.Designer.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Form1.Designer.cs", + "RelativeToolTip": "SkryabinaModul\\Form1.Designer.cs", + "ViewState": "AgIAAEwAAAAAAAAAAADwv2AAAABQAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:13:33.445Z" + }, + { + "$type": "Document", + "DocumentIndex": 13, + "Title": "Guest.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Guest.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Guest.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Guest.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\Guest.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:03:21.947Z" + }, + { + "$type": "Document", + "DocumentIndex": 16, + "Title": "Manager.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Manager.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Manager.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Manager.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\Manager.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:03:02.065Z" + }, + { + "$type": "Document", + "DocumentIndex": 18, + "Title": "Client.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Client.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Client.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Client.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\Client.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:02:50.887Z" + }, + { + "$type": "Document", + "DocumentIndex": 11, + "Title": "Admin.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Admin.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Admin.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Admin.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\Admin.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:02:35.015Z" + }, + { + "$type": "Document", + "DocumentIndex": 20, + "Title": "Form1.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "DocumentMoniker": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Form1.cs", + "RelativeDocumentMoniker": "SkryabinaModul\\Form1.cs", + "ToolTip": "C:\\Users\\student\\Desktop\\Modul_Skryabina\\SkryabinaModul\\SkryabinaModul\\Form1.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "RelativeToolTip": "SkryabinaModul\\Form1.cs [\u041A\u043E\u043D\u0441\u0442\u0440\u0443\u043A\u0442\u043E\u0440]", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2026-05-14T09:02:02.699Z" + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul.sln b/SkryabinaModul/SkryabinaModul.sln new file mode 100644 index 0000000..487bfa2 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.13.35931.197 d17.13 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SkryabinaModul", "SkryabinaModul\SkryabinaModul.csproj", "{9BE5A1F3-D5DA-4431-9A90-979504879292}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9BE5A1F3-D5DA-4431-9A90-979504879292}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9BE5A1F3-D5DA-4431-9A90-979504879292}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9BE5A1F3-D5DA-4431-9A90-979504879292}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9BE5A1F3-D5DA-4431-9A90-979504879292}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {1CC06948-E952-4CB2-B7F5-5BC2A7BCDCF1} + EndGlobalSection +EndGlobal diff --git a/SkryabinaModul/SkryabinaModul/Admin.Designer.cs b/SkryabinaModul/SkryabinaModul/Admin.Designer.cs new file mode 100644 index 0000000..dc9532f --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Admin.Designer.cs @@ -0,0 +1,230 @@ +namespace SkryabinaModul +{ + partial class Admin + { + private System.ComponentModel.IContainer components = null; + + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) { components.Dispose(); } + base.Dispose(disposing); + } + + private void InitializeComponent() + { + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.labelSearch = new System.Windows.Forms.Label(); + this.textBoxSearch = new System.Windows.Forms.TextBox(); + this.labelFilter = new System.Windows.Forms.Label(); + this.comboBoxFilter = new System.Windows.Forms.ComboBox(); + this.labelSort = new System.Windows.Forms.Label(); + this.comboBoxSort = new System.Windows.Forms.ComboBox(); + this.buttonAdd = new System.Windows.Forms.Button(); + this.buttonEdit = new System.Windows.Forms.Button(); + this.buttonDelete = new System.Windows.Forms.Button(); + this.labelTitle = new System.Windows.Forms.Label(); + this.buttonBack = new System.Windows.Forms.Button(); + this.button1 = new System.Windows.Forms.Button(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.SuspendLayout(); + // + // dataGridView1 + // + this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridView1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView1.Font = new System.Drawing.Font("Comic Sans MS", 9F); + this.dataGridView1.Location = new System.Drawing.Point(24, 135); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.RowHeadersWidth = 51; + this.dataGridView1.Size = new System.Drawing.Size(1050, 350); + this.dataGridView1.TabIndex = 7; + // + // labelSearch + // + this.labelSearch.AutoSize = true; + this.labelSearch.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelSearch.Location = new System.Drawing.Point(20, 70); + this.labelSearch.Name = "labelSearch"; + this.labelSearch.Size = new System.Drawing.Size(57, 19); + this.labelSearch.TabIndex = 1; + this.labelSearch.Text = "Поиск:"; + // + // textBoxSearch + // + this.textBoxSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.textBoxSearch.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.textBoxSearch.Location = new System.Drawing.Point(24, 92); + this.textBoxSearch.Name = "textBoxSearch"; + this.textBoxSearch.Size = new System.Drawing.Size(200, 26); + this.textBoxSearch.TabIndex = 2; + // + // labelFilter + // + this.labelFilter.AutoSize = true; + this.labelFilter.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelFilter.Location = new System.Drawing.Point(240, 70); + this.labelFilter.Name = "labelFilter"; + this.labelFilter.Size = new System.Drawing.Size(61, 19); + this.labelFilter.TabIndex = 3; + this.labelFilter.Text = "Фильтр:"; + // + // comboBoxFilter + // + this.comboBoxFilter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.comboBoxFilter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxFilter.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.comboBoxFilter.FormattingEnabled = true; + this.comboBoxFilter.Items.AddRange(new object[] { + "Все", + "По названию", + "По артикулу", + "По производителю", + "По поставщику"}); + this.comboBoxFilter.Location = new System.Drawing.Point(244, 92); + this.comboBoxFilter.Name = "comboBoxFilter"; + this.comboBoxFilter.Size = new System.Drawing.Size(180, 26); + this.comboBoxFilter.TabIndex = 4; + // + // labelSort + // + this.labelSort.AutoSize = true; + this.labelSort.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelSort.Location = new System.Drawing.Point(440, 70); + this.labelSort.Name = "labelSort"; + this.labelSort.Size = new System.Drawing.Size(88, 19); + this.labelSort.TabIndex = 5; + this.labelSort.Text = "Сортировка:"; + // + // comboBoxSort + // + this.comboBoxSort.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.comboBoxSort.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxSort.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.comboBoxSort.FormattingEnabled = true; + this.comboBoxSort.Items.AddRange(new object[] { + "По умолчанию", + "По названию А-Я", + "По названию Я-А", + "По цене возр.", + "По цене убыв.", + "По артикулу", + "По количеству"}); + this.comboBoxSort.Location = new System.Drawing.Point(444, 92); + this.comboBoxSort.Name = "comboBoxSort"; + this.comboBoxSort.Size = new System.Drawing.Size(180, 26); + this.comboBoxSort.TabIndex = 6; + // + // buttonAdd + // + this.buttonAdd.BackColor = System.Drawing.Color.Red; + this.buttonAdd.Font = new System.Drawing.Font("Comic Sans MS", 10F, System.Drawing.FontStyle.Bold); + this.buttonAdd.Location = new System.Drawing.Point(24, 500); + this.buttonAdd.Name = "buttonAdd"; + this.buttonAdd.Size = new System.Drawing.Size(120, 40); + this.buttonAdd.TabIndex = 8; + this.buttonAdd.Text = "Добавить"; + this.buttonAdd.UseVisualStyleBackColor = false; + // + // buttonEdit + // + this.buttonEdit.BackColor = System.Drawing.Color.Red; + this.buttonEdit.Font = new System.Drawing.Font("Comic Sans MS", 10F, System.Drawing.FontStyle.Bold); + this.buttonEdit.Location = new System.Drawing.Point(160, 500); + this.buttonEdit.Name = "buttonEdit"; + this.buttonEdit.Size = new System.Drawing.Size(140, 40); + this.buttonEdit.TabIndex = 9; + this.buttonEdit.Text = "Редактировать"; + this.buttonEdit.UseVisualStyleBackColor = false; + // + // buttonDelete + // + this.buttonDelete.BackColor = System.Drawing.Color.Red; + this.buttonDelete.Font = new System.Drawing.Font("Comic Sans MS", 10F, System.Drawing.FontStyle.Bold); + this.buttonDelete.ForeColor = System.Drawing.Color.Black; + this.buttonDelete.Location = new System.Drawing.Point(954, 500); + this.buttonDelete.Name = "buttonDelete"; + this.buttonDelete.Size = new System.Drawing.Size(120, 40); + this.buttonDelete.TabIndex = 10; + this.buttonDelete.Text = "Удалить"; + this.buttonDelete.UseVisualStyleBackColor = false; + // + // labelTitle + // + this.labelTitle.AutoSize = true; + this.labelTitle.Font = new System.Drawing.Font("Comic Sans MS", 20F, System.Drawing.FontStyle.Bold); + this.labelTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.labelTitle.Location = new System.Drawing.Point(20, 15); + this.labelTitle.Name = "labelTitle"; + this.labelTitle.Size = new System.Drawing.Size(309, 38); + this.labelTitle.TabIndex = 0; + this.labelTitle.Text = "Управление товарами"; + // + // buttonBack + // + this.buttonBack.BackColor = System.Drawing.Color.Red; + this.buttonBack.Font = new System.Drawing.Font("Comic Sans MS", 10F, System.Drawing.FontStyle.Bold); + this.buttonBack.Location = new System.Drawing.Point(24, 560); + this.buttonBack.Name = "buttonBack"; + this.buttonBack.Size = new System.Drawing.Size(120, 40); + this.buttonBack.TabIndex = 11; + this.buttonBack.Text = "Назад"; + this.buttonBack.UseVisualStyleBackColor = false; + this.buttonBack.Click += new System.EventHandler(this.buttonBack_Click); + // + // button1 + // + this.button1.BackColor = System.Drawing.Color.Red; + this.button1.Font = new System.Drawing.Font("Comic Sans MS", 10F, System.Drawing.FontStyle.Bold); + this.button1.ForeColor = System.Drawing.Color.Black; + this.button1.Location = new System.Drawing.Point(954, 83); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(120, 40); + this.button1.TabIndex = 12; + this.button1.Text = "Заказы"; + this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // Admin + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(237)))), ((int)(((byte)(215))))); + this.ClientSize = new System.Drawing.Size(1100, 620); + this.Controls.Add(this.button1); + this.Controls.Add(this.buttonBack); + this.Controls.Add(this.buttonDelete); + this.Controls.Add(this.buttonEdit); + this.Controls.Add(this.buttonAdd); + this.Controls.Add(this.dataGridView1); + this.Controls.Add(this.comboBoxSort); + this.Controls.Add(this.labelSort); + this.Controls.Add(this.comboBoxFilter); + this.Controls.Add(this.labelFilter); + this.Controls.Add(this.textBoxSearch); + this.Controls.Add(this.labelSearch); + this.Controls.Add(this.labelTitle); + this.Font = new System.Drawing.Font("Comic Sans MS", 8.25F); + this.Name = "Admin"; + this.Text = "Админ-панель - Управление товарами"; + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + private System.Windows.Forms.DataGridView dataGridView1; + private System.Windows.Forms.Label labelSearch; + private System.Windows.Forms.TextBox textBoxSearch; + private System.Windows.Forms.Label labelFilter; + private System.Windows.Forms.ComboBox comboBoxFilter; + private System.Windows.Forms.Label labelSort; + private System.Windows.Forms.ComboBox comboBoxSort; + private System.Windows.Forms.Button buttonAdd; + private System.Windows.Forms.Button buttonEdit; + private System.Windows.Forms.Button buttonDelete; + private System.Windows.Forms.Label labelTitle; + private System.Windows.Forms.Button buttonBack; + private System.Windows.Forms.Button button1; + } +} \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/Admin.cs b/SkryabinaModul/SkryabinaModul/Admin.cs new file mode 100644 index 0000000..e8c06f2 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Admin.cs @@ -0,0 +1,147 @@ +using MySql.Data.MySqlClient; +using SkryabinaModul; +using System; +using System.Data; +using System.Windows.Forms; + +namespace SkryabinaModul +{ + public partial class Admin : Form + { + string connectionString = "Server=85.239.57.125; Database=Scriabin_Sophia_ProbModul; Uid=Scriabin_Sophia; Pwd=TempPass123!; SslMode=none;"; + + public Admin() + { + InitializeComponent(); + LoadProducts(); + + buttonAdd.Click += (s, e) => { if (new ProductEditForm(connectionString, null).ShowDialog() == DialogResult.OK) LoadProducts(); }; + buttonEdit.Click += (s, e) => EditProduct(); + buttonDelete.Click += (s, e) => DeleteProduct(); + textBoxSearch.TextChanged += (s, e) => FilterAndSort(); + comboBoxFilter.SelectedIndexChanged += (s, e) => FilterAndSort(); + comboBoxSort.SelectedIndexChanged += (s, e) => FilterAndSort(); + } + + // Загрузка товаров + void LoadProducts() + { + using (var conn = new MySqlConnection(connectionString)) + { + conn.Open(); + var adapter = new MySqlDataAdapter(@"SELECT p.idProduct, p.Article, p.Name, c.Category, p.Description, + m.Manufacturer, s.Supplier, p.Price, p.Discount, p.Quantity, u.Unit, p.Photo + FROM Product p + LEFT JOIN Category c ON p.CategoryID = c.idCategory + LEFT JOIN Manufacturer m ON p.ManufacturerID = m.idManufacturer + LEFT JOIN Supplier s ON p.SupplierID = s.idSupplier + LEFT JOIN Unit u ON p.EdinicaID = u.idUnit", conn); + + var dt = new DataTable(); + adapter.Fill(dt); + dataGridView1.DataSource = dt; + if (dataGridView1.Columns["idProduct"] != null) + dataGridView1.Columns["idProduct"].Visible = false; + } + } + + // Редактирование товара + void EditProduct() + { + if (dataGridView1.SelectedRows.Count == 0) + { + MessageBox.Show("Выберите товар", "Внимание", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + int id = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells["idProduct"].Value); + if (new ProductEditForm(connectionString, id).ShowDialog() == DialogResult.OK) + LoadProducts(); + } + + // Удаление товара + void DeleteProduct() + { + if (dataGridView1.SelectedRows.Count == 0) + { + MessageBox.Show("Выберите товар", "Внимание", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + int id = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells["idProduct"].Value); + string name = dataGridView1.SelectedRows[0].Cells["Name"].Value.ToString(); + + if (MessageBox.Show($"Удалить \"{name}\"?", "Подтверждение", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + { + using (var conn = new MySqlConnection(connectionString)) + { + conn.Open(); + var cmd = new MySqlCommand("DELETE FROM Product WHERE idProduct = @id", conn); + cmd.Parameters.AddWithValue("@id", id); + cmd.ExecuteNonQuery(); + } + LoadProducts(); + } + } + + // Фильтрация и сортировка + void FilterAndSort() + { + string search = textBoxSearch.Text.Trim(); + string filter = comboBoxFilter.SelectedItem?.ToString() ?? ""; + string sort = comboBoxSort.SelectedItem?.ToString() ?? ""; + + string query = @"SELECT p.idProduct, p.Article, p.Name, c.Category, p.Description, + m.Manufacturer, s.Supplier, p.Price, p.Discount, p.Quantity, u.Unit, p.Photo + FROM Product p + LEFT JOIN Category c ON p.CategoryID = c.idCategory + LEFT JOIN Manufacturer m ON p.ManufacturerID = m.idManufacturer + LEFT JOIN Supplier s ON p.SupplierID = s.idSupplier + LEFT JOIN Unit u ON p.EdinicaID = u.idUnit + WHERE 1=1"; + + // Фильтрация + if (!string.IsNullOrEmpty(search)) + { + if (filter == "По названию") query += " AND p.Name LIKE @search"; + else if (filter == "По артикулу") query += " AND p.Article LIKE @search"; + else if (filter == "По производителю") query += " AND m.Manufacturer LIKE @search"; + else if (filter == "По поставщику") query += " AND s.Supplier LIKE @search"; + else query += " AND (p.Name LIKE @search OR p.Article LIKE @search OR m.Manufacturer LIKE @search)"; + } + + // Сортировка + if (sort == "По названию А-Я") query += " ORDER BY p.Name ASC"; + else if (sort == "По названию Я-А") query += " ORDER BY p.Name DESC"; + else if (sort == "По цене возр.") query += " ORDER BY p.Price ASC"; + else if (sort == "По цене убыв.") query += " ORDER BY p.Price DESC"; + else if (sort == "По артикулу") query += " ORDER BY p.Article ASC"; + else if (sort == "По количеству") query += " ORDER BY p.Quantity ASC"; + else query += " ORDER BY p.Name ASC"; + + using (var conn = new MySqlConnection(connectionString)) + { + conn.Open(); + var cmd = new MySqlCommand(query, conn); + if (!string.IsNullOrEmpty(search)) + cmd.Parameters.AddWithValue("@search", "%" + search + "%"); + + var dt = new DataTable(); + new MySqlDataAdapter(cmd).Fill(dt); + dataGridView1.DataSource = dt; + if (dataGridView1.Columns["idProduct"] != null) + dataGridView1.Columns["idProduct"].Visible = false; + } + } + + private void buttonBack_Click(object sender, EventArgs e) + { + new Form1().Show(); + Close(); + } + + private void button1_Click(object sender, EventArgs e) + { + new OrdersAdmin().Show(); + } + } +} \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/Admin.resx b/SkryabinaModul/SkryabinaModul/Admin.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Admin.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/App.config b/SkryabinaModul/SkryabinaModul/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/Class1.cs b/SkryabinaModul/SkryabinaModul/Class1.cs new file mode 100644 index 0000000..7419c07 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Class1.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using MySql.Data.MySqlClient; +using System.Windows.Forms; + +namespace SkryabinaModul +{ + internal class Class1 + { + + } + +} + diff --git a/SkryabinaModul/SkryabinaModul/Client.Designer.cs b/SkryabinaModul/SkryabinaModul/Client.Designer.cs new file mode 100644 index 0000000..dbce3e4 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Client.Designer.cs @@ -0,0 +1,97 @@ +namespace SkryabinaModul +{ + partial class Client + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.buttonBack = new System.Windows.Forms.Button(); + this.labelTitle = new System.Windows.Forms.Label(); + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.SuspendLayout(); + // + // buttonBack + // + this.buttonBack.BackColor = System.Drawing.Color.Red; + this.buttonBack.Font = new System.Drawing.Font("Comic Sans MS", 10F, System.Drawing.FontStyle.Bold); + this.buttonBack.Location = new System.Drawing.Point(694, 383); + this.buttonBack.Name = "buttonBack"; + this.buttonBack.Size = new System.Drawing.Size(100, 35); + this.buttonBack.TabIndex = 12; + this.buttonBack.Text = "Назад"; + this.buttonBack.UseVisualStyleBackColor = false; + this.buttonBack.Click += new System.EventHandler(this.buttonBack_Click); + // + // labelTitle + // + this.labelTitle.AutoSize = true; + this.labelTitle.Font = new System.Drawing.Font("Comic Sans MS", 20F, System.Drawing.FontStyle.Bold); + this.labelTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.labelTitle.Location = new System.Drawing.Point(19, 29); + this.labelTitle.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelTitle.Name = "labelTitle"; + this.labelTitle.Size = new System.Drawing.Size(263, 38); + this.labelTitle.TabIndex = 14; + this.labelTitle.Text = "Просмотр товаров"; + // + // dataGridView1 + // + this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridView1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView1.Font = new System.Drawing.Font("Comic Sans MS", 9F); + this.dataGridView1.Location = new System.Drawing.Point(11, 80); + this.dataGridView1.Margin = new System.Windows.Forms.Padding(2); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.RowHeadersWidth = 51; + this.dataGridView1.Size = new System.Drawing.Size(788, 284); + this.dataGridView1.TabIndex = 13; + // + // Client + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(237)))), ((int)(((byte)(215))))); + this.ClientSize = new System.Drawing.Size(848, 450); + this.Controls.Add(this.labelTitle); + this.Controls.Add(this.dataGridView1); + this.Controls.Add(this.buttonBack); + this.Name = "Client"; + this.Text = "Client"; + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button buttonBack; + private System.Windows.Forms.Label labelTitle; + private System.Windows.Forms.DataGridView dataGridView1; + } +} \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/Client.cs b/SkryabinaModul/SkryabinaModul/Client.cs new file mode 100644 index 0000000..fa27001 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Client.cs @@ -0,0 +1,52 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using MySql.Data.MySqlClient; + +namespace SkryabinaModul +{ + public partial class Client : Form + { + string connectionString = "Server=85.239.57.125; Database=Scriabin_Sophia_ProbModul; Uid=Scriabin_Sophia; Pwd=TempPass123!; SslMode=none;"; + public Client() + { + InitializeComponent(); + LoadProducts(); + + } + + void LoadProducts() + { + using (var conn = new MySqlConnection(connectionString)) + { + conn.Open(); + var adapter = new MySqlDataAdapter(@"SELECT p.idProduct, p.Article, p.Name, c.Category, p.Description, + m.Manufacturer, s.Supplier, p.Price, p.Discount, p.Quantity, u.Unit, p.Photo + FROM Product p + LEFT JOIN Category c ON p.CategoryID = c.idCategory + LEFT JOIN Manufacturer m ON p.ManufacturerID = m.idManufacturer + LEFT JOIN Supplier s ON p.SupplierID = s.idSupplier + LEFT JOIN Unit u ON p.EdinicaID = u.idUnit", conn); + + var dt = new DataTable(); + adapter.Fill(dt); + dataGridView1.DataSource = dt; + if (dataGridView1.Columns["idProduct"] != null) + dataGridView1.Columns["idProduct"].Visible = false; + } + } + + private void buttonBack_Click(object sender, EventArgs e) + { + this.Close(); + Form1 form = new Form1(); + form.Show(); + } + } +} diff --git a/SkryabinaModul/SkryabinaModul/Client.resx b/SkryabinaModul/SkryabinaModul/Client.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Client.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/Form1.Designer.cs b/SkryabinaModul/SkryabinaModul/Form1.Designer.cs new file mode 100644 index 0000000..a56da8d --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Form1.Designer.cs @@ -0,0 +1,128 @@ + +namespace SkryabinaModul +{ + partial class Form1 + { + private System.ComponentModel.IContainer components = null; + + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) { components.Dispose(); } + base.Dispose(disposing); + } + + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.button1 = new System.Windows.Forms.Button(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.textBox2 = new System.Windows.Forms.TextBox(); + this.button2 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Comic Sans MS", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.label1.Location = new System.Drawing.Point(81, 50); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(239, 49); + this.label1.TabIndex = 0; + this.label1.Text = "Авторизация"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label2.Location = new System.Drawing.Point(59, 168); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(58, 23); + this.label2.TabIndex = 1; + this.label2.Text = "Логин"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.label3.Location = new System.Drawing.Point(58, 224); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(69, 23); + this.label3.TabIndex = 2; + this.label3.Text = "Пароль"; + // + // button1 + // + this.button1.BackColor = System.Drawing.Color.Red; + this.button1.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.button1.Location = new System.Drawing.Point(158, 302); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(100, 35); + this.button1.TabIndex = 3; + this.button1.Text = "Войти"; + this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // textBox1 + // + this.textBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.textBox1.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.textBox1.Location = new System.Drawing.Point(62, 194); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(280, 26); + this.textBox1.TabIndex = 4; + // + // textBox2 + // + this.textBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.textBox2.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.textBox2.Location = new System.Drawing.Point(62, 250); + this.textBox2.Name = "textBox2"; + this.textBox2.PasswordChar = '*'; + this.textBox2.Size = new System.Drawing.Size(280, 26); + this.textBox2.TabIndex = 5; + // + // button2 + // + this.button2.BackColor = System.Drawing.Color.Red; + this.button2.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.button2.Location = new System.Drawing.Point(102, 364); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(218, 35); + this.button2.TabIndex = 6; + this.button2.Text = "Войти как гость"; + this.button2.UseVisualStyleBackColor = false; + this.button2.Click += new System.EventHandler(this.button2_Click_1); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(237)))), ((int)(((byte)(215))))); + this.ClientSize = new System.Drawing.Size(409, 450); + this.Controls.Add(this.button2); + this.Controls.Add(this.textBox2); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.button1); + this.Controls.Add(this.label3); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Font = new System.Drawing.Font("Comic Sans MS", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); + this.Name = "Form1"; + this.Text = "Авторизация"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.Button button2; + } +} diff --git a/SkryabinaModul/SkryabinaModul/Form1.cs b/SkryabinaModul/SkryabinaModul/Form1.cs new file mode 100644 index 0000000..4c02a1b --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Form1.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections.Generic; +using System.Windows.Forms; +using MySql.Data.MySqlClient; +using SkryabinaModul; +using static System.Windows.Forms.VisualStyles.VisualStyleElement; + +namespace SkryabinaModul +{ + public partial class Form1 : Form + { + // Изменена строка подключения на вашу БД + string connectionString = "Server=85.239.57.125; Database=Scriabin_Sophia_ProbModul; Uid=Scriabin_Sophia; Pwd=TempPass123!; SslMode=none;"; + + // Словарь соответствия ролей и форм + private Dictionary roleForms = new Dictionary + { + { "1", new Admin() }, // Администратор + { "2", new Manager() }, // Менеджер + { "3", new Client() } // Клиент + }; + + public Form1() + { + InitializeComponent(); + } + + private void button1_Click(object sender, EventArgs e) + { + using (MySqlConnection conn = new MySqlConnection(connectionString)) + { + conn.Open(); + // Изменен запрос под таблицу Klients (логин, пароль, роль) + string query = "SELECT RoleID FROM Klients WHERE Login = @login AND Password = @pass"; + using (MySqlCommand cmd = new MySqlCommand(query, conn)) + { + cmd.Parameters.AddWithValue("@login", textBox1.Text); + cmd.Parameters.AddWithValue("@pass", textBox2.Text); + object result = cmd.ExecuteScalar(); + + if (result != null && roleForms.TryGetValue(result.ToString(), out Form form)) + { + form.Show(); + this.Hide(); + } + else + { + MessageBox.Show("Ошибка авторизации!\nНеверный логин или пароль.", "Ошибка", + MessageBoxButtons.OK, MessageBoxIcon.Error); + } + } + } + } + + private void button2_Click(object sender, EventArgs e) + { + Guest form = new Guest(); + form.Show(); + } + + private void button2_Click_1(object sender, EventArgs e) + { + Guest form = new Guest(); + form.Show(); + } + } +} \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/Form1.resx b/SkryabinaModul/SkryabinaModul/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/Guest.Designer.cs b/SkryabinaModul/SkryabinaModul/Guest.Designer.cs new file mode 100644 index 0000000..72c2c1a --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Guest.Designer.cs @@ -0,0 +1,99 @@ +namespace SkryabinaModul +{ + partial class Guest + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.labelTitle = new System.Windows.Forms.Label(); + this.buttonBack = new System.Windows.Forms.Button(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.SuspendLayout(); + // + // dataGridView1 + // + this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridView1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView1.Font = new System.Drawing.Font("Comic Sans MS", 9F); + this.dataGridView1.Location = new System.Drawing.Point(9, 58); + this.dataGridView1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.RowHeadersWidth = 51; + this.dataGridView1.Size = new System.Drawing.Size(788, 284); + this.dataGridView1.TabIndex = 8; + // + // labelTitle + // + this.labelTitle.AutoSize = true; + this.labelTitle.Font = new System.Drawing.Font("Comic Sans MS", 20F, System.Drawing.FontStyle.Bold); + this.labelTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.labelTitle.Location = new System.Drawing.Point(22, 7); + this.labelTitle.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelTitle.Name = "labelTitle"; + this.labelTitle.Size = new System.Drawing.Size(263, 38); + this.labelTitle.TabIndex = 9; + this.labelTitle.Text = "Просмотр товаров"; + // + // buttonBack + // + this.buttonBack.BackColor = System.Drawing.Color.Red; + this.buttonBack.Font = new System.Drawing.Font("Comic Sans MS", 10F, System.Drawing.FontStyle.Bold); + this.buttonBack.Location = new System.Drawing.Point(706, 368); + this.buttonBack.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.buttonBack.Name = "buttonBack"; + this.buttonBack.Size = new System.Drawing.Size(90, 32); + this.buttonBack.TabIndex = 12; + this.buttonBack.Text = "Назад"; + this.buttonBack.UseVisualStyleBackColor = false; + this.buttonBack.Click += new System.EventHandler(this.buttonBack_Click); + // + // Guest + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(237)))), ((int)(((byte)(215))))); + this.ClientSize = new System.Drawing.Size(834, 421); + this.Controls.Add(this.buttonBack); + this.Controls.Add(this.labelTitle); + this.Controls.Add(this.dataGridView1); + this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.Name = "Guest"; + this.Text = "Guest"; + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.DataGridView dataGridView1; + private System.Windows.Forms.Label labelTitle; + private System.Windows.Forms.Button buttonBack; + } +} \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/Guest.cs b/SkryabinaModul/SkryabinaModul/Guest.cs new file mode 100644 index 0000000..2852bc2 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Guest.cs @@ -0,0 +1,49 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using MySql.Data.MySqlClient; + +namespace SkryabinaModul +{ + public partial class Guest : Form + { + string connectionString = "Server=85.239.57.125; Database=Scriabin_Sophia_ProbModul; Uid=Scriabin_Sophia; Pwd=TempPass123!; SslMode=none;"; + public Guest() + { + InitializeComponent(); + LoadProducts(); + } + + void LoadProducts() + { + using (var conn = new MySqlConnection(connectionString)) + { + conn.Open(); + var adapter = new MySqlDataAdapter(@"SELECT p.idProduct, p.Article, p.Name, c.Category, p.Description, + m.Manufacturer, s.Supplier, p.Price, p.Discount, p.Quantity, u.Unit, p.Photo + FROM Product p + LEFT JOIN Category c ON p.CategoryID = c.idCategory + LEFT JOIN Manufacturer m ON p.ManufacturerID = m.idManufacturer + LEFT JOIN Supplier s ON p.SupplierID = s.idSupplier + LEFT JOIN Unit u ON p.EdinicaID = u.idUnit", conn); + + var dt = new DataTable(); + adapter.Fill(dt); + dataGridView1.DataSource = dt; + if (dataGridView1.Columns["idProduct"] != null) + dataGridView1.Columns["idProduct"].Visible = false; + } + } + + private void buttonBack_Click(object sender, EventArgs e) + { + this.Close(); + } + } +} diff --git a/SkryabinaModul/SkryabinaModul/Guest.resx b/SkryabinaModul/SkryabinaModul/Guest.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Guest.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/Manager.Designer.cs b/SkryabinaModul/SkryabinaModul/Manager.Designer.cs new file mode 100644 index 0000000..352a68e --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Manager.Designer.cs @@ -0,0 +1,182 @@ +namespace SkryabinaModul +{ + partial class Manager + { + private System.ComponentModel.IContainer components = null; + + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) components.Dispose(); + base.Dispose(disposing); + } + + private void InitializeComponent() + { + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.labelSearch = new System.Windows.Forms.Label(); + this.textBoxSearch = new System.Windows.Forms.TextBox(); + this.labelFilter = new System.Windows.Forms.Label(); + this.comboBoxFilter = new System.Windows.Forms.ComboBox(); + this.labelSort = new System.Windows.Forms.Label(); + this.comboBoxSort = new System.Windows.Forms.ComboBox(); + this.labelTitle = new System.Windows.Forms.Label(); + this.buttonBack = new System.Windows.Forms.Button(); + this.button1 = new System.Windows.Forms.Button(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.SuspendLayout(); + // + // dataGridView1 + // + this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridView1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView1.Font = new System.Drawing.Font("Comic Sans MS", 9F); + this.dataGridView1.Location = new System.Drawing.Point(20, 130); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.RowHeadersWidth = 51; + this.dataGridView1.Size = new System.Drawing.Size(760, 300); + this.dataGridView1.TabIndex = 7; + // + // labelSearch + // + this.labelSearch.AutoSize = true; + this.labelSearch.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelSearch.Location = new System.Drawing.Point(16, 65); + this.labelSearch.Name = "labelSearch"; + this.labelSearch.Size = new System.Drawing.Size(57, 19); + this.labelSearch.TabIndex = 1; + this.labelSearch.Text = "Поиск:"; + // + // textBoxSearch + // + this.textBoxSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.textBoxSearch.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.textBoxSearch.Location = new System.Drawing.Point(20, 87); + this.textBoxSearch.Name = "textBoxSearch"; + this.textBoxSearch.Size = new System.Drawing.Size(180, 26); + this.textBoxSearch.TabIndex = 2; + // + // labelFilter + // + this.labelFilter.AutoSize = true; + this.labelFilter.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelFilter.Location = new System.Drawing.Point(215, 65); + this.labelFilter.Name = "labelFilter"; + this.labelFilter.Size = new System.Drawing.Size(61, 19); + this.labelFilter.TabIndex = 3; + this.labelFilter.Text = "Фильтр:"; + // + // comboBoxFilter + // + this.comboBoxFilter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.comboBoxFilter.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxFilter.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.comboBoxFilter.FormattingEnabled = true; + this.comboBoxFilter.Items.AddRange(new object[] { + "Все", + "По номеру", + "По статусу", + "По адресу"}); + this.comboBoxFilter.Location = new System.Drawing.Point(219, 87); + this.comboBoxFilter.Name = "comboBoxFilter"; + this.comboBoxFilter.Size = new System.Drawing.Size(150, 26); + this.comboBoxFilter.TabIndex = 4; + // + // labelSort + // + this.labelSort.AutoSize = true; + this.labelSort.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelSort.Location = new System.Drawing.Point(385, 65); + this.labelSort.Name = "labelSort"; + this.labelSort.Size = new System.Drawing.Size(88, 19); + this.labelSort.TabIndex = 5; + this.labelSort.Text = "Сортировка:"; + // + // comboBoxSort + // + this.comboBoxSort.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.comboBoxSort.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxSort.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.comboBoxSort.FormattingEnabled = true; + this.comboBoxSort.Items.AddRange(new object[] { + "По дате новые", + "По дате старые", + "По статусу", + "По номеру"}); + this.comboBoxSort.Location = new System.Drawing.Point(389, 87); + this.comboBoxSort.Name = "comboBoxSort"; + this.comboBoxSort.Size = new System.Drawing.Size(150, 26); + this.comboBoxSort.TabIndex = 6; + // + // labelTitle + // + this.labelTitle.AutoSize = true; + this.labelTitle.Font = new System.Drawing.Font("Comic Sans MS", 20F, System.Drawing.FontStyle.Bold); + this.labelTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.labelTitle.Location = new System.Drawing.Point(20, 15); + this.labelTitle.Name = "labelTitle"; + this.labelTitle.Size = new System.Drawing.Size(174, 38); + this.labelTitle.TabIndex = 0; + this.labelTitle.Text = "Мои заказы"; + // + // buttonBack + // + this.buttonBack.BackColor = System.Drawing.Color.Red; + this.buttonBack.Font = new System.Drawing.Font("Comic Sans MS", 10F, System.Drawing.FontStyle.Bold); + this.buttonBack.Location = new System.Drawing.Point(20, 445); + this.buttonBack.Name = "buttonBack"; + this.buttonBack.Size = new System.Drawing.Size(100, 35); + this.buttonBack.TabIndex = 11; + this.buttonBack.Text = "Назад"; + this.buttonBack.UseVisualStyleBackColor = false; + this.buttonBack.Click += new System.EventHandler(this.buttonBack_Click); + // + // button1 + // + this.button1.BackColor = System.Drawing.Color.Red; + this.button1.Font = new System.Drawing.Font("Comic Sans MS", 10F, System.Drawing.FontStyle.Bold); + this.button1.Location = new System.Drawing.Point(680, 445); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(100, 35); + this.button1.TabIndex = 12; + this.button1.Text = "Заказы"; + this.button1.UseVisualStyleBackColor = false; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // Manager + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(237)))), ((int)(((byte)(215))))); + this.ClientSize = new System.Drawing.Size(800, 500); + this.Controls.Add(this.button1); + this.Controls.Add(this.buttonBack); + this.Controls.Add(this.dataGridView1); + this.Controls.Add(this.comboBoxSort); + this.Controls.Add(this.labelSort); + this.Controls.Add(this.comboBoxFilter); + this.Controls.Add(this.labelFilter); + this.Controls.Add(this.textBoxSearch); + this.Controls.Add(this.labelSearch); + this.Controls.Add(this.labelTitle); + this.Font = new System.Drawing.Font("Comic Sans MS", 8.25F); + this.Name = "Manager"; + this.Text = "Менеджер - Просмотр заказов"; + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + private System.Windows.Forms.DataGridView dataGridView1; + private System.Windows.Forms.Label labelSearch; + private System.Windows.Forms.TextBox textBoxSearch; + private System.Windows.Forms.Label labelFilter; + private System.Windows.Forms.ComboBox comboBoxFilter; + private System.Windows.Forms.Label labelSort; + private System.Windows.Forms.ComboBox comboBoxSort; + private System.Windows.Forms.Label labelTitle; + private System.Windows.Forms.Button buttonBack; + private System.Windows.Forms.Button button1; + } +} \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/Manager.cs b/SkryabinaModul/SkryabinaModul/Manager.cs new file mode 100644 index 0000000..f53f9d0 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Manager.cs @@ -0,0 +1,92 @@ +using MySql.Data.MySqlClient; +using SkryabinaModul; +using System; +using System.Data; +using System.Windows.Forms; + +namespace SkryabinaModul +{ + public partial class Manager : Form + { + string connectionString = "Server=85.239.57.125; Database=Scriabin_Sophia_ProbModul; Uid=Scriabin_Sophia; Pwd=TempPass123!; SslMode=none;"; + private int clientId; + + public Manager(int id = 0) + { + InitializeComponent(); + clientId = id; + LoadOrders(); + + textBoxSearch.TextChanged += (s, e) => FilterAndSort(); + comboBoxFilter.SelectedIndexChanged += (s, e) => FilterAndSort(); + comboBoxSort.SelectedIndexChanged += (s, e) => FilterAndSort(); + } + + void LoadOrders() + { + string query = @"SELECT o.Article as 'Номер', s.Status as 'Статус', + o.PickUpPoint as 'Адрес', o.DateOrders as 'Дата заказа', + o.DateDelivery as 'Дата доставки' + FROM Orders o JOIN Status s ON o.StatusID = s.idStatus + WHERE " + (clientId > 0 ? "o.FIOID = @id" : "1=1"); + + using (var conn = new MySqlConnection(connectionString)) + { + conn.Open(); + var adapter = new MySqlDataAdapter(query, conn); + if (clientId > 0) adapter.SelectCommand.Parameters.AddWithValue("@id", clientId); + var dt = new DataTable(); + adapter.Fill(dt); + dataGridView1.DataSource = dt; + } + } + + void FilterAndSort() + { + string search = textBoxSearch.Text; + string filter = comboBoxFilter.Text; + string sort = comboBoxSort.Text; + + string query = @"SELECT o.Article as 'Номер', s.Status as 'Статус', + o.PickUpPoint as 'Адрес', o.DateOrders as 'Дата заказа', + o.DateDelivery as 'Дата доставки' + FROM Orders o JOIN Status s ON o.StatusID = s.idStatus + WHERE " + (clientId > 0 ? "o.FIOID = @id" : "1=1"); + + if (!string.IsNullOrEmpty(search)) + { + if (filter == "По номеру") query += " AND o.Article LIKE @search"; + else if (filter == "По статусу") query += " AND s.Status LIKE @search"; + else query += " AND (o.Article LIKE @search OR s.Status LIKE @search OR o.PickUpPoint LIKE @search)"; + } + + if (sort == "По дате новые") query += " ORDER BY o.DateOrders DESC"; + else if (sort == "По дате старые") query += " ORDER BY o.DateOrders ASC"; + else if (sort == "По статусу") query += " ORDER BY s.Status ASC"; + else query += " ORDER BY o.DateOrders DESC"; + + using (var conn = new MySqlConnection(connectionString)) + { + conn.Open(); + var cmd = new MySqlCommand(query, conn); + if (clientId > 0) cmd.Parameters.AddWithValue("@id", clientId); + if (!string.IsNullOrEmpty(search)) cmd.Parameters.AddWithValue("@search", "%" + search + "%"); + + var dt = new DataTable(); + new MySqlDataAdapter(cmd).Fill(dt); + dataGridView1.DataSource = dt; + } + } + + private void buttonBack_Click(object sender, EventArgs e) + { + new Form1().Show(); + Close(); + } + + private void button1_Click(object sender, EventArgs e) + { + new OrdersManager().Show(); + } + } +} \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/Manager.resx b/SkryabinaModul/SkryabinaModul/Manager.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Manager.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/OrdersAdmin.Designer.cs b/SkryabinaModul/SkryabinaModul/OrdersAdmin.Designer.cs new file mode 100644 index 0000000..ab476c5 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/OrdersAdmin.Designer.cs @@ -0,0 +1,137 @@ +namespace SkryabinaModul +{ + partial class OrdersAdmin + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.buttonBack = new System.Windows.Forms.Button(); + this.buttonDelete = new System.Windows.Forms.Button(); + this.buttonEdit = new System.Windows.Forms.Button(); + this.buttonAdd = new System.Windows.Forms.Button(); + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + this.labelTitle = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.SuspendLayout(); + // + // buttonBack + // + this.buttonBack.BackColor = System.Drawing.Color.Red; + this.buttonBack.Font = new System.Drawing.Font("Comic Sans MS", 10F, System.Drawing.FontStyle.Bold); + this.buttonBack.Location = new System.Drawing.Point(50, 512); + this.buttonBack.Name = "buttonBack"; + this.buttonBack.Size = new System.Drawing.Size(120, 40); + this.buttonBack.TabIndex = 24; + this.buttonBack.Text = "Назад"; + this.buttonBack.UseVisualStyleBackColor = false; + this.buttonBack.Click += new System.EventHandler(this.buttonBack_Click); + // + // buttonDelete + // + this.buttonDelete.BackColor = System.Drawing.Color.Red; + this.buttonDelete.Font = new System.Drawing.Font("Comic Sans MS", 10F, System.Drawing.FontStyle.Bold); + this.buttonDelete.ForeColor = System.Drawing.Color.Black; + this.buttonDelete.Location = new System.Drawing.Point(980, 447); + this.buttonDelete.Name = "buttonDelete"; + this.buttonDelete.Size = new System.Drawing.Size(120, 40); + this.buttonDelete.TabIndex = 23; + this.buttonDelete.Text = "Удалить"; + this.buttonDelete.UseVisualStyleBackColor = false; + // + // buttonEdit + // + this.buttonEdit.BackColor = System.Drawing.Color.Red; + this.buttonEdit.Font = new System.Drawing.Font("Comic Sans MS", 10F, System.Drawing.FontStyle.Bold); + this.buttonEdit.Location = new System.Drawing.Point(179, 447); + this.buttonEdit.Name = "buttonEdit"; + this.buttonEdit.Size = new System.Drawing.Size(140, 40); + this.buttonEdit.TabIndex = 22; + this.buttonEdit.Text = "Редактировать"; + this.buttonEdit.UseVisualStyleBackColor = false; + // + // buttonAdd + // + this.buttonAdd.BackColor = System.Drawing.Color.Red; + this.buttonAdd.Font = new System.Drawing.Font("Comic Sans MS", 10F, System.Drawing.FontStyle.Bold); + this.buttonAdd.Location = new System.Drawing.Point(53, 447); + this.buttonAdd.Name = "buttonAdd"; + this.buttonAdd.Size = new System.Drawing.Size(120, 40); + this.buttonAdd.TabIndex = 21; + this.buttonAdd.Text = "Добавить"; + this.buttonAdd.UseVisualStyleBackColor = false; + // + // dataGridView1 + // + this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridView1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView1.Font = new System.Drawing.Font("Comic Sans MS", 9F); + this.dataGridView1.Location = new System.Drawing.Point(50, 62); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.RowHeadersWidth = 51; + this.dataGridView1.Size = new System.Drawing.Size(1050, 350); + this.dataGridView1.TabIndex = 20; + // + // labelTitle + // + this.labelTitle.AutoSize = true; + this.labelTitle.Font = new System.Drawing.Font("Comic Sans MS", 20F, System.Drawing.FontStyle.Bold); + this.labelTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.labelTitle.Location = new System.Drawing.Point(46, 12); + this.labelTitle.Name = "labelTitle"; + this.labelTitle.Size = new System.Drawing.Size(304, 38); + this.labelTitle.TabIndex = 13; + this.labelTitle.Text = "Управление заказами"; + // + // OrdersAdmin + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(237)))), ((int)(((byte)(215))))); + this.ClientSize = new System.Drawing.Size(1147, 573); + this.Controls.Add(this.buttonBack); + this.Controls.Add(this.buttonDelete); + this.Controls.Add(this.buttonEdit); + this.Controls.Add(this.buttonAdd); + this.Controls.Add(this.dataGridView1); + this.Controls.Add(this.labelTitle); + this.Name = "OrdersAdmin"; + this.Text = "OrdersAdmin"; + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + private System.Windows.Forms.Button buttonBack; + private System.Windows.Forms.Button buttonDelete; + private System.Windows.Forms.Button buttonEdit; + private System.Windows.Forms.Button buttonAdd; + private System.Windows.Forms.DataGridView dataGridView1; + private System.Windows.Forms.Label labelTitle; + } +} \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/OrdersAdmin.cs b/SkryabinaModul/SkryabinaModul/OrdersAdmin.cs new file mode 100644 index 0000000..8a8dbd1 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/OrdersAdmin.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using MySql.Data.MySqlClient; + +namespace SkryabinaModul +{ + public partial class OrdersAdmin : Form + { + string connectionString = "Server=85.239.57.125; Database=Scriabin_Sophia_ProbModul; Uid=Scriabin_Sophia; Pwd=TempPass123!; SslMode=none;"; + public OrdersAdmin() + { + InitializeComponent(); + LoadOrders(); + + buttonAdd.Click += (s, e) => { if (new OrdersEditForm(connectionString, null).ShowDialog() == DialogResult.OK) LoadOrders(); }; + buttonEdit.Click += (s, e) => EditOrders(); + buttonDelete.Click += (s, e) => DeleteOrders(); + } + + void LoadOrders() + { + using (var conn = new MySqlConnection(connectionString)) + { + conn.Open(); + var adapter = new MySqlDataAdapter(@"SELECT o.idOrders, o.Article, k.FIO, s.Status, o.PickUpPoint, + o.DateOrders, o.DateDelivery, p.Article + FROM Orders o + LEFT JOIN Klients k ON o.FIOID = k.idKlient + LEFT JOIN Status s ON o.StatusID = s.idStatus + LEFT JOIN Product p ON o.SostavID = p.idProduct", conn); + + var dt = new DataTable(); + adapter.Fill(dt); + dataGridView1.DataSource = dt; + if (dataGridView1.Columns["idOrders"] != null) + dataGridView1.Columns["idOrders"].Visible = false; + } + } + + + void EditOrders() + { + if (dataGridView1.SelectedRows.Count == 0) + { + MessageBox.Show("Выберите заказ", "Внимание", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + int id = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells["idOrders"].Value); + if (new OrdersEditForm(connectionString, id).ShowDialog() == DialogResult.OK) + LoadOrders(); + } + + // Удаление товара + void DeleteOrders() + { + if (dataGridView1.SelectedRows.Count == 0) + { + MessageBox.Show("Выберите заказ", "Внимание", MessageBoxButtons.OK, MessageBoxIcon.Warning); + return; + } + + int id = Convert.ToInt32(dataGridView1.SelectedRows[0].Cells["idOrders"].Value); + string name = dataGridView1.SelectedRows[0].Cells["Article"].Value.ToString(); + + if (MessageBox.Show($"Удалить \"{name}\"?", "Подтверждение", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + { + using (var conn = new MySqlConnection(connectionString)) + { + conn.Open(); + var cmd = new MySqlCommand("DELETE FROM Orders WHERE idOrders = @id", conn); + cmd.Parameters.AddWithValue("@id", id); + cmd.ExecuteNonQuery(); + } + LoadOrders(); + } + } + + private void buttonBack_Click(object sender, EventArgs e) + { + Close(); + } + } +} diff --git a/SkryabinaModul/SkryabinaModul/OrdersAdmin.resx b/SkryabinaModul/SkryabinaModul/OrdersAdmin.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/OrdersAdmin.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/OrdersEditForm.Designer.cs b/SkryabinaModul/SkryabinaModul/OrdersEditForm.Designer.cs new file mode 100644 index 0000000..25c87c6 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/OrdersEditForm.Designer.cs @@ -0,0 +1,274 @@ +namespace SkryabinaModul +{ + partial class OrdersEditForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.buttonCancel = new System.Windows.Forms.Button(); + this.buttonSave = new System.Windows.Forms.Button(); + this.textBoxDateDel = new System.Windows.Forms.TextBox(); + this.labelPhoto = new System.Windows.Forms.Label(); + this.comboBoxProduct = new System.Windows.Forms.ComboBox(); + this.labelSupplier = new System.Windows.Forms.Label(); + this.comboBoxStatus = new System.Windows.Forms.ComboBox(); + this.labelManufacturer = new System.Windows.Forms.Label(); + this.textBoxDateOrders = new System.Windows.Forms.TextBox(); + this.labelDescription = new System.Windows.Forms.Label(); + this.comboBoxFio = new System.Windows.Forms.ComboBox(); + this.labelCategory = new System.Windows.Forms.Label(); + this.textBoxPick = new System.Windows.Forms.TextBox(); + this.labelName = new System.Windows.Forms.Label(); + this.textBoxArticle = new System.Windows.Forms.TextBox(); + this.labelArticle = new System.Windows.Forms.Label(); + this.labelTitle = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // buttonCancel + // + this.buttonCancel.BackColor = System.Drawing.Color.Red; + this.buttonCancel.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Bold); + this.buttonCancel.ForeColor = System.Drawing.Color.Black; + this.buttonCancel.Location = new System.Drawing.Point(490, 337); + this.buttonCancel.Name = "buttonCancel"; + this.buttonCancel.Size = new System.Drawing.Size(140, 45); + this.buttonCancel.TabIndex = 49; + this.buttonCancel.Text = "Отмена"; + this.buttonCancel.UseVisualStyleBackColor = false; + this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); + // + // buttonSave + // + this.buttonSave.BackColor = System.Drawing.Color.Red; + this.buttonSave.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Bold); + this.buttonSave.Location = new System.Drawing.Point(334, 337); + this.buttonSave.Name = "buttonSave"; + this.buttonSave.Size = new System.Drawing.Size(140, 45); + this.buttonSave.TabIndex = 48; + this.buttonSave.Text = "Сохранить"; + this.buttonSave.UseVisualStyleBackColor = false; + // + // textBoxDateDel + // + this.textBoxDateDel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.textBoxDateDel.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.textBoxDateDel.Location = new System.Drawing.Point(30, 283); + this.textBoxDateDel.Name = "textBoxDateDel"; + this.textBoxDateDel.Size = new System.Drawing.Size(400, 26); + this.textBoxDateDel.TabIndex = 47; + // + // labelPhoto + // + this.labelPhoto.AutoSize = true; + this.labelPhoto.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelPhoto.Location = new System.Drawing.Point(28, 250); + this.labelPhoto.Name = "labelPhoto"; + this.labelPhoto.Size = new System.Drawing.Size(109, 19); + this.labelPhoto.TabIndex = 46; + this.labelPhoto.Text = "Дата доставки:"; + // + // comboBoxProduct + // + this.comboBoxProduct.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.comboBoxProduct.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxProduct.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.comboBoxProduct.FormattingEnabled = true; + this.comboBoxProduct.Location = new System.Drawing.Point(248, 202); + this.comboBoxProduct.Name = "comboBoxProduct"; + this.comboBoxProduct.Size = new System.Drawing.Size(200, 26); + this.comboBoxProduct.TabIndex = 37; + // + // labelSupplier + // + this.labelSupplier.AutoSize = true; + this.labelSupplier.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelSupplier.Location = new System.Drawing.Point(244, 180); + this.labelSupplier.Name = "labelSupplier"; + this.labelSupplier.Size = new System.Drawing.Size(115, 19); + this.labelSupplier.TabIndex = 36; + this.labelSupplier.Text = "Артикул товара:"; + // + // comboBoxStatus + // + this.comboBoxStatus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.comboBoxStatus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxStatus.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.comboBoxStatus.FormattingEnabled = true; + this.comboBoxStatus.Location = new System.Drawing.Point(30, 202); + this.comboBoxStatus.Name = "comboBoxStatus"; + this.comboBoxStatus.Size = new System.Drawing.Size(200, 26); + this.comboBoxStatus.TabIndex = 35; + // + // labelManufacturer + // + this.labelManufacturer.AutoSize = true; + this.labelManufacturer.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelManufacturer.Location = new System.Drawing.Point(26, 180); + this.labelManufacturer.Name = "labelManufacturer"; + this.labelManufacturer.Size = new System.Drawing.Size(56, 19); + this.labelManufacturer.TabIndex = 34; + this.labelManufacturer.Text = "Статус:"; + // + // textBoxDateOrders + // + this.textBoxDateOrders.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.textBoxDateOrders.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.textBoxDateOrders.Location = new System.Drawing.Point(248, 142); + this.textBoxDateOrders.Name = "textBoxDateOrders"; + this.textBoxDateOrders.Size = new System.Drawing.Size(300, 26); + this.textBoxDateOrders.TabIndex = 33; + // + // labelDescription + // + this.labelDescription.AutoSize = true; + this.labelDescription.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelDescription.Location = new System.Drawing.Point(244, 120); + this.labelDescription.Name = "labelDescription"; + this.labelDescription.Size = new System.Drawing.Size(89, 19); + this.labelDescription.TabIndex = 32; + this.labelDescription.Text = "Дата заказа:"; + // + // comboBoxFio + // + this.comboBoxFio.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.comboBoxFio.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxFio.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.comboBoxFio.FormattingEnabled = true; + this.comboBoxFio.Location = new System.Drawing.Point(30, 142); + this.comboBoxFio.Name = "comboBoxFio"; + this.comboBoxFio.Size = new System.Drawing.Size(200, 26); + this.comboBoxFio.TabIndex = 31; + // + // labelCategory + // + this.labelCategory.AutoSize = true; + this.labelCategory.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelCategory.Location = new System.Drawing.Point(26, 120); + this.labelCategory.Name = "labelCategory"; + this.labelCategory.Size = new System.Drawing.Size(43, 19); + this.labelCategory.TabIndex = 30; + this.labelCategory.Text = "ФИО:"; + // + // textBoxPick + // + this.textBoxPick.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.textBoxPick.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.textBoxPick.Location = new System.Drawing.Point(198, 82); + this.textBoxPick.Name = "textBoxPick"; + this.textBoxPick.Size = new System.Drawing.Size(250, 26); + this.textBoxPick.TabIndex = 29; + // + // labelName + // + this.labelName.AutoSize = true; + this.labelName.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelName.Location = new System.Drawing.Point(194, 60); + this.labelName.Name = "labelName"; + this.labelName.Size = new System.Drawing.Size(108, 19); + this.labelName.TabIndex = 28; + this.labelName.Text = "Пункт выдачи:"; + // + // textBoxArticle + // + this.textBoxArticle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.textBoxArticle.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.textBoxArticle.Location = new System.Drawing.Point(30, 82); + this.textBoxArticle.Name = "textBoxArticle"; + this.textBoxArticle.Size = new System.Drawing.Size(150, 26); + this.textBoxArticle.TabIndex = 27; + // + // labelArticle + // + this.labelArticle.AutoSize = true; + this.labelArticle.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelArticle.Location = new System.Drawing.Point(26, 60); + this.labelArticle.Name = "labelArticle"; + this.labelArticle.Size = new System.Drawing.Size(68, 19); + this.labelArticle.TabIndex = 26; + this.labelArticle.Text = "Артикул:"; + // + // labelTitle + // + this.labelTitle.AutoSize = true; + this.labelTitle.Font = new System.Drawing.Font("Comic Sans MS", 18F, System.Drawing.FontStyle.Bold); + this.labelTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.labelTitle.Location = new System.Drawing.Point(26, 9); + this.labelTitle.Name = "labelTitle"; + this.labelTitle.Size = new System.Drawing.Size(282, 35); + this.labelTitle.TabIndex = 25; + this.labelTitle.Text = "Редактирование заказа"; + // + // OrdersEditForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(237)))), ((int)(((byte)(215))))); + this.ClientSize = new System.Drawing.Size(661, 400); + this.Controls.Add(this.buttonCancel); + this.Controls.Add(this.buttonSave); + this.Controls.Add(this.textBoxDateDel); + this.Controls.Add(this.labelPhoto); + this.Controls.Add(this.comboBoxProduct); + this.Controls.Add(this.labelSupplier); + this.Controls.Add(this.comboBoxStatus); + this.Controls.Add(this.labelManufacturer); + this.Controls.Add(this.textBoxDateOrders); + this.Controls.Add(this.labelDescription); + this.Controls.Add(this.comboBoxFio); + this.Controls.Add(this.labelCategory); + this.Controls.Add(this.textBoxPick); + this.Controls.Add(this.labelName); + this.Controls.Add(this.textBoxArticle); + this.Controls.Add(this.labelArticle); + this.Controls.Add(this.labelTitle); + this.Name = "OrdersEditForm"; + this.Text = "OrdersEditForm"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button buttonCancel; + private System.Windows.Forms.Button buttonSave; + private System.Windows.Forms.TextBox textBoxDateDel; + private System.Windows.Forms.Label labelPhoto; + private System.Windows.Forms.ComboBox comboBoxProduct; + private System.Windows.Forms.Label labelSupplier; + private System.Windows.Forms.ComboBox comboBoxStatus; + private System.Windows.Forms.Label labelManufacturer; + private System.Windows.Forms.TextBox textBoxDateOrders; + private System.Windows.Forms.Label labelDescription; + private System.Windows.Forms.ComboBox comboBoxFio; + private System.Windows.Forms.Label labelCategory; + private System.Windows.Forms.TextBox textBoxPick; + private System.Windows.Forms.Label labelName; + private System.Windows.Forms.TextBox textBoxArticle; + private System.Windows.Forms.Label labelArticle; + private System.Windows.Forms.Label labelTitle; + } +} \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/OrdersEditForm.cs b/SkryabinaModul/SkryabinaModul/OrdersEditForm.cs new file mode 100644 index 0000000..49a7218 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/OrdersEditForm.cs @@ -0,0 +1,112 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using MySql.Data.MySqlClient; + +namespace SkryabinaModul +{ + public partial class OrdersEditForm : Form + { + string connStr; + int? id; + public OrdersEditForm(string connectionString, int? ordersId) + { + InitializeComponent(); + connStr = connectionString; + id = ordersId; + LoadComboBoxes(); + if (id.HasValue) LoadOrders(); + Text = id.HasValue ? "Редактирование" : "Новый заказ"; + buttonSave.Click += (s, e) => Save(); + buttonCancel.Click += (s, e) => Close(); + } + + void LoadComboBoxes() + { + using (var conn = new MySqlConnection(connStr)) + { + conn.Open(); + LoadCombo(conn, "SELECT idKlient, FIO FROM Klients", comboBoxFio); + LoadCombo(conn, "SELECT idStatus, Status FROM Status", comboBoxStatus); + LoadCombo(conn, "SELECT idProduct, Article FROM Product", comboBoxProduct); + } + } + + void LoadCombo(MySqlConnection conn, string query, ComboBox combo) + { + var dt = new DataTable(); + new MySqlDataAdapter(query, conn).Fill(dt); + combo.DisplayMember = dt.Columns[1].ColumnName; + combo.ValueMember = dt.Columns[0].ColumnName; + combo.DataSource = dt; + } + + void LoadOrders() + { + using (var conn = new MySqlConnection(connStr)) + { + conn.Open(); + var cmd = new MySqlCommand("SELECT * FROM Orders WHERE idOrders = @id", conn); + cmd.Parameters.AddWithValue("@id", id); + var reader = cmd.ExecuteReader(); + if (reader.Read()) + { + textBoxArticle.Text = reader["Article"].ToString(); + comboBoxFio.SelectedValue = reader["FIOID"]; + comboBoxStatus.SelectedValue = reader["StatusID"]; + textBoxPick.Text = reader["PickUpPoint"].ToString(); + textBoxDateOrders.Text = reader["DateOrders"].ToString(); + textBoxDateDel.Text = reader["DateDelivery"].ToString(); + comboBoxProduct.SelectedValue = reader["SostavID"]; + } + } + } + + void Save() + { + if (string.IsNullOrWhiteSpace(textBoxArticle.Text)) + { + MessageBox.Show("Введите артикул!"); + return; + } + + using (var conn = new MySqlConnection(connStr)) + { + conn.Open(); + string query = id.HasValue ? + @"UPDATE Orders SET Article=@a, FIOID=@f, StatusID=@s, PickUpPoint=@p, + DateOrders=@do, DateDelivery=@dd, SostavID=@sost + WHERE idOrders=@id" : + @"INSERT INTO Orders (Article, FIOID, StatusID, PickUpPoint, DateOrders, DateDelivery, + SostavID) + VALUES (@a, @f, @s, @p, @do, @dd, @sost)"; + + var cmd = new MySqlCommand(query, conn); + cmd.Parameters.AddWithValue("@a", textBoxArticle.Text); + cmd.Parameters.AddWithValue("@f", comboBoxFio.SelectedValue); + cmd.Parameters.AddWithValue("@s", comboBoxStatus.SelectedValue); + cmd.Parameters.AddWithValue("@p", textBoxPick.Text); + cmd.Parameters.AddWithValue("@do", textBoxDateOrders.Text); + cmd.Parameters.AddWithValue("@dd", textBoxDateDel.Text); + cmd.Parameters.AddWithValue("@sost", comboBoxProduct.SelectedValue); + if (id.HasValue) cmd.Parameters.AddWithValue("@id", id); + cmd.ExecuteNonQuery(); + } + DialogResult = DialogResult.OK; + Close(); + } + + private void buttonCancel_Click(object sender, EventArgs e) + { + Close(); + } + + //Для того, чтобы работало добавление и редактирование заказов, даты нужно вводить в формате: год; месяц; день + } +} diff --git a/SkryabinaModul/SkryabinaModul/OrdersEditForm.resx b/SkryabinaModul/SkryabinaModul/OrdersEditForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/OrdersEditForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/OrdersManager.Designer.cs b/SkryabinaModul/SkryabinaModul/OrdersManager.Designer.cs new file mode 100644 index 0000000..bd05d57 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/OrdersManager.Designer.cs @@ -0,0 +1,98 @@ +namespace SkryabinaModul +{ + partial class OrdersManager + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.buttonBack = new System.Windows.Forms.Button(); + this.labelTitle = new System.Windows.Forms.Label(); + this.dataGridView1 = new System.Windows.Forms.DataGridView(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); + this.SuspendLayout(); + // + // buttonBack + // + this.buttonBack.BackColor = System.Drawing.Color.Red; + this.buttonBack.Font = new System.Drawing.Font("Comic Sans MS", 10F, System.Drawing.FontStyle.Bold); + this.buttonBack.Location = new System.Drawing.Point(709, 389); + this.buttonBack.Margin = new System.Windows.Forms.Padding(2); + this.buttonBack.Name = "buttonBack"; + this.buttonBack.Size = new System.Drawing.Size(90, 32); + this.buttonBack.TabIndex = 15; + this.buttonBack.Text = "Назад"; + this.buttonBack.UseVisualStyleBackColor = false; + this.buttonBack.Click += new System.EventHandler(this.buttonBack_Click); + // + // labelTitle + // + this.labelTitle.AutoSize = true; + this.labelTitle.Font = new System.Drawing.Font("Comic Sans MS", 20F, System.Drawing.FontStyle.Bold); + this.labelTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.labelTitle.Location = new System.Drawing.Point(19, 29); + this.labelTitle.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelTitle.Name = "labelTitle"; + this.labelTitle.Size = new System.Drawing.Size(258, 38); + this.labelTitle.TabIndex = 14; + this.labelTitle.Text = "Просмотр заказов"; + // + // dataGridView1 + // + this.dataGridView1.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridView1.BackgroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView1.Font = new System.Drawing.Font("Comic Sans MS", 9F); + this.dataGridView1.Location = new System.Drawing.Point(11, 81); + this.dataGridView1.Margin = new System.Windows.Forms.Padding(2); + this.dataGridView1.Name = "dataGridView1"; + this.dataGridView1.RowHeadersWidth = 51; + this.dataGridView1.Size = new System.Drawing.Size(788, 284); + this.dataGridView1.TabIndex = 13; + // + // OrdersManager + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(237)))), ((int)(((byte)(215))))); + this.ClientSize = new System.Drawing.Size(815, 450); + this.Controls.Add(this.buttonBack); + this.Controls.Add(this.labelTitle); + this.Controls.Add(this.dataGridView1); + this.Name = "OrdersManager"; + this.Text = "OrdersManager"; + ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button buttonBack; + private System.Windows.Forms.Label labelTitle; + private System.Windows.Forms.DataGridView dataGridView1; + } +} \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/OrdersManager.cs b/SkryabinaModul/SkryabinaModul/OrdersManager.cs new file mode 100644 index 0000000..d4c800c --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/OrdersManager.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using MySql.Data.MySqlClient; + +namespace SkryabinaModul +{ + public partial class OrdersManager : Form + { + string connectionString = "Server=85.239.57.125; Database=Scriabin_Sophia_ProbModul; Uid=Scriabin_Sophia; Pwd=TempPass123!; SslMode=none;"; + public OrdersManager() + { + InitializeComponent(); + LoadOrders(); + } + + void LoadOrders() + { + using (var conn = new MySqlConnection(connectionString)) + { + conn.Open(); + var adapter = new MySqlDataAdapter(@"SELECT o.idOrders, o.Article, k.FIO, s.Status, o.PickUpPoint, + o.DateOrders, o.DateDelivery, p.Article + FROM Orders o + LEFT JOIN Klients k ON o.FIOID = k.idKlient + LEFT JOIN Status s ON o.StatusID = s.idStatus + LEFT JOIN Product p ON o.SostavID = p.idProduct", conn); + + var dt = new DataTable(); + adapter.Fill(dt); + dataGridView1.DataSource = dt; + if (dataGridView1.Columns["idOrders"] != null) + dataGridView1.Columns["idOrders"].Visible = false; + } + } + + private void buttonBack_Click(object sender, EventArgs e) + { + Close(); + } + } +} diff --git a/SkryabinaModul/SkryabinaModul/OrdersManager.resx b/SkryabinaModul/SkryabinaModul/OrdersManager.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/OrdersManager.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/ProductEditForm.Designer.cs b/SkryabinaModul/SkryabinaModul/ProductEditForm.Designer.cs new file mode 100644 index 0000000..038f777 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/ProductEditForm.Designer.cs @@ -0,0 +1,376 @@ +namespace SkryabinaModul +{ + partial class ProductEditForm + { + private System.ComponentModel.IContainer components = null; + + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) { components.Dispose(); } + base.Dispose(disposing); + } + + private void InitializeComponent() + { + this.labelTitle = new System.Windows.Forms.Label(); + this.labelArticle = new System.Windows.Forms.Label(); + this.textBoxArticle = new System.Windows.Forms.TextBox(); + this.labelName = new System.Windows.Forms.Label(); + this.textBoxName = new System.Windows.Forms.TextBox(); + this.labelCategory = new System.Windows.Forms.Label(); + this.comboBoxCategory = new System.Windows.Forms.ComboBox(); + this.labelDescription = new System.Windows.Forms.Label(); + this.textBoxDescription = new System.Windows.Forms.TextBox(); + this.labelManufacturer = new System.Windows.Forms.Label(); + this.comboBoxManufacturer = new System.Windows.Forms.ComboBox(); + this.labelSupplier = new System.Windows.Forms.Label(); + this.comboBoxSupplier = new System.Windows.Forms.ComboBox(); + this.labelPrice = new System.Windows.Forms.Label(); + this.numericUpDownPrice = new System.Windows.Forms.NumericUpDown(); + this.labelDiscount = new System.Windows.Forms.Label(); + this.textBoxDiscount = new System.Windows.Forms.TextBox(); + this.labelQuantity = new System.Windows.Forms.Label(); + this.numericUpDownQuantity = new System.Windows.Forms.NumericUpDown(); + this.labelUnit = new System.Windows.Forms.Label(); + this.comboBoxUnit = new System.Windows.Forms.ComboBox(); + this.labelPhoto = new System.Windows.Forms.Label(); + this.textBoxPhoto = new System.Windows.Forms.TextBox(); + this.buttonSave = new System.Windows.Forms.Button(); + this.buttonCancel = new System.Windows.Forms.Button(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownPrice)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownQuantity)).BeginInit(); + this.SuspendLayout(); + // + // labelTitle + // + this.labelTitle.AutoSize = true; + this.labelTitle.Font = new System.Drawing.Font("Comic Sans MS", 18F, System.Drawing.FontStyle.Bold); + this.labelTitle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); + this.labelTitle.Location = new System.Drawing.Point(12, 9); + this.labelTitle.Name = "labelTitle"; + this.labelTitle.Size = new System.Drawing.Size(285, 35); + this.labelTitle.TabIndex = 0; + this.labelTitle.Text = "Редактирование товара"; + // + // labelArticle + // + this.labelArticle.AutoSize = true; + this.labelArticle.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelArticle.Location = new System.Drawing.Point(12, 60); + this.labelArticle.Name = "labelArticle"; + this.labelArticle.Size = new System.Drawing.Size(68, 19); + this.labelArticle.TabIndex = 1; + this.labelArticle.Text = "Артикул:"; + // + // textBoxArticle + // + this.textBoxArticle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.textBoxArticle.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.textBoxArticle.Location = new System.Drawing.Point(16, 82); + this.textBoxArticle.Name = "textBoxArticle"; + this.textBoxArticle.Size = new System.Drawing.Size(150, 26); + this.textBoxArticle.TabIndex = 2; + // + // labelName + // + this.labelName.AutoSize = true; + this.labelName.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelName.Location = new System.Drawing.Point(180, 60); + this.labelName.Name = "labelName"; + this.labelName.Size = new System.Drawing.Size(76, 19); + this.labelName.TabIndex = 3; + this.labelName.Text = "Название:"; + // + // textBoxName + // + this.textBoxName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.textBoxName.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.textBoxName.Location = new System.Drawing.Point(184, 82); + this.textBoxName.Name = "textBoxName"; + this.textBoxName.Size = new System.Drawing.Size(250, 26); + this.textBoxName.TabIndex = 4; + // + // labelCategory + // + this.labelCategory.AutoSize = true; + this.labelCategory.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelCategory.Location = new System.Drawing.Point(12, 120); + this.labelCategory.Name = "labelCategory"; + this.labelCategory.Size = new System.Drawing.Size(82, 19); + this.labelCategory.TabIndex = 5; + this.labelCategory.Text = "Категория:"; + // + // comboBoxCategory + // + this.comboBoxCategory.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.comboBoxCategory.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxCategory.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.comboBoxCategory.FormattingEnabled = true; + this.comboBoxCategory.Location = new System.Drawing.Point(16, 142); + this.comboBoxCategory.Name = "comboBoxCategory"; + this.comboBoxCategory.Size = new System.Drawing.Size(200, 26); + this.comboBoxCategory.TabIndex = 6; + // + // labelDescription + // + this.labelDescription.AutoSize = true; + this.labelDescription.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelDescription.Location = new System.Drawing.Point(230, 120); + this.labelDescription.Name = "labelDescription"; + this.labelDescription.Size = new System.Drawing.Size(81, 19); + this.labelDescription.TabIndex = 7; + this.labelDescription.Text = "Описание:"; + // + // textBoxDescription + // + this.textBoxDescription.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.textBoxDescription.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.textBoxDescription.Location = new System.Drawing.Point(234, 142); + this.textBoxDescription.Name = "textBoxDescription"; + this.textBoxDescription.Size = new System.Drawing.Size(300, 26); + this.textBoxDescription.TabIndex = 8; + // + // labelManufacturer + // + this.labelManufacturer.AutoSize = true; + this.labelManufacturer.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelManufacturer.Location = new System.Drawing.Point(12, 180); + this.labelManufacturer.Name = "labelManufacturer"; + this.labelManufacturer.Size = new System.Drawing.Size(119, 19); + this.labelManufacturer.TabIndex = 9; + this.labelManufacturer.Text = "Производитель:"; + // + // comboBoxManufacturer + // + this.comboBoxManufacturer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.comboBoxManufacturer.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxManufacturer.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.comboBoxManufacturer.FormattingEnabled = true; + this.comboBoxManufacturer.Location = new System.Drawing.Point(16, 202); + this.comboBoxManufacturer.Name = "comboBoxManufacturer"; + this.comboBoxManufacturer.Size = new System.Drawing.Size(200, 26); + this.comboBoxManufacturer.TabIndex = 10; + // + // labelSupplier + // + this.labelSupplier.AutoSize = true; + this.labelSupplier.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelSupplier.Location = new System.Drawing.Point(230, 180); + this.labelSupplier.Name = "labelSupplier"; + this.labelSupplier.Size = new System.Drawing.Size(89, 19); + this.labelSupplier.TabIndex = 11; + this.labelSupplier.Text = "Поставщик:"; + // + // comboBoxSupplier + // + this.comboBoxSupplier.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.comboBoxSupplier.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxSupplier.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.comboBoxSupplier.FormattingEnabled = true; + this.comboBoxSupplier.Location = new System.Drawing.Point(234, 202); + this.comboBoxSupplier.Name = "comboBoxSupplier"; + this.comboBoxSupplier.Size = new System.Drawing.Size(200, 26); + this.comboBoxSupplier.TabIndex = 12; + // + // labelPrice + // + this.labelPrice.AutoSize = true; + this.labelPrice.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelPrice.Location = new System.Drawing.Point(12, 245); + this.labelPrice.Name = "labelPrice"; + this.labelPrice.Size = new System.Drawing.Size(47, 19); + this.labelPrice.TabIndex = 13; + this.labelPrice.Text = "Цена:"; + // + // numericUpDownPrice + // + this.numericUpDownPrice.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.numericUpDownPrice.DecimalPlaces = 2; + this.numericUpDownPrice.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.numericUpDownPrice.Location = new System.Drawing.Point(16, 267); + this.numericUpDownPrice.Maximum = new decimal(new int[] { + 999999, + 0, + 0, + 0}); + this.numericUpDownPrice.Name = "numericUpDownPrice"; + this.numericUpDownPrice.Size = new System.Drawing.Size(120, 26); + this.numericUpDownPrice.TabIndex = 14; + this.numericUpDownPrice.ThousandsSeparator = true; + // + // labelDiscount + // + this.labelDiscount.AutoSize = true; + this.labelDiscount.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelDiscount.Location = new System.Drawing.Point(150, 245); + this.labelDiscount.Name = "labelDiscount"; + this.labelDiscount.Size = new System.Drawing.Size(84, 19); + this.labelDiscount.TabIndex = 15; + this.labelDiscount.Text = "Скидка (%):"; + // + // textBoxDiscount + // + this.textBoxDiscount.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.textBoxDiscount.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.textBoxDiscount.Location = new System.Drawing.Point(154, 267); + this.textBoxDiscount.Name = "textBoxDiscount"; + this.textBoxDiscount.Size = new System.Drawing.Size(100, 26); + this.textBoxDiscount.TabIndex = 16; + this.textBoxDiscount.Text = "0"; + // + // labelQuantity + // + this.labelQuantity.AutoSize = true; + this.labelQuantity.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelQuantity.Location = new System.Drawing.Point(270, 245); + this.labelQuantity.Name = "labelQuantity"; + this.labelQuantity.Size = new System.Drawing.Size(92, 19); + this.labelQuantity.TabIndex = 17; + this.labelQuantity.Text = "Количество:"; + // + // numericUpDownQuantity + // + this.numericUpDownQuantity.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.numericUpDownQuantity.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.numericUpDownQuantity.Location = new System.Drawing.Point(274, 267); + this.numericUpDownQuantity.Maximum = new decimal(new int[] { + 99999, + 0, + 0, + 0}); + this.numericUpDownQuantity.Name = "numericUpDownQuantity"; + this.numericUpDownQuantity.Size = new System.Drawing.Size(120, 26); + this.numericUpDownQuantity.TabIndex = 18; + // + // labelUnit + // + this.labelUnit.AutoSize = true; + this.labelUnit.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelUnit.Location = new System.Drawing.Point(410, 245); + this.labelUnit.Name = "labelUnit"; + this.labelUnit.Size = new System.Drawing.Size(109, 19); + this.labelUnit.TabIndex = 19; + this.labelUnit.Text = "Ед. измерения:"; + // + // comboBoxUnit + // + this.comboBoxUnit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.comboBoxUnit.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.comboBoxUnit.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.comboBoxUnit.FormattingEnabled = true; + this.comboBoxUnit.Location = new System.Drawing.Point(414, 267); + this.comboBoxUnit.Name = "comboBoxUnit"; + this.comboBoxUnit.Size = new System.Drawing.Size(150, 26); + this.comboBoxUnit.TabIndex = 20; + // + // labelPhoto + // + this.labelPhoto.AutoSize = true; + this.labelPhoto.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.labelPhoto.Location = new System.Drawing.Point(12, 310); + this.labelPhoto.Name = "labelPhoto"; + this.labelPhoto.Size = new System.Drawing.Size(96, 19); + this.labelPhoto.TabIndex = 21; + this.labelPhoto.Text = "Путь к фото:"; + // + // textBoxPhoto + // + this.textBoxPhoto.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(133)))), ((int)(((byte)(242)))), ((int)(((byte)(189))))); + this.textBoxPhoto.Font = new System.Drawing.Font("Comic Sans MS", 10F); + this.textBoxPhoto.Location = new System.Drawing.Point(16, 332); + this.textBoxPhoto.Name = "textBoxPhoto"; + this.textBoxPhoto.Size = new System.Drawing.Size(400, 26); + this.textBoxPhoto.TabIndex = 22; + // + // buttonSave + // + this.buttonSave.BackColor = System.Drawing.Color.Red; + this.buttonSave.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Bold); + this.buttonSave.Location = new System.Drawing.Point(324, 380); + this.buttonSave.Name = "buttonSave"; + this.buttonSave.Size = new System.Drawing.Size(140, 45); + this.buttonSave.TabIndex = 23; + this.buttonSave.Text = "Сохранить"; + this.buttonSave.UseVisualStyleBackColor = false; + this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click); + // + // buttonCancel + // + this.buttonCancel.BackColor = System.Drawing.Color.Red; + this.buttonCancel.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Bold); + this.buttonCancel.ForeColor = System.Drawing.Color.Black; + this.buttonCancel.Location = new System.Drawing.Point(480, 380); + this.buttonCancel.Name = "buttonCancel"; + this.buttonCancel.Size = new System.Drawing.Size(140, 45); + this.buttonCancel.TabIndex = 24; + this.buttonCancel.Text = "Отмена"; + this.buttonCancel.UseVisualStyleBackColor = false; + // + // ProductEditForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(237)))), ((int)(((byte)(215))))); + this.ClientSize = new System.Drawing.Size(644, 450); + this.Controls.Add(this.buttonCancel); + this.Controls.Add(this.buttonSave); + this.Controls.Add(this.textBoxPhoto); + this.Controls.Add(this.labelPhoto); + this.Controls.Add(this.comboBoxUnit); + this.Controls.Add(this.labelUnit); + this.Controls.Add(this.numericUpDownQuantity); + this.Controls.Add(this.labelQuantity); + this.Controls.Add(this.textBoxDiscount); + this.Controls.Add(this.labelDiscount); + this.Controls.Add(this.numericUpDownPrice); + this.Controls.Add(this.labelPrice); + this.Controls.Add(this.comboBoxSupplier); + this.Controls.Add(this.labelSupplier); + this.Controls.Add(this.comboBoxManufacturer); + this.Controls.Add(this.labelManufacturer); + this.Controls.Add(this.textBoxDescription); + this.Controls.Add(this.labelDescription); + this.Controls.Add(this.comboBoxCategory); + this.Controls.Add(this.labelCategory); + this.Controls.Add(this.textBoxName); + this.Controls.Add(this.labelName); + this.Controls.Add(this.textBoxArticle); + this.Controls.Add(this.labelArticle); + this.Controls.Add(this.labelTitle); + this.Font = new System.Drawing.Font("Comic Sans MS", 8.25F); + this.Name = "ProductEditForm"; + this.Text = "Товар"; + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownPrice)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownQuantity)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + private System.Windows.Forms.Label labelTitle; + private System.Windows.Forms.Label labelArticle; + private System.Windows.Forms.TextBox textBoxArticle; + private System.Windows.Forms.Label labelName; + private System.Windows.Forms.TextBox textBoxName; + private System.Windows.Forms.Label labelCategory; + private System.Windows.Forms.ComboBox comboBoxCategory; + private System.Windows.Forms.Label labelDescription; + private System.Windows.Forms.TextBox textBoxDescription; + private System.Windows.Forms.Label labelManufacturer; + private System.Windows.Forms.ComboBox comboBoxManufacturer; + private System.Windows.Forms.Label labelSupplier; + private System.Windows.Forms.ComboBox comboBoxSupplier; + private System.Windows.Forms.Label labelPrice; + private System.Windows.Forms.NumericUpDown numericUpDownPrice; + private System.Windows.Forms.Label labelDiscount; + private System.Windows.Forms.TextBox textBoxDiscount; + private System.Windows.Forms.Label labelQuantity; + private System.Windows.Forms.NumericUpDown numericUpDownQuantity; + private System.Windows.Forms.Label labelUnit; + private System.Windows.Forms.ComboBox comboBoxUnit; + private System.Windows.Forms.Label labelPhoto; + private System.Windows.Forms.TextBox textBoxPhoto; + private System.Windows.Forms.Button buttonSave; + private System.Windows.Forms.Button buttonCancel; + } +} \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/ProductEditForm.cs b/SkryabinaModul/SkryabinaModul/ProductEditForm.cs new file mode 100644 index 0000000..d36c281 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/ProductEditForm.cs @@ -0,0 +1,114 @@ +using MySql.Data.MySqlClient; +using System; +using System.Data; +using System.Windows.Forms; + +namespace SkryabinaModul +{ + public partial class ProductEditForm : Form + { + string connStr; + int? id; + + public ProductEditForm(string connectionString, int? productId) + { + InitializeComponent(); + connStr = connectionString; + id = productId; + LoadComboBoxes(); + if (id.HasValue) LoadProduct(); + Text = id.HasValue ? "Редактирование" : "Новый товар"; + buttonSave.Click += (s, e) => Save(); + buttonCancel.Click += (s, e) => Close(); + } + + void LoadComboBoxes() + { + using (var conn = new MySqlConnection(connStr)) + { + conn.Open(); + LoadCombo(conn, "SELECT idCategory, Category FROM Category", comboBoxCategory); + LoadCombo(conn, "SELECT idManufacturer, Manufacturer FROM Manufacturer", comboBoxManufacturer); + LoadCombo(conn, "SELECT idSupplier, Supplier FROM Supplier", comboBoxSupplier); + LoadCombo(conn, "SELECT idUnit, Unit FROM Unit", comboBoxUnit); + } + } + + void LoadCombo(MySqlConnection conn, string query, ComboBox combo) + { + var dt = new DataTable(); + new MySqlDataAdapter(query, conn).Fill(dt); + combo.DisplayMember = dt.Columns[1].ColumnName; + combo.ValueMember = dt.Columns[0].ColumnName; + combo.DataSource = dt; + } + + void LoadProduct() + { + using (var conn = new MySqlConnection(connStr)) + { + conn.Open(); + var cmd = new MySqlCommand("SELECT * FROM Product WHERE idProduct = @id", conn); + cmd.Parameters.AddWithValue("@id", id); + var reader = cmd.ExecuteReader(); + if (reader.Read()) + { + textBoxArticle.Text = reader["Article"].ToString(); + textBoxName.Text = reader["Name"].ToString(); + comboBoxCategory.SelectedValue = reader["CategoryID"]; + textBoxDescription.Text = reader["Description"].ToString(); + comboBoxManufacturer.SelectedValue = reader["ManufacturerID"]; + comboBoxSupplier.SelectedValue = reader["SupplierID"]; + numericUpDownPrice.Value = Convert.ToDecimal(reader["Price"]); + textBoxDiscount.Text = reader["Discount"].ToString(); + numericUpDownQuantity.Value = Convert.ToInt32(reader["Quantity"]); + comboBoxUnit.SelectedValue = reader["EdinicaID"]; + textBoxPhoto.Text = reader["Photo"].ToString(); + } + } + } + + void Save() + { + if (string.IsNullOrWhiteSpace(textBoxName.Text)) + { + MessageBox.Show("Введите название!"); + return; + } + + using (var conn = new MySqlConnection(connStr)) + { + conn.Open(); + string query = id.HasValue ? + @"UPDATE Product SET Article=@a, Name=@n, CategoryID=@c, Description=@d, + ManufacturerID=@m, SupplierID=@s, Price=@p, Discount=@dc, Quantity=@q, EdinicaID=@e, Photo=@ph + WHERE idProduct=@id" : + @"INSERT INTO Product (Article, Name, CategoryID, Description, ManufacturerID, SupplierID, + Price, Discount, Quantity, EdinicaID, Photo) + VALUES (@a, @n, @c, @d, @m, @s, @p, @dc, @q, @e, @ph)"; + + var cmd = new MySqlCommand(query, conn); + cmd.Parameters.AddWithValue("@a", textBoxArticle.Text); + cmd.Parameters.AddWithValue("@n", textBoxName.Text); + cmd.Parameters.AddWithValue("@c", comboBoxCategory.SelectedValue); + cmd.Parameters.AddWithValue("@d", textBoxDescription.Text); + cmd.Parameters.AddWithValue("@m", comboBoxManufacturer.SelectedValue); + cmd.Parameters.AddWithValue("@s", comboBoxSupplier.SelectedValue); + cmd.Parameters.AddWithValue("@p", numericUpDownPrice.Value); + cmd.Parameters.AddWithValue("@dc", textBoxDiscount.Text); + cmd.Parameters.AddWithValue("@q", numericUpDownQuantity.Value); + cmd.Parameters.AddWithValue("@e", comboBoxUnit.SelectedValue); + cmd.Parameters.AddWithValue("@ph", textBoxPhoto.Text); + if (id.HasValue) cmd.Parameters.AddWithValue("@id", id); + cmd.ExecuteNonQuery(); + } + DialogResult = DialogResult.OK; + Close(); + } + + private void buttonSave_Click(object sender, EventArgs e) + { + + } + } +} \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/ProductEditForm.resx b/SkryabinaModul/SkryabinaModul/ProductEditForm.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/ProductEditForm.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/Program.cs b/SkryabinaModul/SkryabinaModul/Program.cs new file mode 100644 index 0000000..50b0a97 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace SkryabinaModul +{ + internal static class Program + { + /// + /// Главная точка входа для приложения. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/SkryabinaModul/SkryabinaModul/Properties/AssemblyInfo.cs b/SkryabinaModul/SkryabinaModul/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0e4e9df --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Общие сведения об этой сборке предоставляются следующим набором +// набора атрибутов. Измените значения этих атрибутов для изменения сведений, +// связанных со сборкой. +[assembly: AssemblyTitle("SkryabinaModul")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("SkryabinaModul")] +[assembly: AssemblyCopyright("Copyright © 2026")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Установка значения False для параметра ComVisible делает типы в этой сборке невидимыми +// для компонентов COM. Если необходимо обратиться к типу в этой сборке через +// COM, следует установить атрибут ComVisible в TRUE для этого типа. +[assembly: ComVisible(false)] + +// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM +[assembly: Guid("9be5a1f3-d5da-4431-9a90-979504879292")] + +// Сведения о версии сборки состоят из указанных ниже четырех значений: +// +// Основной номер версии +// Дополнительный номер версии +// Номер сборки +// Редакция +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/SkryabinaModul/SkryabinaModul/Properties/Resources.Designer.cs b/SkryabinaModul/SkryabinaModul/Properties/Resources.Designer.cs new file mode 100644 index 0000000..2ad1655 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Этот код создан программным средством. +// Версия среды выполнения: 4.0.30319.42000 +// +// Изменения в этом файле могут привести к неправильному поведению и будут утрачены, если +// код создан повторно. +// +//------------------------------------------------------------------------------ + +namespace SkryabinaModul.Properties +{ + + + /// + /// Класс ресурсов со строгим типом для поиска локализованных строк и пр. + /// + // Этот класс был автоматически создан при помощи StronglyTypedResourceBuilder + // класс с помощью таких средств, как ResGen или Visual Studio. + // Для добавления или удаления члена измените файл .ResX, а затем перезапустите ResGen + // с параметром /str или заново постройте свой VS-проект. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Возврат кэшированного экземпляра ResourceManager, используемого этим классом. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SkryabinaModul.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Переопределяет свойство CurrentUICulture текущего потока для всех + /// подстановки ресурсов с помощью этого класса ресурсов со строгим типом. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/SkryabinaModul/SkryabinaModul/Properties/Resources.resx b/SkryabinaModul/SkryabinaModul/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/Properties/Settings.Designer.cs b/SkryabinaModul/SkryabinaModul/Properties/Settings.Designer.cs new file mode 100644 index 0000000..839e760 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace SkryabinaModul.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/SkryabinaModul/SkryabinaModul/Properties/Settings.settings b/SkryabinaModul/SkryabinaModul/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/SkryabinaModul/SkryabinaModul/SkryabinaModul.csproj b/SkryabinaModul/SkryabinaModul/SkryabinaModul.csproj new file mode 100644 index 0000000..0fd93f6 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/SkryabinaModul.csproj @@ -0,0 +1,159 @@ + + + + + Debug + AnyCPU + {9BE5A1F3-D5DA-4431-9A90-979504879292} + WinExe + SkryabinaModul + SkryabinaModul + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\..\..\Downloads\mysql.data\MySql.Data.dll + + + + + + + + + + + + + + + + Form + + + Admin.cs + + + + Form + + + Client.cs + + + Form + + + Form1.cs + + + Form + + + Guest.cs + + + Form + + + Manager.cs + + + Form + + + OrdersAdmin.cs + + + Form + + + OrdersEditForm.cs + + + Form + + + OrdersManager.cs + + + Form + + + ProductEditForm.cs + + + + + Admin.cs + + + Client.cs + + + Form1.cs + + + Guest.cs + + + Manager.cs + + + OrdersAdmin.cs + + + OrdersEditForm.cs + + + OrdersManager.cs + + + ProductEditForm.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/bin/Debug/MySql.Data.dll b/SkryabinaModul/SkryabinaModul/bin/Debug/MySql.Data.dll new file mode 100644 index 0000000..a851892 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/bin/Debug/MySql.Data.dll differ diff --git a/SkryabinaModul/SkryabinaModul/bin/Debug/SkryabinaModul.exe b/SkryabinaModul/SkryabinaModul/bin/Debug/SkryabinaModul.exe new file mode 100644 index 0000000..17759a0 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/bin/Debug/SkryabinaModul.exe differ diff --git a/SkryabinaModul/SkryabinaModul/bin/Debug/SkryabinaModul.exe.config b/SkryabinaModul/SkryabinaModul/bin/Debug/SkryabinaModul.exe.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/bin/Debug/SkryabinaModul.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/SkryabinaModul/SkryabinaModul/bin/Debug/SkryabinaModul.pdb b/SkryabinaModul/SkryabinaModul/bin/Debug/SkryabinaModul.pdb new file mode 100644 index 0000000..2a97aa7 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/bin/Debug/SkryabinaModul.pdb differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/SkryabinaModul/SkryabinaModul/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/SkryabinaModul/SkryabinaModul/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..d5da7b9 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/SkryabinaModul/SkryabinaModul/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..d2fef9e Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/Skryabin.9AA99B77.Up2Date b/SkryabinaModul/SkryabinaModul/obj/Debug/Skryabin.9AA99B77.Up2Date new file mode 100644 index 0000000..e69de29 diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Admin.resources b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Admin.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Admin.resources differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Client.resources b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Client.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Client.resources differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Form1.resources b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Form1.resources differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Guest.resources b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Guest.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Guest.resources differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Manager.resources b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Manager.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Manager.resources differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.OrdersAdmin.resources b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.OrdersAdmin.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.OrdersAdmin.resources differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.OrdersEditForm.resources b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.OrdersEditForm.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.OrdersEditForm.resources differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.OrdersManager.resources b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.OrdersManager.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.OrdersManager.resources differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.ProductEditForm.resources b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.ProductEditForm.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.ProductEditForm.resources differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Properties.Resources.resources b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.Properties.Resources.resources differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.csproj.AssemblyReference.cache b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.csproj.AssemblyReference.cache new file mode 100644 index 0000000..8e5afa3 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.csproj.AssemblyReference.cache differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.csproj.CoreCompileInputs.cache b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..65dba98 --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +822113872b348cf01536a798fe1f1e01b502f52261999af2a16050f85b357d36 diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.csproj.FileListAbsolute.txt b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..95f760f --- /dev/null +++ b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.csproj.FileListAbsolute.txt @@ -0,0 +1,20 @@ +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\bin\Debug\SkryabinaModul.exe.config +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\bin\Debug\SkryabinaModul.exe +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\bin\Debug\SkryabinaModul.pdb +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\bin\Debug\MySql.Data.dll +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.csproj.AssemblyReference.cache +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.Form1.resources +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.Properties.Resources.resources +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.csproj.GenerateResource.cache +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.csproj.CoreCompileInputs.cache +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\Skryabin.9AA99B77.Up2Date +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.exe +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.pdb +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.Admin.resources +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.ProductEditForm.resources +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.Manager.resources +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.Client.resources +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.Guest.resources +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.OrdersManager.resources +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.OrdersAdmin.resources +C:\Users\student\Desktop\Modul_Skryabina\SkryabinaModul\SkryabinaModul\obj\Debug\SkryabinaModul.OrdersEditForm.resources diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.csproj.GenerateResource.cache b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.csproj.GenerateResource.cache new file mode 100644 index 0000000..9f22e77 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.csproj.GenerateResource.cache differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.exe b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.exe new file mode 100644 index 0000000..17759a0 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.exe differ diff --git a/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.pdb b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.pdb new file mode 100644 index 0000000..2a97aa7 Binary files /dev/null and b/SkryabinaModul/SkryabinaModul/obj/Debug/SkryabinaModul.pdb differ