Beispiel #1
0
        public static string ShowRecentInfo()
        {
            if (!string.IsNullOrWhiteSpace(CommonViewModel.RecentActionStatus) &&
                EachTaskModel.IsSpecificDateTask(CommonViewModel.RecentSelectedEachTaskId, DateTimeOffset.Now.LocalDateTime.Date))
            {
                EachTask eachTask = EachTaskModel.GetEachTask(CommonViewModel.RecentSelectedEachTaskId);

                return($"現在の状態:{eachTask.Content} {CommonViewModel.RecentActionStatus}");
            }
            else
            {
                return($"現在の状態:1日の作業開始前");
            }
        }
Beispiel #2
0
        public void SetSelectedEachTask()
        {
            try
            {
                EachTask selectedTask = EachTaskModel.GetEachTask(CommonViewModel.RecentSelectedEachTaskId);

                if (selectedTask != null)
                {
                    this.SelectedEachTaskItem = new TaskDisplayInfo()
                    {
                        EachTaskId = selectedTask.EachTaskId,
                        Content    = (selectedTask.CompleteFlag ? "✔" : "").PadRight(3) + selectedTask.Content
                    };
                }
            }
            catch
            {
                CommonViewModel.NotifySystemMessage(GetLangMessage.GetMessage("Exception"));
            }
        }
Beispiel #3
0
        public static string ShowRecentInfo()
        {
            try
            {
                if (!string.IsNullOrWhiteSpace(CommonViewModel.RecentActionStatus) &&
                    EachTaskModel.IsSpecificDateTask(CommonViewModel.RecentSelectedEachTaskId, DateTimeOffset.Now.LocalDateTime.Date))
                {
                    EachTask eachTask = EachTaskModel.GetEachTask(CommonViewModel.RecentSelectedEachTaskId);

                    return($"{GetLangMessage.GetMessage("Msg1008")}:{eachTask.Content} {GetLangMessage.GetMessage(CommonViewModel.RecentActionStatus)}");
                }
                else
                {
                    return($"{GetLangMessage.GetMessage("Msg1008")}:{GetLangMessage.GetMessage("Msg1009")}");
                }
            }
            catch
            {
                return(GetLangMessage.GetMessage("Exception"));
            }
        }