예제 #1
0
        /// <summary>
        /// 获取当前记录的描叙
        /// </summary>
        /// <param name="dtCreateDate"></param>
        /// <param name="strModelCode"></param>
        /// <param name="strModelDesp"></param>
        /// <returns></returns>
        private static string GetModelDescription(DateTime dtCreateDate, string strModelCode, string strModelDesp)
        {
            PermissionServiceClient clientPerm = new PermissionServiceClient();
            T_SYS_ENTITYMENU entMenu = clientPerm.GetSysMenuByEntityCode(strModelCode);

            string strTemp = string.Empty;
            if (entMenu != null)
            {
                strTemp = string.Format(strModelDesp, dtCreateDate.ToString("MM月dd日HH:mm").Trim(), entMenu.MENUNAME.Trim());
            }
            else
            {
                strTemp = string.Format(strModelDesp, dtCreateDate.ToString("MM月dd日HH:mm").Trim(), strModelCode.Trim());
            }

            return strTemp;
        }