private void GetAgencyControl()
 {
     if (a_agencyControl == null)
     {
         a_agencyControl = new AgencyControl();
     }
 }
 private void GetAgenciesByFilter(string paraStr)
 {
     List<TravelAgency> _agencies = null;
     string _searchFlag = null;
     string _paraFlag = null;
     string _para = null;
     try
     {
         AgencyControl _agencyControl = new AgencyControl();
         if (string.IsNullOrEmpty(paraStr))
         {
             _agencies = _agencyControl.GetAllAgencies();
         }
         else
         {
             _searchFlag = paraStr.Substring(0, 4);
             _paraFlag = paraStr.Substring(0, 5);
             _para = paraStr.Substring(5);
             _agencies = _agencyControl.GetAgenciesByFilter(_searchFlag, _para);
         }
         a_result = JsonConvert.SerializeObject(new { Agencies = _agencies, Flag = _paraFlag });
     }
     catch (Exception ex)
     {
         Logs.Error("GetAgenciesByFilter Exception:" + ex.ToString());
     }
 }