コード例 #1
0
        public static bool GetIsEmployee(Ctx ctx, int AD_USER_ID)
        {
            MUser     user = MUser.Get(ctx, AD_USER_ID);
            MBPartner bp   = MBPartner.Get(ctx, user.GetC_BPartner_ID());

            user = null;
            if (bp == null)
            {
                return(false);
            }
            return(bp.IsEmployee());
        }