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

            tmpDat = dbDt.GetByID(iID);

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

            dbDt = null;
        }
Ejemplo n.º 2
0
        public int Save()
        {
            CDbEmployee dbDt = new CDbEmployee();
            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 cID)
        {
            CDbEmployee dbDt = new CDbEmployee();

            dbDt.Delete(cID);
        }
Ejemplo n.º 4
0
        public static DataSet GetListForComboByDept(int deptID)
        {
            CDbEmployee dbDt = new CDbEmployee();

            return(dbDt.GetListByDeptForCombo(deptID));
        }
Ejemplo n.º 5
0
        public static SqlDataReader GetListByDept(int deptID)
        {
            CDbEmployee dbDt = new CDbEmployee();

            return(dbDt.GetListByDept(deptID));
        }
Ejemplo n.º 6
0
        public static DataSet GetListForCombo()
        {
            CDbEmployee dbDt = new CDbEmployee();

            return(dbDt.GetListForCombo());
        }
Ejemplo n.º 7
0
        public static SqlDataReader GetListProjectManagers()
        {
            CDbEmployee dbDt = new CDbEmployee();

            return(dbDt.GetListProjectManagers());
        }
Ejemplo n.º 8
0
        public static SqlDataReader GetRelationshipManagerList() //***********************Added 7/13/2015
        {
            CDbEmployee dbDt = new CDbEmployee();

            return(dbDt.GetRelationshipManagerList());
        }
Ejemplo n.º 9
0
        public static SqlDataReader GetList()
        {
            CDbEmployee dbDt = new CDbEmployee();

            return(dbDt.GetList());
        }