Пример #1
0
        protected void btnCihazKaydet_Click(object sender, EventArgs e)
        {
            string  grupad   = grupadi.Text;
            decimal kdvorani = Convert.ToDecimal(kdv.Text);
            decimal otvorani = Convert.ToDecimal(otv.Text);
            decimal oivorani = Convert.ToDecimal(oiv.Text);
            string  firma    = KullaniciIslem.firma();

            using (radiusEntities dc = MyContext.Context(firma))
            {
                CihazMalzeme m = new CihazMalzeme(dc);
                m.GrupEkle(grupad, kdvorani, otvorani, oivorani);
                Ara(dc);
            }

            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            sb.Append(@"<script type='text/javascript'>");
            sb.Append(" alertify.success('Cihaz tanımlandı!');");
            sb.Append("$('#cihazModal').modal('hide');");
            sb.Append(@"</script>");

            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "CihazShowModalScript", sb.ToString(), false);
        }