/// <summary>
        ///  模块发表评语
        /// </summary>
        /// <param name="viewGridForm"></param>
        public ucBfModuleComment(MB.WinBase.IFace.IViewGridForm viewGridForm)
        {
            InitializeComponent();


            cobCommentType.Items.Add(MB.WinClientDefault.Properties.Resources.BfModlueComment_COMMENT_TYPE1);
            cobCommentType.Items.Add(MB.WinClientDefault.Properties.Resources.BfModlueComment_COMMENT_TYPE2);
            cobCommentType.Items.Add(MB.WinClientDefault.Properties.Resources.BfModlueComment_COMMENT_TYPE3);
            cobCommentType.Items.Add(MB.WinClientDefault.Properties.Resources.BfModlueComment_COMMENT_TYPE4);
            cobCommentType.Items.Add(MB.WinClientDefault.Properties.Resources.BfModlueComment_COMMENT_TYPE5);
            cobCommentType.SelectedIndex = 0;

            _ViewGridForm = viewGridForm;

            _LstComments   = new List <MB.Util.Model.BfModuleCommentInfo>();
            _CommentHelper = new MB.WinClientDefault.Common.BfModuleCommentHelper();
            _CommentClient = _CommentHelper.CreateCommentClient();

            this.Load        += new EventHandler(ucBfModuleComment_Load);
            tButClear.Enabled = string.Compare(ADMINISTRATOR_USER, MB.WinBase.AppEnvironmentSetting.Instance.CurrentLoginUserInfo.USER_ID, true) == 0;;
        }
        /// <summary>
        /// 客户端模块评语实现客户端。
        /// </summary>
        /// <returns></returns>
        public MB.WinBase.IFace.IBfModuleCommentClient CreateCommentClient()
        {
            string cfgSetting = System.Configuration.ConfigurationManager.AppSettings[APP_CONFIG_KEY_NAME];

            if (string.IsNullOrEmpty(cfgSetting))
            {
                return(null);
            }
            string[] cfgs     = cfgSetting.Split(',');
            object   instance = MB.Util.DllFactory.Instance.LoadObject(cfgs[0], cfgs[1]);

            if (instance == null)
            {
                throw new MB.Util.APPException(string.Format("创建{0} , {1} 有误,请检查", cfgs[0], cfgs[1]));
            }

            MB.WinBase.IFace.IBfModuleCommentClient commentClient = instance as MB.WinBase.IFace.IBfModuleCommentClient;
            if (commentClient == null)
            {
                throw new MB.Util.APPException("客户端模块评语实现客户端需要实现 MB.WinBase.IFace.IBfModuleCommentClient 接口");
            }

            return(commentClient);
        }