Esempio n. 1
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();
        }
    }
Esempio n. 2
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();
        }
    }
Esempio n. 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetExpires(DateTime.Now);
        Permissions.CheckManagePermission(EnumCompanyPermission.FinanceFinanceStat);

        if (!IsPostBack)
        {
            //绑定币种  www-b874dce8700
            BindCurrency();
            CommonDataBLL.BindQishuList(this.DropQiShu1, false);
            CommonDataBLL.BindQishuList(this.DropQiShu2, false);
            this.DropQiShu2.SelectedValue = CommonDataBLL.getMaxqishu().ToString();
            int value = CommonDataBLL.getMaxqishu();

            if (value <= 10)
            {
                this.DropQiShu1.SelectedValue = "1";
            }
            else
            {
                this.DropQiShu1.SelectedValue = (value - 10).ToString();
            }

            this.DropQiShu2.SelectedValue = value.ToString();

            rateNum = ReleaseBLL.GetRate(Convert.ToInt32(this.DropCurrency.SelectedValue));
            Graph();
        }

        Translations();
    }
Esempio n. 4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);
        Permissions.CheckManagePermission(EnumCompanyPermission.FinanceHuiDuiChongHong);

        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));
        ViewState["zjj"]  = 0;
        ViewState["glj"]  = 0;
        ViewState["fxlj"] = 0;
        ViewState["kk"]   = 0;
        ViewState["ks"]   = 0;
        ViewState["bk"]   = 0;
        ViewState["sf"]   = 0;
        if (!IsPostBack)
        {
            CommonDataBLL.BindQishuList(this.DropDownExpectNum, true);

            string maxqs = DBHelper.ExecuteScalar("select isnull(max(expectnum),0) from BalanceToPurseDetail").ToString();
            if (maxqs != "0")
            {
                this.DropDownExpectNum.SelectedValue = maxqs;
            }
            BtnConfirm_Click(null, null);
        }
        Translations();
    }
Esempio n. 5
0
    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();
        }
    }
Esempio n. 6
0
 //CommonDataBLL CommonData = new CommonDataBLL();
 protected void Page_Load(object sender, EventArgs e)
 {
     Permissions.ComRedirect(Page, Permissions.redirUrl);
     Permissions.CheckManagePermission(EnumCompanyPermission.CustomerQueryMemberPassword);
     Response.Cache.SetExpires(DateTime.Now);
     if (!IsPostBack)
     {
         CommonDataBLL.BindQishuList(this.DropDownExpectNum, true);
         getMemberInfo();
     }
     Translations();
 }
Esempio n. 7
0
    protected void Page_Load(object sender, System.EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        //在此处放置用户代码以初始化页面
        //检查相应权限
        Response.Cache.SetExpires(DateTime.Now);

        // if (!Jiegou.isValid(Convert.ToString(Session["jgbh"]), getMemberBH(), isAnZhi(), Convert.ToInt32(Session["jgqs"])))

        Response.Redirect("ShowNotGoodViewII.aspx");

        if (!IsPostBack)
        {
            CommonDataBLL.BindQishuList(this.DropDownList1, false);
            ShowNumber();
            this.TextBox1.Text = "5";
            // int StartIndex = Convert.ToInt32(Request.QueryString["SelectGrass"]);
            //  DropDownList1.SelectedIndex = StartIndex;

            //  CommonDataBLL.DropDownListSelected(DropDownList1,Session["jgqs"].ToString().Trim());
            if (Request.QueryString["bh"] != null)
            {
                if (Request.QueryString["bh"].ToString() != "")
                {
                    this.txtBh.Text = Request.QueryString["bh"].ToString();
                    GetView();
                }
            }
            if (Request.QueryString["isAnzhi"] != null)
            {
                Session["jglx"] = Request.QueryString["isAnzhi"].ToString();
            }
            else
            {
                if (Session["jglx"] == null)
                {
                    Session["jglx"] = "tj";
                }
            }
            Session["jgqs"] = this.DropDownList1.SelectedValue;

            //------------------------
            SetDaoHang();
        }
        //固定会员的层位次数
        if (Session.Contents["bh"] != null)
        {
            this.TextBox1.Visible = false;
            this.lbl_msg.Visible  = false;
        }
        Translations();
    }
Esempio n. 8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Permissions.ComRedirect(Page, Permissions.redirUrl);
     Permissions.CheckManagePermission(EnumCompanyPermission.MemberOffView);
     Response.Cache.SetExpires(DateTime.Now);
     sphours = Convert.ToInt32(Session["WTH"]);
     if (!IsPostBack)
     {
         CommonDataBLL.BindQishuList(this.DropDownExpectNum, true);
         getMemberInfo();
     }
     Translations();
 }
Esempio n. 9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.MemRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);
        //Permissions.CheckMemberPermission();

        if (!this.IsPostBack)
        {
            CommonDataBLL.BindQishuList(this.DropDownQiShu, false);
            GetShopList();
        }
        Translations();
    }
Esempio n. 10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.MemRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);


        if (!IsPostBack)
        {
            Session["Store"] = null;
            CommonDataBLL.BindQishuList(DropDownList_QiShu, false);
        }
        Translations();
    }
Esempio n. 11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);


        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));
        if (!IsPostBack)
        {
            CommonDataBLL.BindQishuList(this.DropDownExpectNum, true);
            BtnConfirm_Click(null, null);
        }
        Translations();
    }
Esempio n. 12
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //获取标准币种
        bzCurrency = CommonDataBLL.GetStandard();
        Permissions.MemRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);

        if (!this.IsPostBack)
        {
            CommonDataBLL.BindQishuList(ddlQiShu, true);
            GetShopList();
        }
        Transllations();
    }
Esempio n. 13
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.MemRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);

        if (!this.IsPostBack)
        {
            id = Convert.ToInt32(Request["id"].ToString());
            CommonDataBLL.BindQishuList(ddlQiShu, true);
            GetShopList();
            Pager1.Visible = false;
        }
        Transllations();
    }
Esempio n. 14
0
    static int sphours = 0;  //时区差
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);                          //判断有没有管理员登录
        Response.Cache.SetExpires(DateTime.Now);                                      //防止缓存导致数据不能及时看到
        Permissions.CheckManagePermission(EnumCompanyPermission.CustomerMembermoidy); //判断该管理员是否有权限访问此页面

        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));                       //注册ajax
        sphours = Convert.ToInt32(Session["WTH"]);
        if (!IsPostBack)
        {
            CommonDataBLL.BindQishuList(this.DropDownExpectNum, true);
            getMemberInfo();  //加载会员信息
        }
        Translations();
        //Session["firstpage"] = "QueryMemberInfo.aspx";
    }
Esempio n. 15
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        Permissions.CheckManagePermission(EnumCompanyPermission.CustomerQureyMember);
        Response.Cache.SetExpires(DateTime.Now);
        sphours = Convert.ToInt32(Session["WTH"]);
        if (!IsPostBack)
        {
            if (Request.QueryString["dd"] != null && Request.QueryString["dd"] != "")
            {
                type = 1;
            }

            CommonDataBLL.BindQishuList(this.DropDownExpectNum, true);
            getMemberInfo();
        }
        Translations();
    }
Esempio n. 16
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        //  权限
        Response.Cache.SetExpires(DateTime.Now);
        Permissions.CheckManagePermission(EnumCompanyPermission.CustomerChangeExcept);

        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));

        if (!IsPostBack)
        {
            //绑定期数下拉列表
            CommonDataBLL.BindQishuList(this.DpExcept, false);
            GetBindGView("  1=1 and m.number=u.number ");
        }

        Translations();
    }
Esempio n. 17
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Permissions.ComRedirect(Page, Permissions.redirUrl);
     Permissions.CheckManagePermission(EnumCompanyPermission.CustomerStoreManage);
     Response.Cache.SetExpires(DateTime.Now);
     GridView1.Attributes.Add("style", "word-break:keep-all;word-wrap:normal");
     sphours = Convert.ToInt32(Session["WTH"]);
     if (!IsPostBack)
     {
         DataTable dt = DBHelper.ExecuteDataTable("select levelint,levelstr from bsco_level where levelflag=1 order by levelint");
         this.dplLevel.DataTextField  = "levelstr";
         this.dplLevel.DataValueField = "levelint";
         this.dplLevel.DataSource     = dt;
         this.dplLevel.DataBind();
         dplLevel.Items.Insert(0, new ListItem(GetTran("000633", "全部"), "-1"));
         CommonDataBLL.BindQishuList(this.drpExpectNum, true);
         BtnSeach_Click(null, null);
     }
     Translations();
 }
Esempio n. 18
0
    /// <summary>
    /// 页面加载事件
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetExpires(DateTime.Now);
        //ajaxPro注册1111111111
        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxMemShopCart));

        DD1.Visible = false;
        DD2.Visible = false;
        if (!IsPostBack)
        {
            sp1.Visible = false;

            CommonDataBLL.BindQishuList(this.ddlQishu, false);

            setProductMenu(GetStoreId());

            AddOrderBLL.BindCurrency_Rate(DropCurrency, GetStoreId());

            new GroupRegisterBLL().GetPaymentType(Ddzf, 1);
        }
    }
Esempio n. 19
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.MemRedirect(Page, Permissions.redirUrl);

        //获取标准币种
        bzCurrency = CommonDataBLL.GetStandard();

        if (!this.IsPostBack)
        {
            if (Session["Default_Currency"] == null)
            {
                Session["Default_Currency"] = bzCurrency;
            }

            CommonDataBLL.DelOrderByState();

            CommonDataBLL.BindQishuList(ddlQiShu, false);
            GetShopList();
        }
        Transllations();
    }
Esempio n. 20
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        ///检查相应的权限
        Permissions.CheckManagePermission(EnumCompanyPermission.SystemChangeLogsQuery);

        ///设置GridView的样式
        gvDetailsByDay.Attributes.Add("style", "word-break:keep-all;word-wrap:normal");

        //对其查询的列名进行赋值
        columnNames = " ID, case Type when 0 then '" + GetTran("000022", "删除") + "' when 1 then '" + GetTran("000259", "修改") + "' else '' end as Type,Convert(Datetime,[Time]) as [Time], SIP,Category, [From], FromUserType,Case [To] when '' then '" + GetTran("000221", "无") + "' else [To] end as [To], ToUserType, ExpectNum";

        if (!IsPostBack)
        {
            CommonDataBLL.BindQishuList(DropDownListqishu, true);
            InitExpect();
            ViewState["pagesort"] = 0;   //首次加载,默认为降序排列
            btnQuery_Click(null, null);
        }
        Translations_More();
    }
Esempio n. 21
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();
    }
Esempio n. 22
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        Permissions.CheckManagePermission(EnumCompanyPermission.CustomerQureyMember);
        Response.Cache.SetExpires(DateTime.Now);
        sphours = Convert.ToInt32(Session["WTH"]);
        if (!IsPostBack)
        {
            if (Request.QueryString["dd"] != null && Request.QueryString["dd"] != "")
            {
                type = 1;
            }

            CommonDataBLL.BindQishuList(this.DropDownExpectNum, true);
            getMemberInfo();
            DataTable dt = D_AccountBLL.GetAllMemberAccountMoney();
            if (dt != null && dt.Rows.Count > 0)
            {
                Label1.Text = "现金账户余额总计:<font color='red'>" + dt.Rows[0]["TotalMoney"].ToString() + "</font>";
                Label2.Text = "报单账户余额总计:<font color='red'>" + dt.Rows[0]["TotalOrderMoney"].ToString() + "</font>";
            }
        }
        Translations();
    }
Esempio n. 23
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.ThreeRedirect(Page, Permissions.redirUrl);
        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));
        Response.Cache.SetExpires(DateTime.Now);
        //Permissions.CheckManagePermission(EnumCompanyPermission.CustomerCreateStore);
        if (!IsPostBack)
        {
            if (Session["Member"] != null)
            {
                txtNumber.Text     = Session["Member"].ToString();
                txtNumber.ReadOnly = true;
            }

            //如果该会员有自己的服务机构,那么就直接显示服务机构的记录,
            //如果没有,就直接显示申请服务机构的页面
            //先判断中间表UnauditedStoreInfo里是否有数据,如果有数据,是未审核;如果没有记录,就是查询storeinfo表里是否有记录,
            if (int.Parse(DAL.DBHelper.ExecuteScalar("select count(0) from storeinfo where number='" + Session["Member"].ToString() + "'").ToString()) > 0)
            {
                Response.Redirect("ShowRegStore.aspx");
                return;
            }

            DataTable dtct = StoreInfoEditBLL.bindCountry();
            foreach (DataRow item in dtct.Rows)
            {
                this.DropDownList2.Items.Add(new ListItem(item["name"].ToString(), item["name"].ToString()));
                this.StoreCountry.Items.Add(new ListItem(item["name"].ToString(), item["name"].ToString()));
            }

            SqlDataReader dr1 = StoreInfoEditBLL.bindCity(this.StoreCountry.SelectedValue.ToString());
            while (dr1.Read())
            {
                ListItem list2 = new ListItem(dr1["Province"].ToString(), dr1["Province"].ToString());
                this.StoreCity.Items.Add(list2);
            }
            dr1.Close();
            //DataTable dt = DBHelper.ExecuteDataTable("select levelint,levelstr from bsco_level where levelflag=1 order by levelint");
            //rdoListLevel.DataSource = dt;
            //rdoListLevel.DataTextField = "levelstr";
            //rdoListLevel.DataValueField = "levelint";
            //rdoListLevel.DataBind();
            //rdoListLevel.SelectedValue = DBHelper.ExecuteScalar("select top 1 levelint from bsco_level where levelflag=1 order by levelint").ToString();
            // BLL.CommonClass.CommonDataBLL common = new CommonDataBLL();
            DropDownList2_SelectedIndexChanged(null, null);
            ddlLanaguage.DataSource     = CommonDataBLL.GetLanaguage();
            ddlLanaguage.DataTextField  = "Name";
            ddlLanaguage.DataValueField = "ID";
            ddlLanaguage.DataBind();
            Currency.DataSource     = CommonDataBLL.GetCurrency();
            Currency.DataTextField  = "Name";
            Currency.DataValueField = "ID";
            Currency.DataBind();
            CommonDataBLL.BindQishuList(this.DropDownList1, false);
            //if (Session["LoginUserType"].ToString() == "manage")
            //{
            //    btnGetmember.Visible = true;
            //    lbltitel.Text = "添加店信息";
            //}
            //else
            //{
            //lbltitel.Text = "店铺注册";
            //    btnGetmember.Visible = false;
            //}
        }
        Translations();
    }
Esempio n. 24
0
    protected void Page_Load(object sender, System.EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        // 在此处放置用户代码以初始化页面
        Response.Cache.SetExpires(DateTime.Now);
        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));
        DataTable dt = Jiegou.ShowTopNumber("9999999999", isAnZhi());

        TextBox1.Text = "9999999999";
        string firstky = Request.QueryString["EndNumber"] + "";
        bool   isQX    = true;

        //for (int i = 0; i < dt.Rows.Count; i++)
        //{
        //    if (i == 0)
        //    {
        //        if (firstky == "")
        //            firstky = dt.Rows[i]["number"].ToString();
        //    }

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


        //}
        ViewState["ky"] = firstky;

        if (!isQX)
        {
            ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + GetTran("007461", "您没有权限查看!") + "')</script>");
            //Server.Transfer("first.aspx");
            return;
        }
        if (!IsPostBack)
        {
            if (Request.QueryString["isAnzhi"] != null)
            {
                if (Request.QueryString["isAnzhi"].ToString() == "az")
                {
                    ViewState["isAnZhi_TuiJian"] = "az";
                    Session["jglx"] = "az";

                    Button5.Visible = true;
                    Button6.Visible = true;
                }
                else
                {
                    Button2.Text = GetTran("000420", "常用");
                    ViewState["isAnZhi_TuiJian"] = "tj";
                    Session["jglx"] = "tj";
                }
            }
            else
            {
                if (Session["jglx"] == null)
                {
                    Session["jglx"] = "tj";
                }
            }

            ShowNumber();
            Button1.Attributes["onclick"] = "document.getElementById('txt_PressKeyFlag').value='y';";
            CommonDataBLL.BindQishuList(this.DropDownList_QiShu, false);
            Session["jgbh"] = getBH();

            if (Request.QueryString["net"] != null)
            {
                switch (Request.QueryString["net"].ToString().Trim())
                {
                case "tj":
                    ViewState["isAnZhi_TuiJian"] = "tj";
                    Button2.Text = GetTran("000420", "常用");
                    break;

                default:
                    ViewState["isAnZhi_TuiJian"] = "az";
                    break;
                }
            }
            //else
            //{
            //    ViewState["isAnZhi_TuiJian"] = "az";
            //}

            string asg = Request.QueryString["bianhao"] == null ? "" : Request.QueryString["bianhao"].ToString();
            if (asg != "")
            {
                int count = BLL.CommonClass.CommonDataBLL.getCountNumber(asg);
                if (count == 0)
                {
                    Response.Write("<script>alert('该会员编号不存在!');</script>");
                    return;
                }
                else
                {
                    this.TextBox1.Text = asg;
                    ViewState["bh"]    = asg;
                    this.DropDownList_QiShu.SelectedValue = Request.QueryString["SelectGrass"].ToString();
                    Session["jglx"] = ViewState["isAnZhi_TuiJian"].ToString();

                    this.WangLuoTu_Commom(asg, ViewState["isAnZhi_TuiJian"].ToString());
                }
            }
            else
            {
                if (dt.Rows.Count > 0)
                {
                    this.TextBox1.Text = dt.Rows[0]["number"].ToString();
                    ViewState["bh"]    = TextBox1.Text;
                    this.DropDownList_QiShu.SelectedValue = CommonDataBLL.getMaxqishu().ToString();
                    int azTjFlag = 1;
                    azTjFlag        = ViewState["isAnZhi_TuiJian"].ToString() == "tj" ? 2 : 1;
                    Divt1.InnerHtml = JieGouNew2.Direct_Table_New(ViewState["bh"].ToString(), Convert.ToInt32(this.DropDownList_QiShu.SelectedValue), azTjFlag);
                }
            }

            SetDaoHang(firstky);
        }
        txt_PressKeyFlag.Text = "n";
        Translations();
        Button1_Click(null, null);
    }
Esempio n. 25
0
    protected void Page_Load(object sender, System.EventArgs e)
    {
        Permissions.ComRedirect(Page, Permissions.redirUrl);
        //在此处放置用户代码以初始化页面
        //检查相应权限
        Response.Cache.SetExpires(DateTime.Now);
        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));
        // if (!Jiegou.isValid(Convert.ToString(Session["jgbh"]), getMemberBH(), isAnZhi(), Convert.ToInt32(Session["jgqs"])))

        if (!IsPostBack)
        {
            if (Request.QueryString["isAnzhi"] != null)
            {
                if (Request.QueryString["isAnzhi"].ToString() == "az")
                {
                    this.Button6.Style.Add("display", "none");
                    this.Button7.Style.Add("display", "");
                }
                else
                {
                    this.Button6.Style.Add("display", "");
                    this.Button7.Style.Add("display", "none");
                }
            }
            else
            {
                if (Session["jglx"] == null)
                {
                    this.Button6.Style.Add("display", "");
                    this.Button7.Style.Add("display", "none");
                }
                else
                {
                    if (Session["jglx"].ToString() == "az")
                    {
                        this.Button6.Style.Add("display", "none");
                        this.Button7.Style.Add("display", "");
                    }
                    else
                    {
                        this.Button6.Style.Add("display", "");
                        this.Button7.Style.Add("display", "none");
                    }
                }
            }
            CommonDataBLL.BindQishuList(this.DropDownList1, false);

            if (Request.QueryString["cengshu"] == null)
            {
                if (Session["jgcw"] == null)
                {
                    this.TextBox1.Text = "3";
                }
                else
                {
                    this.TextBox1.Text = Session["jgcw"].ToString();
                }
            }
            else
            {
                this.TextBox1.Text = Request.QueryString["cengshu"].ToString();
            }
            // int StartIndex = Convert.ToInt32(Request.QueryString["SelectGrass"]);
            //  DropDownList1.SelectedIndex = StartIndex;

            //  CommonDataBLL.DropDownListSelected(DropDownList1,Session["jgqs"].ToString().Trim());
            if (Request.QueryString["isAnzhi"] != null)
            {
                string assgd = Request.QueryString["isAnzhi"].ToString();
                Session["jglx"] = Request.QueryString["isAnzhi"].ToString();
            }
            else
            {
                if (Session["jglx"] == null)
                {
                    Session["jglx"] = "tj";
                }
            }
            ShowNumber();
            if (Request.QueryString["bh"] != null)
            {
                if (Request.QueryString["bh"].ToString() != "")
                {
                    this.txtBh.Text = Request.QueryString["bh"].ToString();
                    GetView();
                }
            }
            else
            {
                DataTable dt = Jiegou.ShowTopNumber(Session["Company"].ToString(), isAnZhi());
                if (dt.Rows.Count > 0)
                {
                    this.txtBh.Text = dt.Rows[0]["number"].ToString();
                    GetView1();
                }
            }

            ViewState["qs"]      = this.DropDownList1.SelectedValue;
            ViewState["cengshu"] = this.TextBox1.Text.Trim();
            ViewState["startbh"] = txtBh.Text.Trim();

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

            //------------------------
            SetDaoHang();
        }
        //固定会员的层位次数
        if (Session.Contents["bh"] != null)
        {
            this.TextBox1.Visible = false;
            this.lbl_msg.Visible  = false;
        }
        Translations();
    }
Esempio n. 26
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.MemRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);
        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));

        if (!IsPostBack)
        {
            if (Request.QueryString["isAnzhi"] != null)
            {
                if (Request.QueryString["isAnzhi"].ToString() == "az")
                {
                    ViewState["isAnZhi_TuiJian"] = "az";

                    Button2.Visible = true;
                    Button4.Visible = true;

                    PTitle = GetTran("000395", "推荐网络图");
                }
                else
                {
                    ViewState["isAnZhi_TuiJian"] = "tj";
                    Button3.Text = GetTran("000420", "常用");

                    PTitle = GetTran("000366", "安置网络图");
                }
                Session["jglx"] = Request.QueryString["isAnzhi"].ToString();
            }
            else
            {
                if (Session["jglx"] == null)
                {
                    Session["jglx"] = "tj";
                }
            }

            Button1.Attributes["onclick"] = "document.getElementById('txt_PressKeyFlag').value='y';";
            CommonDataBLL.BindQishuList(DropDownList_QiShu, false);

            if (Request.QueryString["SelectGrass"] != null)
            {
                DropDownList_QiShu.SelectedValue = Request.QueryString["SelectGrass"].ToString();
            }
            if (Request.QueryString["net"] != null)
            {
                switch (Request.QueryString["net"].ToString().Trim())
                {
                case "tj":
                    ViewState["isAnZhi_TuiJian"] = "tj";
                    Button3.Text = GetTran("000420", "常用");
                    break;

                default:
                    ViewState["isAnZhi_TuiJian"] = "az";
                    break;
                }
            }

            if (Session["jgbh"] == null || Session["jgbh"].ToString() == "")
            {
                Session["jgbh"] = Session["Member"].ToString();
            }

            this.TextBox1.Text = getBH();
            ViewState["bh"]    = getBH();

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

            if (WTreeBLL.IsRoot(getBH(), this.DropDownList_QiShu.SelectedValue, GetLoginMember()) == false)
            {
                Response.Write("<script>alert('" + GetTran("000892", "您不能查看该网络") + "');</script>");
                return;
            }

            #endregion

            Session["jgbh"] = TextBox1.Text;

            this.WangLuoTu_Commom(getBH(), ViewState["isAnZhi_TuiJian"].ToString());

            SetDaoHang();
        }

        txt_PressKeyFlag.Text = "n";
        Translations();
    }
Esempio n. 27
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Permissions.MemRedirect(Page, Permissions.redirUrl);
        Response.Cache.SetExpires(DateTime.Now);
        //Permissions.CheckMemberPermission();//验证是否已登录
        AjaxPro.Utility.RegisterTypeForAjax(typeof(AjaxClass));

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

        if (!IsPostBack)
        {
            if (Request.QueryString["isAnzhi"] != null)
            {
                if (Request.QueryString["isAnzhi"].ToString() == "az")
                {
                    this.Button6.Style.Add("display", "none");
                    this.Button7.Style.Add("display", "");
                }
                else
                {
                    this.Button6.Style.Add("display", "");
                    this.Button7.Style.Add("display", "none");
                }
            }
            else
            {
                if (Session["jglx"] == null)
                {
                    this.Button6.Style.Add("display", "");
                    this.Button7.Style.Add("display", "none");
                }
                else
                {
                    if (Session["jglx"].ToString() == "az")
                    {
                        this.Button6.Style.Add("display", "none");
                        this.Button7.Style.Add("display", "");
                    }
                    else
                    {
                        this.Button6.Style.Add("display", "");
                        this.Button7.Style.Add("display", "none");
                    }
                }
            }

            if (Request.QueryString["cengshu"] == null)
            {
                if (Session["jgcw"] == null)
                {
                    this.TextBox1.Text = "3";
                }
                else
                {
                    this.TextBox1.Text = Session["jgcw"].ToString();
                }
            }
            else
            {
                this.TextBox1.Text = Request.QueryString["cengshu"].ToString();
            }
            // int StartIndex = Convert.ToInt32(Request.QueryString["SelectGrass"]);
            //  DropDownList1.SelectedIndex = StartIndex;

            CommonDataBLL.BindQishuList(this.DropDownList1, false);

            if (Request.QueryString["isAnzhi"] != null)
            {
                Session["jglx"] = Request.QueryString["isAnzhi"].ToString();
            }
            else
            {
                if (Session["jglx"] == null)
                {
                    Session["jglx"] = "tj";
                }
            }


            if (Request.QueryString["bh"] != null)
            {
                if (Request.QueryString["bh"].ToString() != "")
                {
                    this.txtBh.Text = Request.QueryString["bh"].ToString();
                    GetView();
                }
            }
            else
            {
                this.txtBh.Text = Session["Member"].ToString();
                Button1_Click(null, null);
            }

            Session["jgqs"] = this.DropDownList1.SelectedValue;
            SetDaoHang();
        }
        Translations();
    }