Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.keywords = DTRequest.GetQueryString("keywords");
            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("manager_log", DTEnums.ActionEnum.View.ToString()); //检查权限

                //删除权限
                if (!ChkAuthority("manager_log", DTEnums.ActionEnum.Delete.ToString()))
                {
                    this.delBtnPannel.Visible = false;
                }

                model = GetAdminInfo(); //取得当前管理员信息
                RptBind("id>0" + CombSqlTxt(keywords), "add_time desc,id desc");
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     order_no = DTRequest.GetQueryString("order_no");
     if (order_no == "")
     {
         JscriptMsg("传输参数不正确!", "back", "Error");
         return;
     }
     if (!new BLL.orders().Exists(order_no))
     {
         JscriptMsg("订单不存在或已被删除!", "back", "Error");
         return;
     }
     if (!Page.IsPostBack)
     {
         ShowInfo(order_no);
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     this.channel_id = DTRequest.GetQueryInt("mid");
     Cid             = DTRequest.GetQueryString("cid");
     if (Cid == "298")
     {
         Response.Redirect("productHall.aspx?mid=3&cid=298");
     }
     if (Cid == "299")
     {
         Response.Redirect("productAdList.aspx?mid=3&cid=299");
     }
     if (!IsPostBack)
     {
         Bind(1);
         RptBind();
     }
 }
Exemple #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        this.prolistview = Utils.GetCookie("article_list_view"); //显示方式
        classid          = DTRequest.GetQueryString("classid");  //上级栏目ID

        if (!Page.IsPostBack)
        {
            //登录验证
            Cms.Model.C_admin admin = adminUser.GetLoginState();
            Application["adminname"] = admin.user_name;
            setqx();//设置权限
            string where = "select * from C_article where parentId=" + Convert.ToInt32(classid) + " order by ordernumber desc,articleId desc";
            this.AspNetPager1.AlwaysShow  = true;
            this.AspNetPager1.PageSize    = 10;
            this.AspNetPager1.RecordCount = bllarticle.GetRecordCount("parentId=" + Convert.ToInt32(classid) + "");
            this.RepeaterDataBind(where);
        }
    }
Exemple #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            keywords = DTRequest.GetQueryString("keywords");
            user_id  = DTRequest.GetQueryString("user_id");

            if (user_id == "")
            {
                JscriptMsg("传输参数不正确!", "back", "Error");
                return;
            }

            pageSize = GetPageSize(GetType().Name + "_page_size");
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("manage_users_charge_withdraw", DTEnums.ActionEnum.View.ToString()); //检查权限
                RptBind();
            }
        }
Exemple #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.id     = DTRequest.GetQueryInt("id");
            this.action = DTRequest.GetQueryString("action");

            //只有在编辑状态时 才绑定数据
            if (!string.IsNullOrEmpty(this.action))
            {
                if (!IsPostBack)
                {
                    WebStatusBind(); PartnerBind(); BrandsBind(); WebSiteTypeBind();
                    if (this.action == ActionEnum.Edit.ToString())
                    {
                        ShowInfo(id);
                    }
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            //keywords = DTRequest.GetQueryString("keywords");
            selectedAgent = DTRequest.GetQueryInt("selectedAgent");

            pageSize = GetPageSize(GetType().Name + "_page_size");
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("agent_buyed_claims", DTEnums.ActionEnum.View.ToString()); //检查权限
                var keywords = DTRequest.GetQueryString("keywords");
                if (!string.IsNullOrEmpty(keywords))
                {
                    txtKeywords.Text = keywords;
                }
                TreeBind();
                RptBind();
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     this.id       = DTRequest.GetQueryString("id");
     this.keywords = DTRequest.GetQueryString("keywords");
     //this.pageSize = GetPageSize(8); //每页数量
     this.page = DTRequest.GetQueryInt("page", 1);
     if (!Page.IsPostBack)
     {
         this.txtKeywords.Text    = this.keywords;
         this.rptList1.DataSource = GetList(this.id, 0, this.pageSize, this.page, CombSqlTxt(this.keywords, ""), "  id desc", out this.totalCount);
         this.rptList1.DataBind();
         //绑定页码
         //txtPageNum.Text = this.pageSize.ToString();
         string pageUrl = Utils.CombUrlTxt("order_list.aspx", "keywords={0}&page={1}", this.keywords, "__id__");
         //PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
     }
     _userName = Session["user_name"].ToString();
 }
Exemple #9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.type_id = DTRequest.GetQueryInt("type_id");
            //this.keywords = DTRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("user_message", DTEnums.ActionEnum.View.ToString()); //检查权限
                var keywords = DTRequest.GetQueryString("keywords");               //关键字查询
                if (!string.IsNullOrEmpty(keywords))
                {
                    txtKeywords.Text = keywords;
                }
                Model.manager manager = GetAdminInfo();
                RptBind("id>0 and accept_user_name in (select u.user_name from dt_users u inner join dt_user_groups g on g.id=u.group_id inner join li_user_group_access_keys k on k.user_group=g.id where k.owner_manager=" + manager.id + ")" + CombSqlTxt(this.type_id, txtKeywords.Text), "post_time desc,id desc");
            }
        }
Exemple #10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ChkAdminLevel("order_list", DTEnums.ActionEnum.View.ToString()); //检查权限
            this.transportOrderId = DTRequest.GetQueryInt("transportOrderId");
            _goods        = DTRequest.GetQueryInt("goods");
            _customer1    = DTRequest.GetQueryInt("customer1");
            _customer2    = DTRequest.GetQueryInt("customer2");
            _beginTime    = DTRequest.GetQueryString("beginTime");
            _endTime      = DTRequest.GetQueryString("endTime");
            this.keywords = DTRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                TreeBind(""); //绑定类别
                RptBind("TransportOrderId = " + this.transportOrderId + "" + CombSqlTxt(_goods, _customer1, _customer2, _beginTime, _endTime, this.keywords), "Id desc");
            }
        }
Exemple #11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.keywords = DTRequest.GetQueryString("keywords");
            this.pageSize = GetPageSize(10);
            if (!IsPostBack)
            {
                //检查权限
                ChkAdminLevel("user_list", DTEnums.ActionEnum.View.ToString());

                //删除权限
                if (!ChkAuthority("user_list", DTEnums.ActionEnum.Delete.ToString()))
                {
                    this.delBtnPannel.Visible = false;
                }
                string return_term = "0=0";
                RptBind(return_term + CombSqlTxt(this.keywords), "status asc,id asc");
            }
        }
Exemple #12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //this.keywords = DTRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("user_audit", DTEnums.ActionEnum.View.ToString()); //检查权限

                var keywords = DTRequest.GetQueryString("keywords");             //关键字查询
                if (!string.IsNullOrEmpty(keywords))
                {
                    txtKeywords.Text = keywords;
                }

                RptBind("status>0 and status<3" + CombSqlTxt(txtKeywords.Text), "reg_time desc,id desc");
            }
        }
Exemple #13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.channel_id = DTRequest.GetQueryInt("channel_id");
            this.keywords   = DTRequest.GetQueryString("keywords");
            this.property   = DTRequest.GetQueryString("property");

            if (this.channel_id == 0)
            {
                JscriptMsg("频道参数不正确!", "back", "Error");
                return;
            }
            this.pageSize = GetPageSize(15); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel(channel_id, ActionEnum.View.ToString()); //检查权限
                RptBind("id>0" + CombSqlTxt(this.channel_id, this.keywords, this.property), "add_time desc");
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.customer_id      = DTRequest.GetQueryInt("customer_id");
            this.storein_order_id = DTRequest.GetQueryInt("storein_order_id");
            this.vehicle_id       = DTRequest.GetQueryInt("vehicle_id");
            this.beginTime        = DTRequest.GetQueryString("beginTime");
            this.endTime          = DTRequest.GetQueryString("endTime");
            this.keywords         = DTRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量

            if (!Page.IsPostBack)
            {
                ChkAdminLevel("received_money", DTEnums.ActionEnum.View.ToString()); //检查权限
                TreeBind("");
                RptBind(CombSqlTxt(this.customer_id, this.storein_order_id, this.vehicle_id, this.beginTime, this.endTime, this.keywords), "A.ReceivedTime DESC");
            }
        }
Exemple #15
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string Url = Request.Url.ToString();

            if (string.IsNullOrEmpty(Utils.GetCookie("UserCheckPwd")))
            {
                if (string.IsNullOrEmpty(DTRequest.GetQueryString("State")))
                {
                    Response.Redirect("RePw.aspx?Url=" + Url + "");
                }
            }
            this.keywords = DTRequest.GetQueryString("keywords");
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("app_oauth", DTEnums.ActionEnum.View.ToString()); //檢查許可權
                RptBind("id>0" + CombSqlTxt(this.keywords), "sort_id asc,id desc");
            }
        }
Exemple #16
0
        private void Upload(HttpContext context)
        {
            bool iswater     = false;                 //默认不打水印
            bool isthumbnail = false;                 //默认不生成缩略图

            int upType = DTRequest.GetInt("type", 0); //上传类型  0图片、1文件、2视频
            int width  = DTRequest.GetInt("width", siteConfig.thumbnailwidth);
            int height = DTRequest.GetInt("height", siteConfig.thumbnailheight);

            HttpPostedFile upFile = context.Request.Files["Filedata"];

            if (DTRequest.GetQueryString("IsWater") == "1")
            {
                iswater = true;
            }
            if (DTRequest.GetQueryString("IsThumbnail") == "1")
            {
                isthumbnail = true;
            }
            if (null == upFile)
            {
                context.Response.Write("{\"status\": 0, \"msg\": \"请选择要上传文件!\"}");
                return;
            }
            //开始上传
            Model.upLoad model = new UpLoad().fileSaveAs(upFile, upType, isthumbnail, iswater, width, height);
            if (model.status > 0)
            {
                JsonHelper.WriteJson(context, new
                {
                    status = 1,
                    msg    = model.msg,
                    name   = model.name,
                    path   = model.path,
                    thumb  = model.thumb,
                    size   = model.size,
                    ext    = model.ext
                });
            }
            else
            {
                JsonHelper.WriteJson(context, new { status = 0, msg = model.msg });
            }
        }
Exemple #17
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = DTRequest.GetQueryString("action");

            this.id       = DTRequest.GetQueryInt("id");
            this.pageSize = GetPageSize(GetType().Name + "_page_size"); //每页数量
            page          = DTRequest.GetQueryInt("page", 1);
            if (!string.IsNullOrEmpty(_action) && _action == DTEnums.ActionEnum.Edit.ToString())
            {
                this.action = DTEnums.ActionEnum.Edit.ToString();//修改类型
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back", "Error");
                    return;
                }
                if (!new BLL.department().Exists(this.id))
                {
                    JscriptMsg("部门不存在或已被删除!", "back", "Error");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("department_list", DTEnums.ActionEnum.View.ToString()); //检查权限
                TreeBind();                                                           //绑定导航菜单
                if (action == DTEnums.ActionEnum.Edit.ToString())                     //修改
                {
                    ShowInfo(this.id);
                }
                else if (!string.IsNullOrEmpty(_action) && _action == "pagedepartment")
                {
                    id = DTRequest.GetQueryInt("id");
                    ShowInfo(id);
                }
                else
                {
                    if (this.id > 0)
                    {
                        this.ddlParentId.SelectedValue = this.id.ToString();
                    }
                    txtTitle.Attributes.Add("ajaxurl", "../../tools/admin_ajax.ashx?action=department_validate");
                }
            }
        }
Exemple #18
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ChkAdminLevel("loan_loaners", DTEnums.ActionEnum.View.ToString()); //检查权限
            action = DTRequest.GetQueryString("action");
            if (!int.TryParse(Request.QueryString["id"], out id))
            {
                JscriptMsg("传输参数不正确!", "back", "Error");
                return;
            }

            if (!Page.IsPostBack)
            {
                if (!string.IsNullOrEmpty(action) && (action == DTEnums.ActionEnum.Edit.ToString() || action == DTEnums.ActionEnum.Audit.ToString()))
                {
                    var loaner = context.li_loaners.FirstOrDefault(q => q.id == id);
                    if (loaner == null)
                    {
                        JscriptMsg("记录不存在或已被删除!", "back", "Error");
                        return;
                    }

                    if (action == DTEnums.ActionEnum.Audit.ToString())
                    {
                        rblStatus.Enabled                = true;
                        txtAge.Enabled                   = false;
                        txtCencus.Enabled                = false;
                        txtJob.Enabled                   = false;
                        txtWorkingAt.Enabled             = false;
                        txtWorkingUnit.Enabled           = false;
                        txtEducationalBackground.Enabled = false;
                        rblMaritalStatus.Enabled         = false;
                        txtIncome.Enabled                = false;
                        txtLawsuit.Enabled               = false;
                        txtQuota.Enabled                 = false;
                    }

                    ShowInfo(id);
                }
                else // Add
                {
                    txtName.Enabled = true;
                }
            }
        }
Exemple #19
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.id       = DTRequest.GetQueryInt("id");
            this.class_id = DTRequest.GetQueryInt("class_id");
            this.backUrl  = DTRequest.GetQueryString("backurl");
            string _action = DTRequest.GetQueryString("action");

            if (this.class_id == 0 || !new BLL.plugin_menu_class().Exists(this.class_id))
            {
                JscriptMsg("传输参数不正确!", "back");
                return;
            }
            if (!string.IsNullOrEmpty(_action) && _action == DTEnums.ActionEnum.Edit.ToString())
            {
                this.action = DTEnums.ActionEnum.Edit.ToString();//修改类型
                if (id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back");
                    return;
                }
                if (!new BLL.plugin_menu().Exists(this.id))
                {
                    JscriptMsg("记录不存在或已被删除!", "back");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                //检查权限
                ChkAdminLevel("plugin_menu_list", DTEnums.ActionEnum.Show.ToString());

                //绑定类别
                TreeBind();

                if (action == DTEnums.ActionEnum.Edit.ToString()) //修改
                {
                    ShowInfo(this.id);
                }
                else
                {
                    ddlParentId.SelectedValue = this.id.ToString();
                }
            }
        }
Exemple #20
0
        public void ProcessRequest(HttpContext context)
        {
            //取得处事类型
            string action = DTRequest.GetQueryString("action");

            switch (action)
            {
            case "config":     //编辑器配置
                EditorConfig(context);
                break;

            case "uploadimage":     //编辑器上传图片
                EditorUploadImage(context);
                break;

            case "uploadvideo":     //编辑器上传视频
                EditorUploadVideo(context);
                break;

            case "uploadfile":     //编辑器上传附件
                EditorUploadFile(context);
                break;

            case "uploadscrawl":     //编辑器上传涂鸦
                EditorUploadScrawl(context);
                break;

            case "listimage":     //编辑器浏览图片
                EditorListImage(context);
                break;

            case "listfile":     //编辑器浏览文件
                EditorListFile(context);
                break;

            case "catchimage":     //编辑器远程抓取图片
                EditorCatchImage(context);
                break;

            default:     //普通上传
                UpLoadFile(context);
                break;
            }
        }
Exemple #21
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = DTRequest.GetQueryString("action");

            this.channel_id = DTRequest.GetQueryInt("channel_id");
            this.id         = DTRequest.GetQueryInt("id");

            if (this.channel_id == 0)
            {
                JscriptMsg("頻道參數不正確!", "back", "Error");
                return;
            }
            if (!string.IsNullOrEmpty(_action) && _action == DTEnums.ActionEnum.Edit.ToString())
            {
                this.action = DTEnums.ActionEnum.Edit.ToString();//修改類型
                if (this.id == 0)
                {
                    JscriptMsg("傳輸參數不正確!", "back", "Error");
                    return;
                }
                if (!new DTcms.BLL.category().Exists(this.id))
                {
                    JscriptMsg("類別不存在或已被刪除!", "back", "Error");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                TreeBind(this.channel_id);                                         //綁定類別
                if (action == DTEnums.ActionEnum.Edit.ToString())                  //修改
                {
                    ChkAdminLevel(channel_id, DTEnums.ActionEnum.Edit.ToString()); //檢查許可權
                    ShowInfo(this.id);
                }
                else
                {
                    ChkAdminLevel(channel_id, DTEnums.ActionEnum.Add.ToString()); //檢查許可權
                    if (this.id > 0)
                    {
                        this.ddlParentId.SelectedValue = this.id.ToString();
                    }
                }
            }
        }
Exemple #22
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //取得返回参数
            string state = DTRequest.GetQueryString("state");
            string code  = DTRequest.GetQueryString("code");

            string access_token = string.Empty;
            string expires_in   = string.Empty;
            string client_id    = string.Empty;
            string openid       = string.Empty;

            if (Session["oauth_state"] == null || Session["oauth_state"].ToString() == "" || state != Session["oauth_state"].ToString())
            {
                Response.Write("出错啦,state未初始化!");
                return;
            }
            if (string.IsNullOrEmpty(code))
            {
                Response.Write("出错啦,无法获取用户授权信息!");
                return;
            }

            //第一步:获取Access Token
            Dictionary <string, object> dic = taobao_helper.get_access_token(code);

            if (dic == null || !dic.ContainsKey("access_token"))
            {
                Response.Write("出错了,无法获取Access Token,请检查App Key是否正确!");
                return;
            }

            access_token = dic["access_token"].ToString();
            expires_in   = dic["expires_in"].ToString();
            openid       = dic["taobao_user_id"].ToString();
            //储存获取数据用到的信息
            Session["oauth_name"]         = "taobao";
            Session["oauth_access_token"] = access_token;
            Session["oauth_openid"]       = openid;

            //第二步:跳转到指定页面
            //Response.Write(access_token);
            Response.Redirect(new Web.UI.BasePage().linkurl("oauth_login"));
            return;
        }
Exemple #23
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = DTRequest.GetQueryString("action");

            this.channel_id = DTRequest.GetQueryInt("channel_id");
            this.id         = DTRequest.GetQueryInt("id");

            if (this.channel_id == 0)
            {
                JscriptMsg("频道参数不正确!", "back");
                return;
            }
            this.channel_name = new BLL.channel().GetChannelName(this.channel_id); //取得频道名称
            if (!string.IsNullOrEmpty(_action) && _action == DTEnums.ActionEnum.Edit.ToString())
            {
                this.action = DTEnums.ActionEnum.Edit.ToString();//修改类型
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back");
                    return;
                }
                if (!new BLL.article_category().Exists(this.id))
                {
                    JscriptMsg("类别不存在或已被删除!", "back");
                    return;
                }
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("channel_" + this.channel_name + "_category", DTEnums.ActionEnum.View.ToString()); //检查权限
                TreeBind(this.channel_id);                                                                       //绑定类别
                if (action == DTEnums.ActionEnum.Edit.ToString())                                                //修改
                {
                    ShowInfo(this.id);
                }
                else
                {
                    if (this.id > 0)
                    {
                        this.ddlParentId.SelectedValue = this.id.ToString();
                    }
                }
            }
        }
Exemple #24
0
        private void UpLoadFile(HttpContext context)
        {
            Model.sysconfig sysConfig = new BLL.sysconfig().loadConfig();
            //检查是否允许匿名上传

            /*if (sysConfig.fileanonymous == 0 && !new ManagePage().IsAdminLogin() && !new BasePage().IsUserLogin())
             * {
             *  context.Response.Write("{\"status\": 0, \"msg\": \"禁止匿名非法上传!\"}");
             *  return;
             * }*/

            string _delfile = DTRequest.GetString("DelFilePath");                                    //要删除的文件
            string fileName = DTRequest.GetString("name");                                           //文件名

            byte[] byteData     = FileHelper.ConvertStreamToByteBuffer(context.Request.InputStream); //获取文件流
            bool   _iswater     = false;                                                             //默认不打水印
            bool   _isthumbnail = false;                                                             //默认不生成缩略图

            if (DTRequest.GetQueryString("IsWater") == "1")
            {
                _iswater = true;
            }
            if (DTRequest.GetQueryString("IsThumbnail") == "1")
            {
                _isthumbnail = true;
            }
            if (byteData.Length == 0)
            {
                context.Response.Write("{\"status\": 0, \"msg\": \"请选择要上传文件!\"}");
                return;
            }
            UpLoad upLoad = new UpLoad();
            string msg    = upLoad.FileSaveAs(byteData, fileName, _isthumbnail, _iswater);

            //删除已存在的旧文件
            if (!string.IsNullOrEmpty(_delfile))
            {
                upLoad.DeleteFile(_delfile);
            }
            //返回成功信息
            context.Response.Write(msg);
            context.Response.End();
        }
Exemple #25
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.site_id  = DTRequest.GetQueryInt("site_id");
            this.keywords = DTRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("plugin_link", DTEnums.ActionEnum.View.ToString()); //检查权限
                SiteBind();                                                       //绑定网点
                string strWhere = "id>0";
                if (this.site_id > 0)
                {
                    strWhere = "site_id=" + this.site_id;
                    this.ddlSiteId.SelectedValue = this.site_id.ToString();
                }
                RptBind(strWhere + CombSqlTxt(this.keywords), "sort_id asc,add_time desc");
            }
        }
Exemple #26
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.aid = DTRequest.GetQueryInt("aid");
            //
            this.keywords = DTRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("plugin_advert_bar", DTEnums.ActionEnum.View.ToString()); //检查权限
                var keywords = DTRequest.GetQueryString("keywords");
                if (!string.IsNullOrEmpty(keywords))
                {
                    txtKeywords.Text = keywords;
                }
                TreeBind(); //绑定广告位
                RptBind("id>0" + CombSqlTxt(this.aid, txtKeywords.Text), "is_lock asc,sort_id asc,add_time desc");
            }
        }
Exemple #27
0
        protected void Page_Load(object sender, EventArgs e)
        {
            this.status         = DTRequest.GetQueryInt("status");
            this.payment_status = DTRequest.GetQueryInt("payment_status");
            this.express_status = DTRequest.GetQueryInt("express_status");
            this.keywords       = DTRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("order_list", DTEnums.ActionEnum.View.ToString()); //检查权限
                //删除权限
                if (!ChkAuthority("order_list", DTEnums.ActionEnum.Delete.ToString()))
                {
                    this.btnDelete.Visible = false;
                }
                RptBind("id>0" + CombSqlTxt(this.status, this.payment_status, this.express_status, this.keywords), "status asc,add_time desc,id desc");
            }
        }
        protected string skinName = string.Empty; //模板目录

        protected void Page_Load(object sender, EventArgs e)
        {
            skinName = DTRequest.GetQueryString("skin");
            if (string.IsNullOrEmpty(skinName))
            {
                JscriptMsg("传输参数不正确!", "back");
                return;
            }
            if (skinName.IndexOf("..") != -1)
            {
                JscriptMsg("模板目录名有误!", "back");
                return;
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("sys_site_templet", DTEnums.ActionEnum.View.ToString()); //检查权限
                RptBind(skinName);
            }
        }
Exemple #29
0
        protected string channel_name = string.Empty; //频道名称

        protected void Page_Load(object sender, EventArgs e)
        {
            this.channel_id   = DTRequest.GetQueryInt("channel_id");
            this.channel_name = new BLL.site_channel().GetChannelName(this.channel_id); //取得频道名称
            this.keywords     = DTRequest.GetQueryString("keywords");

            this.pageSize = GetPageSize(10); //每页数量

            if (this.channel_id == 0)
            {
                JscriptMsg("频道参数不正确!", "back");
                return;
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("channel_" + this.channel_name + "_spec", DTEnums.ActionEnum.View.ToString()); //检查权限
                RptBind("parent_id=0 and channel_id=" + channel_id.ToString() + CombSqlTxt(keywords), "sort_id asc,id desc");
            }
        }
Exemple #30
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string _action = DTRequest.GetQueryString("action");

            if (!string.IsNullOrEmpty(_action) && _action == DTEnums.ActionEnum.Edit.ToString())
            {
                this.action = DTEnums.ActionEnum.Edit.ToString();//修改类型
                this.id     = DTRequest.GetQueryInt("id");
                if (this.id == 0)
                {
                    JscriptMsg("传输参数不正确!", "back");
                    return;
                }
                if (!new BLL.advert_banner().Exists(this.id))
                {
                    JscriptMsg("记录不存在或已被删除!", "back");
                    return;
                }
            }
            else
            {
                this.aid = DTRequest.GetQueryInt("aid");
                if (this.aid < 1)
                {
                    base.JscriptMsg("传输参数不正确!", "back");
                    return;
                }
                if (!new BLL.advert().Exists(this.aid))
                {
                    base.JscriptMsg("广告位不存在或已删除!", "back");
                    return;
                }
                this.LitTitle.Text = new BLL.advert().GetTitle(this.aid);
            }
            if (!Page.IsPostBack)
            {
                ChkAdminLevel("manager_advert", DTEnums.ActionEnum.View.ToString()); //检查权限
                if (action == DTEnums.ActionEnum.Edit.ToString())                    //修改
                {
                    ShowInfo(this.id);
                }
            }
        }