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";
                    }
                }
            }
        }
Esempio n. 2
0
        private void btn拒绝_Click(object sender, EventArgs e)
        {
            进口票 entity = m_cm.DisplayManagerT.CurrentEntity;

            if (entity != null)
            {
                if (!Check票(entity))
                {
                    return;
                }

                拒绝原因 jjyy = new 拒绝原因(entity);
                if (jjyy.ShowDialog() == DialogResult.OK)
                {
                    bool ret = Save(SaveType.拒绝确认);
                }
            }
        }
Esempio n. 3
0
        private void btn拒绝_Click(object sender, EventArgs e)
        {
            任务 entity = m_cmT.DisplayManagerT.CurrentEntity;

            if (entity != null)
            {
                if (!任务备案确认主界面.Check任务(entity))
                {
                    return;
                }

                拒绝原因 jjyy = new 拒绝原因(entity);
                if (jjyy.ShowDialog() == DialogResult.OK)
                {
                    任务预备案.RemoveAllValidation(m_cm);
                    Save(SaveType.拒绝确认);
                }
            }
        }
Esempio n. 4
0
        private void btn拒绝_Click(object sender, EventArgs e)
        {
            任务 entity = m_cmT.DisplayManagerT.CurrentEntity;

            if (entity != null)
            {
                if (!Check任务(entity))
                {
                    return;
                }

                拒绝原因 jjyy = new 拒绝原因(entity);
                if (jjyy.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    任务预备案.RemoveAllValidation(m_cm);
                    bool ret = Save(SaveType.拒绝确认);
                    if (ret)
                    {
                        m_rightGrid.CurrentDataRow.Cells["预录入号"].ForeColor = Color.Red;
                        m_rightGrid.MoveCurrentRow(Xceed.Grid.VerticalDirection.Down, Xceed.Grid.GridSection.Current);
                    }
                }
            }
        }
        private void btn拒绝_Click(object sender, EventArgs e)
        {
            任务 entity = m_cmT.DisplayManagerT.CurrentEntity;
            if (entity != null)
            {
                if (!任务备案确认主界面.Check任务(entity))
                    return;

                拒绝原因 jjyy = new 拒绝原因(entity);
                if (jjyy.ShowDialog() == DialogResult.OK)
                {
                    任务预备案.RemoveAllValidation(m_cm);
                    Save(SaveType.拒绝确认);
                }
            }
        }
        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";
                    }
                }
            }
        }
        private void btn拒绝_Click(object sender, EventArgs e)
        {
            进口票 entity = m_cm.DisplayManagerT.CurrentEntity;
            if (entity != null)
            {
                if (!Check票(entity))
                    return;

                拒绝原因 jjyy = new 拒绝原因(entity);
                if (jjyy.ShowDialog() == DialogResult.OK)
                {
                    bool ret = Save(SaveType.拒绝确认);
                }
            }
        }
        private void btn拒绝_Click(object sender, EventArgs e)
        {
            任务 entity = m_cmT.DisplayManagerT.CurrentEntity;
            if (entity != null)
            {
                if (!Check任务(entity))
                    return;

                拒绝原因 jjyy = new 拒绝原因(entity);
                if (jjyy.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    任务预备案.RemoveAllValidation(m_cm);
                    bool ret = Save(SaveType.拒绝确认);
                    if (ret)
                    {
                        m_rightGrid.CurrentDataRow.Cells["预录入号"].ForeColor = Color.Red;
                        m_rightGrid.MoveCurrentRow(Xceed.Grid.VerticalDirection.Down, Xceed.Grid.GridSection.Current);
                    }
                }
            }
        }