private void btnPrint_Click(object sender, EventArgs e) { try { string startPath = Application.StartupPath + "\\report\\药品库存清单.grf"; if (chkIsShowNoStore.Checked == true) { string filterWhere = "PACKNUM<>0 OR BASENUM<>0"; DataRow[] filterRows = _storeDt.Select(filterWhere); DataTable filterDt = _storeDt.Clone(); foreach (DataRow dRow in filterRows) { filterDt.Rows.Add(dRow.ItemArray); } YP_Printer.PrintStoreBill(startPath, (int)_currentUser, (int)_currentDept, filterDt, _belongSystem); } else { YP_Printer.PrintStoreBill(startPath, (int)_currentUser, (int)_currentDept, _storeDt, _belongSystem); } } catch (Exception error) { MessageBox.Show(error.Message); } }
public void PrintReport(string path) { try { if (_printCondition.billNo == "0") { if (_totalInStoreInfo != null) { if (_totalInStoreInfo.Rows.Count > 0) { YP_Printer.PrintTotalInOutStore(path, _printCondition, _totalInStoreInfo); } } } else { if (_totalOutStoreInfo != null) { if (_totalOutStoreInfo.Rows.Count > 0) { YP_Printer.PrintTotalInOutStore(path, _printCondition, _totalOutStoreInfo); } } } } catch (Exception error) { throw error; } }
public void PrintBill(int printer) { string startPath = System.Windows.Forms.Application.StartupPath + "\\report\\药品采购计划单.grf"; if (_currentMaster != null) { YP_Printer billPrinter = PrintFactory.GetPrinter(ConfigManager.OP_YK_STOCKPLAN); billPrinter.PrintBill(_currentMaster, null, startPath, printer); } }
private void btnPrint_Click(object sender, EventArgs e) { try { string startPath = Application.StartupPath + "\\report\\药品库存清单.grf"; YP_Printer.PrintStoreBill(startPath, (int)_currentUserId, (int)_currentDeptId, _drugStoreInfoDt, _belongSystem); } catch (Exception error) { MessageBox.Show(error.Message); } }
private void tsrbtnPrint_Click(object sender, EventArgs e) { try { DataTable printTable = DrugBaseDataBll.LoadFirstCheckDrug(""); string startPath = Application.StartupPath + "\\report\\药品期初盘点单.grf"; YP_Printer.PrintUseDrug(startPath, (int)_currentUserId, (int)_currentDeptId, printTable); } catch (Exception error) { MessageBox.Show(error.Message); } }
private void tsrbtnExport_Click(object sender, EventArgs e) { try { this.Cursor = GWMHIS.BussinessLogicLayer.Classes.PublicStaticFun.WaitCursor(); DataTable exportSpecDt = DrugBaseDataBll.LoadExpotSpec(); YP_Printer.ExportData(exportSpecDt); } catch (Exception error) { MessageBox.Show(error.Message); } finally { this.Cursor = this.DefaultCursor; } }
private void tsrbtnPrintTotal_Click(object sender, EventArgs e) { try { this.Cursor = GWMHIS.BussinessLogicLayer.Classes.PublicStaticFun.WaitCursor(); string startPath = Application.StartupPath + "\\report\\入库单汇总.grf"; YP_Printer.PringInStoreTotal(startPath, _masterDt, cobBeginDate.Value.ToString() + "到" + cobEndDate.Value.ToString(), (int)_currentDeptId, (int)_currentUserId); } catch (Exception error) { MessageBox.Show(error.Message); } finally { this.Cursor = DefaultCursor; } }