public ClassificationPage(Enttype ent, BusinessDetailFlow flow)
        {
            InitializeComponent();
            zonghe.WidthRequest   = (App.ScreenWidth - (App.ScreenWidth / 10 + 10)) / 2 - 10;
            zonghe.HeightRequest  = zonghe.WidthRequest * 273 / 326;
            ro.WidthRequest       = (App.ScreenWidth - (App.ScreenWidth / 10 + 10)) / 2 - 10;
            ro.HeightRequest      = zonghe.WidthRequest * 273 / 326;
            zhibiao.WidthRequest  = (App.ScreenWidth - (App.ScreenWidth / 10 + 10)) / 2 - 10;
            zhibiao.HeightRequest = zonghe.WidthRequest * 273 / 326;
            yujing.WidthRequest   = (App.ScreenWidth - (App.ScreenWidth / 10 + 10)) / 2 - 10;
            yujing.HeightRequest  = zonghe.WidthRequest * 273 / 326;

            yujing1.Margin  = new Thickness(0, 5, App.ScreenWidth / 2 - yujing.WidthRequest, 0);
            baojing.Margin  = new Thickness(0, 40, App.ScreenWidth / 2 - yujing.WidthRequest, 0);
            yujing11.Margin = new Thickness(0, 5, App.ScreenWidth / 2 - yujing.WidthRequest, 0);
            baojing1.Margin = new Thickness(0, 40, App.ScreenWidth / 2 - yujing.WidthRequest, 0);



            NavigationPage.SetBackButtonTitle(this, "");

            this.Title = ent.name;
            _ent       = ent;
            _flow      = flow;


            BackgroundWorker wrk = new BackgroundWorker();

            wrk.DoWork += (sender, e) => {
                makeData();
            };
            wrk.RunWorkerCompleted += (sender, e) => {
                if (aaaa != null)
                {
                    for (int i = 0; i < aaaa.Count; i++)
                    {
                        resutlDic dic = aaaa[i];

                        //报警
                        if (dic.counttype == "1")
                        {
                            baojing1.Text = dic.count;
                        }
                        //预警
                        if (dic.counttype == "2")
                        {
                            yujing11.Text = dic.count;
                        }
                    }
                }
            };
            wrk.RunWorkerAsync();
        }
Exemple #2
0
        public BusinessDetailsPage(Enttype ent, int type)
        {
            InitializeComponent();
            NavigationPage.SetBackButtonTitle(this, "");
            this.Title = ent.name;
            _ent       = ent;
            if (type == 0)
            {
                NavigationPage.SetHasBackButton(this, false);
            }
            //BusinessName.Text = ent.name;
            //alarmBut.IsVisible = (bool)ent.alarm;
            //if (ent.alert == true)
            //alertBut.IsVisible = (bool)ent.alert;
            lastBut = gongyishuBut;

            BackgroundWorker wrk = new BackgroundWorker();

            wrk.DoWork += (sender, e) => {
                CrossHud.Current.Show("请求中。。。");
                makeData();
            };
            wrk.RunWorkerCompleted += (sender, e) => {
                //desalination.Text = details.desalination;
                //recovery.Text = details.recovery;
                //avgrecovery.Text = details.avgrecovery;
                //infoLab.Text = _ent.addr + details.remark;
                //listV.ItemsSource = details.flow;
                for (int i = 0; i < details.flow.Count; i++)
                {
                    BusinessDetailFlow flow = details.flow[i];
                    if (flow.flowtype == "0")
                    {
                        _GYSList.Add(flow);
                    }

                    if (flow.flowtype == "1")
                    {
                        _XHSList.Add(flow);
                    }

                    if (flow.flowtype == "2")
                    {
                        _GYFSList.Add(flow);
                    }
                }
                listV.ItemsSource = _GYSList;

                CrossHud.Current.Dismiss();
            };
            wrk.RunWorkerAsync();
        }
Exemple #3
0
        public DeviceListPage(BusinessDetailFlow flow, string businness)
        {
            InitializeComponent();

            NavigationPage.SetBackButtonTitle(this, "");
            _flow                = flow;
            this.Title           = flow.flowname + " - 设备列表";
            businessNameLab.Text = businness;
            gongyiliucheng.Text  = flow.flowname + "(" + flow.flowTypeName + ")";

            BackgroundWorker wrk = new BackgroundWorker();

            wrk.DoWork += (sender, e) => {
                makeData();
            };
            wrk.RunWorkerCompleted += (sender, e) => {
                listV.ItemsSource = dataList;
            };
            wrk.RunWorkerAsync();
        }
Exemple #4
0
        public EquipmentParametersPage(BusinessDetailFlow details, string businness, string gylc, string EID, string title)
        {
            InitializeComponent();
            NavigationPage.SetBackButtonTitle(this, "");
            _eqId                = EID;
            _details             = details;
            this.Title           = title;
            businessNameLab.Text = businness;
            gongyiliucheng.Text  = gylc;


            BackgroundWorker wrk = new BackgroundWorker();

            wrk.DoWork += (sender, e) => {
                makeData();
            };
            wrk.RunWorkerCompleted += (sender, e) => {
                listV.ItemsSource = list;
            };
            wrk.RunWorkerAsync();
        }
        public DeviceInfoPage(BusinessDetailFlow details, string businness, string gylc, string AID, string title)
        {
            InitializeComponent();
            NavigationPage.SetBackButtonTitle(this, "");
            _arrayID             = AID;
            _flow                = details;
            this.Title           = title;
            businessNameLab.Text = businness;
            gongyiliucheng.Text  = gylc;



            BackgroundWorker wrk = new BackgroundWorker();

            wrk.DoWork += (sender, e) => {
                makeData();
            };
            wrk.RunWorkerCompleted += (sender, e) => {
                listV.ItemsSource = dataList;
            };
            wrk.RunWorkerAsync();
        }
Exemple #6
0
        public ROEquipmentInfoPage(BusinessDetailFlow flow, ROEquipmentModel equipment, string businness)
        {
            InitializeComponent();

            NavigationPage.SetBackButtonTitle(this, "");

            _flow                = flow;
            _equipment           = equipment;
            this.Title           = equipment.nameName + " - RO运行参数";
            businessNameLab.Text = businness;
            gongyiliucheng.Text  = flow.flowname + "(" + flow.flowTypeName + ")";

            BackgroundWorker wrk = new BackgroundWorker();

            wrk.DoWork += (sender, e) => {
                CrossHud.Current.Show("请求中。。。");
                makeData();
            };
            wrk.RunWorkerCompleted += (sender, e) => {
                listV.ItemsSource = dataList;
            };
            wrk.RunWorkerAsync();
        }
        public ProcessInformationPage(BusinessDetailFlow flow, string businness)
        {
            InitializeComponent();
            NavigationPage.SetBackButtonTitle(this, "");
            _flow                = flow;
            _businness           = businness;
            this.Title           = flow.flowname + " - 综合信息";
            businessNameLab.Text = businness;
            gongyiliucheng.Text  = flow.flowname + "(" + flow.flowTypeName + ")";

            DateTime end   = DateTime.Now;
            DateTime start = end.AddHours(-6);

            startDatePicker.Date = start.Date;
            endDatePicker.Date   = end.Date;

            startTime = start.TimeOfDay;
            endTime   = end.TimeOfDay;
            endTimePicker.BindingContext  = this;
            starTimePicker.BindingContext = this;
            startTimeBut.BindingContext   = this;
            endTimeBut.BindingContext     = this;

            BackgroundWorker wrk = new BackgroundWorker();

            wrk.DoWork += (sender, e) => {
                CrossHud.Current.Show("请求中。。。");
                makeData();
            };
            wrk.RunWorkerCompleted += (sender, e) => {
                CrossHud.Current.Dismiss();
                if (list != null)
                {
                    for (int i = 0; i < list.Count; i++)
                    {
                        FlowDesInfo info = list[i];
                        if (info.opname.Contains("提效前吨水成本"))
                        {
                            lab1.Text = info.value.Value.ToString("f2") + info.unit;
                        }
                        if (info.opname.Contains("提效后吨水成本"))
                        {
                            lab2.Text = info.value.Value.ToString("f2") + info.unit;
                        }
                        if (info.opname.Contains("提效前综合利用率"))
                        {
                            lab3.Text = info.value.Value.ToString("f2") + info.unit;
                        }
                        if (info.opname.Contains("总进水累计流量K1"))
                        {
                            entry1.Text = info.value.Value.ToString("f2");
                        }
                        if (info.opname.Contains("总产水累计流量K2"))
                        {
                            entry2.Text = info.value.Value.ToString("f2");
                        }
                    }
                }
            };
            wrk.RunWorkerAsync();
        }