예제 #1
0
파일: FindPrint.cs 프로젝트: labeuze/source
        private void GetPrintInfo()
        {
            //if (_findPrint == null || !_findPrint.found)
            if (!_findPrint.Found)
                return;

            _found = true;
            MatchValues matchValues = _findPrint.matchValues;
            //MatchValuesInfos matchValues = _findPrint.MatchValues;
            _name = matchValues.Name;

            _print = _findPrintManager.PrintManager[_name];

            if (_print == null)
            {
                _findPrintType = FindPrintType.PrintType1;
                if (matchValues.Attributes.ContainsKey("title"))
                    _title = matchValues.Attributes["title"];
                if (matchValues.Attributes.ContainsKey("directory"))
                    _directory = matchValues.Attributes["directory"];
                string directory;
                if (_directory != null)
                    directory = _directory;
                else
                    directory = _findPrintManager.DefaultPrintDirectory;
                _print = new Print(_name, _title, GetDirectory(directory));
            }
            else
                _findPrintType = FindPrintType.PrintType2;

            PrintIssue printIssue = _print.NewPrintIssue();

            if (_date != null)
            {
                printIssue.Date = _date;
                printIssue.DateType = _dateType;
                printIssue.Special = _special;
                printIssue.SpecialText = _specialText;

                if (_number != null)
                {
                    if (printIssue.CanCalculatePrintNumber())
                    {
                        int calculatedPrintNumber = printIssue.Print.GetPrintNumber((Date)printIssue.Date);
                        if (calculatedPrintNumber != (int)_number)
                        {
                            if (__traceWarning)
                                Trace.WriteLine("warning number in title {0} is different than calculated number {1}", (int)_number, calculatedPrintNumber);
                        }
                    }
                    // utilise de préférence le no du titre plutot que celui calculé
                    // sauf pour le monde ex : "Le Monde week-end + Magazine + 3 suppléments du samedi 30 aout 2014" le 3 n'est pas le bon numéro
                    printIssue.PrintNumber = (int)_number;
                }
            }
            else if (_number != null)
            {
                printIssue.PrintNumber = (int)_number;
                printIssue.Special = _special;
            }

            printIssue.TrySetValues(_findPrint.matchValues.GetAllValues());
            _label = printIssue.Label;

            _file = zPath.Combine(_print.Directory, zPath.GetFileNameWithoutExtension(printIssue.GetFilename()));
        }
예제 #2
0
 public PrintIssueLeVifExpress(Print print, Date date)
     : base(print, date)
 {
 }
예제 #3
0
 public PrintIssueLeVifExpress(Print print, int printNumber)
     : base(print, printNumber)
 {
 }
예제 #4
0
 public PrintIssueLExpress(Print print, int printNumber)
     : base(print, printNumber)
 {
 }
예제 #5
0
 public PrintIssueLeVifExpress(Print print)
     : base(print)
 {
 }
예제 #6
0
 public PrintIssueLExpress(Print print)
     : base(print)
 {
 }
예제 #7
0
 public PrintIssueLExpress(Print print, Date date)
     : base(print, date)
 {
 }
예제 #8
0
파일: Print.cs 프로젝트: labeuze/source
 public PrintIssue(Print print, Date date)
 {
     _print = print;
     _date = date;
 }
예제 #9
0
파일: Print.cs 프로젝트: labeuze/source
 public PrintIssue(Print print, int printNumber)
 {
     _print = print;
     _printNumber = printNumber;
 }
예제 #10
0
파일: LeMonde.cs 프로젝트: labeuze/source
 public PrintIssueLeMonde(Print print, int printNumber)
     : base(print, printNumber)
 {
 }
예제 #11
0
파일: Print.cs 프로젝트: labeuze/source
 public PrintIssue(Print print)
 {
     _print = print;
 }
예제 #12
0
파일: LeMonde.cs 프로젝트: labeuze/source
 public PrintIssueLeMonde(Print print, Date date)
     : base(print, date)
 {
 }
예제 #13
0
파일: LeMonde.cs 프로젝트: labeuze/source
 public PrintIssueLeMonde(Print print)
     : base(print)
 {
 }
예제 #14
0
 public PrintIssueLeParisien(Print print, int printNumber)
     : base(print, printNumber)
 {
 }
예제 #15
0
 public PrintIssueLeParisien(Print print, Date date)
     : base(print, date)
 {
 }
예제 #16
0
 public PrintIssueLeParisien(Print print)
     : base(print)
 {
 }