Beispiel #1
0
 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
         {
         }
     }
 }
Beispiel #2
0
 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();
         }
     }
 }
Beispiel #3
0
 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
 }