|
|
@@ -299,7 +299,7 @@ public class AutoErpService extends Service {
|
|
|
MyApplication.getInstance().getBdLocationHelper().requestLocation();
|
|
|
}
|
|
|
if (missionIter == 0 || missionIter == MISSION_ITER) {
|
|
|
- CommonUtil.saveAutoLogtoLocal(getString(R.string.app_monitor_log), getString(R.string.oaoutplan_title));
|
|
|
+ CommonUtil.saveAutoLogtoLocal(getString(R.string.app_monitor_log), getString(R.string.app_outplan_running));
|
|
|
missionIter = 0;
|
|
|
List<MissionModel> plans = MissionDao.getInstance().queryByEnCode();
|
|
|
if (ListUtils.isEmpty(plans)) {
|
|
|
@@ -379,6 +379,9 @@ public class AutoErpService extends Service {
|
|
|
|
|
|
/*初始化外勤 */
|
|
|
private void initMission() {
|
|
|
+ if (!MyApplication.getInstance().isNetworkActive()){
|
|
|
+ CommonUtil.saveAutoLogtoLocal(getString(R.string.app_trytoget_outplan),getString(R.string.common_notlinknet));
|
|
|
+ }
|
|
|
CommonInterface.getInstance().getOutSetInfo(new CommonInterface.OnResultListener() {
|
|
|
@Override
|
|
|
public void result(boolean isOk, int result, String message) {
|
|
|
@@ -401,6 +404,9 @@ public class AutoErpService extends Service {
|
|
|
}
|
|
|
|
|
|
private void initWork() {
|
|
|
+ if (!MyApplication.getInstance().isNetworkActive()){
|
|
|
+ CommonUtil.saveAutoLogtoLocal(getString(R.string.auto_sign_failed),getString(R.string.common_notlinknet));
|
|
|
+ }
|
|
|
// //判断是否是自动打卡
|
|
|
// //是否自动打卡
|
|
|
// boolean isAlarm = CommonUtil.getSharedPreferencesBoolean(MyApplication.getInstance(), AppConfig.ALARMA_CLICK, false);
|