示例#1
0
 /// <summary>
 /// 查询,干扰任务
 /// </summary>
 /// <returns></returns>
 public static CO_IA.Data.TaskManage.DisturbTaskInfo[] GetDisturbTaskInfo(TaskListInfo CurrentTaskListInfo)
 {
     return(PT_BS_Service.Client.Framework.BeOperationInvoker.Invoke <I_CO_IA.TaskManage.I_CO_IA_Task, CO_IA.Data.TaskManage.DisturbTaskInfo[]>(
                channel =>
     {
         return channel.GetDisturbTaskInfo(CurrentTaskListInfo.CHILDGUID);
     }));
 }
 public TaskDetailInfoDialog(TaskListInfo taskListInfo, PageTypes p_pageType)
 {
     InitializeComponent();
     this._currentTask = taskListInfo;
     this._pageType    = p_pageType;
     SetToolBarVisible(p_pageType);
     LoadStyleTest();
     InitData();
     LoadViewDisplay();
 }
        /// <summary>
        /// 删除任务
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnDelete_Click(object sender, RoutedEventArgs e)
        {
            TaskListInfo taskListInfo = _taskGrid.TaskDataGrid.SelectedItem as TaskListInfo;

            if (taskListInfo.GROUPNAME != SystemLoginService.UserOrgInfo.GUID)
            {
                MessageBox.Show("没有权限删除非" + SystemLoginService.UserOrgInfo.NAME + "组创建的任务");
                return;
            }
            if (taskListInfo != null || !string.IsNullOrEmpty(taskListInfo.GUID))
            {
                DeleteTaskInfo(taskListInfo.CHILDGUID, taskListInfo.TASKTYPE);
            }
        }
        /// <summary>
        /// 用于定时接收
        /// </summary>
        /// <param name="taskListInfo"></param>
        public void AddTask(TaskListInfo taskListInfo)
        {
            if (taskListInfo == null)
            {
                return;
            }
            var taskList = this._taskGrid.GridSource;

            if (taskList != null)
            {
                taskList.Insert(0, taskListInfo);
            }
            this._taskGrid.SetDataSource(taskList);
        }
        internal Node CreateTaskList(int parentID, string name)
        {
            TaskListInfo info = new TaskListInfo();

            info.Name     = name;
            info.ParentID = parentID;

            ReAuthenticateIfRequired();
            Node node = fCollaborationService.CreateTaskList(ref fCollaborationAuthentication, info);

            UpdateAuthenticationTokens(fCollaborationAuthentication.AuthenticationToken);

            return(node);
        }
        void TaskDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DataGrid dataGrid = sender as DataGrid;

            if (dataGrid.SelectedItem == null)
            {
                return;
            }

            _selectedTaskInfo        = dataGrid.SelectedItem as TaskListInfo;
            _taskDescribeTBlock.Text = _selectedTaskInfo.EXPANDS;

            SetReceiptMessage();
            SetDeleteBar();
        }
示例#7
0
    private ArrayList UpdateTaskListInfo()
    {
        ArrayList arrayList = new ArrayList();

        if (this.DGrdOverWOrk.Items.Count > 0)
        {
            foreach (DataGridItem dataGridItem in this.DGrdOverWOrk.Items)
            {
                TaskListInfo taskListInfo = new TaskListInfo();
                taskListInfo.ProjectCode = this.ProjectCode;
                taskListInfo.TaskCode    = dataGridItem.Cells[7].Text;
                try
                {
                    taskListInfo.CompleteCount = ((dataGridItem.Cells[8].Text == "") ? 0m : Convert.ToDecimal(dataGridItem.Cells[8].Text)) - ((((TextBox)dataGridItem.Cells[4].Controls[1]).Text == "") ? 0m : Convert.ToDecimal(((TextBox)dataGridItem.Cells[4].Controls[1]).Text));
                }
                catch
                {
                }
                arrayList.Add(taskListInfo);
            }
        }
        return(arrayList);
    }