using Kingdee.BOS; using Kingdee.BOS.Orm.DataEntity; using Kingdee.BOS.ServiceHelper; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GZ_LTHPilot_ORDER.Services { public class OrgService { public Context ctx; public OrgService(Context ctx) { this.ctx = ctx; } public DynamicObjectCollection GetOrgList() { var sql = @"/*dialect*/SELECT t0.FORGID, t0l.FNAME, * FROM T_ORG_ORGANIZATIONS t0 LEFT JOIN T_ORG_ORGANIZATIONS_L t0L ON t0.FORGID = t0L.FORGID AND FLOCALEID = 2052 "; return DBServiceHelper.ExecuteDynamicObject(this.ctx, sql); } } }