示例#1
0
        public async void editThongTin(string CMND, listquatrinh list)
        {
            tabView.SelectedItem = tabView.Items[0];
            Debug.WriteLine(list.ID);
            FirebaseResponse tk = await client.GetAsync("khachthue/" + CMND + "/KHACHTHUEQUATRINH/" + list.ID + "/");

            KHACH_THUE_QUA_TRINH GD = tk.ResultAs <KHACH_THUE_QUA_TRINH>();

            Debug.WriteLine(GD.NGHENGHIEP);
            try
            {
                if (GD != null)
                {
                    IDThongTinKhachHangGD             = GD.ID;
                    NGHENGHIEP_.Text                  = GD.NGHENGHIEP;
                    AddressSiteLabelNavigatePage.Text = GD.CHO_O;
                    JobSiteLabelNavigatePage.Text     = GD.NOILAMVIEC;
                    TUNGAY_.Date  = GD.TUTHANGNAM.Value;
                    DENNGAY_.Date = GD.DENTHANGNAM.Value;
                }
            }
            catch (Exception e)
            {
                Debug.WriteLine(e.ToString());
            }
        }
示例#2
0
        async void check(listquatrinh foo)
        {
            string action1 = await DisplayActionSheet("Chọn thao tác của bạn?", "Huỷ", null, "Chỉnh Sửa", "Xoá");

            Debug.WriteLine("Action: " + action1);
            if (action1 == "Xoá")
            {
                getthongtincuoi(CMND_, foo.ID);
            }
            if (action1 == "Chỉnh Sửa")
            {
                editThongTin(CMND_, foo);
                getquatrinh(UserData.shared.IDCard);
                flagEdit = true;
            }
            if (action1 == "Huỷ")
            {
                getquatrinh(UserData.shared.IDCard);
            }
        }