/// <summary>
        /// Thêm
        /// </summary>
        private void OnAddNew()
        {
            Window window = new Window();
            ucDmChucVuCongTacVienCT userControl = new ucDmChucVuCongTacVienCT();

            userControl.Action             = DatabaseConstant.Action.THEM;
            userControl.OnSavingCompleted += new EventHandler(userControl_OnSavingCompleted);

            window.Title = DatabaseConstant.layNgonNguTieuDeForm(DatabaseConstant.Function.NS_DM_CHUC_VU_CTV_CT);
            window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            window.Content = userControl;
            window.ShowDialog();
        }
        /// <summary>
        /// Xem
        /// </summary>
        /// <param name="id"></param>
        private void OnView(int id)
        {
            try
            {
                ucDmChucVuCongTacVienCT userControl = new ucDmChucVuCongTacVienCT();

                userControl.OnSavingCompleted += new EventHandler(userControl_OnSavingCompleted);
                userControl.Action             = DatabaseConstant.Action.XEM;
                userControl.ID = id;

                Window window = new Window();
                window.Title = DatabaseConstant.layNgonNguTieuDeForm(DatabaseConstant.Function.NS_DM_CHUC_VU_CTV_CT);
                window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                window.Content = userControl;
                window.ShowDialog();
            }
            catch (Exception ex)
            {
                LLogging.WriteLog(System.Reflection.MethodInfo.GetCurrentMethod().ToString(), LLogging.LogType.ERR, ex);
            }
        }
        /// <summary>
        /// Sửa
        /// </summary>
        /// <param name="id"></param>
        private void OnModify(int id)
        {
            try
            {
                ucDmChucVuCongTacVienCT userControl = new ucDmChucVuCongTacVienCT();

                // Yêu cầu lock bản ghi cần sửa
                UtilitiesProcess process    = new UtilitiesProcess();
                List <int>       listLockId = new List <int>();
                listLockId.Add(id);

                bool ret = process.LockData(DatabaseConstant.Module.NSTL,
                                            DatabaseConstant.Function.NS_DM_CHUC_VU_CTV_CT,
                                            DatabaseConstant.Table.NS_DM_CHUC_VU_CTV,
                                            DatabaseConstant.Action.SUA,
                                            listLockId);
                if (ret)
                {
                    userControl.OnSavingCompleted += new EventHandler(userControl_OnSavingCompleted);
                    userControl.Action             = DatabaseConstant.Action.SUA;
                    userControl.ID = id;

                    Window window = new Window();
                    window.Title = DatabaseConstant.layNgonNguTieuDeForm(DatabaseConstant.Function.NS_DM_CHUC_VU_CTV_CT);
                    window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                    window.Content = userControl;
                    window.ShowDialog();
                }
                else
                {
                    LMessage.ShowMessage("M.ResponseMessage.Common.LockDataInvalid", LMessage.MessageBoxType.Information);
                }
            }
            catch (Exception ex)
            {
                LLogging.WriteLog(System.Reflection.MethodInfo.GetCurrentMethod().ToString(), LLogging.LogType.ERR, ex);
            }
        }