public FrmPregledRacuna(BAZADataSet ds) : this() { this.ds = ds; daRacun = new BAZADataSetTableAdapters.RacunTableAdapter(); daRacun.Fill(ds.Racun); }
public FrmKolicina(BAZADataSet ds, FrmRacun frmRacun, int tag) : this() { this.tag = tag; this.ds = ds; this.frmRacun = frmRacun; var linq = this.ds.Artikal.Where(x => x.id_artikal == tag).First(); this.artikal = linq; this.Text = artikal.naziv; this.kolicina = 1; }
public FrmRacun() { InitializeComponent(); this.FormBorderStyle = FormBorderStyle.None; dataGridView1.Width = ClientRectangle.Width - 10; dataGridView1.Height = ClientRectangle.Height - 100; ds = new BAZADataSet(); daRacun = new BAZADataSetTableAdapters.RacunTableAdapter(); daRacun.Fill(ds.Racun); dataGridView1.Columns[0].Visible = false; }
public FrmNoviArtikal(BAZADataSet ds, BAZADataSetTableAdapters.ArtikalTableAdapter daArtikli) : this() { this.ds = ds; this.daArtikli = daArtikli; //Grupe ciji id roditelja se ne nalazi u id grupe var trazeneGrupe = ds.Grupa.Except(ds.Grupa.Where(x => ds.Grupa.Select(y => y.id_roditelj).Contains(x.id_grupa))); cbGrupe.DataSource = trazeneGrupe.ToList(); cbGrupe.DisplayMember = "naziv"; cbGrupe.ValueMember = "id_grupa"; txtPopust.Text = "0"; }
public FrmMain() { InitializeComponent(); this.FormBorderStyle = FormBorderStyle.None; size = new Size(150, 80); font = new Font("Arial", 14); listaArtikla = new List <BAZADataSet.ArtikalRow>(); ds = new BAZADataSet(); daGrupe = new BAZADataSetTableAdapters.GrupaTableAdapter(); daArtikli = new BAZADataSetTableAdapters.ArtikalTableAdapter(); daGrupe.Fill(ds.Grupa); daArtikli.Fill(ds.Artikal); }