예제 #1
0
 private void UltraTextEditor1_EditorButtonClick(object sender, EditorButtonEventArgs e)
 {
     if (e.Button.Key == "zaposlenik")
     {
         RADNIKSelectionListWorkItem item = this.Controller.WorkItem.Items.AddNew <RADNIKSelectionListWorkItem>("test");
         DataRow row = item.ShowModal(true, "", null);
         item.Terminate();
         if (row != null)
         {
             this.UltraTextEditor1.Text = Conversions.ToString(row["prezime"]) + "/" + Conversions.ToString(row["ime"]);
             S_OD_PROSJEK_PLACEDataAdapter adapter2 = new S_OD_PROSJEK_PLACEDataAdapter();
             S_OD_PROSJEK_PLACEDataSet     dataSet  = new S_OD_PROSJEK_PLACEDataSet();
             adapter2.Fill(dataSet, Conversions.ToString(this.UltraCombo1.Value), Conversions.ToString(this.UltraCombo2.Value), Conversions.ToInteger(row["idradnik"]));
             KORISNIKDataSet set = new KORISNIKDataSet();
             new KORISNIKDataAdapter().Fill(set);
             string         str6     = Conversions.ToString(set.KORISNIK.Rows[0]["korisnik1naziv"]);
             string         str5     = Conversions.ToString(set.KORISNIK.Rows[0]["MBKORISNIK"]);
             string         str      = Conversions.ToString(set.KORISNIK.Rows[0]["korisnik1adresa"]);
             string         str2     = Conversions.ToString(set.KORISNIK.Rows[0]["korisnik1mjesto"]);
             string         str7     = Conversions.ToString(set.KORISNIK.Rows[0]["KONTAKTTELEFON"]);
             string         str4     = Conversions.ToString(set.KORISNIK.Rows[0]["KONTAKTFAX"]);
             string         str3     = "";
             ReportDocument document = new ReportDocument();
             document.Load(System.Windows.Forms.Application.StartupPath + @"\Izvjestaji\rptProsjekPlace.rpt");
             document.SetDataSource(dataSet);
             document.SetParameterValue("BROJRACUNA", str3);
             document.SetParameterValue("ADRESA2", str2);
             document.SetParameterValue("ADRESA", str);
             document.SetParameterValue("ustanova", str6);
             this.CrystalReportViewer1.ReportSource = document;
         }
     }
 }
예제 #2
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsS_OD_PROSJEK_PLACEDataSet1 = new S_OD_PROSJEK_PLACEDataSet();
     this.m_StartRow    = 0;
     this.Cursor        = Cursors.WaitCursor;
     this.m_GridLoading = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }