public HttpResponseBase SaveGCC()
 {
     string json = string.Empty;
     GroupCommitteContact query = new GroupCommitteContact();
     _gccMgr = new GroupCommitteContactMgr(mySqlConnectionString);
     try
     {
         if (!string.IsNullOrEmpty(Request.Params["group_id"]))
         {
             query.group_id = Convert.ToInt32(Request.Params["group_id"]);
         }
         if (!string.IsNullOrEmpty(Request.Params["group_committe_chairman"]))
         {
             query.gcc_chairman = Request.Params["group_committe_chairman"];
         }
         if (!string.IsNullOrEmpty(Request.Params["group_committe_phone"]))
         {
             query.gcc_phone = Request.Params["group_committe_phone"];
         }
         if (!string.IsNullOrEmpty(Request.Params["group_committe_mail"]))
         {
             query.gcc_mail = Request.Params["group_committe_mail"];
         }
         query.k_user = (Session["caller"] as Caller).user_id;
         query.k_date = DateTime.Now;
         query.m_user = (Session["caller"] as Caller).user_id;
         query.m_date = DateTime.Now;
         int i = _gccMgr.SaveGCC(query);
         if (i > 0)
         {
             json = "{success:true}";
         }
         else
         {
             json = "{success:false}";
         }
     }
     catch (Exception ex)
     {
         Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage();
         logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message);
         logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
         log.Error(logMessage);
         json = "{success:false,msg:'0'}";
     }
     this.Response.Clear();
     this.Response.Write(json);
     this.Response.End();
     return this.Response;
 }
 public HttpResponseBase DeleteGCC()
 {
     string json = string.Empty;
     GroupCommitteContact query = new GroupCommitteContact();
     _gccMgr = new GroupCommitteContactMgr(mySqlConnectionString);
     try
     {
         if (!string.IsNullOrEmpty(Request.Params["gcc_id"]))
         {
             query.gcc_id = Convert.ToInt32(Request.Params["gcc_id"]);
         }
         int i = _gccMgr.DeleteGCC(query);
         if (i > 0)
         {
             json = "{success:true}";
         }
         else
         {
             json = "{success:false}";
         }
     }
     catch (Exception ex)
     {
         Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage();
         logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message);
         logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
         log.Error(logMessage);
         json = "{success:false,msg:'0'}";
     }
     this.Response.Clear();
     this.Response.Write(json);
     this.Response.End();
     return this.Response;
 }
 public HttpResponseBase GetGroupCommitteContact()
 {
     List<GroupCommitteContact> store = new List<GroupCommitteContact>();
     string json = string.Empty;
     GroupCommitteContact query = new GroupCommitteContact();
     _gccMgr = new GroupCommitteContactMgr(mySqlConnectionString);
     try
     {
         if (!string.IsNullOrEmpty(Request.Params["group_id"]))
         {
             query.group_id = Convert.ToInt32(Request.Params["group_id"]);
             store = _gccMgr.GetGroupCommitteContact(query);
             json = "{success:true,data:" + JsonConvert.SerializeObject(store) + "}";
         }
     }
     catch (Exception ex)
     {
         Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage();
         logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message);
         logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
         log.Error(logMessage);
         json = "{success:false}";
     }
     this.Response.Clear();
     this.Response.Write(json);
     this.Response.End();
     return this.Response;
 }