protected void grdUrun_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName.Equals("del"))
            {
                string        confirmValue = Request.Form["confirm_value2"];
                List <string> liste        = confirmValue.Split(new char[] { ',' }).ToList();
                int           sayimiz      = liste.Count - 1;
                string        deger        = liste[sayimiz];

                if (deger == "Yes")
                {
                    using (radiusEntities dc = MyContext.Context(firma))
                    {
                        int          urunID = Convert.ToInt32(e.CommandArgument);
                        CihazMalzeme s      = new CihazMalzeme(dc);
                        s.garanti_iptal(urunID);
                        goster(dc);
                    }

                    System.Text.StringBuilder sb = new System.Text.StringBuilder();
                    sb.Append(@"<script type='text/javascript'>");
                    sb.Append(" alertify.error('Kayıt silindi!');");

                    sb.Append(@"</script>");
                    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "EditHideModalScript4", sb.ToString(), false);
                }


                else
                {
                    System.Text.StringBuilder sb = new System.Text.StringBuilder();
                    sb.Append(@"<script type='text/javascript'>");
                    sb.Append(" alertify.error('" + deger + "');");

                    sb.Append(@"</script>");
                    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "EditHideModalScript5", sb.ToString(), false);
                }
            }
            else if (e.CommandName.Equals("iade"))
            {
                string[] arg = new string[2];
                arg = e.CommandArgument.ToString().Split(';');
                int urunID = Convert.ToInt32(arg[0]);

                int         index = Convert.ToInt32(arg[1]);
                GridViewRow row   = grdUrun.Rows[index];
                txtIadeTutar.Text = row.Cells[8].Text;
                hdnCustID.Value   = row.Cells[10].Text;

                hdnGarantiID.Value = urunID.ToString();
                System.Text.StringBuilder sb = new System.Text.StringBuilder();
                sb.Append(@"<script type='text/javascript'>");
                sb.Append("$('#onayModal').modal('show');");
                sb.Append(@"</script>");
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "OnayShowModalScript", sb.ToString(), false);
            }
        }