Exemplo n.º 1
0
 public ActionResult Update(Company company)
 {
     //根据地址码获取地址
     company.Addr = PojoUtil.GetAddrForCode(HibernateOper, company.AddrCode);
     LocationUtil.Location loc = LocationUtil.GetLocation(company.Addr + company.Location);
     if (loc != null)
     {
         company.Lat = loc.lat;
         company.Lng = loc.lng;
     }
     return Json(companyOper.Update(company));
 }
Exemplo n.º 2
0
 public ActionResult Del(Company company)
 {
     return Json(companyOper.Del(company));
 }