Esempio n. 1
0
        private void simpleButton5_Click(object sender, EventArgs e)
        {
            frmMusteriAra MusteriAra = new frmMusteriAra();

            //MusteriAra.fkFirma.Tag = fkFirma;
            MusteriAra.ShowDialog();
            //if (MusteriAra.fkFirma.Tag.ToString() == fkFirma)
            // {
            //BakiyeGetirSecindex(fkFirma);//yavaşlatıyor
            //FiyatGruplariDegis(lueFiyatlar.EditValue.ToString());
            //  return fkFirma;
            //}
            DataTable dt = DB.GetData("select * from Firmalar with(nolock) where pkFirma=" + pkFirma_id);

            if (dt.Rows.Count > 0)
            {
                teMusteri.Tag  = pkFirma_id;
                teMusteri.Text = dt.Rows[0]["Firmaadi"].ToString();
            }
            dt.Dispose();
            teMusteri.Tag  = DB.PkFirma;
            teMusteri.Text = DB.FirmaAdi;

            //string fkFirma = MusteriAra.fkFirma.Tag.ToString();
            //teMusteri.Tag = fkFirma;
            MusteriAra.Dispose();
        }
Esempio n. 2
0
        private void btnCari_Click(object sender, EventArgs e)
        {
            frmMusteriAra ma = new frmMusteriAra();

            ma.ShowDialog();
            pkFirma.Text = DB.PkFirma.ToString();
            //teCariAdi.Text = DB.FirmaAdi;
        }
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            frmMusteriAra MusteriAra = new frmMusteriAra();

            MusteriAra.ShowDialog();

            teFirmaid.Tag = MusteriAra.fkFirma.Tag.ToString();

            MusteriBilgileri(teFirmaid.Tag.ToString());
        }
Esempio n. 4
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            frmMusteriAra MusteriAra = new frmMusteriAra();

            //MusteriAra.fkFirma.Tag = fkFirma;
            MusteriAra.ShowDialog();
            teFirmaid.Tag = MusteriAra.fkFirma.Tag.ToString();

            DataTable dt = DB.GetData("select * from Firmalar with(nolock) where pkFirma=" + teFirmaid.Tag.ToString());

            if (dt.Rows.Count == 0)
            {
                return;
            }
            teFirmaid.Text = dt.Rows[0]["Firmaadi"].ToString();
        }
Esempio n. 5
0
        private string musteriara()
        {
            string fkFirma = "1", ozelkod = "0", firmadi = "";// MusteriAra.fkFirma.AccessibleDescription;

            frmMusteriAra MusteriAra = new frmMusteriAra();

            MusteriAra.fkFirma.Tag = fkFirma;
            MusteriAra.ShowDialog();

            fkFirma = MusteriAra.fkFirma.Tag.ToString();

            DataTable dt = DB.GetData("select pkFirma,Firmaadi,OzelKod from Firmalar where pkFirma=" + fkFirma);

            firmadi = dt.Rows[0]["Firmaadi"].ToString();
            ozelkod = dt.Rows[0]["OzelKod"].ToString();
            MusteriAra.Dispose();

            //Satis1Firma.Tag = fkFirma;
            //Satis1Baslik.Text = ozelkod + "-" + firmadi;
            //Satis1Baslik.ToolTip = Satis1Baslik.Text;
            return(fkFirma);
        }