Beispiel #1
0
        public void Virmani(object sender, EventArgs e)
        {
            if (this.ugdNagradeNatjecanja.ActiveRow != null)
            {
                this.Tag = Convert.ToInt32(ugdNagradeNatjecanja.ActiveRow.Cells["ID"].Value);
                this.Controls["ugdNagradeNatjecanja"].Text = ugdNagradeNatjecanja.ActiveRow.Cells["Naziv"].Value.ToString();

                VirmaniWorkItemUser.OsobeIzObracuna.obracunRaznoVrsta = Enums.Vrstaobracuna.StudentServisOporezivo;

                VirmaniWorkItemUser item = this.Controller.WorkItem.Items.Get <VirmaniWorkItemUser>("Obračuni razno");
InitializeAgain:
                if (item != null)
                {
                    item.Terminate();
                    item.Dispose();
                    item = null;
                    goto InitializeAgain;
                }
                else
                {
                    item = this.Controller.WorkItem.Items.AddNew <VirmaniWorkItemUser>("Obračuni razno");
                }

                item.Show(item.Workspaces["main"]);
            }
        }
Beispiel #2
0
        public void Virmani(object sender, EventArgs e)
        {
            if (this.ugdRegistarNabave.ActiveRow != null)
            {
                this.Tag = VratiOznacenePutneNaloge();

                if (this.Tag.ToString() != "False")
                {
                    this.Controls["ugdRegistarNabave"].Text = "Putni nalog";
                    VirmaniWorkItemUser item = this.Controller.WorkItem.Items.Get <VirmaniWorkItemUser>("Putni nalog");
InitializeAgain:
                    if (item != null)
                    {
                        item.Terminate();
                        item.Dispose();
                        item = null;
                        goto InitializeAgain;
                    }
                    else
                    {
                        item = this.Controller.WorkItem.Items.AddNew <VirmaniWorkItemUser>("Putni nalog");
                    }

                    item.Show(item.Workspaces["main"]);
                }
            }
        }