/// <summary> /// 把仓库名写到报表 /// </summary> internal void m_mthSetStorageNameToReport() { if (string.IsNullOrEmpty(m_objViewer.p_strStorageName)) { long lngRes = m_objDomain.m_lngGetStoreRoomName(m_objViewer.m_strStorageID, out m_objViewer.p_strStorageName); } this.m_objViewer.dwOutStorageStat.Modify("title_t_1.text='报废统计报表(" + m_objViewer.p_strStorageName + ")'"); }
internal void m_mthPrint() { if (dtbResult == null || dtbResult.Rows.Count <= 0) { MessageBox.Show("没有可打印数据!", "打印新药通知单", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } frmNewPurchaseMedicineReport frmReport = new frmNewPurchaseMedicineReport(); frmReport.p_dtbVal = dtbResult; clsDcl_RejectStorageReport dclTemp = new clsDcl_RejectStorageReport(); string strStorageName = string.Empty; dclTemp.m_lngGetStoreRoomName(m_objViewer.m_strStorageID, out strStorageName); frmReport.p_strStorageName = strStorageName; string m_strBeginDate = Convert.ToDateTime(m_objViewer.m_dtpSearchBeginDate.Text).ToString("yyyy年MM月dd日"); string m_strEndDate = Convert.ToDateTime(m_objViewer.m_dtpSearchEndDate.Text).ToString("yyyy年MM月dd日"); if (m_strBeginDate == m_strEndDate) { frmReport.p_strDate = "入库日期:" + m_strBeginDate; } else { frmReport.p_strDate = "入库日期从:" + m_strBeginDate + "至" + m_strEndDate; } frmReport.ShowDialog(); }