/// <summary>
 /// 保存事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Save_Click(object sender, EventArgs e)
 {
     try
     {
         Hashtable ht = new Hashtable();
         ht["Name"]     = Name.Value;
         ht["Address"]  = Address.Value;
         ht["Tel"]      = Tel.Value;
         ht["Contacts"] = Contacts.Value;
         ht["Category"] = Category.Value;
         if (!string.IsNullOrEmpty(_key))
         {
             ht["ID"] = _key;
         }
         else
         {
             ht["ID"]         = CommonHelper.GetGuid;
             ht["Createtime"] = DateTime.Now;
             //ht["Balance"] = "0";
         }
         bool returnValue = customerManager.AddOrEditCustomer(ht, _key);
         if (returnValue)
         {
             ShowMsgHelper.AlertMsgNoFresh("操作成功!");
         }
         else
         {
             ShowMsgHelper.Alert_Error("操作失败!");
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }