//#import Util.js
//#import session.js
//#import $@projectCode:services/modelService.jsx
//#import @handlers/include/checklogin.jsx

;(function(){

  var env = checklogin();
  if(!env){
    return;
  }
  var shopId = env.shopId;
  var warehouseId = env.warehouseId;
  var m = shopId;

  var params = JSON.parse($body);
  var id = params.id;
  var taskInfoId = @projectCodeService.addDocExportTask(id,env);

  var ret = {
    state:'ok',
    taskInfoId : taskInfoId
  }

  out.print(JSON.stringify(ret));
})();

