Ejemplo n.º 1
0
        /// <summary>
        /// 跳转到任务完成页面
        /// </summary>
        private void Jump2TaskDetail(bool hasModifyPremission)
        {
            UserTasksInfoShow CurrentFocusRecord = new UserTasksInfoShow();

            CurrentFocusRecord = (UserTasksInfoShow)LVTaskList.SelectedItem;
            if (CurrentFocusRecord != null)
            {
                #region 写操作日志
                string lancode = hasModifyPremission ? "3103T00073" : "3103T00039";
                string opid    = hasModifyPremission ? S3103Consts.OPT_MODIFYTASK.ToString() : S3103Consts.OPT_VIEWTASKDETAIL.ToString();
                string strLog  = string.Format("{0} {1}", Utils.FormatOptLogString(lancode), CurrentFocusRecord.TaskName);
                CurrentApp.WriteOperationLog(opid, ConstValue.OPT_RESULT_SUCCESS, strLog);
                #endregion
                mPageTaskRecordDetail            = new TaskRecordDetail();
                mPageTaskRecordDetail.PageParent = this;
                CurrentApp.CurrentView           = mPageTaskRecordDetail;
                mPageTaskRecordDetail.PageName   = "TaskRecordDetail";
                TaskRecordDetail.SelectTask      = CurrentFocusRecord;
                TaskRecordDetail.IsModify        = hasModifyPremission;
                var temp = CurrentApp as S3103App;
                if (temp != null)
                {
                    temp.InitMainView(mPageTaskRecordDetail);
                }
            }
        }
Ejemplo n.º 2
0
 void BtnClose_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (TaskPage2 != null)
         {
             var temp = CurrentApp as S3103App;
             TaskRecordDetail taskDetailView = new TaskRecordDetail();
             CurrentApp.CurrentView  = taskDetailView;
             taskDetailView.PageName = "TaskRecordDetail";
             if (temp != null)
             {
                 temp.InitMainView(taskDetailView);
                 //temp.InitMainView(0);
             }
             return;
         }
         OnPasswordManagerEventEvent(PasswordManagerEventCode.PASS_CANCEL, string.Empty);
         var panel = Parent as PopupPanel;
         if (panel != null)
         {
             panel.IsOpen = false;
         }
     }
     catch { }
 }