Example #1
0
            public Models.tCRIFile GetModel()
            {
                Models.tCRIFile model = new Models.tCRIFile();

                model.IDCRIFile   = this.IDCRIFile;
                model.vchFileName = this.vchFileName;
                model.dtmDateFile = this.dtmDateFile;
                model.bitClosed   = this.bitClosed;
                model.intPointer  = this.intPointer;
                model.intErrors   = this.intErrors;
                model.vchType     = this.vchType;

                return(model);
            }
Example #2
0
        public object Insert(Models.tCRIFile pModel)
        {
            NewRow();

            Columns.vchFileName = pModel.vchFileName;
            Columns.dtmDateFile = pModel.dtmDateFile;
            Columns.bitClosed   = pModel.bitClosed;
            Columns.intPointer  = pModel.intPointer;
            Columns.intErrors   = pModel.intErrors;
            Columns.vchType     = pModel.vchType;

            object lResult = Apply(TConnectionSQL.ExecuteType.ExecuteScalar);

            return(lResult);
        }
Example #3
0
        public object Update(Models.tCRIFile pModel)
        {
            if (base.Eof() || (this.Columns.IDCRIFile != pModel.IDCRIFile))
            {
                GetDataByID(pModel.IDCRIFile);
            }

            Columns.vchFileName = pModel.vchFileName;
            Columns.dtmDateFile = pModel.dtmDateFile;
            Columns.bitClosed   = pModel.bitClosed;
            Columns.intPointer  = pModel.intPointer;
            Columns.intErrors   = pModel.intErrors;
            Columns.vchType     = pModel.vchType;

            object lResult = Apply(TConnectionSQL.ExecuteType.ExecuteScalar);

            return(lResult);
        }