예제 #1
0
파일: frmOPSApply.cs 프로젝트: iamwsx05/HIS
        private void ToolStripMenuItemRep_Click(object sender, EventArgs e)
        {
            frmOPSFindreport objfrm = new frmOPSFindreport();

            objfrm.ShowDialog();
            objfrm = null;
        }
예제 #2
0
        /// <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;
                }
            }
        }