37 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
using APT.BaseData.Domain.Entities;
 | 
						|
using APT.BaseData.Domain.IServices;
 | 
						|
using APT.Infrastructure.Core;
 | 
						|
using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Linq;
 | 
						|
using System.Linq.Expressions;
 | 
						|
using APT.Infrastructure.Api;
 | 
						|
namespace APT.BaseData.Services.DomainServices
 | 
						|
{
 | 
						|
	public partial class PFLabelService : CommonService, IPFLabelService
 | 
						|
    {
 | 
						|
        public PFLabelService(IRepository repository)
 | 
						|
            : base(repository)
 | 
						|
        {
 | 
						|
        }
 | 
						|
 | 
						|
        //public T_PF_LABEL GetLabel(Guid? orgId, string tableName, string languge, string field)
 | 
						|
        //{
 | 
						|
        //    return this.Repository.GetQueryable(false).Where(i => i.ORG_ID==orgId && i.TABEL_NAME==tableName && i.LANGUAGE==languge&& i.FIELD_NAME==field).FirstOrDefault();
 | 
						|
        //}
 | 
						|
 | 
						|
        //public List<T_PF_LABEL> List(Guid? orgId, string language)
 | 
						|
        //{
 | 
						|
        //    Expression<Func<T_PF_LABEL, bool>> expression = i => i.IS_DELETED == false;
 | 
						|
        //    expression = expression.And(i => i.ORG_ID == orgId);
 | 
						|
        //    if (!string.IsNullOrEmpty(language))
 | 
						|
        //    {
 | 
						|
        //        expression = expression.And(i => i.LANGUAGE.Equals(language));
 | 
						|
        //    }
 | 
						|
        //    var queryable = this.Repository.GetIncludes(false).Where(expression).OrderBy(i => i.MODIFY_TIME).ToList();
 | 
						|
        //    return queryable;
 | 
						|
        //}
 | 
						|
 | 
						|
    }
 | 
						|
}
 |