Exemple #1
0
        public bool DelActivityC()
        {
            SqlPar par = SqlXml.GetSearchSql("Activity", "删除活动信息");

            par.SetParValues(
                this.activity_id
                );
            return(DB.ExeSql(par) > 0);
        }
Exemple #2
0
        public bool Update()
        {
            SqlPar par = SqlXml.GetSearchSql("ManageUser", "修改管理员", 0, !this.pass.IsNullOrEmpty(), true);

            par.SetParValues(this.uname, this.id,
                             this.pass.IsNullOrEmpty() ? null : this.pass,
                             this.name, this.mobile, "Main,EditPass,welcome," + this.flag);
            return(DB.ExeSql(par) > 0);
        }
Exemple #3
0
        public bool UpdateSiteC()
        {
            SqlPar par = SqlXml.GetSearchSql("Site", "编辑场地");

            par.SetParValues(
                this.site_name, this.site_area, this.site_img, this.site_using_time_total, this.site_desc, this.site_id
                );
            return(DB.ExeSql(par) > 0);
        }
Exemple #4
0
        public bool UpdateUserInfo()
        {
            SqlPar par = SqlXml.GetSearchSql("User", "编辑用户信息");

            par.SetParValues(
                this.user_phone, this.user_id, this.user_name
                );
            return(DB.ExeSql(par) > 0);
        }
Exemple #5
0
        public bool UpdateActivityC()
        {
            SqlPar par = SqlXml.GetSearchSql("Activity", "编辑活动信息");

            par.SetParValues(
                this.activity_creater_name, this.activity_name, this.activity_site_id,
                this.activity_type,
                this.activity_min_people, this.activity_max_people, this.activity_con,
                this.activity_work_con, this.activity_img_vedio_url, this.activity_address,
                this.activity_start_time, this.activity_end_time, this.activity_signup_end_time,
                this.activity_state, this.activity_id
                );
            return(DB.ExeSql(par) > 0);
        }