Exemple #1
0
        public bool UpdateById()
        {
            DataCollections _col = new DataCollections(TABLE_NAME);

            _col.Add(DataTypes.NVarchar, "Id", FieldTypes.Criterion, Id, "=");
            return(dao.DoUpdate(_col));
        }
Exemple #2
0
        public bool Update(long _id, int _processType, long _point)
        {
            DataCollections _col = new DataCollections(TABLE_NAME);

            _col.Add(DataTypes.Number, "Id", FieldTypes.Criterion, _id, "=");
            _col.Add(DataTypes.Number, "ProcessType", FieldTypes.DefaultValue, _processType, "");
            _col.Add(DataTypes.Number, "Points", FieldTypes.DefaultValue, _point, "");
            return(dao.DoUpdate(_col));
        }
Exemple #3
0
        public bool UpdateAcepted(long id, long acceptBy)
        {
            DataCollections _col = new DataCollections(TABLE_NAME);

            _col.Add(DataTypes.Number, "Id", FieldTypes.Criterion, id, "=");
            _col.Add(DataTypes.DateTime, "DateAccept", FieldTypes.DefaultValue, DateTime.Now, "");
            _col.Add(DataTypes.Number, "AcceptBy", FieldTypes.DefaultValue, acceptBy, "");
            _col.Add(DataTypes.Number, "IsAccepted", FieldTypes.DefaultValue, 1, "");
            return(dao.DoUpdate(_col));
        }
Exemple #4
0
        public bool UpdateByAdmin()
        {
            DataCollections _col = new DataCollections(TABLE_NAME);

            _col.Add(DataTypes.NVarchar, "ID", FieldTypes.Criterion, Id, "=");
            _col.Add(DataTypes.NVarchar, "IsEnable", FieldTypes.DefaultValue, IsEnable, "");
            _col.Add(DataTypes.Number, "UserType", FieldTypes.DefaultValue, UserType, "");
            _col.Add(DataTypes.Number, "AcceptBy", FieldTypes.DefaultValue, CGlobal.GetUserID(), "");

            return(dao.DoUpdate(_col));
        }
        public bool Update()
        {
            DataCollections _col = GetObject();

            _col.Add(DataTypes.NVarchar, "Id", FieldTypes.Criterion, Id, "=");
            return(dao.DoUpdate(_col));
        }
Exemple #6
0
        public bool Update()
        {
            DataCollections _col = GetObject();

            _col.Add(DataTypes.NVarchar, "Id", FieldTypes.Criterion, Id, "=");
            _col.Add(DataTypes.DateTime, "ModifiedOn", FieldTypes.DefaultValue, DateTime.Now.Date, "");
            return(dao.DoUpdate(_col));
        }
Exemple #7
0
        public bool UpdateStatus(long _id, int _status)
        {
            DataCollections _col = new DataCollections(TABLE_NAME);

            _col.Add(DataTypes.Number, "Id", FieldTypes.Criterion, _id, "=");
            _col.Add(DataTypes.Number, "Status", FieldTypes.DefaultValue, _status, "");
            _col.Add(DataTypes.DateTime, "Date", FieldTypes.DefaultValue, DateTime.Now, "");
            return(dao.DoUpdate(_col));
        }
Exemple #8
0
        public bool Update()
        {
            DataCollections _col = new DataCollections(TABLE_NAME);

            _col.Add(DataTypes.NVarchar, "Id", FieldTypes.Criterion, Id, "=");
            _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.DoUpdate(_col));
        }