Exemplo n.º 1
0
 private void btnSec_Click(object sender, EventArgs e)
 {
     if (gridDepolar.SelectedRowsCount != 0)
     {
         string depoKodu = gridDepolar.GetFocusedRowCellValue(colDepoKodu).ToString();
         entity  = context.Depolar.SingleOrDefault(c => c.DepoKodu == depoKodu);
         secildi = true;
         this.Close();
     }
 }
Exemplo n.º 2
0
 private void GridContDepoSec_DoubleClick(object sender, EventArgs e)
 {
     if (gridViewDepoSec.SelectedRowsCount != 0)
     {
         string depoKodu = gridViewDepoSec.GetFocusedRowCellValue(colDepoKodu).ToString();
         secilen = context.Depolar.SingleOrDefault(c => c.KullaniciID == RoleTool.kullaniciEntity.KullaniciID && c.DepoKodu == depoKodu);
         secildi = true;
         this.Close();
     }
     else
     {
         XtraMessageBox.Show("Hiç Bir Depo Seçilmedi");
     }
 }
Exemplo n.º 3
0
 private void btnSec_Click(object sender, EventArgs e)
 {
     if (gridView1.SelectedRowsCount != 0)
     {
         string depokodu = gridView1.GetFocusedRowCellValue(colDepoKodu).ToString();
         entity  = context.Depolar.SingleOrDefault(c => c.DepoKodu == depokodu);
         secildi = true;
         this.Close();
     }
     else
     {
         MessageBox.Show("Depo Seçimi Yapılmadı");
     }
 }
Exemplo n.º 4
0
 public FrmDepoIslem(Entities.Tables.Depo entity)
 {
     InitializeComponent();
     _entity = entity;
     txtDepoKodu.DataBindings.Add("Text", _entity, "DepoKodu");
     txtDepoAdi.DataBindings.Add("Text", _entity, "DepoAdi");
     txtYekiliKodu.DataBindings.Add("Text", _entity, "YetkiliKodu");
     txtYetkliAdi.DataBindings.Add("Text", _entity, "YetkliAdi");
     txtTelefon.DataBindings.Add("Text", _entity, "Telefon");
     txtIl.DataBindings.Add("Text", _entity, "Il");
     txtIlce.DataBindings.Add("Text", _entity, "Ilce");
     txtSemt.DataBindings.Add("Text", _entity, "Semt");
     txtAdres.DataBindings.Add("Text", _entity, "Adres");
     txtAciklama.DataBindings.Add("Text", _entity, "Aciklama");
 }
Exemplo n.º 5
0
        private void btnKopyala_Click(object sender, EventArgs e)
        {
            secilen = gridDepo.GetFocusedRowCellValue(colDepoKodu).ToString();
            Entities.Tables.Depo depoEntity = new Entities.Tables.Depo();
            depoEntity          = depodal.GetByFilter(context, c => c.DepoKodu == secilen);
            depoEntity.Id       = -1;
            depoEntity.DepoKodu = null;
            FrmDepoIslem frm = new FrmDepoIslem(depoEntity);

            frm.ShowDialog();
            if (frm.saved)
            {
                Listele();
            }
        }
Exemplo n.º 6
0
        public FrmDepoIslem(Entities.Tables.Depo entity)
        {
            InitializeComponent();
            cmbYetkiliKodu.DataSource = context.Personeller.Where(c => c.KullaniciID == RoleTool.kullaniciEntity.KullaniciID).Select(c => c.PersonelKodu).ToList();

            _entity             = entity;
            _entity.KullaniciID = RoleTool.kullaniciEntity.KullaniciID;

            labelKullaniciID.DataBindings.Add("Text", _entity, "KullaniciID");
            txtDepoKodu.DataBindings.Add("Text", _entity, "DepoKodu");
            txtDepoAdi.DataBindings.Add("Text", _entity, "DepoAdi");
            cmbYetkiliKodu.DataBindings.Add("Text", _entity, "YetkiliKodu");
            cmbYetkiliAdi.DataBindings.Add("Text", _entity, "YetkiliAdi");
            txtTelefon.DataBindings.Add("Text", _entity, "Telefon");
            txtIl.DataBindings.Add("Text", _entity, "Il");
            txtIlce.DataBindings.Add("Text", _entity, "Ilce");
            txtSemt.DataBindings.Add("Text", _entity, "Semt");
            txtAdres.DataBindings.Add("Text", _entity, "Adres");
            txtAciklama.DataBindings.Add("Text", _entity, "Aciklama");
        }