コード例 #1
0
        void IntfDalCooperative.insertToGridCooperative(GridView gridView, string param, string paramLike, string valueLike)
        {
            #region declaration
            IntfDalCooperative serviceCooperative = new ImplDalCooperative();
            #endregion

            #region implementation
            this.strCommande  = "SELECT cooperative.numCooperative, cooperative.nomCooperative,";
            this.strCommande += " cooperative.sigleCooperative,cooperative.adresseCooperative,";
            this.strCommande += " cooperative.zone, cooperative.prenomResponsable,";
            this.strCommande += " cooperative.nomResponsable FROM cooperative";
            this.strCommande += " WHERE " + paramLike + " LIKE '%" + valueLike + "%'";
            this.strCommande += " ORDER BY " + param;

            gridView.DataSource = serviceCooperative.getDataTableCooperative(this.strCommande);
            gridView.DataBind();
            #endregion
        }