public void m_mthFindByDateReport()
        {
            str_firstDate = m_objViewer.m_daFinDate.Value.ToShortDateString();
            str_lasttDate = m_objViewer.m_daFinDateLast.Value.ToShortDateString();


            m_rptRpt.Load("Report\\AllOPREMP_month.rpt");
            DataTable m_dtRpt       = new DataTable();
            DataTable m_dtRptDitial = new DataTable();
            long      lngRes;

            lngRes = clsDomain.m_lngChargeMnothReport(str_firstDate, str_lasttDate, out m_dtRpt);
            if (lngRes >= 1)
            {
                ((TextObject)m_rptRpt.ReportDefinition.ReportObjects["txtReportTitle"]).Text = this.m_objComInfo.m_strGetHospitalTitle() + "收费处月结算表";
                ((TextObject)m_rptRpt.ReportDefinition.ReportObjects["dateArear"]).Text      = "统计日期: " + str_firstDate + " 至  " + str_lasttDate;
                m_rptRpt.SetDataSource(m_dtRpt);
                m_rptRpt.Refresh();
                m_objViewer.cryReportViewer.ReportSource = m_rptRpt;
            }
        }
Ejemplo n.º 2
0
        public void m_mthFindByDateReport()
        {
            for (int i = 0; i < 17; i++)
            {
                Doe_[i] = 0;
            }

            str_firstDate = m_objViewer.m_daFinDate.Value.ToShortDateString();
            str_lasttDate = m_objViewer.m_daFinDateLast.Value.ToShortDateString();


            m_rptRpt.Load("Report\\rptDepWork.rpt");
            DataTable m_dtRpt       = new DataTable();
            DataTable m_dtRptDitial = new DataTable();
            long      lngRes;

            lngRes = clsDomain.m_lngChargeMnothReport(str_firstDate, str_lasttDate, out m_dtRpt);
            if (lngRes >= 1)
            {
                m_rptRpt.SetDataSource(m_dtRpt);
                m_rptRpt.Refresh();
                m_objViewer.cryReportViewer.ReportSource = m_rptRpt;
            }
        }