Ejemplo n.º 1
0
        public void Load(int iID)
        {
            CDbProjectEmployee dbDt = new CDbProjectEmployee();
            string             tmpDat;

            tmpDat = dbDt.GetByID(iID);

            Clear();
            if (tmpDat.Length > 0)
            {
                LoadVals(tmpDat);
            }

            dbDt = null;
        }
Ejemplo n.º 2
0
        public int Save()
        {
            CDbProjectEmployee dbDt = new CDbProjectEmployee();
            string             tmpDat;
            int retVal;

            tmpDat = GetDataString();

            if (base.ID > 0)
            {
                dbDt.SavePrev(tmpDat);
                retVal = base.ID;
            }
            else
            {
                retVal  = dbDt.SaveNew(tmpDat);
                base.ID = retVal;
            }

            dbDt = null;

            return(retVal);
        }
Ejemplo n.º 3
0
        public static void Delete(int projID, int empID, int deptID)
        {
            CDbProjectEmployee dbDt = new CDbProjectEmployee();

            dbDt.Delete(projID, empID, deptID);
        }
Ejemplo n.º 4
0
        public static void Delete(int cID)
        {
            CDbProjectEmployee dbDt = new CDbProjectEmployee();

            dbDt.Delete(cID);
        }
Ejemplo n.º 5
0
        public static void Swap(int projID, int empID, int deptID, int newID)
        {
            CDbProjectEmployee dbDt = new CDbProjectEmployee();

            dbDt.Swap(projID, empID, deptID, newID);
        }
Ejemplo n.º 6
0
        public static SqlDataReader GetListActiveWithHoursAllDept(DateTime startDate, DateTime endDate)
        {
            CDbProjectEmployee dbDt = new CDbProjectEmployee();

            return(dbDt.GetListActiveWithHoursAllDept(startDate, endDate));
        }
Ejemplo n.º 7
0
        public static SqlDataReader GetListActiveWithHoursProject(int Proj_ID, DateTime startDate, DateTime endDate)
        {
            CDbProjectEmployee dbDt = new CDbProjectEmployee();

            return(dbDt.GetListActiveWithHoursProject(Proj_ID, startDate, endDate));
        }
Ejemplo n.º 8
0
        public static SqlDataReader GetListActive()
        {
            CDbProjectEmployee dbDt = new CDbProjectEmployee();

            return(dbDt.GetListActive());
        }