private void ToolStripMenuItemRep_Click(object sender, EventArgs e) { frmOPSFindreport objfrm = new frmOPSFindreport(); objfrm.ShowDialog(); objfrm = null; }
/// <summary> /// 查找 type 0 申请 1 报告 /// </summary> public void m_mthFind(int type) { if (type == 0) { frmOPSFindapply fa = new frmOPSFindapply(0); fa.ShowDialog(); } else if (type == 1) { frmOPSFindreport ff = new frmOPSFindreport(); if (ff.ShowDialog() == DialogResult.OK) { applyid = ff.Applyid; m_strApplyId = ff.Applyid; this.m_objViewer.Cursor = Cursors.WaitCursor; DataTable dt = new DataTable(); long ret = objSvc.m_lngGetOPSApply(out dt, applyid); if (dt.Rows.Count == 1) { this.m_mthSetreportvalue(dt.Rows[0]); this.m_mthSelectBill(1); } this.m_objViewer.Cursor = Cursors.Default; } } }