Esempio n. 1
0
        /* 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);
            }
        }
Esempio n. 2
0
 private void ReprintLabelButton_Click(object sender, RoutedEventArgs e)
 {
     if (pawn.PawnId > 0)
     {
         try
         {
             PrintSRSReport report = new PrintSRSReport();
             report.PrintLabel('P', pawn.PawnId);
         }
         catch
         {
             MessageBox.Show("Failed to reprint label");
         }
     }
     else
     {
         MessageBox.Show("Save Pawn before reprinting");
     }
 }
Esempio n. 3
0
 private void ReprintLabelButton_Click(object sender, RoutedEventArgs e)
 {
     if (pawn.PawnId > 0)
     {
         try
         {
             PrintSRSReport report = new PrintSRSReport();
             report.PrintLabel('P', pawn.PawnId);
         }
         catch
         {
             MessageBox.Show("Failed to reprint label");
         }
     }
     else
         MessageBox.Show("Save Pawn before reprinting");
 }
Esempio n. 4
0
        /* 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);
            }
        }