Пример #1
0
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void m_cmdNewQCBatch_Click(object sender, EventArgs e)
        {
            frmQCBatchSet frm = new frmQCBatchSet();

            frm.M_blnCanReturnArr = true;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                if (frm.QCBatchVOArr != null)
                {
                    if (m_lstQCBachVO == null)
                    {
                        m_lstQCBachVO = new List <clsLisQCBatchVO>();
                    }
                    m_lstQCBachVO.AddRange(frm.QCBatchVOArr);

                    m_mthShowQCBatch(m_trvQCBatch, m_lstQCBachVO);

                    TreeNode[] tnArr = m_trvQCBatch.Nodes.Find(frm.QCBatchVOArr[0].m_intSeq.ToString(), true);
                    if (tnArr != null && tnArr.Length > 0)
                    {
                        m_trvQCBatch.SelectedNode = tnArr[0];
                    }
                }
            }
        }
Пример #2
0
        private void m_cmdNewQCBatch_Click(object sender, EventArgs e)
        {
            frmQCBatchSet frm = new frmQCBatchSet();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                ListViewItem item = new ListViewItem();
                m_mthListViewItemInit(frm.QCBatchVO, item);
                this.m_lsvQCBatch.Items.Add(item);
                this.m_lsvQCBatch.Focus();
                item.Selected = true;
            }
        }
Пример #3
0
        private void m_cmdQCBatchSet_Click(object sender, EventArgs e)
        {
            if (this.m_objCurrentBatch.IsNull || m_objCurrentBatch.Count != 1)
            {
                return;
            }
            frmQCBatchSet frm = new frmQCBatchSet();

            frm.QCBatchVO = this.m_objCurrentBatch.GetQCBatchSet()[0];
            if (frm.ShowDialog() == DialogResult.OK)
            {
                this.m_objCurrentBatch.UpdateSet(new clsLisQCBatchVO[] { frm.QCBatchVO });
            }
        }
Пример #4
0
        private void m_cmdQCBatchSet_Click(object sender, EventArgs e)
        {
            if (this.m_objCurrentBatch.IsNull)
            {
                return;
            }
            frmQCBatchSet frm = new frmQCBatchSet();

            frm.QCBatchVO = this.m_objCurrentBatch.GetQCBatchSet();
            if (frm.ShowDialog() == DialogResult.OK)
            {
                this.m_objCurrentBatch.UpdateSet(frm.QCBatchVO);
            }
        }