protected void btnPatchSavelSystemDictionary_Click(object sender, DirectEventArgs e)
        {
            try
            {
                SystemDictionaryWrapper.PatchAdd(DictionaryGroup.Code, this.chkHasValue.Checked,
                                                 this.txtSystemDictionaryItems.Text.Trim());

                SysDictionaryWrapper.RefreshCache();

                winSystemDictionaryPatchAdd.Hide();

                //SystemDictionaryWrapper obj = new SystemDictionaryWrapper();

                //obj.SystemDictionaryCategoryID = this.cmbGroup.Text.Trim();
                //obj.SystemDictionaryKey = this.txtSystemDictionaryKey.Text.Trim();
                //obj.SystemDictionaryValue = this.txtSystemDictionaryValue.Text.Trim();
                //obj.SystemDictionaryDesciption = this.txtSystemDictionaryDesciption.Text.Trim();
                //obj.SystemDictionaryOrder = Convert.ToInt32(this.txtSystemDictionaryOrder.Text.Trim());
                //obj.SystemDictionaryIsEnable = this.chkSystemDictionaryIsEnable.Checked;
                //obj.SystemDictionaryIsSystem = this.chkSystemDictionaryIsSystem.Checked;

                //SystemDictionaryWrapper.Save(obj);

                //SysDictionaryWrapper.RefreshCache();

                //winSystemDictionaryAdd.Hide();
            }
            catch (Exception ex)
            {
                ResourceManager.AjaxSuccess      = false;
                ResourceManager.AjaxErrorMessage = "Error Message:" + ex.Message;
            }
        }
        public void DeleteRecord(int id)
        {
            try
            {
                SystemDictionaryWrapper.DeleteByID(id);

                SysDictionaryWrapper.RefreshCache();

                ResourceManager.AjaxSuccess = true;
            }
            catch (Exception ex)
            {
                ResourceManager.AjaxSuccess      = false;
                ResourceManager.AjaxErrorMessage = string.Format(ex.Message);
                return;
            }
        }