Ejemplo n.º 1
0
        public void CreateWord(WordprocessingDocument package, ModelMemoReport template, object obj = null)
        {
            MainDocumentPart mainDocumentPart = package.AddMainDocumentPart();

            DocumentFormat.OpenXml.Wordprocessing.Document document = new DocumentFormat.OpenXml.Wordprocessing.Document();
            PageSetting   settingPage    = new PageSetting();
            DocumentsFull documentInvoke = new DocumentsFull();

            if (template.SelectParameterDocument.NumberDocument != 4)
            {
                Fotters footers = new Fotters();
                footers.FottersAddDocument(mainDocumentPart, template.Executor.NameUser, template.Executor.Phone);
                document.Append(settingPage.AddSetting(mainDocumentPart));
                document.Append(documentInvoke.CreateDocMemoReport(template));
            }
            else
            {
                document.Append(settingPage.ParametrPageHorizontEditMargin(new PageMargin()
                {
                    Top = 300, Right = 794, Bottom = 200, Left = 794, Header = 300, Footer = 700U, Gutter = 0U
                }));
                document.Append(documentInvoke.CreateDocMemoApplication(template));
            }
            mainDocumentPart.Document = document;
        }
Ejemplo n.º 2
0
        public void CreateWord(WordprocessingDocument package, Otdel templateotdel, SenderUsers senders, object obj)
        {
            MainDocumentPart mainDocumentPart = package.AddMainDocumentPart();

            DocumentFormat.OpenXml.Wordprocessing.Document document = new DocumentFormat.OpenXml.Wordprocessing.Document();
            PageSetting   settingpage    = new PageSetting();
            DocumentsFull documentInvoce = new DocumentsFull();

            document.Append(settingpage.ParametrPageHorizontEditMargin(new PageMargin()
            {
                Top = 300, Right = 794, Bottom = 100, Left = 794, Header = 300, Footer = 700U, Gutter = 0U
            }));
            document.Append(documentInvoce.GenerateRuleUserTemplate(templateotdel, senders));
            mainDocumentPart.Document = document;
        }
Ejemplo n.º 3
0
        public void CreateWord(WordprocessingDocument package, List <AllTechnic> template, object obj = null)
        {
            MainDocumentPart mainDocumentPart = package.AddMainDocumentPart();

            DocumentFormat.OpenXml.Wordprocessing.Document document = new DocumentFormat.OpenXml.Wordprocessing.Document();
            PageSetting   settingPage    = new PageSetting();
            DocumentsFull documentInvoce = new DocumentsFull();

            document.Append(settingPage.ParametrPageHorizontEditMargin(new PageMargin()
            {
                Left = 500, Right = 500, Bottom = 500, Top = 500
            }));
            document.Append(documentInvoce.Sticker(template, mainDocumentPart));
            mainDocumentPart.Document = document;
        }
Ejemplo n.º 4
0
        public void CreateWord(WordprocessingDocument package, EfDatabase.Journal.AllJournal template, object obj)
        {
            MainDocumentPart mainDocumentPart = package.AddMainDocumentPart();

            DocumentFormat.OpenXml.Wordprocessing.Document document = new DocumentFormat.OpenXml.Wordprocessing.Document();
            PageSetting   settingPage     = new PageSetting();
            DocumentsFull documentInvoice = new DocumentsFull();

            document.Append(settingPage.ParametrPageHorizontEditMargin(new PageMargin()
            {
                Top = 1701, Right = 1134, Bottom = 850, Left = 1134
            }));
            document.Append(documentInvoice.CreateJournal(template));
            mainDocumentPart.Document = document;
        }
Ejemplo n.º 5
0
        public void CreateWord(WordprocessingDocument package, CardFaceUl template, object obj)
        {
            MainDocumentPart mainDocumentPart = package.AddMainDocumentPart();

            DocumentFormat.OpenXml.Wordprocessing.Document document = new DocumentFormat.OpenXml.Wordprocessing.Document();
            PageSetting      settingPage     = new PageSetting();
            DocumentsPreChek documentInvoice = new DocumentsPreChek();

            document.Append(settingPage.ParametrPageHorizontEditMargin(new PageMargin()
            {
                Top = 567, Right = 200, Bottom = 567, Left = 200
            }));
            document.Append(documentInvoice.GenerateSalesBookReportNote(template, (int)obj));
            mainDocumentPart.Document = document;
        }