public RAppCommandButton(RAppCommand cmd)
        {
            this.Text = cmd.Name;
            this.AppCommand = cmd;

            ObjectsQueue = new List<int>();
        }
Example #2
0
        private RAppConfig CreateDefault()
        {
            RAppConfig config = new RAppConfig();
            config.ModelCode = "podst";
            config.MasterItemTemplate = "OptItem";
            config.MasterCollectionPath = "Optimizations";
            config.DetailTemplate = "OptView";
            config.SelectedHtmlElementClass = "selectedObject";
            config.Navigation = "profiles:профиль/canes:хлыст";
            config.MasterItemsUpdateIntervalMs = 10000;
            config.Debug = true;

            RAppConfigVar printerName = new RAppConfigVar();
            printerName.ParamName = "PrinterName";
            printerName.Value = "ZDesigner LP 2844";

            RAppCommand print = new RAppCommand();
            print.Name = "Печать";
            print.TargetAttr = "PRINT_STICKERS";
            print.TemplateOverloads.Add(printerName);

            config.Commands.Buttons.Add(print);

            return config;
        }