コード例 #1
0
        public MemberFunctionsPage(Controls.MemberPlacard TheMember)
        {
            InitializeComponent();

            SelectedMember = TheMember;

            lstMemberStuff.Children.Add(SelectedMember);
        }
コード例 #2
0
        public MemberTeam(Controls.MemberPlacard TheMember)
        {
            InitializeComponent();

            SelectedMember = TheMember;

            lstMemberStuff.Children.Add(SelectedMember);

            GetTeam();
        }
コード例 #3
0
        public MemberEncounterNotes(Controls.MemberPlacard TheMember)
        {
            InitializeComponent();

            SelectedMember = TheMember;

            lstMemberStuff.Children.Add(SelectedMember);

            GetEncounterNotes();
        }
コード例 #4
0
        public MemberCreateEncounterNote(MemberPlacard TheMember)
        {
            InitializeComponent();

            SelectedMember = TheMember;

            lstMemberStuff.Children.Add(SelectedMember);

            GetAuths();
        }
コード例 #5
0
        public MemberCreateCollateralNote(Controls.MemberPlacard TheMember)
        {
            InitializeComponent();

            SelectedMember = TheMember;

            lstMemberStuff.Children.Add(SelectedMember);

            NoteTypePicker.ItemsSource    = Settings.Lookups.LOOKUPPROGRESSNOTETYPES;
            ContactTypePicker.ItemsSource = Settings.Lookups.LOOKUPNOTECONTACTTYPE;
            ContactDate.MaximumDate       = DateTime.Now; // cannot pick a date in the future for contact

            //GetCollateralNotes();
        }
コード例 #6
0
        public MemberMainPage()
        {
            InitializeComponent();

            if (Settings.LOGGEDIN)
            {
                lblWelcome.Text = "Welcome " + Settings.FIRSTNAME + " " + Settings.LASTNAME;

                Controls.MemberPlacard m = new Controls.MemberPlacard(Settings.MemberLoggedIn.FirstName, Settings.MemberLoggedIn.LastName, Settings.MemberLoggedIn);

                SelectedMember = m;

                //GetMOTD();
                //GetLookups();
                //GetMyCaseLoad();
            }
            else
            {
                Application.Current.MainPage = new Login();
            }
        }
コード例 #7
0
        async void GetMyCaseLoad()
        {
            string URL = Settings.BASEURL;//"";
            string u   = Settings.USERNAME;


            URL += "/Login/GetCaseLoad";

            HttpClient c = new HttpClient();

            c.DefaultRequestHeaders.Add("LOGIN", u);

            var response = await c.GetStringAsync(URL);

            var theresult = JsonConvert.DeserializeObject <List <MemberDetailsShort> >(response);

            int evenodd = 0;

            foreach (MemberDetailsShort s in theresult)
            {
                evenodd += 1;
                Controls.MemberPlacard m = new Controls.MemberPlacard(s.FirstName, s.LastName, s);

                m.SetBackground(evenodd);

                TapGestureRecognizer trec = new TapGestureRecognizer();
                trec.NumberOfTapsRequired = 1;
                trec.Tapped += Trec_Tapped;

                m.GestureRecognizers.Add(trec);

                lstMyCaseLoad.Children.Add(m);
            }

            //lvMYCASELOAD.ItemsSource = theresult;
        }