예제 #1
0
        public static Dictionary <string, InputInformation> GetForm()
        {
            Dictionary <string, InputInformation> result = new Dictionary <string, InputInformation>();

            result.Add("ID", new InputInformation()
            {
                Type = InputInformationType.integer, Required = true, Readonly = true
            });
            result.Add("Name", new InputInformation()
            {
                Type = InputInformationType.@string, Required = true,
            });
            result.Add("Description", new InputInformation()
            {
                Type = InputInformationType.text
            });
            result.Add("OriginalImage", new InputInformation()
            {
                Type = InputInformationType.@string, Required = true
            });
            result.Add("PassiveImage", new InputInformation()
            {
                Type = InputInformationType.@string, Required = true
            });
            result.Add("Link", new InputInformation()
            {
                Type = InputInformationType.@string, Required = true
            });
            result.Add("RefLink", new InputInformation()
            {
                Type = InputInformationType.@string
            });
            result.Add("IsActive", new InputInformation()
            {
                Type = InputInformationType.boolean
            });

            result.Add("PartnerType", new InputInformation()
            {
                Type = InputInformationType.reference, Required = true, Reference = "PartnerType", ReferenceForm = BackendPartnerType.GetForm()
            });

            return(result);
        }
예제 #2
0
 public BackendPartnerViewModelItem()
 {
     PartnerTypeSelected = new BackendPartnerType();
     Display             = new List <PartnerDisplay>();
 }