예제 #1
0
    private void initData()
    {
        validateMember userobj = MasterPageOpration.getMasterControl(this.Page.Master, "Muser");

        wgiAdUnionSystem.BLL.wgi_usersite bll = new wgiAdUnionSystem.BLL.wgi_usersite();
        Helper.HelperDropDownList.BindData(ddlsite, bll.getListByUserId(userobj.suser.userid).Tables[0], "sitename", "siteid", 0);
        ddlsite.Items.Insert(0, new ListItem("--请选择--", "-1"));
        ddlsite.SelectedIndex = 0;
        txtstart.Text = DateTime.Today.Date.ToString("yyyy-MM") + "-01";
        txtend.Text = DateTime.Today.Date.ToString("yyyy-MM-dd");
    }
예제 #2
0
    private void initData()
    {
        validateMember userobj = MasterPageOpration.getMasterControl(this.Page.Master, "Muser");
        //得到网站列表
        wgi_usersite bll = new wgi_usersite();
        Helper.HelperDropDownList.BindData(ddlsite, bll.getListByUserId(userobj.suser.userid).Tables[0], "sitename", "siteid",0);
        ddlsite.Items.Insert(0, new ListItem("--请选择--", ""));
        ddlsite.SelectedIndex = 0;

        //得到广告主数据
        hidadhost.Value = Request["host"];
        hidadid.Value = Request["id"];
        hidadtype.Value = Request["adtype"];
        hidpaytype.Value = Request["paytype"];

        //预览区
        lbltest.Text = "<b>请先选择网站!</b><br />";
    }