public virtual int Fill(S_OS_BILANCA_STANJA_NA_DANDataSet dataSet) { if (this.fillDataParameters == null) { throw new ArgumentException(); } this.Fill(dataSet, DateTime.Parse(this.fillDataParameters[0].Value.ToString()), this.fillDataParameters[1].Value.ToString(), short.Parse(this.fillDataParameters[2].Value.ToString())); return(0); }
public virtual int Fill(DataSet dataSet) { this.S_OS_BILANCA_STANJA_NA_DANSet = (S_OS_BILANCA_STANJA_NA_DANDataSet)dataSet; if (this.S_OS_BILANCA_STANJA_NA_DANSet != null) { return(this.Fill(this.S_OS_BILANCA_STANJA_NA_DANSet)); } this.S_OS_BILANCA_STANJA_NA_DANSet = new S_OS_BILANCA_STANJA_NA_DANDataSet(); this.Fill(this.S_OS_BILANCA_STANJA_NA_DANSet); dataSet.Merge(this.S_OS_BILANCA_STANJA_NA_DANSet); return(0); }
public virtual int FillPage(DataSet dataSet, int startRow, int maxRows) { this.S_OS_BILANCA_STANJA_NA_DANSet = (S_OS_BILANCA_STANJA_NA_DANDataSet)dataSet; if (this.S_OS_BILANCA_STANJA_NA_DANSet != null) { return(this.FillPage(this.S_OS_BILANCA_STANJA_NA_DANSet, startRow, maxRows)); } this.S_OS_BILANCA_STANJA_NA_DANSet = new S_OS_BILANCA_STANJA_NA_DANDataSet(); this.FillPage(this.S_OS_BILANCA_STANJA_NA_DANSet, startRow, maxRows); dataSet.Merge(this.S_OS_BILANCA_STANJA_NA_DANSet); return(0); }
public virtual int FillPage(S_OS_BILANCA_STANJA_NA_DANDataSet dataSet, DateTime dATUM, string sORT, short vrsta, int startRow, int maxRows) { this.Initialize(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.S_OS_BILANCA_STANJA_NA_DANSet = dataSet; this.rowS_OS_BILANCA_STANJA_NA_DAN = this.S_OS_BILANCA_STANJA_NA_DANSet.S_OS_BILANCA_STANJA_NA_DAN.NewS_OS_BILANCA_STANJA_NA_DANRow(); this.SetFillParameters(dATUM, sORT, vrsta); this.AV8DATUM = DateTimeUtil.ResetTime(dATUM); this.AV9SORT = sORT; this.AV10vrsta = vrsta; try { this.executePrivate(startRow, maxRows); } finally { this.Cleanup(); } return(0); }
public void IspisBilance(object sender, EventArgs e) { frmUvjetiBilanca bilanca = new frmUvjetiBilanca(); if (bilanca.ShowDialog() == DialogResult.OK) { string str = string.Empty; ReportDocument document = new ReportDocument(); if (bilanca.___PoNosiocu) { document.Load(System.Windows.Forms.Application.StartupPath + @"\Izvjestaji\rptOSBilancaPoNosiocu.rpt"); } else { document.Load(System.Windows.Forms.Application.StartupPath + @"\Izvjestaji\rptOSBilanca.rpt"); } S_OS_BILANCA_STANJA_NA_DANDataAdapter adapter = new S_OS_BILANCA_STANJA_NA_DANDataAdapter(); S_OS_BILANCA_STANJA_NA_DANDataSet dataSet = new S_OS_BILANCA_STANJA_NA_DANDataSet(); S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJIDataAdapter adapter2 = new S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJIDataAdapter(); S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJIDataSet set2 = new S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJIDataSet(); if (bilanca.___PoNosiocu) { adapter2.Fill(set2, bilanca.__nadan, Conversions.ToString(bilanca.__Sort), Conversions.ToInteger(bilanca.__Vrsta)); document.SetDataSource(set2); } else { adapter.Fill(dataSet, bilanca.__nadan, Conversions.ToString(bilanca.__Sort), Conversions.ToShort(bilanca.__Vrsta)); document.SetDataSource(dataSet); } DateTimeFormatInfo dateTimeFormat = new CultureInfo("hr-HR").DateTimeFormat; if (Operators.ConditionalCompareObjectEqual(bilanca.__Vrsta, 1, false)) { if (bilanca.___PoNosiocu) { str = "Stanje osnovnih sredstava po lokacijama na dan: " + bilanca.__nadan.ToString("d", dateTimeFormat); } else { str = "Stanje osnovnih sredstava na dan: " + bilanca.__nadan.ToString("d", dateTimeFormat); } } else if (bilanca.___PoNosiocu) { str = "Stanje sitnog inventara po lokacijama na dan: " + bilanca.__nadan.ToString("d", dateTimeFormat); } else { str = "Stanje sitnog inventara na dan: " + bilanca.__nadan.ToString("d", dateTimeFormat); } KORISNIKDataSet set3 = new KORISNIKDataSet(); new KORISNIKDataAdapter().Fill(set3); document.SetParameterValue("ustanova", RuntimeHelpers.GetObjectValue(set3.KORISNIK.Rows[0]["KORISNIK1NAZIV"])); document.SetParameterValue("ustanova2", Operators.AddObject(Operators.AddObject(set3.KORISNIK.Rows[0]["KORISNIK1ADRESA"], " "), set3.KORISNIK.Rows[0]["KORISNIK1MJESTO"])); document.SetParameterValue("tel", RuntimeHelpers.GetObjectValue(set3.KORISNIK.Rows[0]["KONTAKTTELEFON"])); document.SetParameterValue("fax", RuntimeHelpers.GetObjectValue(set3.KORISNIK.Rows[0]["KONTAKTFAX"])); document.SetParameterValue("oib", RuntimeHelpers.GetObjectValue(set3.KORISNIK.Rows[0]["KORISNIKOIB"])); document.SetParameterValue("naslov", str); ExtendedWindowWorkspace workspace = new ExtendedWindowWorkspace(); PreviewReportWorkItem item = this.Controller.WorkItem.Items.Get <PreviewReportWorkItem>("Pregled"); if (item == null) { item = this.Controller.WorkItem.Items.AddNew <PreviewReportWorkItem>("Pregled"); } item.Izvjestaj = document; item.Activate(); item.Show(item.Workspaces["main"]); } }