示例#1
0
        public DataTable Select()
        {
            DataTable dt;
            try
            {
            objclsCONTACTS = new Contacts();

            objclsCONTACTS.ID = ID;

            dt = objclsCONTACTS.Select();
            return dt;
            }
            catch(Exception ex)
            {
            throw new Exception(ex.Message);
            }
        }
示例#2
0
        public bool Update()
        {
            try
            {
            objclsCONTACTS = new Contacts();

            objclsCONTACTS.ID = ID;
            objclsCONTACTS.FIRSTNAME = FIRSTNAME;
            objclsCONTACTS.LASTNAME = LASTNAME;
            objclsCONTACTS.PREFIX = PREFIX;
            objclsCONTACTS.SUFFIX = SUFFIX;
            objclsCONTACTS.EMAIL = EMAIL;
            objclsCONTACTS.ADDRESS1 = ADDRESS1;
            objclsCONTACTS.ADDRESS2 = ADDRESS2;
            objclsCONTACTS.CITY = CITY;
            objclsCONTACTS.PROVINCE = PROVINCE;
            objclsCONTACTS.ZIP = ZIP;
            objclsCONTACTS.PHONE = PHONE;
            objclsCONTACTS.FAX = FAX;
            objclsCONTACTS.REQUIRECONFIRM = REQUIRECONFIRM;
            objclsCONTACTS.MODIFIEDDATE = MODIFIEDDATE;

            if(objclsCONTACTS.Update())
            {
                return true;
            }
            return false;
            }
            catch(Exception ex)
            {
            throw new Exception(ex.Message);
            }
        }
示例#3
0
        public bool Delete()
        {
            try
            {
            objclsCONTACTS = new Contacts();

            objclsCONTACTS.ID = ID;

            if(objclsCONTACTS.Delete())
            {
                return true;
            }
            return false;
            }
            catch(Exception ex)
            {
            throw new Exception(ex.Message);
            }
        }