void 备案确认情况查询_DoubleClick(object sender, EventArgs e)
 {
     Xceed.Grid.Cell srcCell = sender as Xceed.Grid.Cell;
     if (srcCell.ParentColumn.FieldName == "预录入号")
     {
         任务确认详细信息 form = new 任务确认详细信息(m_信息区Grid.ControlManager as IWindowControlManager<任务>);
         if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             m_信息区Grid.ResetRowData(srcCell.ParentRow as Xceed.Grid.DataRow);
         }
     }
 }
Beispiel #2
0
 void 备案确认情况查询_DoubleClick(object sender, EventArgs e)
 {
     Xceed.Grid.Cell srcCell = sender as Xceed.Grid.Cell;
     if (srcCell.ParentColumn.FieldName == "预录入号")
     {
         任务确认详细信息 form = new 任务确认详细信息(m_信息区Grid.ControlManager as IWindowControlManager <任务>);
         if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             m_信息区Grid.ResetRowData(srcCell.ParentRow as Xceed.Grid.DataRow);
         }
     }
 }
        void 任务正式备案_DoubleClick(object sender, EventArgs e)
        {
            Xceed.Grid.Cell srcCell = sender as Xceed.Grid.Cell;
            var             row     = srcCell.ParentRow as Xceed.Grid.DataRow;

            if (row == null)
            {
                return;
            }

            m_cm.DisplayManager.Position = row.Index;

            if (srcCell.ParentColumn.FieldName == "预录入号")
            {
                任务确认详细信息 form = new 任务确认详细信息(m_cm);
                if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    m_rightGrid.ResetRowData(srcCell.ParentRow as Xceed.Grid.DataRow);
                }
            }
            else if (srcCell.ParentColumn.FieldName == "确认")
            {
                if (row.Cells["任务号"].Value != null)
                {
                    return;
                }
                bool ret = 任务备案确认主界面.Save(m_cm, SaveType.正式备案确认);
                if (ret)
                {
                    row.Cells["任务号"].Value = (m_cm.DisplayManager.CurrentItem as 任务).任务号;
                }
            }
            else if (srcCell.ParentColumn.FieldName == "拒绝")
            {
                if (row.Cells["任务号"].Value != null)
                {
                    return;
                }

                拒绝原因 jjyy = new 拒绝原因(m_cm.DisplayManager.CurrentItem as 任务);
                if (jjyy.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    bool ret = 任务备案确认主界面.Save(m_cm, SaveType.拒绝确认);
                    if (ret)
                    {
                        row.Cells["任务号"].Value = "NA";
                    }
                }
            }
        }
        void 任务正式备案_DoubleClick(object sender, EventArgs e)
        {
            Xceed.Grid.Cell srcCell = sender as Xceed.Grid.Cell;
            var row = srcCell.ParentRow as Xceed.Grid.DataRow;
            if (row == null)
                return;

            m_cm.DisplayManager.Position = row.Index;

            if (srcCell.ParentColumn.FieldName == "预录入号")
            {
                任务确认详细信息  form = new 任务确认详细信息(m_cm);
                if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    m_rightGrid.ResetRowData(srcCell.ParentRow as Xceed.Grid.DataRow);
                }
            }
            else if (srcCell.ParentColumn.FieldName == "确认")
            {
                if (row.Cells["任务号"].Value != null)
                    return;
                bool ret = 任务备案确认主界面.Save(m_cm, SaveType.正式备案确认);
                if (ret)
                {
                    row.Cells["任务号"].Value = (m_cm.DisplayManager.CurrentItem as 任务).任务号;
                }
            }
            else if (srcCell.ParentColumn.FieldName == "拒绝")
            {
                if (row.Cells["任务号"].Value != null)
                    return;

                拒绝原因 jjyy = new 拒绝原因(m_cm.DisplayManager.CurrentItem as 任务);
                if (jjyy.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    bool ret = 任务备案确认主界面.Save(m_cm, SaveType.拒绝确认);
                    if (ret)
                    {
                        row.Cells["任务号"].Value = "NA";
                    }
                }
            }
        }