/**
 * 根据V5的业务需求,提供了选择关联文档组件,如:<br>
 *  <strong>
 *          页面需要导入的文件
 *          <ul>
 *              <li>cmp-listView.js</li>
 *              <li>cmp-imgCache.js</li>
 *              <li>cmp-picker.js</li>
 *              <li>cmp-dtPicker.js</li>
 *              <li>cmp-search.js</li>
 *              <li>cmp-accDoc.js</li>
 *              <li>cmp-v5.js</li>
 *              <li>cmp-listView.css</li>
 *              <li>cmp-picker.css</li>
 *              <li>cmp-search.css</li>
 *              <li>cmp-accDoc.css</li>
 *              <li>如果需要对组件中的协同类文件进行穿透需要导入v5应用的公用js
 *              <ul>
 *                  <li>jssdk    jssdk  平台js</li>
 *                  <li>${data:dependencies.common_v5_path}/widget/SeeyonAttachment.s3js  v5应用公用js</li>
 *              </ul></li>
 *          </ul>
 *      </strong>
 * @module AccDoc
 * @subtitle 关联文档组件模块
 */

/**
 * 选择关联文档组件
 * <br>根据V5业务需要,进行V5关联文档选择的界面:
 * @namespace cmp
 * @class accDoc
 * @constructor
 * @param {String} id 实例化组件的唯一ID标识,可选
 * @param {Object} options 配置参数
 *      @param {Number} [options.fillbackData] 符合V5数据格式的协同或文档数据,JSON对象格式
 *      @param {Number} [options.callback] 选中的数据点击确定返回给开发者的数据
 *      @param {Function} [options.closeCallback] 点击取消的回调函数
 * @example
 * ```
 * 文件导入路径:
 * M3App端
 *  <link rel="stylesheet" href="http://cmp/v/css/cmp.css"></link>
 *  <link rel="stylesheet" href="http://cmp/v/css/cmp-listView.css"></link>
 *  <link rel="stylesheet" href="http://cmp/v/css/cmp-picker.css"></link>
 *  <link rel="stylesheet" href="http://cmp/v/css/cmp-search.css"></link>
 *  <link rel="stylesheet" href="http://cmp/v/css/cmp-accDoc.css"></link>
 *  <script  src="http://cmp/v1.0.0/js/cordova/__CMPSHELL_PLATFORM__/cordova.js"></script>
 *  <script  src="http://cmp/v1.0.0/js/cordova/cordova-plugins.js"></script>
 *  <script  src="http://cmp/v/js/cmp.js"></script>
 *  <script  src="http://cmp/v/js/cmp-listView.js"></script>
 *  <script  src="http://cmp/v/js/cmp-imgCache.js"></script>
 *  <script  src="http://cmp/v/js/cmp-picker.js"></script>
 *  <script  src="http://cmp/v/js/cmp-dtPicker.js"></script>
 *  <script  src="http://cmp/v/js/cmp-search.js"></script>
 *  <script  src="http://cmp/v/js/cmp-accDoc.js"></script>
 *  <script  src="http://cmp/v/js/cmp-v5.js"></script>
 *  <script src="http://commons.v5.cmp/v/widget/SeeyonAttachment.s3js"></script>
 *  ===========================================================================================
 *  微协同端:
 *  <link rel="stylesheet" href="/seeyon/m3/cmp/css/cmp.css"/>
 *  <link rel="stylesheet" href="/seeyon/m3/cmp/css/cmp-listView.css"/>
 *  <link rel="stylesheet" href="/seeyon/m3/cmp/css/cmp-accDoc.css"/>
 *  <link rel="stylesheet" href="/seeyon/m3/cmp/css/cmp-search.css"></link>
 *  <link rel="stylesheet" href="/seeyon/m3/cmp/css/cmp-accDoc.css"></link>
 *  <script  src="/seeyon/m3/cmp/js/cmp.js"></script>
 *  <script  src="/seeyon/m3/cmp/js/cmp-listView.js"></script>
 *  <script  src="/seeyon/m3/cmp/js/cmp-imgCache.js"></script>
 *  <script  src="/seeyon/m3/cmp/js/cmp-picker.js"></script>
 *  <script  src="/seeyon/m3/cmp/js/cmp-dtPicker.js"></script>
 *  <script  src="/seeyon/m3/cmp/js/cmp-search.js"></script>
 *  <script  src="/seeyon/m3/cmp/js/cmp-accDoc.js"></script>
 *  <script  src="/seeyon/m3/cmp/js/cmp-v5.js"></script>
 *  <script src="/seeyon/m3/apps/v5/commons/widget/SeeyonAttachment.s3js"></script>
 *  =========================================================================================
 *  调用组件
 * <script>
 *     var accDoc = cmp.accDoc("accDoc_Id",{
 *                   fillbackData: null,//符合V5数据格式的协同或文档数据,JSON对象格式
 *                   callback:function(result){
 *                      //返回的数据格式是A8服务器的文档的数据格式,请使用手机远程调试在浏览器的控制面板查看数据格式
 *                       result = cmp.parseJSON(result);
 *                       for(var i = 0;i< result.length; i ++){
 *                          console.log(cmp.parseJSON(result[i]));
 *                       }
 *                   },
 *                   closeCallback:function(){
 *                       //do something with closeCallback
 *                   }
 *     });
 * </script>
 * ```
 * @cutline [DEMO地址](/seeyon/cmp2.0/demo/demo/pagings/v5/cmp-accDoc.html)
 */
    
Top