using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Windows.Forms;
using MercatorApi;
using MercatorUi;

namespace Booking
{
    public class Customizer : MercatorUi.ICustomizers.ISqlCommandUpdater
    {
        public void SqlCommandUpdate(System.Data.SqlClient.SqlCommand SqlCommandToModify, System.Windows.Forms.Form WindowsForm)
        {
            SqlCommandToModify.CommandText = "declare @n integer \r\n"
                                           + "select @n=count(distinct id_gen) from #lignes_c_tmp \r\n"
                                           + "update #pieds_c_tmp set reference='Nombre de compte(s) généraux utilisés : '+ltrim(str(@n))  \r\n\r\n"
                                           + SqlCommandToModify.CommandText;
        }
    }
}