private void btPeriodReportByNum_Click(object sender, EventArgs e) { Datecs _printer = new Datecs(); if (_printer.HasError) { MessageBox.Show("Ошибка принтера :" + _printer.ErrorText); _printer.Close(); return; } DialogPeriodNum dialogPeriodNum = new DialogPeriodNum(); if (dialogPeriodNum.ShowDialog(this.ParentForm) == DialogResult.OK) { _printer.ZPeriodReport((int)dialogPeriodNum.startEdit.Value, (int)dialogPeriodNum.endEdit.Value); } _printer.Close(); }
private void btDatecsPeriodReport_Click(object sender, EventArgs e) { Datecs _printer = new Datecs(); if (_printer.HasError) { MessageBox.Show("Ошибка принтера :" + _printer.ErrorText); _printer.Close(); return; } DialogPeriod _DialogPeriod = new DialogPeriod(); if (_DialogPeriod.ShowDialog(this) == DialogResult.OK) { if (!_printer.ZPeriodReport(_DialogPeriod.StartDate, _DialogPeriod.EndDate)) { MessageBox.Show("Печать отчета не выполнена"); } } _printer.Close(); }
private void btPeriodReportByNum_Click(object sender, EventArgs e) { Datecs _printer = new Datecs(); if (_printer.HasError) { MessageBox.Show("Ошибка принтера :" + _printer.ErrorText); _printer.Close(); return; } DialogPeriodNum dialogPeriodNum = new DialogPeriodNum(); if (dialogPeriodNum.ShowDialog(this.ParentForm) == DialogResult.OK) { _printer.ZPeriodReport((int)dialogPeriodNum.startEdit.Value, (int)dialogPeriodNum.endEdit.Value); } _printer.Close(); }
private void btDatecsPeriodReport_Click(object sender, EventArgs e) { Datecs _printer = new Datecs(); if (_printer.HasError) { MessageBox.Show("Ошибка принтера :" + _printer.ErrorText); _printer.Close(); return; } DialogPeriod _DialogPeriod = new DialogPeriod(); if (_DialogPeriod.ShowDialog(this) == DialogResult.OK) { if (!_printer.ZPeriodReport(_DialogPeriod.StartDate, _DialogPeriod.EndDate)) { MessageBox.Show("Печать отчета не выполнена"); } } _printer.Close(); }