public int AddBudGet(t_EE_DepartmentalApportionment model)
        {
            string sql = $@"insert into t_EE_DepartmentalApportionment(EneryUserID,CollTypeID,GeneralBudget) 
          values({model.EneryUserID},{model.CollTypeID},{model.GeneralBudget})";

            return(ExecuteSqlCommand(sql));
        }
Esempio n. 2
0
        public t_EE_DepartmentalApportionment GetenBudgetByeneyidAndCoID(int cotyid, int eneryid)
        {
            t_EE_DepartmentalApportionment data = new t_EE_DepartmentalApportionment();

            try
            {
                data = _dbFactory.depar.GetenBudgetByeneyidAndCoID(cotyid, eneryid);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(data);
        }
Esempio n. 3
0
        public t_EE_DepartmentalApportionment GetenBudgetByID(int id)
        {
            t_EE_DepartmentalApportionment data = new t_EE_DepartmentalApportionment();

            try
            {
                data = _dbFactory.depar.GetenBudgetByID(id);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(data);
        }
Esempio n. 4
0
        public int UpdateBudGet(t_EE_DepartmentalApportionment model)
        {
            int n = 0;

            try
            {
                n = _dbFactory.depar.UpdateBudGet(model);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(n);
        }
        public int UpdateBudGet(t_EE_DepartmentalApportionment model)
        {
            string sql = $@"update t_EE_DepartmentalApportionment set EneryUserID={model.EneryUserID},CollTypeID={model.CollTypeID},GeneralBudget={model.GeneralBudget} where ID={model.ID}";

            return(ExecuteSqlCommand(sql));
        }