Beispiel #1
0
 private void llbDodajShemu_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     using (uscShemaKontiranje ShemaKontiranja = new uscShemaKontiranje(Enums.FormEditMode.Insert))
     {
         ShemaKontiranja.ShowDialogForm("Shema kontiranja");
         LoadShema();
     }
 }
Beispiel #2
0
        private void lblObrisiShemu_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            if (ugdShema.ActiveRow != null)
            {
                uscShemaKontiranje.pID_konto            = ugdShema.ActiveRow.Cells["ID_KONTO"].Value.ToString().Trim();
                uscShemaKontiranje.pID_ira_vrsta_iznosa = Convert.ToInt32(ugdShema.ActiveRow.Cells["ID_IRA_VRSTA_IZNOSA"].Value);
                uscShemaKontiranje.pID_strane_knjizenja = Convert.ToInt32(ugdShema.ActiveRow.Cells["ID_STRANE_KNJIZENJA"].Value);

                using (uscShemaKontiranje ShemaKontiranja = new uscShemaKontiranje(Enums.FormEditMode.Update))
                {
                    ShemaKontiranja.ObrisiShemaKontiranje();
                    LoadShema();
                }
            }
        }
Beispiel #3
0
        private void llbIzmjeniShemu_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            if (ugdShema.ActiveRow != null)
            {
                uscShemaKontiranje.pID_konto            = ugdShema.ActiveRow.Cells["ID_KONTO"].Value.ToString().Trim();
                uscShemaKontiranje.pID_ira_vrsta_iznosa = Convert.ToInt32(ugdShema.ActiveRow.Cells["ID_IRA_VRSTA_IZNOSA"].Value);
                uscShemaKontiranje.pID_strane_knjizenja = Convert.ToInt32(ugdShema.ActiveRow.Cells["ID_STRANE_KNJIZENJA"].Value);

                using (uscShemaKontiranje ShemaKontiranja = new uscShemaKontiranje(Enums.FormEditMode.Update))
                {
                    ShemaKontiranja.pID_mjesto_troska = Convert.ToInt32(ugdShema.ActiveRow.Cells["ID_MJESTO_TROSKA"].Value);
                    ShemaKontiranja.pID_org_jed       = Convert.ToInt32(ugdShema.ActiveRow.Cells["ID_ORG_JED"].Value);
                    ShemaKontiranja.pKonto            = ugdShema.ActiveRow.Cells["Konto"].Value.ToString().Trim();
                    ShemaKontiranja.pStrana_knjizenja = ugdShema.ActiveRow.Cells["StranaKnjizenja"].Value.ToString().Trim();
                    ShemaKontiranja.pVrsta_iznosa     = ugdShema.ActiveRow.Cells["VrstaIznosa"].Value.ToString().Trim();
                    ShemaKontiranja.pSifra_mt         = ugdShema.ActiveRow.Cells["SifraMT"].Value.ToString().Trim();
                    ShemaKontiranja.pSifra_oj         = ugdShema.ActiveRow.Cells["SifraOJ"].Value.ToString().Trim();

                    ShemaKontiranja.ShowDialogForm("Shema kontiranja");
                    LoadShema();
                }
            }
        }