예제 #1
0
        public Model.Data.ObrazacIP2011A InsertResult(Model.Data.Item.ObrazacIP2011AItem item)
        {
            Model.Data.ObrazacIP2011A rezultat;

            try
            {
                rezultat = _repository.InsertResult(item).FirstOrDefault();
            }

            catch (Exception ex)
            {
                Model.Admin.StatusPoruka poruka = _admin.AddLogGetException((ex.InnerException != null ? ex.InnerException.ToString() : ex.Message.ToString()), ex.StackTrace.ToString(), _korisnik_data);
                InLine.Repository.Data.Helper.CommonFunctions.StaviPorukuUSession(poruka, _korisnik_data);
                rezultat = null;
            }

            return(rezultat);
        }
예제 #2
0
        public IList <Model.Admin.StatusPoruka> Insert(Model.Data.Item.ObrazacIP2011AItem item)
        {
            IList <Model.Admin.StatusPoruka> poruke = new List <Model.Admin.StatusPoruka>();

            try
            {
                _repository.Insert(item);
            }

            catch (Exception ex)
            {
                Model.Admin.StatusPoruka poruka = _admin.AddLogGetException((ex.InnerException != null ? ex.InnerException.ToString() : ex.Message.ToString()), ex.StackTrace.ToString(), _korisnik_data);
                InLine.Repository.Data.Helper.CommonFunctions.StaviPorukuUSession(poruka, _korisnik_data);
                poruke.Add(poruka);
            }

            return(poruke);
        }
예제 #3
0
        public int DeleteResult(Model.Data.Item.ObrazacIP2011AItem item)
        {
            int rezultat = 0;

            try
            {
                //rezultat = Convert.ToInt32(_repository.DeleteResult(item));
                ObjectResult <Nullable <Int32> > totalRecordsCount_rezult = _repository.DeleteResult(item);
                rezultat = Convert.ToInt32(totalRecordsCount_rezult.ElementAt(0));
            }

            catch (Exception ex)
            {
                Model.Admin.StatusPoruka poruka = _admin.AddLogGetException((ex.InnerException != null ? ex.InnerException.ToString() : ex.Message.ToString()), ex.StackTrace.ToString(), _korisnik_data);
                InLine.Repository.Data.Helper.CommonFunctions.StaviPorukuUSession(poruka, _korisnik_data);
            }

            return(rezultat);
        }
예제 #4
0
 public ObjectResult <Model.Data.ObrazacIP2011A> UpdateResult(Model.Data.Item.ObrazacIP2011AItem item)
 {
     return(_context.USP_ObrazacIP2011A_UPDATE(item.ID_ObrazacIP2011A, item.ID_ObrazacIP, item.IDObrazacIPIdentifikator2005A, item.BrojOsiguranika, item.ObveznikNaziv, item.ObveznikAdresa, item.ObveznikIdentifikacijskiBroj, item.ObveznikVrsta, item.IznosObracunDohodak, item.IznosDoprinosOsnova, item.IznosDoprinosMIO1, item.IznosDoprinosMIO2, item.IznosIsplataDohodak, item.GodinaIsplataDohodak, item.MjesecIsplataDohodak, item.Hash));
 }
예제 #5
0
 public void Insert(Model.Data.Item.ObrazacIP2011AItem item)
 {
     _context.USP_ObrazacIP2011A_INSERT(item.ID_ObrazacIP, item.IDObrazacIPIdentifikator2005A, item.BrojOsiguranika, item.ObveznikNaziv, item.ObveznikAdresa, item.ObveznikIdentifikacijskiBroj, item.ObveznikVrsta, item.IznosObracunDohodak, item.IznosDoprinosOsnova, item.IznosDoprinosMIO1, item.IznosDoprinosMIO2, item.IznosIsplataDohodak, item.GodinaIsplataDohodak, item.MjesecIsplataDohodak, item.Hash);
 }
예제 #6
0
 public ObjectResult <int?> DeleteResult(Model.Data.Item.ObrazacIP2011AItem item)
 {
     return(_context.USP_ObrazacIP2011A_DELETE(item.ID_ObrazacIP2011A));
 }
예제 #7
0
 public void Delete(Model.Data.Item.ObrazacIP2011AItem item)
 {
     _context.USP_ObrazacIP2011A_DELETE(item.ID_ObrazacIP2011A);
 }
 public ObjectResult <Model.Data.ObrazacIP2011A> UpdateResult(Model.Data.Item.ObrazacIP2011AItem item)
 {
     return(base.UpdateResult(item));
 }
 public void Update(Model.Data.Item.ObrazacIP2011AItem item)
 {
     base.Update(item);
 }
 public void Insert(Model.Data.Item.ObrazacIP2011AItem item)
 {
     base.Insert(item);
 }
 public ObjectResult <int?> DeleteResult(Model.Data.Item.ObrazacIP2011AItem item)
 {
     return(base.DeleteResult(item));
 }
 public void Delete(Model.Data.Item.ObrazacIP2011AItem item)
 {
     base.Delete(item);
 }