/// <summary> /// 删除版本信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void OnCommand(object sender, DirectEventArgs e) { if (e.ExtraParams["Command"].ToString() == "delete") { int id = Convert.ToInt32(e.ExtraParams["ID"]); //传入id 进行删除 if (Sjqd_SoftVersionsService.DeleteSoftVersion(id) > 0) { X.Msg.Alert("消息", "删除成功").Show(); e.ExtraParamsResponse.Add(new Ext.Net.Parameter("success", "1", false)); } else { X.Msg.Alert("消息", "删除失败").Show(); e.ExtraParamsResponse.Add(new Ext.Net.Parameter("success", "0", false)); } } }