Exemplo n.º 1
0
        public static List <BO_ServicesProvide> GetServiceNameList()
        {
            List <BO_ServicesProvide> lst_serviceName = new List <BO_ServicesProvide>();

            using (AprosysAccountingEntities db_aa = new AprosysAccountingEntities())
            {
                BO_ServicesProvide obj;
                var lst = db_aa.GetServiceName().ToList();
                foreach (var item in lst.ToList())
                {
                    obj             = new BO_ServicesProvide();
                    obj.id          = item.CoaId;
                    obj.name        = item.TreeName;
                    obj.cost        = item.Cost ?? 0;
                    obj.serviceCode = item.ServiceCode ?? "";
                    lst_serviceName.Add(obj);
                }
            }
            return(lst_serviceName);
        }