Exemple #1
0
    /// <summary>
    /// 获取会员编号
    /// </summary>
    /// <returns></returns>
    public static string getBH()
    {
        string bh = "";

        switch (SfType.getType())
        {
        case "D":
            string storeid = HttpContext.Current.Session["Store"].ToString();
            bh = BLL.Registration_declarations.DetialQueryBLL.GetNumberByStoreID(storeid);
            break;

        case "G":
            bh = BLL.CommonClass.CommonDataBLL.getManageID(3);
            break;

        case "H":
            if (HttpContext.Current.Session["bh"] == null)
            {
                bh = HttpContext.Current.Session["Member"].ToString();
            }
            else
            {
                bh = HttpContext.Current.Session["bh"].ToString();
            }
            break;
        }

        return(bh);
    }
    protected void Page_Load(object sender, System.EventArgs e)
    {
        //检查相应权限
        Permissions.MemRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);
        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));
        //Permissions.CheckMemberPermission();

        if (Request.QueryString["bh"] != null)
        {
            Session["jgbh"] = Request.QueryString["bh"];
        }

        //检查编号是否合法

        bool flag = registermemberBLL.isNet(Session["jglx"].ToString(), this.getBH(SfType.getType()), Convert.ToString(Session["jgbh"]));

        // if (!Jiegou.isValid(Convert.ToString(Session["jgbh"]), SfType.getType(),isAnZhi(), Convert.ToInt32(Session["jgqs"])))
        if (!flag)
        {
            Response.Write("你不能查看该网络!");
            return;
        }


        if (!IsPostBack)
        {
            if (Session["jgbh"] == null || Session["jgqs"] == null || Session["jglx"] == null)
            {
                Response.Write("调用错误!");
                Response.End();
            }
            //if (Request.QueryString["flag"] != null)
            //{
            //    this.wanluo.InnerHtml = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a  href=ShowNetworkBiaoGeView.aspx?bh=" + Request.QueryString["flag"] + ">" + Request.QueryString["flag"] + "</a>";
            //}
            //else
            //{
            //    this.wanluo.InnerHtml = "";
            //}
            showData();

            SetDaoHang();
        }
    }
Exemple #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //检查店铺权限
        Permissions.MemRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);
        // Permissions.CheckMemberPermission();//验证是否已登录


        //判断是否正确调用(bh,type,qs值是否已经传到)
        if (Request.QueryString["bh"] == null || Request.QueryString["type"] == null || Request.QueryString["qs"] == null)
        {
            Response.Write("调用错误!");
            Response.End();
        }

        if (!IsPostBack)
        {
            CommonDataBLL.BindQishuList(DropDownList1, false);

            this.DropDownList1.SelectedValue = Request.QueryString["qs"];
            bool flag = registermemberBLL.isNet(Session["jglx"].ToString(), this.getBH(SfType.getType()), Convert.ToString(Session["jgbh"]));

            // if (jiegou.isValid(Request.QueryString["bh"].ToString(), sfType.getMemberBH(), isAnzhi(Request.QueryString["type"]), Convert.ToInt32(Request.QueryString["qs"])))
            if (flag)
            {
                string    url = "ShowLinkView.aspx?type=" + Request.QueryString["type"] + "&qs=" + Request.QueryString["qs"] + "&bh=";
                DataTable dt  = Jiegou.Link_Map(Convert.ToInt32(Convert.ToInt32(Request.QueryString["qs"])), isAnzhi(Request.QueryString["type"]), Request.QueryString["bh"], url);
                ViewState["bh"]           = Request.QueryString["bh"];
                this.Repeater1.DataSource = new DataView(dt, "", "id desc", DataViewRowState.CurrentRows);
                this.Repeater1.DataBind();
            }
            else
            {
                Response.Write(GetTran("000892", "您不能查看该网络"));
                Response.End();
            }
        }
        Translations();
    }
 protected void btn_Submit_Click(object sender, System.EventArgs e)
 {
     getInfo(getBH(SfType.getType()), this.RadioButtonList_Type);
 }