Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int         actionNum  = (int)GetDateItem(0);
            TagUserType userType   = (TagUserType)GetDateItem(1);
            string      p_keyword  = GetDateItem(2).ToString();
            string      p_extandId = GetDateItem(3).ToString();
            int         p_jailRoomSelectedIndex = (int)GetDateItem(4);
            string      p_jailRoomSelectedValue = GetDateItem(5).ToString();
            string      tagBindingSelectedValue = GetDateItem(6).ToString();
            string      tagOnlineSelectedValue  = GetDateItem(7).ToString();
            int         pageIndex = (int)GetDateItem(8);

            switch (actionNum)
            {
            case 2:
                _userType   = userType;
                p.PageIndex = pageIndex;
                this.LoadRepeater(p_keyword, p_extandId, p_jailRoomSelectedIndex, p_jailRoomSelectedValue, tagBindingSelectedValue, tagOnlineSelectedValue);
                break;

            default:
                break;
            }
            if (BusSystemConfig.IsAutoSelectStrongestRssiTag() == false)
            {
                tagSelector.Visible            = true;
                selectStrongestRssiTag.Visible = false;
            }
            else
            {
                tagSelector.Visible            = false;
                selectStrongestRssiTag.Visible = true;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            TagUserType userType = (TagUserType)Fetch.QueryUrlAsIntegerOrDefault("userType", 0);

            /*if (userType == TagUserType.Cop)
             * {
             *  var item = tabView.Items[2];
             *      item.Visible = true;
             *      item = tabView.Items[3];
             *      item.Visible = false;
             * }
             *
             * else if (userType == TagUserType.Culprit)
             * {
             *  var item = tabView.Items[2];
             *  item.Visible = false;
             *  item = tabView.Items[3];
             *  item.Visible = true;
             * }
             * else
             * {
             *  var item = tabView.Items[2];
             *  item.Visible = true;
             *  item = tabView.Items[3];
             *  item.Visible = false;
             * }*/


            IdentifyTabViewSelectedIndex();
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     _userType = (TagUserType)Fetch.QueryUrlAsIntegerOrDefault("userType", 0);
     if (!IsPostBack)
     {
         LoadDefaultView();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     _userType = TagUserType.Position;
     if (!Page.IsPostBack)
     {
         LoadDefaultView();
     }
 }
Example #5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     // this.Title = this.WebSiteLabel = "消失记录";
     _userType = (TagUserType)Fetch.QueryUrlAsIntegerOrDefault("userType", 0);
     if (!IsPostBack)
     {
         LoadDefaultView();
     }
 }
Example #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            _userType = TagUserType.Position;

            if (!IsPostBack)
            {
                this.LoadRepeater();
            }
            addNew.Text = "添加新定点报警标签到系统";
            addNew.Href = "TagUser_Add.aspx?type=" + (byte)TagUserType.Position;
        }
Example #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     //this.Title = this.WebSiteLabel = "按钮触发";
     _userType = (TagUserType)Fetch.QueryUrlAsIntegerOrDefault("userType", 0);
     if (!IsPostBack)
     {
         //清理缓存
         Response.Cache.SetNoStore();
         LoadDefaultView();
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            // this.Title = this.WebSiteLabel = "位置记录";
            _userType = (TagUserType)Fetch.QueryUrlAsIntegerOrDefault("userType", 0);
            //this.Wrap.Title = CommonExtension.GetUserTypeDescription(_userType) + this.Wrap.Title;

            if (!IsPostBack)
            {
                LoadDefaultView();
            }
        }
Example #9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //Sitemap.Text2 = "统计报表";
            _userType = (TagUserType)Fetch.QueryUrlAsIntegerOrDefault("userType", 1);
            // this.Wrap.Title = CommonExtension.GetUserTypeDescription(_userType) + this.Wrap.Title;

            if (!Page.IsPostBack)
            {
                this.LoadDefaultView();
                tagUserSelector.SetDataSourceLeft(NetRadio.LocatingMonitor.Controls.__SelectTagUser.SelectTagUsers3);
            }
        }
Example #10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //this.Title = this.WebSiteLabel = "告警记录";
            _userType = (TagUserType)Fetch.QueryUrlAsIntegerOrDefault("userType", 0);
            if (!Page.IsPostBack)
            {
                LoadDefaultView();
            }

            //Sitemap.Text2 = "实时监控";
            //Sitemap.Text3 = Wrap.Title;

            //this.Wrap.Title = CommonExtension.GetUserTypeDescription(_userType) + this.Wrap.Title;
            //timePoint.Text = me.TagEventApprizingTimePoint.ToString("G");
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            _userType = (TagUserType)Fetch.QueryUrlAsIntegerOrDefault("userType", 1);

            listAreaCoordinates = (List <int>)Session["listAreaCoordinates"];
            SelectedTagIdArray  = (int[])Session["SelectedTagIdArray"];
            dtFrom     = DateTime.Parse(Session["dtFrom"].ToString());
            dtTo       = DateTime.Parse(Session["dtTo"].ToString());
            SearchType = Session["SearchType"].ToString();

            if (!IsPostBack)
            {
                LoadDefaultView();
            }
        }
Example #12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int actionNum = (int)GetDateItem(0);

            _userType = (TagUserType)GetDateItem(1);

            //this.SetSortButtonPresentation();
            switch (_userType)
            {
            case TagUserType.Cop:
                addNew.Text = "增加使用者";
                addNew.Href = "TagUser_Add.aspx?type=" + (byte)TagUserType.Cop;
                jailRoomCondition.Visible = false;


                break;

            case TagUserType.Culprit:
                addNew.Text = "增加使用者";
                addNew.Href = "TagUser_Add.aspx?type=" + (byte)TagUserType.Culprit;
                jailRoomCondition.Visible = true;
                if (!Page.IsPostBack)
                {
                    LoadJailRoomDropList();
                }
                break;

            case TagUserType.Position:
                jailRoomCondition.Visible = false;

                break;


            default:
                break;
            }

            if (Business.BusSystemConfig.IsLoadHostInfo())
            {
                importUsers.Visible = true;
            }
            else
            {
                importUsers.Visible = false;
            }
        }
Example #13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // this.Title = this.WebSiteLabel = "位置记录";
            _userType = (TagUserType)Fetch.QueryUrlAsIntegerOrDefault("userType", 0);
            //this.Wrap.Title = CommonExtension.GetUserTypeDescription(_userType) + this.Wrap.Title;

            if (!IsPostBack)
            {
                // LoadDefaultView();

                fromDate.Text          = DateTime.Now.ToString("yyyy-MM-dd");
                fromHour.SelectedIndex = 0;
                toDate.Text            = DateTime.Now.ToString("yyyy-MM-dd");
                toHour.SelectedIndex   = 23;

                tagSelector.selectedGroupName.SelectedGroupIdArray = new int[] { 1 };
                tagSelector.SetDataSourceLeft(NetRadio.LocatingMonitor.Controls.__SelectTagUser.SelectTagUsers4);
            }
            else
            {
            }
        }