yambroskin

Untitled

May 26th, 2017
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. const string displayName = "Скан гарантии, подписанный ЭЦП Банка";
  2. var documentType = EleWise.ELMA.Model.Managers.EntityManager<Impeltech.Bank.Models.IDocumentTypeMSP>.Instance.Find(c => c.Name == displayName)
  3. .FirstOrDefault();
  4.  
  5. if (documentType == null)
  6. {
  7. documentType = EleWise.ELMA.Model.Managers.EntityManager<Impeltech.Bank.Models.IDocumentTypeMSP>.Instance
  8. .Create();
  9. documentType.Name = displayName;
  10. documentType.Save();
  11. }
  12.  
  13. var signedFile = EleWise.ELMA.Model.Managers.EntityManager<Impeltech.Bank.Models.ISignedFile>.Create();
  14.  
  15. signedFile.DocumentType = documentType;
  16. signedFile.Save();
  17.  
  18. //Request - атрибут в контексте - заявка на выдачу бг
  19. context.Request.ScanGuaranteeSignedBankElectronicSignature = (SignedFile) signedFile;
  20.  
  21. context.Request.Save();
Advertisement
Add Comment
Please, Sign In to add comment