Пример #1
0
        private void btOpen_Click(object sender, EventArgs e)
        {
            EnumerableRowCollection <DataRow> rowCollect = dtData.AsEnumerable()
                                                           .Where(r => r.Field <object>("DateOpen") == null);

            frmSelectDate frmSelectDate = new frmSelectDate()
            {
                Text = "Открыть секцию", dateMin = (DateTime)rowCollect.First()["DateSeal"]
            };

            if (DialogResult.OK == frmSelectDate.ShowDialog())
            {
                _proc.setSealSections(id_agreements, frmSelectDate.date, 2);

                Logging.StartFirstLevel(765);

                Logging.Comment("Смена статуса секции на «Открыта»");
                Logging.Comment($"ID договора:{id_agreements}");
                Logging.Comment($"Место:{placeName}");
                Logging.Comment($"Дата открытия:{frmSelectDate.date.ToShortDateString()}");
                Logging.StopFirstLevel();

                getData();
            }
        }
Пример #2
0
        private void btSeal_Click(object sender, EventArgs e)
        {
            frmSelectDate frmSelectDate = new frmSelectDate()
            {
                Text = "Опечатать секцию"
            };

            if (DialogResult.OK == frmSelectDate.ShowDialog())
            {
                _proc.setSealSections(id_agreements, frmSelectDate.date, 1);

                Logging.StartFirstLevel(765);

                Logging.Comment("Смена статуса секции на «Опечатана»");
                Logging.Comment($"ID договора:{id_agreements}");
                Logging.Comment($"Место:{placeName}");
                Logging.Comment($"Дата опечатывания:{frmSelectDate.date.ToShortDateString()}");
                Logging.StopFirstLevel();

                getData();
            }
        }