Esempio n. 1
0
    protected void SetPage()
    {
        DataSet ds = objAgentManageDB.GetMember("4");

        for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
        {
            ListItem liitem = new ListItem();
            liitem.Value = ds.Tables[0].Rows[i]["n_hyzh"].ToString();
            liitem.Text  = ds.Tables[0].Rows[i]["n_hyzh"].ToString() + "[" + ds.Tables[0].Rows[i]["n_hymc"].ToString() + "]";
            this.drzj.Items.Add(liitem);
        }
        DataSet dsbj = objAgentManageDB.GetMember("9");

        this.lbbj.Text = dsbj.Tables[0].Rows.Count.ToString();
    }
Esempio n. 2
0
    protected void ZJGrid_DataBound(object sender, EventArgs e)
    {
        for (int i = 0; i < this.ZJGrid.Rows.Count; i++)
        {
            HyperLink o_hl = new HyperLink();
            o_hl.NavigateUrl = "AgentManageUpd.aspx?id=" + this.ZJGrid.Rows[i].Cells[0].Text + "&lv=8";;
            o_hl.Text        = this.ZJGrid.Rows[i].Cells[0].Text;
            this.ZJGrid.Rows[i].Cells[0].Controls.Add(o_hl);

            string    strcount = objAgentManageDB.GetMember("9", this.ZJGrid.Rows[i].Cells[0].Text).Tables[0].Rows.Count.ToString();
            HyperLink o_Mem    = new HyperLink();
            o_Mem.NavigateUrl = "dlgl.aspx?n_dzjdh=" + this.drzj.SelectedValue + "&n_zjdh=" + this.drdgd.SelectedValue + "&n_dgddh=" + this.drgd.SelectedValue + "&n_gddh=" + this.drzdl.SelectedValue + "&n_zdldh=" + this.ZJGrid.Rows[i].Cells[0].Text;
            o_Mem.Text        = strcount;
            this.ZJGrid.Rows[i].Cells[5].Controls.Add(o_Mem);
            string stryxdl = this.ZJGrid.Rows[i].Cells[7].Text;
            string stryxxz = ((Label)this.ZJGrid.Rows[i].FindControl("lblYXXZ")).Text;
            if (stryxdl.Equals("1"))
            {
                this.ZJGrid.Rows[i].Cells[7].Text = "啟用";
                ((LinkButton)this.ZJGrid.Rows[i].FindControl("lbtnTY")).Text = "停用";
            }
            else
            {
                this.ZJGrid.Rows[i].Cells[7].Text = "停用";
                ((LinkButton)this.ZJGrid.Rows[i].FindControl("lbtnTY")).Text = "啟用";
            }

            if (stryxxz.Equals("1"))
            {
                ((LinkButton)this.ZJGrid.Rows[i].FindControl("lbtnTZXZ")).Text = "停止押注";
            }
            else
            {
                ((LinkButton)this.ZJGrid.Rows[i].FindControl("lbtnTZXZ")).Text = "解除停押";
            }
            ((LinkButton)this.ZJGrid.Rows[i].FindControl("lbtnJBZL")).Attributes.Add("onclick", "window.location.href='AgentManageUpd.aspx?id=" + this.ZJGrid.Rows[i].Cells[0].Text + "&lv=8';return false;");
            ((LinkButton)this.ZJGrid.Rows[i].FindControl("lbtnTY")).Attributes.Add("onclick", "if(confirm('確定停用/啟用" + this.ZJGrid.Rows[i].Cells[0].Text + "?')){return true;} else{return false;}");
            ((LinkButton)this.ZJGrid.Rows[i].FindControl("lbtnTZXZ")).Attributes.Add("onclick", "if(confirm('確定要對該帳號停押/解除停押?')){return true;} else{return false;}");
            ((LinkButton)this.ZJGrid.Rows[i].FindControl("lbtnSC")).Attributes.Add("onclick", "if(confirm('確定要刪除" + this.ZJGrid.Rows[i].Cells[0].Text + "?')){return true;} else{return false;}");
            ((LinkButton)this.ZJGrid.Rows[i].FindControl("lbtnQXXSD")).Attributes.Add("onclick", "window.open('ZQ_set.aspx?UserName="******"')");
            //((LinkButton)this.ZJGrid.Rows[i].FindControl("lbtnCXXSD")).Attributes.Add("onclick", "window.open('../htm/lottery_set_3d.htm','','width=650,height=710,scrollbars=1,toolbar=0,menubar=0,location=0,directories=0,statu=0');return false;");
        }
        if (this.ZJGrid.Rows.Count > 0)
        {
            this.trsj.Visible = true;
            this.lbxj.Text    = this.ZJGrid.Rows.Count.ToString();
            string strsj = this.drzdl.SelectedItem.Value;
            this.lbsj.Text = strgdid;
            if (!strgdid.Equals(""))
            {
                this.lbm1.Text = Convert.ToString(Convert.ToDouble(objAgentManageDB.Getxyed(strgdid)) - Convert.ToDouble(objAgentManageDB.Getsyed(strgdid)));
                this.lbm2.Text = objAgentManageDB.Getsyed(strgdid);
            }

            this.trbj.Visible = false;
        }
        else
        {
            this.trsj.Visible = false;
            this.trbj.Visible = true;
        }
    }
Esempio n. 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            this.grvUserManage.RowColor = Color.FromName("#ddeeff");

            if (!IsPostBack)
            {
                this.btnAddUser.Visible = false;
                this.drpZJ.Visible      = false;

                /* --------Modify By Jean
                 * this.drpZJ.Visible = false;
                 * KFB_HYGL_BLL o_KFB_HYGL_BLL = new KFB_HYGL_BLL();
                 * this.drpZJ.DataSource = o_KFB_HYGL_BLL.GetZJ();
                 * this.drpZJ.DataTextField = "n_hymc";
                 * this.drpZJ.DataValueField = "n_hyzh";
                 * this.drpZJ.DataBind();
                 * this.drpZJ.Items.Insert(0, new ListItem("未選擇", ""));
                 * this.drpDLS.DataSource = o_KFB_HYGL_BLL.GetZJ_DLS(this.drpZJ.SelectedValue);
                 * this.drpDLS.DataTextField = "DLSName";
                 * this.drpDLS.DataValueField = "DLSID";
                 * this.drpDLS.DataBind();
                 * this.drpDLS.Items.Insert(0, new ListItem("未選擇", ""));
                 * if (Request.QueryString["N_DZJDH"] != null)
                 * {
                 *  this.drpZJ.SelectedValue = Convert.ToString(Request.QueryString["N_DZJDH"]);
                 *  drpZJ_SelectedIndexChanged(sender, e);
                 *  this.drpDLS.SelectedValue = Request.QueryString["N_DZJDH"]
                 + "-" + Request.QueryString["N_ZJDH"]
                 + "-" + Request.QueryString["N_DGDDH"]
                 + "-" + Request.QueryString["N_GDDH"]
                 + "-" + Request.QueryString["N_ZDLDH"]
                 + "-" + Request.QueryString["N_DLDH"];
                 +  drpDLS_SelectedIndexChanged(sender, e);
                 + }
                 + else
                 +  this.trsj.Visible = false;
                 */
                if (Request.QueryString["gdid"] != null)
                {
                    this.drpDLS.DataSource     = objAgentManageDB.GetMember("9", "7", Request.QueryString["gdid"]);
                    this.drpDLS.DataTextField  = "N_HYZH";
                    this.drpDLS.DataValueField = "N_HYZH";
                    this.drpDLS.DataBind();
                    this.drpDLS.Items.Insert(0, new ListItem("未選擇", ""));
                }
                if (Request.QueryString["N_DLDH"] != null)
                {
                    this.drpDLS.DataSource     = objAgentManageDB.GetMember("9", "8", Request.QueryString["N_ZDLDH"]);
                    this.drpDLS.DataTextField  = "N_HYZH";
                    this.drpDLS.DataValueField = "N_HYZH";
                    this.drpDLS.DataBind();
                    this.drpDLS.Items.Insert(0, new ListItem("未選擇", ""));
                    this.drpDLS.SelectedValue = Request.QueryString["N_DLDH"];
                    drpDLS_SelectedIndexChanged(sender, e);
                }
            }

            //string[] strZHSJ = getZHSJ().Split(',');
            //DataSet dsbj = o_zhgl.GetMember("10", strZHSJ[0], strZHSJ[1]);
            DataSet dsbj = objAgentManageDB.GetMember("10");
            this.lbbj.Text = dsbj.Tables[0].Rows.Count.ToString();
            if (Comm.GetFlag(mUserID) == "1")
            {
                btnAddUser.Visible = false;
            }
        }
        catch (Exception ex)
        {
            this.WriteLog("用户名=" + mUserID + ex.ToString());
            this.ShowMsg("頁面加載失敗");
        }
    }