Пример #1
0
        protected void btnIade_Click(object sender, EventArgs e)
        {
            string firma = KullaniciIslem.firma();
            int urunID = Int32.Parse(hdnGarantiID.Value);
            decimal iade_tutar = Decimal.Parse(txtIadeTutar.Text);
            string aciklama = txtIadeAciklama.Text;
            int custid = Int32.Parse(hdnCustID.Value);
            using (radiusEntities dc=MyContext.Context(firma))
            {
                CihazMalzeme s = new CihazMalzeme(dc);
                s.garanti_iade(urunID, iade_tutar, aciklama, custid,User.Identity.Name);
                if (GridView3.SelectedValue != null)
                {
                    int id = Convert.ToInt32(GridView3.SelectedValue);
                    musteriGoster(dc);
                    UrunAra(dc,id);
                }
            }
           

            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            sb.Append(@"<script type='text/javascript'>");
            sb.Append(" alertify.error('Cihaz iade alındı!');");
            sb.Append("$('#onayModal').modal('hide');");
            sb.Append(@"</script>");
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "EditHideModalScript3", sb.ToString(), false);

        }