Esempio n. 1
0
        public long Insert()
        {
            DataCollections _col = new DataCollections(TABLE_NAME);

            _col.Add(DataTypes.Number, "CreatedBy", FieldTypes.DefaultValue, CGlobal.GetUserID(), "");
            _col.Add(DataTypes.NVarchar, "Content", FieldTypes.DefaultValue, Content, "");
            _col.Add(DataTypes.Number, "NotiType", FieldTypes.DefaultValue, NotiType, "");
            return(dao.DoInsertReturnID(_col));
        }
Esempio n. 2
0
        public long Insert()
        {
            DataCollections _col = GetObject();

            _col.Add(DataTypes.Number, "CreatedBy", FieldTypes.DefaultValue, CGlobal.GetUserID(), "");
            _col.Add(DataTypes.DateTime, "ModifiedOn", FieldTypes.DefaultValue, DateTime.Now.Date, "");
            return(dao.DoInsertReturnID(_col));
        }
Esempio n. 3
0
        public long Insert()
        {
            DataCollections _col = GetObject();

            _col.Add(DataTypes.Number, "UserId", FieldTypes.DefaultValue, CGlobal.GetUserID(), "");
            _col.Add(DataTypes.DateTime, "DateRequest", FieldTypes.DefaultValue, DateTime.Now, "");
            return(dao.DoInsertReturnID(_col));
        }
Esempio n. 4
0
        public long Insert()
        {
            DataCollections _col = new DataCollections(TABLE_NAME);

            _col.Add(DataTypes.Number, "ProblemId", FieldTypes.DefaultValue, ProblemId, "");
            _col.Add(DataTypes.NVarchar, "FileName", FieldTypes.DefaultValue, FileName, "");
            _col.Add(DataTypes.Number, "Point", FieldTypes.DefaultValue, Point, "");
            return(dao.DoInsertReturnID(_col));
        }
Esempio n. 5
0
        public long Insert()
        {
            DataCollections _col = new DataCollections(TABLE_NAME);

            _col.Add(DataTypes.Number, "NotificationID", FieldTypes.DefaultValue, NotificationID, "");
            if (UserID > 0)
            {
                _col.Add(DataTypes.Number, "UserID", FieldTypes.DefaultValue, UserID, "");
            }
            else if (ContestID > 0)
            {
                _col.Add(DataTypes.Number, "ContestID", FieldTypes.DefaultValue, ContestID, "");
            }
            else if (ProblemID > 0)
            {
                _col.Add(DataTypes.Number, "ProblemID", FieldTypes.DefaultValue, ProblemID, "");
            }
            return(dao.DoInsertReturnID(_col));
        }
Esempio n. 6
0
        public long Insert()
        {
            DataCollections _col = new DataCollections(TABLE_NAME);

            _col.Add(DataTypes.Number, "UserID", FieldTypes.DefaultValue, CGlobal.GetUserID(), "");
            _col.Add(DataTypes.DateTime, "TimeSubmiss", FieldTypes.DefaultValue, DateTime.Now, "");

            _col.Add(DataTypes.Number, "ProblemId", FieldTypes.DefaultValue, ProblemId, "");
            _col.Add(DataTypes.Number, "CompilerID", FieldTypes.DefaultValue, CompilerID, "");
            _col.Add(DataTypes.Number, "ProcessType", FieldTypes.DefaultValue, 1, "");
            _col.Add(DataTypes.Number, "ContestId", FieldTypes.DefaultValue, ContestId, "");
            _col.Add(DataTypes.Number, "Points", FieldTypes.DefaultValue, 0, "");

            return(dao.DoInsertReturnID(_col));
        }
Esempio n. 7
0
        public long Insert()
        {
            DataCollections _col = GetObject();

            return(dao.DoInsertReturnID(_col));
        }