Exemple #1
0
 private void ParseDocumentContentFromFile(UserInput.Option choise, byte[] content)
 {
     object model = null;
     if (choise.Id == "1")
         model = _context.ServiceClient.ParseGeneralTransferSeller(content);
     else if (choise.Id == "2")
         model = _context.ServiceClient.ParseGeneralTransferBuyer(content);
     else if (choise.Id == "3")
         model = _context.ServiceClient.ParseGeneralTransferCorrectionSeller(content);
     else if (choise.Id == "4")
         model = _context.ServiceClient.ParseGeneralTransferCorrectionBuyer(content);
     else if (choise.Id == "5")
         model = _context.ServiceClient.ParseGoodsTransferSeller(content);
     else if (choise.Id == "6")
         model = _context.ServiceClient.ParseGoodsTransferBuyer(content);
     else if (choise.Id == "7")
         model = _context.ServiceClient.ParseWorksTransferSeller(content);
     else if (choise.Id == "8")
         model = _context.ServiceClient.ParseWorksTransferBuyer(content);
     UserInput.FormatAndOutputObjectFields(model);
 }