/* Loan Section */ //LoanNumber.GetBindingExpression(TextBox.TextProperty).UpdateTarget(); private void Print(bool withoutpolicereport) { PrintSRSReport printer = new PrintSRSReport(); try { printer.PrintPawnTicket(pawn.PawnId); if (withoutpolicereport == false) { printer.PrintPawnPoliceReport(pawn.PawnId); } int numberOfJewelryItems = (from Data.Item i in pawn.Items where i.ItemTypeId == 1 select i).Count(); if (numberOfJewelryItems > 0 && Properties.Settings.Default.LabelReportFile.Length > 1) { printer.PrintLabel('P', pawn.PawnId); } } catch (Exception Ex) { MessageBox.Show("Print Failed: " + Ex.Message); } }
private void ReprintTicketButton_Click(object sender, RoutedEventArgs e) { if (pawn.PawnId > 0) { try { PrintSRSReport report = new PrintSRSReport(); report.PrintPawnTicket(pawn.PawnId); } catch { MessageBox.Show("Failed to reprint Pawn Ticket"); } } else { MessageBox.Show("Save Pawn before reprinting"); } }
private void CheckoutButton_Click(object sender, RoutedEventArgs e) { if (selectedpawnsqueue.Count > 0) { foreach (Data.PawnQueueItem queueitem in selectedpawnsqueue) { if (queueitem.PawnCalcSelection.Action == Shell.Data.PawnActionEnum.Redeem) { App.HyperPawnDB.PawnRedeem(queueitem.Pawn.PawnId, queueitem.PawnCalcSelection.ActionAmount - queueitem.Pawn.Amount, employee); //Complete(); } if (queueitem.PawnCalcSelection.Action == Shell.Data.PawnActionEnum.Renew) { int newpawnid = 0; try { newpawnid = App.HyperPawnDB.PawnRenew(queueitem.Pawn.PawnId, queueitem.PawnCalcSelection.ActionDate, queueitem.PawnCalcSelection.ActionAmount, employee); } catch (Exception Ex) { MessageBox.Show("Failed to Renew Pawn " + Ex.Message); } PrintSRSReport printer = new PrintSRSReport(); if (newpawnid != 0) { try { printer.PrintPawnTicket(newpawnid); } catch (Exception Ex) { MessageBox.Show("Failed to Print " + Ex.Message); } } //Complete(); } } } RaiseCloseEvent(); }
private void PrintCheckedItemsButton_Click(object sender, RoutedEventArgs e) { PrintSRSReport report = new PrintSRSReport(); report.PrintFloorReport(SelectedItemsXML()); }
/* Loan Section */ //LoanNumber.GetBindingExpression(TextBox.TextProperty).UpdateTarget(); private void Print() { PrintSRSReport printer = new PrintSRSReport(); try { printer.PrintPurchasePoliceReport(purchase.PurchaseId); } catch (Exception Ex) { MessageBox.Show("Print Failed: " + Ex.Message); } }
private void CheckoutButton_Click(object sender, RoutedEventArgs e) { if (selectedpawnsqueue.Count > 0) { foreach (Data.PawnQueueItem queueitem in selectedpawnsqueue) { if (queueitem.PawnCalcSelection.Action == Shell.Data.PawnActionEnum.Redeem) { App.HyperPawnDB.PawnRedeem(queueitem.Pawn.PawnId,queueitem.PawnCalcSelection.ActionAmount - queueitem.Pawn.Amount,employee); //Complete(); } if (queueitem.PawnCalcSelection.Action == Shell.Data.PawnActionEnum.Renew) { int newpawnid = 0; try { newpawnid = App.HyperPawnDB.PawnRenew(queueitem.Pawn.PawnId, queueitem.PawnCalcSelection.ActionDate, queueitem.PawnCalcSelection.ActionAmount,employee); } catch (Exception Ex) { MessageBox.Show("Failed to Renew Pawn " + Ex.Message); } PrintSRSReport printer = new PrintSRSReport(); if (newpawnid != 0) { try { printer.PrintPawnTicket(newpawnid); } catch (Exception Ex) { MessageBox.Show("Failed to Print " + Ex.Message); } } //Complete(); } } } RaiseCloseEvent(); }
private void ReprintTicketButton_Click(object sender, RoutedEventArgs e) { if (pawn.PawnId > 0) { try { PrintSRSReport report = new PrintSRSReport(); report.PrintPawnTicket(pawn.PawnId); } catch { MessageBox.Show("Failed to reprint Pawn Ticket"); } } else MessageBox.Show("Save Pawn before reprinting"); }
/* Loan Section */ //LoanNumber.GetBindingExpression(TextBox.TextProperty).UpdateTarget(); private void Print(bool withoutpolicereport) { PrintSRSReport printer = new PrintSRSReport(); try { printer.PrintPawnTicket(pawn.PawnId); if (withoutpolicereport == false) printer.PrintPawnPoliceReport(pawn.PawnId); int numberOfJewelryItems = (from Data.Item i in pawn.Items where i.ItemTypeId == 1 select i).Count(); if (numberOfJewelryItems > 0 && Properties.Settings.Default.LabelReportFile.Length > 1) printer.PrintLabel('P', pawn.PawnId); } catch (Exception Ex) { MessageBox.Show("Print Failed: " + Ex.Message); } }