Ejemplo n.º 1
0
        private void printDocumentIIS_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
        {
            ///////////////// LogMe ////////////////////////
            String    function = this.GetType().FullName + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name;
            String    usedQC   = "Print";
            String    data     = "";
            String    Result   = "";
            LogWriter lw       = new LogWriter();
            ////////////////////////////////////////////////
            ///

            PrintMe pr = new PrintMe(cmpR, cmpS, sifrarnikArr, partListPrint, IISNumber, napomenaIISPrint, "IIS", "customer", false);

            pr.Print(e);

            data   = cmpS + ", " + cmpR + ", " + sifrarnikArr + ", " + partListPrint + ", " + IISNumber + ", " + napomenaIISPrint + ", IIS, customer, false";
            Result = "Print page called";
            lw.LogMe(function, usedQC, data, Result);

            if (!e.HasMorePages)
            {
                Properties.Settings.Default.pageNbr = 1;
                Properties.Settings.Default.Save();
            }
        }
Ejemplo n.º 2
0
        private void printDocumentOtp_PrintPage(object sender, PrintPageEventArgs e)
        {
            ///////////////// LogMe ////////////////////////
            String    function = this.GetType().FullName + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name;
            String    usedQC   = "Print";
            String    data     = "";
            String    Result   = "";
            LogWriter lw       = new LogWriter();

            ////////////////////////////////////////////////
            ///

            if (includeInOTP.Checked && !comboBox5.Text.Equals(""))
            {
                PrintMe pr = new PrintMe(cmpR, cmpS, sifrarnikArr, partListPrint, OTPNumber, napomenaOTPPrint, Properties.strings.DELIVERY, Properties.strings.customer, true, br);
                pr.Print(e);
                data = cmpR + ", " + cmpS + ", " + sifrarnikArr + ", " + partListPrint + ", " + OTPNumber + ", " + napomenaOTPPrint + ", " + Properties.strings.DELIVERY + ", " + Properties.strings.customer + ", true, " + br;
            }
            else
            {
                PrintMe pr = new PrintMe(cmpR, cmpS, sifrarnikArr, partListPrint, OTPNumber, napomenaOTPPrint, Properties.strings.DELIVERY, Properties.strings.customer, true);
                pr.Print(e);
                data = cmpR + ", " + cmpS + ", " + sifrarnikArr + ", " + partListPrint + ", " + OTPNumber + ", " + napomenaOTPPrint + ", " + Properties.strings.DELIVERY + ", " + Properties.strings.customer + ", true";
            }

            Result = "Print page called";
            lw.LogMe(function, usedQC, data, Result);
            if (!e.HasMorePages)
            {
                Properties.Settings.Default.pageNbr = 1;
                Properties.Settings.Default.Save();
            }
        }
Ejemplo n.º 3
0
        private void printDocumentPrim_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
        {
            ///////////////// LogMe ////////////////////////
            String    function = this.GetType().FullName + " - " + System.Reflection.MethodBase.GetCurrentMethod().Name;
            String    usedQC   = "Print";
            String    data     = "";
            String    Result   = "";
            LogWriter lw       = new LogWriter();

            ////////////////////////////////////////////////
            ///

            if (br.FilID != 0)
            {
                PrintMe pr = new PrintMe(cmpS, cmpR, sifrarnikArr, partListPrint, PRIMNumber, napomenaPRIMPrint, Properties.strings.RECEIPT, Properties.strings.customer, false, br);
                pr.datumIzrade   = datumIzradeM;
                pr.izradioUser   = izradioUserM;
                pr.izradioRegija = izradioRegijaM;
                pr.Print(e);
                data = cmpR + ", " + cmpS + ", " + sifrarnikArr + ", " + partListPrint + ", " + PRIMNumber + ", " + napomenaPRIMPrint + ", " + Properties.strings.DELIVERY + ", " + Properties.strings.customer + ", true, " + br;
            }
            else
            {
                PrintMe pr = new PrintMe(cmpS, cmpR, sifrarnikArr, partListPrint, PRIMNumber, napomenaPRIMPrint, Properties.strings.RECEIPT, Properties.strings.customer, false);
                pr.datumIzrade   = datumIzradeM;
                pr.izradioUser   = izradioUserM;
                pr.izradioRegija = izradioRegijaM;
                pr.Print(e);
                data = cmpR + ", " + cmpS + ", " + sifrarnikArr + ", " + partListPrint + ", " + PRIMNumber + ", " + napomenaPRIMPrint + ", " + Properties.strings.DELIVERY + ", " + Properties.strings.customer + ", false";
            }

            Result = "Print page called";
            lw.LogMe(function, usedQC, data, Result);

            if (!e.HasMorePages)
            {
                Properties.Settings.Default.pageNbr = 1;
                Properties.Settings.Default.Save();
            }
        }