Пример #1
0
        protected override void GetParametersLocked(Parameters Parameters, Language UserLanguage, bool IncludeJoins)
        {
            base.GetParametersLocked(Parameters, UserLanguage, IncludeJoins);

            bool InProduction = this.Phase >= LifecyclePhase.Production;

            if (UserLanguage == null)
            {
                Parameters.AddStringParameter("resource", "Communication", "Communication",
                                              "Resource Name:",
                                              "Local resource name of content.",
                                              !InProduction, null, this.resource);

                Parameters.AddStringParameter("query", "Communication", "Communication",
                                              "Query String:",
                                              "Optional query string used in the request for data.",
                                              !InProduction, string.Empty, this.query);
            }
            else
            {
                LanguageModule Module   = UserLanguage.GetModule(LanguageModuleName);
                string         Category = Module.String(26, "Communication");

                Parameters.AddStringParameter("resource", "Communication", Category,
                                              Module.String(7, "Resource Name:"),
                                              Module.String(8, "Local resource name of content."),
                                              !InProduction, null, this.resource);

                Parameters.AddStringParameter("query", "Communication", Category,
                                              Module.String(53, "Query String:"),
                                              Module.String(54, "Optional query string used in the request for data."),
                                              !InProduction, string.Empty, this.query);
            }
        }
Пример #2
0
        protected override void GetParametersLocked(Parameters Parameters, Language UserLanguage, bool IncludeJoins)
        {
            base.GetParametersLocked(Parameters, UserLanguage, IncludeJoins);

            bool InProduction = this.Phase >= LifecyclePhase.Production;

            if (UserLanguage == null)
            {
                Parameters.AddStringParameter("folder", "Communication", "Communication",
                                              "Folder:",
                                              "CoAP folder",
                                              !InProduction, null, this.folder);

                /*Parameters.AddBooleanParameter("composite", "Communication", "Communication",
                 *  "Composite folder",
                 *  "If checked, the current folder consists of data of its child nodes.",
                 *  !InProduction, false, this.composite);*/
            }
            else
            {
                LanguageModule Module   = UserLanguage.GetModule(LanguageModuleName);
                string         Category = Module.String(26, "Communication");

                Parameters.AddStringParameter("folder", "Communication", Category,
                                              Module.String(3, "Folder:"),
                                              Module.String(4, "CoAP folder"),
                                              !InProduction, null, this.folder);

                /*Parameters.AddBooleanParameter("composite", "Communication", Category,
                 *  Module.String(5, "Composite folder"),
                 *  Module.String(6, "If checked, the current folder consists of data of its child nodes."),
                 *  !InProduction, false, this.composite);*/
            }
        }
        protected override void GetParametersLocked(Parameters Parameters, Language UserLanguage, bool IncludeJoins)
        {
            base.GetParametersLocked(Parameters, UserLanguage, IncludeJoins);

            bool InProduction = this.Phase >= LifecyclePhase.Production;

            if (UserLanguage == null)
            {
                Parameters.AddStringParameter("fieldName", "Communication", "Communication",
                                              "Field Name:",
                                              "Field name to use when reporting content.",
                                              !InProduction, null, this.fieldName);
            }
            else
            {
                LanguageModule Module   = UserLanguage.GetModule(LanguageModuleName);
                string         Category = Module.String(2, "Communication");

                Parameters.AddStringParameter("fieldName", "Communication", Category,
                                              Module.String(29, "Field Name:"),
                                              Module.String(30, "Field name to use when reporting content."),
                                              !InProduction, null, this.fieldName);
            }
        }