Пример #1
0
        private void kasaKayitlariToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmKasaKayitlari frm = new frmKasaKayitlari();

            frm.Name = "KASA KAYITLARI";
            AddPropertiesForm(frm);
            ShowInTab(frm);
            //ShowForm(frm, false);
        }
Пример #2
0
 void Sec()
 {
     try {
         DataGridViewRow dr = dataGridView1.CurrentRow;
         if (this.Owner is frmKasaKayitlari)
         {
             frmKasaKayitlari frm = (frmKasaKayitlari)this.Owner;
             frm.txtOzelGelirGiderKodu.Text = dr.Cells[clId.Name].Value.ToStringOrEmpty();
             frm.txtOzelGelirGiderAdi.Text  = dr.Cells[clIsmi.Name].Value.ToStringOrEmpty();
             frm.txtOzelKdvOrani.Text       = dr.Cells[clKdvOrani.Name].Value.ToStringOrEmpty();
         }
         else if (this.Owner is frmOzelGelirGiderRapor)
         {
             frmOzelGelirGiderRapor frm = (frmOzelGelirGiderRapor)this.Owner;
             frm.txtOzelGelirGiderKod.Text = dr.Cells[clId.Name].Value.ToStringOrEmpty();
         }
         this.Close();
     } catch (Exception exc) {
         MessageBox.Show(exc.Message);
         LogWrite.Write(exc);
     }
 }
Пример #3
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 {
     }
 }