Пример #1
0
        private void frmMusteriler_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'aYSDataSet.tbl_GelirTuru' table. You can move, or remove it, as needed.
            this.tbl_GelirTuruTableAdapter.Fill(this.aYSDataSet.tbl_GelirTuru);
            // TODO: This line of code loads data into the 'aYSDataSet.tbl_Musteriler' table. You can move, or remove it, as needed.
            this.tbl_MusterilerTableAdapter.Fill(this.aYSDataSet.tbl_Musteriler);
            //griddoldur();
            tbl_Binalar bina = new tbl_Binalar();

            binalar  = bina.Listele().ToList();
            daireler = daire.Listele().ToList();
            foreach (tbl_Binalar binaAdi in binalar)
            {
                cmbBinaAdi.Items.Add(binaAdi.Bina_adi);
            }
            griddoldur();
            DateTime time = DateTime.Now;
            string   year = time.Year.ToString();

            for (int i = 1; i < 13; i++)
            {
                cmbKiraDonemi.Items.Add(year + "/" + i);
            }
            chkKayitli.Checked = true;
            chkYetkili.Checked = true;
        }
Пример #2
0
        private void frmGelirKayit_Load(object sender, EventArgs e)
        {
            tbl_Binalar bina = new tbl_Binalar();

            binalar  = bina.Listele().ToList();
            daireler = daire.Listele().ToList();
            foreach (tbl_Binalar binaAdi in binalar)
            {
                cmbBinaAdi.Items.Add(binaAdi.Bina_adi);
            }
            tbl_GelirTuru        gelirTuru = new tbl_GelirTuru();
            List <tbl_GelirTuru> gelirList = new List <tbl_GelirTuru>();

            gelirList = gelirTuru.Listele().ToList();
            foreach (tbl_GelirTuru gelir in gelirList)
            {
                cmbGelirTuru.Items.Add(gelir.Gelir_adi);
            }
            DateTime time = DateTime.Now;
            string   year = time.Year.ToString();

            for (int i = 1; i < 13; i++)
            {
                cmbKiraDonemi.Items.Add(year + "/" + i);
            }
            cmbKiraDonemi.SelectedItem  = KiraDonemi;
            cmbBinaAdi.SelectedItem     = ApartAdi;
            cmbDaireKapiNo.SelectedItem = DaireKapiNo;
            txtTcKimlikNo.Text          = TcKimlikNo;
            griddoldur();
        }
Пример #3
0
        private void frmMusteriEkleme_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'aYSDataSet.tbl_Musteriler' table. You can move, or remove it, as needed.
            this.tbl_MusterilerTableAdapter.Fill(this.aYSDataSet.tbl_Musteriler);
            // TODO: This line of code loads data into the 'aYSDataSet.spMusteriDaireBina' table. You can move, or remove it, as needed.
            this.spMusteriDaireBinaTableAdapter.Fill(this.aYSDataSet.spMusteriDaireBina);
            AlanEnabled(false);
            gridDoldur();
            tbl_Binalar bina = new tbl_Binalar();

            binalar = bina.Listele().ToList();

            foreach (tbl_Binalar binaAdi in binalar)
            {
                bina_adiComboBox.Items.Add(binaAdi.Bina_adi);
            }
        }
Пример #4
0
        private void frmFaturaSorgula_Load(object sender, EventArgs e)
        {
            gridDoldur();
            tbl_FaturaTuru        faturaTuru = new tbl_FaturaTuru();
            List <tbl_FaturaTuru> liste      = faturaTuru.Listele().ToList();

            foreach (var item in liste)
            {
                fatura_AdıComboBox.Items.Add(item.Fatura_adi);
            }
            tbl_Binalar        bina    = new tbl_Binalar();
            List <tbl_Binalar> binalar = bina.Listele().ToList();

            foreach (var item in binalar)
            {
                bina_AdıComboBox.Items.Add(item.Bina_adi);
            }
        }
Пример #5
0
        private void frmFaturaGelirKayit_Load(object sender, EventArgs e)
        {
            tbl_Binalar bina = new tbl_Binalar();

            binalar  = bina.Listele().ToList();
            daireler = daire.Listele().ToList();
            foreach (tbl_Binalar binaAdi in binalar)
            {
                cmbBinaAdi.Items.Add(binaAdi.Bina_adi);
            }
            DateTime time = DateTime.Now;
            string   year = time.Year.ToString();

            for (int i = 1; i < 13; i++)
            {
                cmbKiraDonemi.Items.Add(year + "/" + i);
            }
            cmbKiraDonemi.SelectedItem  = FaturaDonemi;
            cmbBinaAdi.SelectedItem     = ApartAdi;
            cmbDaireKapiNo.SelectedItem = DaireKapiNo;
            txtAboneNo.Text             = AboneNo;
            griddoldur();
        }
Пример #6
0
        private void frmFatura_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'aYSDataSet.spFatura' table. You can move, or remove it, as needed.

            gridDoldur();
            tbl_FaturaTuru        faturaTuru = new tbl_FaturaTuru();
            List <tbl_FaturaTuru> liste      = faturaTuru.Listele().ToList();

            foreach (var item in liste)
            {
                fatura_AdıComboBox.Items.Add(item.Fatura_adi);
            }
            tbl_Binalar bina = new tbl_Binalar();

            binalar = bina.Listele().ToList();
            foreach (var item in binalar)
            {
                bina_AdıComboBox.Items.Add(item.Bina_adi);
            }
            tbl_Daireler daire = new tbl_Daireler();

            daireler = daire.Listele().ToList();
            AlanEnabled(false);
        }
Пример #7
0
        private void GridiDoldur()
        {
            tbl_Binalar bina = new tbl_Binalar();

            gcBinalar.DataSource = bina.Listele().ToDataTable();
        }