Zbiór zmian 91 dla Baza Reklam 2 - Faktury/FactureViewer.cs
- Data:
- 2008-12-29 12:04:44 (17 years ago)
- Pliki:
-
- 1 zmodyfikowane
-
Baza Reklam 2 - Faktury/FactureViewer.cs (zmodyfikowane) (4 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
Baza Reklam 2 - Faktury/FactureViewer.cs
r88 r91 27 27 DataSet ds; 28 28 29 public FactureViewer(int idFakt,bool rodzaj )29 public FactureViewer(int idFakt,bool rodzaj, int old) 30 30 { 31 31 InitializeComponent(); … … 93 93 } 94 94 95 public FactureViewer(int idFakt) 95 /// <param name="rodzaj">true = proforma</param> 96 public FactureViewer(int idFakt, bool r) 96 97 { 97 98 InitializeComponent(); 98 99 99 100 reportViewer1.LocalReport.ReportEmbeddedResource = "Baza_Reklam.Raporty.fakturaReversed2.rdlc"; 100 101 idFaktury = idFakt; 102 this.rodzaj = r; 101 103 102 104 this.zapiszButton.Click += zapiszButton2_Click; … … 130 132 { 131 133 podpisCheckBox.CheckState = CheckState.Unchecked; 132 paramList.Add(new ReportParameter("podpis", podpisCheckBox.Checked.ToString(), true)); 133 this.reportViewer1.LocalReport.SetParameters(paramList); 134 } 135 134 } 135 136 paramList.Add(new ReportParameter("podpis", podpisCheckBox.Checked.ToString(), true)); 137 138 if (this.rodzaj) 139 { 140 paramList.Add(new ReportParameter("proforma", "True", true)); 141 } 142 else 143 { 144 paramList.Add(new ReportParameter("proforma", "False", true)); 145 } 146 147 paramList.Add(new ReportParameter("zaplacono", zaplaconoCheckBox.Checked.ToString(), true)); 148 149 this.reportViewer1.LocalReport.SetParameters(paramList); 150 136 151 jezykComboBox.SelectedIndex = 0; 137 152 typComboBox.SelectedIndex = 1; … … 372 387 paramList.Add(new ReportParameter("jezyk", jezykComboBox.SelectedItem.ToString(), true)); 373 388 paramList.Add(new ReportParameter("podpis", podpisCheckBox.Checked.ToString(), true)); 374 paramList.Add(new ReportParameter("proforma", proformaCheckBox.Checked.ToString(), true)); 375 389 390 if (this.rodzaj) 391 { 392 paramList.Add(new ReportParameter("proforma", "True", true)); 393 } 394 else 395 { 396 paramList.Add(new ReportParameter("proforma", "False", true)); 397 } 398 paramList.Add(new ReportParameter("zaplacono", zaplaconoCheckBox.Checked.ToString(), true)); 399 376 400 this.reportViewer1.LocalReport.SetParameters(paramList); 377 401 reportViewer1.LocalReport.DataSources.Clear();
