Example #1
0
        public JArray GetWs(string wsId, bool newSession = false)
        {
            var result = AuditManager.Rep.Workspace.GetWs(string.IsNullOrWhiteSpace(wsId) ? null : wsId, newSession);

            if (!string.IsNullOrWhiteSpace(wsId))
            {
                result.ForEach(x =>
                {
                    if (x.WsProfile != null)
                    {
                        x.WsProfile.KPMGOnly = ExtApi.GetKPMGOnly(x.WsProfile.EngNum);
                    }
                });
            }

            var retModel = JArray.FromObject(result);

            return(retModel);
        }
Example #2
0
        public JArray GetEngByWsId(string wsId, WsLoadType wsLoadType, bool newSession = false)
        {
            var result = AuditManager.Rep.Workspace.GetEngByWsId(wsId, wsLoadType, newSession);

            if (result == null)
            {
                return(null);
            }

            result.ForEach(x =>
            {
                if (x.WsProfile != null)
                {
                    x.WsProfile.KPMGOnly = ExtApi.GetKPMGOnly(x.WsProfile.EngNum);
                }
            });

            var retModel = JArray.FromObject(result);

            return(retModel);
        }
Example #3
0
        public JArray GetEngByEngNum(string engNum, WsLoadType wsLoadType, bool isAdmin)
        {
            var result = AuditManager.Rep.Workspace.GetEngByEngNum(engNum, wsLoadType, isAdmin: isAdmin);

            if (result == null)
            {
                return(null);
            }

            result.ForEach(x =>
            {
                if (x.WsProfile != null)
                {
                    x.WsProfile.KPMGOnly = ExtApi.GetKPMGOnly(x.WsProfile.EngNum);
                }
            });

            var retModel = JArray.FromObject(result);

            return(retModel);
        }