Exemplo n.º 1
0
        void OzelYeniKayit()
        {
            _selectedOzelKasaHar = null;
            CleareForm.ClearThisConrol(groupBox7).BeginClear();

            txtOzelGelirGiderKodu.Focus();
        }
Exemplo n.º 2
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (dataGridView1.CurrentRow != null)
         {
             DataGridViewRow dr = dataGridView1.CurrentRow;
             _hareketId = null;
             CleareForm.ClearThisConrol(this).BeginClear();
             txtHesapNo.Text  = dr.Cells["clHesapNo"].Value.ToStringOrEmpty();
             dateTarih.Text   = dr.Cells["clTarih"].Value.ToStringOrEmpty();
             txtDekontNo.Text = dr.Cells["clDekontNo"].Value.ToStringOrEmpty();
             txtTutar.Text    = dr.Cells["clTutar"].Value.ToStringOrEmpty();
             txtAciklama.Text = dr.Cells["clAciklama"].Value.ToStringOrEmpty();
             _hareketId       = dr.Cells["clId"].Value.ToString().ParseNullable <int>(x => int.Parse(x));
             _kasaHarId       = dr.Cells["clKasaHarId"].Value.ToString().ParseNullable <int>(x => int.Parse(x));
             _cariHarId       = dr.Cells[clCariHarId.Name].Value.ToString().ParseNullable <int>(x => int.Parse(x));
             cmbKasaKodu.Text = dr.Cells["clKasaKod"].Value.ToStringOrEmpty();
             txtCariKodu.Text = dr.Cells["clCariKodu"].Value.ToStringOrEmpty();
             txtHesapNo.Focus();
         }
     }
     catch (Exception exc)
     {
         LogWrite.Write(exc);
         MessageBox.Show(exc.Message);
     }
 }
 void YeniKayit()
 {
     CleareForm.ClearThisConrol(groupBox1)
     .BeginClear();
     txtKasaKodu.Enabled = true;
     txtKasaKodu.Focus();
 }
Exemplo n.º 4
0
 void YeniKayit()
 {
     _kasaHarId = null;
     _hareketId = null;
     _cariHarId = null;
     CleareForm.ClearThisConrol(this).BeginClear();
     txtHesapNo.Focus();
 }
Exemplo n.º 5
0
 void YeniCariTabKalem()
 {
     _selectedCahar   = null;
     _selectedKasaHar = null;
     CleareForm.ClearThisConrol(groupBox5).BeginClear();
     labCariBakiye.Text = "";
     txtCariKod.Focus();
 }
Exemplo n.º 6
0
 void YeniKayit()
 {
     CleareForm.ClearThisConrol(this)
     .BeginClear();
     txtStokKodu.Focus();
     labAltBirim1.Text = "";
     labAltBirim2.Text = "";
     labAltBirim3.Text = "";
 }
Exemplo n.º 7
0
        void YeniKalem()
        {
            CleareForm.ClearThisConrol(groupBox1)
            .BeginClear();
            cmboxDizaynTipi.SelectedIndex = 0;

            _selectedDizayn = null;
            btnNext.Enabled = false;
        }
Exemplo n.º 8
0
        private void btnCariRehber_Click(object sender, EventArgs e)
        {
            CleareForm.ClearThisConrol(groupBox1)
            .BeginClear();
            frmCariRehber frm = new frmCariRehber();

            frm.Owner = this;
            frm.Show();
            txtCariKodu.Focus();
        }
Exemplo n.º 9
0
        private void txtCariKodu_KeyUp(object sender, KeyEventArgs e)
        {
            if (!string.IsNullOrEmpty(txtCariKodu.Text) && e.KeyCode == Keys.Tab)
            {
                try
                {
                    Cari cari = mngCari.GetById(txtCariKodu.Text, false);
                    if (cari != null)
                    {
                        CleareForm.ClearThisConrol(groupBox1)
                        .NotClearTheseConrols(txtCariKodu)
                        .BeginClear();
                        txtCariIsim.Text      = cari.CariIsim;
                        txtTel.Text           = cari.CariTel;
                        txtCepTel.Text        = cari.CepTel;
                        txtCariAdres.Text     = cari.CariAdres;
                        txtCariEmil.Text      = cari.CariEmail;
                        txtVergiDairesi.Text  = cari.VergiDairesi;
                        txtVergiNumarasi.Text = cari.VergiNumarasi;
                        txtWebAdres.Text      = cari.WebAdresi;
                        txtFax.Text           = cari.Fax;

                        if (cari.CariTip.Contains("AS"))
                        {
                            rbAliciSatici.Checked = true;
                        }
                        else if (cari.CariTip.Contains("S"))
                        {
                            rbSatici.Checked = true;
                        }
                        else
                        {
                            rbAlici.Checked = true;
                        }
                        txtCariGrup1.Text         = cari.Grup1.ProperyToStringOrEmpty(x => x.Id);
                        txtCariGrup2.Text         = cari.Grup2.ProperyToStringOrEmpty(x => x.Id);
                        txtCariGrup3.Text         = cari.Grup3.ProperyToStringOrEmpty(x => x.Id);
                        txtCariGrup4.Text         = cari.Grup4.ProperyToStringOrEmpty(x => x.Id);
                        txtIl.Text                = cari.Il;
                        txtIlce.Text              = cari.Ilce;
                        txtYetkiliKisi.Text       = cari.YetkiliKisi;
                        cmbAlisFiyatKod.Text      = cari.AlisFiyatKod;
                        cmbSatisFiyatKod.Text     = cari.SatisFiyatKod;
                        chkSubelerdeOrtak.Checked = cari.SubelerdeOrtak.HasValue ? cari.SubelerdeOrtak.Value : false;
                    }
                }
                catch (Exception exc)
                {
                    MessageBox.Show(exc.Message);
                    LogWrite.Write(exc);
                }
                txtCariIsim.Focus();
            }
        }
Exemplo n.º 10
0
 void InitializeForm()
 {
     dataGridView1.DataSource = null;
     YeniKalem();
     _currentSipUst       = null;
     _currentStok         = null;
     _selectedSipKalId    = null;
     _selectedStokKodu    = "";
     dateVadeTarihi.Value = DateTime.Today;
     CleareForm.ClearThisConrol(this).BeginClear();
 }
Exemplo n.º 11
0
 void YeniKalem()
 {
     CleareForm.ClearThisConrol(groupBox2)
     .NotClearTheseConrols(grboxGenelToplam, cmbDizayn)
     .BeginClear();
     //ClearFormData(groupBox2);
     // txtStokKodu.Focus();
     txtBarkod.Focus();
     cmbBirim.Items.Clear();
     _currentStok      = null;
     _selectedSipKalId = null;
 }
Exemplo n.º 12
0
 void YeniKalem()
 {
     CleareForm.ClearThisConrol(groupBox1).BeginClear();
     cmbAlanIsim.SelectedIndex = 0;
     cmbSahaYeri.SelectedIndex = 0;
     txtOndalik.Text           = "0";
     txtUzunluk.Text           = "0";
     txtAciklama.Enabled       = false;
     txtAciklama.Text          = "";
     chkBaslik.Checked         = false;
     cmbSahaYeri.Focus();
     _selectedDizaynKalem = null;
 }
Exemplo n.º 13
0
        void YeniKalem()
        {
            CleareForm.ClearThisConrol(groupBox2)
            .NotClearTheseConrols(txtGenelAraTop, txtGenelGenelTop, txtGenelTopKdv, cmboxKasaKodu, txtMiktar
                                  , chbFaturaBas, cmbDizayn)
            .BeginClear();

            txtMiktar.Text = "1";
            txtMiktar.Focus();
            labSecilenUrun.Text = "";
            //txtBarkod.Focus();
            _currentStok       = null;
            _selectedStokHarId = null;
        }
Exemplo n.º 14
0
 void InitializeForm()
 {
     dataGridView1.DataSource = null;
     CleareForm.ClearThisConrol(this).NotClearTheseConrols(cmboxKasaKodu, txtMiktar, chbFaturaBas, cmbDizayn).BeginClear();
     YeniKalem();
     _fisNo = string.Empty;
     SetFisNo();
     //nudMiktar.Value = 1;
     //nudMiktar.Focus();
     txtMiktar.Text = "1";
     txtMiktar.Focus();
     txtBarkod.Focus();
     SatisYap     = false;
     KasaCariKodu = string.Empty;
 }
Exemplo n.º 15
0
 private void dataGridViewCari_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     try {
         if (dataGridViewCari.CurrentRow != null)
         {
             DataGridViewRow dr = dataGridViewCari.CurrentRow;
             CleareForm.ClearThisConrol(this).BeginClear();
             txtCariKodu.Text      = dr.Cells["clCariKod"].Value.ToStringOrEmpty();
             txtCariIsim.Text      = dr.Cells["clIsim"].Value.ToStringOrEmpty();
             txtTel.Text           = dr.Cells["clTelefon"].Value.ToStringOrEmpty();
             txtCepTel.Text        = dr.Cells["clCepTel"].Value.ToStringOrEmpty();
             txtCariAdres.Text     = dr.Cells["clAdres"].Value.ToStringOrEmpty();
             txtCariEmil.Text      = dr.Cells["clEmail"].Value.ToStringOrEmpty();
             txtVergiDairesi.Text  = dr.Cells["clVergiDairesi"].Value.ToStringOrEmpty();
             txtVergiNumarasi.Text = dr.Cells["clVergiNumarasi"].Value.ToStringOrEmpty();
             txtFax.Text           = dr.Cells["clFax"].Value.ToStringOrEmpty();
             txtWebAdres.Text      = dr.Cells["clWebAdres"].Value.ToStringOrEmpty();
             txtIl.Text            = dr.Cells["clil"].Value.ToStringOrEmpty();
             txtIlce.Text          = dr.Cells["clilce"].Value.ToStringOrEmpty();
             txtCariGrup1.Text     = dr.Cells["clGrup1"].Value.ToStringOrEmpty();
             txtCariGrup2.Text     = dr.Cells["clGrup2"].Value.ToStringOrEmpty();
             txtCariGrup3.Text     = dr.Cells["clGrup3"].Value.ToStringOrEmpty();
             txtCariGrup4.Text     = dr.Cells["clGrup4"].Value.ToStringOrEmpty();
             txtYetkiliKisi.Text   = dr.Cells["clYetkiliKisi"].Value.ToStringOrEmpty();
             cmbAlisFiyatKod.Text  = dr.Cells[clAlisFiyatKod.Name].Value.ToStringOrEmpty();
             cmbSatisFiyatKod.Text = dr.Cells[clSatisFiyatKod.Name].Value.ToStringOrEmpty();
             if (dr.Cells["clCariTip"].Value.ToStringOrEmpty().Contains("AS"))
             {
                 rbAliciSatici.Checked = true;
             }
             else if (dr.Cells["clCariTip"].Value.ToStringOrEmpty().Contains("S"))
             {
                 rbSatici.Checked = true;
             }
             else
             {
                 rbAlici.Checked = true;
             }
             txtCariIsim.Focus();
             Cari cari = mngCari.GetById(txtCariKodu.Text, false);
             chkSubelerdeOrtak.Checked = cari.SubelerdeOrtak.HasValue ? cari.SubelerdeOrtak.Value : false;
         }
     } catch (Exception exc) {
         MessageBox.Show(exc.Message);
         LogWrite.Write(exc);
     }
 }
Exemplo n.º 16
0
        private void txtCariKodu_KeyUp(object sender, KeyEventArgs e)
        {
            if (!string.IsNullOrEmpty(txtCariKodu.Text))
            {
                try {
                    Cari cari = mngCari.GetById(txtCariKodu.Text, false);
                    if (cari != null)
                    {
                        CleareForm.ClearThisConrol(groupBox1)
                        .NotClearTheseConrols(txtCariKodu)
                        .BeginClear();
                        txtCariIsim.Text  = cari.CariIsim;
                        txtTel.Text       = cari.CariTel;
                        txtCepTel.Text    = cari.CepTel;
                        txtCariAdres.Text = cari.CariAdres;

                        txtVergiDairesi.Text  = cari.VergiDairesi;
                        txtVergiNumarasi.Text = cari.VergiNumarasi;
                        txtCariKodu.CloseAutoComplete();
                        if (e.KeyCode == Keys.Tab || e.KeyCode == Keys.Enter)
                        {
                            txtCariIsim.Focus();
                        }
                        //txtCariIsim.Focus();
                    }
                    else
                    {
                        CleareForm.ClearThisConrol(groupBox1).NotClearTheseConrols(txtCariKodu).BeginClear();
                        if (e.KeyCode == Keys.Tab || e.KeyCode == Keys.Enter)
                        {
                            txtCariIsim.Focus();
                        }
                    }
                } catch (Exception exc) {
                    MessageBox.Show(exc.Message);
                    LogWrite.Write(exc);
                }
                //txtCariIsim.Focus();
            }
            else
            {
                CleareForm.ClearThisConrol(groupBox1).NotClearTheseConrols(txtCariKodu).BeginClear();
            }
        }
Exemplo n.º 17
0
 private void txtFatNo_KeyUp(object sender, KeyEventArgs e)
 {
     if (!string.IsNullOrEmpty(txtFatNo.Text) && (e.KeyCode == Keys.Tab || e.KeyCode == Keys.Enter))
     {
         try
         {
             _currentSipUst = mngSipUst.GetByBelgeNoBelgeTipAndSubeKodu(txtFatNo.Text, _ftirsip, UserInfo.Sube.Id);
             if (_currentSipUst != null)
             {
                 CleareForm.ClearThisConrol(this).BeginClear();
                 dataGridView1.DataSource = null;
                 txtFatNo.Text            = _currentSipUst.FatirsNo;
                 txtCari.Text             = _currentSipUst.CariKodu;
                 dtTeslimTarih.Text       = _currentSipUst.TeslimTarih.ToString("d");
                 dateTarih.Text           = _currentSipUst.Tarih.ToString("d");
                 chkKdvDahilmi.Checked    = _currentSipUst.KdvDahilmi;
                 dateVadeTarihi.Value     = _currentSipUst.VadeTarih.Value;
                 btnFatKaydet.Enabled     = true;
                 btnIrsaliyestir.Enabled  = true;
                 if (_currentSipUst.Kapatilmis)
                 {
                     MessageBox.Show(_currentSipUst.FatirsNo + " numaralı sipariş kapatılmış.");
                 }
                 LoadSiparisToGrid();
             }
             else
             {
                 string str = txtFatNo.Text;
                 InitializeForm();
                 txtFatNo.Text = str;
             }
             txtCari.Focus();
         }
         catch (Exception exc)
         {
             MessageBox.Show(exc.Message);
             LogWrite.Write(exc);
         }
     }
 }
Exemplo n.º 18
0
 void YeniKayit()
 {
     CleareForm.ClearThisConrol(this).BeginClear();
     selectedBankaHesapId = null;
     txtHesapNo.Focus();
 }
Exemplo n.º 19
0
 public void YeniKayit()
 {
     CleareForm.ClearThisConrol(this).BeginClear();
     txtCariKodu.Focus();
     txtCariKodu.ReadOnly = false;
 }
Exemplo n.º 20
0
 void YeniKayit()
 {
     CleareForm.ClearThisConrol(this).BeginClear();
     txtUserName.Focus();
     KulNo = null;
 }