Example #1
0
        private void BtncariSec_Click(object sender, EventArgs e)
        {
            FrmCariSec form = new FrmCariSec();

            form.ShowDialog();
            if (form.secildi)
            {
                SarpTicariOtomasyon_Entities.Tables.Cari entity = form.secilen.FirstOrDefault();
                entityBakiye = this.cariDal.CariBakiyesi(context, entity.CariKodu);

                lblCariKodu.Text     = entity.CariKodu;
                lblcariAdi.Text      = entity.CariAdi;
                txtfaturaUnvani.Text = entity.FaturaUnvani;
                txtvergiNo.Text      = entity.VergiNo;
                txtvergiDairesi.Text = entity.VergiDairesi;
                txtAdres.Text        = entity.Adres;
                txtCepTelefonu.Text  = entity.CepTelefonu;
                txtIl.Text           = entity.Il;
                txtIlce.Text         = entity.Ilce;
                txtSemt.Text         = entity.Semt;
                lblAlacak.Text       = entityBakiye.Alacak.ToString("C2");
                lblBorc.Text         = entityBakiye.Borc.ToString("C2");
                lblBakiye.Text       = entityBakiye.Bakiye.ToString("C2");
            }
        }
Example #2
0
        private void BtnKopyala_Click(object sender, EventArgs e)
        {
            secilen = gridView1.GetFocusedRowCellValue(colCariKodu).ToString();
            SarpTicariOtomasyon_Entities.Tables.Cari CariEntitiy = new SarpTicariOtomasyon_Entities.Tables.Cari();
            CariEntitiy          = cariDal.GetByFilter(context, c => c.CariKodu == secilen);
            CariEntitiy.Id       = -1;
            CariEntitiy.CariKodu = null;
            FrmCariIslem form = new FrmCariIslem(CariEntitiy);

            form.ShowDialog();
            if (form.saved)
            {
                GetAll();
            }
        }