Ejemplo n.º 1
0
        private void cariKaydetToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCari frm = new frmCari();

            frm.Name = "CARI";
            AddPropertiesForm(frm);
            ShowInTab(frm);
            //ShowForm(frm, true);
        }
Ejemplo n.º 2
0
        private void tsbtnCari_Click(object sender, EventArgs e)
        {
            frmCari frm = new frmCari();

            frm.Name = "CARI";
            AddPropertiesForm(frm);
            ShowInTab(frm);
            //ShowForm(frm, true);
        }
Ejemplo n.º 3
0
 void yeniKayit()
 {
     if (_cariKaydet)
     {
         frmCari frm = new frmCari();
         frm.Owner = this;
         frm.ShowDialog();
         LoadCari();
     }
 }
Ejemplo n.º 4
0
 private void txtCari_KeyUp(object sender, KeyEventArgs e)
 {
     if (!string.IsNullOrEmpty(txtCari.Text) && e.KeyCode == Keys.Tab)
     {
         try {
             Cari cari = mngCari.GetById(txtCari.Text, false);
             if (cari == null)
             {
                 frmCari frm = new frmCari();
                 frm.Owner            = this;
                 frm.txtCariKodu.Text = txtCari.Text;
                 frm.txtCariKodu.Focus();
                 frm.ShowDialog();
             }
             else
             {
                 dateTarih.Focus();
             }
         } catch (Exception exc) {
             MessageBox.Show(exc.Message);
             LogWrite.Write(exc);
         }
     }
 }
Ejemplo n.º 5
0
        private void btnCari_Click(object sender, EventArgs e)
        {
            frmCari frm = new frmCari();

            frm.Show();
        }
Ejemplo n.º 6
0
 void Sec()
 {
     try {
         if (this.Owner is frmCari)
         {
             frmCari frmCari = (frmCari)this.Owner;
             frmCari.YeniKayit();
             ListViewItem item = listView1.SelectedItems[0];
             frmCari.txtCariKodu.Text      = item.SubItems[0].Text;
             frmCari.txtCariIsim.Text      = item.SubItems[1].Text;
             frmCari.txtTel.Text           = item.SubItems[2].Text;
             frmCari.txtFax.Text           = item.SubItems[3].Text;
             frmCari.txtCepTel.Text        = item.SubItems[4].Text;
             frmCari.txtCariAdres.Text     = item.SubItems[5].Text;
             frmCari.txtIl.Text            = item.SubItems[6].Text;
             frmCari.txtIlce.Text          = item.SubItems[7].Text;
             frmCari.txtVergiDairesi.Text  = item.SubItems[8].Text;
             frmCari.txtVergiNumarasi.Text = item.SubItems[9].Text;
             frmCari.txtCariEmil.Text      = item.SubItems[10].Text;
             frmCari.txtWebAdres.Text      = item.SubItems[11].Text;
             frmCari.txtYetkiliKisi.Text   = item.SubItems[12].Text;
             frmCari.txtCariGrup1.Text     = item.SubItems[13].Text;
             frmCari.txtCariGrup2.Text     = item.SubItems[14].Text;
             frmCari.txtCariGrup3.Text     = item.SubItems[15].Text;
             frmCari.txtCariGrup4.Text     = item.SubItems[16].Text;
             if (item.SubItems[17].Text.Contains("AS"))
             {
                 frmCari.rbAliciSatici.Checked = true;
             }
             else if (item.SubItems[17].Text.Contains("S"))
             {
                 frmCari.rbSatici.Checked = true;
             }
             else
             {
                 frmCari.rbAlici.Checked = true;
             }
             frmCari.cmbAlisFiyatKod.Text  = item.SubItems[18].Text;
             frmCari.cmbSatisFiyatKod.Text = item.SubItems[19].Text;
             frmCari.txtCariKodu.ReadOnly  = true;
             frmCari.txtCariIsim.Focus();
             Cari cari = mngCari.GetById(frmCari.txtCariKodu.Text, false);
             frmCari.chkSubelerdeOrtak.Checked = cari.SubelerdeOrtak.HasValue ? cari.SubelerdeOrtak.Value : false;
         }
         else if (this.Owner is frmFatura)
         {
             frmFatura    frm  = (frmFatura)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCari.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmSiparis)
         {
             frmSiparis   frm  = (frmSiparis)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCari.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmBankaHareket)
         {
             frmBankaHareket frm  = (frmBankaHareket)this.Owner;
             ListViewItem    item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmDirekSatisVeresiye)
         {
             frmDirekSatisVeresiye frm  = (frmDirekSatisVeresiye)this.Owner;
             ListViewItem          item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmYeniCek)
         {
             frmYeniCek   frm  = (frmYeniCek)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmCekDurum)
         {
             frmCekDurum  frm  = (frmCekDurum)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCari.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmSenetDurum)
         {
             frmSenetDurum frm  = (frmSenetDurum)this.Owner;
             ListViewItem  item = listView1.SelectedItems[0];
             frm.txtCari.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmKasaKayitlari)
         {
             frmKasaKayitlari frm  = (frmKasaKayitlari)this.Owner;
             ListViewItem     item = listView1.SelectedItems[0];
             frm.txtCariKod.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmCariGenelBorcAlacakDokumu)
         {
             frmCariGenelBorcAlacakDokumu frm = (frmCariGenelBorcAlacakDokumu)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmCariHareketDokumu)
         {
             frmCariHareketDokumu frm  = (frmCariHareketDokumu)this.Owner;
             ListViewItem         item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmFaturaRapor)
         {
             frmFaturaRapor frm  = (frmFaturaRapor)this.Owner;
             ListViewItem   item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmSiparisRapor)
         {
             frmSiparisRapor frm  = (frmSiparisRapor)this.Owner;
             ListViewItem    item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmCekRapor)
         {
             frmCekRapor  frm  = (frmCekRapor)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmSenetRapor)
         {
             frmSenetRapor frm  = (frmSenetRapor)this.Owner;
             ListViewItem  item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmYeniSenet)
         {
             frmYeniSenet frm  = (frmYeniSenet)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text = item.SubItems[0].Text;
         }
         else if (this.Owner is frmHizliCari)
         {
             frmHizliCari frm  = (frmHizliCari)this.Owner;
             ListViewItem item = listView1.SelectedItems[0];
             frm.txtCariKodu.Text      = item.SubItems[0].Text;
             frm.txtCariIsim.Text      = item.SubItems[1].Text;
             frm.txtTel.Text           = item.SubItems[2].Text;
             frm.txtCepTel.Text        = item.SubItems[4].Text;
             frm.txtCariAdres.Text     = item.SubItems[5].Text;
             frm.txtVergiDairesi.Text  = item.SubItems[8].Text;
             frm.txtVergiNumarasi.Text = item.SubItems[9].Text;
         }
         this.Close();
     } catch {
     }
 }