public override async Task Init()
        {
            //await UnhandledExceptionProccesing.SendErrorServer();

            if (OrderRowId == default(Guid))
            {
                OrderRowId = new Guid("4CB06476-B10C-406A-98A2-7A6693A4E590");
            }

            HeaderTitle = Globalization.T("(!)OrderDetails");
            AllPatientTabs.ForEach(q => PatientHeaderModels.Add(q, new PatientHeaderModel()));


            PatientAddCommand           = CommandFunc.CreateAsync(PatientAdd);
            PatientDeleteCommand        = CommandFunc.CreateAsync(PatientDelete, () => SelectedPatientOrderItem != null);
            CommitCommand               = CommandFunc.CreateAsync(Commit, () => !HasPatientOrderItemError());
            CancelCommand               = CommandFunc.CreateAsync(Cancel);
            NavigationBarButton1Command = CommandFunc.CreateAsync(ProfileViewModel.OpenPage);
            PatientItemTapCommand       = new Command <ItemTapCommandContext>(async(q) => await PatientItemTap(q));
            ScheduleItemSlotTapCommand  = new Command <ItemTapCommandContext>(ScheduleItemSlotTap);
            //this.PropertyChanged += PropertyChangedAction;

            U.RequestMainThread(async() =>
            {
                if (!await LoadData())
                {
                    return;
                }

                CalendarManager.Control.SelectionChanged += (s, e) => CalcCurrentScheduleItemSlots();
                //SelectedPatientOrderItem = PatientOrderItems.FirstOrDefault();
                CalcAll();
            });
        }
예제 #2
0
        public override async Task Init()
        {
            HeaderTitle   = Globalization.T("ChangePassword");
            IsBackVisible = U.IsBackVisible;
            AllPatientTabs.ForEach(q => PatientHeaderModels.Add(q, new PatientHeaderModel()));

            CommitCommand       = CommandFunc.CreateAsync(Commit, () => !HasModelErrors());
            CancelCommand       = CommandFunc.CreateAsync(Cancel);
            LocaleChooseCommand = CommandFunc.CreateAsync(async() => await Globalization.SwitchLocale());


            U.RequestMainThread(async() =>
            {
                if (!await LoadData())
                {
                    return;
                }
                CalcAll();
            });
        }
예제 #3
0
        public override async Task Init()
        {
            //UserProfileRowId = new Guid("2fd3c1cb-be1a-4444-8131-c44447d3b6bc");

            HeaderTitle   = Globalization.T("Profile");
            IsBackVisible = U.IsBackVisible;
            AllPatientTabs.ForEach(q => PatientHeaderModels.Add(q, new PatientHeaderModel()));

            CommitCommand         = CommandFunc.CreateAsync(Commit, () => !HasModelErrors());
            CancelCommand         = CommandFunc.CreateAsync(Cancel);
            LogoutCommand         = CommandFunc.CreateAsync(Logout);
            ChangePasswordCommand = CommandFunc.CreateAsync(ChangePassword);
            LocaleChooseCommand   = CommandFunc.CreateAsync(async() => await Globalization.SwitchLocale());


            U.RequestMainThread(async() =>
            {
                if (!await LoadData())
                {
                    return;
                }
                CalcAll();
            });
        }