Ejemplo n.º 1
0
 public static Element Create(IElementCreateIo input)
 {
     Debug.Assert(input.Id != null, "input.Id != null");
     return(new Element
     {
         Id = input.Id.Value,
         Code = input.Code,
         AllowFilter = input.AllowFilter,
         AllowSort = input.AllowSort,
         Description = input.Description,
         GroupId = input.GroupId,
         Icon = input.Icon,
         FieldCode = input.FieldCode,
         ForeignElementId = input.ForeignElementId,
         IsInfoIdItem = input.IsInfoIdItem,
         InfoDicId = input.InfoDicId,
         InputHeight = input.InputHeight,
         InputType = input.InputType,
         IsInput = input.IsInput,
         Actions = string.Empty,
         DeletionStateCode = 0,
         InfoChecks = string.Empty,
         InfoRules = string.Empty,
         IsDetailsShow = input.IsDetailsShow,
         InputWidth = input.InputWidth,
         Width = input.Width,
         IsEnabled = input.IsEnabled,
         IsExport = input.IsExport,
         IsGridColumn = input.IsGridColumn,
         IsImport = input.IsImport,
         Name = input.Name,
         IsTotalLine = input.IsTotalLine,
         MaxLength = input.MaxLength,
         Ref = input.Ref,
         OntologyId = input.OntologyId,
         Regex = input.Regex,
         SortCode = input.SortCode,
         Tooltip = input.Tooltip,
         Triggers = string.Empty,
         UniqueElementIds = string.Empty,
         OType = input.OType,
         Nullable = input.Nullable
     });
 }
Ejemplo n.º 2
0
 public static Element Create(IElementCreateIo input)
 {
     Debug.Assert(input.Id != null, "input.Id != null");
     return new Element
     {
         Id = input.Id.Value,
         Code = input.Code,
         AllowFilter = input.AllowFilter,
         AllowSort = input.AllowSort,
         Description = input.Description,
         GroupId = input.GroupId,
         Icon = input.Icon,
         FieldCode = input.FieldCode,
         ForeignElementId = input.ForeignElementId,
         IsInfoIdItem = input.IsInfoIdItem,
         InfoDicId = input.InfoDicId,
         InputHeight = input.InputHeight,
         InputType = input.InputType,
         IsInput = input.IsInput,
         Actions = string.Empty,
         DeletionStateCode = 0,
         InfoChecks = string.Empty,
         InfoRules = string.Empty,
         IsDetailsShow = input.IsDetailsShow,
         InputWidth = input.InputWidth,
         Width = input.Width,
         IsEnabled = input.IsEnabled,
         IsExport = input.IsExport,
         IsGridColumn = input.IsGridColumn,
         IsImport = input.IsImport,
         Name = input.Name,
         IsTotalLine = input.IsTotalLine,
         MaxLength = input.MaxLength,
         Ref = input.Ref,
         OntologyId = input.OntologyId,
         Regex = input.Regex,
         SortCode = input.SortCode,
         Tooltip = input.Tooltip,
         Triggers = string.Empty,
         UniqueElementIds = string.Empty,
         OType = input.OType,
         Nullable = input.Nullable
     };
 }
Ejemplo n.º 3
0
 public static void AddElement(this IAcDomain acDomain, IAcSession acSession, IElementCreateIo input)
 {
     acDomain.Handle(new AddElementCommand(acSession, input));
 }
Ejemplo n.º 4
0
 public static void AddElement(this IAcDomain acDomain, IAcSession acSession, IElementCreateIo input)
 {
     acDomain.Handle(new AddElementCommand(acSession, input));
 }