Example #1
0
        public BolovanjeWorkItem() : base("ProsjekBolovanje", new ProsjekBolovanje())
        {
            UICommandDefinition uiCommandDefinition = new UICommandDefinition("Zadaci")
            {
                Text       = "Zadaci",
                Site       = "MainShellPanel",
                IsCategory = true
            };

            this.UICommandDefinitionContainer.Add(uiCommandDefinition);
            UICommandDefinition definition2 = new UICommandDefinition("Ucitaj")
            {
                Text  = "Učitaj podatke",
                Site  = "MainShellPanel.Zadaci",
                Image = ImageResourcesNew.page_white_get
            };

            this.UICommandDefinitionContainer.Add(definition2);
            UICommandDefinition definition = new UICommandDefinition("Snimi")
            {
                Text  = "Snimi u Excel format",
                Site  = "MainShellPanel.Zadaci",
                Image = ImageResourcesNew.page_excel
            };

            this.UICommandDefinitionContainer.Add(definition);
        }
Example #2
0
        public MaticniKartonWorkItem() : base("MaticniKarton", new MaticniKarton.MaticniKarton())
        {
            UICommandDefinition uiCommandDefinition = new UICommandDefinition("Zadaci")
            {
                Text       = "Matični karton",
                Site       = "MainShellPanel",
                IsCategory = true
            };

            this.UICommandDefinitionContainer.Add(uiCommandDefinition);
            UICommandDefinition definition2 = new UICommandDefinition("OtvoriGodinu")
            {
                Text  = "Otvori godinu",
                Site  = "MainShellPanel.Zadaci",
                Image = ImageResourcesNew.calendar_view_month
            };

            this.UICommandDefinitionContainer.Add(definition2);
            UICommandDefinition definition = new UICommandDefinition("Ispisi")
            {
                Text  = "Ispiši",
                Site  = "MainShellPanel.Zadaci",
                Image = ImageResourcesNew.printer
            };

            this.UICommandDefinitionContainer.Add(definition);
        }
Example #3
0
        public EvidencijaCustomWorkItem() : base("EvidencijaCustom", new EvidencijaCustom())
        {
            UICommandDefinition uiCommandDefinition = new UICommandDefinition("Tablice")
            {
                Text       = "Ispisi",
                Site       = "MainShellPanel",
                IsCategory = true
            };

            this.UICommandDefinitionContainer.Add(uiCommandDefinition);
            UICommandDefinition definition = new UICommandDefinition("Smjenski")
            {
                Text  = "Ispis evidencije",
                Site  = "MainShellPanel.Tablice",
                Image = ImageResourcesNew.session_idle_time
            };

            this.UICommandDefinitionContainer.Add(definition);
            UICommandDefinition definition2 = new UICommandDefinition("Rekapitulirano")
            {
                Text  = "Ispis rekapitulacije",
                Site  = "MainShellPanel.Tablice",
                Image = ImageResourcesNew.table_sum
            };

            this.UICommandDefinitionContainer.Add(definition2);
        }
Example #4
0
        public UceniciCustomWorkItem() : base("UceniciCustom", new UceniciCustom())
        {
            UICommandDefinition uiCommandDefinition = new UICommandDefinition("Tablice")
            {
                Text       = "Ispisi",
                Site       = "MainShellPanel",
                IsCategory = true
            };

            this.UICommandDefinitionContainer.Add(uiCommandDefinition);

            //UICommandDefinition definition = new UICommandDefinition("RSM") {
            //    Text = "Obrazac R-Sm",
            //    Site = "MainShellPanel.Tablice",
            //    Image = ImageResourcesNew.script
            //};
            //this.UICommandDefinitionContainer.Add(definition);

/*            UICommandDefinition definition2 = new UICommandDefinition("Rekapitulirano") {
 *              Text = "",
 *              Site = "MainShellPanel.Tablice"
 *          };
 *          this.UICommandDefinitionContainer.Add(definition2);
 */
        }
Example #5
0
        public KarticePartneraWorkItem() : base("KarticePartneraWorkItem", new KarticePartneraSmartPart())
        {
            UICommandDefinition uiCommandDefinition = new UICommandDefinition("KarticePartnera")
            {
                Text       = "Kartice partnera",
                IsCategory = true,
                Site       = "MainShellPanel"
            };

            this.UICommandDefinitionContainer.Add(uiCommandDefinition);
            UICommandDefinition definition = new UICommandDefinition("Kreiraj")
            {
                Text  = "Kreiraj izvještaj/Portrait",
                Site  = "MainShellPanel.KarticePartnera",
                Image = ImageResourcesNew.table
            };

            this.UICommandDefinitionContainer.Add(definition);

            UICommandDefinition definition2 = new UICommandDefinition("KreirajLand")
            {
                Text  = "Kreiraj izvještaj/LandScape",
                Site  = "MainShellPanel.KarticePartnera",
                Image = ImageResourcesNew.table
            };

            this.UICommandDefinitionContainer.Add(definition2);
        }
Example #6
0
        public PotvrdaWorkItem() : base("PotvrdaWorkItem", new PotvrdaSmartPart())
        {
            UICommandDefinition uiCommandDefinition = new UICommandDefinition("Ip1ObrazacCommand")
            {
                Text       = "Potvrda Obrazac",
                Site       = "MainShellPanel",
                IsCategory = true
            };

            this.UICommandDefinitionContainer.Add(uiCommandDefinition);
            UICommandDefinition definition = new UICommandDefinition("OtvoriGodinu")
            {
                Text  = "Za godinu",
                Site  = "MainShellPanel.Ip1ObrazacCommand",
                Image = ImageResourcesNew.calendar_view_month
            };

            this.UICommandDefinitionContainer.Add(definition);
            UICommandDefinition definition2 = new UICommandDefinition("Ispisi")
            {
                Text  = "Ispiši",
                Site  = "MainShellPanel.Ip1ObrazacCommand",
                Image = ImageResourcesNew.printer
            };

            this.UICommandDefinitionContainer.Add(definition2);
            UICommandDefinition definition3 = new UICommandDefinition("Stara")
            {
                Text  = "Potvrda /stari program",
                Site  = "MainShellPanel.Ip1ObrazacCommand",
                Image = ImageResourcesNew.application_form
            };

            this.UICommandDefinitionContainer.Add(definition3);
        }
Example #7
0
        public KratkaRekapWorkItem() : base("KratkaRekapWorkItem", new KratkaRekapNamespace.KratkaRekap())
        {
            UICommandDefinition uiCommandDefinition = new UICommandDefinition("Izbornik")
            {
                Text       = "Izbornik",
                Site       = "MainShellPanel",
                IsCategory = true
            };

            this.UICommandDefinitionContainer.Add(uiCommandDefinition);
            UICommandDefinition definition = new UICommandDefinition("IspisiCommand")
            {
                Text  = "Ispiši",
                Site  = "MainShellPanel.Izbornik",
                Image = ImageResourcesNew.printer
            };

            this.UICommandDefinitionContainer.Add(definition);
            UICommandDefinition definition2 = new UICommandDefinition("KontirajCommand")
            {
                Text  = "Kontiraj plaću u GK",
                Site  = "MainShellPanel.Izbornik",
                Image = ImageResourcesNew.report
            };

            this.UICommandDefinitionContainer.Add(definition2);
            UICommandDefinition definition3 = new UICommandDefinition("IzlazCommand")
            {
                Text  = "Izlaz",
                Site  = "MainShellPanel.Izbornik",
                Image = ImageResourcesNew.cancel
            };

            this.UICommandDefinitionContainer.Add(definition3);
        }
Example #8
0
        protected override void OnInitialized()
        {
            UICommandDefinition uiCommandDefinition = new UICommandDefinition("Tablice")
            {
                Text       = "MZOŠ Tablice-OŠ",
                Site       = "MainShellPanel",
                IsCategory = true
            };

            this.UICommandDefinitionContainer.Add(uiCommandDefinition);
            UICommandDefinition definition = new UICommandDefinition("Smjenski")
            {
                Text  = "Smjenski rad",
                Site  = "MainShellPanel.Tablice",
                Image = ImageResourcesNew.note_go
            };

            this.UICommandDefinitionContainer.Add(definition);
            UICommandDefinition definition2 = new UICommandDefinition("Posebni")
            {
                Text  = "Posebni uvjeti",
                Site  = "MainShellPanel.Tablice",
                Image = ImageResourcesNew.star
            };

            this.UICommandDefinitionContainer.Add(definition2);
            UICommandDefinition definition3 = new UICommandDefinition("Uvecanje")
            {
                Text  = "Uvećanje",
                Site  = "MainShellPanel.Tablice",
                Image = ImageResourcesNew.coins_add
            };

            this.UICommandDefinitionContainer.Add(definition3);
        }
Example #9
0
        protected override void OnInitialized()
        {
            base.m_FormDefinitionDictionary.Add("SPOL", new FormDefinition(this, new SPOLFormUserControl(), StringResources.SPOLName, StringResources.SPOLDescription, "NetAdvantage"));
            this.SPOL.UICommandDefinitionContainer.Add(StandardCommandDefinitions.GetFormCommands(this.SPOL.Site));
            UICommandDefinition uiCommandDefinition = null;

            uiCommandDefinition = new UICommandDefinition("NewRAD1VEZASPOL", "Veza RAD1 i spol", this.SPOL.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "RAD1VEZASPOL.Insert"
            };
            this.SPOL.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewRAD1VEZASPOL", "Veza RAD1 i spol", this.SPOL.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "RAD1VEZASPOL.Select"
            };
            this.SPOL.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewRADNIK", "Zaposlenici", this.SPOL.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "RADNIK.Insert"
            };
            this.SPOL.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewRADNIK", "Zaposlenici", this.SPOL.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "RADNIK.Select"
            };
            this.SPOL.UICommandDefinitionContainer.Add(uiCommandDefinition);
            base.OnInitialized();
        }
Example #10
0
        protected override void OnInitialized()
        {
            base.m_FormDefinitionDictionary.Add("GKSTAVKA", new FormDefinition(this, new GKSTAVKAFormUserControl(), StringResources.GKSTAVKAName, StringResources.GKSTAVKADescription, "NetAdvantage"));
            this.GKSTAVKA.UICommandDefinitionContainer.Add(StandardCommandDefinitions.GetFormCommands(this.GKSTAVKA.Site));
            UICommandDefinition uiCommandDefinition = null;

            uiCommandDefinition = new UICommandDefinition("NewZATVARANJA1", "ZATVARANJA", this.GKSTAVKA.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "ZATVARANJA.Insert"
            };
            this.GKSTAVKA.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewZATVARANJA1", "ZATVARANJA", this.GKSTAVKA.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "ZATVARANJA.Select"
            };
            this.GKSTAVKA.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewZATVARANJA", "ZATVARANJA", this.GKSTAVKA.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "ZATVARANJA.Insert"
            };
            this.GKSTAVKA.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewZATVARANJA", "ZATVARANJA", this.GKSTAVKA.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "ZATVARANJA.Select"
            };
            this.GKSTAVKA.UICommandDefinitionContainer.Add(uiCommandDefinition);
            base.OnInitialized();
        }
Example #11
0
        public IP1WORKITEM() : base("IP1WORKITEM", new IP1SmartPart())
        {
            UICommandDefinition uiCommandDefinition = new UICommandDefinition("Ip1ObrazacCommand")
            {
                Text       = "ID-1 Obrazac",
                Site       = "MainShellPanel",
                IsCategory = true
            };

            this.UICommandDefinitionContainer.Add(uiCommandDefinition);
            UICommandDefinition definition = new UICommandDefinition("OtvoriGodinu")
            {
                Text  = "Za godinu",
                Site  = "MainShellPanel.Ip1ObrazacCommand",
                Image = ImageResourcesNew.calendar_view_month
            };

            this.UICommandDefinitionContainer.Add(definition);
            UICommandDefinition definition6 = new UICommandDefinition("IzradiID1")
            {
                Text  = "Snimi ID-1 XML",
                Site  = "MainShellPanel.Ip1ObrazacCommand",
                Image = ImageResourcesNew.page_copy
            };

            this.UICommandDefinitionContainer.Add(definition6);

            /*
             * UICommandDefinition definition2 = new UICommandDefinition("StariID1") {
             *  Text = "Stari program",
             *  Site = "MainShellPanel.Ip1ObrazacCommand",
             *  Image = ImageResourcesNew.application_form
             * };
             * this.UICommandDefinitionContainer.Add(definition2);
             */
            UICommandDefinition definition3 = new UICommandDefinition("Ispisi")
            {
                Text  = "Ispiši",
                Site  = "MainShellPanel.Ip1ObrazacCommand",
                Image = ImageResourcesNew.printer
            };

            this.UICommandDefinitionContainer.Add(definition3);

            /*
             * UICommandDefinition definition5 = new UICommandDefinition("StariProgram") {
             *  Text = "StariProgram",
             *  Site = "MainShellPanel",
             *  IsCategory = true
             * };
             *
             * this.UICommandDefinitionContainer.Add(definition5);
             * UICommandDefinition definition7 = new UICommandDefinition("StariOIB") {
             *  Text = "Unos OIB-a",
             *  Site = "MainShellPanel.StariProgram",
             *  Image = ImageResourcesNew.user
             * };
             * this.UICommandDefinitionContainer.Add(definition7);
             */
        }
Example #12
0
        protected override void OnInitialized()
        {
            base.m_FormDefinitionDictionary.Add("OBRACUN", new FormDefinition(this, new OBRACUNFormUserControl(), StringResources.OBRACUNName, StringResources.OBRACUNDescription, "NetAdvantage"));
            this.OBRACUN.UICommandDefinitionContainer.Add(StandardCommandDefinitions.GetFormCommands(this.OBRACUN.Site));
            UICommandDefinition uiCommandDefinition = null;

            uiCommandDefinition = new UICommandDefinition("NewRSMA", "RSMA", this.OBRACUN.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "RSMA.Insert"
            };
            this.OBRACUN.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewRSMA", "RSMA", this.OBRACUN.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "RSMA.Select"
            };
            this.OBRACUN.UICommandDefinitionContainer.Add(uiCommandDefinition);
            base.m_FormDefinitionDictionary.Add("ObracunRadnici", new FormDefinition(this, new OBRACUNFormObracunRadniciUserControl(), "ObracunRadnici", "OBRACUNLevel1", "NetAdvantage"));
            this.ObracunRadnici.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("ObracunRadniciSaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.ObracunRadnici.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("ObracunRadniciAddLine", this.ResourceManager.GetString("AddLine"), this.ObracunRadnici.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("ObracunRadniciAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.ObracunRadnici.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("ObracunRadniciDelete", this.ResourceManager.GetString("toolDelete"), this.ObracunRadnici.Site, 1, null, DeklaritMode.Delete) });
            base.m_FormDefinitionDictionary.Add("ObracunDoprinosi", new FormDefinition(this, new OBRACUNFormObracunDoprinosiUserControl(), "ObracunDoprinosi", "OBRACUNLevel3", "NetAdvantage"));
            this.ObracunDoprinosi.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("ObracunDoprinosiSaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.ObracunDoprinosi.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("ObracunDoprinosiAddLine", this.ResourceManager.GetString("AddLine"), this.ObracunDoprinosi.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("ObracunDoprinosiAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.ObracunDoprinosi.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("ObracunDoprinosiDelete", this.ResourceManager.GetString("toolDelete"), this.ObracunDoprinosi.Site, 1, null, DeklaritMode.Delete) });
            base.m_FormDefinitionDictionary.Add("ObracunPorezi", new FormDefinition(this, new OBRACUNFormObracunPoreziUserControl(), "ObracunPorezi", "OBRACUNLevel4", "NetAdvantage"));
            this.ObracunPorezi.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("ObracunPoreziSaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.ObracunPorezi.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("ObracunPoreziAddLine", this.ResourceManager.GetString("AddLine"), this.ObracunPorezi.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("ObracunPoreziAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.ObracunPorezi.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("ObracunPoreziDelete", this.ResourceManager.GetString("toolDelete"), this.ObracunPorezi.Site, 1, null, DeklaritMode.Delete) });
            base.m_FormDefinitionDictionary.Add("ObracunOlaksice", new FormDefinition(this, new OBRACUNFormObracunOlaksiceUserControl(), "ObracunOlaksice", "ObracunOlaksice", "NetAdvantage"));
            this.ObracunOlaksice.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("ObracunOlaksiceSaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.ObracunOlaksice.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("ObracunOlaksiceAddLine", this.ResourceManager.GetString("AddLine"), this.ObracunOlaksice.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("ObracunOlaksiceAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.ObracunOlaksice.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("ObracunOlaksiceDelete", this.ResourceManager.GetString("toolDelete"), this.ObracunOlaksice.Site, 1, null, DeklaritMode.Delete) });
            base.m_FormDefinitionDictionary.Add("OBRACUNKrediti", new FormDefinition(this, new OBRACUNFormOBRACUNKreditiUserControl(), "OBRACUNKrediti", "ObracunKrediti", "NetAdvantage"));
            this.OBRACUNKrediti.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("OBRACUNKreditiSaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.OBRACUNKrediti.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("OBRACUNKreditiAddLine", this.ResourceManager.GetString("AddLine"), this.OBRACUNKrediti.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("OBRACUNKreditiAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.OBRACUNKrediti.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("OBRACUNKreditiDelete", this.ResourceManager.GetString("toolDelete"), this.OBRACUNKrediti.Site, 1, null, DeklaritMode.Delete) });
            base.m_FormDefinitionDictionary.Add("OBRACUNObustave", new FormDefinition(this, new OBRACUNFormOBRACUNObustaveUserControl(), "OBRACUNObustave", "ObracunObustave", "NetAdvantage"));
            this.OBRACUNObustave.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("OBRACUNObustaveSaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.OBRACUNObustave.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("OBRACUNObustaveAddLine", this.ResourceManager.GetString("AddLine"), this.OBRACUNObustave.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("OBRACUNObustaveAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.OBRACUNObustave.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("OBRACUNObustaveDelete", this.ResourceManager.GetString("toolDelete"), this.OBRACUNObustave.Site, 1, null, DeklaritMode.Delete) });
            base.m_FormDefinitionDictionary.Add("ObracunElementi", new FormDefinition(this, new OBRACUNFormObracunElementiUserControl(), "ObracunElementi", "ObracunElementi", "NetAdvantage"));
            this.ObracunElementi.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("ObracunElementiSaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.ObracunElementi.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("ObracunElementiAddLine", this.ResourceManager.GetString("AddLine"), this.ObracunElementi.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("ObracunElementiAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.ObracunElementi.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("ObracunElementiDelete", this.ResourceManager.GetString("toolDelete"), this.ObracunElementi.Site, 1, null, DeklaritMode.Delete) });
            base.OnInitialized();
        }
Example #13
0
        protected override void OnInitialized()
        {
            base.m_FormDefinitionDictionary.Add("PARTNER", new FormDefinition(this, new PARTNERFormUserControl(), StringResources.PARTNERName, StringResources.PARTNERDescription, "NetAdvantage"));
            this.PARTNER.UICommandDefinitionContainer.Add(StandardCommandDefinitions.GetFormCommands(this.PARTNER.Site));
            UICommandDefinition uiCommandDefinition = null;

            uiCommandDefinition = new UICommandDefinition("NewGKSTAVKA", "GKSTAVKA", this.PARTNER.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "GKSTAVKA.Insert"
            };
            this.PARTNER.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewGKSTAVKA", "GKSTAVKA", this.PARTNER.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "GKSTAVKA.Select"
            };
            this.PARTNER.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewIRA", "IRA", this.PARTNER.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "IRA.Insert"
            };
            this.PARTNER.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewIRA", "IRA", this.PARTNER.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "IRA.Select"
            };
            this.PARTNER.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewRACUN", "Izlazni računi", this.PARTNER.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "RACUN.Insert"
            };
            this.PARTNER.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewRACUN", "Izlazni računi", this.PARTNER.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "RACUN.Select"
            };
            this.PARTNER.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewSHEMAURA", "Shema kontiranja URA", this.PARTNER.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "SHEMAURA.Insert"
            };
            this.PARTNER.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewSHEMAURA", "Shema kontiranja URA", this.PARTNER.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "SHEMAURA.Select"
            };
            this.PARTNER.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewURA", "URA", this.PARTNER.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "URA.Insert"
            };
            this.PARTNER.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewURA", "URA", this.PARTNER.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "URA.Select"
            };
            this.PARTNER.UICommandDefinitionContainer.Add(uiCommandDefinition);
            base.m_FormDefinitionDictionary.Add("PARTNERZADUZENJE", new FormDefinition(this, new PARTNERFormPARTNERZADUZENJEUserControl(), "PARTNERZADUZENJE", "Zaduzenja partnera", "NetAdvantage"));
            this.PARTNERZADUZENJE.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("PARTNERZADUZENJESaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.PARTNERZADUZENJE.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("PARTNERZADUZENJEAddLine", this.ResourceManager.GetString("AddLine"), this.PARTNERZADUZENJE.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("PARTNERZADUZENJEAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.PARTNERZADUZENJE.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("PARTNERZADUZENJEDelete", this.ResourceManager.GetString("toolDelete"), this.PARTNERZADUZENJE.Site, 1, null, DeklaritMode.Delete) });
            base.OnInitialized();
        }
Example #14
0
        protected override void OnInitialized()
        {
            base.m_FormDefinitionDictionary.Add("BANKE", new FormDefinition(this, new BANKEFormUserControl(), StringResources.BANKEName, StringResources.BANKEDescription, "NetAdvantage"));
            this.BANKE.UICommandDefinitionContainer.Add(StandardCommandDefinitions.GetFormCommands(this.BANKE.Site));
            UICommandDefinition uiCommandDefinition = null;

            uiCommandDefinition = new UICommandDefinition("NewDDRADNIK", "Primatelji DD", this.BANKE.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "DDRADNIK.Insert"
            };
            this.BANKE.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewDDRADNIK", "Primatelji DD", this.BANKE.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "DDRADNIK.Select"
            };
            this.BANKE.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewRADNIK", "Zaposlenici", this.BANKE.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "RADNIK.Insert"
            };
            this.BANKE.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewRADNIK", "Zaposlenici", this.BANKE.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "RADNIK.Select"
            };
            this.BANKE.UICommandDefinitionContainer.Add(uiCommandDefinition);
            base.OnInitialized();
        }
Example #15
0
        protected override void OnInitialized()

        {
            UICommandDefinition uiCommandDefinition = new UICommandDefinition("Dodatno")
            {
                Text       = "Dodatno",
                Site       = "MainShellPanel",
                IsCategory = true
            };

            this.UICommandDefinitionContainer.Add(uiCommandDefinition);
            UICommandDefinition definition2 = new UICommandDefinition("Pretrazi")
            {
                Text  = "Pretraživanje",
                Site  = "MainShellPanel.Dodatno",
                Image = ImageResourcesNew.find
            };

            this.UICommandDefinitionContainer.Add(definition2);
            UICommandDefinition definition = new UICommandDefinition("Ponisti")
            {
                Text  = "Poništi filter",
                Site  = "MainShellPanel.Dodatno",
                Image = ImageResourcesNew.filter_delete
            };

            this.UICommandDefinitionContainer.Add(definition);
        }
Example #16
0
        public static ToolBase CreateButton(UICommandDefinition menuEntry)
        {
            ButtonTool toolBase = new ButtonTool(menuEntry.Name);

            SetStandardProperties(menuEntry, toolBase);
            return(toolBase);
        }
Example #17
0
        public ZatvaranjeBolniceWorkItem() : base("ZatvaranjeBolniceWorkItem", new ZatvaranjeFormBolniceSmartPart())
        {
            UICommandDefinition uiCommandDefinition = new UICommandDefinition("Zatvaranje")
            {
                Text       = "Otvorene stavke",
                IsCategory = true,
                Site       = "MainShellPanel"
            };

            this.UICommandDefinitionContainer.Add(uiCommandDefinition);
            UICommandDefinition definition = new UICommandDefinition("PoveziStavke")
            {
                Text  = "Zatvori stavke",
                Site  = "MainShellPanel.Zatvaranje",
                Image = ImageResourcesNew.table_relationship
            };

            this.UICommandDefinitionContainer.Add(definition);


            UICommandDefinition definition2 = new UICommandDefinition("UcitajDatoteku")
            {
                Text  = "Učitaj datoteku",
                Site  = "MainShellPanel.Zatvaranje",
                Image = ImageResourcesNew.tab_add
            };

            this.UICommandDefinitionContainer.Add(definition2);
        }
Example #18
0
 private static ToolBase GetToolStripItem(UICommandPlacement toolStripMode, UICommandDefinition entry)
 {
     if (entry.IsCategoryOrFolder)
     {
         return(CreateMenuItem(entry, toolStripMode == UICommandPlacement.Menu));
     }
     return(CreateButton(entry));
 }
Example #19
0
        protected override void OnInitialized()
        {
            base.m_FormDefinitionDictionary.Add("DOKUMENT", new FormDefinition(this, new DOKUMENTFormUserControl(), StringResources.DOKUMENTName, StringResources.DOKUMENTDescription, "NetAdvantage"));
            this.DOKUMENT.UICommandDefinitionContainer.Add(StandardCommandDefinitions.GetFormCommands(this.DOKUMENT.Site));
            UICommandDefinition uiCommandDefinition = null;

            uiCommandDefinition = new UICommandDefinition("NewBLAGAJNA", "BLAGAJNA", this.DOKUMENT.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "BLAGAJNA.Insert"
            };
            this.DOKUMENT.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewBLAGAJNA", "BLAGAJNA", this.DOKUMENT.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "BLAGAJNA.Select"
            };
            this.DOKUMENT.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewGKSTAVKA", "GKSTAVKA", this.DOKUMENT.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "GKSTAVKA.Insert"
            };
            this.DOKUMENT.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewGKSTAVKA", "GKSTAVKA", this.DOKUMENT.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "GKSTAVKA.Select"
            };
            this.DOKUMENT.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewIRA", "IRA", this.DOKUMENT.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "IRA.Insert"
            };
            this.DOKUMENT.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewIRA", "IRA", this.DOKUMENT.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "IRA.Select"
            };
            this.DOKUMENT.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewSHEMAIRA", "Shema kontiranja IRA", this.DOKUMENT.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "SHEMAIRA.Insert"
            };
            this.DOKUMENT.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewSHEMAIRA", "Shema kontiranja IRA", this.DOKUMENT.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "SHEMAIRA.Select"
            };
            this.DOKUMENT.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewURA", "URA", this.DOKUMENT.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "URA.Insert"
            };
            this.DOKUMENT.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewURA", "URA", this.DOKUMENT.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "URA.Select"
            };
            this.DOKUMENT.UICommandDefinitionContainer.Add(uiCommandDefinition);
            base.OnInitialized();
        }
Example #20
0
        protected override void OnInitialized()
        {
            base.m_FormDefinitionDictionary.Add("KONTO", new FormDefinition(this, new KONTOFormUserControl(), StringResources.KONTOName, StringResources.KONTODescription, "NetAdvantage"));
            this.KONTO.UICommandDefinitionContainer.Add(StandardCommandDefinitions.GetFormCommands(this.KONTO.Site));
            UICommandDefinition uiCommandDefinition = null;

            uiCommandDefinition = new UICommandDefinition("NewAMSKUPINE2", "AM skupine nabavne vrijednosti", this.KONTO.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "AMSKUPINE.Insert"
            };
            this.KONTO.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewAMSKUPINE2", "AM skupine nabavne vrijednosti", this.KONTO.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "AMSKUPINE.Select"
            };
            this.KONTO.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewAMSKUPINE1", "AM skupine ispravka vrijednosti", this.KONTO.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "AMSKUPINE.Insert"
            };
            this.KONTO.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewAMSKUPINE1", "AM skupine ispravka vrijednosti", this.KONTO.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "AMSKUPINE.Select"
            };
            this.KONTO.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewAMSKUPINE", "AM skupine izvora vlasništva", this.KONTO.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "AMSKUPINE.Insert"
            };
            this.KONTO.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewAMSKUPINE", "AM skupine izvora vlasništva", this.KONTO.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "AMSKUPINE.Select"
            };
            this.KONTO.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewBLAGAJNA", "BLAGAJNA", this.KONTO.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "BLAGAJNA.Insert"
            };
            this.KONTO.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewBLAGAJNA", "BLAGAJNA", this.KONTO.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "BLAGAJNA.Select"
            };
            this.KONTO.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewGKSTAVKA", "GKSTAVKA", this.KONTO.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "GKSTAVKA.Insert"
            };
            this.KONTO.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewGKSTAVKA", "GKSTAVKA", this.KONTO.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "GKSTAVKA.Select"
            };
            this.KONTO.UICommandDefinitionContainer.Add(uiCommandDefinition);
            base.OnInitialized();
        }
Example #21
0
        public static ToolBase CreateMenuItem(UICommandDefinition menuEntry, bool isMenu)
        {
            PopupMenuTool toolBase = new PopupMenuTool(menuEntry.Name);

            if (isMenu)
            {
                toolBase.DropDownArrowStyle = DropDownArrowStyle.None;
            }
            SetStandardProperties(menuEntry, toolBase);
            return(toolBase);
        }
Example #22
0
        protected override void OnInitialized()
        {
            base.m_FormDefinitionDictionary.Add("RADNIK", new FormDefinition(this, new RADNIKFormUserControl(), StringResources.RADNIKName, StringResources.RADNIKDescription, "NetAdvantage"));
            this.RADNIK.UICommandDefinitionContainer.Add(StandardCommandDefinitions.GetFormCommands(this.RADNIK.Site));
            UICommandDefinition uiCommandDefinition = null;

            uiCommandDefinition = new UICommandDefinition("NewGOOBRACUN", "Godišnji odbici i olakšice", this.RADNIK.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "GOOBRACUN.Insert"
            };
            this.RADNIK.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewGOOBRACUN", "Godišnji odbici i olakšice", this.RADNIK.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "GOOBRACUN.Select"
            };
            this.RADNIK.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewOTISLI", "OTISLI", this.RADNIK.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "OTISLI.Insert"
            };
            this.RADNIK.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewOTISLI", "OTISLI", this.RADNIK.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "OTISLI.Select"
            };
            this.RADNIK.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("NewZAPOSLENI", "ZAPOSLENI", this.RADNIK.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "ZAPOSLENI.Insert"
            };
            this.RADNIK.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewZAPOSLENI", "ZAPOSLENI", this.RADNIK.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "ZAPOSLENI.Select"
            };
            this.RADNIK.UICommandDefinitionContainer.Add(uiCommandDefinition);
            base.m_FormDefinitionDictionary.Add("RADNIKOdbitak", new FormDefinition(this, new RADNIKFormRADNIKOdbitakUserControl(), "RADNIKOdbitak", "Osobni odbici radnika", "NetAdvantage"));
            this.RADNIKOdbitak.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("RADNIKOdbitakSaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.RADNIKOdbitak.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("RADNIKOdbitakAddLine", this.ResourceManager.GetString("AddLine"), this.RADNIKOdbitak.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKOdbitakAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.RADNIKOdbitak.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKOdbitakDelete", this.ResourceManager.GetString("toolDelete"), this.RADNIKOdbitak.Site, 1, null, DeklaritMode.Delete) });
            base.m_FormDefinitionDictionary.Add("RADNIKOlaksica", new FormDefinition(this, new RADNIKFormRADNIKOlaksicaUserControl(), "RADNIKOlaksica", "Olakšice", "NetAdvantage"));
            this.RADNIKOlaksica.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("RADNIKOlaksicaSaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.RADNIKOlaksica.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("RADNIKOlaksicaAddLine", this.ResourceManager.GetString("AddLine"), this.RADNIKOlaksica.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKOlaksicaAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.RADNIKOlaksica.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKOlaksicaDelete", this.ResourceManager.GetString("toolDelete"), this.RADNIKOlaksica.Site, 1, null, DeklaritMode.Delete) });
            base.m_FormDefinitionDictionary.Add("RADNIKKrediti", new FormDefinition(this, new RADNIKFormRADNIKKreditiUserControl(), "RADNIKKrediti", "Krediti radnika", "NetAdvantage"));
            this.RADNIKKrediti.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("RADNIKKreditiSaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.RADNIKKrediti.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("RADNIKKreditiAddLine", this.ResourceManager.GetString("AddLine"), this.RADNIKKrediti.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKKreditiAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.RADNIKKrediti.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKKreditiDelete", this.ResourceManager.GetString("toolDelete"), this.RADNIKKrediti.Site, 1, null, DeklaritMode.Delete) });
            base.m_FormDefinitionDictionary.Add("RADNIKBruto", new FormDefinition(this, new RADNIKFormRADNIKBrutoUserControl(), "RADNIKBruto", "Bruto elementi", "NetAdvantage"));
            this.RADNIKBruto.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("RADNIKBrutoSaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.RADNIKBruto.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("RADNIKBrutoAddLine", this.ResourceManager.GetString("AddLine"), this.RADNIKBruto.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKBrutoAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.RADNIKBruto.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKBrutoDelete", this.ResourceManager.GetString("toolDelete"), this.RADNIKBruto.Site, 1, null, DeklaritMode.Delete) });
            base.m_FormDefinitionDictionary.Add("RADNIKNeto", new FormDefinition(this, new RADNIKFormRADNIKNetoUserControl(), "RADNIKNeto", "Neto elementi", "NetAdvantage"));
            this.RADNIKNeto.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("RADNIKNetoSaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.RADNIKNeto.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("RADNIKNetoAddLine", this.ResourceManager.GetString("AddLine"), this.RADNIKNeto.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKNetoAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.RADNIKNeto.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKNetoDelete", this.ResourceManager.GetString("toolDelete"), this.RADNIKNeto.Site, 1, null, DeklaritMode.Delete) });
            base.m_FormDefinitionDictionary.Add("RADNIKObustava", new FormDefinition(this, new RADNIKFormRADNIKObustavaUserControl(), "RADNIKObustava", "Obustave", "NetAdvantage"));
            this.RADNIKObustava.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("RADNIKObustavaSaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.RADNIKObustava.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("RADNIKObustavaAddLine", this.ResourceManager.GetString("AddLine"), this.RADNIKObustava.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKObustavaAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.RADNIKObustava.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKObustavaDelete", this.ResourceManager.GetString("toolDelete"), this.RADNIKObustava.Site, 1, null, DeklaritMode.Delete) });
            base.m_FormDefinitionDictionary.Add("RADNIKLevel7", new FormDefinition(this, new RADNIKFormRADNIKLevel7UserControl(), "RADNIKLevel7", "Koeficijenti", "NetAdvantage"));
            this.RADNIKLevel7.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("RADNIKLevel7SaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.RADNIKLevel7.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("RADNIKLevel7AddLine", this.ResourceManager.GetString("AddLine"), this.RADNIKLevel7.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKLevel7AddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.RADNIKLevel7.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKLevel7Delete", this.ResourceManager.GetString("toolDelete"), this.RADNIKLevel7.Site, 1, null, DeklaritMode.Delete) });
            base.m_FormDefinitionDictionary.Add("RADNIKIzuzeceOdOvrhe", new FormDefinition(this, new RADNIKFormRADNIKIzuzeceOdOvrheUserControl(), "RADNIKIzuzeceOdOvrhe", "IzuzeceOdOvrhe", "NetAdvantage"));
            this.RADNIKIzuzeceOdOvrhe.UICommandDefinitionContainer.Add(new UICommandDefinition[] { new UICommandDefinition("RADNIKIzuzeceOdOvrheSaveAndClose", this.ResourceManager.GetString("captionSaveAndClose"), this.RADNIKIzuzeceOdOvrhe.Site, 6, null, DeklaritMode.Update), new UICommandDefinition("RADNIKIzuzeceOdOvrheAddLine", this.ResourceManager.GetString("AddLine"), this.RADNIKIzuzeceOdOvrhe.Site, 6, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKIzuzeceOdOvrheAddLineAndNew", this.ResourceManager.GetString("captionAddLineAndNew"), this.RADNIKIzuzeceOdOvrhe.Site, 5, null, DeklaritMode.Insert), new UICommandDefinition("RADNIKIzuzeceOdOvrheDelete", this.ResourceManager.GetString("toolDelete"), this.RADNIKIzuzeceOdOvrhe.Site, 1, null, DeklaritMode.Delete) });
            base.OnInitialized();
        }
Example #23
0
 private object GetImage(UICommandDefinition entry)
 {
     if (entry.ImageListIndex.HasValue)
     {
         return(entry.ImageListIndex.Value);
     }
     if (entry.Image != null)
     {
         return(WinFormUtil.GetBitmap(entry.Image));
     }
     return(null);
 }
Example #24
0
        public AmortizacijaWorkWith() : base("AmortizacijaWorkWith", new Amortizacija())
        {
            UICommandDefinition uiCommandDefinition = new UICommandDefinition("Obracun")
            {
                Text       = "Amortizacija",
                Site       = "MainShellPanel",
                IsCategory = true
            };

            this.UICommandDefinitionContainer.Add(uiCommandDefinition);
            UICommandDefinition definition = new UICommandDefinition("OtvoriPostojecu")
            {
                Text  = "Otvori postojeću",
                Site  = "MainShellPanel.Obracun",
                Image = My.Resources.ResourcesPlacaExe.note_new
            };

            this.UICommandDefinitionContainer.Add(definition);
            UICommandDefinition definition2 = new UICommandDefinition("KreirajNovu")
            {
                Text  = "Kreiraj novu",
                Site  = "MainShellPanel.Obracun",
                Image = My.Resources.ResourcesPlacaExe.note_edit
            };

            this.UICommandDefinitionContainer.Add(definition2);
            UICommandDefinition definition4 = new UICommandDefinition("Ispisi")
            {
                Text  = "Ispiši amortizaciju",
                Site  = "MainShellPanel.Obracun",
                Image = My.Resources.ResourcesPlacaExe.note_edit
            };

            this.UICommandDefinitionContainer.Add(definition4);
            UICommandDefinition definition6 = new UICommandDefinition("IspisiRekapitulaciju")
            {
                Text  = "Ispiši rekapitulaciju",
                Site  = "MainShellPanel.Obracun",
                Image = My.Resources.ResourcesPlacaExe.note_edit
            };

            this.UICommandDefinitionContainer.Add(definition6);
            UICommandDefinition definition3 = new UICommandDefinition("Zatvori")
            {
                Text  = "Zatvori otvorenu",
                Site  = "MainShellPanel.Obracun",
                Image = My.Resources.ResourcesPlacaExe.note_edit
            };

            this.UICommandDefinitionContainer.Add(definition3);
        }
Example #25
0
        private void CreateGroupTree(WorkItem workItem, UICommandDefinition entry)
        {
            UltraExplorerBarGroup uiElement = new UltraExplorerBarGroup {
                Text = entry.Text
            };

            uiElement.Settings.Style = GroupStyle.ControlContainer;
            workItem.UIExtensionSites[entry.Site].Add <UltraExplorerBarGroup>(uiElement);
            UltraTree tree = new UltraTree {
                Dock      = DockStyle.Fill,
                ImageList = uiElement.ExplorerBar.ImageListSmall
            };

            uiElement.Container.Controls.Add(tree);
            workItem.UIExtensionSites.RegisterSite(entry.Site + "." + entry.Name, tree.Nodes);
        }
Example #26
0
 private static void SetStandardProperties(UICommandDefinition menuEntry, ToolBase toolBase)
 {
     toolBase.SharedProps.Caption      = menuEntry.Text;
     toolBase.SharedProps.DisplayStyle = ToolDisplayStyle.ImageAndText;
     if (menuEntry.ImageListIndex.HasValue)
     {
         toolBase.SharedProps.AppearancesSmall.Appearance.Image = menuEntry.ImageListIndex.Value;
     }
     else if (menuEntry.Image != null)
     {
         toolBase.SharedProps.AppearancesSmall.Appearance.Image = WinFormUtil.GetBitmap(menuEntry.Image);
     }
     if (menuEntry.ShortcutKeys.HasValue)
     {
         toolBase.SharedProps.Shortcut = (System.Windows.Forms.Shortcut)menuEntry.ShortcutKeys.Value;
     }
 }
Example #27
0
        protected override void OnInitialized()
        {
            base.m_FormDefinitionDictionary.Add("RAD1GELEMENTI", new FormDefinition(this, new RAD1GELEMENTIFormUserControl(), StringResources.RAD1GELEMENTIName, StringResources.RAD1GELEMENTIDescription, "NetAdvantage"));
            this.RAD1GELEMENTI.UICommandDefinitionContainer.Add(StandardCommandDefinitions.GetFormCommands(this.RAD1GELEMENTI.Site));
            UICommandDefinition uiCommandDefinition = null;

            uiCommandDefinition = new UICommandDefinition("NewRAD1GELEMENTIVEZA", "Veza elementi RAD1G i elementi", this.RAD1GELEMENTI.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "RAD1GELEMENTIVEZA.Insert"
            };
            this.RAD1GELEMENTI.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewRAD1GELEMENTIVEZA", "Veza elementi RAD1G i elementi", this.RAD1GELEMENTI.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "RAD1GELEMENTIVEZA.Select"
            };
            this.RAD1GELEMENTI.UICommandDefinitionContainer.Add(uiCommandDefinition);
            base.OnInitialized();
        }
Example #28
0
        protected override void OnInitialized()
        {
            base.m_FormDefinitionDictionary.Add("GRUPEOLAKSICA", new FormDefinition(this, new GRUPEOLAKSICAFormUserControl(), StringResources.GRUPEOLAKSICAName, StringResources.GRUPEOLAKSICADescription, "NetAdvantage"));
            this.GRUPEOLAKSICA.UICommandDefinitionContainer.Add(StandardCommandDefinitions.GetFormCommands(this.GRUPEOLAKSICA.Site));
            UICommandDefinition uiCommandDefinition = null;

            uiCommandDefinition = new UICommandDefinition("NewOLAKSICE", "Osiguranja-Olakšice", this.GRUPEOLAKSICA.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "OLAKSICE.Insert"
            };
            this.GRUPEOLAKSICA.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewOLAKSICE", "Osiguranja-Olakšice", this.GRUPEOLAKSICA.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "OLAKSICE.Select"
            };
            this.GRUPEOLAKSICA.UICommandDefinitionContainer.Add(uiCommandDefinition);
            base.OnInitialized();
        }
Example #29
0
        protected override void OnInitialized()
        {
            base.m_FormDefinitionDictionary.Add("AMSKUPINE", new FormDefinition(this, new AMSKUPINEFormUserControl(), StringResources.AMSKUPINEName, StringResources.AMSKUPINEDescription, "NetAdvantage"));
            this.AMSKUPINE.UICommandDefinitionContainer.Add(StandardCommandDefinitions.GetFormCommands(this.AMSKUPINE.Site));
            UICommandDefinition uiCommandDefinition = null;

            uiCommandDefinition = new UICommandDefinition("NewOS", "OS", this.AMSKUPINE.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "OS.Insert"
            };
            this.AMSKUPINE.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewOS", "OS", this.AMSKUPINE.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "OS.Select"
            };
            this.AMSKUPINE.UICommandDefinitionContainer.Add(uiCommandDefinition);
            base.OnInitialized();
        }
Example #30
0
        protected override void OnInitialized()
        {
            base.m_FormDefinitionDictionary.Add("OSNOVAOSIGURANJA", new FormDefinition(this, new OSNOVAOSIGURANJAFormUserControl(), StringResources.OSNOVAOSIGURANJAName, StringResources.OSNOVAOSIGURANJADescription, "NetAdvantage"));
            this.OSNOVAOSIGURANJA.UICommandDefinitionContainer.Add(StandardCommandDefinitions.GetFormCommands(this.OSNOVAOSIGURANJA.Site));
            UICommandDefinition uiCommandDefinition = null;

            uiCommandDefinition = new UICommandDefinition("NewELEMENT", "Elementi", this.OSNOVAOSIGURANJA.Site + ".New", 3, null, DeklaritMode.Update)
            {
                PermissionName = "ELEMENT.Insert"
            };
            this.OSNOVAOSIGURANJA.UICommandDefinitionContainer.Add(uiCommandDefinition);
            uiCommandDefinition = new UICommandDefinition("ViewELEMENT", "Elementi", this.OSNOVAOSIGURANJA.Site + ".View", 3, null, DeklaritMode.Update)
            {
                PermissionName = "ELEMENT.Select"
            };
            this.OSNOVAOSIGURANJA.UICommandDefinitionContainer.Add(uiCommandDefinition);
            base.OnInitialized();
        }