public List <ContractOfBill> ParseContracts(ContractsRawOfBill wholeContractsRaw)
        {
            List <ContractOfBill> result = new List <ContractOfBill>();

            foreach (var contractRaw in wholeContractsRaw)
            {
                //todo
                //new task for every parsing
                ContractOfBill contract = new ContractOfBill(contractRaw.SplitWholeContractToSeparatedMainParts(parsers));

                result.Add(contract);
            }

            Info?.Invoke(this, new TextEventArgs("Разделенных контрактов: " + result.Count.ToString()));

            return(result);
        }
示例#2
0
 public ContractOfBill(ContractOfBill contract)
 {
     Header                 = contract?.Header;
     ServicesOfContract     = contract?.ServicesOfContract;
     DetalizationOfContract = contract?.DetalizationOfContract;
 }