예제 #1
0
        protected void btnCihazUpdate_Click(object sender, EventArgs e)
        {
            int grupid = Int32.Parse(hdnGrupID.Value);

            string  grupad   = grupadid.Text;
            decimal kdvorani = Convert.ToDecimal(kdvd.Text);
            decimal otvorani = Convert.ToDecimal(otvd.Text);
            decimal oivorani = Convert.ToDecimal(oivd.Text);


            using (radiusEntities dc = MyContext.Context(KullaniciIslem.firma()))
            {
                CihazMalzeme m = new CihazMalzeme(dc);


                m.GrupDuzenle(grupid, grupad, kdvorani, otvorani, oivorani);
                Ara(dc);
            }

            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            sb.Append(@"<script type='text/javascript'>");
            sb.Append(" alertify.success('Güncelleme tamamlandı!');");
            sb.Append("$('#updateModal').modal('hide');");
            sb.Append(@"</script>");

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