예제 #1
0
        public ResultResponse insertUpdateHocVien(VD_HOCVIEN _tusinh)
        {
            string _Msg        = string.Empty;
            long   _Result     = 0;
            string _XMLContent = string.Empty;

            _XMLContent  = "<root>";
            _XMLContent += "<HOCVIEN>";
            _XMLContent += "<ID>" + _tusinh.ID + "</ID>";
            _XMLContent += "<FullName>" + _tusinh.FullName + "</FullName>";
            _XMLContent += "<CMND>" + _tusinh.CMND + "</CMND>";
            _XMLContent += "<PhapDanh>" + _tusinh.PhapDanh + "</PhapDanh>";
            _XMLContent += "<Birthday>" + _tusinh.Birthday + "</Birthday>";
            _XMLContent += "<Phone1>" + _tusinh.Phone1 + "</Phone1>";
            _XMLContent += "<Phone2>" + _tusinh.Phone2 + "</Phone2>";
            _XMLContent += "<Address>" + _tusinh.Address + "</Address>";
            _XMLContent += "<zIndex>" + _tusinh.zIndex + "</zIndex>";
            _XMLContent += "<AreasID>" + _tusinh.AreasID + "</AreasID>";
            _XMLContent += "<CourseID>" + _tusinh.CourseID + "</CourseID>";
            _XMLContent += "<UserTypeID>" + _tusinh.UserTypeID + "</UserTypeID>";
            _XMLContent += "<IsApproval>" + _tusinh.IsApproval + "</IsApproval>";
            _XMLContent += "</HOCVIEN>";
            _XMLContent += "</root>";


            _rr       = new ResultResponse();
            _DBAccess = new DBController();
            _DBAccess.Insert("WEB_VD_INSERT_HOCVIEN", _XMLContent, ref _Msg, ref _Result);
            _rr.Msg    = _Msg;
            _rr.Result = _Result;

            return(_rr);
        }