예제 #1
0
 public string AgentList()
 {
     try
     {
         AgentBAL oAgentBAL = new AgentBAL();
         DataTable dt = new DataTable();
         dt = oAgentBAL.SelectAgent();
         JSONClass objJSONClass = new JSONClass();
         return objJSONClass.CreateJSONParameters(dt);
     }
     catch
     {
         throw;
     }
 }
예제 #2
0
 public string PropertyList(string buyorrent, string type, string address)
 {
     try
     {
         PropertyBAL oPropertyBAL = new PropertyBAL();
         PropertyBO oPropertyBO = new PropertyBO();
         oPropertyBO.address = address;
         oPropertyBO.type = type;
         oPropertyBO.buyorrent = buyorrent;
         DataTable dt = new DataTable();
         dt = oPropertyBAL.FindProperty(oPropertyBO);
         JSONClass objJSONClass = new JSONClass();
         return objJSONClass.CreateJSONParameters(dt);
     }
     catch
     {
         throw;
     }
 }
예제 #3
0
 public string PropertyListI(string buyorrent, string type, string address, string neighborhood, string startArea, string startRate, string endArea, string endRate)
 {
     try
     {
         PropertyBAL oPropertyBAL = new PropertyBAL();
         PropertyBO oPropertyBO = new PropertyBO();
         PropertyBO oIPropertyBO = new PropertyBO();
         oPropertyBO.address = address;
         oPropertyBO.type = type;
         oPropertyBO.buyorrent = buyorrent;
         oPropertyBO.neighborhood = neighborhood;
         oPropertyBO.size = long.Parse(startArea);
         oPropertyBO.rate = long.Parse(startRate);
         oIPropertyBO.size = long.Parse(endArea);
         oIPropertyBO.rate = long.Parse(endRate);
         DataTable dt = new DataTable();
         dt = oPropertyBAL.FindProperty(oPropertyBO, oIPropertyBO);
         JSONClass objJSONClass = new JSONClass();
         return objJSONClass.CreateJSONParameters(dt);
     }
     catch
     {
         throw;
     }
 }