Exemplo n.º 1
0
 public decimal Insert_Service(ServiceInfo Obj_info)
 {
     try
     {
         ServiceDA _da = new ServiceDA();
         return(_da.Service_Insert(Obj_info));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(-1);
     }
 }
Exemplo n.º 2
0
        public List <ServiceInfo> Service_GetAll()
        {
            List <ServiceInfo> list = new List <ServiceInfo>();

            try
            {
                ServiceDA _da = new ServiceDA();
                list = CBO <ServiceInfo> .FillCollectionFromDataSet(_da.Service_GetAll());
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
            }
            return(list);
        }
Exemplo n.º 3
0
        public List <ServiceInfo> Service_Search(string p_key_search, ref decimal p_total_record, string p_from = "1", string p_to = "10")
        {
            List <ServiceInfo> list = new List <ServiceInfo>();
            ServiceDA          _da  = new ServiceDA();

            try
            {
                list = CBO <ServiceInfo> .FillCollectionFromDataSet(_da.Service_Search(p_key_search, p_from, p_to, ref p_total_record));
            }
            catch (Exception ex)
            {
                NaviCommon.Common.log.Error(ex.ToString());
                list = new List <ServiceInfo>();
            }
            return(list);
        }