Ejemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     try
     {
         Mapping.Metjurnaldopuslug met = new Mapping.Metjurnaldopuslug();
         hotel.Program.Pole.id = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value);
         met.Delete(hotel.Program.Pole.id);
         obnclienta();
     }
     catch { MessageBox.Show("Error"); }
 }
Ejemplo n.º 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     Mapping.Metjurnalnomera   metjn = new Mapping.Metjurnalnomera();
     Mapping.Metnomera         metn  = new Mapping.Metnomera();
     Mapping.Metjurnaldopuslug metdu = new Mapping.Metjurnaldopuslug();
     RabotaSKlientomi.SchetPdf schet = new RabotaSKlientomi.SchetPdf();
     saveFileDialog1.Filter = "PDF Document|*.pdf";
     saveFileDialog1.ShowDialog();
     schet.CozdSchetPdf2(saveFileDialog1.FileName, hotel.Program.Pole.id);
     this.Close();
 }
Ejemplo n.º 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         hotel.Program.Pole.id = Convert.ToInt32(dataGridView2.CurrentRow.Cells[0].Value);
         Mapping.Metjurnaldopuslug met = new Mapping.Metjurnaldopuslug();
         var linq = from n in db.jurnalnomera
                    where n.id == hotel.Program.Pole.id
                    select n;
         foreach (var i in linq)
         {
             met.ADD(Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value), i.idclienta, i.id);
         }
         this.Close();
     }
     catch { MessageBox.Show("Error"); }
 }