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

            result.Add("ID", new InputInformation()
            {
                Type = InputInformationType.integer, Readonly = true
            });
            result.Add("ReservationDate", new InputInformation()
            {
                Type = InputInformationType.datetime, Required = true
            });
            result.Add("ReservationState", new InputInformation()
            {
                Type = InputInformationType.choice, Required = true
            });
            result.Add("Description", new InputInformation()
            {
                Type = InputInformationType.@string
            });
            result.Add("IsPayed", new InputInformation()
            {
                Type = InputInformationType.boolean
            });

            result.Add("User", new InputInformation()
            {
                Type = InputInformationType.reference, Reference = "User", ReferenceForm = Form.GetReferenceForm(BackendUserViewModelItem.GetForm()), Required = true
            });
            result.Add("TransferUser", new InputInformation()
            {
                Type = InputInformationType.reference, Reference = "TransferUser", ReferenceForm = Form.GetReferenceForm(BackendUserViewModelItem.GetForm())
            });
            result.Add("Event", new InputInformation()
            {
                Type = InputInformationType.reference, Reference = "Event", ReferenceForm = Form.GetReferenceForm(BackendEventViewModelItem.GetForm()), Required = true, Readonly = true
            });

            return(result);
        }
Example #2
0
        public static Dictionary <string, InputInformation> GetForm()
        {
            Dictionary <string, InputInformation> result = new Dictionary <string, InputInformation>();

            result.Add("ID", new InputInformation()
            {
                Type = InputInformationType.integer, Readonly = true
            });
            result.Add("ChallongeLink", new InputInformation()
            {
                Type = InputInformationType.@string
            });
            result.Add("Mode", new InputInformation()
            {
                Type = InputInformationType.@string, Required = true
            });
            result.Add("TeamSize", new InputInformation()
            {
                Type = InputInformationType.integer, Required = true
            });
            result.Add("Start", new InputInformation()
            {
                Type = InputInformationType.datetime, Required = true
            });
            result.Add("End", new InputInformation()
            {
                Type = InputInformationType.datetime
            });

            result.Add("Event", new InputInformation()
            {
                Type = InputInformationType.reference, Reference = "Event", ReferenceForm = Form.GetReferenceForm(BackendEventViewModelItem.GetForm()), Required = true
            });
            result.Add("Game", new InputInformation()
            {
                Type = InputInformationType.reference, Reference = "Game", ReferenceForm = Form.GetReferenceForm(BackendGameViewModelItem.GetForm()), Required = true
            });
            result.Add("Player", new InputInformation()
            {
                Type = InputInformationType.referenceButton, Reference = "User", ReferenceForm = Form.GetReferenceForm(BackendUserViewModelItem.GetForm())
            });
            result.Add("Teams", new InputInformation()
            {
                Type = InputInformationType.referenceButton, Reference = "Team", ReferenceForm = Form.GetReferenceForm(BackendTournamentTeamViewModelItem.GetForm())
            });

            return(result);
        }
Example #3
0
        public static Dictionary <string, InputInformation> GetForm()
        {
            Dictionary <string, InputInformation> result = new Dictionary <string, InputInformation>();

            result.Add("ID", new InputInformation()
            {
                Type = InputInformationType.integer, Readonly = true
            });
            result.Add("Status", new InputInformation()
            {
                Type = InputInformationType.choice, Required = true
            });
            result.Add("SeatNumber", new InputInformation()
            {
                Type = InputInformationType.integer, Required = true, Readonly = true
            });
            result.Add("Event", new InputInformation()
            {
                Type = InputInformationType.reference, Reference = "Event", ReferenceForm = Form.GetReferenceForm(BackendEventViewModelItem.GetForm()), Required = true, Readonly = true
            });
            result.Add("User", new InputInformation()
            {
                Type = InputInformationType.reference, Reference = "User", ReferenceForm = Form.GetReferenceForm(BackendUserViewModelItem.GetForm()), Required = true, Readonly = true
            });
            result.Add("Note", new InputInformation()
            {
                Type = InputInformationType.text
            });
            result.Add("Registered", new InputInformation()
            {
                Type = InputInformationType.datetime, Readonly = true
            });

            return(result);
        }