Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const string displayName = "Скан гарантии, подписанный ЭЦП Банка";
- var documentType = EleWise.ELMA.Model.Managers.EntityManager<Impeltech.Bank.Models.IDocumentTypeMSP>.Instance.Find(c => c.Name == displayName)
- .FirstOrDefault();
- if (documentType == null)
- {
- documentType = EleWise.ELMA.Model.Managers.EntityManager<Impeltech.Bank.Models.IDocumentTypeMSP>.Instance
- .Create();
- documentType.Name = displayName;
- documentType.Save();
- }
- var signedFile = EleWise.ELMA.Model.Managers.EntityManager<Impeltech.Bank.Models.ISignedFile>.Create();
- signedFile.DocumentType = documentType;
- signedFile.Save();
- //Request - атрибут в контексте - заявка на выдачу бг
- context.Request.ScanGuaranteeSignedBankElectronicSignature = (SignedFile) signedFile;
- context.Request.Save();
Advertisement
Add Comment
Please, Sign In to add comment