예제 #1
0
        public MesecniPrihodiIzvestaj(DateTime from, DateTime to)
        {
            fromDate = from;
            toDate = to;

            System.Resources.ResourceManager resourceManager = new
                System.Resources.ResourceManager("Soko.Resources.PreviewResursi", this.GetType().Assembly);
            Title = resourceManager.GetString("prihodi_izvestaj_mesecni_title");
            SubTitle = fromDate.ToShortDateString() + " - " +
                toDate.ToShortDateString();
            DocumentName = Title;

            ukupanPrihodCaptionFont = new Font("Arial", 10);
            ukupanPrihodIznosFont = new Font("Courier New", 10, FontStyle.Bold);

            Font itemFont = new Font("Courier New", 9);
            Font itemsHeaderFont = new Font("Courier New", 9);
            Font groupTitleFont = new Font("Courier New", 10, FontStyle.Bold);
            lista = new MesecniPrihodiLista(fromDate, toDate, this, 1, 0f,
                itemFont, itemsHeaderFont, groupTitleFont);
        }
예제 #2
0
        public MesecniPrihodiIzvestaj(DateTime from, DateTime to, List <Grupa> grupe, FinansijskaCelina finCelina)
        {
            fromDate       = from;
            toDate         = to;
            this.grupe     = grupe;
            this.finCelina = finCelina;

            System.Resources.ResourceManager resourceManager = new
                                                               System.Resources.ResourceManager("Soko.Resources.PreviewResursi", this.GetType().Assembly);
            Title    = resourceManager.GetString("prihodi_izvestaj_mesecni_title");
            SubTitle = fromDate.ToShortDateString() + " - " +
                       toDate.ToShortDateString();
            DocumentName = Title;

            ukupanPrihodCaptionFont = new Font("Arial", 10);
            ukupanPrihodIznosFont   = new Font("Courier New", 10, FontStyle.Bold);

            Font itemFont        = new Font("Courier New", 9);
            Font itemsHeaderFont = new Font("Courier New", 9);
            Font groupTitleFont  = new Font("Courier New", 10, FontStyle.Bold);

            lista = new MesecniPrihodiLista(fromDate, toDate, grupe, this, 1, 0f,
                                            itemFont, itemsHeaderFont, groupTitleFont);
        }