public virtual int Fill(S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJIDataSet dataSet) { if (this.fillDataParameters == null) { throw new ArgumentException(); } this.Fill(dataSet, DateTime.Parse(this.fillDataParameters[0].Value.ToString()), this.fillDataParameters[1].Value.ToString(), int.Parse(this.fillDataParameters[2].Value.ToString())); return(0); }
public virtual void Fill() { this.PreFill(); this.dsS_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJIDataSet1 = new S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJIDataSet(); this.m_StartRow = 0; this.Cursor = Cursors.WaitCursor; this.m_GridLoading = true; ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal); }
public virtual int Fill(DataSet dataSet) { this.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJISet = (S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJIDataSet)dataSet; if (this.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJISet != null) { return(this.Fill(this.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJISet)); } this.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJISet = new S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJIDataSet(); this.Fill(this.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJISet); dataSet.Merge(this.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJISet); return(0); }
public virtual int FillPage(DataSet dataSet, int startRow, int maxRows) { this.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJISet = (S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJIDataSet)dataSet; if (this.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJISet != null) { return(this.FillPage(this.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJISet, startRow, maxRows)); } this.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJISet = new S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJIDataSet(); this.FillPage(this.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJISet, startRow, maxRows); dataSet.Merge(this.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJISet); return(0); }
public virtual int FillPage(S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJIDataSet dataSet, DateTime dATUM, string sORT, int vRSTA, int startRow, int maxRows) { this.Initialize(); this.connDefault = this.dsDefault.GetReadWriteConnection(this.daCurrentTransaction); this.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJISet = dataSet; this.rowS_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJI = this.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJISet.S_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJI.NewS_OS_BILANCA_STANJA_NA_DAN_PO_LOKACIJIRow(); 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"]); } }