示例#1
0
        private void btnFirmaBul_Click(object sender, EventArgs e)
        {
            if (txtIslemTuru.Text == "Stok Giriş")
            {
                Genel.caritipi = "Satıcı";
            }
            else if (txtIslemTuru.Text == "Stok Çıkış")
            {
                Genel.caritipi = "Alıcı";
            }
            frmCariSorgulama frm = new frmCariSorgulama();

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog();
            txtFirma.Text   = Genel.unvan;
            txtFirmaID.Text = Genel.carino.ToString();
            txtBelge.Focus();
        }
示例#2
0
        private void cbIslemTurleri_SelectedIndexChanged(object sender, EventArgs e)
        {
            txtIslemTuru.Text = cbIslemTurleri.SelectedItem.ToString();
            if (txtIslemTuru.Text == "Tahsilat")
            {
                Genel.caritipi    = "Alıcı";
                txtGiren.ReadOnly = false;
                txtCikan.ReadOnly = true;
            }
            else if (txtIslemTuru.Text == "Ödeme")
            {
                Genel.caritipi    = "Satıcı";
                txtGiren.ReadOnly = true;
                txtCikan.ReadOnly = false;
            }
            frmCariSorgulama frm = new frmCariSorgulama();

            frm.StartPosition = FormStartPosition.CenterScreen;
            frm.ShowDialog();
            txtCariNo.Text = Genel.carino.ToString();
            txtUnvan.Text  = Genel.unvan;
            txtBelge.Focus();
        }