Ejemplo n.º 1
0
 /// <summary>
 /// 打开日常工作
 /// Created:20170409 (ChengMengjia)
 /// </summary>
 public void OpenRoutine()
 {
     if (nodeRoutine == null)
     {
         nodeRoutine = new Forms.Others.Routine(CurrentNode.ID);
     }
     else
     {
         nodeRoutine.LoadContent(CurrentNode.ID);
     }
     ShowChildForm(nodeRoutine);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 点击近期工作和问题一览时
        /// Created:2017.03.29(Xuxb)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void superGridLastWork_CellClick(object sender, DevComponents.DotNetBar.SuperGrid.GridCellClickEventArgs e)
        {
            if (e.GridCell.GridColumn.Name == "Operate")
            {
                string    WorkType = e.GridCell.GridRow.Cells["WorkType"].Value.ToString();
                MainFrame mainForm = (MainFrame)this.Parent.TopLevelControl;

                if (WorkType == "日常工作")
                {
                    Forms.Others.Routine form = new Forms.Others.Routine("");
                    form.WorkId = e.GridCell.GridRow.Cells["Id"].Value.ToString();
                    mainForm.ShowChildForm(form);
                }
                else
                {
                    Forms.Others.Trouble form = new Forms.Others.Trouble("");
                    form.TroubleId = e.GridCell.GridRow.Cells["Id"].Value.ToString();
                    mainForm.ShowChildForm(form);
                }
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 双击近期工作和问题一览时
        /// Created:20170609(ChengMengjia)
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void superGridLastWork_RowDoubleClick(object sender, GridRowDoubleClickEventArgs e)
        {
            GridCell cell = e.GridRow.SuperGrid.GetCell(e.GridRow.RowIndex, 5);

            if (cell != null)
            {
                string    WorkType = e.GridRow.SuperGrid.GetCell(e.GridRow.RowIndex, 1).Value.ToString();
                MainFrame mainForm = (MainFrame)this.Parent.TopLevelControl;

                if (WorkType == "日常工作")
                {
                    Forms.Others.Routine form = new Forms.Others.Routine("");
                    form.WorkId = cell.Value.ToString();
                    mainForm.ShowChildForm(form);
                }
                else
                {
                    Forms.Others.Trouble form = new Forms.Others.Trouble("");
                    form.TroubleId = cell.Value.ToString();
                    mainForm.ShowChildForm(form);
                }
            }
        }