private STParamReportReferee read_param() { STParamReportReferee ret = new STParamReportReferee(); int?i = null; try { if (radioButtonAllSeason.Checked == true) { ret.idseason = 0; } if (radioButtonOneSeason.Checked == true) { i = clIS.GetId(comboBoxNameSeason.Text.Trim()); if (i != null) { ret.idseason = (int)i; } else { ret.idseason = -1; } } ret.filename = "Статистика судей.xls"; } catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); } return(ret); }
private STParamReportReferee read_param() { STParamReportReferee ret = new STParamReportReferee(); int?i = null; try { if (radioButtonAllSeason.Checked == true) { ret.idseason = 0; } if (radioButtonOneSeason.Checked == true) { i = clIS.GetId(comboBoxNameSeason.Text.Trim()); if (i != null) { ret.idseason = (int)i; } else { ret.idseason = -1; } } if (checkBoxDate.Checked == true) { ret.dtbegin = new DateTime(dateTimePickerDateBigin.Value.Year, dateTimePickerDateBigin.Value.Month, dateTimePickerDateBigin.Value.Day, 0, 0, 0, 0); ret.dtend = new DateTime(dateTimePickerDateEnd.Value.Year, dateTimePickerDateEnd.Value.Month, dateTimePickerDateEnd.Value.Day, 23, 59, 59, 0); } else { ret.dtbegin = null; ret.dtend = null; } ret.filename = string.Format("Статистика_судей_{0}_{1}_{2}_{3}_{4}", DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, DateTime.Now.Hour, DateTime.Now.Minute); } catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); } return(ret); }
private void comboBoxSeason_SelectedIndexChanged(object sender, EventArgs e) { try { if (comboBoxSeason.Text.Length > 0) { idseason = (int)clIS.GetId(comboBoxSeason.Text.Trim()); } else { idseason = 0; } init_combo_division(); } catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); } }