Beispiel #1
0
 private void butonTutanak_Click(object sender, EventArgs e)
 {
     try
     {
         cihazTeslimBilgiler obj = cihazTeslimBilgilerBindingSource.Current as cihazTeslimBilgiler;
         if (obj != null)
         {
             using (IDbConnection db = new SqlConnection(@"Data Source=DESKTOP-HUU8UV5\SQLEXPRESS;Initial Catalog=cihazTakip;Integrated Security=True;"))
             {
                 if (db.State == ConnectionState.Closed)
                 {
                     db.Open();
                 }
                 string query = "select cihaz_bt,cihaz_marka_adi,cihaz_isyeri,cihaz_gelis_nedeni,cihaz_yapilan_is,cihaz_gelis_tarihi from cihaz_kayit,gorevli where cihaz_kayit.gorevli=gorevli.gorevli_id order by cihaz_id desc";
                 cihazTeslimBilgilerBindingSource.DataSource = db.Query <cihazTeslimBilgiler>(query, commandType: CommandType.Text);
                 using (frmPrint frm = new frmPrint(obj))
                 {
                     frm.ShowDialog();
                 }
             }
         }
     }
     catch (Exception s)
     {
         MessageBox.Show(s.Message);
     }
     veriGetir(getir);
 }
Beispiel #2
0
 public frmPrint(cihazTeslimBilgiler cihazTeslimBilgi)
 {
     InitializeComponent();
     _cihazTeslimBilgiler = cihazTeslimBilgi;
 }