예제 #1
0
        public PrintMeRN(long mID) //TODO primiti broj ponude
        {
            tidRN.GetTIDByID(mID);
            //RN = new RadniNalog(mID);

            CLogo logoImage = new CLogo();

            img = logoImage.GetImage();

            imgScale = (double)img.Width / img.Height;

            imgH = (int)((double)imgW / imgScale);

            fntA7  = getFont(7);
            fntA8  = getFont(8);
            fntA9  = getFont(9);
            fntA10 = getFont(10);
            fntA11 = getFont(11);
            fntA12 = getFont(12);
            fntA18 = getFont(18);

            fntA7b  = getFontBold(7);
            fntA8b  = getFontBold(8);
            fntA9b  = getFontBold(9);
            fntA10b = getFontBold(10);
            fntA11b = getFontBold(11);
            fntA12b = getFontBold(12);
            fntA18b = getFontBold(18);

            UsersInfo = qc.UsersInfo(WorkingUser.Username, WorkingUser.Password);
        }
예제 #2
0
        public PrintMe(Company _cmpS, Company _cmpR, List <String> _sifrarnikArr, List <Part> _partListPrint, String _PrimkaNumber, String _napomenaPRIMPrint, String _DocumentName, String _recipientSender, Boolean _Signature, Branch _Branch)
        {
            Color exeColor = Color.FromArgb(1, 116, 170);

            exeBrush = new SolidBrush(exeColor);

            cmpR              = _cmpR;
            cmpS              = _cmpS;
            sifrarnikArr      = _sifrarnikArr;
            partListPrint     = _partListPrint;
            PrimkaNumber      = _PrimkaNumber;
            napomenaPRIMPrint = _napomenaPRIMPrint;
            documentName      = _DocumentName.ToUpper();
            recipientSender   = _recipientSender.ToUpper();
            signature         = _Signature;

            CLogo logoImage = new CLogo();

            img = logoImage.GetImage();

            imgScale = (double)img.Width / img.Height;

            imgH = (int)((double)imgW / imgScale);

            branch = _Branch;
        }
예제 #3
0
        public PrintMeISS(Company _cmpCust, Company _cmpM, List <String> _sifrarnikArr, Part _mainPart, List <ISSparts> _listIssParts, String _ISSid, String _DocumentName, String _recipientSender, Boolean _Signature, String _date, String _totalTIme, Boolean _allDonePrint)
        {
            cmpCust         = _cmpCust;
            cmpM            = _cmpM;
            sifrarnikArr    = _sifrarnikArr;
            mainPart        = _mainPart;
            ISSid           = _ISSid;
            documentName    = _DocumentName.ToUpper();
            listIssParts    = _listIssParts;
            recipientSender = _recipientSender.ToUpper();
            signature       = _Signature;
            date            = _date;
            totalTIme       = _totalTIme;
            allDonePrint    = _allDonePrint;

            CLogo logoImage = new CLogo();

            img = logoImage.GetImage();

            imgScale = (double)img.Width / img.Height;

            imgH = (int)((double)imgW / imgScale);
        }
예제 #4
0
        public PrintMeOffer(List <OfferParts> _invPrtList, Offer _off, int _storno, Boolean _hrvJezik, decimal _taxBase, decimal _totalTax)
        {
            Color exeColor = Color.FromArgb(1, 116, 170);

            exeBrush = new SolidBrush(exeColor);

            invPrtList = _invPrtList;
            off        = _off;
            storno     = _storno;
            hrv        = !_hrvJezik;

            taxBase  = _taxBase;
            totalTax = _totalTax;

            brojPonude = off.Id.ToString();

            if (brojPonude.Length < 9)
            {
                brojPonude = "00" + String.Format("{0:0-000-00000}", long.Parse(brojPonude));
            }
            else if (brojPonude.Length < 10)
            {
                brojPonude = "0" + String.Format("{0:00-000-00000}", long.Parse(brojPonude));
            }
            else
            {
                brojPonude = String.Format("{0:000-000-00000}", long.Parse(brojPonude));
            }

            CLogo logoImage = new CLogo();

            img = logoImage.GetImage();

            imgScale = (double)img.Width / img.Height;

            imgH = (int)((double)imgW / imgScale);
        }