Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.QueryString["bh"] != null)
        {
            Session["jgbh"] = Request.QueryString["bh"];

            string r = Convert.ToString(Session["jgbh"]);

            string s = sfType.getMemberBH();
            bool   y = isAnZhi();
            if (y)
            {
                //Permissions.CheckManagePermission(Standard.Config.ENUM_COMPANY_PERMISSION.JIESUAN_QueryAnZhiNetworkView);
            }
            else
            {
                //Permissions.CheckManagePermission(Standard.Config.ENUM_COMPANY_PERMISSION.JIESUAN_QueryTuiJianNetworkView);
            }

            //this.DropDownList_QiShu.SelectedValue=Session["jgqs"].ToString();
            int  u    = Convert.ToInt32(Session["jgqs"]);
            bool flag = registermemberBLL.isNet(Session["jglx"].ToString(), SfType.getBH(), Convert.ToString(Session["jgbh"]));
            if (!flag)
            {
                Response.Write("你不能查看该网络!");
                return;
            }
        }
        if (Session["jgbh"] == null)
        {
            Session["jgbh"] = "8888888888";
        }
        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));
        if (!Page.IsPostBack)
        {
            BLL.CommonClass.CommonDataBLL.BindQishuList(DropDownList_QiShu, false);

            if (Session["jgcw"] == null)
            {
                Session["jgcw"] = 5;
            }
            if (Session["jgbh"] == null || Session["jgqs"] == null || Session["jglx"] == null)
            {
                //Response.Write("调用错误!");
                //Response.End();
            }

            if (Request.QueryString["SelectGrass"] != null)
            {
                DropDownList_QiShu.SelectedIndex = Convert.ToInt32(Request.QueryString["SelectGrass"].ToString());
            }
            if (Request.QueryString["isanzhi"] != null)
            {
                ViewState["isanzhi"] = Request.QueryString["isanzhi"];
            }


            this.WangLuoTu(Session["jgbh"].ToString(), "", 1, 3, Convert.ToInt32(DropDownList_QiShu.SelectedValue), "");
        }
    }
Exemple #2
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);
    }
Exemple #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Permissions.MemRedirect(Page, Permissions.redirUrl);

            Response.Redirect("CommonlyNetworkII.aspx");

            CommonDataBLL.BindQishuList(DropDownList_QiShu, false);


            ViewState["dc"] = SfType.getBH().ToString();

            string qsnumber = Request.QueryString["qsNumber"];
            if (string.IsNullOrEmpty(qsnumber))
            {
                TextBox1.Text = ViewState["dc"].ToString();
            }
            else
            {
                TextBox1.Text = qsnumber;
            }

            GetCYWLT();
        }
    }
Exemple #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Permissions.MemRedirect(Page, Permissions.redirUrl);

            CommonDataBLL.BindQishuList(DropDownList_QiShu, false);


            ViewState["dc"] = SfType.getBH().ToString();

            string qsnumber = Request.QueryString["qsNumber"];
            if (string.IsNullOrEmpty(qsnumber))
            {
                TextBox1.Text = ViewState["dc"].ToString();
            }
            else
            {
                TextBox1.Text = qsnumber;
            }

            Performance.ExpectNum = Convert.ToInt32(DropDownList_QiShu.SelectedValue);
            Performance.Number    = TextBox1.Text.Trim();

            GetCYWLT();
            Translations();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        //在此处放置用户代码以初始化页面
        //检查相应权限
        Response.Cache.SetExpires(DateTime.Now);

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

        string r = Convert.ToString(Session["jgbh"]);

        string s = SfType.getBH();

        bool y = isAnZhi();

        if (y)//验证是否有权限
        {
            Permissions.CheckManagePermission(EnumCompanyPermission.BalanceQueryAnZhiNetworkView);
        }
        else
        {
            Permissions.CheckManagePermission(EnumCompanyPermission.BalanceQueryTuiJianNetworkView);
        }
        int  u    = Convert.ToInt32(Session["jgqs"]);
        bool flag = registermemberBLL.isNet(Session["jglx"].ToString(), SfType.getBH(), Convert.ToString(Session["jgbh"]));

        // if (!Jiegou.isValid(Convert.ToString(Session["jgbh"]), getMemberBH(), isAnZhi(), Convert.ToInt32(Session["jgqs"])))
        if (flag == false)
        {
            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 = "<a  href=ShowNetworkBiaoGeView.aspx?bh=" + Request.QueryString["flag"] + ">" + Request.QueryString["flag"] + "</a>";
            //}
            //else
            //{
            //    this.wanluo.InnerHtml = "";
            //}


            showData();

            SetDaoHang();
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Permissions.ComRedirect(Page, Permissions.redirUrl);

            CommonDataBLL.BindQishuList(DropDownList_QiShu, false);

            DataTable ky = WTreeBLL.GetKYWL(Session["Company"].ToString(), "1");
            Translations();
            string firstky = Request.QueryString["EndNumber"] + "";
            bool   isQX    = false;
            for (int i = 0; i < ky.Rows.Count; i++)
            {
                if (i == 0)
                {
                    if (firstky == "")
                    {
                        firstky = ky.Rows[i]["number"].ToString();
                    }
                }

                if (firstky == ky.Rows[i]["number"].ToString())
                {
                    isQX = true;
                }

                LitMaxWl.Text = LitMaxWl.Text + "<a href='CommonlyNetworkII.aspx?EndNumber=" + ky.Rows[i]["number"].ToString() + "' style='color:gray;font-weight:" + (firstky == ky.Rows[i]["number"].ToString() ? "bold" : "") + "'>" + ky.Rows[i]["number"] + "</a> / ";
            }

            if (!isQX)
            {
                return;
            }


            ViewState["dc"] = SfType.getBH().ToString();

            string qsnumber = Request.QueryString["qsNumber"];
            if (string.IsNullOrEmpty(qsnumber))
            {
                TextBox1.Text = ViewState["dc"].ToString();
            }
            else
            {
                TextBox1.Text = qsnumber;
            }

            Performance.ExpectNum = Convert.ToInt32(DropDownList_QiShu.SelectedValue);
            Performance.Number    = TextBox1.Text.Trim();

            GetCYWLT();
        }
    }
Exemple #7
0
    /// <summary>
    /// 取得要查询网络的起点编号
    /// </summary>
    /// <param name="isDian">是否是店调用</param>
    /// <returns>起点编号</returns>
    private string getBH()
    {
        string bh = TextBox1.Text;

        if (bh.Length == 0)
        {
            bh = SfType.getBH();
        }
        else
        {
            bh = TextBox1.Text;
        }

        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 #9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(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(GetTran("000894", "调用错误"));
            Response.End();
        }

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

            this.DropDownList1.SelectedValue = Request.QueryString["qs"];
            bool flag = registermemberBLL.isNet(Session["jglx"].ToString(), SfType.getBH(), 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();
    }
Exemple #10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.MemRedirect(Page, Permissions.redirUrl);

        EndNumber = Request.QueryString["endNumber"] + "";
        if (EndNumber == "")
        {
            EndNumber = SfType.getBH().ToString();
        }

        StartNumber = Request.QueryString["ThNumber"];

        #region 当前会员,是否有权限访问该网络的会员

        if (EndNumber != Session["Member"].ToString())
        {
            Response.Write("<script>alert('" + GetTran("000892", "您不能查看该网络") + "');window.location.href='First.aspx';</script>");
            return;
        }

        if (WTreeBLL.IsRoot(StartNumber, WTreeBLL.GetMaxQS(), Session["Member"].ToString()) == false)
        {
            Response.Write("<script>alert('" + GetTran("000892", "您不能查看该网络") + "');window.location.href='First.aspx';</script>");
            return;
        }

        #endregion

        if (!IsPostBack)
        {
            BindQS();

            BindData();
            Translations();
        }
    }
Exemple #11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.MemRedirect(Page, Permissions.redirUrl);

        string firstky = SfType.getBH().ToString();

        ViewState["ky"] = firstky;

        string startBH = Request.QueryString["Number"] + "";

        if (startBH == "")
        {
            startBH = firstky;
        }

        if (!IsPostBack)
        {
            BindQS();
            DDLQs.SelectedValue = Request.QueryString["qs"];

            BindNet(startBH, firstky, DDLQs.SelectedValue);
        }
        Translations();
    }
Exemple #12
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);

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


            string r = Convert.ToString(Session["jgbh"]);

            string s = SfType.getBH();

            Permissions.CheckManagePermission(EnumCompanyPermission.BalanceQueryTuiJianNetworkView);

            int  u    = Convert.ToInt32(Session["jgqs"]);
            bool flag = registermemberBLL.isNet(Session["jglx"].ToString(), SfType.getBH(), Convert.ToString(Session["jgbh"]));

            // if (!Jiegou.isValid(Convert.ToString(Session["jgbh"]), getMemberBH(), isAnZhi(), Convert.ToInt32(Session["jgqs"])))
            if (flag == false)
            {
                Response.Write(GetTran("000892", "您不能查看该网络"));
                return;
            }
        }

        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));
        if (!Page.IsPostBack)
        {
            BLL.CommonClass.CommonDataBLL.BindQishuList(dropdownlist_qishu, false);
            ShowNumber();

            if (Request.QueryString["cengshu"] == null)
            {
                if (Session["jgcw"] == null)
                {
                    this.txtceng.Text = "3";
                }
                else
                {
                    this.txtceng.Text = Session["jgcw"].ToString();
                }
            }
            else
            {
                this.txtceng.Text = Request.QueryString["cengshu"].ToString();
            }
            if (Session["jgbh"] == null || Session["jgqs"] == null || Session["jglx"] == null)
            {
                Response.Write(GetTran("000894", "调用错误"));
                Response.End();
            }

            if (Request.QueryString["SelectGrass"] != null)
            {
                dropdownlist_qishu.SelectedIndex = Convert.ToInt32(Request.QueryString["SelectGrass"].ToString());
            }
            if (Request.QueryString["isanzhi"] != null)
            {
                ViewState["isanzhi"] = Request.QueryString["isanzhi"];
            }

            if (Session["jgbh"] != null)
            {
                if (Session["jgbh"].ToString() != "")
                {
                    this.txtbianhao.Text = Session["jgbh"].ToString();
                    int cengshu = 0;
                    if (this.txtceng.Text.Trim() == "")
                    {
                        cengshu = 3;
                    }
                    else
                    {
                        try
                        {
                            cengshu = Convert.ToInt32(this.txtceng.Text.Trim());
                        }
                        catch
                        {
                            Response.Write("<script>alert('" + GetTran("000897", "显示层数输入格式错误") + "!');</script>");
                            return;
                        }
                    }

                    this.WangLuoTu(Session["jgbh"].ToString(), "", Convert.ToInt32(ViewState["isanzhi"].ToString()), cengshu, Convert.ToInt32(dropdownlist_qishu.SelectedValue), "");

                    ViewState["qs"]      = dropdownlist_qishu.SelectedValue;
                    ViewState["cengshu"] = cengshu;
                    ViewState["startbh"] = txtbianhao.Text.Trim();
                }
            }

            //------------------------
            SetDaoHang();
        }



        Translations();
    }
Exemple #13
0
    /// <summary>
    /// 网络图导航
    /// </summary>
    private void SetDaoHang(string firstky)
    {
        /* if (Session["jglx"] == null)
         * {
         *   Session["jglx"] = "tj";
         * }
         * if (TextBox1.Text != null && TextBox1.Text != "")
         * {
         *   divDH.InnerHtml = GetTran("007032", "链路图") + ":";
         *   if (Session["DHNumbers"] == null)
         *   {
         *       Session["DHNumbers"] = new string[2] { TextBox1.Text, "" };
         *       divDH.InnerHtml += "<a href='MemberNetMap.aspx?net=" + ViewState["isAnZhi_TuiJian"].ToString() + "&SelectGrass=" + DropDownList_QiShu.SelectedValue + "&bianhao=" + TextBox1.Text + "'>" + CommonDataBLL.GetPetNameByNumber(TextBox1.Text) + "</a> →";
         *   }
         *   else
         *   {
         *       string[] nums = Session["DHNumbers"] as string[];
         *
         *       if (nums[0] != TextBox1.Text)
         *       {
         *           if (nums[1] != TextBox1.Text)
         *           {
         *               nums[1] = TextBox1.Text;
         *           }
         *
         *           IList<string> lists = Jiegou.GetNumberForTop(nums[0], Convert.ToInt32(DropDownList_QiShu.SelectedItem.Value), Session["jglx"].ToString() == "az");
         *           int count = 0;
         *           foreach (string str in lists)
         *           {
         *               if (nums[1] == str)
         *                   count++;
         *           }
         *
         *           if (count == 0)
         *               divDH.InnerHtml += "<a href='MemberNetMap.aspx?net=" + ViewState["isAnZhi_TuiJian"].ToString() + "&SelectGrass=" + DropDownList_QiShu.SelectedValue + "&bianhao=" + nums[1] + "'>" + CommonDataBLL.GetPetNameByNumber(nums[1]) + "</a> →";
         *           else
         *           {
         *               string highNum = nums[1];
         *               string numbers = "";
         *               do
         *               {
         *                   numbers += highNum + ",";
         *                   highNum = Jiegou.GetHighNumber(highNum, Session["jglx"].ToString() == "az");
         *               } while (highNum != nums[0] && highNum != "8888888888" && highNum != "1111111111");
         *               numbers += nums[0] + ",";
         *
         *               for (int i = numbers.Split(new char[] { ',' }).Length - 1; i >= 0; i--)
         *               {
         *                   if (numbers.Split(new char[] { ',' })[i] != "")
         *                       divDH.InnerHtml += "<a href='MemberNetMap.aspx?net=" + ViewState["isAnZhi_TuiJian"].ToString() + "&SelectGrass=" + DropDownList_QiShu.SelectedValue + "&bianhao=" + numbers.Split(new char[] { ',' })[i] + "'>" + CommonDataBLL.GetPetNameByNumber(numbers.Split(new char[] { ',' })[i]) + "</a> →";
         *               }
         *
         *           }
         *       }
         *       else
         *           divDH.InnerHtml += "<a href='MemberNetMap.aspx?net=" + ViewState["isAnZhi_TuiJian"].ToString() + "&SelectGrass=" + DropDownList_QiShu.SelectedValue + "&bianhao=" + nums[0] + "'>" + CommonDataBLL.GetPetNameByNumber(nums[0]) + "</a> →";
         *
         *       Session["DHNumbers"] = nums;
         *   }
         * }
         * else
         * {
         *   Session["DHNumbers"] = "";
         *   Session["DHNumbers"] = null;
         * }*/

        DataTable dt = null;

        HiddenField1.Value = Request.QueryString["EndNumber"] + "";
        if (HiddenField1.Value == "")
        {
            HiddenField1.Value = firstky;
        }
        if (ViewState["isAnZhi_TuiJian"].ToString() == "az")
        {
            dt = WTreeBLL.SetLianLuTu_C(HiddenField1.Value == "" ? SfType.getBH() : HiddenField1.Value, TextBox1.Text, DropDownList_QiShu.SelectedValue);
        }
        else
        {
            dt = WTreeBLL.SetLianLuTu_C_II(HiddenField1.Value == "" ? SfType.getBH() : HiddenField1.Value, TextBox1.Text, DropDownList_QiShu.SelectedValue);
        }
        divDH.InnerHtml = "";
        for (int i = 0; i < dt.Rows.Count; i++)
        {
            divDH.InnerHtml += "<a href='MemberNetMap.aspx?EndNumber=&net=" + ViewState["isAnZhi_TuiJian"].ToString() + "&SelectGrass=" + DropDownList_QiShu.SelectedValue + "&bianhao=" + dt.Rows[i][1].ToString().Split(' ')[0] + "'>" + dt.Rows[i][1].ToString().Split(' ')[0] + "(" + dt.Rows[i][1].ToString().Split(' ')[0] + ")" + "</a> →";
        }
    }
Exemple #14
0
    public void BindData()
    {
        string qs = DDLQs.SelectedValue;

        if (IsRoot(StartNumber, qs, SfType.getBH().ToString()) == false)
        {
            string maxqs = WTreeBLL.GetMaxQS();
            string ts    = GetTran("007315", "您没有权限") + "!";

            if (IsRoot(StartNumber, maxqs, SfType.getBH().ToString()))
            {
                ts = GetTran("007319", "您查看的这期中没有这个会员,所以不能查看该网路") + "!";
            }

            ClientScript.RegisterStartupScript(this.GetType(), "", "<script type='text/javascript'>alert('" + ts + "');window.history.go(-1);</script>");
            return;
        }

        object[] obj = WTreeBLL.GetLLTTree(qs, EndNumber, StartNumber, "3", "1");

        SqlDataReader dr = (SqlDataReader)obj[0];

        while (dr.Read())
        {
            GridView1.Columns[0].HeaderText = GetTran("007323", "安置结构");
            if (dr["Field"].ToString() == "PetName")
            {
                GridView1.Columns[1].HeaderText = GetTran(dr["FieldName"].ToString(), "");

                if (dr["IsVisible"].ToString() == "0")
                {
                    GridView1.Columns[1].Visible = false;
                }
            }

            if (dr["Field"].ToString() == "DaiShu")
            {
                GridView1.Columns[4].HeaderText = GetTran(dr["FieldName"].ToString(), "");

                if (dr["IsVisible"].ToString() == "0")
                {
                    GridView1.Columns[4].Visible = false;
                }
            }
            else if (dr["Field"].ToString() == "TJ")
            {
                GridView1.Columns[2].HeaderText = GetTran(dr["FieldName"].ToString(), "");

                if (dr["IsVisible"].ToString() == "0")
                {
                    GridView1.Columns[2].Visible = false;
                }
            }
            else if (dr["Field"].ToString() == "JiBie")
            {
                GridView1.Columns[3].HeaderText = GetTran(dr["FieldName"].ToString(), "");

                if (dr["IsVisible"].ToString() == "0")
                {
                    GridView1.Columns[3].Visible = false;
                }
            }
            else if (dr["Field"].ToString() == "XinGe")
            {
                GridView1.Columns[6].HeaderText = GetTran(dr["FieldName"].ToString(), "");

                if (dr["IsVisible"].ToString() == "0")
                {
                    GridView1.Columns[6].Visible = false;
                }
            }
            else if (dr["Field"].ToString() == "XinWang")
            {
                GridView1.Columns[7].HeaderText = GetTran(dr["FieldName"].ToString(), "");

                if (dr["IsVisible"].ToString() == "0")
                {
                    GridView1.Columns[7].Visible = false;
                }
            }

            else if (dr["Field"].ToString() == "XinRen")
            {
                GridView1.Columns[8].HeaderText = GetTran(dr["FieldName"].ToString(), "");

                if (dr["IsVisible"].ToString() == "0")
                {
                    GridView1.Columns[8].Visible = false;
                }
            }
            else if (dr["Field"].ToString() == "ZongRen")
            {
                GridView1.Columns[9].HeaderText = GetTran(dr["FieldName"].ToString(), "");

                if (dr["IsVisible"].ToString() == "0")
                {
                    GridView1.Columns[9].Visible = false;
                }
            }
            else if (dr["Field"].ToString() == "ZongFen")
            {
                GridView1.Columns[10].HeaderText = GetTran(dr["FieldName"].ToString(), "");

                if (dr["IsVisible"].ToString() == "0")
                {
                    GridView1.Columns[10].Visible = false;
                }
            }
        }
        dr.Close();
        dr.Dispose();

        GridView1.DataSource = (DataTable)obj[1];
        GridView1.DataBind();

        SetLianLuTu(StartNumber, Session["M_L_AZ"].ToString(), qs, SfType.getBH());
    }
Exemple #15
0
    private void GetView1()
    {
        string bianhao  = this.txtBh.Text.Trim();
        string manageId = BLL.CommonClass.CommonDataBLL.getManageID(3);

        if (!BLL.CommonClass.CommonDataBLL.GetRole(Session["Company"].ToString(), bianhao, isAnZhi()))
        {
            msg = "<script>alert('" + GetTran("000438", "对不起,您没有查看该会员网络的权限") + "!');</script>";
            return;
        }
        if (bianhao == "")
        {
            Session["jgbh"] = manageId;
            Session["xqbh"] = manageId;
        }
        else
        {
            Session["jgbh"] = bianhao;

            Session["xqbh"] = bianhao;
        }

        string r = Convert.ToString(Session["jgbh"]);

        string s = SfType.getBH();

        bool y = isAnZhi();

        if (y)//验证是否有权限
        {
            Permissions.CheckManagePermission(EnumCompanyPermission.BalanceQueryAnZhiNetworkView);
        }
        else
        {
            Permissions.CheckManagePermission(EnumCompanyPermission.BalanceQueryTuiJianNetworkView);
        }
        int  u    = Convert.ToInt32(Session["jgqs"]);
        bool flag = registermemberBLL.isNet(Session["jglx"].ToString(), SfType.getBH(), Convert.ToString(Session["jgbh"]));

        if (flag == false)
        {
            Response.Write(GetTran("000892", "您不能查看该网络"));
            return;
        }


        Session["jgqs"] = this.DropDownList1.SelectedValue;

        if (Session["jgqs"] == null || Session["jglx"] == null)
        {
            Response.Write(GetTran("000894", "调用错误"));
            Response.End();
        }

        if (Request.QueryString["bh"] != null)
        {
            Session["jgbh"] = Request.QueryString["bh"];
        }
        else
        {
            if (this.txtBh.Text.Trim() == "")
            {
                Session["jgbh"] = manageId;
            }
            else
            {
                Session["jgbh"] = this.txtBh.Text.Trim();
            }
        }

        bool err = false;

        try
        {
            Convert.ToInt32(this.TextBox1.Text);
        }
        catch
        {
            err = true;
        }
        if (err)
        {
            Response.Write(GetTran("000899", "请输入正确的层位"));
        }
        else
        {
            Session["jgcw"] = Convert.ToInt32(this.TextBox1.Text);
        }

        Session["jgbh"] = Session["xqbh"];
        showData();

        SetDaoHang();
    }
 protected void btn_Submit_Click(object sender, System.EventArgs e)
 {
     getInfo(getBH(SfType.getType()), this.RadioButtonList_Type);
 }