protected void gvCooperative_RowCommand(object sender, GridViewCommandEventArgs e) { this.divIndicationText("", "Red"); if (e.CommandName.Equals("select")) { this.afficheCooperative(e.CommandArgument.ToString()); } else if (e.CommandName.Equals("deleteV")) { if (serviceGeneral.delete("cooperative", "numCooperative", e.CommandArgument.ToString()) == 1) { this.initialiseGridCooperative(); } else { } } }
protected void gvSociete_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName.Equals("select")) { afficheSociete(e.CommandArgument.ToString()); } else if (e.CommandName.Equals("deleteV")) { int isDelete = serviceGeneral.delete("societe", "numSociete", e.CommandArgument.ToString()); if (isDelete == 0) { this.divIndicationText(ReSociete.suppressionImpossible, "Red"); } else { this.initialiseGridSociete(); } } }
protected void gvOrganisme_RowCommand(object sender, GridViewCommandEventArgs e) { #region implementation if (e.CommandName.Equals("select")) { this.afficheOrganisme(e.CommandArgument.ToString()); } else if (e.CommandName.Equals("deleteV")) { int isDelete = serviceGeneral.delete("organisme", "numOrganisme", e.CommandArgument.ToString()); if (isDelete > 0) { this.initialiseGrid(); } else { this.divIndicationText(ReOrganisme.suppressionImpossible, "Red"); } } #endregion }