git-svn-id: http://192.168.1.226/svn/proxy@878 454eff88-639b-444f-9e54-f578c98de674
| | |
| | | import org.xutils.http.RequestParams;
|
| | | import org.xutils.x;
|
| | |
|
| | | import java.text.SimpleDateFormat;
|
| | | import java.util.List;
|
| | |
|
| | | import cn.com.basic.face.base.BaseApplication;
|
| | |
| | | try{
|
| | | String tableName = "company";
|
| | | RequestParams params = new RequestParams(AppApi.BASE_URL + AppApi.TWO_WAY_SYNCHRON);
|
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
| | | final String temp=tableName;
|
| | | params.addBodyParameter("tableName", tableName);
|
| | | params.addBodyParameter("synDate", SynchronRecordDao.getInstance().getSynRecord(tableName).getSynchronTime());
|
| | | params.addBodyParameter("data", JSONArray.toJSONString(CompanyDao.getInstance().getCompanyList(BaseApplication.getInstance().getAndroidDevice().getCompanyId())));
|
| | |
| | | import org.xutils.http.RequestParams;
|
| | | import org.xutils.x;
|
| | |
|
| | | import java.text.SimpleDateFormat;
|
| | | import java.util.List;
|
| | |
|
| | | import cn.com.basic.face.base.BaseApplication;
|
| | |
| | | try{
|
| | | String tableName = "device";
|
| | | RequestParams params = new RequestParams(AppApi.BASE_URL + AppApi.TWO_WAY_SYNCHRON);
|
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
| | | final String temp=tableName;
|
| | | params.addBodyParameter("tableName", tableName);
|
| | | params.addBodyParameter("synDate", SynchronRecordDao.getInstance().getSynRecord(tableName).getSynchronTime());
|
| | | params.addBodyParameter("data", JSONArray.toJSONString(DeviceDao.getInstance().getDeviceList(BaseApplication.getInstance().getAndroidDevice().getCompanyId())));
|
| | |
| | | import org.xutils.http.RequestParams;
|
| | | import org.xutils.x;
|
| | |
|
| | | import java.text.SimpleDateFormat;
|
| | | import java.util.List;
|
| | |
|
| | | import cn.com.basic.face.base.BaseApplication;
|
| | |
| | | */
|
| | | public void doSync() {
|
| | | try{
|
| | | String tableName = "dictionary";
|
| | | String tableName = "dictionary";
|
| | | RequestParams params = new RequestParams(AppApi.BASE_URL + AppApi.TWO_WAY_SYNCHRON);
|
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
| | | final String temp=tableName;
|
| | | params.addBodyParameter("tableName", tableName);
|
| | | params.addBodyParameter("synDate", SynchronRecordDao.getInstance().getSynRecord(tableName).getSynchronTime());
|
| | | params.addBodyParameter("data", JSONArray.toJSONString(DictionaryDao.getInstance().getDictionayList(BaseApplication.getInstance().getAndroidDevice().getCompanyId())));
|