Esempio n. 1
0
        public DataSet GetAffectedWPTiming(ITimingAndInterco timimgandInterco, DBGenericEntity dbGenericEntity)
        {
            DataSet ds = new DataSet();

            ds = dbGenericEntity.GetCustomDataSet("GetAffectedWPTiming", timimgandInterco) as DataSet;
            return(ds);
        }
        /// <summary>
        /// This method is used for selecting an object from the database
        /// </summary>
        /// <param name="associate">This is the Associate object that holds all information that is required so that the select should be made.</param>
        /// <param name="dbGenericEntity">This is the Associate Entity.</param>
        /// <returns></returns>
        public DataSet SelectInitialBudgetTest(IInitialBudget initialBudget, DBGenericEntity dbGenericEntity)
        {
            DataSet tableVerify = new DataSet();

            tableVerify = dbGenericEntity.SelectObject(initialBudget) as DataSet;
            return(tableVerify);
        }
        public DataSet SelectProjectFunctionTest(IProjectFunction projectFunction, DBGenericEntity dbGenericEntity)
        {
            DataSet tableVerify = new DataSet();

            tableVerify = dbGenericEntity.SelectObject(projectFunction) as DataSet;
            return(tableVerify);
        }
        public DataSet SelectRevisedBudgetCostsTest(IRevisedBudget revisedBudget, DBGenericEntity dbGenericEntity)
        {
            DataSet tableVerify = new DataSet();

            tableVerify = dbGenericEntity.GetCustomDataSet("GetRevisedBudgetCosts", revisedBudget) as DataSet;
            return(tableVerify);
        }
        public DataSet SelectCurrentProjectTest(ICurrentProject currentProject, DBGenericEntity dbGenericEntity)
        {
            DataSet tableVerify = new DataSet();

            tableVerify = dbGenericEntity.SelectObject(currentProject) as DataSet;
            return(tableVerify);
        }
        /// <summary>
        /// This method is used for deleting an object from the database
        /// </summary>
        /// <param name="associate">This is the Associate object that holds all information that is required so that the delete should be made.</param>
        /// <param name="dbGenericEntity">This is the Associate Entity.</param>
        /// <returns></returns>
        private int DeleteInitialBudgetTest(IInitialBudget initialBudget, DBGenericEntity dbGenericEntity)
        {
            int rowCount = dbGenericEntity.DeleteObject(initialBudget);

            return(rowCount);
        }
 private int InsertInitialBudgetTest(IInitialBudget initialBudget, DBGenericEntity dbGenericEntity)
 {
     initialBudget.Id = dbGenericEntity.InsertObject(initialBudget);
     return(initialBudget.Id);
 }
        /// <summary>
        /// This method is used for inserting an object into the database
        /// </summary>
        /// <param name="associate">This is the Associate object that holds all information that is required so that the insert should be made.</param>
        /// <param name="dbGenericEntity">This is the Associate Entity.</param>
        /// <returns></returns>
        private int InsertInitialBudgetMasterTest(IInitialBudget initialBudget, DBGenericEntity dbGenericEntity)
        {
            int rowCount = dbGenericEntity.ExecuteCustomProcedure("InsertIntialBudgetMaster", initialBudget);

            return(rowCount);
        }
        public int DeleteProjectTest(IProject project, DBGenericEntity dbGenericEntity)
        {
            int rowCount = dbGenericEntity.DeleteObject(project);

            return(rowCount);
        }
 public int InsertProjectTest(IProject project, DBGenericEntity dbGenericEntity)
 {
     project.Id = dbGenericEntity.InsertObject(project);
     return(project.Id);
 }
        /// <summary>
        /// This method is used for inserting an object into the database
        /// </summary>
        /// <param name="associate">This is the Associate object that holds all information that is required so that the insert should be made.</param>
        /// <param name="dbGenericEntity">This is the Associate Entity.</param>
        /// <returns></returns>
        private int InsertRevisedBudgetMasterTest(IRevisedBudget revisedBudget, DBGenericEntity dbGenericEntity)
        {
            int rowCount = dbGenericEntity.ExecuteCustomProcedure("InsertRevisedBudgetMaster", revisedBudget);

            return(rowCount);
        }
 public int InsertWorkPackageTest(IWorkPackage workPackage, DBGenericEntity dbGenericEntity)
 {
     workPackage.Id = dbGenericEntity.InsertObject(workPackage);
     return(workPackage.Id);
 }
 public void SetEntity(DBGenericEntity dbEntity)
 {
     this.dbEntity = dbEntity;
 }
        /// <summary>
        /// This method is used for deleting an object from the database
        /// </summary>
        /// <param name="associate">This is the Associate object that holds all information that is required so that the delete should be made.</param>
        /// <param name="dbGenericEntity">This is the Associate Entity.</param>
        /// <returns></returns>
        private int DeleteRevisedBudgetTest(IRevisedBudget revisedBudget, DBGenericEntity dbGenericEntity)
        {
            int rowCount = dbGenericEntity.DeleteObject(revisedBudget);

            return(rowCount);
        }
 private int InsertRevisedBudgetTest(IRevisedBudget revisedBudget, DBGenericEntity dbGenericEntity)
 {
     revisedBudget.Id = dbGenericEntity.InsertObject(revisedBudget);
     return(revisedBudget.Id);
 }
 public int InsertCostCenterTest(ICostCenter costCenter, DBGenericEntity dbGenericEntity)
 {
     costCenter.Id = dbGenericEntity.InsertObject(costCenter);
     return(costCenter.Id);
 }
        public int DeleteCostCenterTest(ICostCenter costCenter, DBGenericEntity dbGenericEntity)
        {
            int rowCount = dbGenericEntity.DeleteObject(costCenter);

            return(rowCount);
        }
        public int DeleteWorkPackageTest(IWorkPackage workPackage, DBGenericEntity dbGenericEntity)
        {
            int rowCount = dbGenericEntity.DeleteObject(workPackage);

            return(rowCount);
        }