Beispiel #1
0
        private void bind()
        {
            DataTable Cll = B_IServer.SeachTop("未解决", -1);

            if (Cll != null)
            {
                resultsRepeater_w.DataSource = Cll.DefaultView;
                resultsRepeater_w.DataBind();
            }
        }
Beispiel #2
0
        public void MyBind()
        {
            string state = "";
            string num   = Request.QueryString["num"] == null ? "" : Request.QueryString["num"];

            switch (num)
            {
            case "1":
                state = "未解决";
                break;

            case "2":
                state = "处理中";
                break;

            case "3":
                state = "已解决";
                break;

            case "4":
                state = "已锁定";
                break;

            default:
                state = "未解决";
                break;
            }
            GetQueryString();
            lblAllNum.Text = Serverbll.getiServerNum("", -1, menu, typeArray[type], DataConverter.CLng(orderId)).ToString();
            lblNum_ch.Text = Serverbll.getiServerNum("处理中", -1, menu, typeArray[type], DataConverter.CLng(orderId)).ToString();
            lblnum_w.Text  = Serverbll.getiServerNum("未解决", -1, menu, typeArray[type], DataConverter.CLng(orderId)).ToString();
            lblnum_y.Text  = Serverbll.getiServerNum("已解决", -1, menu, typeArray[type], DataConverter.CLng(orderId)).ToString();

            if (int.Parse(lblnum_w.Text.ToString()) >= 0)
            {
                panel_w.Visible = true;
            }
            if (int.Parse(lblNum_ch.Text.ToString()) >= 0)
            {
                panel_ch.Visible = true;
            }
            if (int.Parse(lblnum_y.Text.ToString()) >= 0)
            {
                panel_y.Visible = true;
            }

            resultsRepeater_w.DataSource = Serverbll.SeachTop(state, -1, menu, typeArray[type], DataConverter.CLng(orderId));
            resultsRepeater_w.DataBind();
        }