Esempio n. 1
0
        private void btnAracGetir_Click(object sender, EventArgs e)
        {
            frmAracSorgulama frm = new frmAracSorgulama();
            frm.ShowDialog();

            cArac arc = new cArac();
            cArac a = new cArac();

            txtID.Text = cGenel.AracID.ToString();

            arc.AraclariGetirByAracID(cGenel.AracID, a);

            txtMarka.Text = a.Marka;
            txtModel.Text = a.Model;
            txtPlaka.Text = a.Plaka;
            txtYil.Text = a.Yil.ToString();
            txtLokasyon.Text = a.Lokasyon;
            txtKm.Text = a.Km.ToString();
            txtKasaTipi.Text = a.KasaTipi;
            txtRenk.Text = a.Renk;
            txtKoltukSayisi.Text = a.KoltukSayisi;
            txtYakitCinsi.Text = a.YakitCinsi;
            txtSHacmi.Text = a.SilindirHacmi.ToString();
            txtCekis.Text = a.Cekis;
            txtSasiNo.Text = a.SasiNo;
            txtSanzimanTuru.Text = a.SanzimanTuru;
            txtGunlukUcret.Text = a.GunlukUcret.ToString();
        }
Esempio n. 2
0
        private void btnAracGetir_Click(object sender, EventArgs e)
        {
            txtTutar.Text = "0";
            frmAracSorgulama frm = new frmAracSorgulama();
            frm.AracGetirKapali();
            frm.ShowDialog();

            cArac arc = new cArac();
            cArac a = new cArac();

            if (cGenel.AracID > 0)
            {
                txtAracID.Text = cGenel.AracID.ToString();

                arc.AraclariGetirByAracID(cGenel.AracID, a);

                txtMarka.Text = a.Marka;
                txtModel.Text = a.Model;
                txtGunlukUcret.Text = a.GunlukUcret.ToString();
                cGenel.AracID = 0;
            }

            if(txtMarka.Text != "")
            btnHesapla.Enabled = true;
            if (cbMusteriTipi.SelectedIndex == 1)
            chOzelIndirim.Visible = true;
        }
 private void btnAracGetir_Click(object sender, EventArgs e)
 {
     frmAracSorgulama frm = new frmAracSorgulama();
     frm.ShowDialog();
 }