Esempio n. 1
0
        public string DeleteBudget(Guid id)
        {
            Dictionary <string, object> dictionnaire = new Dictionary <string, object>();

            dictionnaire.Add("id", id.ToString());

            return(sqlManager.ExecProcedure("DeleteBudget", dictionnaire));
        }
Esempio n. 2
0
        public string DeleteEncaissement(string id)
        {
            Dictionary <string, object> dictionnaire = new Dictionary <string, object>();

            dictionnaire.Add("id", id);

            return(sqlManager.ExecProcedure("DeleteEncaissement", dictionnaire));
        }
Esempio n. 3
0
        public string GetAllAccountPositionAtDate(string _date)
        {
            Dictionary <string, object> dictionnaire = new Dictionary <string, object>();
            var date = DateTime.Parse(_date, new System.Globalization.CultureInfo("fr-FR"));

            dictionnaire.Add("date", date.ToString("dd/MM/yyyy"));
            return(sqlManager.ExecProcedure("GetAllAccountsPositionAtDate", dictionnaire));
        }
Esempio n. 4
0
        public string GetAccountType()
        {
            string retourSQL = sqlManager.ExecProcedure("getAccountType");
            List <tmpClassAccount> retour = JsonConvert.DeserializeObject <List <tmpClassAccount> >(retourSQL);

            Dictionary <string, List <string> > dict = new Dictionary <string, List <string> >();

            foreach (var item in retour)
            {
                if (!dict.ContainsKey(item.banque))
                {
                    dict.Add(
                        item.banque,
                        new List <string>());
                }
                dict[item.banque].Add(item.compte);
            }
            return(JsonConvert.SerializeObject(dict));
        }
        public string GetClassification()
        {
            List <tmpClassClasif> retour = new List <tmpClassClasif>();

            retour = JsonConvert.DeserializeObject <List <tmpClassClasif> >(
                sqlManager.ExecProcedure("GetClassification").Replace("\\r\\n", "").Replace("\\", ""));
            Dictionary <ClassificationDTO, List <SousClassificationDTO> > dict =
                new Dictionary <ClassificationDTO, List <SousClassificationDTO> >();

            foreach (var item in retour)
            {
                if (!dict.ContainsKey(new ClassificationDTO(item.id_classification)))
                {
                    dict.Add(
                        new ClassificationDTO(item.id_classification,
                                              item.classification),
                        new List <SousClassificationDTO>());
                }
                dict[new ClassificationDTO(item.id_classification)].Add(
                    new SousClassificationDTO(item.id_sous_classification,
                                              item.sous_classification));
            }
            return(JsonConvert.SerializeObject(dict));
        }
 public string GetPayementMethod()
 {
     return(sqlManager.ExecProcedure("GetPayementMethod"));
 }
Esempio n. 7
0
 public string GetAllSociete()
 {
     return(sqlManager.ExecProcedure("GetAllSociete"));
 }