public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            View view = (View) inflater.Inflate(Resource.Layout.ShiPinChaGangSouSuo,container, false);

            mSpinnerSP = view.FindViewById<Spinner> (Resource.Id.spinnerShiPinChaGang);

            mbtnBeginDate = view.FindViewById<Button> (Resource.Id.ShiPinChaGangBeginDate);
            mbtnEndDate = view.FindViewById<Button> (Resource.Id.ShiPinChaGangEndDate);
            mSearchSP = view.FindViewById<Button> (Resource.Id.btnShiPinChaGangSouSuo);

            mSpinnerSP.ItemSelected += new EventHandler<AdapterView.ItemSelectedEventArgs> (spinner_ItemSelected);
            var adapter = ArrayAdapter.CreateFromResource (
                Activity, Resource.Array.ShiPinChaGangZhuangTai, Android.Resource.Layout.SimpleSpinnerItem);

            adapter.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem);
            mSpinnerSP.Adapter = adapter;

            mbtnBeginDate.Click += delegate {

                clickFlag=0;
                var dialogShow = new DatePickerDialogFragment(Activity, BeginDate,this);
                dialogShow.Show(Activity.FragmentManager.BeginTransaction(), null);
            };

            mbtnEndDate.Click += delegate {

                clickFlag=1;
                var dialogShow = new DatePickerDialogFragment(Activity, BeginDate,this);
                dialogShow.Show(Activity.FragmentManager.BeginTransaction(), null);
            };

            mSearchSP.Click += delegate {

                var ft1=this.FragmentManager.BeginTransaction ();

                ft1.SetCustomAnimations(Resource.Animation.card_flip_right_in, Resource.Animation.card_flip_right_out,
                    Resource.Animation.card_flip_left_in, Resource.Animation.card_flip_left_out);

                var fragment =ShiPinChaGangSouSuoJieGuo.NewInstance(mSpinner,mBeginDate,mEndDate);

                mSpinner="";
                mBeginDate="";
                mEndDate="";

                ft1.Hide (fragment);
                ft1.Replace (Resource.Id.content_frame, fragment,"ShiPinSouSuojieguo");

                ft1.AddToBackStack (null);

                ft1.Show (fragment);
                ft1.Commit ();

            };

            return view;
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            View view = (View) inflater.Inflate(Resource.Layout.GuZhangPuTongSouSuo,container, false);

            mEditTextGuZhangPuTongSouSuo = view.FindViewById<EditText> (Resource.Id.EditTextGuZhangLiShiDiDIanXinXiGZ);
            mGuZhangPuTongBegin = view.FindViewById<Button> (Resource.Id.HuojingLiShipickDateBeginGZ);
            mGuZhangPuTongEnd = view.FindViewById<Button> (Resource.Id.HuojingLiShipickDateEndGZ);
            mGuZhangPuTongSearch = view.FindViewById<Button> (Resource.Id.btnJianGuanBaoJingSouSuoGZ);
            mHeader =view.FindViewById<TextView>(Resource.Id.item_subtitleGZ);

            switch(GuZhangJiBie)
            {
            case "3":
                mHeader.Text="普通故障";
                    break;
            case "4":
                mHeader.Text="屏蔽信息";
                    break;
            }

            mGuZhangPuTongBegin.Click += delegate {

                clickFlag=0;
                var dialogShow = new DatePickerDialogFragment(Activity, BeginDate,this);
                dialogShow.Show(Activity.FragmentManager.BeginTransaction(), null);
            };

            mGuZhangPuTongEnd.Click += delegate {

                clickFlag=1;
                var dialogShow = new DatePickerDialogFragment(Activity, BeginDate,this);
                dialogShow.Show(Activity.FragmentManager.BeginTransaction(), null);
            };

            mGuZhangPuTongSearch.Click += delegate {
                var ft1=Activity.FragmentManager.BeginTransaction ();

                switch(GuZhangJiBie)
                {
                case "3":
                    if(mEditTextGuZhangPuTongSouSuo.Text!=null)
                    {
                        mEditText=mEditTextGuZhangPuTongSouSuo.Text;
                    }

                    ft1.SetCustomAnimations(Resource.Animation.card_flip_right_in, Resource.Animation.card_flip_right_out,
                        Resource.Animation.card_flip_left_in, Resource.Animation.card_flip_left_out);
                    var fragment1 = GuZhangPuTongSouSuoJieGuoFrag.NewInstance ("3",mEditText ,mBeginDate,mEndDate);

                    mEditText="";
                    mBeginDate="";
                    mEndDate="";

                    ft1.Hide (fragment1);
                    ft1.Replace (Resource.Id.content_frame, fragment1,"GuZhangXiangXiXinXIShouDongSouSuo");

                    ft1.AddToBackStack (null);

                    ft1.Show (fragment1);
                    ft1.Commit ();
                    break;
                case "4":
                    if(mEditTextGuZhangPuTongSouSuo.Text!=null)
                    {
                        mEditText=mEditTextGuZhangPuTongSouSuo.Text;
                    }

                    ft1.SetCustomAnimations(Resource.Animation.card_flip_right_in, Resource.Animation.card_flip_right_out,
                        Resource.Animation.card_flip_left_in, Resource.Animation.card_flip_left_out);
                    var fragment2 = GuZhangPuTongSouSuoJieGuoFrag.NewInstance ("4",mEditText ,mBeginDate,mEndDate);

                    mEditText="";
                    mBeginDate="";
                    mEndDate="";

                    ft1.Hide (fragment2);
                    ft1.Replace (Resource.Id.content_frame, fragment2,"GuZhangXiangXiXinXIShouDongSouSuo");

                    ft1.AddToBackStack (null);

                    ft1.Show (fragment2);
                    ft1.Commit ();
                    break;
                }

            };

            return view;
        }
        public override Java.Lang.Object InstantiateItem(ViewGroup container, int position)
        {
            int pos = position + 1;

            if (pos == 1)
            {

                View view1 = LayoutInflater.From(container.Context).Inflate(Resource.Layout.Paper_Item_ShouDong, container, false);
                container.AddView(view1);

                txtTitle = view1.FindViewById<TextView>(Resource.Id.item_subtitle1);

                mHuoJingSpinner1 = view1.FindViewById<Spinner> (Resource.Id.spinnerHuoJingLiShiDiDIanXinXi1);

                mHuoJingSpinner1.ItemSelected += new EventHandler<AdapterView.ItemSelectedEventArgs> (spinner1_ItemSelected);
                var adapter = ArrayAdapter.CreateFromResource (
                    mActivity, Resource.Array.baoJingJieGuo, Android.Resource.Layout.SimpleSpinnerItem);

                adapter.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem);
                mHuoJingSpinner1.Adapter = adapter;

                mHuoJingLiShiBeginTime1 = view1.FindViewById<Button> (Resource.Id.HuojingLiShipickDateBegin1);
                mHuoJingLiShiEndTime1 = view1.FindViewById<Button> (Resource.Id.HuojingLiShipickDateEnd1);
                mHuoJingSouSuo1 = view1.FindViewById<Button> (Resource.Id.btnShouDongBaoJingSouSuo);

                mHuoJingLiShiBeginTime1.Click += delegate {

                    clickFlag=0;
                    var dialogShow = new DatePickerDialogFragment(mActivity, BeginDate,mListener);
                    dialogShow.Show(mActivity.FragmentManager.BeginTransaction(), null);

                };

                mHuoJingLiShiEndTime1.Click += delegate {

                    clickFlag=1;
                    var dialogShow = new DatePickerDialogFragment(mActivity, BeginDate,mListener);
                    dialogShow.Show(mActivity.FragmentManager.BeginTransaction(), null);

                };

                mHuoJingSouSuo1.Click += delegate(object sender, EventArgs e) {

                    //每次成功查询结束后,把三个string置空
                    var ft1=mActivity.FragmentManager.BeginTransaction ();

                    ft1.SetCustomAnimations(Resource.Animation.card_flip_right_in, Resource.Animation.card_flip_right_out,
                        Resource.Animation.card_flip_left_in, Resource.Animation.card_flip_left_out);

                    var fragment = HuoJingXiangXiSouSuoJieGuoFrag.NewInstance ("1",selectedBaoJingJieGuo ,selectedBeginTime,selectedEndTime);

                    selectedBaoJingJieGuo="";
                    selectedBeginTime="";
                    selectedEndTime="";

                    ft1.Hide (fragment);
                    ft1.Replace (Resource.Id.content_frame, fragment,"HuoJingXiangXiXinXIShouDongSouSuo");

                    ft1.AddToBackStack (null);

                    ft1.Show (fragment);
                    ft1.Commit ();

                };

                return view1;

            }

            else if (pos == 2)
            {

                View view2 = LayoutInflater.From(container.Context).Inflate(Resource.Layout.Paper_Item_ZiDong, container, false);
                container.AddView(view2);

                txtTitle = view2.FindViewById<TextView>(Resource.Id.item_subtitle2);

                mHuoJingSpinner2 = view2.FindViewById<Spinner> (Resource.Id.spinnerHuoJingLiShiDiDIanXinXi2);

                mHuoJingSpinner2.ItemSelected += new EventHandler<AdapterView.ItemSelectedEventArgs> (spinner2_ItemSelected);
                var adapter = ArrayAdapter.CreateFromResource (
                    mActivity, Resource.Array.baoJingJieGuo, Android.Resource.Layout.SimpleSpinnerItem);

                adapter.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem);
                mHuoJingSpinner2.Adapter = adapter;

                mHuoJingLiShiBeginTime2 = view2.FindViewById<Button> (Resource.Id.HuojingLiShipickDateBegin2);
                mHuoJingLiShiEndTime2 = view2.FindViewById<Button> (Resource.Id.HuojingLiShipickDateEnd2);
                mHuoJingSouSuo2 = view2.FindViewById<Button> (Resource.Id.btnZiDongBaoJingSouSuo);

                mHuoJingLiShiBeginTime2.Click += delegate {

                    clickFlag=0;
                    var dialogShow = new DatePickerDialogFragment(mActivity, BeginDate,mListener);
                    dialogShow.Show(mActivity.FragmentManager.BeginTransaction(), null);

                };

                mHuoJingLiShiEndTime2.Click += delegate {

                    clickFlag=1;
                    var dialogShow = new DatePickerDialogFragment(mActivity, BeginDate,mListener);
                    dialogShow.Show(mActivity.FragmentManager.BeginTransaction(), null);

                };

                mHuoJingSouSuo2.Click += delegate(object sender, EventArgs e) {

                    //每次成功查询结束后,把三个string置空
                    var ft1=mActivity.FragmentManager.BeginTransaction ();

                    ft1.SetCustomAnimations(Resource.Animation.card_flip_right_in, Resource.Animation.card_flip_right_out,
                        Resource.Animation.card_flip_left_in, Resource.Animation.card_flip_left_out);
                    var fragment = HuoJingXiangXiSouSuoJieGuoFrag.NewInstance ("3",selectedBaoJingJieGuo ,selectedBeginTime,selectedEndTime);

                    selectedBaoJingJieGuo="";
                    selectedBeginTime="";
                    selectedEndTime="";

                    ft1.Hide (fragment);
                    ft1.Replace (Resource.Id.content_frame, fragment,"HuoJingXiangXiXinXIShouDongSouSuo");

                    ft1.AddToBackStack (null);

                    ft1.Show (fragment);
                    ft1.Commit ();

                };

                return view2;

            }

            else
            {

                View view3 = LayoutInflater.From(container.Context).Inflate(Resource.Layout.Paper_Item_JianGuan, container, false);
                container.AddView(view3);

                txtTitle = view3.FindViewById<TextView>(Resource.Id.item_subtitle3);

                mHuoJingSpinner3 = view3.FindViewById<Spinner> (Resource.Id.spinnerHuoJingLiShiDiDIanXinXi3);

                mHuoJingSpinner3.ItemSelected += new EventHandler<AdapterView.ItemSelectedEventArgs> (spinner3_ItemSelected);
                var adapter = ArrayAdapter.CreateFromResource (
                    mActivity, Resource.Array.baoJingJieGuo, Android.Resource.Layout.SimpleSpinnerItem);

                adapter.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem);
                mHuoJingSpinner3.Adapter = adapter;

                mHuoJingLiShiBeginTime3 = view3.FindViewById<Button> (Resource.Id.HuojingLiShipickDateBegin3);
                mHuoJingLiShiEndTime3 = view3.FindViewById<Button> (Resource.Id.HuojingLiShipickDateEnd3);
                mHuoJingSouSuo3 = view3.FindViewById<Button> (Resource.Id.btnJianGuanBaoJingSouSuo);

                mHuoJingLiShiBeginTime3.Click += delegate {

                    clickFlag=0;
                    var dialogShow = new DatePickerDialogFragment(mActivity, BeginDate,mListener);
                    dialogShow.Show(mActivity.FragmentManager.BeginTransaction(), null);

                };

                mHuoJingLiShiEndTime3.Click += delegate {

                    clickFlag=1;
                    var dialogShow = new DatePickerDialogFragment(mActivity, BeginDate,mListener);
                    dialogShow.Show(mActivity.FragmentManager.BeginTransaction(), null);

                };

                mHuoJingSouSuo3.Click += delegate(object sender, EventArgs e) {

                    //每次成功查询结束后,把三个string置空
                    var ft1=mActivity.FragmentManager.BeginTransaction ();

                    ft1.SetCustomAnimations(Resource.Animation.card_flip_right_in, Resource.Animation.card_flip_right_out,
                        Resource.Animation.card_flip_left_in, Resource.Animation.card_flip_left_out);
                    var fragment = HuoJingXiangXiSouSuoJieGuoFrag.NewInstance ("2",selectedBaoJingJieGuo ,selectedBeginTime,selectedEndTime);

                    selectedBaoJingJieGuo="";
                    selectedBeginTime="";
                    selectedEndTime="";

                    ft1.Hide (fragment);
                    ft1.Replace (Resource.Id.content_frame, fragment,"HuoJingXiangXiXinXIShouDongSouSuo");

                    ft1.AddToBackStack (null);

                    ft1.Show (fragment);
                    ft1.Commit ();

                };

                return view3;

            }
        }
        public override Java.Lang.Object InstantiateItem(ViewGroup container, int position)
        {
            int pos = position + 1;

            if (pos == 1)
            {

                View view1 = LayoutInflater.From(container.Context).Inflate(Resource.Layout.BaoBiaoRi, container, false);
                container.AddView(view1);

                mRiPicker = view1.FindViewById<Button> (Resource.Id.RiBaoBiaoRiQi);
                mRiChaXun = view1.FindViewById<Button> (Resource.Id.RiBaoBiaoChaXun);

                m11 = view1.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo1);
                m21 = view1.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo2);
                m31 = view1.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo3);
                m41 = view1.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo4);
                m51 = view1.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo5);
                m61 = view1.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo6);
                m71 = view1.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo7);
                m81 = view1.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo8);
                mLayout1 = view1.FindViewById<LinearLayout> (Resource.Id.myJieGuoLayoutRi);
                mLayout1.Visibility = ViewStates.Invisible;

                mProgressBarRi = view1.FindViewById<ProgressBar> (Resource.Id.progressBarRi);

                //mRiChaXun.SetOnClickListener (mBtnListener);

                mRiPicker.Click += delegate {

                    var dialogShow = new DatePickerDialogFragment(mActivity, BeginDate,mListener);
                    dialogShow.Show(mActivity.FragmentManager.BeginTransaction(), null);
                };

                mRiChaXun.Click += delegate {

                    mLayout1.Visibility = ViewStates.Invisible;

                    if(selectedRi=="")
                    {
                        Toast mToast = Toast.MakeText (mActivity, "请选择日期", ToastLength.Short);
                        mToast.Show ();
                    }
                    else
                    {
                        mProgressBarRi.Visibility = ViewStates.Visible;

                        mWorkerRi=new BackgroundWorker();
                        mWorkerRi.WorkerSupportsCancellation = true;

                        mWorkerRi.DoWork+= delegate(object sender1, DoWorkEventArgs e1) {

                            BackgroundWorker mworker = sender1 as BackgroundWorker;

                            if (mworker.CancellationPending == true) {
                                e1.Cancel = true;
                            } else {

                                begin=selectedRi;
                                end=selectedRi;
                                HttpRequestLiSHi(begin,end);

                            }

                        };

                        mWorkerRi.RunWorkerCompleted+=delegate(object sender1, RunWorkerCompletedEventArgs e1) {

                            if (e1.Cancelled == true) {

                            } else if (!(e1.Error == null)) {

                            } else {

                                if(internetFlag==1)
                                {
                                    m11.Text="查岗数: "+mbaoBiaoList[mbaoBiaoList.Count-1].changangnum;
                                    m21.Text="缺岗数: "+mbaoBiaoList[mbaoBiaoList.Count-1].queggangnum;
                                    m31.Text="火警数: "+mbaoBiaoList[mbaoBiaoList.Count-1].fireallnum;
                                    m41.Text="误报数: "+mbaoBiaoList[mbaoBiaoList.Count-1].wubaonum;
                                    m51.Text="成灾数: "+mbaoBiaoList[mbaoBiaoList.Count-1].chengzai;
                                    m61.Text="关机数: "+mbaoBiaoList[mbaoBiaoList.Count-1].guanji;
                                    m71.Text="故障数: "+mbaoBiaoList[mbaoBiaoList.Count-1].guzhangnum;
                                    m81.Text="网关数: "+"0";

                                    //m8.Text="网关数: "+mbaoBiaoList[0].netfault;
                                    mActivity.RunOnUiThread (() => {

                                        Animation anim = AnimationUtils.LoadAnimation(mActivity, Resource.Animation.CardView_Slide_up);
                                        mLayout1.StartAnimation(anim);
                                        mLayout1.Visibility = ViewStates.Visible;
                                    });

                                }
                                else{

                                    Toast mToast = Toast.MakeText (Application.Context, "网络异常", ToastLength.Short);
                                    mToast.Show ();

                                }

                            }

                            mProgressBarRi.Visibility = ViewStates.Gone;

                        };

                        if (mWorkerRi.IsBusy != true) {
                            mWorkerRi.RunWorkerAsync ();
                        }

                    }

                };

                return view1;

            }

            else if (pos == 2)
            {

                View view2 = LayoutInflater.From(container.Context).Inflate(Resource.Layout.BaoBiaoYue, container, false);
                container.AddView(view2);

                mYueNian = view2.FindViewById<Spinner> (Resource.Id.YueBaoBiaoNianFen);
                mYueYue = view2.FindViewById<Spinner> (Resource.Id.YueBaoBiaoYueFen);

                mYueChaXun = view2.FindViewById<Button> (Resource.Id.YueBaoBiaoChaXun);

                m12 = view2.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo1yue);
                m22 = view2.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo2yue);
                m32 = view2.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo3yue);
                m42 = view2.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo4yue);
                m52 = view2.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo5yue);
                m62 = view2.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo6yue);
                m72 = view2.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo7yue);
                m82 = view2.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo8yue);
                mLayout2 = view2.FindViewById<LinearLayout> (Resource.Id.myJieGuoLayoutyue);
                mLayout2.Visibility = ViewStates.Invisible;

                mProgressBarYue = view2.FindViewById<ProgressBar> (Resource.Id.progressBarYue);

                mYueNian.ItemSelected += new EventHandler<AdapterView.ItemSelectedEventArgs> (MYueSpinnerNian);
                var adapter1 = ArrayAdapter.CreateFromResource (
                    mActivity, Resource.Array.NianFen, Android.Resource.Layout.SimpleSpinnerItem);

                adapter1.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem);
                mYueNian.Adapter = adapter1;

                mYueYue.ItemSelected += new EventHandler<AdapterView.ItemSelectedEventArgs> (MYueSpinnerYue);
                var adapter2 = ArrayAdapter.CreateFromResource (
                    mActivity, Resource.Array.YueFen, Android.Resource.Layout.SimpleSpinnerItem);

                adapter2.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem);
                mYueYue.Adapter = adapter2;

                //mYueChaXun.SetOnClickListener (mBtnListener);

                mYueChaXun.Click += delegate {

                    mLayout2.Visibility = ViewStates.Invisible;

                    mProgressBarYue.Visibility = ViewStates.Visible;

                    mWorkerYue=new BackgroundWorker();
                    mWorkerYue.WorkerSupportsCancellation = true;

                    mWorkerYue.DoWork+= delegate(object sender1, DoWorkEventArgs e1) {

                        BackgroundWorker mworker = sender1 as BackgroundWorker;

                        if (mworker.CancellationPending == true) {
                            e1.Cancel = true;
                        } else {
                            begin=selectedyueNian+"-"+selectedyueYue+"-"+"01";
                            end=selectedyueNian+"-"+selectedyueYue+"-"+System.DateTime.DaysInMonth(Int32.Parse(selectedyueNian),Int32.Parse(selectedyueYue)).ToString();
                            HttpRequestLiSHi(begin,end);
                        }

                    };

                    mWorkerYue.RunWorkerCompleted+=delegate(object sender1, RunWorkerCompletedEventArgs e1) {

                        if (e1.Cancelled == true) {

                        } else if (!(e1.Error == null)) {

                        } else {
                            if(internetFlag==1)
                            {
                                m12.Text="查岗数: "+mbaoBiaoList[mbaoBiaoList.Count-1].changangnum;
                                m22.Text="缺岗数: "+mbaoBiaoList[mbaoBiaoList.Count-1].queggangnum;
                                m32.Text="火警数: "+mbaoBiaoList[mbaoBiaoList.Count-1].fireallnum;
                                m42.Text="误报数: "+mbaoBiaoList[mbaoBiaoList.Count-1].wubaonum;
                                m52.Text="成灾数: "+mbaoBiaoList[mbaoBiaoList.Count-1].chengzai;
                                m62.Text="关机数: "+mbaoBiaoList[mbaoBiaoList.Count-1].guanji;
                                m72.Text="故障数: "+mbaoBiaoList[mbaoBiaoList.Count-1].guzhangnum;
                                m82.Text="网关数: "+"0";

                                //m8.Text="网关数: "+mbaoBiaoList[0].netfault;

                                mActivity.RunOnUiThread (() => {

                                    Animation anim = AnimationUtils.LoadAnimation(mActivity, Resource.Animation.CardView_Slide_up);
                                    mLayout2.StartAnimation(anim);
                                    mLayout2.Visibility = ViewStates.Visible;
                                });

                            }
                            else
                            {
                                Toast mToast = Toast.MakeText (Application.Context, "网络异常", ToastLength.Short);
                                mToast.Show ();

                            }

                        }

                        mProgressBarYue.Visibility = ViewStates.Gone;

                    };

                    if (mWorkerYue.IsBusy != true) {
                        mWorkerYue.RunWorkerAsync ();
                    }

                };

                return view2;

            }

            else
            {

                View view3 = LayoutInflater.From(container.Context).Inflate(Resource.Layout.BaoBiaoNian, container, false);
                container.AddView(view3);

                mNianPicker = view3.FindViewById<Spinner> (Resource.Id.NianBaoBiaoNianFen);
                mNianChaXun = view3.FindViewById<Button> (Resource.Id.NianBaoBiaoChaXun);

                m13 = view3.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo1Nian);
                m23 = view3.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo2Nian);
                m33 = view3.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo3Nian);
                m43 = view3.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo4Nian);
                m53 = view3.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo5Nian);
                m63 = view3.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo6Nian);
                m73 = view3.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo7Nian);
                m83 = view3.FindViewById<TextView> (Resource.Id.BaoBiaoJieGuo8Nian);
                mLayout3 = view3.FindViewById<LinearLayout> (Resource.Id.myJieGuoLayoutNian);
                mLayout3.Visibility = ViewStates.Invisible;

                mProgressBarNian = view3.FindViewById<ProgressBar> (Resource.Id.progressBarNian);

                mNianPicker.ItemSelected += new EventHandler<AdapterView.ItemSelectedEventArgs> (MNianSpinner);
                var adapter1 = ArrayAdapter.CreateFromResource (
                    mActivity, Resource.Array.NianFen, Android.Resource.Layout.SimpleSpinnerItem);

                adapter1.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem);
                mNianPicker.Adapter = adapter1;

                //mNianChaXun.SetOnClickListener (mBtnListener);

                mNianChaXun.Click += delegate {

                    mLayout3.Visibility = ViewStates.Invisible;
                    mProgressBarNian.Visibility = ViewStates.Visible;

                    mWorkerNian=new BackgroundWorker();
                    mWorkerNian.WorkerSupportsCancellation = true;

                    mWorkerNian.DoWork+= delegate(object sender1, DoWorkEventArgs e1) {

                        BackgroundWorker mworker = sender1 as BackgroundWorker;

                        if (mworker.CancellationPending == true) {
                            e1.Cancel = true;
                        } else {

                            begin=selectedNian+"-"+"01"+"-"+"01";
                            end=selectedNian+"-12-31";
                            HttpRequestLiSHi(begin,end);

                        }

                    };

                    mWorkerNian.RunWorkerCompleted+=delegate(object sender1, RunWorkerCompletedEventArgs e1) {

                        if (e1.Cancelled == true) {

                        } else if (!(e1.Error == null)) {

                        } else {

                            if(internetFlag==1)
                            {
                                m13.Text="查岗数: "+mbaoBiaoList[mbaoBiaoList.Count-1].changangnum;
                                m23.Text="缺岗数: "+mbaoBiaoList[mbaoBiaoList.Count-1].queggangnum;
                                m33.Text="火警数: "+mbaoBiaoList[mbaoBiaoList.Count-1].fireallnum;
                                m43.Text="误报数: "+mbaoBiaoList[mbaoBiaoList.Count-1].wubaonum;
                                m53.Text="成灾数: "+mbaoBiaoList[mbaoBiaoList.Count-1].chengzai;
                                m63.Text="关机数: "+mbaoBiaoList[mbaoBiaoList.Count-1].guanji;
                                m73.Text="故障数: "+mbaoBiaoList[mbaoBiaoList.Count-1].guzhangnum;
                                m83.Text="网关数: "+"0";

                                //m8.Text="网关数: "+mbaoBiaoList[0].netfault;

                                mActivity.RunOnUiThread (() => {

                                    Animation anim = AnimationUtils.LoadAnimation(mActivity, Resource.Animation.CardView_Slide_up);
                                    mLayout3.StartAnimation(anim);
                                    mLayout3.Visibility = ViewStates.Visible;
                                });

                            }

                            else
                            {
                                Toast mToast = Toast.MakeText (Application.Context, "网络异常", ToastLength.Short);
                                mToast.Show ();
                            }
                        }

                        mProgressBarNian.Visibility = ViewStates.Gone;

                    };

                    if (mWorkerNian.IsBusy != true) {
                        mWorkerNian.RunWorkerAsync ();
                    }

                };

                return view3;

            }
        }