Example #1
0
        private void m_cmdNew_Click(object sender, EventArgs e)
        {
            if (m_objQCBatch == null || m_objQCBatch.Count != 1)
            {
                return;
            }

            m_cmdNew.Enabled = false;

            frmQCReport frm = new frmQCReport(m_objQCBatch.SeqArr[0]);

            frm.BrokenRules = m_objQCBatch.BrokenRules;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                clsLisQCReportVO var = frm.Report;
                this.m_objQCBatch.GetReports().Add(var);
                ListViewItem item = new ListViewItem();
                this.m_mthListViewItemInit(var, item);
                this.m_lsvReport.Items.Add(item);
                this.m_lsvReport.Focus();
                item.Selected = true;
            }

            m_cmdNew.Enabled = true;
        }
Example #2
0
        private void m_cmdNew_Click(object sender, EventArgs e)
        {
            frmQCReport frm = new frmQCReport(this.m_objQCBatch.Seq);

            frm.BrokenRules = this.m_objQCBatch.BrokenRules;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                clsLisQCReportVO var = frm.Report;
                this.m_objQCBatch.GetReports().Add(var);
                ListViewItem item = new ListViewItem();
                this.m_mthListViewItemInit(var, item);
                this.m_lsvReport.Items.Add(item);
                this.m_lsvReport.Focus();
                item.Selected = true;
            }
        }
Example #3
0
 private void m_cmdModify_Click(object sender, EventArgs e)
 {
     if (this.m_lsvReport.SelectedItems.Count > 0)
     {
         ListViewItem     item = this.m_lsvReport.SelectedItems[0];
         clsLisQCReportVO temp = new clsLisQCReportVO();
         clsLisQCReportVO curr = item.Tag as clsLisQCReportVO;
         curr.m_mthCopyTo(temp);
         frmQCReport frm = new frmQCReport(temp);
         frm.BrokenRules = this.m_objQCBatch.BrokenRules;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             clsLisQCReportVO var = frm.Report;
             var.m_mthCopyTo(curr);
             this.m_mthListViewItemChange(curr, item);
         }
     }
 }