Esempio n. 1
0
        public void Update(object sender, EventArgs e)
        {
            if (ugdShema.ActiveRow != null)
            {
                BusinessLogic.Obracuni.pIDShema = (int)ugdShema.ActiveRow.Cells["ID"].Value;

                using (uscShema uscShema = new uscShema(Enums.FormEditMode.Update, BusinessLogic.Obracuni.pIDShema))
                {
                    uscShema.ShowDialogForm("Shema učeničko fakturiranje");
                    LoadGridShema();
                }
            }
        }
Esempio n. 2
0
        public void Insert(object sender, EventArgs e)
        {
            //if (ugdShema.ActiveRow != null)
            //{
            //    MessageBox.Show("Nije moguče napravit više od jedne sheme\nknjiženja za učeničko fakturiranje.");
            //}
            //else
            //{

            //}

            using (uscShema uscShema = new uscShema(Enums.FormEditMode.Insert, -1))
            {
                uscShema.ShowDialogForm("Shema učeničko fakturiranje");
                LoadGridShema();
            }
        }