yambroskin

Сценарий юридического лица

Apr 16th, 2019
358
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.25 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using EleWise.ELMA.Model.Common;
  6. using EleWise.ELMA.Model.Entities;
  7. using EleWise.ELMA.Model.Managers;
  8. using EleWise.ELMA.Model.Types.Settings;
  9. using EleWise.ELMA.CRM.Models;
  10. using Yambr.Dadata.Models;
  11.  
  12. namespace EleWise.ELMA.CRM.Models.Scripts
  13. {
  14.    
  15.     /// <summary>
  16.     /// Модуль сценариев объекта "Юридическое лицо"
  17.     /// </summary>
  18.     public class ContractorLegalScripts : EleWise.ELMA.Model.Scripts.Entities.EntityScriptModule<IContractorLegalConfigExt>
  19.     {
  20.  
  21.           /// <summary>
  22.         /// Обновление контрагента с формы при заполненных полях наименование - инн, огрн
  23.         /// </summary>
  24.         /// <param name="entity"></param>
  25.         /// <param name="form"></param>
  26.         public virtual void UpdateContractorLegalBySuggestion(IContractorLegalExt entity, EleWise.ELMA.Model.Views.FormViewBuilder<IContractorLegalExt> form)
  27.         {
  28.             var contractorLegalExtScripts = new Yambr.Dadata.Models.Scripts.ContractorLegalExtScripts();
  29.             contractorLegalExtScripts.UpdateContractorLegalBySuggestion(entity, form);
  30.         }
  31.  
  32.     }
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment