Beispiel #1
0
        protected void grdCihaz_SelectedIndexChanged(object sender, EventArgs e)
        {
            using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma()))
            {
                ServisIslemleri s = new ServisIslemleri(dc);
                cihazGoster(s);
                CihazMalzeme c = new CihazMalzeme(dc);
                if (grdCihaz.SelectedValue != null)
                {
                    int id   = Convert.ToInt32(grdCihaz.SelectedValue);
                    var repo = c.tekCihaz(id);
                    txtFiyatMalzeme.Text   = repo.satis.ToString();
                    drdBirim.SelectedValue = repo.satilan_birim_id.ToString();
                    tutarHesap();
                }
            }

            string cihaz = (grdCihaz.SelectedRow.FindControl("btnRandom") as LinkButton).Text;
            string sure  = grdCihaz.SelectedRow.Cells[4].Text;

            txtCihazAdiGoster.Value = cihaz;
            hdnGarantiSure.Value    = sure.ToString();
        }