Repository: muyinchen/migoshop2.0
Branch: master
Commit: 2256d9e9a6a9
Files: 815
Total size: 17.9 MB
Directory structure:
gitextract_486rgg8g/
├── .gitignore
├── README.md
├── migo-Fsso/
│ ├── .gitignore
│ ├── .mvn/
│ │ └── wrapper/
│ │ └── maven-wrapper.properties
│ ├── mvnw
│ ├── mvnw.cmd
│ ├── pom.xml
│ ├── settings.properties
│ └── src/
│ ├── main/
│ │ ├── java/
│ │ │ └── com/
│ │ │ └── migo3/
│ │ │ └── sso/
│ │ │ ├── .speedment/
│ │ │ │ ├── .Migo2Application.java.md5
│ │ │ │ ├── .Migo2ApplicationBuilder.java.md5
│ │ │ │ └── .Migo2ApplicationImpl.java.md5
│ │ │ ├── Migo2Application.java
│ │ │ ├── Migo2ApplicationBuilder.java
│ │ │ ├── Migo2ApplicationImpl.java
│ │ │ ├── SsoApplication.java
│ │ │ ├── UserConfig.java
│ │ │ ├── controller/
│ │ │ │ └── SsoController.java
│ │ │ ├── generated/
│ │ │ │ ├── .speedment/
│ │ │ │ │ ├── .GeneratedMigo2Application.java.md5
│ │ │ │ │ ├── .GeneratedMigo2ApplicationBuilder.java.md5
│ │ │ │ │ ├── .GeneratedMigo2ApplicationImpl.java.md5
│ │ │ │ │ └── .GeneratedMigo2Metadata.java.md5
│ │ │ │ ├── GeneratedMigo2Application.java
│ │ │ │ ├── GeneratedMigo2ApplicationBuilder.java
│ │ │ │ ├── GeneratedMigo2ApplicationImpl.java
│ │ │ │ └── GeneratedMigo2Metadata.java
│ │ │ ├── pojo/
│ │ │ │ ├── .speedment/
│ │ │ │ │ ├── .User.java.md5
│ │ │ │ │ ├── .UserImpl.java.md5
│ │ │ │ │ ├── .UserManager.java.md5
│ │ │ │ │ ├── .UserManagerImpl.java.md5
│ │ │ │ │ └── .UserSqlAdapter.java.md5
│ │ │ │ ├── User.java
│ │ │ │ ├── UserImpl.java
│ │ │ │ ├── UserManager.java
│ │ │ │ ├── UserManagerImpl.java
│ │ │ │ ├── UserSqlAdapter.java
│ │ │ │ └── generated/
│ │ │ │ ├── .speedment/
│ │ │ │ │ ├── .GeneratedUser.java.md5
│ │ │ │ │ ├── .GeneratedUserImpl.java.md5
│ │ │ │ │ ├── .GeneratedUserManager.java.md5
│ │ │ │ │ ├── .GeneratedUserManagerImpl.java.md5
│ │ │ │ │ └── .GeneratedUserSqlAdapter.java.md5
│ │ │ │ ├── GeneratedUser.java
│ │ │ │ ├── GeneratedUserImpl.java
│ │ │ │ ├── GeneratedUserManager.java
│ │ │ │ ├── GeneratedUserManagerImpl.java
│ │ │ │ └── GeneratedUserSqlAdapter.java
│ │ │ └── service/
│ │ │ └── UserService.java
│ │ ├── json/
│ │ │ └── speedment.json
│ │ └── resources/
│ │ ├── application.properties
│ │ ├── log4j.properties
│ │ └── templates/
│ │ ├── login.html
│ │ └── register.html
│ └── test/
│ └── java/
│ └── com/
│ └── migo3/
│ └── sso/
│ └── DemoApplicationTests.java
├── migo-common/
│ ├── pom.xml
│ └── src/
│ └── main/
│ └── java/
│ └── com/
│ └── migo/
│ ├── messageconverter/
│ │ └── CallbackMappingJackson2HttpMessageConverter.java
│ ├── pojo/
│ │ ├── CatNode.java
│ │ ├── EasyUIDataGridResult.java
│ │ └── ItemCatResult.java
│ ├── service/
│ │ ├── JedisClient.java
│ │ ├── WorkCallback.java
│ │ └── impl/
│ │ ├── JedisClientCluster.java
│ │ └── JedisClientSingle.java
│ └── utils/
│ ├── CookieUtils.java
│ ├── FastDFSClient.java
│ ├── HttpClientUtil.java
│ ├── IDUtils.java
│ └── JsonUtils.java
├── migo-manage/
│ ├── manage-mapper/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ └── java/
│ │ └── com/
│ │ └── migo/
│ │ └── mapper/
│ │ ├── ContentCategoryMapper.java
│ │ ├── ContentMapper.java
│ │ ├── ItemCatMapper.java
│ │ ├── ItemDescMapper.java
│ │ ├── ItemMapper.java
│ │ ├── ItemParamItemMapper.java
│ │ ├── ItemParamMapper.java
│ │ └── ItemparamexdMapper.java
│ ├── manage-pojo/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ └── java/
│ │ └── com/
│ │ └── migo/
│ │ └── pojo/
│ │ ├── BasePojo.java
│ │ ├── Content.java
│ │ ├── ContentCategory.java
│ │ ├── Item.java
│ │ ├── ItemCat.java
│ │ ├── ItemDesc.java
│ │ ├── ItemParam.java
│ │ ├── ItemParamItem.java
│ │ └── ItemParamexd.java
│ ├── manage-service/
│ │ ├── pom.xml
│ │ └── src/
│ │ └── main/
│ │ └── java/
│ │ └── com/
│ │ └── migo/
│ │ └── service/
│ │ ├── BaseService.java
│ │ ├── ContentCategoryService.java
│ │ ├── ContentService.java
│ │ ├── ItemCatService.java
│ │ ├── ItemDescService.java
│ │ ├── ItemParamItemService.java
│ │ ├── ItemParmService.java
│ │ ├── ItemService.java
│ │ └── PicService.java
│ ├── manage-web/
│ │ ├── pom.xml
│ │ └── src/
│ │ ├── main/
│ │ │ ├── java/
│ │ │ │ └── com/
│ │ │ │ └── migo/
│ │ │ │ └── controller/
│ │ │ │ ├── ContentCategoryController.java
│ │ │ │ ├── ContentController.java
│ │ │ │ ├── ItemCatController.java
│ │ │ │ ├── ItemController.java
│ │ │ │ ├── ItemDescController.java
│ │ │ │ ├── ItemParamController.java
│ │ │ │ ├── ItemParamItemController.java
│ │ │ │ ├── PageController.java
│ │ │ │ ├── PicController.java
│ │ │ │ └── webs/
│ │ │ │ ├── WebsContenController.java
│ │ │ │ ├── WebsItemCatController.java
│ │ │ │ └── WebsItemController.java
│ │ │ ├── resources/
│ │ │ │ ├── log4j.properties
│ │ │ │ ├── mybatis/
│ │ │ │ │ └── mybatis-config.xml
│ │ │ │ ├── properties/
│ │ │ │ │ ├── client.properties
│ │ │ │ │ ├── db.properties
│ │ │ │ │ └── env.properties
│ │ │ │ └── spring/
│ │ │ │ ├── applicationContext-dao.xml
│ │ │ │ ├── applicationContext-service.xml
│ │ │ │ ├── applicationContext-trans.xml
│ │ │ │ └── springmvc.xml
│ │ │ └── webapp/
│ │ │ ├── WEB-INF/
│ │ │ │ ├── views/
│ │ │ │ │ ├── content-add.jsp
│ │ │ │ │ ├── content-category.jsp
│ │ │ │ │ ├── content-edit.jsp
│ │ │ │ │ ├── content.jsp
│ │ │ │ │ ├── file-upload.jsp
│ │ │ │ │ ├── index.jsp
│ │ │ │ │ ├── item-add.jsp
│ │ │ │ │ ├── item-edit.jsp
│ │ │ │ │ ├── item-list.jsp
│ │ │ │ │ ├── item-param-add.jsp
│ │ │ │ │ ├── item-param-list.jsp
│ │ │ │ │ └── login.jsp
│ │ │ │ └── web.xml
│ │ │ ├── commons/
│ │ │ │ └── common-js.jsp
│ │ │ ├── css/
│ │ │ │ └── migo.css
│ │ │ └── js/
│ │ │ ├── common.js
│ │ │ ├── jquery-easyui-1.4.1/
│ │ │ │ ├── changelog.txt
│ │ │ │ ├── demo/
│ │ │ │ │ ├── accordion/
│ │ │ │ │ │ ├── _content.html
│ │ │ │ │ │ ├── actions.html
│ │ │ │ │ │ ├── ajax.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── datagrid_data1.json
│ │ │ │ │ │ ├── expandable.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── multiple.html
│ │ │ │ │ │ └── tools.html
│ │ │ │ │ ├── calendar/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── custom.html
│ │ │ │ │ │ ├── disabledate.html
│ │ │ │ │ │ ├── firstday.html
│ │ │ │ │ │ └── fluid.html
│ │ │ │ │ ├── combo/
│ │ │ │ │ │ ├── animation.html
│ │ │ │ │ │ └── basic.html
│ │ │ │ │ ├── combobox/
│ │ │ │ │ │ ├── actions.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── combobox_data1.json
│ │ │ │ │ │ ├── combobox_data2.json
│ │ │ │ │ │ ├── customformat.html
│ │ │ │ │ │ ├── dynamicdata.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── group.html
│ │ │ │ │ │ ├── icons.html
│ │ │ │ │ │ ├── multiline.html
│ │ │ │ │ │ ├── multiple.html
│ │ │ │ │ │ ├── navigation.html
│ │ │ │ │ │ ├── remotedata.html
│ │ │ │ │ │ └── remotejsonp.html
│ │ │ │ │ ├── combogrid/
│ │ │ │ │ │ ├── actions.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── datagrid_data1.json
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── initvalue.html
│ │ │ │ │ │ ├── multiple.html
│ │ │ │ │ │ └── navigation.html
│ │ │ │ │ ├── combotree/
│ │ │ │ │ │ ├── actions.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── initvalue.html
│ │ │ │ │ │ ├── multiple.html
│ │ │ │ │ │ └── tree_data1.json
│ │ │ │ │ ├── datagrid/
│ │ │ │ │ │ ├── aligncolumns.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── cacheeditor.html
│ │ │ │ │ │ ├── cellediting.html
│ │ │ │ │ │ ├── cellstyle.html
│ │ │ │ │ │ ├── checkbox.html
│ │ │ │ │ │ ├── clientpagination.html
│ │ │ │ │ │ ├── columngroup.html
│ │ │ │ │ │ ├── complextoolbar.html
│ │ │ │ │ │ ├── contextmenu.html
│ │ │ │ │ │ ├── custompager.html
│ │ │ │ │ │ ├── datagrid_data1.json
│ │ │ │ │ │ ├── datagrid_data2.json
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── footer.html
│ │ │ │ │ │ ├── formatcolumns.html
│ │ │ │ │ │ ├── frozencolumns.html
│ │ │ │ │ │ ├── frozenrows.html
│ │ │ │ │ │ ├── mergecells.html
│ │ │ │ │ │ ├── multisorting.html
│ │ │ │ │ │ ├── products.json
│ │ │ │ │ │ ├── rowborder.html
│ │ │ │ │ │ ├── rowediting.html
│ │ │ │ │ │ ├── rowstyle.html
│ │ │ │ │ │ ├── selection.html
│ │ │ │ │ │ ├── simpletoolbar.html
│ │ │ │ │ │ └── transform.html
│ │ │ │ │ ├── datebox/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── buttons.html
│ │ │ │ │ │ ├── dateformat.html
│ │ │ │ │ │ ├── events.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── restrict.html
│ │ │ │ │ │ ├── sharedcalendar.html
│ │ │ │ │ │ └── validate.html
│ │ │ │ │ ├── datetimebox/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── initvalue.html
│ │ │ │ │ │ └── showseconds.html
│ │ │ │ │ ├── datetimespinner/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── clearicon.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ └── format.html
│ │ │ │ │ ├── demo.css
│ │ │ │ │ ├── dialog/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── complextoolbar.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ └── toolbarbuttons.html
│ │ │ │ │ ├── draggable/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── constrain.html
│ │ │ │ │ │ └── snap.html
│ │ │ │ │ ├── droppable/
│ │ │ │ │ │ ├── accept.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ └── sort.html
│ │ │ │ │ ├── easyloader/
│ │ │ │ │ │ └── basic.html
│ │ │ │ │ ├── filebox/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── buttonalign.html
│ │ │ │ │ │ └── fluid.html
│ │ │ │ │ ├── form/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── form_data1.json
│ │ │ │ │ │ ├── load.html
│ │ │ │ │ │ └── validateonsubmit.html
│ │ │ │ │ ├── layout/
│ │ │ │ │ │ ├── _content.html
│ │ │ │ │ │ ├── addremove.html
│ │ │ │ │ │ ├── autoheight.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── complex.html
│ │ │ │ │ │ ├── datagrid_data1.json
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── full.html
│ │ │ │ │ │ ├── nestedlayout.html
│ │ │ │ │ │ ├── nocollapsible.html
│ │ │ │ │ │ ├── propertygrid_data1.json
│ │ │ │ │ │ └── tree_data1.json
│ │ │ │ │ ├── linkbutton/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── group.html
│ │ │ │ │ │ ├── iconalign.html
│ │ │ │ │ │ ├── plain.html
│ │ │ │ │ │ ├── size.html
│ │ │ │ │ │ ├── style.html
│ │ │ │ │ │ └── toggle.html
│ │ │ │ │ ├── menu/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── customitem.html
│ │ │ │ │ │ └── events.html
│ │ │ │ │ ├── menubutton/
│ │ │ │ │ │ ├── actions.html
│ │ │ │ │ │ ├── alignment.html
│ │ │ │ │ │ └── basic.html
│ │ │ │ │ ├── messager/
│ │ │ │ │ │ ├── alert.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── interactive.html
│ │ │ │ │ │ └── position.html
│ │ │ │ │ ├── numberbox/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── format.html
│ │ │ │ │ │ └── range.html
│ │ │ │ │ ├── numberspinner/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── increment.html
│ │ │ │ │ │ └── range.html
│ │ │ │ │ ├── pagination/
│ │ │ │ │ │ ├── attaching.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── custombuttons.html
│ │ │ │ │ │ ├── layout.html
│ │ │ │ │ │ ├── links.html
│ │ │ │ │ │ └── simple.html
│ │ │ │ │ ├── panel/
│ │ │ │ │ │ ├── _content.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── customtools.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── footer.html
│ │ │ │ │ │ ├── loadcontent.html
│ │ │ │ │ │ ├── nestedpanel.html
│ │ │ │ │ │ └── paneltools.html
│ │ │ │ │ ├── progressbar/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ └── fluid.html
│ │ │ │ │ ├── propertygrid/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── customcolumns.html
│ │ │ │ │ │ ├── groupformat.html
│ │ │ │ │ │ └── propertygrid_data1.json
│ │ │ │ │ ├── resizable/
│ │ │ │ │ │ └── basic.html
│ │ │ │ │ ├── searchbox/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── category.html
│ │ │ │ │ │ └── fluid.html
│ │ │ │ │ ├── slider/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── formattip.html
│ │ │ │ │ │ ├── nonlinear.html
│ │ │ │ │ │ ├── rule.html
│ │ │ │ │ │ └── vertical.html
│ │ │ │ │ ├── splitbutton/
│ │ │ │ │ │ ├── actions.html
│ │ │ │ │ │ └── basic.html
│ │ │ │ │ ├── tabs/
│ │ │ │ │ │ ├── _content.html
│ │ │ │ │ │ ├── autoheight.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── dropdown.html
│ │ │ │ │ │ ├── fixedwidth.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── hover.html
│ │ │ │ │ │ ├── nestedtabs.html
│ │ │ │ │ │ ├── striptools.html
│ │ │ │ │ │ ├── tabimage.html
│ │ │ │ │ │ ├── tabposition.html
│ │ │ │ │ │ ├── tabstools.html
│ │ │ │ │ │ └── tree_data1.json
│ │ │ │ │ ├── textbox/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── button.html
│ │ │ │ │ │ ├── clearicon.html
│ │ │ │ │ │ ├── custom.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── icons.html
│ │ │ │ │ │ ├── multiline.html
│ │ │ │ │ │ └── size.html
│ │ │ │ │ ├── timespinner/
│ │ │ │ │ │ ├── actions.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ └── range.html
│ │ │ │ │ ├── tooltip/
│ │ │ │ │ │ ├── _content.html
│ │ │ │ │ │ ├── _dialog.html
│ │ │ │ │ │ ├── ajax.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── customcontent.html
│ │ │ │ │ │ ├── customstyle.html
│ │ │ │ │ │ ├── position.html
│ │ │ │ │ │ ├── toolbar.html
│ │ │ │ │ │ └── tooltipdialog.html
│ │ │ │ │ ├── tree/
│ │ │ │ │ │ ├── actions.html
│ │ │ │ │ │ ├── animation.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── checkbox.html
│ │ │ │ │ │ ├── contextmenu.html
│ │ │ │ │ │ ├── dnd.html
│ │ │ │ │ │ ├── editable.html
│ │ │ │ │ │ ├── formatting.html
│ │ │ │ │ │ ├── icons.html
│ │ │ │ │ │ ├── lazyload.html
│ │ │ │ │ │ ├── lines.html
│ │ │ │ │ │ ├── tree_data1.json
│ │ │ │ │ │ └── tree_data2.json
│ │ │ │ │ ├── treegrid/
│ │ │ │ │ │ ├── actions.html
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── clientpagination.html
│ │ │ │ │ │ ├── contextmenu.html
│ │ │ │ │ │ ├── editable.html
│ │ │ │ │ │ ├── fluid.html
│ │ │ │ │ │ ├── footer.html
│ │ │ │ │ │ ├── lines.html
│ │ │ │ │ │ ├── reports.html
│ │ │ │ │ │ ├── treegrid_data1.json
│ │ │ │ │ │ ├── treegrid_data2.json
│ │ │ │ │ │ └── treegrid_data3.json
│ │ │ │ │ ├── validatebox/
│ │ │ │ │ │ ├── basic.html
│ │ │ │ │ │ ├── customtooltip.html
│ │ │ │ │ │ └── validateonblur.html
│ │ │ │ │ └── window/
│ │ │ │ │ ├── basic.html
│ │ │ │ │ ├── customtools.html
│ │ │ │ │ ├── fluid.html
│ │ │ │ │ ├── footer.html
│ │ │ │ │ ├── inlinewindow.html
│ │ │ │ │ ├── modalwindow.html
│ │ │ │ │ └── windowlayout.html
│ │ │ │ ├── easyloader.js
│ │ │ │ ├── licence_gpl.txt
│ │ │ │ ├── locale/
│ │ │ │ │ ├── easyui-lang-af.js
│ │ │ │ │ ├── easyui-lang-am.js
│ │ │ │ │ ├── easyui-lang-ar.js
│ │ │ │ │ ├── easyui-lang-bg.js
│ │ │ │ │ ├── easyui-lang-ca.js
│ │ │ │ │ ├── easyui-lang-cs.js
│ │ │ │ │ ├── easyui-lang-cz.js
│ │ │ │ │ ├── easyui-lang-da.js
│ │ │ │ │ ├── easyui-lang-de.js
│ │ │ │ │ ├── easyui-lang-el.js
│ │ │ │ │ ├── easyui-lang-en.js
│ │ │ │ │ ├── easyui-lang-es.js
│ │ │ │ │ ├── easyui-lang-fr.js
│ │ │ │ │ ├── easyui-lang-it.js
│ │ │ │ │ ├── easyui-lang-jp.js
│ │ │ │ │ ├── easyui-lang-nl.js
│ │ │ │ │ ├── easyui-lang-pl.js
│ │ │ │ │ ├── easyui-lang-pt_BR.js
│ │ │ │ │ ├── easyui-lang-ru.js
│ │ │ │ │ ├── easyui-lang-sv_SE.js
│ │ │ │ │ ├── easyui-lang-tr.js
│ │ │ │ │ ├── easyui-lang-zh_CN.js
│ │ │ │ │ └── easyui-lang-zh_TW.js
│ │ │ │ ├── plugins/
│ │ │ │ │ ├── jquery.accordion.js
│ │ │ │ │ ├── jquery.calendar.js
│ │ │ │ │ ├── jquery.combo.js
│ │ │ │ │ ├── jquery.combobox.js
│ │ │ │ │ ├── jquery.combogrid.js
│ │ │ │ │ ├── jquery.combotree.js
│ │ │ │ │ ├── jquery.datagrid.js
│ │ │ │ │ ├── jquery.datebox.js
│ │ │ │ │ ├── jquery.datetimebox.js
│ │ │ │ │ ├── jquery.datetimespinner.js
│ │ │ │ │ ├── jquery.dialog.js
│ │ │ │ │ ├── jquery.draggable.js
│ │ │ │ │ ├── jquery.droppable.js
│ │ │ │ │ ├── jquery.filebox.js
│ │ │ │ │ ├── jquery.form.js
│ │ │ │ │ ├── jquery.layout.js
│ │ │ │ │ ├── jquery.linkbutton.js
│ │ │ │ │ ├── jquery.menu.js
│ │ │ │ │ ├── jquery.menubutton.js
│ │ │ │ │ ├── jquery.messager.js
│ │ │ │ │ ├── jquery.numberbox.js
│ │ │ │ │ ├── jquery.numberspinner.js
│ │ │ │ │ ├── jquery.pagination.js
│ │ │ │ │ ├── jquery.panel.js
│ │ │ │ │ ├── jquery.parser.js
│ │ │ │ │ ├── jquery.progressbar.js
│ │ │ │ │ ├── jquery.propertygrid.js
│ │ │ │ │ ├── jquery.resizable.js
│ │ │ │ │ ├── jquery.searchbox.js
│ │ │ │ │ ├── jquery.slider.js
│ │ │ │ │ ├── jquery.spinner.js
│ │ │ │ │ ├── jquery.splitbutton.js
│ │ │ │ │ ├── jquery.tabs.js
│ │ │ │ │ ├── jquery.textbox.js
│ │ │ │ │ ├── jquery.timespinner.js
│ │ │ │ │ ├── jquery.tooltip.js
│ │ │ │ │ ├── jquery.tree.js
│ │ │ │ │ ├── jquery.treegrid.js
│ │ │ │ │ ├── jquery.validatebox.js
│ │ │ │ │ └── jquery.window.js
│ │ │ │ ├── readme.txt
│ │ │ │ ├── src/
│ │ │ │ │ ├── easyloader.js
│ │ │ │ │ ├── jquery.accordion.js
│ │ │ │ │ ├── jquery.calendar.js
│ │ │ │ │ ├── jquery.combobox.js
│ │ │ │ │ ├── jquery.datebox.js
│ │ │ │ │ ├── jquery.draggable.js
│ │ │ │ │ ├── jquery.droppable.js
│ │ │ │ │ ├── jquery.form.js
│ │ │ │ │ ├── jquery.linkbutton.js
│ │ │ │ │ ├── jquery.menu.js
│ │ │ │ │ ├── jquery.parser.js
│ │ │ │ │ ├── jquery.progressbar.js
│ │ │ │ │ ├── jquery.propertygrid.js
│ │ │ │ │ ├── jquery.resizable.js
│ │ │ │ │ ├── jquery.slider.js
│ │ │ │ │ ├── jquery.tabs.js
│ │ │ │ │ └── jquery.window.js
│ │ │ │ └── themes/
│ │ │ │ ├── black/
│ │ │ │ │ ├── accordion.css
│ │ │ │ │ ├── calendar.css
│ │ │ │ │ ├── combo.css
│ │ │ │ │ ├── combobox.css
│ │ │ │ │ ├── datagrid.css
│ │ │ │ │ ├── datebox.css
│ │ │ │ │ ├── dialog.css
│ │ │ │ │ ├── easyui.css
│ │ │ │ │ ├── filebox.css
│ │ │ │ │ ├── layout.css
│ │ │ │ │ ├── linkbutton.css
│ │ │ │ │ ├── menu.css
│ │ │ │ │ ├── menubutton.css
│ │ │ │ │ ├── messager.css
│ │ │ │ │ ├── numberbox.css
│ │ │ │ │ ├── pagination.css
│ │ │ │ │ ├── panel.css
│ │ │ │ │ ├── progressbar.css
│ │ │ │ │ ├── propertygrid.css
│ │ │ │ │ ├── searchbox.css
│ │ │ │ │ ├── slider.css
│ │ │ │ │ ├── spinner.css
│ │ │ │ │ ├── splitbutton.css
│ │ │ │ │ ├── tabs.css
│ │ │ │ │ ├── textbox.css
│ │ │ │ │ ├── tooltip.css
│ │ │ │ │ ├── tree.css
│ │ │ │ │ ├── validatebox.css
│ │ │ │ │ └── window.css
│ │ │ │ ├── bootstrap/
│ │ │ │ │ ├── accordion.css
│ │ │ │ │ ├── calendar.css
│ │ │ │ │ ├── combo.css
│ │ │ │ │ ├── combobox.css
│ │ │ │ │ ├── datagrid.css
│ │ │ │ │ ├── datebox.css
│ │ │ │ │ ├── dialog.css
│ │ │ │ │ ├── easyui.css
│ │ │ │ │ ├── filebox.css
│ │ │ │ │ ├── layout.css
│ │ │ │ │ ├── linkbutton.css
│ │ │ │ │ ├── menu.css
│ │ │ │ │ ├── menubutton.css
│ │ │ │ │ ├── messager.css
│ │ │ │ │ ├── numberbox.css
│ │ │ │ │ ├── pagination.css
│ │ │ │ │ ├── panel.css
│ │ │ │ │ ├── progressbar.css
│ │ │ │ │ ├── propertygrid.css
│ │ │ │ │ ├── searchbox.css
│ │ │ │ │ ├── slider.css
│ │ │ │ │ ├── spinner.css
│ │ │ │ │ ├── splitbutton.css
│ │ │ │ │ ├── tabs.css
│ │ │ │ │ ├── textbox.css
│ │ │ │ │ ├── tooltip.css
│ │ │ │ │ ├── tree.css
│ │ │ │ │ ├── validatebox.css
│ │ │ │ │ └── window.css
│ │ │ │ ├── color.css
│ │ │ │ ├── default/
│ │ │ │ │ ├── accordion.css
│ │ │ │ │ ├── calendar.css
│ │ │ │ │ ├── combo.css
│ │ │ │ │ ├── combobox.css
│ │ │ │ │ ├── datagrid.css
│ │ │ │ │ ├── datebox.css
│ │ │ │ │ ├── dialog.css
│ │ │ │ │ ├── easyui.css
│ │ │ │ │ ├── filebox.css
│ │ │ │ │ ├── layout.css
│ │ │ │ │ ├── linkbutton.css
│ │ │ │ │ ├── menu.css
│ │ │ │ │ ├── menubutton.css
│ │ │ │ │ ├── messager.css
│ │ │ │ │ ├── numberbox.css
│ │ │ │ │ ├── pagination.css
│ │ │ │ │ ├── panel.css
│ │ │ │ │ ├── progressbar.css
│ │ │ │ │ ├── propertygrid.css
│ │ │ │ │ ├── searchbox.css
│ │ │ │ │ ├── slider.css
│ │ │ │ │ ├── spinner.css
│ │ │ │ │ ├── splitbutton.css
│ │ │ │ │ ├── tabs.css
│ │ │ │ │ ├── textbox.css
│ │ │ │ │ ├── tooltip.css
│ │ │ │ │ ├── tree.css
│ │ │ │ │ ├── validatebox.css
│ │ │ │ │ └── window.css
│ │ │ │ ├── gray/
│ │ │ │ │ ├── accordion.css
│ │ │ │ │ ├── calendar.css
│ │ │ │ │ ├── combo.css
│ │ │ │ │ ├── combobox.css
│ │ │ │ │ ├── datagrid.css
│ │ │ │ │ ├── datebox.css
│ │ │ │ │ ├── dialog.css
│ │ │ │ │ ├── easyui.css
│ │ │ │ │ ├── filebox.css
│ │ │ │ │ ├── layout.css
│ │ │ │ │ ├── linkbutton.css
│ │ │ │ │ ├── menu.css
│ │ │ │ │ ├── menubutton.css
│ │ │ │ │ ├── messager.css
│ │ │ │ │ ├── numberbox.css
│ │ │ │ │ ├── pagination.css
│ │ │ │ │ ├── panel.css
│ │ │ │ │ ├── progressbar.css
│ │ │ │ │ ├── propertygrid.css
│ │ │ │ │ ├── searchbox.css
│ │ │ │ │ ├── slider.css
│ │ │ │ │ ├── spinner.css
│ │ │ │ │ ├── splitbutton.css
│ │ │ │ │ ├── tabs.css
│ │ │ │ │ ├── textbox.css
│ │ │ │ │ ├── tooltip.css
│ │ │ │ │ ├── tree.css
│ │ │ │ │ ├── validatebox.css
│ │ │ │ │ └── window.css
│ │ │ │ ├── icon.css
│ │ │ │ └── metro/
│ │ │ │ ├── accordion.css
│ │ │ │ ├── calendar.css
│ │ │ │ ├── combo.css
│ │ │ │ ├── combobox.css
│ │ │ │ ├── datagrid.css
│ │ │ │ ├── datebox.css
│ │ │ │ ├── dialog.css
│ │ │ │ ├── easyui.css
│ │ │ │ ├── filebox.css
│ │ │ │ ├── layout.css
│ │ │ │ ├── linkbutton.css
│ │ │ │ ├── menu.css
│ │ │ │ ├── menubutton.css
│ │ │ │ ├── messager.css
│ │ │ │ ├── numberbox.css
│ │ │ │ ├── pagination.css
│ │ │ │ ├── panel.css
│ │ │ │ ├── progressbar.css
│ │ │ │ ├── propertygrid.css
│ │ │ │ ├── searchbox.css
│ │ │ │ ├── slider.css
│ │ │ │ ├── spinner.css
│ │ │ │ ├── splitbutton.css
│ │ │ │ ├── tabs.css
│ │ │ │ ├── textbox.css
│ │ │ │ ├── tooltip.css
│ │ │ │ ├── tree.css
│ │ │ │ ├── validatebox.css
│ │ │ │ └── window.css
│ │ │ └── kindeditor-4.1.10/
│ │ │ ├── asp/
│ │ │ │ ├── JSON_2.0.4.asp
│ │ │ │ ├── UpLoad_Class.asp
│ │ │ │ ├── demo.asp
│ │ │ │ ├── file_manager_json.asp
│ │ │ │ └── upload_json.asp
│ │ │ ├── asp.net/
│ │ │ │ ├── README.txt
│ │ │ │ ├── demo.aspx
│ │ │ │ ├── file_manager_json.ashx
│ │ │ │ └── upload_json.ashx
│ │ │ ├── examples/
│ │ │ │ ├── auto-height.html
│ │ │ │ ├── colorpicker.html
│ │ │ │ ├── custom-plugin.html
│ │ │ │ ├── custom-theme.html
│ │ │ │ ├── default.html
│ │ │ │ ├── dialog.html
│ │ │ │ ├── dynamic-load.html
│ │ │ │ ├── file-dialog.html
│ │ │ │ ├── file-manager.html
│ │ │ │ ├── filter-mode.html
│ │ │ │ ├── image-dialog.html
│ │ │ │ ├── index.css
│ │ │ │ ├── index.html
│ │ │ │ ├── jquery-ui/
│ │ │ │ │ ├── css/
│ │ │ │ │ │ └── smoothness/
│ │ │ │ │ │ └── jquery-ui-1.9.2.custom.css
│ │ │ │ │ └── js/
│ │ │ │ │ └── jquery-ui-1.9.2.custom.js
│ │ │ │ ├── jquery-ui.html
│ │ │ │ ├── jquery.html
│ │ │ │ ├── jquery.js
│ │ │ │ ├── multi-image-dialog.html
│ │ │ │ ├── multi-language.html
│ │ │ │ ├── newline.html
│ │ │ │ ├── node.html
│ │ │ │ ├── paste-type.html
│ │ │ │ ├── qqstyle.html
│ │ │ │ ├── readonly.html
│ │ │ │ ├── simple.html
│ │ │ │ ├── uploadbutton.html
│ │ │ │ ├── url-type.html
│ │ │ │ └── word-count.html
│ │ │ ├── jsp/
│ │ │ │ ├── README.txt
│ │ │ │ ├── demo.jsp
│ │ │ │ ├── file_manager_json.jsp
│ │ │ │ └── upload_json.jsp
│ │ │ ├── kindeditor-all-min.js
│ │ │ ├── kindeditor-all.js
│ │ │ ├── kindeditor-min.js
│ │ │ ├── kindeditor.js
│ │ │ ├── lang/
│ │ │ │ ├── ar.js
│ │ │ │ ├── en.js
│ │ │ │ ├── ko.js
│ │ │ │ ├── zh_CN.js
│ │ │ │ └── zh_TW.js
│ │ │ ├── license.txt
│ │ │ ├── php/
│ │ │ │ ├── JSON.php
│ │ │ │ ├── demo.php
│ │ │ │ ├── file_manager_json.php
│ │ │ │ └── upload_json.php
│ │ │ ├── plugins/
│ │ │ │ ├── anchor/
│ │ │ │ │ └── anchor.js
│ │ │ │ ├── autoheight/
│ │ │ │ │ └── autoheight.js
│ │ │ │ ├── baidumap/
│ │ │ │ │ ├── baidumap.js
│ │ │ │ │ ├── index.html
│ │ │ │ │ └── map.html
│ │ │ │ ├── clearhtml/
│ │ │ │ │ └── clearhtml.js
│ │ │ │ ├── code/
│ │ │ │ │ ├── code.js
│ │ │ │ │ ├── prettify.css
│ │ │ │ │ └── prettify.js
│ │ │ │ ├── emoticons/
│ │ │ │ │ └── emoticons.js
│ │ │ │ ├── filemanager/
│ │ │ │ │ └── filemanager.js
│ │ │ │ ├── flash/
│ │ │ │ │ └── flash.js
│ │ │ │ ├── image/
│ │ │ │ │ └── image.js
│ │ │ │ ├── insertfile/
│ │ │ │ │ └── insertfile.js
│ │ │ │ ├── lineheight/
│ │ │ │ │ └── lineheight.js
│ │ │ │ ├── link/
│ │ │ │ │ └── link.js
│ │ │ │ ├── map/
│ │ │ │ │ ├── map.html
│ │ │ │ │ └── map.js
│ │ │ │ ├── media/
│ │ │ │ │ └── media.js
│ │ │ │ ├── multiimage/
│ │ │ │ │ ├── images/
│ │ │ │ │ │ └── swfupload.swf
│ │ │ │ │ └── multiimage.js
│ │ │ │ ├── pagebreak/
│ │ │ │ │ └── pagebreak.js
│ │ │ │ ├── plainpaste/
│ │ │ │ │ └── plainpaste.js
│ │ │ │ ├── preview/
│ │ │ │ │ └── preview.js
│ │ │ │ ├── quickformat/
│ │ │ │ │ └── quickformat.js
│ │ │ │ ├── table/
│ │ │ │ │ └── table.js
│ │ │ │ ├── template/
│ │ │ │ │ ├── html/
│ │ │ │ │ │ ├── 1.html
│ │ │ │ │ │ ├── 2.html
│ │ │ │ │ │ └── 3.html
│ │ │ │ │ └── template.js
│ │ │ │ └── wordpaste/
│ │ │ │ └── wordpaste.js
│ │ │ └── themes/
│ │ │ ├── default/
│ │ │ │ └── default.css
│ │ │ ├── qq/
│ │ │ │ └── qq.css
│ │ │ └── simple/
│ │ │ └── simple.css
│ │ └── test/
│ │ └── java/
│ │ └── test/
│ │ └── Test.java
│ └── pom.xml
├── migo-parent/
│ └── pom.xml
├── migo-portal/
│ ├── pom.xml
│ └── src/
│ └── main/
│ ├── java/
│ │ └── com/
│ │ └── migo/
│ │ └── portal/
│ │ ├── controller/
│ │ │ ├── IndexController.java
│ │ │ └── ItemController.java
│ │ ├── pojo/
│ │ │ ├── Content.java
│ │ │ ├── Item.java
│ │ │ ├── ItemDesc.java
│ │ │ └── ItemParamItem.java
│ │ └── service/
│ │ ├── IndexService.java
│ │ └── ItemService.java
│ ├── resources/
│ │ ├── evn/
│ │ │ ├── envi.properties
│ │ │ └── log4j.properties
│ │ └── spring/
│ │ ├── applicationContext.xml
│ │ └── springmvc.xml
│ └── webapp/
│ ├── WEB-INF/
│ │ ├── commons/
│ │ │ ├── footer-links.jsp
│ │ │ ├── footer.jsp
│ │ │ ├── header.jsp
│ │ │ └── shortcut.jsp
│ │ ├── views/
│ │ │ ├── cart.jsp
│ │ │ ├── error/
│ │ │ │ ├── exception.jsp
│ │ │ │ └── my-exception.jsp
│ │ │ ├── index.jsp
│ │ │ ├── item.jsp
│ │ │ ├── login.jsp
│ │ │ ├── my-info-img.jsp
│ │ │ ├── my-info-more.jsp
│ │ │ ├── my-info.jsp
│ │ │ ├── my-order-comment.jsp
│ │ │ ├── my-orders.jsp
│ │ │ ├── order-cart-old.jsp
│ │ │ ├── order-cart.jsp
│ │ │ ├── order.jsp
│ │ │ ├── register.jsp
│ │ │ ├── search.jsp
│ │ │ ├── success.jsp
│ │ │ └── 商品分类数据格式.txt
│ │ └── web.xml
│ ├── css/
│ │ ├── base.css
│ │ ├── login.css
│ │ ├── migo.css
│ │ ├── myjd.commentImg.css
│ │ ├── myjd.common.css
│ │ ├── myjd.info.css
│ │ ├── myjd.order.css
│ │ ├── order-commons.css
│ │ ├── passport.base.css
│ │ ├── pop_compare.css
│ │ ├── psearch.onebox.css
│ │ ├── psearch20131008.css
│ │ ├── pshow.css
│ │ ├── purchase.2012.css
│ │ ├── purchase.base.2012.css
│ │ ├── purchase.checkout.css
│ │ ├── purchase.sop.css
│ │ └── regist.personal.css
│ ├── images/
│ │ └── swfupload.swf
│ └── js/
│ ├── CommentStar.js
│ ├── base-2011.js
│ ├── base-v1.js
│ ├── base.js
│ ├── calendar.js
│ ├── cart.js
│ ├── comment.json
│ ├── home.js
│ ├── iplocation_server.js
│ ├── jTips.js
│ ├── jquery-1.6.4.js
│ ├── jquery-extend.js
│ ├── jquery.checkout.js
│ ├── jquery.cookie.js
│ ├── jquery.hashchange.js
│ ├── json2.js
│ ├── lib-v1.js
│ ├── login/
│ │ ├── checkClient.js
│ │ ├── g.base.js
│ │ ├── jdEdit.js
│ │ ├── jdThickBox.js
│ │ └── login.js
│ ├── migo.js
│ ├── order.common.js
│ ├── order.js
│ ├── order2.js
│ ├── payAndShipment.js
│ ├── product.js
│ ├── register/
│ │ ├── jd.lib.js
│ │ ├── jdThickBox.js
│ │ ├── jdValidate.emReg.js
│ │ ├── jdValidate.js
│ │ └── jdValidate.regSuccess.js
│ ├── search_main.js
│ └── static/
│ ├── lib-v1.js
│ └── register/
│ ├── jd.lib.js
│ ├── jdThickBox.js
│ ├── jdValidate.emReg.js
│ ├── jdValidate.js
│ └── jdValidate.regSuccess.js
├── migo-sso/
│ ├── pom.xml
│ └── src/
│ └── main/
│ ├── java/
│ │ └── com/
│ │ └── migo/
│ │ └── sso/
│ │ ├── controller/
│ │ │ └── SsoController.java
│ │ ├── mapper/
│ │ │ └── UserMapper.java
│ │ ├── pojo/
│ │ │ └── User.java
│ │ └── service/
│ │ └── UserService.java
│ ├── resources/
│ │ ├── log4j.properties
│ │ ├── properties/
│ │ │ └── db.properties
│ │ └── spring/
│ │ ├── applicationContext-dao.xml
│ │ ├── applicationContext-service.xml
│ │ ├── applicationContext-trans.xml
│ │ └── migo-sso-mvc.xml
│ └── webapp/
│ └── WEB-INF/
│ ├── commons/
│ │ ├── footer-links.jsp
│ │ ├── footer.jsp
│ │ ├── header.jsp
│ │ └── shortcut.jsp
│ ├── views/
│ │ ├── login.jsp
│ │ └── register.jsp
│ └── web.xml
└── migo2.sql
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
# maven ignore
target/
*.jar
*.war
*.zip
*.tar
*.tar.gz
# eclipse ignore
.settings/
.project
.classpath
# idea ignore
.idea/
*.ipr
*.iml
*.iws
# temp ignore
*.log
*.cache
*.diff
*.patch
*.tmp
# system ignore
.DS_Store
<<<<<<< HEAD
Thumbs.db
=======
Thumbs.db
>>>>>>> e704ead569657bdb826d1d159a140d2c8278d779
================================================
FILE: README.md
================================================
# migoshop2.0
#### 具体操作实现步骤请参考本人博客 https://muyinchen.github.io/categories/Migo%E5%95%86%E5%9F%8E2-0/
#### 同时可以对比migo商城第一个版本实现 https://github.com/muyinchen/migoShop
##### 2016.12.31:
##### 2016最后一天,当然要来点猛料,添加sso番外版migo-Fsso,使用Springboot+全新的ORM框架speedment来改写,并使用thymeleaf静态模板页,关于speedment,网上资料很少,全是自己踩坑实现,对于cookie处理这块因为tomcat版本问题出现了不兼容,新的工具类已经实现,等2.0完全迭代完事之后,会和3.0一起放出
#####
##### 2016.12.25:
###### 为使用Spring4.3的新特性,将依赖版本升级为4.3.5,相应的Jackson版本也相应升级,否则出错,另实现了单点登录系统的注册功能
#####
================================================
FILE: migo-Fsso/.gitignore
================================================
target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
nbproject/private/
build/
nbbuild/
dist/
nbdist/
.nb-gradle/
================================================
FILE: migo-Fsso/.mvn/wrapper/maven-wrapper.properties
================================================
distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip
================================================
FILE: migo-Fsso/mvnw
================================================
#!/bin/sh
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Maven2 Start Up Batch script
#
# Required ENV vars:
# ------------------
# JAVA_HOME - location of a JDK home dir
#
# Optional ENV vars
# -----------------
# M2_HOME - location of maven2's installed home dir
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
# e.g. to debug Maven itself, use
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
# ----------------------------------------------------------------------------
if [ -z "$MAVEN_SKIP_RC" ] ; then
if [ -f /etc/mavenrc ] ; then
. /etc/mavenrc
fi
if [ -f "$HOME/.mavenrc" ] ; then
. "$HOME/.mavenrc"
fi
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
mingw=false
case "`uname`" in
CYGWIN*) cygwin=true ;;
MINGW*) mingw=true;;
Darwin*) darwin=true
#
# Look for the Apple JDKs first to preserve the existing behaviour, and then look
# for the new JDKs provided by Oracle.
#
if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK ] ; then
#
# Apple JDKs
#
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
fi
if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Java/JavaVirtualMachines/CurrentJDK ] ; then
#
# Apple JDKs
#
export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
fi
if [ -z "$JAVA_HOME" ] && [ -L "/Library/Java/JavaVirtualMachines/CurrentJDK" ] ; then
#
# Oracle JDKs
#
export JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home
fi
if [ -z "$JAVA_HOME" ] && [ -x "/usr/libexec/java_home" ]; then
#
# Apple JDKs
#
export JAVA_HOME=`/usr/libexec/java_home`
fi
;;
esac
if [ -z "$JAVA_HOME" ] ; then
if [ -r /etc/gentoo-release ] ; then
JAVA_HOME=`java-config --jre-home`
fi
fi
if [ -z "$M2_HOME" ] ; then
## resolve links - $0 may be a link to maven's home
PRG="$0"
# need this for relative symlinks
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG="`dirname "$PRG"`/$link"
fi
done
saveddir=`pwd`
M2_HOME=`dirname "$PRG"`/..
# make it fully qualified
M2_HOME=`cd "$M2_HOME" && pwd`
cd "$saveddir"
# echo Using m2 at $M2_HOME
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --unix "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
fi
# For Migwn, ensure paths are in UNIX format before anything is touched
if $mingw ; then
[ -n "$M2_HOME" ] &&
M2_HOME="`(cd "$M2_HOME"; pwd)`"
[ -n "$JAVA_HOME" ] &&
JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
# TODO classpath?
fi
if [ -z "$JAVA_HOME" ]; then
javaExecutable="`which javac`"
if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
# readlink(1) is not available as standard on Solaris 10.
readLink=`which readlink`
if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
if $darwin ; then
javaHome="`dirname \"$javaExecutable\"`"
javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
else
javaExecutable="`readlink -f \"$javaExecutable\"`"
fi
javaHome="`dirname \"$javaExecutable\"`"
javaHome=`expr "$javaHome" : '\(.*\)/bin'`
JAVA_HOME="$javaHome"
export JAVA_HOME
fi
fi
fi
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD="`which java`"
fi
fi
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly." >&2
echo " We cannot execute $JAVACMD" >&2
exit 1
fi
if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
fi
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
[ -n "$M2_HOME" ] &&
M2_HOME=`cygpath --path --windows "$M2_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
fi
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir() {
local basedir=$(pwd)
local wdir=$(pwd)
while [ "$wdir" != '/' ] ; do
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
wdir=$(cd "$wdir/.."; pwd)
done
echo "${basedir}"
}
# concatenates all lines of a file
concat_lines() {
if [ -f "$1" ]; then
echo "$(tr -s '\n' ' ' < "$1")"
fi
}
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-$(find_maven_basedir)}
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
# Provide a "standardized" way to retrieve the CLI args that will
# work with both Windows and non-Windows executions.
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
export MAVEN_CMD_LINE_ARGS
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
exec "$JAVACMD" \
$MAVEN_OPTS \
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
"-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
${WRAPPER_LAUNCHER} "$@"
================================================
FILE: migo-Fsso/mvnw.cmd
================================================
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM
@REM http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Maven2 Start Up Batch script
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM M2_HOME - location of maven2's installed home dir
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
@REM ----------------------------------------------------------------------------
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
:skipRcPre
@setlocal
set ERROR_CODE=0
@REM To isolate internal variables from possible post scripts, we use another setlocal
@setlocal
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto init
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:init
set MAVEN_CMD_LINE_ARGS=%*
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
@REM Fallback to current working directory if not found.
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set EXEC_DIR=%CD%
set WDIR=%EXEC_DIR%
:findBaseDir
IF EXIST "%WDIR%"\.mvn goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set WDIR=%CD%
goto findBaseDir
:baseDirFound
set MAVEN_PROJECTBASEDIR=%WDIR%
cd "%EXEC_DIR%"
goto endDetectBaseDir
:baseDirNotFound
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
cd "%EXEC_DIR%"
:endDetectBaseDir
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
@setlocal EnableExtensions EnableDelayedExpansion
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
:endReadAdditionalConfig
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
set WRAPPER_JAR="".\.mvn\wrapper\maven-wrapper.jar""
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CMD_LINE_ARGS%
if ERRORLEVEL 1 goto error
goto end
:error
set ERROR_CODE=1
:end
@endlocal & set ERROR_CODE=%ERROR_CODE%
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
@REM check for post script, once with legacy .bat ending and once with .cmd ending
if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
:skipRcPost
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%" == "on" pause
if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
exit /B %ERROR_CODE%
================================================
FILE: migo-Fsso/pom.xml
================================================
4.0.0
com.migo3
migo3-sso
0.0.1-SNAPSHOT
jar
demo
org.springframework.boot
spring-boot-starter-parent
1.4.3.RELEASE
UTF-8
UTF-8
1.8
4.3.5.RELEASE
3.0.1
mysql
mysql-connector-java
5.1.39
com.migo
common
2.0-SNAPSHOT
org.springframework.boot
spring-boot-starter-jdbc
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-starter-thymeleaf
com.alibaba
druid
1.0.26
com.speedment
runtime
${speedment.version}
pom
${db.groupId}
${db.artifactId}
${db.version}
org.springframework.boot
spring-boot-maven-plugin
com.speedment
speedment-maven-plugin
${speedment.version}
${db.groupId}
${db.artifactId}
${db.version}
org.apache.maven.plugins
maven-compiler-plugin
1.8
1.8
================================================
FILE: migo-Fsso/settings.properties
================================================
#Speedment Settings
#Thu Dec 29 14:59:10 CST 2016
last_known_port=3306
last_known_user=root
last_known_name=db0
last_known_dbtype=MySQL
project_location=D\:\\migoshop3\\migo-Fsso\\src\\main\\json\\speedment.json
hide_open_option=false
last_known_host=127.0.0.1
last_known_schema=migo2
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/.speedment/.Migo2Application.java.md5
================================================
50d0ae9d22dd482d447c93cac09a0a18
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/.speedment/.Migo2ApplicationBuilder.java.md5
================================================
c4c9450a644569f984c72aeb12b7647b
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/.speedment/.Migo2ApplicationImpl.java.md5
================================================
6d84fee86e1e5e0080621eac987f7eb4
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/Migo2Application.java
================================================
package com.migo3.sso;
import com.migo3.sso.generated.GeneratedMigo2Application;
/**
* An {@link com.speedment.runtime.core.ApplicationBuilder} interface for the
* {@link com.speedment.runtime.config.Project} named migo2.
*
* This file is safe to edit. It will not be overwritten by the code generator.
*
* @author company
*/
public interface Migo2Application extends GeneratedMigo2Application {
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/Migo2ApplicationBuilder.java
================================================
package com.migo3.sso;
import com.migo3.sso.generated.GeneratedMigo2ApplicationBuilder;
/**
* The default {@link com.speedment.runtime.core.ApplicationBuilder}
* implementation class for the {@link com.speedment.runtime.config.Project}
* named migo2.
*
* This file is safe to edit. It will not be overwritten by the code generator.
*
* @author company
*/
public final class Migo2ApplicationBuilder extends GeneratedMigo2ApplicationBuilder {
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/Migo2ApplicationImpl.java
================================================
package com.migo3.sso;
import com.migo3.sso.generated.GeneratedMigo2ApplicationImpl;
/**
* The default {@link com.speedment.runtime.core.Speedment} implementation class
* for the {@link com.speedment.runtime.config.Project} named migo2.
*
* This file is safe to edit. It will not be overwritten by the code generator.
*
* @author company
*/
public final class Migo2ApplicationImpl extends GeneratedMigo2ApplicationImpl implements Migo2Application {
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/SsoApplication.java
================================================
package com.migo3.sso;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SsoApplication {
public static void main(String[] args) {
SpringApplication.run(SsoApplication.class, args);
}
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/UserConfig.java
================================================
package com.migo3.sso;
import com.alibaba.druid.pool.DruidDataSource;
import com.migo.messageconverter.CallbackMappingJackson2HttpMessageConverter;
import com.migo.service.impl.JedisClientSingle;
import com.migo3.sso.pojo.UserManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import redis.clients.jedis.JedisPool;
import java.util.List;
/**
* Author 知秋
* Created by kauw on 2016/12/29.
*/
@Configuration
public class UserConfig extends WebMvcConfigurerAdapter {
@Autowired
private Environment env;
@Bean
public Migo2Application geMigo2Application() {
return new Migo2ApplicationBuilder()
.withPassword("123")
.build();
}
@Bean
public UserManager getUserManager(Migo2Application application) {
return application.getOrThrow(UserManager.class);
}
@Bean
public CallbackMappingJackson2HttpMessageConverter converter() {
CallbackMappingJackson2HttpMessageConverter msc = new CallbackMappingJackson2HttpMessageConverter();
msc.setCallbackName("callback");
return msc;
}
@Bean("jedisPool")
public JedisPool jedisPool() {
return new JedisPool("192.168.42.131", 6379);
}
@Bean("jedisClientSingle")
public JedisClientSingle jedisClientSingle() {
return new JedisClientSingle();
}
@Override
public void extendMessageConverters(List> converters) {
super.extendMessageConverters(converters);
converters.add(converter());
}
@Bean
public DruidDataSource dataSource() {
DruidDataSource dataSource = new DruidDataSource();
dataSource.setUrl(env.getProperty("spring.datasource.url"));
dataSource.setUsername(env.getProperty("spring.datasource.username"));//用户名
dataSource.setPassword(env.getProperty("spring.datasource.password"));//密码
dataSource.setInitialSize(2);
dataSource.setMaxActive(20);
dataSource.setMinIdle(0);
dataSource.setMaxWait(60000);
dataSource.setValidationQuery("SELECT 1");
dataSource.setTestOnBorrow(false);
dataSource.setTestWhileIdle(true);
dataSource.setPoolPreparedStatements(false);
return dataSource;
}
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/controller/SsoController.java
================================================
package com.migo3.sso.controller;
import com.migo.utils.CookieUtils;
import com.migo3.sso.pojo.User;
import com.migo3.sso.pojo.UserImpl;
import com.migo3.sso.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.validation.BindingResult;
import org.springframework.validation.ObjectError;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* Author 知秋
* Created by kauw on 2016/12/29.
*/
@Controller
public class SsoController {
private static final Logger logger= LoggerFactory.getLogger(SsoController.class);
private static final String COOKIE_NAME = "MG_TOKEN";
@Autowired
private UserService userService;
@GetMapping("/rest/user/register")
public String register(){
return "register";
}
@GetMapping("/rest/user/doLogin")
public String doLogin(ModelMap map){
map.addAttribute("host", "http://blog.didispace.com");
return "login";
}
@PostMapping("/do/user/doLogin")
@ResponseBody
public Map doLogin(@RequestParam("username") String username,
@RequestParam("password") String password,
HttpServletRequest request,
HttpServletResponse response){
Map map=new HashMap<>();
try {
if (logger.isInfoEnabled()){
logger.info("用户登录功能 username = {} ,password = {}",username,password);
}
String token=this.userService.doLogin(username,password);
if (token == null) {
map.put("status",400);
}else {
//登录成功将token写入到cookie中
map.put("status",200);
CookieUtils.setCookie(request,response,COOKIE_NAME,token);
}
} catch (Exception e) {
logger.error("用户登录失败 username = {}",username,e);
map.put("status",500);
}
return map;
}
@GetMapping("/do/user/check/{param}/{type}")
public ResponseEntity check(@PathVariable String param, @PathVariable Integer type){
try {
if (logger.isInfoEnabled()){
logger.info("检查数据是否可用 param = {} ,type = {}",param,type);
}
Boolean bool=this.userService.check(param,type);
if (null==bool){
return ResponseEntity.status(HttpStatus.BAD_REQUEST).body(null);
}
return ResponseEntity.ok(bool);
} catch (Exception e) {
logger.error("检查数据是否可用 出现异常",e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
@PostMapping("/do/user/doRegister")
@ResponseBody
public Map doRegister(@Validated UserImpl user, BindingResult bindingResult){
Map map=new HashMap<>();
try {
if (logger.isInfoEnabled()){
logger.info("注册用户 user = {}", user);
}
if (bindingResult.hasErrors()){
//List megs=new ArrayList<>();
List allErrors = bindingResult.getAllErrors();
//一种实现,两种写法,都可以使用
// allErrors.stream().map(ObjectError::getDefaultMessage).forEach(megs::add);
// allErrors.stream().parallel().map(ObjectError::getDefaultMessage).forEach(megs::add);
// allErrors.forEach(objectError -> megs.add(objectError.getDefaultMessage()));
//allErrors.stream().forEach(objectError->megs.add(objectError.getDefaultMessage()));
//List collect = allErrors.stream().map(ObjectError::getDefaultMessage).collect(Collectors.toList());
String collect = allErrors.stream().
parallel().
map(ObjectError::getDefaultMessage).
collect(Collectors.joining("|"));
map.put("status","401");
//map.put("data", StringUtils.join(megs,"|"));
map.put("data",collect);
return map;
}
Boolean bool=this.userService.doRegister( user);
if (bool){
map.put("status",200);
}else {
map.put("status",500);
map.put("data","注册失败");
}
} catch (Exception e) {
logger.error("注册失败 user = {} ",user,e);
map.put("status",500);
map.put("data","注册失败");
}
return map;
}
@GetMapping("/do/user/{token}")
public ResponseEntity queryByToken(@PathVariable("token") String token){
try {
if (logger.isInfoEnabled()){
logger.info("根据token查询用户信息 token = {}", token);
}
User user=this.userService.queryByToken(token);
if (null==user){
return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null);
}
return ResponseEntity.ok(user);
} catch (Exception e) {
logger.error("根据token查询用户信息 出错 token = {}", token,e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/.speedment/.GeneratedMigo2Application.java.md5
================================================
4f01445412b41fddd046c78fcdd2d612
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/.speedment/.GeneratedMigo2ApplicationBuilder.java.md5
================================================
1253dc8d4ce6b2c787757b6cd157ad40
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/.speedment/.GeneratedMigo2ApplicationImpl.java.md5
================================================
c8db2bf657039154e022056021adfd42
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/.speedment/.GeneratedMigo2Metadata.java.md5
================================================
3682bb03a00bae514cdd88c3f6d6daaa
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/GeneratedMigo2Application.java
================================================
package com.migo3.sso.generated;
import com.speedment.runtime.core.Speedment;
import javax.annotation.Generated;
/**
* The generated {@link
* com.speedment.runtime.core.internal.AbstractApplicationBuilder} application
* interface for the {@link com.speedment.runtime.config.Project} named migo2.
*
* This file has been automatically generated by Speedment. Any changes made to
* it will be overwritten.
*
* @author Speedment
*/
@Generated("Speedment")
public interface GeneratedMigo2Application extends Speedment {
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/GeneratedMigo2ApplicationBuilder.java
================================================
package com.migo3.sso.generated;
import com.migo3.sso.Migo2Application;
import com.migo3.sso.Migo2ApplicationBuilder;
import com.migo3.sso.Migo2ApplicationImpl;
import com.migo3.sso.pojo.UserManagerImpl;
import com.migo3.sso.pojo.UserSqlAdapter;
import com.speedment.common.injector.Injector;
import com.speedment.runtime.core.internal.AbstractApplicationBuilder;
import javax.annotation.Generated;
/**
* A generated base {@link
* com.speedment.runtime.core.internal.AbstractApplicationBuilder} class for the
* {@link com.speedment.runtime.config.Project} named migo2.
*
* This file has been automatically generated by Speedment. Any changes made to
* it will be overwritten.
*
* @author Speedment
*/
@Generated("Speedment")
public abstract class GeneratedMigo2ApplicationBuilder extends AbstractApplicationBuilder {
protected GeneratedMigo2ApplicationBuilder() {
super(Migo2ApplicationImpl.class, GeneratedMigo2Metadata.class);
withManager(UserManagerImpl.class);
withComponent(UserSqlAdapter.class);
}
@Override
public Migo2Application build(Injector injector) {
return injector.getOrThrow(Migo2Application.class);
}
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/GeneratedMigo2ApplicationImpl.java
================================================
package com.migo3.sso.generated;
import com.speedment.runtime.core.internal.AbstractSpeedment;
import javax.annotation.Generated;
/**
* The generated {@link
* com.speedment.runtime.core.internal.AbstractApplicationBuilder}
* implementation class for the {@link com.speedment.runtime.config.Project}
* named migo2.
*
* This file has been automatically generated by Speedment. Any changes made to
* it will be overwritten.
*
* @author Speedment
*/
@Generated("Speedment")
public class GeneratedMigo2ApplicationImpl extends AbstractSpeedment implements GeneratedMigo2Application {
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/generated/GeneratedMigo2Metadata.java
================================================
package com.migo3.sso.generated;
import com.speedment.runtime.core.internal.AbstractApplicationMetadata;
import java.util.Optional;
import java.util.stream.Stream;
import javax.annotation.Generated;
/**
* A {@link com.speedment.runtime.core.ApplicationMetadata} class for the {@link
* com.speedment.runtime.config.Project} named migo2. This class contains the
* meta data present at code generation time.
*
* This file has been automatically generated by Speedment. Any changes made to
* it will be overwritten.
*
* @author Speedment
*/
@Generated("Speedment")
public class GeneratedMigo2Metadata extends AbstractApplicationMetadata {
private final static String METADATA = init();
private static String init() {
final StringBuilder sb = new StringBuilder();
initPart0(sb);
initPart1(sb);
initPart2(sb);
initPart3(sb);
initPart4(sb);
initPart5(sb);
initPart6(sb);
initPart7(sb);
initPart8(sb);
initPart9(sb);
initPart10(sb);
initPart11(sb);
initPart12(sb);
initPart13(sb);
return sb.toString();
}
@Override
protected Optional getMetadata() {
return Optional.of(METADATA);
}
private static void initPart0(StringBuilder sb) {
Stream.of(
"{",
" \"config\" : {",
" \"expanded\" : true,",
" \"companyName\" : \"company\",",
" \"name\" : \"migo2\",",
" \"packageLocation\" : \"src/main/java/\",",
" \"packageName\" : \"com.migo2.sso\",",
" \"dbmses\" : [",
" {",
" \"expanded\" : true,",
" \"port\" : 3306,",
" \"schemas\" : [",
" {",
" \"tables\" : [",
" {",
" \"expanded\" : false,",
" \"primaryKeyColumns\" : [",
" {",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"indexes\" : [",
" {",
" \"expanded\" : false,",
" \"unique\" : true,",
" \"name\" : \"PRIMARY\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"enabled\" : true",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"category_id\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"category_id\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"enabled\" : true",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"updated\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"updated\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"enabled\" : true",
" }",
" ],",
" \"columns\" : [",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"autoIncrement\" : true,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"category_id\",",
" \"ordinalPosition\" : 2,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"title\",",
" \"ordinalPosition\" : 3,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"sub_title\",",
" \"ordinalPosition\" : 4,"
).forEachOrdered(sb::append);
}
private static void initPart1(StringBuilder sb) {
Stream.of(
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"title_desc\",",
" \"ordinalPosition\" : 5,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"url\",",
" \"ordinalPosition\" : 6,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"pic\",",
" \"ordinalPosition\" : 7,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"pic2\",",
" \"ordinalPosition\" : 8,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"content\",",
" \"ordinalPosition\" : 9,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"created\",",
" \"ordinalPosition\" : 10,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"updated\",",
" \"ordinalPosition\" : 11,",
" \"enabled\" : true",
" }",
" ],",
" \"name\" : \"tb_content\",",
" \"enabled\" : false",
" },",
" {",
" \"expanded\" : false,",
" \"primaryKeyColumns\" : [",
" {",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"indexes\" : [",
" {",
" \"expanded\" : false,",
" \"unique\" : true,",
" \"name\" : \"PRIMARY\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"enabled\" : true",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"parent_id\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"parent_id\",",
" \"ordinalPosition\" : 1",
" },",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"status\","
).forEachOrdered(sb::append);
}
private static void initPart2(StringBuilder sb) {
Stream.of(
" \"ordinalPosition\" : 2",
" }",
" ],",
" \"enabled\" : true",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"sort_order\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"sort_order\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"enabled\" : true",
" }",
" ],",
" \"columns\" : [",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"autoIncrement\" : true,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"parent_id\",",
" \"ordinalPosition\" : 2,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"name\",",
" \"ordinalPosition\" : 3,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.Integer\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"status\",",
" \"ordinalPosition\" : 4,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.Integer\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"sort_order\",",
" \"ordinalPosition\" : 5,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.Integer\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"is_parent\",",
" \"ordinalPosition\" : 6,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"created\",",
" \"ordinalPosition\" : 7,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"updated\",",
" \"ordinalPosition\" : 8,",
" \"enabled\" : true",
" }",
" ],",
" \"name\" : \"tb_content_category\",",
" \"enabled\" : false",
" },",
" {",
" \"expanded\" : false,",
" \"primaryKeyColumns\" : [",
" {",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"indexes\" : ["
).forEachOrdered(sb::append);
}
private static void initPart3(StringBuilder sb) {
Stream.of(
" {",
" \"expanded\" : false,",
" \"unique\" : true,",
" \"name\" : \"PRIMARY\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"cid\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"cid\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"status\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"status\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"updated\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"updated\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" }",
" ],",
" \"columns\" : [",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"title\",",
" \"ordinalPosition\" : 2,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"sell_point\",",
" \"ordinalPosition\" : 3,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"price\",",
" \"ordinalPosition\" : 4,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.Integer\",",
" \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"num\",",
" \"ordinalPosition\" : 5,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,"
).forEachOrdered(sb::append);
}
private static void initPart4(StringBuilder sb) {
Stream.of(
" \"name\" : \"barcode\",",
" \"ordinalPosition\" : 6,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"image\",",
" \"ordinalPosition\" : 7,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"cid\",",
" \"ordinalPosition\" : 8,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.lang.Byte\",",
" \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"status\",",
" \"ordinalPosition\" : 9,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"created\",",
" \"ordinalPosition\" : 10,",
" \"enabled\" : true",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"updated\",",
" \"ordinalPosition\" : 11",
" }",
" ],",
" \"name\" : \"tb_item\",",
" \"enabled\" : false",
" },",
" {",
" \"expanded\" : false,",
" \"primaryKeyColumns\" : [",
" {",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"indexes\" : [",
" {",
" \"expanded\" : false,",
" \"unique\" : true,",
" \"name\" : \"PRIMARY\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"parent_id\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"parent_id\",",
" \"ordinalPosition\" : 1",
" },",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"status\",",
" \"ordinalPosition\" : 2",
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"sort_order\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"sort_order\",",
" \"ordinalPosition\" : 1"
).forEachOrdered(sb::append);
}
private static void initPart5(StringBuilder sb) {
Stream.of(
" }",
" ]",
" }",
" ],",
" \"columns\" : [",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"autoIncrement\" : true,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" },",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"parent_id\",",
" \"ordinalPosition\" : 2",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"name\",",
" \"ordinalPosition\" : 3",
" },",
" {",
" \"databaseType\" : \"java.lang.Integer\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"status\",",
" \"ordinalPosition\" : 4",
" },",
" {",
" \"databaseType\" : \"java.lang.Integer\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"sort_order\",",
" \"ordinalPosition\" : 5",
" },",
" {",
" \"databaseType\" : \"java.lang.Integer\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"is_parent\",",
" \"ordinalPosition\" : 6",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"created\",",
" \"ordinalPosition\" : 7",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"updated\",",
" \"ordinalPosition\" : 8",
" }",
" ],",
" \"name\" : \"tb_item_cat\",",
" \"enabled\" : false",
" },",
" {",
" \"expanded\" : false,",
" \"primaryKeyColumns\" : [",
" {",
" \"expanded\" : false,",
" \"name\" : \"item_id\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"indexes\" : [",
" {",
" \"expanded\" : false,",
" \"unique\" : true,",
" \"name\" : \"PRIMARY\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"item_id\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" }",
" ],",
" \"columns\" : [",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"item_id\",",
" \"ordinalPosition\" : 1",
" },",
" {"
).forEachOrdered(sb::append);
}
private static void initPart6(StringBuilder sb) {
Stream.of(
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"item_desc\",",
" \"ordinalPosition\" : 2",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"created\",",
" \"ordinalPosition\" : 3",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"updated\",",
" \"ordinalPosition\" : 4",
" }",
" ],",
" \"name\" : \"tb_item_desc\",",
" \"enabled\" : false",
" },",
" {",
" \"expanded\" : false,",
" \"primaryKeyColumns\" : [",
" {",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"indexes\" : [",
" {",
" \"expanded\" : false,",
" \"unique\" : true,",
" \"name\" : \"PRIMARY\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"item_cat_id\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"item_cat_id\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" }",
" ],",
" \"columns\" : [",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"autoIncrement\" : true,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" },",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"item_cat_id\",",
" \"ordinalPosition\" : 2",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"param_data\",",
" \"ordinalPosition\" : 3",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"created\",",
" \"ordinalPosition\" : 4",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"updated\",",
" \"ordinalPosition\" : 5",
" }",
" ],",
" \"name\" : \"tb_item_param\","
).forEachOrdered(sb::append);
}
private static void initPart7(StringBuilder sb) {
Stream.of(
" \"enabled\" : false",
" },",
" {",
" \"expanded\" : false,",
" \"primaryKeyColumns\" : [",
" {",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"indexes\" : [",
" {",
" \"expanded\" : false,",
" \"unique\" : true,",
" \"name\" : \"PRIMARY\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"item_id\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"item_id\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" }",
" ],",
" \"columns\" : [",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"autoIncrement\" : true,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" },",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"item_id\",",
" \"ordinalPosition\" : 2",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"param_data\",",
" \"ordinalPosition\" : 3",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"created\",",
" \"ordinalPosition\" : 4",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"updated\",",
" \"ordinalPosition\" : 5",
" }",
" ],",
" \"name\" : \"tb_item_param_item\",",
" \"enabled\" : false",
" },",
" {",
" \"expanded\" : false,",
" \"primaryKeyColumns\" : [",
" {",
" \"expanded\" : false,",
" \"name\" : \"order_id\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"indexes\" : [",
" {",
" \"expanded\" : false,",
" \"unique\" : true,",
" \"name\" : \"PRIMARY\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"order_id\",",
" \"ordinalPosition\" : 1"
).forEachOrdered(sb::append);
}
private static void initPart8(StringBuilder sb) {
Stream.of(
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"buyer_nick\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"buyer_nick\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"create_time\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"create_time\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"payment_type\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"payment_type\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"status\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"status\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" }",
" ],",
" \"columns\" : [",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"order_id\",",
" \"ordinalPosition\" : 1",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"payment\",",
" \"ordinalPosition\" : 2",
" },",
" {",
" \"databaseType\" : \"java.lang.Integer\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"payment_type\",",
" \"ordinalPosition\" : 3",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"post_fee\",",
" \"ordinalPosition\" : 4",
" },",
" {",
" \"databaseType\" : \"java.lang.Integer\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"status\",",
" \"ordinalPosition\" : 5",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"create_time\",",
" \"ordinalPosition\" : 6",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\","
).forEachOrdered(sb::append);
}
private static void initPart9(StringBuilder sb) {
Stream.of(
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"update_time\",",
" \"ordinalPosition\" : 7",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"payment_time\",",
" \"ordinalPosition\" : 8",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"consign_time\",",
" \"ordinalPosition\" : 9",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"end_time\",",
" \"ordinalPosition\" : 10",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"close_time\",",
" \"ordinalPosition\" : 11",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"shipping_name\",",
" \"ordinalPosition\" : 12",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"shipping_code\",",
" \"ordinalPosition\" : 13",
" },",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"user_id\",",
" \"ordinalPosition\" : 14",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"buyer_message\",",
" \"ordinalPosition\" : 15",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"buyer_nick\",",
" \"ordinalPosition\" : 16",
" },",
" {",
" \"databaseType\" : \"java.lang.Integer\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"buyer_rate\",",
" \"ordinalPosition\" : 17",
" }",
" ],",
" \"name\" : \"tb_order\",",
" \"enabled\" : false",
" },",
" {",
" \"expanded\" : false,",
" \"primaryKeyColumns\" : [",
" {",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"indexes\" : [",
" {",
" \"expanded\" : false,",
" \"unique\" : true,",
" \"name\" : \"PRIMARY\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ]"
).forEachOrdered(sb::append);
}
private static void initPart10(StringBuilder sb) {
Stream.of(
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"item_id\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"item_id\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : false,",
" \"name\" : \"order_id\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"order_id\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" }",
" ],",
" \"columns\" : [",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"item_id\",",
" \"ordinalPosition\" : 2",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"order_id\",",
" \"ordinalPosition\" : 3",
" },",
" {",
" \"databaseType\" : \"java.lang.Integer\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"num\",",
" \"ordinalPosition\" : 4",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"title\",",
" \"ordinalPosition\" : 5",
" },",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"price\",",
" \"ordinalPosition\" : 6",
" },",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"total_fee\",",
" \"ordinalPosition\" : 7",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"pic_path\",",
" \"ordinalPosition\" : 8",
" }",
" ],",
" \"name\" : \"tb_order_item\",",
" \"enabled\" : false",
" },",
" {",
" \"expanded\" : false,",
" \"primaryKeyColumns\" : [",
" {",
" \"expanded\" : false,",
" \"name\" : \"order_id\",",
" \"ordinalPosition\" : 1",
" }",
" ],",
" \"indexes\" : [",
" {",
" \"expanded\" : false,"
).forEachOrdered(sb::append);
}
private static void initPart11(StringBuilder sb) {
Stream.of(
" \"unique\" : true,",
" \"name\" : \"PRIMARY\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"order_id\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" }",
" ],",
" \"columns\" : [",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"order_id\",",
" \"ordinalPosition\" : 1",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"receiver_name\",",
" \"ordinalPosition\" : 2",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"receiver_phone\",",
" \"ordinalPosition\" : 3",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"receiver_mobile\",",
" \"ordinalPosition\" : 4",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"receiver_state\",",
" \"ordinalPosition\" : 5",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"receiver_city\",",
" \"ordinalPosition\" : 6",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"receiver_district\",",
" \"ordinalPosition\" : 7",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"receiver_address\",",
" \"ordinalPosition\" : 8",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"receiver_zip\",",
" \"ordinalPosition\" : 9",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"created\",",
" \"ordinalPosition\" : 10",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"updated\",",
" \"ordinalPosition\" : 11",
" }",
" ],",
" \"name\" : \"tb_order_shipping\",",
" \"enabled\" : false",
" },",
" {",
" \"expanded\" : false,",
" \"primaryKeyColumns\" : [",
" {",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1"
).forEachOrdered(sb::append);
}
private static void initPart12(StringBuilder sb) {
Stream.of(
" }",
" ],",
" \"indexes\" : [",
" {",
" \"expanded\" : false,",
" \"unique\" : true,",
" \"name\" : \"email\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"email\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : true,",
" \"name\" : \"phone\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"phone\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : true,",
" \"name\" : \"PRIMARY\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" },",
" {",
" \"expanded\" : false,",
" \"unique\" : true,",
" \"name\" : \"username\",",
" \"indexColumns\" : [",
" {",
" \"orderType\" : \"ASC\",",
" \"expanded\" : false,",
" \"name\" : \"username\",",
" \"ordinalPosition\" : 1",
" }",
" ]",
" }",
" ],",
" \"columns\" : [",
" {",
" \"databaseType\" : \"java.lang.Long\",",
" \"typeMapper\" : \"com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"autoIncrement\" : true,",
" \"name\" : \"id\",",
" \"ordinalPosition\" : 1",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"username\",",
" \"ordinalPosition\" : 2",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"password\",",
" \"ordinalPosition\" : 3",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"phone\",",
" \"ordinalPosition\" : 4",
" },",
" {",
" \"databaseType\" : \"java.lang.String\",",
" \"expanded\" : false,",
" \"nullable\" : true,",
" \"name\" : \"email\",",
" \"ordinalPosition\" : 5",
" },",
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"created\",",
" \"ordinalPosition\" : 6",
" },"
).forEachOrdered(sb::append);
}
private static void initPart13(StringBuilder sb) {
Stream.of(
" {",
" \"databaseType\" : \"java.sql.Timestamp\",",
" \"expanded\" : false,",
" \"nullable\" : false,",
" \"name\" : \"updated\",",
" \"ordinalPosition\" : 7",
" }",
" ],",
" \"name\" : \"tb_user\",",
" \"alias\" : \"user\",",
" \"packageName\" : \"com.migo2.sso.pojo\",",
" \"enabled\" : true",
" }",
" ],",
" \"expanded\" : true,",
" \"name\" : \"migo2\",",
" \"enabled\" : true",
" }",
" ],",
" \"typeName\" : \"MySQL\",",
" \"ipAddress\" : \"127.0.0.1\",",
" \"name\" : \"db0\",",
" \"enabled\" : true,",
" \"username\" : \"root\"",
" }",
" ],",
" \"enabled\" : true",
" }",
"}"
).forEachOrdered(sb::append);
}
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/.speedment/.User.java.md5
================================================
27ac398a9caef2cbc4afc808df24d174
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/.speedment/.UserImpl.java.md5
================================================
47bed9ddae40c814e63f4ecd1cc00bd0
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/.speedment/.UserManager.java.md5
================================================
60c7e85a56883b839aceaa9acc947699
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/.speedment/.UserManagerImpl.java.md5
================================================
5d6731a54fa4468b208f915ecab770d4
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/.speedment/.UserSqlAdapter.java.md5
================================================
269f02fd2ac863f65d2a8e2a31b6dc45
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/User.java
================================================
package com.migo3.sso.pojo;
import com.migo3.sso.pojo.generated.GeneratedUser;
/**
* The main interface for entities of the {@code tb_user}-table in the database.
*
* This file is safe to edit. It will not be overwritten by the code generator.
*
* @author company
*/
public interface User extends GeneratedUser {
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/UserImpl.java
================================================
package com.migo3.sso.pojo;
import com.migo3.sso.pojo.generated.GeneratedUserImpl;
/**
* The default implementation of the {@link User}-interface.
*
* This file is safe to edit. It will not be overwritten by the code generator.
*
* @author company
*/
public final class UserImpl extends GeneratedUserImpl implements User {
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/UserManager.java
================================================
package com.migo3.sso.pojo;
import com.migo3.sso.pojo.generated.GeneratedUserManager;
/**
* The main interface for the manager of every {@link User}
* entity.
*
* This file is safe to edit. It will not be overwritten by the code generator.
*
* @author company
*/
public interface UserManager extends GeneratedUserManager {
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/UserManagerImpl.java
================================================
package com.migo3.sso.pojo;
import com.migo3.sso.pojo.generated.GeneratedUserManagerImpl;
/**
* The default implementation for the manager of every {@link
* User} entity.
*
* This file is safe to edit. It will not be overwritten by the code generator.
*
* @author company
*/
public final class UserManagerImpl extends GeneratedUserManagerImpl implements UserManager {
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/UserSqlAdapter.java
================================================
package com.migo3.sso.pojo;
import com.migo3.sso.pojo.generated.GeneratedUserSqlAdapter;
/**
* The SqlAdapter for every {@link User} entity.
*
* This file is safe to edit. It will not be overwritten by the code generator.
*
* @author company
*/
public class UserSqlAdapter extends GeneratedUserSqlAdapter {
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/.speedment/.GeneratedUser.java.md5
================================================
9e831bfbcbc9f6e6ec54208349878503
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/.speedment/.GeneratedUserImpl.java.md5
================================================
fcbc06a46f2f5b1c978abe50b6b83acc
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/.speedment/.GeneratedUserManager.java.md5
================================================
0c2d8f9ef1e52faf5c7ac4b2ae394321
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/.speedment/.GeneratedUserManagerImpl.java.md5
================================================
3055dae3972f755dad00ef42b6168c20
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/.speedment/.GeneratedUserSqlAdapter.java.md5
================================================
f4c0ee8bcb8c3426f2088110a6f39d2e
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/GeneratedUser.java
================================================
package com.migo3.sso.pojo.generated;
import com.migo3.sso.pojo.User;
import com.speedment.runtime.config.identifier.ColumnIdentifier;
import com.speedment.runtime.config.identifier.TableIdentifier;
import com.speedment.runtime.core.util.OptionalUtil;
import com.speedment.runtime.field.ComparableField;
import com.speedment.runtime.field.LongField;
import com.speedment.runtime.field.StringField;
import com.speedment.runtime.typemapper.TypeMapper;
import javax.annotation.Generated;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Optional;
/**
* The generated base for the {@link User}-interface
* representing entities of the {@code tb_user}-table in the database.
*
* This file has been automatically generated by Speedment. Any changes made to
* it will be overwritten.
*
* @author Speedment
*/
@Generated("Speedment")
public interface GeneratedUser {
/**
* This Field corresponds to the {@link User} field that can be obtained
* using the {@link User#getId()} method.
*/
final LongField ID = LongField.create(
Identifier.ID,
User::getId,
User::setId,
TypeMapper.primitive(),
true
);
/**
* This Field corresponds to the {@link User} field that can be obtained
* using the {@link User#getUsername()} method.
*/
final StringField USERNAME = StringField.create(
Identifier.USERNAME,
User::getUsername,
User::setUsername,
TypeMapper.identity(),
true
);
/**
* This Field corresponds to the {@link User} field that can be obtained
* using the {@link User#getPassword()} method.
*/
final StringField PASSWORD = StringField.create(
Identifier.PASSWORD,
User::getPassword,
User::setPassword,
TypeMapper.identity(),
false
);
/**
* This Field corresponds to the {@link User} field that can be obtained
* using the {@link User#getPhone()} method.
*/
final StringField PHONE = StringField.create(
Identifier.PHONE,
o -> OptionalUtil.unwrap(o.getPhone()),
User::setPhone,
TypeMapper.identity(),
true
);
/**
* This Field corresponds to the {@link User} field that can be obtained
* using the {@link User#getEmail()} method.
*/
final StringField EMAIL = StringField.create(
Identifier.EMAIL,
o -> OptionalUtil.unwrap(o.getEmail()),
User::setEmail,
TypeMapper.identity(),
true
);
/**
* This Field corresponds to the {@link User} field that can be obtained
* using the {@link User#getCreated()} method.
*/
final ComparableField CREATED = ComparableField.create(
Identifier.CREATED,
User::getCreated,
User::setCreated,
TypeMapper.identity(),
false
);
/**
* This Field corresponds to the {@link User} field that can be obtained
* using the {@link User#getUpdated()} method.
*/
final ComparableField UPDATED = ComparableField.create(
Identifier.UPDATED,
User::getUpdated,
User::setUpdated,
TypeMapper.identity(),
false
);
/**
* Returns the id of this User. The id field corresponds to the database
* column db0.migo2.tb_user.id.
*
* @return the id of this User
*/
long getId();
/**
* Returns the username of this User. The username field corresponds to the
* database column db0.migo2.tb_user.username.
*
* @return the username of this User
*/
String getUsername();
/**
* Returns the password of this User. The password field corresponds to the
* database column db0.migo2.tb_user.password.
*
* @return the password of this User
*/
String getPassword();
/**
* Returns the phone of this User. The phone field corresponds to the
* database column db0.migo2.tb_user.phone.
*
* @return the phone of this User
*/
Optional getPhone();
/**
* Returns the email of this User. The email field corresponds to the
* database column db0.migo2.tb_user.email.
*
* @return the email of this User
*/
Optional getEmail();
/**
* Returns the created of this User. The created field corresponds to the
* database column db0.migo2.tb_user.created.
*
* @return the created of this User
*/
Timestamp getCreated();
/**
* Returns the updated of this User. The updated field corresponds to the
* database column db0.migo2.tb_user.updated.
*
* @return the updated of this User
*/
Timestamp getUpdated();
/**
* Sets the id of this User. The id field corresponds to the database column
* db0.migo2.tb_user.id.
*
* @param id to set of this User
* @return this User instance
*/
User setId(long id);
/**
* Sets the username of this User. The username field corresponds to the
* database column db0.migo2.tb_user.username.
*
* @param username to set of this User
* @return this User instance
*/
User setUsername(String username);
/**
* Sets the password of this User. The password field corresponds to the
* database column db0.migo2.tb_user.password.
*
* @param password to set of this User
* @return this User instance
*/
User setPassword(String password);
/**
* Sets the phone of this User. The phone field corresponds to the database
* column db0.migo2.tb_user.phone.
*
* @param phone to set of this User
* @return this User instance
*/
User setPhone(String phone);
/**
* Sets the email of this User. The email field corresponds to the database
* column db0.migo2.tb_user.email.
*
* @param email to set of this User
* @return this User instance
*/
User setEmail(String email);
/**
* Sets the created of this User. The created field corresponds to the
* database column db0.migo2.tb_user.created.
*
* @param created to set of this User
* @return this User instance
*/
User setCreated(Date created);
/**
* Sets the updated of this User. The updated field corresponds to the
* database column db0.migo2.tb_user.updated.
*
* @param updated to set of this User
* @return this User instance
*/
User setUpdated(Date updated);
enum Identifier implements ColumnIdentifier {
ID ("id"),
USERNAME ("username"),
PASSWORD ("password"),
PHONE ("phone"),
EMAIL ("email"),
CREATED ("created"),
UPDATED ("updated");
private final String columnName;
private final TableIdentifier tableIdentifier;
Identifier(String columnName) {
this.columnName = columnName;
this.tableIdentifier = TableIdentifier.of(getDbmsName(), getSchemaName(), getTableName());
}
@Override
public String getDbmsName() {
return "db0";
}
@Override
public String getSchemaName() {
return "migo2";
}
@Override
public String getTableName() {
return "tb_user";
}
@Override
public String getColumnName() {
return this.columnName;
}
@Override
public TableIdentifier asTableIdentifier() {
return this.tableIdentifier;
}
}
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/GeneratedUserImpl.java
================================================
package com.migo3.sso.pojo.generated;
import com.migo3.sso.pojo.User;
import com.speedment.runtime.core.util.OptionalUtil;
import javax.annotation.Generated;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Objects;
import java.util.Optional;
import java.util.StringJoiner;
/**
* The generated base implementation of the {@link
* User}-interface.
*
* This file has been automatically generated by Speedment. Any changes made to
* it will be overwritten.
*
* @author Speedment
*/
@Generated("Speedment")
public abstract class GeneratedUserImpl implements User {
private long id;
private String username;
private String password;
private String phone;
private String email;
private Timestamp created;
private Timestamp updated;
protected GeneratedUserImpl() {
}
@Override
public long getId() {
return id;
}
@Override
public String getUsername() {
return username;
}
@Override
public String getPassword() {
return password;
}
@Override
public Optional getPhone() {
return Optional.ofNullable(phone);
}
@Override
public Optional getEmail() {
return Optional.ofNullable(email);
}
@Override
public Timestamp getCreated() {
return created;
}
@Override
public Timestamp getUpdated() {
return updated;
}
@Override
public User setId(long id) {
this.id = id;
return this;
}
@Override
public User setUsername(String username) {
this.username = username;
return this;
}
@Override
public User setPassword(String password) {
this.password = password;
return this;
}
@Override
public User setPhone(String phone) {
this.phone = phone;
return this;
}
@Override
public User setEmail(String email) {
this.email = email;
return this;
}
@Override
public User setCreated(Date created) {
this.created = (Timestamp) created;
return this;
}
@Override
public User setUpdated(Date updated) {
this.updated = (Timestamp) updated;
return this;
}
@Override
public String toString() {
final StringJoiner sj = new StringJoiner(", ", "{ ", " }");
sj.add("id = " + Objects.toString(getId()));
sj.add("username = " + Objects.toString(getUsername()));
sj.add("password = " + Objects.toString(getPassword()));
sj.add("phone = " + Objects.toString(OptionalUtil.unwrap(getPhone())));
sj.add("email = " + Objects.toString(OptionalUtil.unwrap(getEmail())));
sj.add("created = " + Objects.toString(getCreated()));
sj.add("updated = " + Objects.toString(getUpdated()));
return "UserImpl " + sj.toString();
}
@Override
public boolean equals(Object that) {
if (this == that) { return true; }
if (!(that instanceof User)) { return false; }
final User thatUser = (User)that;
if (this.getId() != thatUser.getId()) {return false; }
if (!Objects.equals(this.getUsername(), thatUser.getUsername())) {return false; }
if (!Objects.equals(this.getPassword(), thatUser.getPassword())) {return false; }
if (!Objects.equals(this.getPhone(), thatUser.getPhone())) {return false; }
if (!Objects.equals(this.getEmail(), thatUser.getEmail())) {return false; }
if (!Objects.equals(this.getCreated(), thatUser.getCreated())) {return false; }
if (!Objects.equals(this.getUpdated(), thatUser.getUpdated())) {return false; }
return true;
}
@Override
public int hashCode() {
int hash = 7;
hash = 31 * hash + Long.hashCode(getId());
hash = 31 * hash + Objects.hashCode(getUsername());
hash = 31 * hash + Objects.hashCode(getPassword());
hash = 31 * hash + Objects.hashCode(getPhone());
hash = 31 * hash + Objects.hashCode(getEmail());
hash = 31 * hash + Objects.hashCode(getCreated());
hash = 31 * hash + Objects.hashCode(getUpdated());
return hash;
}
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/GeneratedUserManager.java
================================================
package com.migo3.sso.pojo.generated;
import com.migo3.sso.pojo.User;
import com.speedment.runtime.core.manager.Manager;
import javax.annotation.Generated;
/**
* The generated base interface for the manager of every {@link
* User} entity.
*
* This file has been automatically generated by Speedment. Any changes made to
* it will be overwritten.
*
* @author Speedment
*/
@Generated("Speedment")
public interface GeneratedUserManager extends Manager {
@Override
default Class getEntityClass() {
return User.class;
}
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/GeneratedUserManagerImpl.java
================================================
package com.migo3.sso.pojo.generated;
import com.migo3.sso.pojo.User;
import com.speedment.runtime.config.identifier.TableIdentifier;
import com.speedment.runtime.core.manager.AbstractManager;
import com.speedment.runtime.field.Field;
import javax.annotation.Generated;
import java.util.stream.Stream;
/**
* The generated base implementation for the manager of every {@link
* User} entity.
*
* This file has been automatically generated by Speedment. Any changes made to
* it will be overwritten.
*
* @author Speedment
*/
@Generated("Speedment")
public abstract class GeneratedUserManagerImpl extends AbstractManager implements GeneratedUserManager {
private final TableIdentifier tableIdentifier;
protected GeneratedUserManagerImpl() {
this.tableIdentifier = TableIdentifier.of("db0", "migo2", "tb_user");
}
@Override
public TableIdentifier getTableIdentifier() {
return tableIdentifier;
}
@Override
public Stream> fields() {
return Stream.of(
User.ID,
User.USERNAME,
User.PASSWORD,
User.PHONE,
User.EMAIL,
User.CREATED,
User.UPDATED
);
}
@Override
public Stream> primaryKeyFields() {
return Stream.of(
User.ID
);
}
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/pojo/generated/GeneratedUserSqlAdapter.java
================================================
package com.migo3.sso.pojo.generated;
import com.migo3.sso.pojo.User;
import com.migo3.sso.pojo.UserImpl;
import com.speedment.common.injector.annotation.ExecuteBefore;
import com.speedment.runtime.config.identifier.TableIdentifier;
import com.speedment.runtime.core.component.sql.SqlPersistenceComponent;
import com.speedment.runtime.core.component.sql.SqlStreamSupplierComponent;
import com.speedment.runtime.core.exception.SpeedmentException;
import javax.annotation.Generated;
import java.sql.ResultSet;
import java.sql.SQLException;
import static com.speedment.common.injector.State.RESOLVED;
import static com.speedment.runtime.core.internal.util.sql.ResultSetUtil.getString;
/**
* The generated Sql Adapter for a {@link User} entity.
*
* This file has been automatically generated by Speedment. Any changes made to
* it will be overwritten.
*
* @author Speedment
*/
@Generated("Speedment")
public abstract class GeneratedUserSqlAdapter {
private final TableIdentifier tableIdentifier;
protected GeneratedUserSqlAdapter() {
this.tableIdentifier = TableIdentifier.of("db0", "migo2", "tb_user");
}
@ExecuteBefore(RESOLVED)
void installMethodName(SqlStreamSupplierComponent streamSupplierComponent, SqlPersistenceComponent persistenceComponent) {
streamSupplierComponent.install(tableIdentifier, this::apply);
persistenceComponent.install(tableIdentifier);
}
protected User apply(ResultSet resultSet) throws SpeedmentException{
final User entity = createEntity();
try {
entity.setId(resultSet.getLong(1));
entity.setUsername(resultSet.getString(2));
entity.setPassword(resultSet.getString(3));
entity.setPhone(getString(resultSet, 4));
entity.setEmail(getString(resultSet, 5));
entity.setCreated(resultSet.getTimestamp(6));
entity.setUpdated(resultSet.getTimestamp(7));
} catch (final SQLException sqle) {
throw new SpeedmentException(sqle);
}
return entity;
}
protected UserImpl createEntity() {
return new UserImpl();
}
}
================================================
FILE: migo-Fsso/src/main/java/com/migo3/sso/service/UserService.java
================================================
package com.migo3.sso.service;
import com.migo.service.JedisClient;
import com.migo.utils.JsonUtils;
import com.migo3.sso.pojo.User;
import com.migo3.sso.pojo.UserImpl;
import com.migo3.sso.pojo.UserManager;
import com.speedment.runtime.field.StringField;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.sql.Timestamp;
import java.util.Date;
/**
* Author 知秋
* Created by kauw on 2016/12/29.
*/
@Service
public class UserService {
@Autowired
private JedisClient jedisClient;
@Autowired
private UserManager userManager;
public Boolean doRegister(UserImpl user) {
Date date=new Date();
Timestamp time = new Timestamp(date.getTime());
user.setCreated(time);
user.setUpdated(time);
//密码加密,md5已经不安全,故采用sha256
user.setPassword(DigestUtils.sha256Hex(user.getPassword()));
return userManager.persist(user) != null;
}
public User queryByToken(String token) {
String tokenkey="REDIS_SESSION_TOKEN:" + token;
//根据token取用户信息
String json = jedisClient.get(tokenkey);
if (StringUtils.isEmpty(json)){
return null;
}
//假如出错,为了不影响业务逻辑,故自己来处理异常
try {
this.jedisClient.expire(tokenkey,1800);
return JsonUtils.jsonToPojo(json,User.class);
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
public String doLogin(String username, String password) {
User user=userManager.stream()
.filter(User.USERNAME.equal(username))
.filter(User.PASSWORD.equal(DigestUtils.sha256Hex(password)))
.findAny().orElse(null);
//生成token
String token=DigestUtils.md5Hex(System.currentTimeMillis()+username);
this.jedisClient.set("REDIS_SESSION_TOKEN:"+token, JsonUtils.objectToJson(user));
return token;
}
public Boolean check(String param, Integer type) {
StringField userparam;
switch (type){
case 1:
userparam = User.USERNAME;
break;
case 2:
userparam=User.PHONE;
break;
case 3:
userparam=User.EMAIL;
break;
default:
return null;
}
return null!= userManager.stream()
.filter(userparam.equal(param))
.findAny()
.orElse(null);
/* if (type==1)return userManager.stream().filter(User.USERNAME.equal(param)).findAny().orElse(null)!=null;
else if(type==2) return userManager.stream().filter(User.PHONE.equal(param)).findAny().orElse(null)!=null;
else if (type==3) return userManager.stream().filter(User.EMAIL.equal(param)).findAny().orElse(null)!=null;
else return null;*/
}
}
================================================
FILE: migo-Fsso/src/main/json/speedment.json
================================================
{
"config" : {
"expanded" : true,
"companyName" : "company",
"name" : "migo2",
"packageLocation" : "src/main/java/",
"packageName" : "com.migo2.sso",
"dbmses" : [
{
"expanded" : true,
"port" : 3306,
"schemas" : [
{
"tables" : [
{
"expanded" : false,
"primaryKeyColumns" : [
{
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
],
"indexes" : [
{
"expanded" : false,
"unique" : true,
"name" : "PRIMARY",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
],
"enabled" : true
},
{
"expanded" : false,
"unique" : false,
"name" : "category_id",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "category_id",
"ordinalPosition" : 1
}
],
"enabled" : true
},
{
"expanded" : false,
"unique" : false,
"name" : "updated",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "updated",
"ordinalPosition" : 1
}
],
"enabled" : true
}
],
"columns" : [
{
"databaseType" : "java.lang.Long",
"typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper",
"expanded" : false,
"nullable" : false,
"autoIncrement" : true,
"name" : "id",
"ordinalPosition" : 1,
"enabled" : true
},
{
"databaseType" : "java.lang.Long",
"typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper",
"expanded" : false,
"nullable" : false,
"name" : "category_id",
"ordinalPosition" : 2,
"enabled" : true
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "title",
"ordinalPosition" : 3,
"enabled" : true
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "sub_title",
"ordinalPosition" : 4,
"enabled" : true
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "title_desc",
"ordinalPosition" : 5,
"enabled" : true
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "url",
"ordinalPosition" : 6,
"enabled" : true
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "pic",
"ordinalPosition" : 7,
"enabled" : true
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "pic2",
"ordinalPosition" : 8,
"enabled" : true
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "content",
"ordinalPosition" : 9,
"enabled" : true
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "created",
"ordinalPosition" : 10,
"enabled" : true
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "updated",
"ordinalPosition" : 11,
"enabled" : true
}
],
"name" : "tb_content",
"enabled" : false
},
{
"expanded" : false,
"primaryKeyColumns" : [
{
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
],
"indexes" : [
{
"expanded" : false,
"unique" : true,
"name" : "PRIMARY",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
],
"enabled" : true
},
{
"expanded" : false,
"unique" : false,
"name" : "parent_id",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "parent_id",
"ordinalPosition" : 1
},
{
"orderType" : "ASC",
"expanded" : false,
"name" : "status",
"ordinalPosition" : 2
}
],
"enabled" : true
},
{
"expanded" : false,
"unique" : false,
"name" : "sort_order",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "sort_order",
"ordinalPosition" : 1
}
],
"enabled" : true
}
],
"columns" : [
{
"databaseType" : "java.lang.Long",
"typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper",
"expanded" : false,
"nullable" : false,
"autoIncrement" : true,
"name" : "id",
"ordinalPosition" : 1,
"enabled" : true
},
{
"databaseType" : "java.lang.Long",
"expanded" : false,
"nullable" : true,
"name" : "parent_id",
"ordinalPosition" : 2,
"enabled" : true
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "name",
"ordinalPosition" : 3,
"enabled" : true
},
{
"databaseType" : "java.lang.Integer",
"expanded" : false,
"nullable" : true,
"name" : "status",
"ordinalPosition" : 4,
"enabled" : true
},
{
"databaseType" : "java.lang.Integer",
"expanded" : false,
"nullable" : true,
"name" : "sort_order",
"ordinalPosition" : 5,
"enabled" : true
},
{
"databaseType" : "java.lang.Integer",
"expanded" : false,
"nullable" : true,
"name" : "is_parent",
"ordinalPosition" : 6,
"enabled" : true
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "created",
"ordinalPosition" : 7,
"enabled" : true
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "updated",
"ordinalPosition" : 8,
"enabled" : true
}
],
"name" : "tb_content_category",
"enabled" : false
},
{
"expanded" : false,
"primaryKeyColumns" : [
{
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
],
"indexes" : [
{
"expanded" : false,
"unique" : true,
"name" : "PRIMARY",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : false,
"name" : "cid",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "cid",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : false,
"name" : "status",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "status",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : false,
"name" : "updated",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "updated",
"ordinalPosition" : 1
}
]
}
],
"columns" : [
{
"databaseType" : "java.lang.Long",
"typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper",
"expanded" : false,
"nullable" : false,
"name" : "id",
"ordinalPosition" : 1,
"enabled" : true
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : false,
"name" : "title",
"ordinalPosition" : 2,
"enabled" : true
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "sell_point",
"ordinalPosition" : 3,
"enabled" : true
},
{
"databaseType" : "java.lang.Long",
"typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper",
"expanded" : false,
"nullable" : false,
"name" : "price",
"ordinalPosition" : 4,
"enabled" : true
},
{
"databaseType" : "java.lang.Integer",
"typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper",
"expanded" : false,
"nullable" : false,
"name" : "num",
"ordinalPosition" : 5,
"enabled" : true
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "barcode",
"ordinalPosition" : 6,
"enabled" : true
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "image",
"ordinalPosition" : 7,
"enabled" : true
},
{
"databaseType" : "java.lang.Long",
"typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper",
"expanded" : false,
"nullable" : false,
"name" : "cid",
"ordinalPosition" : 8,
"enabled" : true
},
{
"databaseType" : "java.lang.Byte",
"typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper",
"expanded" : false,
"nullable" : false,
"name" : "status",
"ordinalPosition" : 9,
"enabled" : true
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : false,
"name" : "created",
"ordinalPosition" : 10,
"enabled" : true
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : false,
"name" : "updated",
"ordinalPosition" : 11
}
],
"name" : "tb_item",
"enabled" : false
},
{
"expanded" : false,
"primaryKeyColumns" : [
{
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
],
"indexes" : [
{
"expanded" : false,
"unique" : true,
"name" : "PRIMARY",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : false,
"name" : "parent_id",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "parent_id",
"ordinalPosition" : 1
},
{
"orderType" : "ASC",
"expanded" : false,
"name" : "status",
"ordinalPosition" : 2
}
]
},
{
"expanded" : false,
"unique" : false,
"name" : "sort_order",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "sort_order",
"ordinalPosition" : 1
}
]
}
],
"columns" : [
{
"databaseType" : "java.lang.Long",
"typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper",
"expanded" : false,
"nullable" : false,
"autoIncrement" : true,
"name" : "id",
"ordinalPosition" : 1
},
{
"databaseType" : "java.lang.Long",
"expanded" : false,
"nullable" : true,
"name" : "parent_id",
"ordinalPosition" : 2
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "name",
"ordinalPosition" : 3
},
{
"databaseType" : "java.lang.Integer",
"expanded" : false,
"nullable" : true,
"name" : "status",
"ordinalPosition" : 4
},
{
"databaseType" : "java.lang.Integer",
"expanded" : false,
"nullable" : true,
"name" : "sort_order",
"ordinalPosition" : 5
},
{
"databaseType" : "java.lang.Integer",
"expanded" : false,
"nullable" : true,
"name" : "is_parent",
"ordinalPosition" : 6
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "created",
"ordinalPosition" : 7
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "updated",
"ordinalPosition" : 8
}
],
"name" : "tb_item_cat",
"enabled" : false
},
{
"expanded" : false,
"primaryKeyColumns" : [
{
"expanded" : false,
"name" : "item_id",
"ordinalPosition" : 1
}
],
"indexes" : [
{
"expanded" : false,
"unique" : true,
"name" : "PRIMARY",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "item_id",
"ordinalPosition" : 1
}
]
}
],
"columns" : [
{
"databaseType" : "java.lang.Long",
"typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper",
"expanded" : false,
"nullable" : false,
"name" : "item_id",
"ordinalPosition" : 1
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "item_desc",
"ordinalPosition" : 2
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "created",
"ordinalPosition" : 3
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "updated",
"ordinalPosition" : 4
}
],
"name" : "tb_item_desc",
"enabled" : false
},
{
"expanded" : false,
"primaryKeyColumns" : [
{
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
],
"indexes" : [
{
"expanded" : false,
"unique" : true,
"name" : "PRIMARY",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : false,
"name" : "item_cat_id",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "item_cat_id",
"ordinalPosition" : 1
}
]
}
],
"columns" : [
{
"databaseType" : "java.lang.Long",
"typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper",
"expanded" : false,
"nullable" : false,
"autoIncrement" : true,
"name" : "id",
"ordinalPosition" : 1
},
{
"databaseType" : "java.lang.Long",
"expanded" : false,
"nullable" : true,
"name" : "item_cat_id",
"ordinalPosition" : 2
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "param_data",
"ordinalPosition" : 3
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "created",
"ordinalPosition" : 4
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "updated",
"ordinalPosition" : 5
}
],
"name" : "tb_item_param",
"enabled" : false
},
{
"expanded" : false,
"primaryKeyColumns" : [
{
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
],
"indexes" : [
{
"expanded" : false,
"unique" : true,
"name" : "PRIMARY",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : false,
"name" : "item_id",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "item_id",
"ordinalPosition" : 1
}
]
}
],
"columns" : [
{
"databaseType" : "java.lang.Long",
"typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper",
"expanded" : false,
"nullable" : false,
"autoIncrement" : true,
"name" : "id",
"ordinalPosition" : 1
},
{
"databaseType" : "java.lang.Long",
"expanded" : false,
"nullable" : true,
"name" : "item_id",
"ordinalPosition" : 2
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "param_data",
"ordinalPosition" : 3
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "created",
"ordinalPosition" : 4
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "updated",
"ordinalPosition" : 5
}
],
"name" : "tb_item_param_item",
"enabled" : false
},
{
"expanded" : false,
"primaryKeyColumns" : [
{
"expanded" : false,
"name" : "order_id",
"ordinalPosition" : 1
}
],
"indexes" : [
{
"expanded" : false,
"unique" : true,
"name" : "PRIMARY",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "order_id",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : false,
"name" : "buyer_nick",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "buyer_nick",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : false,
"name" : "create_time",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "create_time",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : false,
"name" : "payment_type",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "payment_type",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : false,
"name" : "status",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "status",
"ordinalPosition" : 1
}
]
}
],
"columns" : [
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : false,
"name" : "order_id",
"ordinalPosition" : 1
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "payment",
"ordinalPosition" : 2
},
{
"databaseType" : "java.lang.Integer",
"expanded" : false,
"nullable" : true,
"name" : "payment_type",
"ordinalPosition" : 3
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "post_fee",
"ordinalPosition" : 4
},
{
"databaseType" : "java.lang.Integer",
"expanded" : false,
"nullable" : true,
"name" : "status",
"ordinalPosition" : 5
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "create_time",
"ordinalPosition" : 6
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "update_time",
"ordinalPosition" : 7
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "payment_time",
"ordinalPosition" : 8
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "consign_time",
"ordinalPosition" : 9
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "end_time",
"ordinalPosition" : 10
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "close_time",
"ordinalPosition" : 11
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "shipping_name",
"ordinalPosition" : 12
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "shipping_code",
"ordinalPosition" : 13
},
{
"databaseType" : "java.lang.Long",
"expanded" : false,
"nullable" : true,
"name" : "user_id",
"ordinalPosition" : 14
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "buyer_message",
"ordinalPosition" : 15
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "buyer_nick",
"ordinalPosition" : 16
},
{
"databaseType" : "java.lang.Integer",
"expanded" : false,
"nullable" : true,
"name" : "buyer_rate",
"ordinalPosition" : 17
}
],
"name" : "tb_order",
"enabled" : false
},
{
"expanded" : false,
"primaryKeyColumns" : [
{
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
],
"indexes" : [
{
"expanded" : false,
"unique" : true,
"name" : "PRIMARY",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : false,
"name" : "item_id",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "item_id",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : false,
"name" : "order_id",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "order_id",
"ordinalPosition" : 1
}
]
}
],
"columns" : [
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : false,
"name" : "id",
"ordinalPosition" : 1
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : false,
"name" : "item_id",
"ordinalPosition" : 2
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : false,
"name" : "order_id",
"ordinalPosition" : 3
},
{
"databaseType" : "java.lang.Integer",
"expanded" : false,
"nullable" : true,
"name" : "num",
"ordinalPosition" : 4
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "title",
"ordinalPosition" : 5
},
{
"databaseType" : "java.lang.Long",
"expanded" : false,
"nullable" : true,
"name" : "price",
"ordinalPosition" : 6
},
{
"databaseType" : "java.lang.Long",
"expanded" : false,
"nullable" : true,
"name" : "total_fee",
"ordinalPosition" : 7
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "pic_path",
"ordinalPosition" : 8
}
],
"name" : "tb_order_item",
"enabled" : false
},
{
"expanded" : false,
"primaryKeyColumns" : [
{
"expanded" : false,
"name" : "order_id",
"ordinalPosition" : 1
}
],
"indexes" : [
{
"expanded" : false,
"unique" : true,
"name" : "PRIMARY",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "order_id",
"ordinalPosition" : 1
}
]
}
],
"columns" : [
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : false,
"name" : "order_id",
"ordinalPosition" : 1
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "receiver_name",
"ordinalPosition" : 2
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "receiver_phone",
"ordinalPosition" : 3
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "receiver_mobile",
"ordinalPosition" : 4
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "receiver_state",
"ordinalPosition" : 5
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "receiver_city",
"ordinalPosition" : 6
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "receiver_district",
"ordinalPosition" : 7
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "receiver_address",
"ordinalPosition" : 8
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "receiver_zip",
"ordinalPosition" : 9
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "created",
"ordinalPosition" : 10
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : true,
"name" : "updated",
"ordinalPosition" : 11
}
],
"name" : "tb_order_shipping",
"enabled" : false
},
{
"expanded" : false,
"primaryKeyColumns" : [
{
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
],
"indexes" : [
{
"expanded" : false,
"unique" : true,
"name" : "email",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "email",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : true,
"name" : "phone",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "phone",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : true,
"name" : "PRIMARY",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "id",
"ordinalPosition" : 1
}
]
},
{
"expanded" : false,
"unique" : true,
"name" : "username",
"indexColumns" : [
{
"orderType" : "ASC",
"expanded" : false,
"name" : "username",
"ordinalPosition" : 1
}
]
}
],
"columns" : [
{
"databaseType" : "java.lang.Long",
"typeMapper" : "com.speedment.runtime.typemapper.primitive.PrimitiveTypeMapper",
"expanded" : false,
"nullable" : false,
"autoIncrement" : true,
"name" : "id",
"ordinalPosition" : 1
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : false,
"name" : "username",
"ordinalPosition" : 2
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : false,
"name" : "password",
"ordinalPosition" : 3
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "phone",
"ordinalPosition" : 4
},
{
"databaseType" : "java.lang.String",
"expanded" : false,
"nullable" : true,
"name" : "email",
"ordinalPosition" : 5
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : false,
"name" : "created",
"ordinalPosition" : 6
},
{
"databaseType" : "java.sql.Timestamp",
"expanded" : false,
"nullable" : false,
"name" : "updated",
"ordinalPosition" : 7
}
],
"name" : "tb_user",
"alias" : "user",
"packageName" : "com.migo2.sso.pojo",
"enabled" : true
}
],
"expanded" : true,
"name" : "migo2",
"enabled" : true
}
],
"typeName" : "MySQL",
"ipAddress" : "127.0.0.1",
"name" : "db0",
"enabled" : true,
"username" : "root"
}
],
"enabled" : true
}
}
================================================
FILE: migo-Fsso/src/main/resources/application.properties
================================================
dbms.username=root
dbms.password=123
dbms.schema=migo2
server.port=8084
server.address=192.168.1.220
server.sessionTimeout=30
server.contextPath=/
spring.datasource.url=jdbc:mysql://localhost:3306/migo2?characterEncoding=utf-8
spring.datasource.username=root
spring.datasource.password=123
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
# Enable template caching.
spring.thymeleaf.cache=true
# Check that the templates location exists.
spring.thymeleaf.check-template-location=true
# Content-Type value.
spring.thymeleaf.content-type=text/html
# Enable MVC Thymeleaf view resolution.
spring.thymeleaf.enabled=true
# Template encoding.
spring.thymeleaf.encoding=UTF-8
# Comma-separated list of view names that should be excluded from resolution.
spring.thymeleaf.excluded-view-names=
# Template mode to be applied to templates. See also StandardTemplateModeHandlers.
spring.thymeleaf.mode=HTML5
# Prefix that gets prepended to view names when building a URL.
#spring.thymeleaf.prefix=classpath:/templates/
# Suffix that gets appended to view names when building a URL.
spring.thymeleaf.suffix=.html
# spring.thymeleaf.template-resolver-order=
# Order of the template resolver in the chain. spring.thymeleaf.view-names=
# Comma-separated list of view names that can be resolved.
================================================
FILE: migo-Fsso/src/main/resources/log4j.properties
================================================
log4j.rootLogger=DEBUG,A1
log4j.logger.com.migo3 = DEBUG
log4j.logger.com.speedment = DEBUG
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss,SSS} [%t] [%c]-[%p] %m%n
================================================
FILE: migo-Fsso/src/main/resources/templates/login.html
================================================
登录咪购
================================================
FILE: migo-Fsso/src/main/resources/templates/register.html
================================================
注册-个人用户
================================================
FILE: migo-Fsso/src/test/java/com/migo3/sso/DemoApplicationTests.java
================================================
package com.migo3.sso;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
@RunWith(SpringRunner.class)
@SpringBootTest
public class DemoApplicationTests {
@Test
public void contextLoads() {
}
}
================================================
FILE: migo-common/pom.xml
================================================
4.0.0
com.migo
parent
2.0-SNAPSHOT
common
2.0-SNAPSHOT
jar
joda-time
joda-time
com.fasterxml.jackson.core
jackson-databind
org.springframework
spring-web
4.3.5.RELEASE
javax.servlet
servlet-api
provided
org.apache.commons
commons-lang3
org.apache.commons
commons-io
commons-net
commons-net
redis.clients
jedis
fastdfs_client
fastdfs_client
1.25
org.apache.httpcomponents
httpclient
org.quartz-scheduler
quartz
junit
junit
test
org.slf4j
slf4j-log4j12
================================================
FILE: migo-common/src/main/java/com/migo/messageconverter/CallbackMappingJackson2HttpMessageConverter.java
================================================
package com.migo.messageconverter;
import com.fasterxml.jackson.core.JsonEncoding;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.http.HttpOutputMessage;
import org.springframework.http.converter.HttpMessageNotWritableException;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
public class CallbackMappingJackson2HttpMessageConverter extends MappingJackson2HttpMessageConverter {
// 做jsonp的支持的标识,在请求参数中加该参数
private String callbackName;
@Override
protected void writeInternal(Object object, HttpOutputMessage outputMessage) throws IOException,
HttpMessageNotWritableException {
// 从threadLocal中获取当前的Request对象
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder
.currentRequestAttributes()).getRequest();
String callbackParam = request.getParameter(callbackName);
if (StringUtils.isEmpty(callbackParam)) {
// 没有找到callback参数,直接返回json数据
super.writeInternal(object, outputMessage);
} else {
JsonEncoding encoding = getJsonEncoding(outputMessage.getHeaders().getContentType());
try {
String result = callbackParam + "(" + super.getObjectMapper().writeValueAsString(object)
+ ");";
IOUtils.write(result, outputMessage.getBody(), encoding.getJavaName());
} catch (JsonProcessingException ex) {
throw new HttpMessageNotWritableException("Could not write JSON: " + ex.getMessage(), ex);
}
}
}
public String getCallbackName() {
return callbackName;
}
public void setCallbackName(String callbackName) {
this.callbackName = callbackName;
}
}
================================================
FILE: migo-common/src/main/java/com/migo/pojo/CatNode.java
================================================
package com.migo.pojo;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* Author 知秋
* Created by kauw on 2016/10/9.
*/
public class CatNode {
@JsonProperty("u")
private String url;
@JsonProperty("n")
private String name;
@JsonProperty("i")
private List items;
public List getItems() {
return items;
}
public void setItems(List items) {
this.items = items;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
}
================================================
FILE: migo-common/src/main/java/com/migo/pojo/EasyUIDataGridResult.java
================================================
package com.migo.pojo;
import java.util.List;
/**
* Author 知秋
* Created by kauw on 2016/9/23.
*/
public class EasyUIDataGridResult {
private long total;
private List> rows;
public EasyUIDataGridResult() {
}
public EasyUIDataGridResult(List> rows, long total) {
this.rows = rows;
this.total = total;
}
public List> getRows() {
return rows;
}
public void setRows(List> rows) {
this.rows = rows;
}
public long getTotal() {
return total;
}
public void setTotal(long total) {
this.total = total;
}
}
================================================
FILE: migo-common/src/main/java/com/migo/pojo/ItemCatResult.java
================================================
package com.migo.pojo;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Author 知秋
* Created by kauw on 2016/10/9.
*/
public class ItemCatResult {
@JsonProperty("data")
private List catNodes=new ArrayList<>();
public List getCatNodes() {
return catNodes;
}
public void setCatNodes(List catNodes) {
this.catNodes = catNodes;
}
}
================================================
FILE: migo-common/src/main/java/com/migo/service/JedisClient.java
================================================
package com.migo.service;
/**
* Author 知秋
* Created by kauw on 2016/12/7.
*/
public interface JedisClient {
String get(String key);
String set(String key,String value);
String set(String key,String value,Integer seconds);
String hget(String hkey,String key);
Long hset(String hkey,String key,String value);
Long incr(String key);
Long decr(String key);
Long expire(String key,int second);
Long ttl(String key);
Long del(String key);
Long hdel(String hkey,String key);
}
================================================
FILE: migo-common/src/main/java/com/migo/service/WorkCallback.java
================================================
package com.migo.service;
/**
* Author 知秋
* Created by kauw on 2016/12/8.
*/
public interface WorkCallback {
T doWorkCallback(E e);
}
================================================
FILE: migo-common/src/main/java/com/migo/service/impl/JedisClientCluster.java
================================================
package com.migo.service.impl;
import com.migo.service.JedisClient;
import org.springframework.beans.factory.annotation.Autowired;
import redis.clients.jedis.JedisCluster;
/**
* Author 知秋
* Created by kauw on 2016/12/7.
*/
public class JedisClientCluster implements JedisClient {
/**
* 有些系统可能不需要添加redis缓存,反而依赖了common项目,但是自己容器内又没有对redis做相应配置,
* 故 required = false 这样就可以做到,容器内有则注入,没有就忽略
*/
@Autowired(required = false)
private JedisCluster jedisCluster;
@Override
public String get(String key) {
return jedisCluster.get(key);
}
@Override
public String set(String key, String value) {
return jedisCluster.set(key, value);
}
@Override
public String set(String key, String value, Integer seconds) {
return jedisCluster.setex(key,seconds,value);
}
@Override
public String hget(String hkey, String key) {
return jedisCluster.hget(hkey, key);
}
@Override
public Long hset(String hkey, String key, String value) {
return jedisCluster.hset(hkey, key, value);
}
@Override
public Long incr(String key) {
return jedisCluster.incr(key);
}
@Override
public Long decr(String key) {
return jedisCluster.decr(key);
}
@Override
public Long expire(String key, int second) {
return jedisCluster.expire(key, second);
}
@Override
public Long ttl(String key) {
return jedisCluster.ttl(key);
}
@Override
public Long del(String key) {
return jedisCluster.del(key);
}
@Override
public Long hdel(String hkey, String key) {
return jedisCluster.hdel(hkey,key);
}
}
================================================
FILE: migo-common/src/main/java/com/migo/service/impl/JedisClientSingle.java
================================================
package com.migo.service.impl;
import com.migo.service.JedisClient;
import com.migo.service.WorkCallback;
import org.springframework.beans.factory.annotation.Autowired;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
/**
* Author 知秋
* Created by kauw on 2016/12/7.
*/
public class JedisClientSingle implements JedisClient {
/**
* 有些系统可能不需要添加redis缓存,反而依赖了common项目,但是自己容器内又没有对redis做相应配置,
* 故 required = false 这样就可以做到,容器内有则注入,没有就忽略
*/
@Autowired(required = false)
private JedisPool jedisPool;
private T excute(WorkCallback workCallback){
Jedis jedis=null;
try {
jedis = jedisPool.getResource();
return workCallback.doWorkCallback(jedis);
} catch (Exception e) {
e.printStackTrace();
}finally {
if (null !=jedis){
jedis.close();
}
}
return null;
}
@Override
public String get(final String key) {
/*Jedis jedis=jedisPool.getResource();
String result=jedis.get(key);
jedis.close();
return result;*/
return this.excute(new WorkCallback() {
@Override
public String doWorkCallback(Jedis jedis) {
return jedis.get(key);
}
});
}
@Override
public String set(final String key, final String value) {
return this.excute(new WorkCallback() {
@Override
public String doWorkCallback(Jedis jedis) {
return jedis.set(key, value);
}
});
}
@Override
public String set(final String key, final String value, final Integer seconds) {
return this.excute(new WorkCallback() {
@Override
public String doWorkCallback(Jedis jedis) {
return jedis.setex(key,seconds,value);
}
});
}
@Override
public String hget(final String hkey, final String key) {
/*Jedis jedis=jedisPool.getResource();
String result=jedis.hget(hkey, key);
jedis.close();
return result;*/
return this.excute(new WorkCallback() {
@Override
public String doWorkCallback(Jedis jedis) {
return jedis.hget(hkey, key);
}
});
}
@Override
public Long hset(final String hkey, final String key, final String value) {
/*Jedis jedis=jedisPool.getResource();
Long result = jedis.hset(hkey, key, value);
jedis.close();
return result;*/
return this.excute(new WorkCallback() {
@Override
public Long doWorkCallback(Jedis jedis) {
return jedis.hset(hkey, key, value);
}
});
}
@Override
public Long incr(final String key) {
/*Jedis jedis=jedisPool.getResource();
Long result = jedis.incr(key);
jedis.close();
return result;*/
return this.excute(new WorkCallback() {
@Override
public Long doWorkCallback(Jedis jedis) {
return jedis.incr(key);
}
});
}
@Override
public Long decr(final String key) {
/*Jedis jedis=jedisPool.getResource();
Long result = jedis.decr(key);
jedis.close();
return result;*/
return this.excute(new WorkCallback() {
@Override
public Long doWorkCallback(Jedis jedis) {
return jedis.decr(key);
}
});
}
@Override
public Long expire(final String key, final int second) {
/*Jedis jedis=jedisPool.getResource();
Long result = jedis.expire(key, second);
jedis.close();
return result;*/
return this.excute(new WorkCallback() {
@Override
public Long doWorkCallback(Jedis jedis) {
return jedis.expire(key, second);
}
});
}
@Override
public Long ttl(final String key) {
/*Jedis jedis=jedisPool.getResource();
Long result = jedis.ttl(key);
jedis.close();
return result;*/
return this.excute(new WorkCallback() {
@Override
public Long doWorkCallback(Jedis jedis) {
return jedis.ttl(key);
}
});
}
@Override
public Long del(final String key) {
/*Jedis jedis=jedisPool.getResource();
Long result = jedis.del(key);
jedis.close();
return result;*/
return this.excute(new WorkCallback() {
@Override
public Long doWorkCallback(Jedis jedis) {
return jedis.del(key);
}
});
}
@Override
public Long hdel(final String hkey, final String key) {
/*Jedis jedis=jedisPool.getResource();
Long result = jedis.hdel(hkey, key);
jedis.close();
return result;*/
return this.excute(new WorkCallback() {
@Override
public Long doWorkCallback(Jedis jedis) {
return jedis.hdel(hkey,key);
}
});
}
}
================================================
FILE: migo-common/src/main/java/com/migo/utils/CookieUtils.java
================================================
package com.migo.utils;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
/**
*
* Cookie 工具类
*
*/
public final class CookieUtils {
/**
* 得到Cookie的值, 不编码
*
* @param request
* @param cookieName
* @return
*/
public static String getCookieValue(HttpServletRequest request, String cookieName) {
return getCookieValue(request, cookieName, false);
}
/**
* 得到Cookie的值,
*
* @param request
* @param cookieName
* @return
*/
public static String getCookieValue(HttpServletRequest request, String cookieName, boolean isDecoder) {
Cookie[] cookieList = request.getCookies();
if (cookieList == null || cookieName == null) {
return null;
}
String retValue = null;
try {
for (int i = 0; i < cookieList.length; i++) {
if (cookieList[i].getName().equals(cookieName)) {
if (isDecoder) {
retValue = URLDecoder.decode(cookieList[i].getValue(), "UTF-8");
} else {
retValue = cookieList[i].getValue();
}
break;
}
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return retValue;
}
/**
* 得到Cookie的值,
*
* @param request
* @param cookieName
* @return
*/
public static String getCookieValue(HttpServletRequest request, String cookieName, String encodeString) {
Cookie[] cookieList = request.getCookies();
if (cookieList == null || cookieName == null) {
return null;
}
String retValue = null;
try {
for (int i = 0; i < cookieList.length; i++) {
if (cookieList[i].getName().equals(cookieName)) {
retValue = URLDecoder.decode(cookieList[i].getValue(), encodeString);
break;
}
}
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
return retValue;
}
/**
* 设置Cookie的值 不设置生效时间默认浏览器关闭即失效,也不编码
*/
public static void setCookie(HttpServletRequest request, HttpServletResponse response, String cookieName,
String cookieValue) {
setCookie(request, response, cookieName, cookieValue, -1);
}
/**
* 设置Cookie的值 在指定时间内生效,但不编码
*/
public static void setCookie(HttpServletRequest request, HttpServletResponse response, String cookieName,
String cookieValue, int cookieMaxage) {
setCookie(request, response, cookieName, cookieValue, cookieMaxage, false);
}
/**
* 设置Cookie的值 不设置生效时间,但编码
*/
public static void setCookie(HttpServletRequest request, HttpServletResponse response, String cookieName,
String cookieValue, boolean isEncode) {
setCookie(request, response, cookieName, cookieValue, -1, isEncode);
}
/**
* 设置Cookie的值 在指定时间内生效, 编码参数
*/
public static void setCookie(HttpServletRequest request, HttpServletResponse response, String cookieName,
String cookieValue, int cookieMaxage, boolean isEncode) {
doSetCookie(request, response, cookieName, cookieValue, cookieMaxage, isEncode);
}
/**
* 设置Cookie的值 在指定时间内生效, 编码参数(指定编码)
*/
public static void setCookie(HttpServletRequest request, HttpServletResponse response, String cookieName,
String cookieValue, int cookieMaxage, String encodeString) {
doSetCookie(request, response, cookieName, cookieValue, cookieMaxage, encodeString);
}
/**
* 删除Cookie带cookie域名
*/
public static void deleteCookie(HttpServletRequest request, HttpServletResponse response,
String cookieName) {
doSetCookie(request, response, cookieName, "", -1, false);
}
/**
* 设置Cookie的值,并使其在指定时间内生效
*
* @param cookieMaxage cookie生效的最大秒数
*/
private static final void doSetCookie(HttpServletRequest request, HttpServletResponse response,
String cookieName, String cookieValue, int cookieMaxage, boolean isEncode) {
try {
if (cookieValue == null) {
cookieValue = "";
} else if (isEncode) {
cookieValue = URLEncoder.encode(cookieValue, "utf-8");
}
Cookie cookie = new Cookie(cookieName, cookieValue);
if (cookieMaxage > 0)
cookie.setMaxAge(cookieMaxage);
if (null != request) {// 设置域名的cookie
String domainName = getDomainName(request);
System.out.println(domainName);
if (!"localhost".equals(domainName)) {
cookie.setDomain(domainName);
}
}
cookie.setPath("/");
response.addCookie(cookie);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* 设置Cookie的值,并使其在指定时间内生效
*
* @param cookieMaxage cookie生效的最大秒数
*/
private static final void doSetCookie(HttpServletRequest request, HttpServletResponse response,
String cookieName, String cookieValue, int cookieMaxage, String encodeString) {
try {
if (cookieValue == null) {
cookieValue = "";
} else {
cookieValue = URLEncoder.encode(cookieValue, encodeString);
}
Cookie cookie = new Cookie(cookieName, cookieValue);
if (cookieMaxage > 0)
cookie.setMaxAge(cookieMaxage);
if (null != request) {// 设置域名的cookie
String domainName = getDomainName(request);
System.out.println(domainName);
if (!"localhost".equals(domainName)) {
cookie.setDomain(domainName);
}
}
cookie.setPath("/");
response.addCookie(cookie);
} catch (Exception e) {
e.printStackTrace();
}
}
/**
* 得到cookie的域名
*/
private static final String getDomainName(HttpServletRequest request) {
String domainName = null;
String serverName = request.getRequestURL().toString();
if (serverName == null || serverName.equals("")) {
domainName = "";
} else {
serverName = serverName.toLowerCase();
serverName = serverName.substring(7);
final int end = serverName.indexOf("/");
serverName = serverName.substring(0, end);
final String[] domains = serverName.split("\\.");
int len = domains.length;
if (len > 3) {
// www.xxx.com.cn
domainName = "." + domains[len - 3] + "." + domains[len - 2] + "." + domains[len - 1];
} else if (len <= 3 && len > 1) {
// xxx.com or xxx.cn
domainName = "." + domains[len - 2] + "." + domains[len - 1];
} else {
domainName = serverName;
}
}
if (domainName != null && domainName.indexOf(":") > 0) {
String[] ary = domainName.split("\\:");
domainName = ary[0];
}
return domainName;
}
}
================================================
FILE: migo-common/src/main/java/com/migo/utils/FastDFSClient.java
================================================
package com.migo.utils;
import org.csource.common.NameValuePair;
import org.csource.fastdfs.*;
public class FastDFSClient {
private TrackerClient trackerClient = null;
private TrackerServer trackerServer = null;
private StorageServer storageServer = null;
private StorageClient1 storageClient = null;
public FastDFSClient(String conf) throws Exception {
if (conf.contains("classpath:")) {
conf = conf.replace("classpath:", this.getClass().getResource("/").getPath());
}
ClientGlobal.init(conf);
trackerClient = new TrackerClient();
trackerServer = trackerClient.getConnection();
storageServer = null;
storageClient = new StorageClient1(trackerServer, storageServer);
}
/**
* 上传文件方法
* Title: uploadFile
* Description:
* @param fileName 文件全路径
* @param extName 文件扩展名,不包含(.)
* @param metas 文件扩展信息
* @return
* @throws Exception
*/
public String uploadFile(String fileName, String extName, NameValuePair[] metas) throws Exception {
String result = storageClient.upload_file1(fileName, extName, metas);
return result;
}
public String uploadFile(String fileName) throws Exception {
return uploadFile(fileName, null, null);
}
public String uploadFile(String fileName, String extName) throws Exception {
return uploadFile(fileName, extName, null);
}
/**
* 上传文件方法
* Title: uploadFile
* Description:
* @param fileContent 文件的内容,字节数组
* @param extName 文件扩展名
* @param metas 文件扩展信息
* @return
* @throws Exception
*/
public String uploadFile(byte[] fileContent, String extName, NameValuePair[] metas) throws Exception {
String result = storageClient.upload_file1(fileContent, extName, metas);
return result;
}
public String uploadFile(byte[] fileContent) throws Exception {
return uploadFile(fileContent, null, null);
}
public String uploadFile(byte[] fileContent, String extName) throws Exception {
return uploadFile(fileContent, extName, null);
}
}
================================================
FILE: migo-common/src/main/java/com/migo/utils/HttpClientUtil.java
================================================
package com.migo.utils;
import org.apache.http.NameValuePair;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.message.BasicNameValuePair;
import org.apache.http.util.EntityUtils;
import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class HttpClientUtil {
public static String doGet(String url, Map param) {
// 创建Httpclient对象
CloseableHttpClient httpclient = HttpClients.createDefault();
String resultString = "";
CloseableHttpResponse response = null;
try {
// 创建uri
URIBuilder builder = new URIBuilder(url);
if (param != null) {
for (String key : param.keySet()) {
builder.addParameter(key, param.get(key));
}
}
URI uri = builder.build();
// 创建http GET请求
HttpGet httpGet = new HttpGet(uri);
// 执行请求
response = httpclient.execute(httpGet);
// 判断返回状态是否为200
if (response.getStatusLine().getStatusCode() == 200) {
resultString = EntityUtils.toString(response.getEntity(), "UTF-8");
}
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
if (response != null) {
response.close();
}
httpclient.close();
} catch (IOException e) {
e.printStackTrace();
}
}
return resultString;
}
public static String doGet(String url) {
return doGet(url, null);
}
public static String doPost(String url, Map param) {
// 创建Httpclient对象
CloseableHttpClient httpClient = HttpClients.createDefault();
CloseableHttpResponse response = null;
String resultString = "";
try {
// 创建Http Post请求
HttpPost httpPost = new HttpPost(url);
// 创建参数列表
if (param != null) {
List paramList = new ArrayList<>();
for (String key : param.keySet()) {
paramList.add(new BasicNameValuePair(key, param.get(key)));
}
// 模拟表单
UrlEncodedFormEntity entity = new UrlEncodedFormEntity(paramList);
httpPost.setEntity(entity);
}
// 执行http请求
response = httpClient.execute(httpPost);
resultString = EntityUtils.toString(response.getEntity(), "utf-8");
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
response.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return resultString;
}
public static String doPost(String url) {
return doPost(url, null);
}
public static String doPostJson(String url, String json) {
// 创建Httpclient对象
CloseableHttpClient httpClient = HttpClients.createDefault();
CloseableHttpResponse response = null;
String resultString = "";
try {
// 创建Http Post请求
HttpPost httpPost = new HttpPost(url);
// 创建请求内容
StringEntity entity = new StringEntity(json, ContentType.APPLICATION_JSON);
httpPost.setEntity(entity);
// 执行http请求
response = httpClient.execute(httpPost);
resultString = EntityUtils.toString(response.getEntity(), "utf-8");
} catch (Exception e) {
e.printStackTrace();
} finally {
try {
response.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return resultString;
}
}
================================================
FILE: migo-common/src/main/java/com/migo/utils/IDUtils.java
================================================
package com.migo.utils;
import java.util.Random;
/**
* 各种id生成策略
*/
public class IDUtils {
/**
* 图片名生成
*/
public static String genImageName() {
//取当前时间的长整形值包含毫秒
long millis = System.currentTimeMillis();
//long millis = System.nanoTime();
//加上三位随机数
Random random = new Random();
int end3 = random.nextInt(999);
//如果不足三位前面补0
String str = millis + String.format("%03d", end3);
return str;
}
/**
* 商品id生成
*/
public static long genItemId() {
//取当前时间的长整形值包含毫秒
long millis = System.currentTimeMillis();
//long millis = System.nanoTime();
//加上两位随机数
Random random = new Random();
int end2 = random.nextInt(99);
//如果不足两位前面补0
String str = millis + String.format("%02d", end2);
long id = new Long(str);
return id;
}
public static void main(String[] args) {
for(int i=0;i< 100;i++)
System.out.println(genItemId());
}
}
================================================
FILE: migo-common/src/main/java/com/migo/utils/JsonUtils.java
================================================
package com.migo.utils;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.List;
public class JsonUtils {
// 定义jackson对象
private static final ObjectMapper MAPPER = new ObjectMapper();
/**
* 将对象转换成json字符串。
* Title: pojoToJson
* Description:
* @param data
* @return
*/
public static String objectToJson(Object data) {
try {
String string = MAPPER.writeValueAsString(data);
return string;
} catch (JsonProcessingException e) {
e.printStackTrace();
}
return null;
}
/**
* 将json结果集转化为对象
*
* @param jsonData json数据
* @param beanType 对象中的object类型
* @return
*/
public static T jsonToPojo(String jsonData, Class beanType) {
try {
T t = MAPPER.readValue(jsonData, beanType);
return t;
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
/**
* 将json数据转换成pojo对象list
* Title: jsonToList
* Description:
* @param jsonData
* @param beanType
* @return
*/
public static List jsonToList(String jsonData, Class beanType) {
JavaType javaType = MAPPER.getTypeFactory().constructParametricType(List.class, beanType);
try {
List list = MAPPER.readValue(jsonData, javaType);
return list;
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
}
================================================
FILE: migo-manage/manage-mapper/pom.xml
================================================
manage
com.migo
2.0-SNAPSHOT
4.0.0
manage-mapper
jar
com.migo
manage-pojo
2.0-SNAPSHOT
org.mybatis
mybatis
tk.mybatis
mapper
================================================
FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ContentCategoryMapper.java
================================================
package com.migo.mapper;
import com.migo.pojo.ContentCategory;
import tk.mybatis.mapper.common.Mapper;
/**
* Author 知秋
* Created by kauw on 2016/11/20.
*/
public interface ContentCategoryMapper extends Mapper {
}
================================================
FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ContentMapper.java
================================================
package com.migo.mapper;
import com.migo.pojo.Content;
import tk.mybatis.mapper.common.Mapper;
/**
* Author 知秋
* Created by kauw on 2016/12/3.
*/
public interface ContentMapper extends Mapper {
}
================================================
FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ItemCatMapper.java
================================================
package com.migo.mapper;
import com.migo.pojo.ItemCat;
import tk.mybatis.mapper.common.Mapper;
/**
* Author 知秋
* Created by kauw on 2016/11/8.
*/
public interface ItemCatMapper extends Mapper {
}
================================================
FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ItemDescMapper.java
================================================
package com.migo.mapper;
import com.migo.pojo.ItemDesc;
import tk.mybatis.mapper.common.Mapper;
/**
* Author 知秋
* Created by kauw on 2016/11/12.
*/
public interface ItemDescMapper extends Mapper {
}
================================================
FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ItemMapper.java
================================================
package com.migo.mapper;
import com.migo.pojo.Item;
import tk.mybatis.mapper.common.Mapper;
/**
* Author 知秋
* Created by kauw on 2016/11/12.
*/
public interface ItemMapper extends Mapper- {
}
================================================
FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ItemParamItemMapper.java
================================================
package com.migo.mapper;
import com.migo.pojo.ItemParamItem;
import tk.mybatis.mapper.common.Mapper;
/**
* Author 知秋
* Created by kauw on 2016/11/14.
*/
public interface ItemParamItemMapper extends Mapper
{
}
================================================
FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ItemParamMapper.java
================================================
package com.migo.mapper;
import com.migo.pojo.ItemParam;
import tk.mybatis.mapper.common.Mapper;
/**
* Author 知秋
* Created by kauw on 2016/11/14.
*/
public interface ItemParamMapper extends Mapper{
}
================================================
FILE: migo-manage/manage-mapper/src/main/java/com/migo/mapper/ItemparamexdMapper.java
================================================
package com.migo.mapper;
import com.migo.pojo.ItemParamexd;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* Author 知秋
* Created by kauw on 2016/10/6.
*/
public interface ItemparamexdMapper {
@Select(" select\n" +
" a.id id ,a.item_cat_id itemCatId,a.created created,a.updated updated,a.param_data paramData,b.`name` itemCatName\n" +
" FROM\n" +
" tb_item_param AS a LEFT JOIN tb_item_cat as b\n" +
" ON\n" +
" a.item_cat_id=b.id ")
List selectList();
}
================================================
FILE: migo-manage/manage-pojo/pom.xml
================================================
manage
com.migo
2.0-SNAPSHOT
4.0.0
manage-pojo
jar
javax.persistence
persistence-api
1.0
================================================
FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/BasePojo.java
================================================
package com.migo.pojo;
import java.util.Date;
public abstract class BasePojo {
private Date created;
private Date updated;
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Date getUpdated() {
return updated;
}
public void setUpdated(Date updated) {
this.updated = updated;
}
}
================================================
FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/Content.java
================================================
package com.migo.pojo;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name = "tb_content")
public class Content extends BasePojo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "category_id")
private Long categoryId;
private String title;
@Column(name = "sub_title")
private String subTitle;
@Column(name = "title_desc")
private String titleDesc;
private String url;
private String pic;
private String pic2;
private String content;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getCategoryId() {
return categoryId;
}
public void setCategoryId(Long categoryId) {
this.categoryId = categoryId;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getSubTitle() {
return subTitle;
}
public void setSubTitle(String subTitle) {
this.subTitle = subTitle;
}
public String getTitleDesc() {
return titleDesc;
}
public void setTitleDesc(String titleDesc) {
this.titleDesc = titleDesc;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getPic() {
return pic;
}
public void setPic(String pic) {
this.pic = pic;
}
public String getPic2() {
return pic2;
}
public void setPic2(String pic2) {
this.pic2 = pic2;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content;
}
}
================================================
FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/ContentCategory.java
================================================
package com.migo.pojo;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name = "tb_content_category")
public class ContentCategory extends BasePojo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "parent_id")
private Long parentId;
private String name;
private Integer status;
@Column(name = "sort_order")
private Integer sortOrder;
@Column(name = "is_parent")
private Boolean isParent;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getParentId() {
return parentId;
}
public void setParentId(Long parentId) {
this.parentId = parentId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getSortOrder() {
return sortOrder;
}
public void setSortOrder(Integer sortOrder) {
this.sortOrder = sortOrder;
}
public Boolean getIsParent() {
return isParent;
}
public void setIsParent(Boolean isParent) {
this.isParent = isParent;
}
// 扩展字段,支持EasyUItree的显示,这样就可以避免再写一个第一版中的EasyuiTreeNode类,同时也省了第一版中
//在service中的一系列对easyuiTreeNode的处理
public String getText() {
return getName();
}
public String getState() {
return getIsParent() ? "closed" : "open";
}
}
================================================
FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/Item.java
================================================
package com.migo.pojo;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name = "tb_item")
public class Item extends BasePojo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String title;
private String sellPoint;
private Long price;
private Integer num;
private String barcode;
private String image;
private Long cid;
private Integer status;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getSellPoint() {
return sellPoint;
}
public void setSellPoint(String sellPoint) {
this.sellPoint = sellPoint;
}
public Long getPrice() {
return price;
}
public void setPrice(Long price) {
this.price = price;
}
public Integer getNum() {
return num;
}
public void setNum(Integer num) {
this.num = num;
}
public String getBarcode() {
return barcode;
}
public void setBarcode(String barcode) {
this.barcode = barcode;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public Long getCid() {
return cid;
}
public void setCid(Long cid) {
this.cid = cid;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
@Override
public String toString() {
return "Item [id=" + id + ", title=" + title + ", sellPoint=" + sellPoint + ", price=" + price
+ ", num=" + num + ", barcode=" + barcode + ", image=" + image + ", cid=" + cid + ", status="
+ status + "]";
}
}
================================================
FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/ItemCat.java
================================================
package com.migo.pojo;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name = "tb_item_cat")
public class ItemCat extends BasePojo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private Long parentId;
private String name;
private Integer status;
private Integer sortOrder;
private Boolean isParent;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getParentId() {
return parentId;
}
public void setParentId(Long parentId) {
this.parentId = parentId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getSortOrder() {
return sortOrder;
}
public void setSortOrder(Integer sortOrder) {
this.sortOrder = sortOrder;
}
public Boolean getIsParent() {
return isParent;
}
public void setIsParent(Boolean isParent) {
this.isParent = isParent;
}
// 扩展字段,支持EasyUItree的显示,这样就可以避免再写一个第一版中的EasyuiTreeNode类,同时也省了第一版中
//在service中的一系列对easyuiTreeNode的处理
public String getText() {
return this.getName();
}
public String getState() {
return this.getIsParent() ? "closed" : "open";
}
}
================================================
FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/ItemDesc.java
================================================
package com.migo.pojo;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name = "tb_item_desc")
public class ItemDesc extends BasePojo{
@Id//对应tb_item中的id
private Long itemId;
private String itemDesc;
public Long getItemId() {
return itemId;
}
public void setItemId(Long itemId) {
this.itemId = itemId;
}
public String getItemDesc() {
return itemDesc;
}
public void setItemDesc(String itemDesc) {
this.itemDesc = itemDesc;
}
}
================================================
FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/ItemParam.java
================================================
package com.migo.pojo;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name = "tb_item_param")
public class ItemParam extends BasePojo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "item_cat_id")
private Long itemCatId;
@Column(name = "param_data")
private String paramData;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getItemCatId() {
return itemCatId;
}
public void setItemCatId(Long itemCatId) {
this.itemCatId = itemCatId;
}
public String getParamData() {
return paramData;
}
public void setParamData(String paramData) {
this.paramData = paramData;
}
}
================================================
FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/ItemParamItem.java
================================================
package com.migo.pojo;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Table(name = "tb_item_param_item")
public class ItemParamItem extends BasePojo {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(name = "item_id")
private Long itemId;
@Column(name = "param_data")
private String paramData;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getItemId() {
return itemId;
}
public void setItemId(Long itemId) {
this.itemId = itemId;
}
public String getParamData() {
return paramData;
}
public void setParamData(String paramData) {
this.paramData = paramData;
}
}
================================================
FILE: migo-manage/manage-pojo/src/main/java/com/migo/pojo/ItemParamexd.java
================================================
package com.migo.pojo;
import java.util.Date;
/**
* Author 知秋
* Created by kauw on 2016/10/6.
*/
public class ItemParamexd {
private Long id;
private Long itemCatId;
private Date created;
private Date updated;
private String paramData;
private String itemCatName;
public Date getCreated() {
return created;
}
public void setCreated(Date created) {
this.created = created;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getItemCatId() {
return itemCatId;
}
public void setItemCatId(Long itemCatId) {
this.itemCatId = itemCatId;
}
public String getItemCatName() {
return itemCatName;
}
public void setItemCatName(String itemCatName) {
this.itemCatName = itemCatName;
}
public String getParamData() {
return paramData;
}
public void setParamData(String paramData) {
this.paramData = paramData;
}
public Date getUpdated() {
return updated;
}
public void setUpdated(Date updated) {
this.updated = updated;
}
}
================================================
FILE: migo-manage/manage-service/pom.xml
================================================
manage
com.migo
2.0-SNAPSHOT
4.0.0
manage-service
jar
com.migo
manage-mapper
2.0-SNAPSHOT
org.springframework
spring-webmvc
com.github.pagehelper
pagehelper
fastdfs_client
fastdfs_client
1.25
com.github.jsqlparser
jsqlparser
redis.clients
jedis
org.springframework
spring-test
4.3.5.RELEASE
test
================================================
FILE: migo-manage/manage-service/src/main/java/com/migo/service/BaseService.java
================================================
package com.migo.service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.migo.pojo.BasePojo;
import org.springframework.beans.factory.annotation.Autowired;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.entity.Example;
import java.util.Date;
import java.util.List;
/**
* Author 知秋
* Created by kauw on 2016/11/10.
*/
public class BaseService {
//这里利用了Spring4才支持的泛型注入
@Autowired
private Mapper mapper;
/**
* 根据id查询
*/
public T queryById(Long id){
return this.mapper.selectByPrimaryKey(id);
}
/**
* 根据条件查询一条数据
*/
public T queryOne(T example){
return this.mapper.selectOne(example);
}
/**
* 查询所有数据
*/
public List queryAll(){
return this.mapper.select(null);
}
/**
* 根据条件查询数据列表
*/
public List queryListByWhere(T example){
return this.mapper.select(example);
}
/**
* 分页查询数据列表
* @param example 查询条件
* @param page 页数
* @param rows 页面大小
* @return
*/
public PageInfo queryPageListByWhere(T example,Integer page,Integer rows){
//设置分页参数
PageHelper.startPage(page,rows);
//执行查询
List list = this.mapper.select(example);
return new PageInfo(list);
}
/**
* 新增数据,注意设置数据的创建和更新时间
* 返回成功的条数
*/
public Integer save(T t){
Date date=new Date();
t.setCreated(date);
t.setUpdated(date);
return this.mapper.insertSelective(t);
}
/**
* 更新数据,设置数据的更新时间
* 返回成功的条数
*/
public Integer update(T t){
t.setUpdated(new Date());
return this.mapper.updateByPrimaryKey(t);
}
/**
* 更新数据,设置数据的更新时间(更新部分数据)
* 返回成功的条数
*/
public Integer updateSelective(T t){
t.setUpdated(new Date());
return this.mapper.updateByPrimaryKeySelective(t);
}
/**
* 根据id删除数据
*/
public Integer deleteById(Long id){
return this.mapper.deleteByPrimaryKey(id);
}
/**
* 批量删除数据
* @param clazz
* @param property
* @param list
* @return
*/
public Integer deleteByIds(Class clazz,String property,List list){
Example example=new Example(clazz);
example.createCriteria().andIn(property,list);
return this.mapper.deleteByExample(example);
}
/**
* 根据条件删除数据
*/
public Integer deleteByWhere(T example){
return this.mapper.delete(example);
}
}
================================================
FILE: migo-manage/manage-service/src/main/java/com/migo/service/ContentCategoryService.java
================================================
package com.migo.service;
import com.migo.pojo.ContentCategory;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* Author 知秋
* Created by kauw on 2016/11/20.
*/
@Service
public class ContentCategoryService extends BaseService{
public void deleteDuDu(ContentCategory contentCategory) {
List ids=new ArrayList();
ids.add(contentCategory.getId());
//调用递归方法添加旗下所有子节点id
this.addAllChildrenNode(ids,contentCategory.getId());
super.deleteByIds(ContentCategory.class,"id",ids);
//判断该节点是否还有兄弟节点,如果没有,修改父节点的isParent为false
ContentCategory example=new ContentCategory();
example.setParentId(contentCategory.getParentId());
List list = super.queryListByWhere(example);
if (list==null||list.isEmpty()){
ContentCategory parent=new ContentCategory();
parent.setId(contentCategory.getParentId());
parent.setIsParent(false);
super.updateSelective(parent);
}
}
private void addAllChildrenNode(List ids,Long pid){
ContentCategory example=new ContentCategory();
example.setParentId(pid);
List contentCategories = super.queryListByWhere(example);
for (ContentCategory contentCategory : contentCategories) {
ids.add(contentCategory.getId());
//判断该节点是否为父节点,如果是,继续调用该方法查找子节点
if (contentCategory.getIsParent()) {
//递归调用此方法
addAllChildrenNode(ids,contentCategory.getId());
}
}
}
}
================================================
FILE: migo-manage/manage-service/src/main/java/com/migo/service/ContentService.java
================================================
package com.migo.service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.migo.mapper.ContentMapper;
import com.migo.pojo.Content;
import com.migo.pojo.EasyUIDataGridResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;
import java.util.List;
import static javafx.scene.input.KeyCode.O;
/**
* Author 知秋
* Created by kauw on 2016/12/3.
*/
@Service
public class ContentService extends BaseService {
@Autowired
private ContentMapper contentMapper;
public EasyUIDataGridResult queryListByCategoryId(Long categoryId, Integer page, Integer rows) {
PageHelper.startPage(page,rows);
Example expample=new Example(Content.class);
expample.createCriteria().andCondition("category_id").andEqualTo(categoryId);
expample.orderBy("updated").desc();
List contents = contentMapper.selectByExample(expample);
PageInfo pageInfo=new PageInfo<>(contents);
return new EasyUIDataGridResult(pageInfo.getList(),pageInfo.getTotal());
}
}
================================================
FILE: migo-manage/manage-service/src/main/java/com/migo/service/ItemCatService.java
================================================
package com.migo.service;
import com.migo.pojo.CatNode;
import com.migo.pojo.ItemCat;
import com.migo.pojo.ItemCatResult;
import com.migo.utils.JsonUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* Author 知秋
* Created by kauw on 2016/11/8.
*/
@Service
public class ItemCatService extends BaseService {
@Autowired
private JedisClient jedisClient;
private static final String REDIS_KEY = "MIGO_MANAGE_ITEM_CAT_LIST"; // 规则:项目名_模块名_业务名
private static final Integer REDIS_TIME = 60 * 60 * 24 * 30 * 3;
/* @Autowired
private ItemCatMapper itemCatMapper;
public List getItemCatList(Long parentId) {
ItemCat example = new ItemCat();
example.setParentId(parentId);
return this.itemCatMapper.select(example);
}*/
/**
* 查询,并生成jd页面类似的树状结构
* @return
*/
public ItemCatResult getItemCatList(){
try {
// 从缓存中命中,如果命中返回,没有命中继续查询
String jsonData = jedisClient.get(REDIS_KEY);
if (StringUtils.isNotEmpty(jsonData)) {
return JsonUtils.jsonToPojo(jsonData,ItemCatResult.class);
}
} catch (Exception e) {
e.printStackTrace();
}
ItemCatResult itemCatResult=new ItemCatResult();
//调用递归方法查询商品分类列表
List catList=getItemCatList(0L);
//返回结果
itemCatResult.setCatNodes(catList);
return itemCatResult;
}
private List getItemCatList(long parentId) {
//根据parentId查询列表
ItemCat example=new ItemCat();
example.setParentId(parentId);
List catList = super.queryListByWhere(example);
List resultList=new ArrayList();
int count=0;
for (ItemCat itemCat : catList) {
//如果是父节点
if (itemCat.getIsParent()) {
CatNode node=new CatNode();
node.setUrl("/products/"+itemCat.getId()+".html");
//如果当前节点为第一级节点
if (itemCat.getParentId()==0) {
node.setName(""+itemCat.getName()+" ");
}else {
node.setName(itemCat.getName());
}
node.setItems(getItemCatList(itemCat.getId()));
//将node添加到列表
resultList.add(node);
count++;
//第一层只取14条记录
if (parentId==0&&count>=14){
break;
}
}else {
//如果是最底层叶子节点
String item = "/products/"+itemCat.getId()+".html|" + itemCat.getName();
resultList.add(item);
}
}
try {
//将结果集写入到Redis中
this.jedisClient.set(REDIS_KEY,JsonUtils.objectToJson(resultList),REDIS_TIME);
} catch (Exception e) {
e.printStackTrace();
}
return resultList;
}
}
================================================
FILE: migo-manage/manage-service/src/main/java/com/migo/service/ItemDescService.java
================================================
package com.migo.service;
import com.migo.pojo.ItemDesc;
import com.migo.utils.JsonUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
/**
* Author 知秋
* Created by kauw on 2016/11/12.
*/
@Service
public class ItemDescService extends BaseService {
@Value("${REDIS_KEY}")
private String REDIS_KEY;
@Value("${REDIS_TIME}")
private Integer REDIS_TIME;
private static final String ITEM_DESC_KEY = ":ITEM_DESC";
@Autowired
private JedisClient jedisClient;
public ItemDesc queryByIdse(Long itemId) {
//加入缓存逻辑
String key=REDIS_KEY+":"+itemId+ITEM_DESC_KEY;
try {
String jsonData = jedisClient.get(key);
if (StringUtils.isNotEmpty(jsonData)){
return JsonUtils.jsonToPojo(jsonData,ItemDesc.class);
}
} catch (Exception e) {
e.printStackTrace();
}
ItemDesc itemDesc = super.queryById(itemId);
//数据添加到缓存中
try {
jedisClient.set(key,JsonUtils.objectToJson(itemDesc),REDIS_TIME);
} catch (Exception e) {
e.printStackTrace();
}
return itemDesc;
}
}
================================================
FILE: migo-manage/manage-service/src/main/java/com/migo/service/ItemParamItemService.java
================================================
package com.migo.service;
import com.migo.mapper.ItemParamItemMapper;
import com.migo.pojo.ItemParamItem;
import com.migo.utils.JsonUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;
import java.util.Date;
import java.util.List;
/**
* Author 知秋
* Created by kauw on 2016/11/14.
*/
@Service
public class ItemParamItemService extends BaseService {
@Value("${REDIS_KEY}")
private String REDIS_KEY;
@Value("${REDIS_TIME}")
private Integer REDIS_TIME;
private static final String ITEM_PARAM_KEY = ":ITEM_PARAM_ITEM";
@Autowired
private JedisClient jedisClient;
@Autowired
private ItemParamItemMapper itemParamItemMapper;
/**
* 更新商品规格参数数据
* @param itemId
* @param itemParams
* @return
*/
public Integer updateItemParamItem(Long itemId, String itemParams) {
ItemParamItem itemParamItem=new ItemParamItem();
itemParamItem.setParamData(itemParams);
itemParamItem.setUpdated(new Date());
//更新
Example example=new Example(ItemParamItem.class);
example.createCriteria().andEqualTo("itemId",itemId);
return this.itemParamItemMapper.updateByExampleSelective(itemParamItem,example);
}
/**
* 根据商品id查询商品规格参数数据
* @param itemId
* @return
*/
public ItemParamItem queryByIdse(Long itemId) {
//添加缓存逻辑
String key=REDIS_KEY+":"+itemId+ITEM_PARAM_KEY;
try {
String s = jedisClient.get(key);
if (StringUtils.isNotEmpty(s)){
return JsonUtils.jsonToPojo(s,ItemParamItem.class);
}
} catch (Exception e) {
e.printStackTrace();
}
ItemParamItem example=new ItemParamItem();
example.setItemId(itemId);
ItemParamItem itemParamItem = this.itemParamItemMapper.select(example).get(0);
//加入缓存
try {
jedisClient.set(key,JsonUtils.objectToJson(itemParamItem),REDIS_TIME);
} catch (Exception e) {
e.printStackTrace();
}
return itemParamItem;
}
}
================================================
FILE: migo-manage/manage-service/src/main/java/com/migo/service/ItemParmService.java
================================================
package com.migo.service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.migo.mapper.ItemparamexdMapper;
import com.migo.pojo.EasyUIDataGridResult;
import com.migo.pojo.ItemParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Author 知秋
* Created by kauw on 2016/11/14.
*/
@Service
public class ItemParmService extends BaseService {
@Autowired
private ItemparamexdMapper itemparamexdMapper;
public EasyUIDataGridResult getItemParamList(int page, int rows) {
//分页处理
PageHelper.startPage(page, rows);
//执行查询
List list = itemparamexdMapper.selectList();
//取分页信息
PageInfo pageInfo = new PageInfo<>(list);
//返回处理结果
EasyUIDataGridResult result = new EasyUIDataGridResult();
result.setTotal(pageInfo.getTotal());
result.setRows(pageInfo.getList());
return result;
}
}
================================================
FILE: migo-manage/manage-service/src/main/java/com/migo/service/ItemService.java
================================================
package com.migo.service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.migo.mapper.ItemMapper;
import com.migo.pojo.EasyUIDataGridResult;
import com.migo.pojo.Item;
import com.migo.pojo.ItemDesc;
import com.migo.pojo.ItemParamItem;
import com.migo.utils.IDUtils;
import com.migo.utils.JsonUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;
import java.util.List;
/**
* Author 知秋
* Created by kauw on 2016/11/12.
*/
@Service
public class ItemService extends BaseService- {
@Value("${REDIS_KEY}")
private String REDIS_KEY;
@Value("${REDIS_TIME}")
private Integer REDIS_TIME;
private static final String ITEM_DETAIL_KEY = ":ITEM_DETAIL";
@Autowired
private JedisClient jedisClient;
@Autowired
private ItemMapper itemMapper;
@Autowired
private ItemDescService itemDescService;
@Autowired
private ItemParamItemService itemParamItemService;
//desc参考前端页面传过来的数据是序列化成字符串的
public Boolean saveItem(Item item,String desc,String itemParams){
// 1、生成商品id
long itemId = IDUtils.genItemId();
// 2、对TbItem对象补全属性。
item.setId(itemId);
//'商品状态,1-正常,2-下架,3-删除'
item.setStatus(1);
//保存商品数据
Integer save = super.save(item);
ItemDesc itemDesc=new ItemDesc();
itemDesc.setItemDesc(desc);
itemDesc.setItemId(itemId);
//保存商品描述数据
Integer save1 = this.itemDescService.save(itemDesc);
//保存商品规格参数数据
ItemParamItem itemParamItem=new ItemParamItem();
itemParamItem.setItemId(itemId);
itemParamItem.setParamData(itemParams);
Integer save2 = this.itemParamItemService.save(itemParamItem);
return save.intValue()==1&&save1.intValue()==1&&save2==1;
}
/**
* 查询商品列表
*/
public EasyUIDataGridResult getItemList(Integer page,Integer rows){
//执行查询
Example example=new Example(Item.class);
example.orderBy("updated").desc();
// example.setOrderByClause("updated DESC");
PageHelper.startPage(page,rows);
List
- itemList = this.itemMapper.selectByExample(example);
PageInfo
- pageInfo=new PageInfo<>(itemList);
//返回处理结果
EasyUIDataGridResult result=new EasyUIDataGridResult();
result.setTotal(pageInfo.getTotal());
result.setRows(pageInfo.getList());
//return new EasyUIDataGridResult(pageInfo.getList(), pageInfo.getTotal());
return result;
}
/**
* 商品修改
*/
public Boolean updateItem(Item item,String desc,String itemParams){
//强制设置不能更新的字段为空,防止恶意修改
item.setStatus(null);
item.setCreated(null);
Integer change1 = super.updateSelective(item);
//更新商品描述
ItemDesc itemDesc=new ItemDesc();
itemDesc.setItemId(item.getId());
itemDesc.setItemDesc(desc);
Integer change2 = this.itemDescService.updateSelective(itemDesc);
//更新商品规格参数数据
Integer change3 = this.itemParamItemService.updateItemParamItem(item.getId(), itemParams);
return change1.intValue()==1&&change2.intValue()==1&&change3.intValue()==1;
}
public Item queryByIdse(Long itemId) {
String key=REDIS_KEY+":"+itemId+ITEM_DETAIL_KEY;
//添加缓存逻辑
try {
String jsonData = jedisClient.get(key);
if (StringUtils.isNotEmpty(jsonData)){
return JsonUtils.jsonToPojo(jsonData,Item.class);
}
} catch (Exception e) {
e.printStackTrace();
}
Item item = super.queryById(itemId);
//数据加入缓存
try {
jedisClient.set(key,JsonUtils.objectToJson(item),REDIS_TIME);
} catch (Exception e) {
e.printStackTrace();
}
return item;
}
}
================================================
FILE: migo-manage/manage-service/src/main/java/com/migo/service/PicService.java
================================================
package com.migo.service;
import com.migo.utils.FastDFSClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import java.util.HashMap;
import java.util.Map;
/**
* 图片上传
* Author 知秋
* Created by kauw on 2016/11/11.
*/
@Service
public class PicService {
@Value("${IMAGE_SERVER_BASE_URL}")
private String IMAGE_SERVER_BASE_URL;
public Map uploadFile(MultipartFile uploadFile){
try {
FastDFSClient client=new FastDFSClient("classpath:properties/client.properties");
//获取图片原始名称
String filename = uploadFile.getOriginalFilename();
//取扩展名
String extendName = filename.substring(filename.lastIndexOf(".") + 1);
String url=client.uploadFile(uploadFile.getBytes(),extendName);
//拼接URL
url=IMAGE_SERVER_BASE_URL+url;
//返回map数据
Map result=new HashMap();
result.put("error",0);
result.put("url",url);
return result;
} catch (Exception e) {
e.printStackTrace();
//返回Map数据
Map result = new HashMap<>();
result.put("error", 1);
result.put("message", "上传失败");
return result;
}
}
}
================================================
FILE: migo-manage/manage-web/pom.xml
================================================
manage
com.migo
2.0-SNAPSHOT
4.0.0
manage-web
war
com.migo
manage-service
2.0-SNAPSHOT
org.springframework
spring-jdbc
org.springframework
spring-aspects
org.mybatis
mybatis-spring
mysql
mysql-connector-java
com.fasterxml.jackson.core
jackson-databind
com.alibaba
druid
jstl
jstl
javax.servlet
servlet-api
provided
javax.servlet
jsp-api
provided
commons-fileupload
commons-fileupload
1.3.1
fastdfs_client
fastdfs_client
1.25
joda-time
joda-time
tk.mybatis
mapper
3.3.9
org.springframework
spring-test
4.3.5.RELEASE
test
com.alibaba
fastjson
1.1.41
test
================================================
FILE: migo-manage/manage-web/src/main/java/com/migo/controller/ContentCategoryController.java
================================================
package com.migo.controller;
import com.migo.pojo.ContentCategory;
import com.migo.service.ContentCategoryService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
/**
* Author 知秋
* Created by kauw on 2016/11/20.
*/
@Controller
@RequestMapping("content/category")
public class ContentCategoryController {
private static final Logger logger= LoggerFactory.getLogger(ContentCategoryController.class);
@Autowired
private ContentCategoryService contentCategoryService;
/**
* 根据父节点id查询节点列表
* @param parentId
* @return
*/
@RequestMapping(method = RequestMethod.GET)
public ResponseEntity> getContentCatList(
@RequestParam(value = "id", defaultValue = "0") Long parentId) {
try {
if (logger.isInfoEnabled()){
logger.info("根据父节点id查询节点列表 parentId = {}",parentId);
}
ContentCategory example=new ContentCategory();
example.setParentId(parentId);
List categoryList = this.contentCategoryService.queryListByWhere(example);
if (categoryList==null||categoryList.isEmpty()){
if (logger.isInfoEnabled()){
logger.info("根据父节点id查询节点列表 未找到 parentId = {}",parentId);
}
return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null);
}
return ResponseEntity.ok(categoryList);
} catch (Exception e) {
logger.error("根据父节点id查询节点列表 服务器傲娇了 parentId = {}",parentId,e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
/**
* 新增节点
* @param contentCategory
* @return
*/
@RequestMapping(method = RequestMethod.POST)
public ResponseEntity addContentCategery(ContentCategory contentCategory)
{
try {
if (logger.isInfoEnabled()){
logger.info("新增节点 contentCategory = {}",contentCategory);
}
//补全字段
contentCategory.setId(null);
contentCategory.setIsParent(false);
contentCategory.setSortOrder(1);
contentCategory.setStatus(1);
this.contentCategoryService.save(contentCategory);
//新增节点后可能会改变父节点的状态isParent
ContentCategory parent = this.contentCategoryService.queryById(contentCategory.getParentId());
if (!parent.getIsParent()) {
parent.setIsParent(true);
this.contentCategoryService.updateSelective(parent);
}
return ResponseEntity.status(HttpStatus.CREATED).body(contentCategory);
} catch (Exception e) {
logger.error("新增节点 服务器傲娇了 contentCategory = {}",contentCategory,e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
/**
* 修改节点
* @param contentCategory
* @return
*/
@RequestMapping(method = RequestMethod.PUT)
public ResponseEntity updateContentCategery(ContentCategory contentCategory){
try {
if (logger.isInfoEnabled()){
logger.info("修改节点 contentCategory = {}",contentCategory);
}
this.contentCategoryService.updateSelective(contentCategory);
return ResponseEntity.status(HttpStatus.NO_CONTENT).build();
} catch (Exception e) {
logger.error("修改节点 服务器傲娇了 contentCategory = {}",contentCategory,e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();
}
/**
* 删除节点
* @param contentCategory
* @return
*/
@RequestMapping(method = RequestMethod.DELETE)
public ResponseEntity delete(ContentCategory contentCategory){
try {
if (logger.isInfoEnabled()){
logger.info("删除节点 contentCategory = {}",contentCategory);
}
this.contentCategoryService.deleteDuDu(contentCategory);
return ResponseEntity.status(HttpStatus.NO_CONTENT).build();
} catch (Exception e) {
logger.error("删除节点 服务器傲娇了 contentCategory = {}",contentCategory,e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();
}
}
================================================
FILE: migo-manage/manage-web/src/main/java/com/migo/controller/ContentController.java
================================================
package com.migo.controller;
import com.migo.pojo.Content;
import com.migo.pojo.EasyUIDataGridResult;
import com.migo.service.ContentService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
/**
* Author 知秋
* Created by kauw on 2016/12/3.
*/
@Controller
@RequestMapping("content")
public class ContentController {
private static final Logger logger= LoggerFactory.getLogger(ContentController.class);
@Autowired
private ContentService contentService;
/**
* 根据categoryId查询内容列表
* @param categoryId
* @param page
* @param rows
* @return
*/
@RequestMapping(method = RequestMethod.GET)
public ResponseEntity queryListByCategoryId(
@RequestParam("categoryId") Long categoryId,
@RequestParam(value = "page",defaultValue = "1") Integer page,
@RequestParam(value = "rows",defaultValue = "20") Integer rows
){
try {
if (logger.isInfoEnabled()){
logger.info("根据categoryId查询内容列表 categoryId = {}",categoryId);
}
EasyUIDataGridResult result=this.contentService.queryListByCategoryId(categoryId,page,rows);
return ResponseEntity.ok(result);
} catch (Exception e) {
logger.error("根据categoryId查询内容列表 服务器傲娇了 categoryId = {}",categoryId);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
/**
* 新增内容
* @param content
* @return
*/
@RequestMapping(method = RequestMethod.POST)
public ResponseEntity add(Content content){
try {
if (logger.isInfoEnabled()){
logger.info("新增内容 contentTitle = {}",content.getTitle());
}
content.setId(null);
this.contentService.save(content);
return ResponseEntity.status(HttpStatus.CREATED).build();
} catch (Exception e) {
logger.error("新增内容 contentTitle = {}",content.getTitle(),e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();
}
}
================================================
FILE: migo-manage/manage-web/src/main/java/com/migo/controller/ItemCatController.java
================================================
package com.migo.controller;
import com.migo.pojo.ItemCat;
import com.migo.service.ItemCatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
/**
* Author 知秋
* Created by kauw on 2016/11/8.
*/
@Controller
@RequestMapping("item/cat")
public class ItemCatController {
@Autowired
private ItemCatService itemCatService;
/**
* 根据父节点id查询商品类目表
*/
@RequestMapping(method = RequestMethod.GET)
public ResponseEntity> getItemCatList(
@RequestParam(value = "id",defaultValue = "0") Long parentId
){
try {
//List itemcats=itemCatService.getItemCatList(parentId);
ItemCat example=new ItemCat();
example.setParentId(parentId);
List itemCats = itemCatService.queryListByWhere(example);
if (null==itemCats&&itemCats.isEmpty()){
//资源不存在,响应404
return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null);
}
return ResponseEntity.ok(itemCats);
} catch (Exception e) {
e.printStackTrace();
// 出错,响应500
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
}
}
================================================
FILE: migo-manage/manage-web/src/main/java/com/migo/controller/ItemController.java
================================================
package com.migo.controller;
import com.migo.pojo.EasyUIDataGridResult;
import com.migo.pojo.Item;
import com.migo.service.ItemService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
/**
* Author 知秋
* Created by kauw on 2016/11/12.
*/
@Controller
@RequestMapping("item")
public class ItemController {
private static final Logger LOGGER = LoggerFactory.getLogger(ItemController.class);
@Autowired
private ItemService itemService;
/**
* 新增商品
*/
@RequestMapping(method = RequestMethod.POST)
public ResponseEntity addItem(Item item, @RequestParam("desc") String desc,
@RequestParam("itemParams") String itemParams) {
if (LOGGER.isInfoEnabled()) {
LOGGER.info("新增商品,item = {}, desc = {}", item, desc);
}
/**
* TODO 校验以后完善
*/
if (item.getPrice() == null || item.getPrice().intValue() == 0) {
if (LOGGER.isInfoEnabled()) {
LOGGER.info("新增商品时用户输入的参数不合法,item = {}, desc = {},itemParams", item, desc);
}
// 参数有误,返回400
//ResponseEntity build();
return ResponseEntity.status(HttpStatus.BAD_REQUEST).build();
}
try {
Boolean saveItem = this.itemService.saveItem(item, desc,itemParams);
if (saveItem) {
if (LOGGER.isInfoEnabled()) {
LOGGER.info("新增商品成功! id = {}", item.getId());
}
//CREATED(201, "Created"),
return ResponseEntity.status(HttpStatus.CREATED).build();
}
} catch (Exception e) {
LOGGER.error("新增商品失败! item = " + item + ", desc = " + desc, e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();
}
@RequestMapping(method = RequestMethod.GET)
public ResponseEntity getItemList(
@RequestParam(value = "page", defaultValue = "0") Integer page,
@RequestParam(value = "rows", defaultValue = "30") Integer rows) {
try {
EasyUIDataGridResult itemList = this.itemService.getItemList(page, rows);
return ResponseEntity.ok(itemList);
} catch (Exception e) {
LOGGER.error("查询商品出错:page="+page+",rows="+rows,e);
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
}
/**
* 更新商品数据
*/
@RequestMapping(method = RequestMethod.PUT)
public ResponseEntity updateItem(Item item, @RequestParam("desc") String desc,
@RequestParam("itemParams") String itemParams){
if (LOGGER.isInfoEnabled()) {
LOGGER.info("修改商品,item = {}, desc = {}", item, desc);
}
/**
* TODO 校验以后完善
*/
if (item.getPrice() == null || item.getPrice().intValue() == 0) {
if (LOGGER.isInfoEnabled()) {
LOGGER.info("修改商品时用户输入的参数不合法,item = {}, desc = {}", item, desc);
}
// 参数有误,返回400
//ResponseEntity build();
return ResponseEntity.status(HttpStatus.BAD_REQUEST).build();
}
try {
Boolean updateItem = this.itemService.updateItem(item, desc,itemParams);
if (updateItem) {
if (LOGGER.isInfoEnabled()) {
LOGGER.info("修改商品成功! id = {}", item.getId());
}
//CREATED(201, "Created"),
return ResponseEntity.status(HttpStatus.CREATED).build();
}
} catch (Exception e) {
LOGGER.error("修改商品失败! item = " + item + ", desc = " + desc, e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();
}
}
================================================
FILE: migo-manage/manage-web/src/main/java/com/migo/controller/ItemDescController.java
================================================
package com.migo.controller;
import com.migo.pojo.ItemDesc;
import com.migo.service.ItemDescService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* Author 知秋
* Created by kauw on 2016/11/14.
*/
@Controller
@RequestMapping("item/desc")
public class ItemDescController {
private static final Logger logger= LoggerFactory.getLogger(ItemDescController.class);
@Autowired
private ItemDescService itemDescService;
/**
* 根据商品id查询商品描述信息
*/
@RequestMapping(value = "{itemId}",method = RequestMethod.GET)
public ResponseEntity queryItemDescByItemId(
@PathVariable("itemId") Long itemId
){
if (logger.isInfoEnabled()){
logger.info("商品描述信息查询 id = {}",itemId);
}
try {
ItemDesc itemDesc = this.itemDescService.queryById(itemId);
if (itemDesc==null){
return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null);
}
return ResponseEntity.ok(itemDesc);
} catch (Exception e) {
logger.error("商品描述查询失败id = {}",itemId,e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
}
================================================
FILE: migo-manage/manage-web/src/main/java/com/migo/controller/ItemParamController.java
================================================
package com.migo.controller;
import com.migo.pojo.EasyUIDataGridResult;
import com.migo.pojo.ItemParam;
import com.migo.service.ItemParmService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
/**
* Author 知秋
* Created by kauw on 2016/11/14.
*/
@Controller
@RequestMapping("item/param")
public class ItemParamController {
private final static Logger logger= LoggerFactory.getLogger(ItemParamController.class);
@Autowired
private ItemParmService itemParmService;
@RequestMapping(value = "{itemCatId}" ,method = RequestMethod.GET)
public ResponseEntity getItemParamByCid(@PathVariable("itemCatId") Long itemCatId){
try {
if (logger.isInfoEnabled()) {
logger.info("查询某商品规格模板参数模板 itemCatId= {}",itemCatId);
}
ItemParam example=new ItemParam();
example.setItemCatId(itemCatId);
ItemParam itemParam = this.itemParmService.queryOne(example);
if (itemParam==null) {
if (logger.isInfoEnabled()) {
logger.info("所查询商品规格模板参数模板 不存在 itemCatId= {}",itemCatId);
}
return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null);
}
return ResponseEntity.ok(itemParam);
} catch (Exception e) {
logger.error("查询某商品规格模板参数模板 失败 itemCatId= {}",itemCatId,e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
/**
* 新增规格参数模板
*/
@RequestMapping(value = "{itemCatId}",method = RequestMethod.POST)
public ResponseEntity addItemParamByItemCatId(
@PathVariable("itemCatId") Long itemCatId,@RequestParam("paramData") String paramData
){
try {
if (logger.isInfoEnabled()) {
logger.info("新增某商品规格模板参数模板 itemCatId= {},paramData = {}",itemCatId,paramData);
}
ItemParam itemparam=new ItemParam();
itemparam.setId(null); //置空,防止恶意修改 `id` bigint(20) NOT NULL AUTO_INCREMENT
itemparam.setItemCatId(itemCatId);
itemparam.setParamData(paramData);
this.itemParmService.save(itemparam);
return ResponseEntity.status(HttpStatus.CREATED).build();
} catch (Exception e) {
logger.error("新增某商品规格模板参数模板 失败 itemCatId= {},"+itemCatId+"paramData = {}"+paramData,e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();
}
/**
* 查询规格参数模板列表
*/
@RequestMapping(value = "/list",method = RequestMethod.GET)
public ResponseEntity getItemparmList(Integer page,Integer rows){
try {
if (logger.isInfoEnabled()) {
logger.info("查询商品规格模板参数模板 page= {},rows = {}",page,rows);
}
EasyUIDataGridResult result=this.itemParmService.getItemParamList(page,rows);
return ResponseEntity.ok(result);
} catch (Exception e) {
logger.error("查询商品规格参数模板列表出错:page="+page+",rows="+rows,e);
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
}
}
================================================
FILE: migo-manage/manage-web/src/main/java/com/migo/controller/ItemParamItemController.java
================================================
package com.migo.controller;
import com.migo.pojo.ItemParamItem;
import com.migo.service.ItemParamItemService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* Author 知秋
* Created by kauw on 2016/11/14.
*/
@Controller
@RequestMapping("item/param/item/")
public class ItemParamItemController {
private static final Logger logger= LoggerFactory.getLogger(ItemParamItemController.class);
@Autowired
private ItemParamItemService itemParamItemService;
/**
* 根据商品Id查询商品规格参数数据
*/
@RequestMapping(value = "{itemId}",method = RequestMethod.GET)
public ResponseEntity showItemParam(@PathVariable("itemId") Long itemId){
try {
if(logger.isInfoEnabled()){
logger.info("根据商品Id查询商品规格参数数据 itemId = {}",itemId);
}
ItemParamItem example=new ItemParamItem();
example.setItemId(itemId);
ItemParamItem itemParamItem = this.itemParamItemService.queryOne(example);
if (null==itemParamItem){
return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null);
}
return ResponseEntity.ok(itemParamItem);
} catch (Exception e) {
logger.error("根据商品Id查询商品规格参数数据 失败 itemId = {}",itemId,e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
}
================================================
FILE: migo-manage/manage-web/src/main/java/com/migo/controller/PageController.java
================================================
package com.migo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* Author 知秋
* Created by kauw on 2016/11/7.
* 通用页面的跳转
*/
@Controller
public class PageController {
@RequestMapping(value = "/page/{pageName}",method = RequestMethod.GET)
public String tpage(@PathVariable String pageName){
return pageName;
}
}
================================================
FILE: migo-manage/manage-web/src/main/java/com/migo/controller/PicController.java
================================================
package com.migo.controller;
import com.migo.service.PicService;
import com.migo.utils.JsonUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
import java.util.Map;
/**
* 图片上传controller
* Author 知秋
* Created by kauw on 2016/11/11.
*/
@Controller
public class PicController {
@Autowired
private PicService picService;
@RequestMapping("/pic/upload")
@ResponseBody
public String uploadFile(MultipartFile uploadFile){
Map result = picService.uploadFile(uploadFile);
//把Java对象手工转换成json数据
String json = JsonUtils.objectToJson(result);
return json;
}
}
================================================
FILE: migo-manage/manage-web/src/main/java/com/migo/controller/webs/WebsContenController.java
================================================
package com.migo.controller.webs;
import com.migo.pojo.EasyUIDataGridResult;
import com.migo.service.ContentService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
/**
* Author 知秋
* Created by kauw on 2016/12/4.
*/
@Controller
@RequestMapping("webs/content")
public class WebsContenController {
private static final Logger logger= LoggerFactory.getLogger(WebsContenController.class);
@Autowired
private ContentService contentService;
/**
* 根据categoryId查询内容列表
* @param categoryId
* @param page
* @param rows
* @return
*/
@RequestMapping(method = RequestMethod.GET)
public ResponseEntity queryListByCategoryId(
@RequestParam("categoryId") Long categoryId,
@RequestParam(value = "page",defaultValue = "1") Integer page,
@RequestParam(value = "rows",defaultValue = "20") Integer rows
){
try {
if (logger.isInfoEnabled()){
logger.info("根据categoryId查询内容列表 categoryId = {}",categoryId);
}
EasyUIDataGridResult result=this.contentService.queryListByCategoryId(categoryId,page,rows);
return ResponseEntity.ok(result);
} catch (Exception e) {
logger.error("根据categoryId查询内容列表 服务器傲娇了 categoryId = {}",categoryId,e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
}
================================================
FILE: migo-manage/manage-web/src/main/java/com/migo/controller/webs/WebsItemCatController.java
================================================
package com.migo.controller.webs;
import com.migo.pojo.ItemCatResult;
import com.migo.service.ItemCatService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* Author 知秋
* Created by kauw on 2016/11/17.
*/
@Controller
@RequestMapping("webs/item/cat")
public class WebsItemCatController {
private static final Logger logger= LoggerFactory.getLogger(WebsItemCatController.class);
@Autowired
private ItemCatService itemCatService;
/* @RequestMapping(method = RequestMethod.GET)
public ResponseEntity getItemCatList(String callback){
try {
if (logger.isInfoEnabled()) {
logger.info("查询商品类目数据服务");
}
ItemCatResult itemCatList = this.itemCatService.getItemCatList();
if (StringUtils.isEmpty(callback)) {
String json = JsonUtils.objectToJson(itemCatList);
return ResponseEntity.ok((Object) json);
}
//如果字符串不为空,需要支持jsonp调用
MappingJacksonValue mappingJacksonValue=new MappingJacksonValue(itemCatList);
mappingJacksonValue.setJsonpFunction(callback);
return ResponseEntity.ok((Object) mappingJacksonValue);
} catch (Exception e) {
logger.error("查询商品类目数据服务 失败", e);
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
}*/
@RequestMapping(method = RequestMethod.GET)
public ResponseEntity getItemCatList(){
try {
if (logger.isInfoEnabled()) {
logger.info("查询商品类目数据服务");
}
ItemCatResult itemCatList = this.itemCatService.getItemCatList();
return ResponseEntity.ok(itemCatList);
} catch (Exception e) {
logger.error("查询商品类目数据服务 失败", e);
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
}
}
================================================
FILE: migo-manage/manage-web/src/main/java/com/migo/controller/webs/WebsItemController.java
================================================
package com.migo.controller.webs;
import com.migo.pojo.Item;
import com.migo.pojo.ItemDesc;
import com.migo.pojo.ItemParamItem;
import com.migo.service.ItemDescService;
import com.migo.service.ItemParamItemService;
import com.migo.service.ItemService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
* Author 知秋
* Created by kauw on 2016/12/9.
*/
@Controller
@RequestMapping("webs/item")
public class WebsItemController {
private static final Logger logger= LoggerFactory.getLogger(WebsItemController.class);
@Autowired
private ItemService itemService;
@Autowired
private ItemDescService itemDescService;
@Autowired
private ItemParamItemService itemParamItemService;
/**
* 根据itemId查询商品详情
* @param itemId
* @return
*/
@RequestMapping(value = "{itemId}",method = RequestMethod.GET)
public ResponseEntity- queryByItemId(@PathVariable("itemId") Long itemId){
try {
if (logger.isInfoEnabled()){
logger.info("根据itemId查询商品详情 itemId = {}",itemId);
}
Item item = this.itemService.queryByIdse(itemId);
if (null==item){
return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null);
}
return ResponseEntity.ok(item);
} catch (Exception e) {
logger.error("根据itemId查询商品详情出错,服务器傲娇了 itemId = {}",itemId,e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
/**
* 根据itemId查询商品描述
* @param itemId
* @return
*/
@RequestMapping(value = "/desc/{itemId}",method = RequestMethod.GET)
public ResponseEntity
queryDescByitemId(@PathVariable("itemId") Long itemId){
try {
if (logger.isInfoEnabled()){
logger.info("根据itemId查询商品描述 itemId = {}",itemId);
}
ItemDesc itemDesc = this.itemDescService.queryByIdse(itemId);
if (null==itemDesc) {
return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null);
}
return ResponseEntity.ok(itemDesc);
} catch (Exception e) {
logger.error("根据itemId查询商品描述出错,服务器傲娇了 itemId = {}",itemId,e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
/**
* 根据itemId查询商品规格参数
* @param itemId
* @return
*/
@RequestMapping(value = "/paramitem/{itemId}",method = RequestMethod.GET)
public ResponseEntity queryItemParamItemByitemId(
@PathVariable("itemId") Long itemId){
try {
if (logger.isInfoEnabled()){
logger.info("根据itemId查询商品规格参数 itemId = {}",itemId);
}
ItemParamItem itemParamItem = this.itemParamItemService.queryByIdse(itemId);
if (itemParamItem==null){
return ResponseEntity.status(HttpStatus.NOT_FOUND).body(null);
}
return ResponseEntity.ok(itemParamItem);
} catch (Exception e) {
logger.error("根据itemId查询商品规格参数出错,服务器傲娇了 itemId = {}",itemId,e);
}
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body(null);
}
}
================================================
FILE: migo-manage/manage-web/src/main/resources/log4j.properties
================================================
log4j.rootLogger=DEBUG,A1
log4j.logger.com.migo = DEBUG
log4j.logger.org.mybatis = DEBUG
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss,SSS} [%t] [%c]-[%p] %m%n
================================================
FILE: migo-manage/manage-web/src/main/resources/mybatis/mybatis-config.xml
================================================
================================================
FILE: migo-manage/manage-web/src/main/resources/properties/client.properties
================================================
tracker_server=192.168.42.129:22122
================================================
FILE: migo-manage/manage-web/src/main/resources/properties/db.properties
================================================
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/migo2?characterEncoding=utf-8
jdbc.username=root
jdbc.password=123
================================================
FILE: migo-manage/manage-web/src/main/resources/properties/env.properties
================================================
#图片服务器根URL
IMAGE_SERVER_BASE_URL=http://pic.migo.com/
REDIS_KEY = MIGO_MANAGE
REDIS_TIME = 2592000
================================================
FILE: migo-manage/manage-web/src/main/resources/spring/applicationContext-dao.xml
================================================
dialect=mysql
reasonable=true
supportMethodsArguments=true
params=count=countSql
autoRuntimeDialect=true
mappers=tk.mybatis.mapper.common.Mapper
================================================
FILE: migo-manage/manage-web/src/main/resources/spring/applicationContext-service.xml
================================================
================================================
FILE: migo-manage/manage-web/src/main/resources/spring/applicationContext-trans.xml
================================================
================================================
FILE: migo-manage/manage-web/src/main/resources/spring/springmvc.xml
================================================
================================================
FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/content-add.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
================================================
FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/content-category.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
================================================
FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/content-edit.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
================================================
FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/content.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
ID
内容标题
内容子标题
内容描述
内容连接
图片
图片2
创建日期
更新日期
================================================
FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/file-upload.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
jQuery File Upload Demo
说明
上传的文件大小限制为:5 MB .
只支持的文件格式为:JPG, GIF, PNG, BMP .
================================================
FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/index.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
咪购商城后台管理系统
================================================
FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/item-add.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
================================================
FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/item-edit.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
================================================
FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/item-list.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
商品ID
商品标题
叶子类目
卖点
价格
库存数量
条形码
状态
创建日期
更新日期
================================================
FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/item-param-add.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
================================================
FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/item-param-list.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
ID
商品类目ID
商品类目
规格(只显示分组名称)
创建日期
更新日期
================================================
FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/views/login.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
管理员登录
================================================
FILE: migo-manage/manage-web/src/main/webapp/WEB-INF/web.xml
================================================
migo-manage
contextConfigLocation
classpath:spring/applicationContext*.xml
org.springframework.web.context.ContextLoaderListener
encodingFilter
org.springframework.web.filter.CharacterEncodingFilter
encoding
UTF8
encodingFilter
/*
HttpMethodFilter
org.springframework.web.filter.HttpPutFormContentFilter
HttpMethodFilter
/*
HiddenHttpMethodFilter
org.springframework.web.filter.HiddenHttpMethodFilter
HiddenHttpMethodFilter
/*
migo-manage
org.springframework.web.servlet.DispatcherServlet
contextConfigLocation
classpath:spring/springmvc.xml
1
migo-manage
/rest/*
index.jsp
================================================
FILE: migo-manage/manage-web/src/main/webapp/commons/common-js.jsp
================================================
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
================================================
FILE: migo-manage/manage-web/src/main/webapp/css/migo.css
================================================
ul{
list-style: none;
}
.hide{
display: none;
}
.itemParam ul{
padding-left: 0px;
}
.itemParam li{
line-height: 25px;
}
.itemForm .pics ul{
list-style: none;
padding-left: 0px;
}
.itemForm .pics ul li{
float: left;
padding-right: 5px;
}
.itemForm .group{
font-weight: bold;
text-align: center;
background-color: #EAEAEA;
}
.itemForm .param{
width: 80px;
text-align: right;
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/common.js
================================================
Date.prototype.format = function(format){
var o = {
"M+" : this.getMonth()+1, //month
"d+" : this.getDate(), //day
"h+" : this.getHours(), //hour
"m+" : this.getMinutes(), //minute
"s+" : this.getSeconds(), //second
"q+" : Math.floor((this.getMonth()+3)/3), //quarter
"S" : this.getMilliseconds() //millisecond
};
if(/(y+)/.test(format)){
format = format.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length));
}
for(var k in o) {
if(new RegExp("("+ k +")").test(format)){
format = format.replace(RegExp.$1, RegExp.$1.length==1 ? o[k] : ("00"+ o[k]).substr((""+ o[k]).length));
}
}
return format;
};
var TT = migo = {
// 编辑器参数
kingEditorParams : {
filePostName : "uploadFile",
uploadJson : '/rest/pic/upload',
dir : "image"
},
// 格式化时间
formatDateTime : function(val,row){
var now = new Date(val);
return now.format("yyyy-MM-dd hh:mm:ss");
},
// 格式化连接
formatUrl : function(val,row){
if(val){
return "查看 ";
}
return "";
},
// 格式化价格
formatPrice : function(val,row){
return (val/100).toFixed(2);
},
// 格式化商品的状态
formatItemStatus : function formatStatus(val,row){
if (val == 1){
return '正常';
} else if(val == 2){
return '下架 ';
} else {
return '未知';
}
},
init : function(data){
this.initPicUpload(data);
this.initItemCat(data);
},
// 初始化图片上传组件
initPicUpload : function(data){
$(".picFileUpload").each(function(i,e){
var _ele = $(e);
_ele.siblings("div.pics").remove();
_ele.after('\
');
// 回显图片
if(data && data.pics){
var imgs = data.pics.split(",");
for(var i in imgs){
if($.trim(imgs[i]).length > 0){
_ele.siblings(".pics").find("ul").append(" ");
}
}
}
$(e).click(function(){
var form = $(this).parentsUntil("form").parent("form");
KindEditor.editor(TT.kingEditorParams).loadPlugin('multiimage',function(){
var editor = this;
editor.plugin.multiImageDialog({
clickFn : function(urlList) {
var imgArray = [];
KindEditor.each(urlList, function(i, data) {
imgArray.push(data.url);
form.find(".pics ul").append(" ");
});
form.find("[name=image]").val(imgArray.join(","));
editor.hideDialog();
}
});
});
});
});
},
// 初始化选择类目组件
initItemCat : function(data){
$(".selectItemCat").each(function(i,e){
var _ele = $(e);
if(data && data.cid){
_ele.after(""+data.cid+" ");
}else{
_ele.after(" ");
}
_ele.unbind('click').click(function(){
$("").css({padding:"5px"}).html("
")
.window({
width:'500',
height:"450",
modal:true,
closed:true,
iconCls:'icon-save',
title:'选择类目',
onOpen : function(){
var _win = this;
$("ul",_win).tree({
url:'/rest/item/cat/',
method:"GET",
animate:true,
onClick : function(node){
if($(this).tree("isLeaf",node.target)){
// 填写到cid中
_ele.parent().find("[name=cid]").val(node.id);
_ele.next().text(node.text).attr("cid",node.id);
$(_win).window('close');
if(data && data.fun){
data.fun.call(this,node);
}
}
}
});
},
onClose : function(){
$(this).window("destroy");
}
}).window('open');
});
});
},
createEditor : function(select){
return KindEditor.create(select, TT.kingEditorParams);
},
/**
* 创建一个窗口,关闭窗口后销毁该窗口对象。
*
* 默认:
* width : 80%
* height : 80%
* title : (空字符串)
*
* 参数:
* width :
* height :
* title :
* url : 必填参数
* onLoad : function 加载完窗口内容后执行
*
*
*/
createWindow : function(params){
$("").css({padding:"5px"}).window({
width : params.width?params.width:"80%",
height : params.height?params.height:"80%",
modal:true,
title : params.title?params.title:" ",
href : params.url,
onClose : function(){
$(this).window("destroy");
},
onLoad : function(){
if(params.onLoad){
params.onLoad.call(this);
}
}
}).window("open");
},
closeCurrentWindow : function(){
$(".panel-tool-close").click();
},
changeItemParam : function(node,formId){
$.ajax({
type: "GET",
url: "/rest/item/param/" + node.id,
statusCode : {
200 : function(data){
$("#"+formId+" .params").show();
var paramData = JSON.parse(data.paramData);
var html = "
";
for(var i in paramData){
var pd = paramData[i];
html+="";
}
html+= " ";
$("#"+formId+" .params td").eq(1).html(html);
},
404 : function(){
$("#"+formId+" .params").hide();
$("#"+formId+" .params td").eq(1).empty();
},
500 : function(){
alert("error");
}
}
});
},
getSelectionsIds : function (select){
var list = $(select);
var sels = list.datagrid("getSelections");
var ids = [];
for(var i in sels){
ids.push(sels[i].id);
}
ids = ids.join(",");
return ids;
},
/**
* 初始化单图片上传组件
* 选择器为:.onePicUpload
* 上传完成后会设置input内容以及在input后面追加
*/
initOnePicUpload : function(){
$(".onePicUpload").click(function(){
var _self = $(this);
KindEditor.editor(TT.kingEditorParams).loadPlugin('image', function() {
this.plugin.imageDialog({
showRemote : false,
clickFn : function(url, title, width, height, border, align) {
var input = _self.siblings("input");
input.parent().find("img").remove();
input.val(url);
input.after("
");
this.hideDialog();
}
});
});
});
}
};
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/changelog.txt
================================================
Version 1.4.1
-------------
* Bug
* combogrid: The combogrid has different height than other combo components. fixed.
* datagrid: The row element loses some class style value after calling 'updateRow' method. fixed.
* menubutton: Calling 'enable' method on a disabled button can not work well. fixed.
* form: The filebox components in the form do not work correctly after calling 'clear' method. fixed.
* Improvement
* tabs: The 'update' method accepts 'type' option that allows the user to update the header,body,or both.
* panel: Add 'openAnimation','openDuration','closeAnimation' and 'closeDuration' properties to set the animation for opening or closing a panel.
* panel: Add 'footer' property that allows the user to add a footer bar to the bottom of panel.
* datagrid: Calling 'endEdit' method will accept the editing value correctly.
* datagrid: Add 'onBeforeSelect','onBeforeCheck','onBeforeUnselect','onBeforeUncheck' events.
* propertygrid: The user can edit a row by calling 'beginEdit' method.
* datebox: Add 'cloneFrom' method to create the datebox component quickly.
* datetimebox: Add 'cloneFrom' method to create the datetimebox component quickly.
Version 1.4
-------------
* Bug
* menu: The menu should not has a correct height when removed a menu item. fixed.
* datagrid: The 'fitColumns' method does not work normally when the datarid width is too small. fixed.
* Improvement
* The fluid/percentange size is supported now for all easyui components.
* menu: Add 'showItem', 'hideItem' and 'resize' methods.
* menu: Auto resize the height upon the window size.
* menu: Add 'duration' property that allows the user to define duration time in milliseconds to hide menu.
* validatebox: Add 'onBeforeValidate' and 'onValidate' events.
* combo: Extended from textbox now.
* combo: Add 'panelMinWidth','panelMaxWidth','panelMinHeight' and 'panelMaxHeight' properties.
* searchbox: Extended from textbox now.
* tree: The 'getRoot' method will return the top parent node of a specified node if pass a 'nodeEl' parameter.
* tree: Add 'queryParams' property.
* datetimebox: Add 'spinnerWidth' property.
* panel: Add 'doLayout' method to cause the panel to lay out its components.
* panel: Add 'clear' method to clear the panel's content.
* datagrid: The user is allowed to assign percent width to columns.
* form: Add 'ajax','novalidate' and 'queryParams' properties.
* linkbutton: Add 'resize' method.
* New Plugins
* textbox: A enhanced input field that allows users build their form easily.
* datetimespinner: A date and time spinner that allows to pick a specific day.
* filebox: The filebox component represents a file field of the forms.
Version 1.3.6
-------------
* Bug
* treegrid: The 'getChecked' method can not return correct checked rows. fixed.
* tree: The checkbox does not display properly on async tree when 'onlyLeafCheck' property is true. fixed.
* Improvement
* treegrid: All the selecting and checking methods are extended from datagrid component.
* linkbutton: The icon alignment is fully supported, possible values are: 'top','bottom','left','right'.
* linkbutton: Add 'size' property, possible values are: 'small','large'.
* linkbutton: Add 'onClick' event.
* menubutton: Add 'menuAlign' property that allows the user set top level menu alignment.
* combo: Add 'panelAlign' property, possible values are: 'left','right'.
* calendar: The 'formatter','styler' and 'validator' options are available to custom the calendar dates.
* calendar: Add 'onChange' event.
* panel: Add 'method','queryParams' and 'loader' options.
* panel: Add 'onLoadError' event.
* datagrid: Add 'onBeginEdit' event that fires when a row goes into edit mode.
* datagrid: Add 'onEndEdit' event that fires when finishing editing but before destroying editors.
* datagrid: Add 'sort' method and 'onBeforeSortColumn' event.
* datagrid: The 'combogrid' editor has been integrated into datagrid.
* datagrid: Add 'ctrlSelect' property that only allows multi-selection when ctrl+click is used.
* slider: Add 'converter' option that allows users determine how to convert a value to the slider position or the slider position to the value.
* searchbox: Add 'disabled' property.
* searchbox: Add 'disable','enable','clear','reset' methods.
* spinner: Add 'readonly' property, 'readonly' method and 'onChange' event.
Version 1.3.5
-------------
* Bug
* searchbox: The 'searcher' function can not offer 'name' parameter value correctly. fixed.
* combo: The 'isValid' method can not return boolean value. fixed.
* combo: Clicking combo will trigger the 'onHidePanel' event of other combo components that have hidden drop-down panels. fixed.
* combogrid: Some methods can not inherit from combo. fixed.
* Improvement
* datagrid: Improve performance on checking rows.
* menu: Allows to append a menu separator.
* menu: Add 'hideOnUnhover' property to indicate if the menu should be hidden when mouse exits it.
* slider: Add 'clear' and 'reset' methods.
* tabs: Add 'unselect' method that will trigger 'onUnselect' event.
* tabs: Add 'selected' property to specify what tab panel will be opened.
* tabs: The 'collapsible' property of tab panel is supported to determine if the tab panel can be collapsed.
* tabs: Add 'showHeader' property, 'showHeader' and 'hideHeader' methods.
* combobox: The 'disabled' property can be used to disable some items.
* tree: Improve loading performance.
* pagination: The 'layout' property can be used to customize the pagination layout.
* accordion: Add 'unselect' method that will trigger 'onUnselect' event.
* accordion: Add 'selected' and 'multiple' properties.
* accordion: Add 'getSelections' method.
* datebox: Add 'sharedCalendar' property that allows multiple datebox components share one calendar component.
Version 1.3.4
-------------
* Bug
* combobox: The onLoadSuccess event fires when parsing empty local data. fixed.
* form: Calling 'reset' method can not reset datebox field. fixed.
* Improvement
* mobile: The context menu and double click features are supported on mobile devices.
* combobox: The 'groupField' and 'groupFormatter' options are available to display items in groups.
* tree: When append or insert nodes, the 'data' parameter accepts one or more nodes data.
* tree: The 'getChecked' method accepts a single 'state' or an array of 'state'.
* tree: Add 'scrollTo' method.
* datagrid: The 'multiSort' property is added to support multiple column sorting.
* datagrid: The 'rowStyler' and column 'styler' can return CSS class name or inline styles.
* treegrid: Add 'load' method to load data and navigate to the first page.
* tabs: Add 'tabWidth' and 'tabHeight' properties.
* validatebox: The 'novalidate' property is available to indicate whether to perform the validation.
* validatebox: Add 'enableValidation' and 'disableValidation' methods.
* form: Add 'enableValidation' and 'disableValidation' methods.
* slider: Add 'onComplete' event.
* pagination: The 'buttons' property accepts the existing element.
Version 1.3.3
-------------
* Bug
* datagrid: Some style features are not supported by column styler function. fixed.
* datagrid: IE 31 stylesheet limit. fixed.
* treegrid: Some style features are not supported by column styler function. fixed.
* menu: The auto width of menu item displays incorrect in ie6. fixed.
* combo: The 'onHidePanel' event can not fire when clicked outside the combo area. fixed.
* Improvement
* datagrid: Add 'scrollTo' and 'highlightRow' methods.
* treegrid: Enable treegrid to parse data from
element.
* combo: Add 'selectOnNavigation' and 'readonly' options.
* combobox: Add 'loadFilter' option to allow users to change data format before loading into combobox.
* tree: Add 'onBeforeDrop' callback event.
* validatebox: Dependent on tooltip plugin now, add 'deltaX' property.
* numberbox: The 'filter' options can be used to determine if the key pressed was accepted.
* linkbutton: The group button is available.
* layout: The 'minWidth','maxWidth','minHeight','maxHeight' and 'collapsible' properties are available for region panel.
* New Plugins
* tooltip: Display a popup message when moving mouse over an element.
Version 1.3.2
-------------
* Bug
* datagrid: The loading message window can not be centered when changing the width of datagrid. fixed.
* treegrid: The 'mergeCells' method can not work normally. fixed.
* propertygrid: Calling 'endEdit' method to stop editing a row will cause errors. fixed.
* tree: Can not load empty data when 'lines' property set to true. fixed.
* Improvement
* RTL feature is supported now.
* tabs: Add 'scrollBy' method to scroll the tab header by the specified amount of pixels
* tabs: Add 'toolPosition' property to set tab tools to left or right.
* tabs: Add 'tabPosition' property to define the tab position, possible values are: 'top','bottom','left','right'.
* datagrid: Add a column level property 'order' that allows users to define different default sort order per column.
* datagrid: Add a column level property 'halign' that allows users to define how to align the column header.
* datagrid: Add 'resizeHandle' property to define the resizing column position, by grabbing the left or right edge of the column.
* datagrid: Add 'freezeRow' method to freeze some rows that will always be displayed at the top when the datagrid is scrolled down.
* datagrid: Add 'clearChecked' method to clear all checked records.
* datagrid: Add 'data' property to initialize the datagrid data.
* linkbutton: Add 'iconAlgin' property to define the icon position, supported values are: 'left','right'.
* menu: Add 'minWidth' property.
* menu: The menu width can be automatically calculated.
* tree: New events are available including 'onBeforeDrag','onStartDrag','onDragEnter','onDragOver','onDragLeave',etc.
* combo: Add 'height' property to allow users to define the height of combo.
* combo: Add 'reset' method.
* numberbox: Add 'reset' method.
* spinner: Add 'reset' method.
* spinner: Add 'height' property to allow users to define the height of spinner.
* searchbox: Add 'height' property to allow users to define the height of searchbox.
* form: Add 'reset' method.
* validatebox: Add 'delay' property to delay validating from the last inputting value.
* validatebox: Add 'tipPosition' property to define the tip position, supported values are: 'left','right'.
* validatebox: Multiple validate rules on a field is supported now.
* slider: Add 'reversed' property to determine if the min value and max value will switch their positions.
* progressbar: Add 'height' property to allow users to define the height of progressbar.
Version 1.3.1
-------------
* Bug
* datagrid: Setting the 'pageNumber' property is not valid. fixed.
* datagrid: The id attribute of rows isn't adjusted properly while calling 'insertRow' or 'deleteRow' method.
* dialog: When load content from 'href', the script will run twice. fixed.
* propertygrid: The editors that extended from combo can not accept its changed value. fixed.
* Improvement
* droppable: Add 'disabled' property.
* droppable: Add 'options','enable' and 'disable' methods.
* tabs: The tab panel tools can be changed by calling 'update' method.
* messager: When show a message window, the user can define the window position by applying 'style' property.
* window: Prevent script on window body from running twice.
* window: Add 'hcenter','vcenter' and 'center' methods.
* tree: Add 'onBeforeCheck' callback event.
* tree: Extend the 'getChecked' method to allow users to get 'checked','unchecked' or 'indeterminate' nodes.
* treegrid: Add 'update' method to update a specified node.
* treegrid: Add 'insert' method to insert a new node.
* treegrid: Add 'pop' method to remove a node and get the removed node data.
Version 1.3
-----------
* Bug
* combogrid: When set to 'remote' query mode, the 'queryParams' parameters can't be sent to server. fixed.
* combotree: The tree nodes on drop-down panel can not be unchecked while calling 'clear' method. fixed.
* datetimebox: Setting 'showSeconds' property to false cannot hide seconds info. fixed.
* datagrid: Calling 'mergeCells' method can't auto resize the merged cell while header is hidden. fixed.
* dialog: Set cache to false and load data via ajax, the content cannot be refreshed. fixed.
* Improvement
* The HTML5 'data-options' attribute is available for components to declare all custom options, including properties and events.
* More detailed documentation is available.
* panel: Prevent script on panel body from running twice.
* accordion: Add 'getPanelIndex' method.
* accordion: The tools can be added on panel header.
* datetimebox: Add 'timeSeparator' option that allows users to define the time separator.
* pagination: Add 'refresh' and 'select' methods.
* datagrid: Auto resize the column width to fit the contents when the column width is not defined.
* datagrid: Double click on the right border of columns to auto resize the columns to the contents in the columns.
* datagrid: Add 'autoSizeColumn' method that allows users to adjust the column width to fit the contents.
* datagrid: Add 'getChecked' method to get all rows where the checkbox has been checked.
* datagrid: Add 'selectOnCheck' and 'checkOnSelect' properties and some checking methods to enhance the row selections.
* datagrid: Add 'pagePosition' property to allow users to display pager bar at either top,bottom or both places of the grid.
* datagrid: The buffer view and virtual scroll view are supported to display large amounts of records without pagination.
* tabs: Add 'disableTab' and 'enableTab' methods to allow users to disable or enable a tab panel.
Version 1.2.6
-------------
* Bug
* tabs: Call 'add' method with 'selected:false' option, the added tab panel is always selected. fixed.
* treegrid: The 'onSelect' and 'onUnselect' events can't be triggered. fixed.
* treegrid: Cannot display zero value field. fixed.
* Improvement
* propertygrid: Add 'expandGroup' and 'collapseGroup' methods.
* layout: Allow users to create collapsed layout panels by assigning 'collapsed' property to true.
* layout: Add 'add' and 'remove' methods that allow users to dynamically add or remove region panel.
* layout: Additional tool icons can be added on region panel header.
* calendar: Add 'firstDay' option that allow users to set first day of week. Sunday is 0, Monday is 1, ...
* tree: Add 'lines' option, true to display tree lines.
* tree: Add 'loadFilter' option that allow users to change data format before loading into the tree.
* tree: Add 'loader' option that allow users to define how to load data from remote server.
* treegrid: Add 'onClickCell' and 'onDblClickCell' callback function options.
* datagrid: Add 'autoRowHeight' property that allow users to determine if set the row height based on the contents of that row.
* datagrid: Improve performance to load large data set.
* datagrid: Add 'loader' option that allow users to define how to load data from remote server.
* treegrid: Add 'loader' option that allow users to define how to load data from remote server.
* combobox: Add 'onBeforeLoad' callback event function.
* combobox: Add 'loader' option that allow users to define how to load data from remote server.
* Add support for other loading mode such as dwr,xml,etc.
* New Plugins
* slider: Allows the user to choose a numeric value from a finite range.
Version 1.2.5
-------------
* Bug
* tabs: When add a new tab panel with href property, the content page is loaded twice. fixed.
* form: Failed to call 'load' method to load form input with complex name. fixed.
* draggable: End drag in ie9, the cursor cannot be restored. fixed.
* Improvement
* panel: The tools can be defined via html markup.
* tabs: Call 'close' method to close specified tab panel, users can pass tab title or index of tab panel. Other methods such 'select','getTab' and 'exists' are similar to 'close' method.
* tabs: Add 'getTabIndex' method.
* tabs: Users can define mini tools on tabs.
* tree: The mouse must move a specified distance to begin drag and drop operation.
* resizable: Add 'options','enable' and 'disable' methods.
* numberbox: Allow users to change number format.
* datagrid: The subgrid is supported now.
* searchbox: Add 'selectName' method to select searching type name.
Version 1.2.4
-------------
* Bug
* menu: The menu position is wrong when scroll bar appears. fixed.
* accordion: Cannot display the default selected panel in jQuery 1.6.2. fixed.
* tabs: Cannot display the default selected tab panel in jQuery 1.6.2. fixed.
* Improvement
* menu: Allow users to disable or enable menu item.
* combo: Add 'delay' property to set the delay time to do searching from the last key input event.
* treegrid: The 'getEditors' and 'getEditor' methods are supported now.
* treegrid: The 'loadFilter' option is supported now.
* messager: Add 'progress' method to display a message box with a progress bar.
* panel: Add 'extractor' option to allow users to extract panel content from ajax response.
* New Plugins
* searchbox: Allow users to type words into box and do searching operation.
* progressbar: To display the progress of a task.
Version 1.2.3
-------------
* Bug
* window: Cannot resize the window with iframe content. fixed.
* tree: The node will be removed when dragging to its child. fixed.
* combogrid: The onChange event fires multiple times. fixed.
* accordion: Cannot add batch new panels when animate property is set to true. fixed.
* Improvement
* treegrid: The footer row and row styler features are supported now.
* treegrid: Add 'getLevel','reloadFooter','getFooterRows' methods.
* treegrid: Support root nodes pagination and editable features.
* datagrid: Add 'getFooterRows','reloadFooter','insertRow' methods and improve editing performance.
* datagrid: Add 'loadFilter' option that allow users to change original source data to standard data format.
* draggable: Add 'onBeforeDrag' callback event function.
* validatebox: Add 'remote' validation type.
* combobox: Add 'method' option.
* New Plugins
* propertygrid: Allow users to edit property value in datagrid.
Version 1.2.2
-------------
* Bug
* datagrid: Apply fitColumns cannot work fine while set checkbox column. fixed.
* datagrid: The validateRow method cannot return boolean type value. fixed.
* numberbox: Cannot fix value in chrome when min or max property isn't defined. fixed.
* Improvement
* menu: Add some crud methods.
* combo: Add hasDownArrow property to determine whether to display the down arrow button.
* tree: Supports inline editing.
* calendar: Add some useful methods such as 'resize', 'moveTo' etc.
* timespinner: Add some useful methods.
* datebox: Refactoring based on combo and calendar plugin now.
* datagrid: Allow users to change row style in some conditions.
* datagrid: Users can use the footer row to display summary information.
* New Plugins
* datetimebox: Combines datebox with timespinner component.
Version 1.2.1
-------------
* Bug
* easyloader: Some dependencies cannot be loaded by their order. fixed.
* tree: The checkbox is setted incorrectly when removing a node. fixed.
* dialog: The dialog layout incorrectly when 'closed' property is setted to true. fixed.
* Improvement
* parser: Add onComplete callback function that can indicate whether the parse action is complete.
* menu: Add onClick callback function and some other methods.
* tree: Add some useful methods.
* tree: Drag and Drop feature is supported now.
* tree: Add onContextMenu callback function.
* tabs: Add onContextMenu callback function.
* tabs: Add 'tools' property that can create buttons on right bar.
* datagrid: Add onHeaderContextMenu and onRowContextMenu callback functions.
* datagrid: Custom view is supported.
* treegrid: Add onContextMenu callback function and append,remove methods.
Version 1.2
-------------
* Improvement
* tree: Add cascadeCheck,onlyLeafCheck properties and select event.
* combobox: Enable multiple selection.
* combotree: Enable multiple selection.
* tabs: Remember the trace of selection, when current tab panel is closed, the previous selected tab will be selected.
* datagrid: Extend from panel, so many properties defined in panel can be used for datagrid.
* New Plugins
* treegrid: Represent tabular data in hierarchical view, combines tree view and datagrid.
* combo: The basic component that allow user to extend their combo component such as combobox,combotree,etc.
* combogrid: Combines combobox with drop-down datagrid component.
* spinner: The basic plugin to create numberspinner,timespinner,etc.
* numberspinner: The numberbox that allow user to change value by clicking up and down spin buttons.
* timespinner: The time selector that allow user to quickly inc/dec a time.
Version 1.1.2
-------------
* Bug
* messager: When call show method in layout, the message window will be blocked. fixed.
* Improvement
* datagrid: Add validateRow method, remember the current editing row status when do editing action.
* datagrid: Add the ability to create merged cells.
* form: Add callback functions when loading data.
* panel,window,dialog: Add maximize,minimize,restore,collapse,expand methods.
* panel,tabs,accordion: The lazy loading feature is supported.
* tabs: Add getSelected,update,getTab methods.
* accordion: Add crud methods.
* linkbutton: Accept an id option to set the id attribute.
* tree: Enhance tree node operation.
Version 1.1.1
-------------
* Bug
* form: Cannot clear the value of combobox and combotree component. fixed.
* Improvement
* tree: Add some useful methods such as 'getRoot','getChildren','update',etc.
* datagrid: Add editable feature, improve performance while loading data.
* datebox: Add destroy method.
* combobox: Add destroy and clear method.
* combotree: Add destroy and clear method.
Version 1.1
-------------
* Bug
* messager: When call show method with timeout property setted, an error occurs while clicking the close button. fixed.
* combobox: The editable property of combobox plugin is invalid. fixed.
* window: The proxy box will not be removed when dragging or resizing exceed browser border in ie. fixed.
* Improvement
* menu: The menu item can use markup to display a different page.
* tree: The tree node can use markup to act as a tree menu.
* pagination: Add some event on refresh button and page list.
* datagrid: Add a 'param' parameter for reload method, with which users can pass query parameter when reload data.
* numberbox: Add required validation support, the usage is same as validatebox plugin.
* combobox: Add required validation support.
* combotree: Add required validation support.
* layout: Add some method that can get a region panel and attach event handlers.
* New Plugins
* droppable: A droppable plugin that supports drag drop operation.
* calendar: A calendar plugin that can either be embedded within a page or popup.
* datebox: Combines a textbox with a calendar that let users to select date.
* easyloader: A JavaScript loader that allows you to load plugin and their dependencies into your page.
Version 1.0.5
* Bug
* panel: The fit property of panel performs incorrectly. fixed.
* Improvement
* menu: Add a href attribute for menu item, with which user can display a different page in the current browser window.
* form: Add a validate method to do validation for validatebox component.
* dialog: The dialog can read collapsible,minimizable,maximizable and resizable attribute from markup.
* New Plugins
* validatebox: A validation plugin that checks to make sure the user's input value is valid.
Version 1.0.4
-------------
* Bug
* panel: When panel is invisible, it is abnormal when resized. fixed.
* panel: Memory leak in method 'destroy'. fixed.
* messager: Memory leak when messager box is closed. fixed.
* dialog: No onLoad event occurs when loading remote data. fixed.
* Improvement
* panel: Add method 'setTitle'.
* window: Add method 'setTitle'.
* dialog: Add method 'setTitle'.
* combotree: Add method 'getValue'.
* combobox: Add method 'getValue'.
* form: The 'load' method can load data and fill combobox and combotree field correctly.
Version 1.0.3
-------------
* Bug
* menu: When menu is show in a DIV container, it will be cropped. fixed.
* layout: If you collpase a region panel and then expand it immediately, the region panel will not show normally. fixed.
* accordion: If no panel selected then the first one will become selected and the first panel's body height will not set correctly. fixed.
* Improvement
* tree: Add some methods to support CRUD operation.
* datagrid: Toolbar can accept a new property named 'disabled' to disable the specified tool button.
* New Plugins
* combobox: Combines a textbox with a list of options that users are able to choose from.
* combotree: Combines combobox with drop-down tree component.
* numberbox: Make input element can only enter number char.
* dialog: rewrite the dialog plugin, dialog can contains toolbar and buttons.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/_content.html
================================================
AJAX Content
Here is the content loaded via AJAX.
easyui is a collection of user-interface plugin based on jQuery.
easyui provides essential functionality for building modern, interactive, javascript applications.
using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
complete framework for HTML5 web page.
easyui save your time and scales while developing your products.
easyui is very easy but powerful.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/actions.html
================================================
Accordion Actions - jQuery EasyUI Demo
Accordion Actions
Click the buttons below to add or remove accordion items.
Accordion for jQuery
Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/ajax.html
================================================
Loading Accordion Content with AJAX - jQuery EasyUI Demo
Loading Accordion Content with AJAX
Click AJAX panel header to load content via AJAX.
Accordion for jQuery
Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.
The accordion allows you to provide multiple panels and display one or more at a time. Each panel has built-in support for expanding and collapsing. Clicking on a panel header to expand or collapse that panel body. The panel content can be loaded via ajax by specifying a 'href' property. Users can define a panel to be selected. If it is not specified, then the first panel is taken by default.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/basic.html
================================================
Basic Accordion - jQuery EasyUI Demo
Basic Accordion
Click on panel header to show its content.
Accordion for jQuery
Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.
The accordion allows you to provide multiple panels and display one or more at a time. Each panel has built-in support for expanding and collapsing. Clicking on a panel header to expand or collapse that panel body. The panel content can be loaded via ajax by specifying a 'href' property. Users can define a panel to be selected. If it is not specified, then the first panel is taken by default.
Foods
Fruits
Vegetables
tomato
carrot
cabbage
potato
lettuce
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/datagrid_data1.json
================================================
{"total":28,"rows":[
{"productid":"FI-SW-01","productname":"Koi","unitcost":10.00,"status":"P","listprice":36.50,"attr1":"Large","itemid":"EST-1"},
{"productid":"K9-DL-01","productname":"Dalmation","unitcost":12.00,"status":"P","listprice":18.50,"attr1":"Spotted Adult Female","itemid":"EST-10"},
{"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":38.50,"attr1":"Venomless","itemid":"EST-11"},
{"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":26.50,"attr1":"Rattleless","itemid":"EST-12"},
{"productid":"RP-LI-02","productname":"Iguana","unitcost":12.00,"status":"P","listprice":35.50,"attr1":"Green Adult","itemid":"EST-13"},
{"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":158.50,"attr1":"Tailless","itemid":"EST-14"},
{"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":83.50,"attr1":"With tail","itemid":"EST-15"},
{"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":23.50,"attr1":"Adult Female","itemid":"EST-16"},
{"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":89.50,"attr1":"Adult Male","itemid":"EST-17"},
{"productid":"AV-CB-01","productname":"Amazon Parrot","unitcost":92.00,"status":"P","listprice":63.50,"attr1":"Adult Male","itemid":"EST-18"}
]}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/expandable.html
================================================
Keep Expandable Panel in Accordion - jQuery EasyUI Demo
Keep Expandable Panel in Accordion
Keep a expandable panel and prevent it from collapsing.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/fluid.html
================================================
Fluid Accordion - jQuery EasyUI Demo
Fluid Accordion
This example shows how to set the width of accordion to a percentage of its parent container.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/multiple.html
================================================
Multiple Accordion Panels - jQuery EasyUI Demo
Multiple Accordion Panels
Enable 'multiple' mode to expand multiple panels at one time.
A programming language is a formal language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine and/or to express algorithms precisely.
Java (Indonesian: Jawa) is an island of Indonesia. With a population of 135 million (excluding the 3.6 million on the island of Madura which is administered as part of the provinces of Java), Java is the world's most populous island, and one of the most densely populated places in the world.
C# is a multi-paradigm programming language encompassing strong typing, imperative, declarative, functional, generic, object-oriented (class-based), and component-oriented programming disciplines.
A dynamic, reflective, general-purpose object-oriented programming language.
Fortran (previously FORTRAN) is a general-purpose, imperative programming language that is especially suited to numeric computation and scientific computing.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/accordion/tools.html
================================================
Accordion Tools - jQuery EasyUI Demo
Accordion Tools
Click the tools on top right of panel to perform actions.
Accordion for jQuery
Accordion is a part of easyui framework for jQuery. It lets you define your accordion component on web page more easily.
The accordion allows you to provide multiple panels and display one ore more at a time. Each panel has built-in support for expanding and collapsing. Clicking on a panel header to expand or collapse that panel body. The panel content can be loaded via ajax by specifying a 'href' property. Users can define a panel to be selected. If it is not specified, then the first panel is taken by default.
Item ID
Product ID
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/calendar/basic.html
================================================
Basic Calendar - jQuery EasyUI Demo
Basic Calendar
Click to select date.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/calendar/custom.html
================================================
Custom Calendar - jQuery EasyUI Demo
Custom Calendar
This example shows how to custom the calendar date by using 'formatter' function.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/calendar/disabledate.html
================================================
Disable Calendar Date - jQuery EasyUI Demo
Disable Calendar Date
This example shows how to disable specified dates, only allows the user to select Mondays.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/calendar/firstday.html
================================================
First Day of Week - jQuery EasyUI Demo
First Day of Week
Choose the first day of the week.
Sunday
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/calendar/fluid.html
================================================
Fluid Calendar - jQuery EasyUI Demo
Fluid Calendar
This example shows how to set the width of calendar to a percentage of its parent container.
width: 50%, height: 250px
width: 30%, height: 40%
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combo/animation.html
================================================
Combo Animation - jQuery EasyUI Demo
Combo Animation
Change the animation type when open & close the drop-down panel.
Animation Type:
slide
fade
show
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combo/basic.html
================================================
Basic Combo - jQuery EasyUI Demo
Basic Combo
Click the right arrow button to show drop down panel that can be filled with any content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/actions.html
================================================
ComboBox Actions - jQuery EasyUI Demo
ComboBox
Click the buttons below to perform actions.
Alabama
Alaska
Arizona
Arkansas
California
Colorado
Connecticut
Delaware
Florida
Georgia
Hawaii
Idaho
Illinois
Indiana
Iowa
Kansas
Kentucky
Louisiana
Maine
Maryland
Massachusetts
Michigan
Minnesota
Mississippi
Missouri
Montana
Nebraska
Nevada
New Hampshire
New Jersey
New Mexico
New York
North Carolina
North Dakota
Ohio
Oklahoma
Oregon
Pennsylvania
Rhode Island
South Carolina
South Dakota
Tennessee
Texas
Utah
Vermont
Virginia
Washington
West Virginia
Wisconsin
Wyoming
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/basic.html
================================================
Basic ComboBox - jQuery EasyUI Demo
Basic ComboBox
Type in ComboBox to try auto complete.
Alabama
Alaska
Arizona
Arkansas
California
Colorado
Connecticut
Delaware
Florida
Georgia
Hawaii
Idaho
Illinois
Indiana
Iowa
Kansas
Kentucky
Louisiana
Maine
Maryland
Massachusetts
Michigan
Minnesota
Mississippi
Missouri
Montana
Nebraska
Nevada
New Hampshire
New Jersey
New Mexico
New York
North Carolina
North Dakota
Ohio
Oklahoma
Oregon
Pennsylvania
Rhode Island
South Carolina
South Dakota
Tennessee
Texas
Utah
Vermont
Virginia
Washington
West Virginia
Wisconsin
Wyoming
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/combobox_data1.json
================================================
[{
"id":1,
"text":"Java",
"desc":"Write once, run anywhere"
},{
"id":2,
"text":"C#",
"desc":"One of the programming languages designed for the Common Language Infrastructure"
},{
"id":3,
"text":"Ruby",
"selected":true,
"desc":"A dynamic, reflective, general-purpose object-oriented programming language"
},{
"id":4,
"text":"Perl",
"desc":"A high-level, general-purpose, interpreted, dynamic programming language"
},{
"id":5,
"text":"Basic",
"desc":"A family of general-purpose, high-level programming languages"
}]
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/combobox_data2.json
================================================
[{
"value":"f20",
"text":"Firefox 2.0 or higher",
"group":"Firefox"
},{
"value":"f15",
"text":"Firefox 1.5.x",
"group":"Firefox"
},{
"value":"f10",
"text":"Firefox 1.0.x",
"group":"Firefox"
},{
"value":"ie7",
"text":"Microsoft Internet Explorer 7.0 or higher",
"group":"Microsoft Internet Explorer"
},{
"value":"ie6",
"text":"Microsoft Internet Explorer 6.x",
"group":"Microsoft Internet Explorer"
},{
"value":"ie5",
"text":"Microsoft Internet Explorer 5.x",
"group":"Microsoft Internet Explorer"
},{
"value":"ie4",
"text":"Microsoft Internet Explorer 4.x",
"group":"Microsoft Internet Explorer"
},{
"value":"op9",
"text":"Opera 9.0 or higher",
"group":"Opera"
},{
"value":"op8",
"text":"Opera 8.x",
"group":"Opera"
},{
"value":"op7",
"text":"Opera 7.x",
"group":"Opera"
},{
"value":"Safari",
"text":"Safari"
},{
"value":"Other",
"text":"Other"
}]
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/customformat.html
================================================
Custom Format in ComboBox - jQuery EasyUI Demo
Custom Format in ComboBox
This sample shows how to custom the format of list item.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/dynamicdata.html
================================================
Load Dynamic ComboBox Data - jQuery EasyUI Demo
Load Dynamic ComboBox Data
Click the button below to load data.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/fluid.html
================================================
Fluid ComboBox - jQuery EasyUI Demo
Fluid ComboBox
This example shows how to set the width of combobox to a percentage of its parent container.
width: 50%
width: 30%
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/group.html
================================================
Group ComboBox - jQuery EasyUI Demo
Group ComboBox
This example shows how to display combobox items in groups.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/icons.html
================================================
ComboBox with Extra Icons- jQuery EasyUI Demo
ComboBox with Extra Icons
The user can attach extra icons to the ComboBox.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/multiline.html
================================================
Multiline ComboBox - jQuery EasyUI Demo
Multiline ComboBox
This example shows how to create a multiline ComboBox.
Alabama
Alaska
Arizona
Arkansas
California
Colorado
Connecticut
Delaware
Florida
Georgia
Hawaii
Idaho
Illinois
Indiana
Iowa
Kansas
Kentucky
Louisiana
Maine
Maryland
Massachusetts
Michigan
Minnesota
Mississippi
Missouri
Montana
Nebraska
Nevada
New Hampshire
New Jersey
New Mexico
New York
North Carolina
North Dakota
Ohio
Oklahoma
Oregon
Pennsylvania
Rhode Island
South Carolina
South Dakota
Tennessee
Texas
Utah
Vermont
Virginia
Washington
West Virginia
Wisconsin
Wyoming
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/multiple.html
================================================
Multiple Select - jQuery EasyUI Demo
Load Dynamic ComboBox Data
Drop down the panel and select multiple items.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/navigation.html
================================================
Navigate ComboBox - jQuery EasyUI Demo
Navigate ComboBox
Navigate through combobox items width keyboard to select an item.
SelectOnNavigation
Alabama
Alaska
Arizona
Arkansas
California
Colorado
Connecticut
Delaware
Florida
Georgia
Hawaii
Idaho
Illinois
Indiana
Iowa
Kansas
Kentucky
Louisiana
Maine
Maryland
Massachusetts
Michigan
Minnesota
Mississippi
Missouri
Montana
Nebraska
Nevada
New Hampshire
New Jersey
New Mexico
New York
North Carolina
North Dakota
Oklahoma
Oregon
Pennsylvania
Rhode Island
South Carolina
South Dakota
Tennessee
Texas
Utah
Vermont
Virginia
Washington
West Virginia
Wisconsin
Wyoming
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/remotedata.html
================================================
Binding to Remote Data - jQuery EasyUI Demo
Binding to Remote Data
The ComboBox is bound to a remote data.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combobox/remotejsonp.html
================================================
Remote JSONP - jQuery EasyUI Demo
Remote JSONP
This sample shows how to use JSONP to retrieve data from a remote site.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combogrid/actions.html
================================================
ComboGrid Actions - jQuery EasyUI Demo
ComboGrid Actions
Click the buttons below to perform actions.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combogrid/basic.html
================================================
Basic ComboGrid - jQuery EasyUI Demo
Basic ComboGrid
Click the right arrow button to show the DataGrid.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combogrid/datagrid_data1.json
================================================
{"total":28,"rows":[
{"productid":"FI-SW-01","productname":"Koi","unitcost":10.00,"status":"P","listprice":36.50,"attr1":"Large","itemid":"EST-1"},
{"productid":"K9-DL-01","productname":"Dalmation","unitcost":12.00,"status":"P","listprice":18.50,"attr1":"Spotted Adult Female","itemid":"EST-10"},
{"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":38.50,"attr1":"Venomless","itemid":"EST-11"},
{"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":26.50,"attr1":"Rattleless","itemid":"EST-12"},
{"selected":true,"productid":"RP-LI-02","productname":"Iguana","unitcost":12.00,"status":"P","listprice":35.50,"attr1":"Green Adult","itemid":"EST-13"},
{"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":158.50,"attr1":"Tailless","itemid":"EST-14"},
{"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":83.50,"attr1":"With tail","itemid":"EST-15"},
{"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":23.50,"attr1":"Adult Female","itemid":"EST-16"},
{"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":89.50,"attr1":"Adult Male","itemid":"EST-17"},
{"productid":"AV-CB-01","productname":"Amazon Parrot","unitcost":92.00,"status":"P","listprice":63.50,"attr1":"Adult Male","itemid":"EST-18"}
]}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combogrid/fluid.html
================================================
Fluid ComboGrid - jQuery EasyUI Demo
Fluid ComboGrid
This example shows how to set the width of ComboGrid to a percentage of its parent container.
width: 50%
width: 30%
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combogrid/initvalue.html
================================================
Initialize Value for ComboGrid - jQuery EasyUI Demo
Initialize Value for ComboGrid
Initialize value when ComboGrid is created.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combogrid/multiple.html
================================================
Multiple ComboGrid - jQuery EasyUI Demo
Multiple ComboGrid
Click the right arrow button to show the DataGrid and select items.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combogrid/navigation.html
================================================
Navigate ComboGrid - jQuery EasyUI Demo
Navigate ComboGrid
Navigate through grid items with keyboard to select an item.
SelectOnNavigation
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combotree/actions.html
================================================
ComboTree Actions - jQuery EasyUI Demo
ComboTree Actions
Click the buttons below to perform actions
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combotree/basic.html
================================================
Basic ComboTree - jQuery EasyUI Demo
Basic ComboTree
Click the right arrow button to show the tree panel.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combotree/fluid.html
================================================
Fluid ComboTree - jQuery EasyUI Demo
Fluid ComboTree
This example shows how to set the width of ComboTree to a percentage of its parent container.
width: 50%
width: 30%, height: 26px
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combotree/initvalue.html
================================================
Initialize Value for ComboTree - jQuery EasyUI Demo
Initialize Value for ComboTree
Initialize Value when ComboTree is created.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combotree/multiple.html
================================================
Multiple ComboTree - jQuery EasyUI Demo
Multiple ComboTree
Click the right arrow button to show the tree panel and select multiple nodes.
Cascade Check:
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/combotree/tree_data1.json
================================================
[{
"id":1,
"text":"My Documents",
"children":[{
"id":11,
"text":"Photos",
"state":"closed",
"children":[{
"id":111,
"text":"Friend"
},{
"id":112,
"text":"Wife"
},{
"id":113,
"text":"Company"
}]
},{
"id":12,
"text":"Program Files",
"children":[{
"id":121,
"text":"Intel"
},{
"id":122,
"text":"Java",
"attributes":{
"p1":"Custom Attribute1",
"p2":"Custom Attribute2"
}
},{
"id":123,
"text":"Microsoft Office"
},{
"id":124,
"text":"Games",
"checked":true
}]
},{
"id":13,
"text":"index.html"
},{
"id":14,
"text":"about.html"
},{
"id":15,
"text":"welcome.html"
}]
}]
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/aligncolumns.html
================================================
Aligning Columns in DataGrid - jQuery EasyUI Demo
Aligning Columns in DataGrid
Use align and halign properties to set the alignment of the columns and their header.
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/basic.html
================================================
Basic DataGrid - jQuery EasyUI Demo
Basic DataGrid
The DataGrid is created from markup, no JavaScript code needed.
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/cacheeditor.html
================================================
Cache Editor for DataGrid - jQuery EasyUI Demo
Cache Editor for DataGrid
This example shows how to cache the editors for datagrid to improve the editing speed.
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/cellediting.html
================================================
Cell Editing in DataGrid - jQuery EasyUI Demo
Cell Editing in DataGrid
Click a cell to start editing.
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/cellstyle.html
================================================
DataGrid Cell Style - jQuery EasyUI Demo
DataGrid Cell Style
The cells which listprice value is less than 30 are highlighted.
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/checkbox.html
================================================
CheckBox Selection on DataGrid - jQuery EasyUI Demo
CheckBox Selection on DataGrid
Click the checkbox on header to select or unselect all selections.
Item ID
Product
List Price
Unit Cost
Attribute
Status
Selection Mode:
Single Row
Multiple Rows
SelectOnCheck:
CheckOnSelect:
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/clientpagination.html
================================================
Client Side Pagination in DataGrid - jQuery EasyUI Demo
Client Side Pagination in DataGrid
This sample shows how to implement client side pagination in DataGrid.
Inv No
Date
Name
Amount
Price
Cost
Note
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/columngroup.html
================================================
Column Group - jQuery EasyUI Demo
Column Group
The header cells can be merged. Useful to group columns under a category.
Item ID
Product
Item Details
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/complextoolbar.html
================================================
DataGrid Complex Toolbar - jQuery EasyUI Demo
DataGrid Complex Toolbar
The DataGrid toolbar can be defined from a <div> markup, so you can define the layout of toolbar easily.
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/contextmenu.html
================================================
Context Menu on DataGrid - jQuery EasyUI Demo
Context Menu on DataGrid
Right click on the header of DataGrid to display context menu.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/custompager.html
================================================
Custom DataGrid Pager - jQuery EasyUI Demo
Custom DataGrid Pager
You can append some buttons to the standard datagrid pager bar.
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/datagrid_data1.json
================================================
{"total":28,"rows":[
{"productid":"FI-SW-01","productname":"Koi","unitcost":10.00,"status":"P","listprice":36.50,"attr1":"Large","itemid":"EST-1"},
{"productid":"K9-DL-01","productname":"Dalmation","unitcost":12.00,"status":"P","listprice":18.50,"attr1":"Spotted Adult Female","itemid":"EST-10"},
{"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":38.50,"attr1":"Venomless","itemid":"EST-11"},
{"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":26.50,"attr1":"Rattleless","itemid":"EST-12"},
{"productid":"RP-LI-02","productname":"Iguana","unitcost":12.00,"status":"P","listprice":35.50,"attr1":"Green Adult","itemid":"EST-13"},
{"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":158.50,"attr1":"Tailless","itemid":"EST-14"},
{"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":83.50,"attr1":"With tail","itemid":"EST-15"},
{"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":23.50,"attr1":"Adult Female","itemid":"EST-16"},
{"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":89.50,"attr1":"Adult Male","itemid":"EST-17"},
{"productid":"AV-CB-01","productname":"Amazon Parrot","unitcost":92.00,"status":"P","listprice":63.50,"attr1":"Adult Male","itemid":"EST-18"}
]}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/datagrid_data2.json
================================================
{"total":28,"rows":[
{"productid":"FI-SW-01","unitcost":10.00,"status":"P","listprice":36.50,"attr1":"Large","itemid":"EST-1"},
{"productid":"K9-DL-01","unitcost":12.00,"status":"P","listprice":18.50,"attr1":"Spotted Adult Female","itemid":"EST-10"},
{"productid":"RP-SN-01","unitcost":12.00,"status":"P","listprice":28.50,"attr1":"Venomless","itemid":"EST-11"},
{"productid":"RP-SN-01","unitcost":12.00,"status":"P","listprice":26.50,"attr1":"Rattleless","itemid":"EST-12"},
{"productid":"RP-LI-02","unitcost":12.00,"status":"P","listprice":35.50,"attr1":"Green Adult","itemid":"EST-13"},
{"productid":"FL-DSH-01","unitcost":12.00,"status":"P","listprice":158.50,"attr1":"Tailless","itemid":"EST-14"},
{"productid":"FL-DSH-01","unitcost":12.00,"status":"P","listprice":83.50,"attr1":"With tail","itemid":"EST-15"},
{"productid":"FL-DLH-02","unitcost":12.00,"status":"P","listprice":63.50,"attr1":"Adult Female","itemid":"EST-16"},
{"productid":"FL-DLH-02","unitcost":12.00,"status":"P","listprice":89.50,"attr1":"Adult Male","itemid":"EST-17"},
{"productid":"AV-CB-01","unitcost":92.00,"status":"P","listprice":63.50,"attr1":"Adult Male","itemid":"EST-18"}
],"footer":[
{"unitcost":19.80,"listprice":60.40,"productid":"Average:"},
{"unitcost":198.00,"listprice":604.00,"productid":"Total:"}
]}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/fluid.html
================================================
Fluid DataGrid - jQuery EasyUI Demo
Fluid DataGrid
This example shows how to assign percentage width to a column in DataGrid.
Item ID(15%)
Product(15%)
List Price(15%)
Unit Cost(15%)
Attribute(25%)
Status(15%)
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/footer.html
================================================
Footer Rows in DataGrid - jQuery EasyUI Demo
Footer Rows in DataGrid
The summary informations can be displayed in footer rows.
Item ID
Product ID
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/formatcolumns.html
================================================
Format DataGrid Columns - jQuery EasyUI Demo
Format DataGrid Columns
The list price value will show red color when less than 30.
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/frozencolumns.html
================================================
Frozen Columns in DataGrid - jQuery EasyUI Demo
Frozen Columns in DataGrid
You can freeze some columns that can't scroll out of view.
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/frozenrows.html
================================================
Frozen Rows in DataGrid - jQuery EasyUI Demo
Frozen Rows in DataGrid
This sample shows how to freeze some rows that will always be displayed at the top when the datagrid is scrolled down.
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/mergecells.html
================================================
Merge Cells for DataGrid - jQuery EasyUI Demo
Merge Cells for DataGrid
Cells in DataGrid body can be merged.
Product
Item ID
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/multisorting.html
================================================
Multiple Sorting - jQuery EasyUI Demo
Multiple Sorting
Set 'multiSort' property to true to enable multiple column sorting.
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/products.json
================================================
[
{"productid":"FI-SW-01","productname":"Koi"},
{"productid":"K9-DL-01","productname":"Dalmation"},
{"productid":"RP-SN-01","productname":"Rattlesnake"},
{"productid":"RP-LI-02","productname":"Iguana"},
{"productid":"FL-DSH-01","productname":"Manx"},
{"productid":"FL-DLH-02","productname":"Persian"},
{"productid":"AV-CB-01","productname":"Amazon Parrot"}
]
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/rowborder.html
================================================
Row Border in DataGrid - jQuery EasyUI Demo
Row Border in DataGrid
This sample shows how to change the row border style of datagrid.
Border:
Both
No Border
Right Border
Bottom Border
Striped:
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/rowediting.html
================================================
Row Editing in DataGrid - jQuery EasyUI Demo
Row Editing in DataGrid
Click the row to start editing.
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/rowstyle.html
================================================
DataGrid Row Style - jQuery EasyUI Demo
DataGrid Row Style
The rows which listprice value is less than 30 are highlighted.
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/selection.html
================================================
DataGrid Selection - jQuery EasyUI Demo
DataGrid Selection
Choose a selection mode and select one or more rows.
Item ID
Product
List Price
Unit Cost
Attribute
Status
Selection Mode:
Single Row
Multiple Rows
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/simpletoolbar.html
================================================
DataGrid with Toolbar - jQuery EasyUI Demo
DataGrid with Toolbar
Put buttons on top toolbar of DataGrid.
Item ID
Product
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datagrid/transform.html
================================================
Transform DataGrid from Table - jQuery EasyUI Demo
Transform DataGrid from Table
Transform DataGrid from an existing, unformatted html table.
Item ID
Product
List Price
Attribute
EST-1 FI-SW-01 36.50 Large
EST-10 K9-DL-01 18.50 Spotted Adult Female
EST-11 RP-SN-01 28.50 Venomless
EST-12 RP-SN-01 26.50 Rattleless
EST-13 RP-LI-02 35.50 Green Adult
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/basic.html
================================================
Basic DateBox - jQuery EasyUI Demo
Basic DateBox
Click the calendar image on the right side.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/buttons.html
================================================
DateBox Buttons - jQuery EasyUI Demo
DateBox Buttons
This example shows how to customize the datebox buttons underneath the calendar.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/dateformat.html
================================================
Date Format - jQuery EasyUI Demo
Date Format
Different date formats are applied to different DateBox components.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/events.html
================================================
DateBox Events - jQuery EasyUI Demo
DateBox Events
Click the calendar image on the right side.
Selected Date:
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/fluid.html
================================================
Fluid DateBox - jQuery EasyUI Demo
Fluid DateBox
This example shows how to set the width of DateBox to a percentage of its parent container.
width: 50%
width: 30%
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/restrict.html
================================================
Restrict Date Range in DateBox - jQuery EasyUI Demo
Restrict Date Range in DateBox
This example shows how to restrict the user to select only ten days from now.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/sharedcalendar.html
================================================
Shared Calendar in DateBox - jQuery EasyUI Demo
Shared Calendar in DateBox
Multiple datebox components can share a calendar and use it to pick dates.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datebox/validate.html
================================================
Validate DateBox - jQuery EasyUI Demo
Validate DateBox
When the selected date is greater than specified date. The field validator will raise an error.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimebox/basic.html
================================================
Basic DateTimeBox - jQuery EasyUI Demo
Basic DateTimeBox
Click the calendar image on the right side.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimebox/fluid.html
================================================
Fluid DateTimeBox - jQuery EasyUI Demo
Fluid DateTimeBox
This example shows how to set the width of DateTimeBox to a percentage of its parent container.
width: 50%
width: 30%
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimebox/initvalue.html
================================================
Initialize Value for DateTime - jQuery EasyUI Demo
Initialize Value for DateTime
The value is initialized when DateTimeBox has been created.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimebox/showseconds.html
================================================
Display Seconds - jQuery EasyUI Demo
Display Seconds
The user can decide to display seconds part or not.
Show Seconds:
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimespinner/basic.html
================================================
Basic DateTimeSpinner - jQuery EasyUI Demo
Basic DateTimeSpinner
Click spin button to adjust date and time.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimespinner/clearicon.html
================================================
DateTimeSpinner with Clear Icon - jQuery EasyUI Demo
DateTimeSpinner with Clear Icon
A clear icon can be attached to the datetimespinner. Click it to clear the entered value.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimespinner/fluid.html
================================================
Fluid DateTimeSpinner - jQuery EasyUI Demo
Fluid DateTimeSpinner
The width of datetimespinner is set in percentages.
width: 50%
width: 30%
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/datetimespinner/format.html
================================================
Format DateTimeSpinner - jQuery EasyUI Demo
Format DateTimeSpinner
The DataTimeSpinner value can be formatted by specifying the 'formatter' and 'parser' functions.
mm/dd/yyyy hh:mm
mm/dd/yyyy
yyyy-mm
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/demo.css
================================================
*{
font-size:12px;
}
body {
font-family:verdana,helvetica,arial,sans-serif;
padding:20px;
font-size:12px;
margin:0;
}
h2 {
font-size:18px;
font-weight:bold;
margin:0;
margin-bottom:15px;
}
.demo-info{
padding:0 0 12px 0;
}
.demo-tip{
display:none;
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/dialog/basic.html
================================================
Basic Dialog - jQuery EasyUI Demo
Basic Dialog
Click below button to open or close dialog.
The dialog content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/dialog/complextoolbar.html
================================================
Complex Toolbar on Dialog - jQuery EasyUI Demo
Complex Toolbar on Dialog
This sample shows how to create complex toolbar on dialog.
The dialog content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/dialog/fluid.html
================================================
Fluid Dialog - jQuery EasyUI Demo
Fluid Dialog
This example shows how to set the width of Dialog to a percentage of its parent container.
width: 80%; height: 200px
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/dialog/toolbarbuttons.html
================================================
Toolbar and Buttons - jQuery EasyUI Demo
Toolbar and Buttons
The toolbar and buttons can be added to dialog.
The dialog content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/draggable/basic.html
================================================
Basic Draggable - jQuery EasyUI Demo
Basic Draggable
Move the boxes below by clicking on it with mouse.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/draggable/constrain.html
================================================
Constrain Draggable - jQuery EasyUI Demo
Constrain Draggable
The draggable object can only be moved within its parent container.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/draggable/snap.html
================================================
Snap Draggable - jQuery EasyUI Demo
Snap Draggable
This sample shows how to snap a draggable object to a 20x20 grid.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/droppable/accept.html
================================================
Accept a Drop - jQuery EasyUI Demo
Accept a Drop
Some draggable object can not be accepted.
drag me!
Drag 1
Drag 2
Drag 3
drop here!
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/droppable/basic.html
================================================
Basic Droppable - jQuery EasyUI Demo
Basic Droppable
Drag the boxed on left to the target area on right.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/droppable/sort.html
================================================
Change Items Order - jQuery EasyUI Demo
Change Items Order
Drag the list items to change their order.
Drag 1
Drag 2
Drag 3
Drag 4
Drag 5
Drag 6
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/easyloader/basic.html
================================================
Basic EasyLoader - jQuery EasyUI Demo
Basic EasyLoader
Click the buttons below to load components dynamically.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/filebox/basic.html
================================================
Basic FileBox - jQuery EasyUI Demo
Basic FileBox
The filebox component represents a file field of the forms.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/filebox/buttonalign.html
================================================
Button Align on FileBox - jQuery EasyUI Demo
Button Align on FileBox
Change the button align to the left or right of filebox.
Select Button Align:
Left
Right
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/filebox/fluid.html
================================================
Fluid FileBox - jQuery EasyUI Demo
Fluid FileBox
This example shows how to set the width of FileBox to a percentage of its parent container.
width: 50%
width: 30%
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/form/basic.html
================================================
Basic Form - jQuery EasyUI Demo
Basic Form
Fill the form and submit it.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/form/form_data1.json
================================================
{
"name":"easyui",
"email":"easyui@gmail.com",
"subject":"Subject Title",
"message":"Message Content",
"language":"de"
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/form/load.html
================================================
Load Form Data - jQuery EasyUI Demo
Load Form Data
Click the buttons below to load form data.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/form/validateonsubmit.html
================================================
Validate Form on Submit - jQuery EasyUI Demo
Validate Form on Submit
The form does not perform validation before being submitted.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/_content.html
================================================
AJAX Content
jQuery EasyUI framework help you build your web page easily.
easyui is a collection of user-interface plugin based on jQuery.
easyui provides essential functionality for building modern, interactive, javascript applications.
using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
complete framework for HTML5 web page.
easyui save your time and scales while developing your products.
easyui is very easy but powerful.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/addremove.html
================================================
Add and Remove Layout - jQuery EasyUI Demo
Add and Remove Layout
Click the buttons below to add or remove region panel of layout.
Select Region Panel:
North
South
East
West
Add
Remove
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/autoheight.html
================================================
Auto Height for Layout - jQuery EasyUI Demo
Auto Height for Layout
This example shows how to auto adjust layout height after dynamically adding items.
Panel Content.
Panel Content.
Panel Content.
Panel Content.
Panel Content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/basic.html
================================================
Basic Layout - jQuery EasyUI Demo
Basic Layout
The layout contains north,south,west,east and center regions.
Item ID
Product ID
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/complex.html
================================================
Complex Layout - jQuery EasyUI Demo
Complex Layout
This sample shows how to create a complex layout.
content1
content2
content3
Item ID
Product ID
List Price
Unit Cost
Attribute
Status
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/datagrid_data1.json
================================================
{"total":28,"rows":[
{"productid":"FI-SW-01","productname":"Koi","unitcost":10.00,"status":"P","listprice":36.50,"attr1":"Large","itemid":"EST-1"},
{"productid":"K9-DL-01","productname":"Dalmation","unitcost":12.00,"status":"P","listprice":18.50,"attr1":"Spotted Adult Female","itemid":"EST-10"},
{"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":38.50,"attr1":"Venomless","itemid":"EST-11"},
{"productid":"RP-SN-01","productname":"Rattlesnake","unitcost":12.00,"status":"P","listprice":26.50,"attr1":"Rattleless","itemid":"EST-12"},
{"productid":"RP-LI-02","productname":"Iguana","unitcost":12.00,"status":"P","listprice":35.50,"attr1":"Green Adult","itemid":"EST-13"},
{"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":158.50,"attr1":"Tailless","itemid":"EST-14"},
{"productid":"FL-DSH-01","productname":"Manx","unitcost":12.00,"status":"P","listprice":83.50,"attr1":"With tail","itemid":"EST-15"},
{"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":23.50,"attr1":"Adult Female","itemid":"EST-16"},
{"productid":"FL-DLH-02","productname":"Persian","unitcost":12.00,"status":"P","listprice":89.50,"attr1":"Adult Male","itemid":"EST-17"},
{"productid":"AV-CB-01","productname":"Amazon Parrot","unitcost":92.00,"status":"P","listprice":63.50,"attr1":"Adult Male","itemid":"EST-18"}
]}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/fluid.html
================================================
Fluid Layout - jQuery EasyUI Demo
Fluid Layout
Percentage width of region panel in a layout.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/full.html
================================================
Full Layout - jQuery EasyUI Demo
north region
west content
east region
south region
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/nestedlayout.html
================================================
Nested Layout - jQuery EasyUI Demo
Nested Layout
The layout region panel contains another layout or other components.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/nocollapsible.html
================================================
No collapsible button in Layout - jQuery EasyUI Demo
No collapsible button in Layout
The layout region panel has no collapsible button.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/propertygrid_data1.json
================================================
{"total":7,"rows":[
{"name":"Name","value":"Bill Smith","group":"ID Settings","editor":"text"},
{"name":"Address","value":"","group":"ID Settings","editor":"text"},
{"name":"Age","value":"40","group":"ID Settings","editor":"numberbox"},
{"name":"Birthday","value":"01/02/2012","group":"ID Settings","editor":"datebox"},
{"name":"SSN","value":"123-456-7890","group":"ID Settings","editor":"text"},
{"name":"Email","value":"bill@gmail.com","group":"Marketing Settings","editor":{
"type":"validatebox",
"options":{
"validType":"email"
}
}},
{"name":"FrequentBuyer","value":"false","group":"Marketing Settings","editor":{
"type":"checkbox",
"options":{
"on":true,
"off":false
}
}}
]}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/layout/tree_data1.json
================================================
[{
"id":1,
"text":"My Documents",
"children":[{
"id":11,
"text":"Photos",
"state":"closed",
"children":[{
"id":111,
"text":"Friend"
},{
"id":112,
"text":"Wife"
},{
"id":113,
"text":"Company"
}]
},{
"id":12,
"text":"Program Files",
"children":[{
"id":121,
"text":"Intel"
},{
"id":122,
"text":"Java",
"attributes":{
"p1":"Custom Attribute1",
"p2":"Custom Attribute2"
}
},{
"id":123,
"text":"Microsoft Office"
},{
"id":124,
"text":"Games",
"checked":true
}]
},{
"id":13,
"text":"index.html"
},{
"id":14,
"text":"about.html"
},{
"id":15,
"text":"welcome.html"
}]
}]
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/basic.html
================================================
Basic LinkButton - jQuery EasyUI Demo
Basic LinkButton
Buttons can be created from <a> or <button> elements.
Basic Buttons
Fixed Width Buttons
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/fluid.html
================================================
Fluid LinkButton - jQuery EasyUI Demo
Fluid LinkButton
This example shows how to set the width of LinkButton to a percentage of its parent container.
width: 15%
width: 20%
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/group.html
================================================
Button Group - jQuery EasyUI Demo
Button Group
In a button group only one button can be selected.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/iconalign.html
================================================
Icon Align on LinkButton - jQuery EasyUI Demo
Icon Align on LinkButton
Change the icon align to place icon on left, right, top or bottom of button.
Select Icon Align:
Left
Right
Top
Bottom
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/plain.html
================================================
Plain LinkButton - jQuery EasyUI Demo
Plain LinkButton
The buttons with plain style have transparent background.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/size.html
================================================
LinkButton Size - jQuery EasyUI Demo
LinkButton Size
This sample shows how to display small buttons and large buttons.
Small Buttons
Large Buttons
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/style.html
================================================
Style LinkButton - jQuery EasyUI Demo
Style LinkButton
This example shows how to style a linkbutton.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/linkbutton/toggle.html
================================================
Toggle Button - jQuery EasyUI Demo
Toggle Button
Click the button below to switch its selected state.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/menu/basic.html
================================================
Basic Menu - jQuery EasyUI Demo
Basic Menu
Right click on page to display menu.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/menu/customitem.html
================================================
Custom Menu Item - jQuery EasyUI Demo
Custom Menu Item
Right click on page to display menu, move to the 'Open' item to display its custom sub content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/menu/events.html
================================================
Menu Events - jQuery EasyUI Demo
Menu Events
Right click on page to display menu and click an item.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/menubutton/actions.html
================================================
MenuButton Actions - jQuery EasyUI Demo
MenuButton Actions
Click the buttons below to perform actions.
Undo
Redo
Cut
Copy
Paste
Toolbar
Address
Link
Navigation Toolbar
Bookmark Toolbar
New Toolbar...
Delete
Select All
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/menubutton/alignment.html
================================================
Menu Alignment on MenuButton - jQuery EasyUI Demo
Menu Alignment on MenuButton
This example shows how to change the alignment of the top level menu.
Change Alignment:
Left
Right
Undo
Redo
Cut
Copy
Paste
Toolbar
Address
Link
Navigation Toolbar
Bookmark Toolbar
New Toolbar...
Delete
Select All
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/menubutton/basic.html
================================================
Basic MenuButton - jQuery EasyUI Demo
Basic MenuButton
Move mouse over the button to drop down menu.
Undo
Redo
Cut
Copy
Paste
Toolbar
Address
Link
Navigation Toolbar
Bookmark Toolbar
New Toolbar...
Delete
Select All
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/messager/alert.html
================================================
Alert Messager - jQuery EasyUI Demo
Alert Messager
Click on each button to display different alert message box.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/messager/basic.html
================================================
Basic Messager - jQuery EasyUI Demo
Basic Messager
Click on each button to see a distinct message box.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/messager/interactive.html
================================================
Interactive Messager - jQuery EasyUI Demo
Interactive Messager
Click on each button to display interactive message box.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/messager/position.html
================================================
Message Box Position - jQuery EasyUI Demo
Message Box Position
Click the buttons below to display message box on different position.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberbox/basic.html
================================================
Basic NumberBox - jQuery EasyUI Demo
Basic NumberBox
The NumberBox can only accept inputing numbers.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberbox/fluid.html
================================================
Fluid NumberBox - jQuery EasyUI Demo
Fluid NumberBox
This example shows how to set the width of NumberBox to a percentage of its parent container.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberbox/format.html
================================================
Format NumberBox - jQuery EasyUI Demo
Format NumberBox
Number formatting is the ability to control how a number is displayed.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberbox/range.html
================================================
Number Range - jQuery EasyUI Demo
Number Range
The value is constrained to a specified range.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberspinner/basic.html
================================================
Basic NumberSpinner - jQuery EasyUI Demo
Basic NumberSpinner
Click spinner button to change value.
Value:
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberspinner/fluid.html
================================================
Fluid NumberSpinner - jQuery EasyUI Demo
Fluid NumberSpinner
This example shows how to set the width of NumberSpinner to a percentage of its parent container.
width: 50%
width: 30%
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberspinner/increment.html
================================================
Increment Number - jQuery EasyUI Demo
Increment Number
The sample shows how to set the increment step.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/numberspinner/range.html
================================================
Number Range - jQuery EasyUI Demo
Number Range
The value is constrained to a range between 10 and 100.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/pagination/attaching.html
================================================
Attaching Other Components - jQuery EasyUI Demo
Attaching Other Components
Any other components can be attached to page bar.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/pagination/basic.html
================================================
Basic Pagination - jQuery EasyUI Demo
Basic Pagination
The user can change page number and page size on page bar.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/pagination/custombuttons.html
================================================
Custom Pagination Buttons - jQuery EasyUI Demo
Custom Pagination Buttons
The customized buttons can be appended to page bar.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/pagination/layout.html
================================================
Pagination Layout - jQuery EasyUI Demo
Pagination Layout
The pagination layout supports various types of pages which you can choose.
Previous Next
Manual Page Input
Numeric Links
Previous Links Next
Go To Page
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/pagination/links.html
================================================
Pagination Links - jQuery EasyUI Demo
Pagination Links
The example shows how to customize numbered pagination links.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/pagination/simple.html
================================================
Simplify Pagination - jQuery EasyUI Demo
Simplify Pagination
The sample shows how to simplify pagination.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/_content.html
================================================
AJAX Content
Here is the content loaded via AJAX.
easyui is a collection of user-interface plugin based on jQuery.
easyui provides essential functionality for building modern, interactive, javascript applications.
using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
complete framework for HTML5 web page.
easyui save your time and scales while developing your products.
easyui is very easy but powerful.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/basic.html
================================================
Basic Panel - jQuery EasyUI Demo
Basic Panel
The panel is a container for other components or elements.
jQuery EasyUI framework helps you build your web pages easily.
easyui is a collection of user-interface plugin based on jQuery.
easyui provides essential functionality for building modem, interactive, javascript applications.
using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
complete framework for HTML5 web page.
easyui save your time and scales while developing your products.
easyui is very easy but powerful.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/customtools.html
================================================
Custom Panel Tools - jQuery EasyUI Demo
Custom Panel Tools
Click the right top buttons to perform actions with panel.
jQuery EasyUI framework helps you build your web pages easily.
easyui is a collection of user-interface plugin based on jQuery.
easyui provides essential functionality for building modem, interactive, javascript applications.
using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
complete framework for HTML5 web page.
easyui save your time and scales while developing your products.
easyui is very easy but powerful.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/fluid.html
================================================
Fluid Panel - jQuery EasyUI Demo
Fluid Panel
This example shows how to set the width of Panel to a percentage of its parent container.
The panel has a width of 100%.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/footer.html
================================================
Panel Footer - jQuery EasyUI Demo
Panel Footer
The panel footer is displayed at the bottom of the panel and can consist of any other components.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/loadcontent.html
================================================
Load Panel Content - jQuery EasyUI Demo
Load Panel Content
Click the refresh button on top right of panel to load content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/nestedpanel.html
================================================
Nested Panel - jQuery EasyUI Demo
Nested Panel
The panel can be placed inside containers and can contain other components.
Left Content
Right Content
Right Content
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/panel/paneltools.html
================================================
Panel Tools - jQuery EasyUI Demo
Panel Tools
Click the right top buttons to perform actions with panel.
jQuery EasyUI framework helps you build your web pages easily.
easyui is a collection of user-interface plugin based on jQuery.
easyui provides essential functionality for building modem, interactive, javascript applications.
using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
complete framework for HTML5 web page.
easyui save your time and scales while developing your products.
easyui is very easy but powerful.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/progressbar/basic.html
================================================
Basic ProgressBar - jQuery EasyUI Demo
Basic ProgressBar
Click the button below to show progress information.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/progressbar/fluid.html
================================================
Fluid ProgressBar - jQuery EasyUI Demo
Fluid ProgressBar
This example shows how to set the width of ProgressBar to a percentage of its parent container.
width: 50%
width: 30%
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/propertygrid/basic.html
================================================
Basic PropertyGrid - jQuery EasyUI Demo
Basic PropertyGrid
Click on row to change each property value.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/propertygrid/customcolumns.html
================================================
Customize Columns of PropertyGrid - jQuery EasyUI Demo
Customize Columns of PropertyGrid
The columns of PropertyGrid can be changed.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/propertygrid/groupformat.html
================================================
Group Format - jQuery EasyUI Demo
Group Format
The user can change the group information.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/propertygrid/propertygrid_data1.json
================================================
{"total":7,"rows":[
{"name":"Name","value":"Bill Smith","group":"ID Settings","editor":"text"},
{"name":"Address","value":"","group":"ID Settings","editor":"text"},
{"name":"Age","value":"40","group":"ID Settings","editor":"numberbox"},
{"name":"Birthday","value":"01/02/2012","group":"ID Settings","editor":"datebox"},
{"name":"SSN","value":"123-456-7890","group":"ID Settings","editor":"text"},
{"name":"Email","value":"bill@gmail.com","group":"Marketing Settings","editor":{
"type":"validatebox",
"options":{
"validType":"email"
}
}},
{"name":"FrequentBuyer","value":"false","group":"Marketing Settings","editor":{
"type":"checkbox",
"options":{
"on":true,
"off":false
}
}}
]}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/resizable/basic.html
================================================
Basic Resizable - jQuery EasyUI Demo
Basic Resizable
Click on the edge of box and move the edge to resize the box.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/searchbox/basic.html
================================================
Basic SearchBox - jQuery EasyUI Demo
Basic SearchBox
Click search button or press enter key in input box to do searching.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/searchbox/category.html
================================================
Search Category - jQuery EasyUI Demo
Search Category
Select a category and click search button or press enter key in input box to do searching.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/searchbox/fluid.html
================================================
Fluid SearchBox - jQuery EasyUI Demo
Fluid SearchBox
This example shows how to set the width of SearchBox to a percentage of its parent container.
width: 50%
width: 30%
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/slider/basic.html
================================================
Basic Slider - jQuery EasyUI Demo
Basic Slider
Drag the slider to change value.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/slider/fluid.html
================================================
Fluid Slider - jQuery EasyUI Demo
Fluid Slider
This example shows how to set the width of Slider to a percentage of its parent container.
width: 50%
width: 30%
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/slider/formattip.html
================================================
Format Tip Information - jQuery EasyUI Demo
Format Tip Information
This sample shows how to format tip information.
jQuery EasyUI
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/slider/nonlinear.html
================================================
Non Linear Slider - jQuery EasyUI Demo
Non Linear Slider
This example shows how to create a slider with a non-linear scale.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/slider/rule.html
================================================
Slider Rule - jQuery EasyUI Demo
Slider Rule
This sample shows how to define slider rule.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/slider/vertical.html
================================================
Vertical Slider - jQuery EasyUI Demo
Vertical Slider
This sample shows how to create a vertical slider.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/splitbutton/actions.html
================================================
SplitButton Actions - jQuery EasyUI Demo
SplitButton Actions
Click the buttons below to perform actions.
Undo
Redo
Cut
Copy
Paste
Toolbar
Address
Link
Navigation Toolbar
Bookmark Toolbar
New Toolbar...
Delete
Select All
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/splitbutton/basic.html
================================================
Basic SplitButton - jQuery EasyUI Demo
Basic SplitButton
Move mouse over the arrow area of button to drop down menu.
Undo
Redo
Cut
Copy
Paste
Toolbar
Address
Link
Navigation Toolbar
Bookmark Toolbar
New Toolbar...
Delete
Select All
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/_content.html
================================================
AJAX Content
Here is the content loaded via AJAX.
easyui is a collection of user-interface plugin based on jQuery.
easyui provides essential functionality for building modern, interactive, javascript applications.
using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
complete framework for HTML5 web page.
easyui save your time and scales while developing your products.
easyui is very easy but powerful.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/autoheight.html
================================================
Auto Height for Tabs - jQuery EasyUI Demo
Auto Height for Tabs
The tabs height is auto adjusted according to tab panel content.
jQuery EasyUI framework helps you build your web pages easily.
easyui is a collection of user-interface plugin based on jQuery.
easyui provides essential functionality for building modem, interactive, javascript applications.
using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
complete framework for HTML5 web page.
easyui save your time and scales while developing your products.
easyui is very easy but powerful.
This is the help content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/basic.html
================================================
Basic Tabs - jQuery EasyUI Demo
Basic Tabs
Click tab strip to swap tab panel content.
jQuery EasyUI framework helps you build your web pages easily.
easyui is a collection of user-interface plugin based on jQuery.
easyui provides essential functionality for building modem, interactive, javascript applications.
using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
complete framework for HTML5 web page.
easyui save your time and scales while developing your products.
easyui is very easy but powerful.
This is the help content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/dropdown.html
================================================
Tabs with DropDown - jQuery EasyUI Demo
Tabs with DropDown
This sample shows how to add a dropdown menu over a tab strip.
jQuery EasyUI framework helps you build your web pages easily.
easyui is a collection of user-interface plugin based on jQuery.
easyui provides essential functionality for building modem, interactive, javascript applications.
using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
complete framework for HTML5 web page.
easyui save your time and scales while developing your products.
easyui is very easy but powerful.
This is the help content.
Welcome
Help Contents
Search
Dynamic Help
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/fixedwidth.html
================================================
Fixed Tab Width - jQuery EasyUI Demo
Fixed Tab Width
The tab strips have fixed width and height.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/fluid.html
================================================
Fluid Tabs - jQuery EasyUI Demo
Fluid Tabs
This example shows how to set the width of Tabs to a percentage of its parent container.
The tabs has a width of 100%.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/hover.html
================================================
Hover Tabs - jQuery EasyUI Demo
Hover Tabs
Move mouse over the tab strip to open the tab panel.
jQuery EasyUI framework helps you build your web pages easily.
easyui is a collection of user-interface plugin based on jQuery.
easyui provides essential functionality for building modem, interactive, javascript applications.
using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
complete framework for HTML5 web page.
easyui save your time and scales while developing your products.
easyui is very easy but powerful.
This is the help content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/nestedtabs.html
================================================
Nested Tabs - jQuery EasyUI Demo
Nested Tabs
The tab panel can contain sub tabs or other components.
Content 1
Content 2
Content 3
Title1
Title2
Title3
d11
d12
d13
d21
d22
d23
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/striptools.html
================================================
Tabs Strip Tools - jQuery EasyUI Demo
Tabs Strip Tools
Click the mini-buttons on the tab strip to perform actions.
jQuery EasyUI framework helps you build your web pages easily.
easyui is a collection of user-interface plugin based on jQuery.
easyui provides essential functionality for building modem, interactive, javascript applications.
using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
complete framework for HTML5 web page.
easyui save your time and scales while developing your products.
easyui is very easy but powerful.
This is the help content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/tabimage.html
================================================
Tabs with Images - jQuery EasyUI Demo
Tabs with Images
The tab strip can display big images.
A modem (modulator-demodulator) is a device that modulates an analog carrier signal to encode digital information, and also demodulates such a carrier signal to decode the transmitted information.
In computing, an image scanner—often abbreviated to just scanner—is a device that optically scans images, printed text, handwriting, or an object, and converts it to a digital image.
A personal digital assistant (PDA), also known as a palmtop computer, or personal data assistant, is a mobile device that functions as a personal information manager. PDAs are largely considered obsolete with the widespread adoption of smartphones.
A tablet computer, or simply tablet, is a one-piece mobile computer. Devices typically have a touchscreen, with finger or stylus gestures replacing the conventional computer mouse.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/tabposition.html
================================================
Tab Position - jQuery EasyUI Demo
Tab Position
Click the 'position' drop-down list and select an item to change the tab position.
Position:
Top
Bottom
Left
Right
jQuery EasyUI framework helps you build your web pages easily.
easyui is a collection of user-interface plugin based on jQuery.
easyui provides essential functionality for building modem, interactive, javascript applications.
using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
complete framework for HTML5 web page.
easyui save your time and scales while developing your products.
easyui is very easy but powerful.
This is the help content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/tabstools.html
================================================
Tabs Tools - jQuery EasyUI Demo
Tabs Tools
Click the buttons on the top right of tabs header to add or remove tab panel.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tabs/tree_data1.json
================================================
[{
"id":1,
"text":"My Documents",
"children":[{
"id":11,
"text":"Photos",
"state":"closed",
"children":[{
"id":111,
"text":"Friend"
},{
"id":112,
"text":"Wife"
},{
"id":113,
"text":"Company"
}]
},{
"id":12,
"text":"Program Files",
"children":[{
"id":121,
"text":"Intel"
},{
"id":122,
"text":"Java",
"attributes":{
"p1":"Custom Attribute1",
"p2":"Custom Attribute2"
}
},{
"id":123,
"text":"Microsoft Office"
},{
"id":124,
"text":"Games",
"checked":true
}]
},{
"id":13,
"text":"index.html"
},{
"id":14,
"text":"about.html"
},{
"id":15,
"text":"welcome.html"
}]
}]
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/basic.html
================================================
Basic TextBox - jQuery EasyUI Demo
Basic TextBox
The textbox allows a user to enter information.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/button.html
================================================
TextBox with Button - jQuery EasyUI Demo
TextBox with Button
The button can be attached to a textbox.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/clearicon.html
================================================
TextBox with Clear Icon - jQuery EasyUI Demo
TextBox with Clear Icon
This example shows how to create an textbox with an icon to clear the input element itself.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/custom.html
================================================
Custom TextBox - jQuery EasyUI Demo
Custom TextBox
This example shows how to custom a login form.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/fluid.html
================================================
Fluid TextBox - jQuery EasyUI Demo
Fluid TextBox
This example shows how to set the width of TextBox to a percentage of its parent container.
width: 50%
width: 30%
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/icons.html
================================================
TextBox with Icons - jQuery EasyUI Demo
TextBox with Icons
Click the icons on textbox to perform actions.
Select Icon Align:
Right
Left
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/multiline.html
================================================
Multiline TextBox - jQuery EasyUI Demo
Multiline TextBox
This example shows how to define a textbox for the user to enter multi-line text input.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/textbox/size.html
================================================
TextBox Size - jQuery EasyUI Demo
TextBox Size
The textbox can vary in size.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/timespinner/actions.html
================================================
TimeSpinner Actions - jQuery EasyUI Demo
TimeSpinner Actions
Click the buttons below to perform actions.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/timespinner/basic.html
================================================
Basic TimeSpinner - jQuery EasyUI Demo
Basic TimeSpinner
Click spin button to adjust time.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/timespinner/fluid.html
================================================
Fluid TimeSpinner - jQuery EasyUI Demo
Fluid TimeSpinner
This example shows how to set the width of TimeSpinner to a percentage of its parent container.
width: 50%
width: 30%
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/timespinner/range.html
================================================
Time Range - jQuery EasyUI Demo
Time Range
The time value is constrained in specified range.
From 08:30 to 18:00
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/_content.html
================================================
AJAX Content
Here is the content loaded via AJAX.
easyui is a collection of user-interface plugin based on jQuery.
easyui provides essential functionality for building modern, interactive, javascript applications.
using easyui you don't need to write many javascript code, you usually defines user-interface by writing some HTML markup.
complete framework for HTML5 web page.
easyui save your time and scales while developing your products.
easyui is very easy but powerful.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/_dialog.html
================================================
Dialog Content
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/ajax.html
================================================
Ajax Tooltip - jQuery EasyUI Demo
Ajax Tooltip
The tooltip content can be loaded via AJAX.
Hove me to display tooltip content via AJAX.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/basic.html
================================================
Basic Tooltip - jQuery EasyUI Demo
Basic Tooltip
Hover the links to display tooltip message.
The tooltip can use each elements title attribute.
Hover me to display tooltip.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/customcontent.html
================================================
Custom Tooltip Content - jQuery EasyUI Demo
Custom Tooltip Content
Access to each elements attribute to get the tooltip content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/customstyle.html
================================================
Custom Tooltip Style - jQuery EasyUI Demo
Custom Tooltip Style
This sample shows how to change the tooltip style.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/position.html
================================================
Tooltip Position - jQuery EasyUI Demo
Tooltip Position
Click the drop-down list below to change where the tooltip appears.
Select position:
Bottom
Top
Left
Right
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/toolbar.html
================================================
Tooltip as Toolbar - jQuery EasyUI Demo
Tooltip as Toolbar
This sample shows how to create a tooltip style toolbar.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tooltip/tooltipdialog.html
================================================
Tooltip Dialog - jQuery EasyUI Demo
Tooltip Dialog
This sample shows how to create a tooltip dialog.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/actions.html
================================================
Tree Actions - jQuery EasyUI Demo
Tree Actions
Click the buttons below to perform actions.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/animation.html
================================================
Animation Tree - jQuery EasyUI Demo
Animation Tree
Apply 'animate' property to true to enable animation effect.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/basic.html
================================================
Basic Tree - jQuery EasyUI Demo
Basic Tree
Click the arrow on the left to expand or collapse nodes.
My Documents
Photos
Program Files
Intel
Java
Microsoft Office
Games
index.html
about.html
welcome.html
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/checkbox.html
================================================
CheckBox Tree - jQuery EasyUI Demo
CheckBox Tree
Tree nodes with check boxes.
CascadeCheck
OnlyLeafCheck
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/contextmenu.html
================================================
Tree Context Menu - jQuery EasyUI Demo
Tree Context Menu
Right click on a node to display context menu.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/dnd.html
================================================
Drag Drop Tree Nodes - jQuery EasyUI Demo
Drag Drop Tree Nodes
Press mouse down and drag a node to another position.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/editable.html
================================================
Editable Tree - jQuery EasyUI Demo
Editable Tree
Click the node to begin edit, press enter key to stop edit or esc key to cancel edit.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/formatting.html
================================================
Formatting Tree Nodes - jQuery EasyUI Demo
Formatting Tree Nodes
This example shows how to display extra information on nodes.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/icons.html
================================================
Tree Node Icons - jQuery EasyUI Demo
Tree Node Icons
This sample illustrates how to add icons to tree node.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/lazyload.html
================================================
Lazy Load Tree Nodes - jQuery EasyUI Demo
Lazy Load Tree Nodes
Get full hierarchical tree data but lazy load nodes level by level.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/lines.html
================================================
Tree Lines - jQuery EasyUI Demo
Tree Lines
This sample shows how to show tree lines.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/tree_data1.json
================================================
[{
"id":1,
"text":"My Documents",
"children":[{
"id":11,
"text":"Photos",
"state":"closed",
"children":[{
"id":111,
"text":"Friend"
},{
"id":112,
"text":"Wife"
},{
"id":113,
"text":"Company"
}]
},{
"id":12,
"text":"Program Files",
"children":[{
"id":121,
"text":"Intel"
},{
"id":122,
"text":"Java",
"attributes":{
"p1":"Custom Attribute1",
"p2":"Custom Attribute2"
}
},{
"id":123,
"text":"Microsoft Office"
},{
"id":124,
"text":"Games",
"checked":true
}]
},{
"id":13,
"text":"index.html"
},{
"id":14,
"text":"about.html"
},{
"id":15,
"text":"welcome.html"
}]
}]
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/tree/tree_data2.json
================================================
[{
"id":1,
"text":"My Documents",
"children":[{
"id":11,
"text":"Photos",
"state":"closed",
"children":[{
"id":111,
"text":"Friend"
},{
"id":112,
"text":"Wife"
},{
"id":113,
"text":"Company"
}]
},{
"id":12,
"text":"Program Files",
"state":"closed",
"children":[{
"id":121,
"text":"Intel"
},{
"id":122,
"text":"Java"
},{
"id":123,
"text":"Microsoft Office"
},{
"id":124,
"text":"Games"
}]
},{
"id":16,
"text":"Actions",
"children":[{
"text":"Add",
"iconCls":"icon-add"
},{
"text":"Remove",
"iconCls":"icon-remove"
},{
"text":"Save",
"iconCls":"icon-save"
},{
"text":"Search",
"iconCls":"icon-search"
}]
},{
"id":13,
"text":"index.html"
},{
"id":14,
"text":"about.html"
},{
"id":15,
"text":"welcome.html"
}]
}]
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/actions.html
================================================
TreeGrid Actions - jQuery EasyUI Demo
TreeGrid Actions
Click the buttons below to perform actions.
Task Name
Persons
Begin Date
End Date
Progress
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/basic.html
================================================
Basic TreeGrid - jQuery EasyUI Demo
Basic TreeGrid
TreeGrid allows you to expand or collapse group rows.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/clientpagination.html
================================================
Client Side Pagination in TreeGrid - jQuery EasyUI Demo
Client Side Pagination in TreeGrid
This sample shows how to implement client side pagination in TreeGrid.
Task Name
Persons
Begin Date
End Date
Progress
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/contextmenu.html
================================================
TreeGrid ContextMenu - jQuery EasyUI Demo
TreeGrid ContextMenu
Right click to display the context menu.
Task Name
Persons
Begin Date
End Date
Progress
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/editable.html
================================================
Editable TreeGrid - jQuery EasyUI Demo
Editable TreeGrid
Select one node and click edit button to perform editing.
Task Name
Persons
Begin Date
End Date
Progress
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/fluid.html
================================================
Fluid TreeGrid - jQuery EasyUI Demo
Fluid TreeGrid
This example shows how to assign percentage width to a column in TreeGrid.
Name(50%)
Size(20%)
Modified Date(30%)
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/footer.html
================================================
TreeGrid with Footer - jQuery EasyUI Demo
TreeGrid with Footer
Show summary information on TreeGrid footer.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/lines.html
================================================
TreeGrid Lines - jQuery EasyUI Demo
TreeGrid Lines
This example shows how to show treegrid lines.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/reports.html
================================================
Reports using TreeGrid - jQuery EasyUI Demo
Reports using TreeGrid
Using TreeGrid to show complex reports.
Region
2009
2010
1st qrt.
2st qrt.
3st qrt.
4st qrt.
1st qrt.
2st qrt.
3st qrt.
4st qrt.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/treegrid_data1.json
================================================
[{
"id":1,
"name":"C",
"size":"",
"date":"02/19/2010",
"children":[{
"id":2,
"name":"Program Files",
"size":"120 MB",
"date":"03/20/2010",
"children":[{
"id":21,
"name":"Java",
"size":"",
"date":"01/13/2010",
"state":"closed",
"children":[{
"id":211,
"name":"java.exe",
"size":"142 KB",
"date":"01/13/2010"
},{
"id":212,
"name":"jawt.dll",
"size":"5 KB",
"date":"01/13/2010"
}]
},{
"id":22,
"name":"MySQL",
"size":"",
"date":"01/13/2010",
"state":"closed",
"children":[{
"id":221,
"name":"my.ini",
"size":"10 KB",
"date":"02/26/2009"
},{
"id":222,
"name":"my-huge.ini",
"size":"5 KB",
"date":"02/26/2009"
},{
"id":223,
"name":"my-large.ini",
"size":"5 KB",
"date":"02/26/2009"
}]
}]
},{
"id":3,
"name":"eclipse",
"size":"",
"date":"01/20/2010",
"children":[{
"id":31,
"name":"eclipse.exe",
"size":"56 KB",
"date":"05/19/2009"
},{
"id":32,
"name":"eclipse.ini",
"size":"1 KB",
"date":"04/20/2010"
},{
"id":33,
"name":"notice.html",
"size":"7 KB",
"date":"03/17/2005"
}]
}]
}]
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/treegrid_data2.json
================================================
{"total":7,"rows":[
{"id":1,"name":"All Tasks","begin":"3/4/2010","end":"3/20/2010","progress":60,"iconCls":"icon-ok"},
{"id":2,"name":"Designing","begin":"3/4/2010","end":"3/10/2010","progress":100,"_parentId":1,"state":"closed"},
{"id":21,"name":"Database","persons":2,"begin":"3/4/2010","end":"3/6/2010","progress":100,"_parentId":2},
{"id":22,"name":"UML","persons":1,"begin":"3/7/2010","end":"3/8/2010","progress":100,"_parentId":2},
{"id":23,"name":"Export Document","persons":1,"begin":"3/9/2010","end":"3/10/2010","progress":100,"_parentId":2},
{"id":3,"name":"Coding","persons":2,"begin":"3/11/2010","end":"3/18/2010","progress":80},
{"id":4,"name":"Testing","persons":1,"begin":"3/19/2010","end":"3/20/2010","progress":20}
],"footer":[
{"name":"Total Persons:","persons":7,"iconCls":"icon-sum"}
]}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/treegrid/treegrid_data3.json
================================================
{"total":9,"rows":[
{"id":1,"region":"Wyoming"},
{"id":11,"region":"Albin","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":1},
{"id":12,"region":"Canon","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":1},
{"id":13,"region":"Egbert","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":1},
{"id":2,"region":"Washington"},
{"id":21,"region":"Bellingham","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":2},
{"id":22,"region":"Chehalis","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":2},
{"id":23,"region":"Ellensburg","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":2},
{"id":24,"region":"Monroe","f1":2000,"f2":1800,"f3":1903,"f4":2183,"f5":2133,"f6":1923,"f7":2018,"f8":1838,"_parentId":2}
],"footer":[
{"region":"Total","f1":14000,"f2":12600,"f3":13321,"f4":15281,"f5":14931,"f6":13461,"f7":14126,"f8":12866}
]}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/validatebox/basic.html
================================================
Basic ValidateBox - jQuery EasyUI Demo
Basic ValidateBox
It's easy to add validate logic to a input box.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/validatebox/customtooltip.html
================================================
Custom ValidateBox Tooltip - jQuery EasyUI Demo
Custom ValidateBox Tooltip
This sample shows how to display another tooltip message on a valid textbox.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/validatebox/validateonblur.html
================================================
Validate On Blur - jQuery EasyUI Demo
Validate On Blur
Active validation on first blur event.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/window/basic.html
================================================
Basic Window - jQuery EasyUI Demo
Basic Window
Window can be dragged freely on screen.
The window content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/window/customtools.html
================================================
Custom Window Tools - jQuery EasyUI Demo
Custom Window Tools
Click the right top buttons to perform actions.
The window content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/window/fluid.html
================================================
Fluid Window - jQuery EasyUI Demo
Fluid Window
This example shows how to set the width of Window to a percentage of its parent container.
The window has a width of 80%.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/window/footer.html
================================================
Window with a Footer - jQuery EasyUI Demo
Window with a Footer
This example shows how to attach a footer bar to the window.
The window content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/window/inlinewindow.html
================================================
Inline Window - jQuery EasyUI Demo
Inline Window
The inline window stay inside its parent.
This window stay inside its parent
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/window/modalwindow.html
================================================
Modal Window - jQuery EasyUI Demo
Modal Window
Click the open button below to open the modal window.
The window content.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/demo/window/windowlayout.html
================================================
Window Layout - jQuery EasyUI Demo
Window Layout
Using layout on window.
jQuery EasyUI framework help you build your web page easily.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/easyloader.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function(){
var _1={draggable:{js:"jquery.draggable.js"},droppable:{js:"jquery.droppable.js"},resizable:{js:"jquery.resizable.js"},linkbutton:{js:"jquery.linkbutton.js",css:"linkbutton.css"},progressbar:{js:"jquery.progressbar.js",css:"progressbar.css"},tooltip:{js:"jquery.tooltip.js",css:"tooltip.css"},pagination:{js:"jquery.pagination.js",css:"pagination.css",dependencies:["linkbutton"]},datagrid:{js:"jquery.datagrid.js",css:"datagrid.css",dependencies:["panel","resizable","linkbutton","pagination"]},treegrid:{js:"jquery.treegrid.js",css:"tree.css",dependencies:["datagrid"]},propertygrid:{js:"jquery.propertygrid.js",css:"propertygrid.css",dependencies:["datagrid"]},panel:{js:"jquery.panel.js",css:"panel.css"},window:{js:"jquery.window.js",css:"window.css",dependencies:["resizable","draggable","panel"]},dialog:{js:"jquery.dialog.js",css:"dialog.css",dependencies:["linkbutton","window"]},messager:{js:"jquery.messager.js",css:"messager.css",dependencies:["linkbutton","window","progressbar"]},layout:{js:"jquery.layout.js",css:"layout.css",dependencies:["resizable","panel"]},form:{js:"jquery.form.js"},menu:{js:"jquery.menu.js",css:"menu.css"},tabs:{js:"jquery.tabs.js",css:"tabs.css",dependencies:["panel","linkbutton"]},menubutton:{js:"jquery.menubutton.js",css:"menubutton.css",dependencies:["linkbutton","menu"]},splitbutton:{js:"jquery.splitbutton.js",css:"splitbutton.css",dependencies:["menubutton"]},accordion:{js:"jquery.accordion.js",css:"accordion.css",dependencies:["panel"]},calendar:{js:"jquery.calendar.js",css:"calendar.css"},textbox:{js:"jquery.textbox.js",css:"textbox.css",dependencies:["validatebox","linkbutton"]},filebox:{js:"jquery.filebox.js",css:"filebox.css",dependencies:["textbox"]},combo:{js:"jquery.combo.js",css:"combo.css",dependencies:["panel","textbox"]},combobox:{js:"jquery.combobox.js",css:"combobox.css",dependencies:["combo"]},combotree:{js:"jquery.combotree.js",dependencies:["combo","tree"]},combogrid:{js:"jquery.combogrid.js",dependencies:["combo","datagrid"]},validatebox:{js:"jquery.validatebox.js",css:"validatebox.css",dependencies:["tooltip"]},numberbox:{js:"jquery.numberbox.js",dependencies:["textbox"]},searchbox:{js:"jquery.searchbox.js",css:"searchbox.css",dependencies:["menubutton","textbox"]},spinner:{js:"jquery.spinner.js",css:"spinner.css",dependencies:["textbox"]},numberspinner:{js:"jquery.numberspinner.js",dependencies:["spinner","numberbox"]},timespinner:{js:"jquery.timespinner.js",dependencies:["spinner"]},tree:{js:"jquery.tree.js",css:"tree.css",dependencies:["draggable","droppable"]},datebox:{js:"jquery.datebox.js",css:"datebox.css",dependencies:["calendar","combo"]},datetimebox:{js:"jquery.datetimebox.js",dependencies:["datebox","timespinner"]},slider:{js:"jquery.slider.js",dependencies:["draggable"]},tooltip:{js:"jquery.tooltip.js"},parser:{js:"jquery.parser.js"}};
var _2={"af":"easyui-lang-af.js","ar":"easyui-lang-ar.js","bg":"easyui-lang-bg.js","ca":"easyui-lang-ca.js","cs":"easyui-lang-cs.js","cz":"easyui-lang-cz.js","da":"easyui-lang-da.js","de":"easyui-lang-de.js","el":"easyui-lang-el.js","en":"easyui-lang-en.js","es":"easyui-lang-es.js","fr":"easyui-lang-fr.js","it":"easyui-lang-it.js","jp":"easyui-lang-jp.js","nl":"easyui-lang-nl.js","pl":"easyui-lang-pl.js","pt_BR":"easyui-lang-pt_BR.js","ru":"easyui-lang-ru.js","sv_SE":"easyui-lang-sv_SE.js","tr":"easyui-lang-tr.js","zh_CN":"easyui-lang-zh_CN.js","zh_TW":"easyui-lang-zh_TW.js"};
var _3={};
function _4(_5,_6){
var _7=false;
var _8=document.createElement("script");
_8.type="text/javascript";
_8.language="javascript";
_8.src=_5;
_8.onload=_8.onreadystatechange=function(){
if(!_7&&(!_8.readyState||_8.readyState=="loaded"||_8.readyState=="complete")){
_7=true;
_8.onload=_8.onreadystatechange=null;
if(_6){
_6.call(_8);
}
}
};
document.getElementsByTagName("head")[0].appendChild(_8);
};
function _9(_a,_b){
_4(_a,function(){
document.getElementsByTagName("head")[0].removeChild(this);
if(_b){
_b();
}
});
};
function _c(_d,_e){
var _f=document.createElement("link");
_f.rel="stylesheet";
_f.type="text/css";
_f.media="screen";
_f.href=_d;
document.getElementsByTagName("head")[0].appendChild(_f);
if(_e){
_e.call(_f);
}
};
function _10(_11,_12){
_3[_11]="loading";
var _13=_1[_11];
var _14="loading";
var _15=(easyloader.css&&_13["css"])?"loading":"loaded";
if(easyloader.css&&_13["css"]){
if(/^http/i.test(_13["css"])){
var url=_13["css"];
}else{
var url=easyloader.base+"themes/"+easyloader.theme+"/"+_13["css"];
}
_c(url,function(){
_15="loaded";
if(_14=="loaded"&&_15=="loaded"){
_16();
}
});
}
if(/^http/i.test(_13["js"])){
var url=_13["js"];
}else{
var url=easyloader.base+"plugins/"+_13["js"];
}
_4(url,function(){
_14="loaded";
if(_14=="loaded"&&_15=="loaded"){
_16();
}
});
function _16(){
_3[_11]="loaded";
easyloader.onProgress(_11);
if(_12){
_12();
}
};
};
function _17(_18,_19){
var mm=[];
var _1a=false;
if(typeof _18=="string"){
add(_18);
}else{
for(var i=0;i<_18.length;i++){
add(_18[i]);
}
}
function add(_1b){
if(!_1[_1b]){
return;
}
var d=_1[_1b]["dependencies"];
if(d){
for(var i=0;i
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
Galleria is a javascript image gallery written in jQuery
Copyright (C) 2008 David Hellsing
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
Galleria Copyright (C) 2008 David Hellsing
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
.
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-af.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Bladsy';
$.fn.pagination.defaults.afterPageText = 'Van {pages}';
$.fn.pagination.defaults.displayMsg = 'Wys (from) tot (to) van (total) items';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Verwerking, wag asseblief ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Die styl';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Die veld is verpligtend.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = "Gee 'n geldige e-pos adres.";
$.fn.validatebox.defaults.rules.url.message = "Gee 'n geldige URL nie.";
$.fn.validatebox.defaults.rules.length.message = "Voer 'n waarde tussen {0} en {1}.";
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Vandag';
$.fn.datebox.defaults.closeText = 'Sluit';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-am.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Էջ';
$.fn.pagination.defaults.afterPageText = 'ից {pages}';
$.fn.pagination.defaults.displayMsg = 'Դիտել {from}-ից {to}-ը {total} գրառումից';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Մշակվում է, խնդրում ենք սպասել ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Այո';
$.messager.defaults.cancel = 'Փակել';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Այս դաշտը պարտադիր է.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Խնդրում ենք մուտքագրել գործող e-mail հասցե.';
$.fn.validatebox.defaults.rules.url.message = 'Խնդրում ենք մուտքագրել գործող URL.';
$.fn.validatebox.defaults.rules.length.message = 'Խնդրում ենք մուտքագրել արժեք {0} {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Խնդրում ենք ուղղել այս դաշտը.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.firstDay = 1;
$.fn.calendar.defaults.weeks = ['Կ.','Ե.','Ե.','Չ.','Հ.','Ու.','Շ.'];
$.fn.calendar.defaults.months = ['Հունվար', 'Փետրվար', 'Մարտ', 'Ապրիլ', 'Մայիս', 'Հունիս', 'Հուլիս', 'Օգոստոս', 'Սեպտեմբեր', 'Հոկտեմբեր', 'Նոյեմբեր', 'Դեկտեմբեր'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Այսօր';
$.fn.datebox.defaults.closeText = 'Փակել';
$.fn.datebox.defaults.okText = 'Այո';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-ar.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'صفحة';
$.fn.pagination.defaults.afterPageText = 'من {pages}';
$.fn.pagination.defaults.displayMsg = 'عرض {from} إلى {to} من {total} عنصر';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'معالجة, الرجاء الإنتظار ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'موافق';
$.messager.defaults.cancel = 'إلغاء';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'هذا الحقل مطلوب.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'الرجاء إدخال بريد إلكتروني صحيح.';
$.fn.validatebox.defaults.rules.url.message = 'الرجاء إدخال رابط صحيح.';
$.fn.validatebox.defaults.rules.length.message = 'الرجاء إدخال قيمة بين {0} و {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'الرجاء التأكد من الحقل.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'اليوم';
$.fn.datebox.defaults.closeText = 'إغلاق';
$.fn.datebox.defaults.okText = 'موافق';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-bg.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Страница';
$.fn.pagination.defaults.afterPageText = 'от {pages}';
$.fn.pagination.defaults.displayMsg = 'Показани {from} за {to} от {total} продукти';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Обработка, моля изчакайте ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Добре';
$.messager.defaults.cancel = 'Задрасквам';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Това поле е задължително.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Моля, въведете валиден имейл адрес.';
$.fn.validatebox.defaults.rules.url.message = 'Моля въведете валиден URL.';
$.fn.validatebox.defaults.rules.length.message = 'Моля, въведете стойност между {0} и {1}.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Днес';
$.fn.datebox.defaults.closeText = 'Близо';
$.fn.datebox.defaults.okText = 'Добре';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-ca.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Pàgina';
$.fn.pagination.defaults.afterPageText = 'de {pages}';
$.fn.pagination.defaults.displayMsg = "Veient {from} a {to} de {total} d'articles";
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Elaboració, si us plau esperi ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Cancel';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Aquest camp és obligatori.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Introduïu una adreça de correu electrònic vàlida.';
$.fn.validatebox.defaults.rules.url.message = 'Si us plau, introduïu un URL vàlida.';
$.fn.validatebox.defaults.rules.length.message = 'Si us plau, introduïu un valor entre {0} i {1}.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Avui';
$.fn.datebox.defaults.closeText = 'Tancar';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-cs.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Strana';
$.fn.pagination.defaults.afterPageText = 'z {pages}';
$.fn.pagination.defaults.displayMsg = 'Zobrazuji {from} do {to} z {total} položky';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Zpracování, čekejte prosím ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Zrušit';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Toto pole je vyžadováno.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Zadejte prosím platnou e-mailovou adresu.';
$.fn.validatebox.defaults.rules.url.message = 'Zadejte prosím platnou adresu URL.';
$.fn.validatebox.defaults.rules.length.message = 'Prosím, zadejte hodnotu mezi {0} a {1}.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Dnes';
$.fn.datebox.defaults.closeText = 'Zavřít';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-cz.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Strana';
$.fn.pagination.defaults.afterPageText = 'z {pages}';
$.fn.pagination.defaults.displayMsg = 'Zobrazuji záznam {from} až {to} z {total}.';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Pracuji, čekejte prosím…';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Zrušit';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Toto pole je vyžadováno.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Zadejte, prosím, platnou e-mailovou adresu.';
$.fn.validatebox.defaults.rules.url.message = 'Zadejte, prosím, platnou adresu URL.';
$.fn.validatebox.defaults.rules.length.message = 'Zadejte, prosím, hodnotu mezi {0} a {1}.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['N','P','Ú','S','Č','P','S']; //neděle pondělí úterý středa čtvrtek pátek sobota
$.fn.calendar.defaults.months = ['led', 'únr', 'bře', 'dub', 'kvě', 'čvn', 'čvc', 'srp', 'zář', 'říj', 'lis', 'pro']; //leden únor březen duben květen červen červenec srpen září říjen listopad prosinec
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Dnes';
$.fn.datebox.defaults.closeText = 'Zavřít';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-da.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Page';
$.fn.pagination.defaults.afterPageText = 'af {pages}';
$.fn.pagination.defaults.displayMsg = 'Viser {from} til {to} af {total} poster';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Behandling, vent venligst ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Annuller';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Dette felt er påkrævet.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Angiv en gyldig e-mail-adresse.';
$.fn.validatebox.defaults.rules.url.message = 'Angiv en gyldig webadresse.';
$.fn.validatebox.defaults.rules.length.message = 'Angiv en værdi mellem {0} og {1}.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'I dag';
$.fn.datebox.defaults.closeText = 'Luk';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-de.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Seite';
$.fn.pagination.defaults.afterPageText = 'von {pages}';
$.fn.pagination.defaults.displayMsg = '{from} bis {to} von {total} Datensätzen';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Verarbeitung läuft, bitte warten ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'OK';
$.messager.defaults.cancel = 'Abbruch';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Dieses Feld wird benötigt.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Bitte geben Sie eine gültige E-Mail-Adresse ein.';
$.fn.validatebox.defaults.rules.url.message = 'Bitte geben Sie eine gültige URL ein.';
$.fn.validatebox.defaults.rules.length.message = 'Bitte geben Sie einen Wert zwischen {0} und {1} ein.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.firstDay = 1;
$.fn.calendar.defaults.weeks = ['S','M','D','M','D','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Heute';
$.fn.datebox.defaults.closeText = 'Schließen';
$.fn.datebox.defaults.okText = 'OK';
$.fn.datebox.defaults.formatter = function(date){
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
return (d<10?('0'+d):d)+'.'+(m<10?('0'+m):m)+'.'+y;
};
$.fn.datebox.defaults.parser = function(s){
if (!s) return new Date();
var ss = s.split('.');
var m = parseInt(ss[1],10);
var d = parseInt(ss[0],10);
var y = parseInt(ss[2],10);
if (!isNaN(y) && !isNaN(m) && !isNaN(d)){
return new Date(y,m-1,d);
} else {
return new Date();
}
};
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-el.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Σελίδα';
$.fn.pagination.defaults.afterPageText = 'από {pages}';
$.fn.pagination.defaults.displayMsg = 'Εμφάνιση {from} εώς {to} από {total} αντικείμενα';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Γίνεται Επεξεργασία, Παρακαλώ Περιμένετε ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Εντάξει';
$.messager.defaults.cancel = 'Άκυρο';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Το πεδίο είναι υποχρεωτικό.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Παρακαλώ εισάγετε σωστή Ηλ.Διεύθυνση.';
$.fn.validatebox.defaults.rules.url.message = 'Παρακαλώ εισάγετε σωστό σύνδεσμο.';
$.fn.validatebox.defaults.rules.length.message = 'Παρακαλώ εισάγετε τιμή μεταξύ {0} και {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Παρακαλώ διορθώστε αυτό το πεδίο.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ'];
$.fn.calendar.defaults.months = ['Ιαν', 'Φεβ', 'Μαρ', 'Απρ', 'Μαϊ', 'Ιου', 'Ιου', 'Αυγ', 'Σεπ', 'Οκτ', 'Νοε', 'Δεκ'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Σήμερα';
$.fn.datebox.defaults.closeText = 'Κλείσιμο';
$.fn.datebox.defaults.okText = 'Εντάξει';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-en.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Page';
$.fn.pagination.defaults.afterPageText = 'of {pages}';
$.fn.pagination.defaults.displayMsg = 'Displaying {from} to {to} of {total} items';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Processing, please wait ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Cancel';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'This field is required.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Please enter a valid email address.';
$.fn.validatebox.defaults.rules.url.message = 'Please enter a valid URL.';
$.fn.validatebox.defaults.rules.length.message = 'Please enter a value between {0} and {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Please fix this field.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Today';
$.fn.datebox.defaults.closeText = 'Close';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-es.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Página';
$.fn.pagination.defaults.afterPageText = 'de {pages}';
$.fn.pagination.defaults.displayMsg = 'Mostrando {from} a {to} de {total} elementos';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Procesando, por favor espere ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Aceptar';
$.messager.defaults.cancel = 'Cancelar';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Este campo es obligatorio.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Por favor ingrese una dirección de correo válida.';
$.fn.validatebox.defaults.rules.url.message = 'Por favor ingrese una URL válida.';
$.fn.validatebox.defaults.rules.length.message = 'Por favor ingrese un valor entre {0} y {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Por favor corrija este campo.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['Do','Lu','Ma','Mi','Ju','Vi','Sá'];
$.fn.calendar.defaults.months = ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Hoy';
$.fn.datebox.defaults.closeText = 'Cerrar';
$.fn.datebox.defaults.okText = 'Aceptar';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-fr.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Page';
$.fn.pagination.defaults.afterPageText = 'de {pages}';
$.fn.pagination.defaults.displayMsg = 'Affichage de {from} et {to} au {total} des articles';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = "Traitement, s'il vous plaît patienter ...";
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Annuler';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Ce champ est obligatoire.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = "S'il vous plaît entrer une adresse email valide.";
$.fn.validatebox.defaults.rules.url.message = "S'il vous plaît entrer une URL valide.";
$.fn.validatebox.defaults.rules.length.message = "S'il vous plaît entrez une valeur comprise entre {0} et {1}.";
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = "Aujourd'hui";
$.fn.datebox.defaults.closeText = 'Fermer';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-it.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Pagina';
$.fn.pagination.defaults.afterPageText = 'di {pages}';
$.fn.pagination.defaults.displayMsg = 'Visualizzazione {from} a {to} di {total} elementi';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'In lavorazione, attendere ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Annulla';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Questo campo è richiesto.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Inserisci un indirizzo email valido.';
$.fn.validatebox.defaults.rules.url.message = 'Inserisci un URL valido.';
$.fn.validatebox.defaults.rules.length.message = 'Inserisci un valore tra {0} e {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Aggiusta questo campo.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Oggi';
$.fn.datebox.defaults.closeText = 'Chiudi';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-jp.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'ページ';
$.fn.pagination.defaults.afterPageText = '{pages} 中';
$.fn.pagination.defaults.displayMsg = '全 {total} アイテム中 {from} から {to} を表示中';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = '処理中です。少々お待ちください...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'OK';
$.messager.defaults.cancel = 'キャンセル';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = '入力は必須です。';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = '正しいメールアドレスを入力してください。';
$.fn.validatebox.defaults.rules.url.message = '正しいURLを入力してください。';
$.fn.validatebox.defaults.rules.length.message = '{0} から {1} の範囲の正しい値を入力してください。';
$.fn.validatebox.defaults.rules.remote.message = 'このフィールドを修正してください。';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['日','月','火','水','木','金','土'];
$.fn.calendar.defaults.months = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = '今日';
$.fn.datebox.defaults.closeText = '閉じる';
$.fn.datebox.defaults.okText = 'OK';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-nl.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Pagina';
$.fn.pagination.defaults.afterPageText = 'van {pages}';
$.fn.pagination.defaults.displayMsg = 'Tonen van {from} tot {to} van de {total} items';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Verwerking, even geduld ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Annuleren';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Dit veld is verplicht.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Geef een geldig e-mailadres.';
$.fn.validatebox.defaults.rules.url.message = 'Vul een geldige URL.';
$.fn.validatebox.defaults.rules.length.message = 'Voer een waarde tussen {0} en {1}.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Vandaag';
$.fn.datebox.defaults.closeText = 'Dicht';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-pl.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Strona';
$.fn.pagination.defaults.afterPageText = 'z {pages}';
$.fn.pagination.defaults.displayMsg = 'Wyświetlono elementy od {from} do {to} z {total}';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Przetwarzanie, proszę czekać ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Cancel';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'To pole jest wymagane.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Wprowadź poprawny adres email.';
$.fn.validatebox.defaults.rules.url.message = 'Wprowadź poprawny adres URL.';
$.fn.validatebox.defaults.rules.length.message = 'Wprowadź wartość z zakresu od {0} do {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Proszę poprawić to pole.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['N','P','W','Ś','C','P','S'];
$.fn.calendar.defaults.months = ['Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Dzisiaj';
$.fn.datebox.defaults.closeText = 'Zamknij';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-pt_BR.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Página';
$.fn.pagination.defaults.afterPageText = 'de {pages}';
$.fn.pagination.defaults.displayMsg = 'Mostrando {from} a {to} de {total} itens';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Processando, aguarde ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Cancelar';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Esse campo é requerido.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Insira um endereço de email válido.';
$.fn.validatebox.defaults.rules.url.message = 'Insira uma URL válida.';
$.fn.validatebox.defaults.rules.length.message = 'Insira uma valor entre {0} e {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Corrija esse campo.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['D','S','T','Q','Q','S','S'];
$.fn.calendar.defaults.months = ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Hoje';
$.fn.datebox.defaults.closeText = 'Fechar';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-ru.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Страница';
$.fn.pagination.defaults.afterPageText = 'из {pages}';
$.fn.pagination.defaults.displayMsg = 'Просмотр {from} до {to} из {total} записей';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Обрабатывается, пожалуйста ждите ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ок';
$.messager.defaults.cancel = 'Закрыть';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Это поле необходимо.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Пожалуйста введите корректный e-mail адрес.';
$.fn.validatebox.defaults.rules.url.message = 'Пожалуйста введите корректный URL.';
$.fn.validatebox.defaults.rules.length.message = 'Пожалуйста введите зачение между {0} и {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Пожалуйста исправте это поле.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.firstDay = 1;
$.fn.calendar.defaults.weeks = ['В','П','В','С','Ч','П','С'];
$.fn.calendar.defaults.months = ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Сегодня';
$.fn.datebox.defaults.closeText = 'Закрыть';
$.fn.datebox.defaults.okText = 'Ок';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-sv_SE.js
================================================
if ($.fn.pagination) {
$.fn.pagination.defaults.beforePageText = 'Sida';
$.fn.pagination.defaults.afterPageText = 'av {pages}';
$.fn.pagination.defaults.displayMsg = 'Visar {from} till {to} av {total} poster';
}
if ($.fn.datagrid) {
$.fn.datagrid.defaults.loadMsg = 'Bearbetar, vänligen vänta ...';
}
if ($.fn.treegrid && $.fn.datagrid) {
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager) {
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Avbryt';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Detta fält är obligatoriskt.';
}
});
if ($.fn.validatebox) {
$.fn.validatebox.defaults.rules.email.message = 'Vänligen ange en korrekt e-post adress.';
$.fn.validatebox.defaults.rules.url.message = 'Vänligen ange en korrekt URL.';
$.fn.validatebox.defaults.rules.length.message = 'Vänligen ange ett nummer mellan {0} och {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Vänligen åtgärda detta fält.';
}
if ($.fn.calendar) {
$.fn.calendar.defaults.weeks = ['Sön', 'Mån', 'Tis', 'Ons', 'Tors', 'Fre', 'Lör'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'];
}
if ($.fn.datebox) {
$.fn.datebox.defaults.currentText = 'I dag';
$.fn.datebox.defaults.closeText = 'Stäng';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox) {
$.extend($.fn.datetimebox.defaults, {
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-tr.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Sayfa';
$.fn.pagination.defaults.afterPageText = ' / {pages}';
$.fn.pagination.defaults.displayMsg = '{from} ile {to} arası gösteriliyor, toplam {total} kayıt';
}
if ($.fn.datagrid){
$.fn.panel.defaults.loadingMessage = "Yükleniyor...";
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadingMessage = "Yükleniyor...";
$.fn.datagrid.defaults.loadMsg = 'İşleminiz Yapılıyor, lütfen bekleyin ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Tamam';
$.messager.defaults.cancel = 'İptal';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Bu alan zorunludur.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Lütfen geçerli bir email adresi giriniz.';
$.fn.validatebox.defaults.rules.url.message = 'Lütfen geçerli bir URL giriniz.';
$.fn.validatebox.defaults.rules.length.message = 'Lütfen {0} ile {1} arasında bir değer giriniz.';
$.fn.validatebox.defaults.rules.remote.message = 'Lütfen bu alanı düzeltiniz.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'];
$.fn.calendar.defaults.months = ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Bugün';
$.fn.datebox.defaults.closeText = 'Kapat';
$.fn.datebox.defaults.okText = 'Tamam';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
$.fn.datebox.defaults.formatter=function(date){
var y=date.getFullYear();
var m=date.getMonth()+1;
var d=date.getDate();
if(m<10){m="0"+m;}
if(d<10){d="0"+d;}
return d+"."+m+"."+y;
};
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-zh_CN.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = '第';
$.fn.pagination.defaults.afterPageText = '共{pages}页';
$.fn.pagination.defaults.displayMsg = '显示{from}到{to},共{total}记录';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = '正在处理,请稍待。。。';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = '确定';
$.messager.defaults.cancel = '取消';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = '该输入项为必输项';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = '请输入有效的电子邮件地址';
$.fn.validatebox.defaults.rules.url.message = '请输入有效的URL地址';
$.fn.validatebox.defaults.rules.length.message = '输入内容长度必须介于{0}和{1}之间';
$.fn.validatebox.defaults.rules.remote.message = '请修正该字段';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['日','一','二','三','四','五','六'];
$.fn.calendar.defaults.months = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = '今天';
$.fn.datebox.defaults.closeText = '关闭';
$.fn.datebox.defaults.okText = '确定';
$.fn.datebox.defaults.formatter = function(date){
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
return y+'-'+(m<10?('0'+m):m)+'-'+(d<10?('0'+d):d);
};
$.fn.datebox.defaults.parser = function(s){
if (!s) return new Date();
var ss = s.split('-');
var y = parseInt(ss[0],10);
var m = parseInt(ss[1],10);
var d = parseInt(ss[2],10);
if (!isNaN(y) && !isNaN(m) && !isNaN(d)){
return new Date(y,m-1,d);
} else {
return new Date();
}
};
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
if ($.fn.datetimespinner){
$.fn.datetimespinner.defaults.selections = [[0,4],[5,7],[8,10],[11,13],[14,16],[17,19]]
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/locale/easyui-lang-zh_TW.js
================================================
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = '第';
$.fn.pagination.defaults.afterPageText = '共{pages}頁';
$.fn.pagination.defaults.displayMsg = '顯示{from}到{to},共{total}記錄';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = '正在處理,請稍待。。。';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = '確定';
$.messager.defaults.cancel = '取消';
}
$.map(['validatebox','textbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = '該輸入項為必輸項';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = '請輸入有效的電子郵件地址';
$.fn.validatebox.defaults.rules.url.message = '請輸入有效的URL地址';
$.fn.validatebox.defaults.rules.length.message = '輸入內容長度必須介於{0}和{1}之間';
$.fn.validatebox.defaults.rules.remote.message = '請修正此欄位';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['日','一','二','三','四','五','六'];
$.fn.calendar.defaults.months = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = '今天';
$.fn.datebox.defaults.closeText = '關閉';
$.fn.datebox.defaults.okText = '確定';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
if ($.fn.datetimespinner){
$.fn.datetimespinner.defaults.selections = [[0,4],[5,7],[8,10],[11,13],[14,16],[17,19]]
}
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.accordion.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2,_3){
var _4=$.data(_2,"accordion");
var _5=_4.options;
var _6=_4.panels;
var cc=$(_2);
if(_3){
$.extend(_5,{width:_3.width,height:_3.height});
}
cc._size(_5);
var _7=0;
var _8="auto";
var _9=cc.find(">div.panel>div.accordion-header");
if(_9.length){
_7=$(_9[0]).css("height","")._outerHeight();
}
if(!isNaN(parseInt(_5.height))){
_8=cc.height()-_7*_9.length;
}
_a(true,_8-_a(false)+1);
function _a(_b,_c){
var _d=0;
for(var i=0;i<_6.length;i++){
var p=_6[i];
var h=p.panel("header")._outerHeight(_7);
if(p.panel("options").collapsible==_b){
var _e=isNaN(_c)?undefined:(_c+_7*h.length);
p.panel("resize",{width:cc.width(),height:(_b?_e:undefined)});
_d+=p.panel("panel").outerHeight()-_7*h.length;
}
}
return _d;
};
};
function _f(_10,_11,_12,all){
var _13=$.data(_10,"accordion").panels;
var pp=[];
for(var i=0;i<_13.length;i++){
var p=_13[i];
if(_11){
if(p.panel("options")[_11]==_12){
pp.push(p);
}
}else{
if(p[0]==$(_12)[0]){
return i;
}
}
}
if(_11){
return all?pp:(pp.length?pp[0]:null);
}else{
return -1;
}
};
function _14(_15){
return _f(_15,"collapsed",false,true);
};
function _16(_17){
var pp=_14(_17);
return pp.length?pp[0]:null;
};
function _18(_19,_1a){
return _f(_19,null,_1a);
};
function _1b(_1c,_1d){
var _1e=$.data(_1c,"accordion").panels;
if(typeof _1d=="number"){
if(_1d<0||_1d>=_1e.length){
return null;
}else{
return _1e[_1d];
}
}
return _f(_1c,"title",_1d);
};
function _1f(_20){
var _21=$.data(_20,"accordion").options;
var cc=$(_20);
if(_21.border){
cc.removeClass("accordion-noborder");
}else{
cc.addClass("accordion-noborder");
}
};
function _22(_23){
var _24=$.data(_23,"accordion");
var cc=$(_23);
cc.addClass("accordion");
_24.panels=[];
cc.children("div").each(function(){
var _25=$.extend({},$.parser.parseOptions(this),{selected:($(this).attr("selected")?true:undefined)});
var pp=$(this);
_24.panels.push(pp);
_27(_23,pp,_25);
});
cc.bind("_resize",function(e,_26){
if($(this).hasClass("easyui-fluid")||_26){
_1(_23);
}
return false;
});
};
function _27(_28,pp,_29){
var _2a=$.data(_28,"accordion").options;
pp.panel($.extend({},{collapsible:true,minimizable:false,maximizable:false,closable:false,doSize:false,collapsed:true,headerCls:"accordion-header",bodyCls:"accordion-body"},_29,{onBeforeExpand:function(){
if(_29.onBeforeExpand){
if(_29.onBeforeExpand.call(this)==false){
return false;
}
}
if(!_2a.multiple){
var all=$.grep(_14(_28),function(p){
return p.panel("options").collapsible;
});
for(var i=0;i").addClass("accordion-collapse accordion-expand").appendTo(_2e);
t.bind("click",function(){
var _2f=_18(_28,pp);
if(pp.panel("options").collapsed){
_30(_28,_2f);
}else{
_35(_28,_2f);
}
return false;
});
pp.panel("options").collapsible?t.show():t.hide();
_2d.click(function(){
$(this).find("a.accordion-collapse:visible").triggerHandler("click");
return false;
});
};
function _30(_31,_32){
var p=_1b(_31,_32);
if(!p){
return;
}
_33(_31);
var _34=$.data(_31,"accordion").options;
p.panel("expand",_34.animate);
};
function _35(_36,_37){
var p=_1b(_36,_37);
if(!p){
return;
}
_33(_36);
var _38=$.data(_36,"accordion").options;
p.panel("collapse",_38.animate);
};
function _39(_3a){
var _3b=$.data(_3a,"accordion").options;
var p=_f(_3a,"selected",true);
if(p){
_3c(_18(_3a,p));
}else{
_3c(_3b.selected);
}
function _3c(_3d){
var _3e=_3b.animate;
_3b.animate=false;
_30(_3a,_3d);
_3b.animate=_3e;
};
};
function _33(_3f){
var _40=$.data(_3f,"accordion").panels;
for(var i=0;i<_40.length;i++){
_40[i].stop(true,true);
}
};
function add(_41,_42){
var _43=$.data(_41,"accordion");
var _44=_43.options;
var _45=_43.panels;
if(_42.selected==undefined){
_42.selected=true;
}
_33(_41);
var pp=$("
").appendTo(_41);
_45.push(pp);
_27(_41,pp,_42);
_1(_41);
_44.onAdd.call(_41,_42.title,_45.length-1);
if(_42.selected){
_30(_41,_45.length-1);
}
};
function _46(_47,_48){
var _49=$.data(_47,"accordion");
var _4a=_49.options;
var _4b=_49.panels;
_33(_47);
var _4c=_1b(_47,_48);
var _4d=_4c.panel("options").title;
var _4e=_18(_47,_4c);
if(!_4c){
return;
}
if(_4a.onBeforeRemove.call(_47,_4d,_4e)==false){
return;
}
_4b.splice(_4e,1);
_4c.panel("destroy");
if(_4b.length){
_1(_47);
var _4f=_16(_47);
if(!_4f){
_30(_47,0);
}
}
_4a.onRemove.call(_47,_4d,_4e);
};
$.fn.accordion=function(_50,_51){
if(typeof _50=="string"){
return $.fn.accordion.methods[_50](this,_51);
}
_50=_50||{};
return this.each(function(){
var _52=$.data(this,"accordion");
if(_52){
$.extend(_52.options,_50);
}else{
$.data(this,"accordion",{options:$.extend({},$.fn.accordion.defaults,$.fn.accordion.parseOptions(this),_50),accordion:$(this).addClass("accordion"),panels:[]});
_22(this);
}
_1f(this);
_1(this);
_39(this);
});
};
$.fn.accordion.methods={options:function(jq){
return $.data(jq[0],"accordion").options;
},panels:function(jq){
return $.data(jq[0],"accordion").panels;
},resize:function(jq,_53){
return jq.each(function(){
_1(this,_53);
});
},getSelections:function(jq){
return _14(jq[0]);
},getSelected:function(jq){
return _16(jq[0]);
},getPanel:function(jq,_54){
return _1b(jq[0],_54);
},getPanelIndex:function(jq,_55){
return _18(jq[0],_55);
},select:function(jq,_56){
return jq.each(function(){
_30(this,_56);
});
},unselect:function(jq,_57){
return jq.each(function(){
_35(this,_57);
});
},add:function(jq,_58){
return jq.each(function(){
add(this,_58);
});
},remove:function(jq,_59){
return jq.each(function(){
_46(this,_59);
});
}};
$.fn.accordion.parseOptions=function(_5a){
var t=$(_5a);
return $.extend({},$.parser.parseOptions(_5a,["width","height",{fit:"boolean",border:"boolean",animate:"boolean",multiple:"boolean",selected:"number"}]));
};
$.fn.accordion.defaults={width:"auto",height:"auto",fit:false,border:true,animate:true,multiple:false,selected:0,onSelect:function(_5b,_5c){
},onUnselect:function(_5d,_5e){
},onAdd:function(_5f,_60){
},onBeforeRemove:function(_61,_62){
},onRemove:function(_63,_64){
}};
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.calendar.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2,_3){
var _4=$.data(_2,"calendar").options;
var t=$(_2);
if(_3){
$.extend(_4,{width:_3.width,height:_3.height});
}
t._size(_4,t.parent());
t.find(".calendar-body")._outerHeight(t.height()-t.find(".calendar-header")._outerHeight());
if(t.find(".calendar-menu").is(":visible")){
_5(_2);
}
};
function _6(_7){
$(_7).addClass("calendar").html(""+""+""+"
");
$(_7).bind("_resize",function(e,_8){
if($(this).hasClass("easyui-fluid")||_8){
_1(_7);
}
return false;
});
};
function _9(_a){
var _b=$.data(_a,"calendar").options;
var _c=$(_a).find(".calendar-menu");
_c.find(".calendar-menu-year").unbind(".calendar").bind("keypress.calendar",function(e){
if(e.keyCode==13){
_d(true);
}
});
$(_a).unbind(".calendar").bind("mouseover.calendar",function(e){
var t=_e(e.target);
if(t.hasClass("calendar-nav")||t.hasClass("calendar-text")||(t.hasClass("calendar-day")&&!t.hasClass("calendar-disabled"))){
t.addClass("calendar-nav-hover");
}
}).bind("mouseout.calendar",function(e){
var t=_e(e.target);
if(t.hasClass("calendar-nav")||t.hasClass("calendar-text")||(t.hasClass("calendar-day")&&!t.hasClass("calendar-disabled"))){
t.removeClass("calendar-nav-hover");
}
}).bind("click.calendar",function(e){
var t=_e(e.target);
if(t.hasClass("calendar-menu-next")||t.hasClass("calendar-nextyear")){
_f(1);
}else{
if(t.hasClass("calendar-menu-prev")||t.hasClass("calendar-prevyear")){
_f(-1);
}else{
if(t.hasClass("calendar-menu-month")){
_c.find(".calendar-selected").removeClass("calendar-selected");
t.addClass("calendar-selected");
_d(true);
}else{
if(t.hasClass("calendar-prevmonth")){
_10(-1);
}else{
if(t.hasClass("calendar-nextmonth")){
_10(1);
}else{
if(t.hasClass("calendar-text")){
if(_c.is(":visible")){
_c.hide();
}else{
_5(_a);
}
}else{
if(t.hasClass("calendar-day")){
if(t.hasClass("calendar-disabled")){
return;
}
var _11=_b.current;
t.closest("div.calendar-body").find(".calendar-selected").removeClass("calendar-selected");
t.addClass("calendar-selected");
var _12=t.attr("abbr").split(",");
var y=parseInt(_12[0]);
var m=parseInt(_12[1]);
var d=parseInt(_12[2]);
_b.current=new Date(y,m-1,d);
_b.onSelect.call(_a,_b.current);
if(!_11||_11.getTime()!=_b.current.getTime()){
_b.onChange.call(_a,_b.current,_11);
}
if(_b.year!=y||_b.month!=m){
_b.year=y;
_b.month=m;
_19(_a);
}
}
}
}
}
}
}
}
});
function _e(t){
var day=$(t).closest(".calendar-day");
if(day.length){
return day;
}else{
return $(t);
}
};
function _d(_13){
var _14=$(_a).find(".calendar-menu");
var _15=_14.find(".calendar-menu-year").val();
var _16=_14.find(".calendar-selected").attr("abbr");
if(!isNaN(_15)){
_b.year=parseInt(_15);
_b.month=parseInt(_16);
_19(_a);
}
if(_13){
_14.hide();
}
};
function _f(_17){
_b.year+=_17;
_19(_a);
_c.find(".calendar-menu-year").val(_b.year);
};
function _10(_18){
_b.month+=_18;
if(_b.month>12){
_b.year++;
_b.month=1;
}else{
if(_b.month<1){
_b.year--;
_b.month=12;
}
}
_19(_a);
_c.find("td.calendar-selected").removeClass("calendar-selected");
_c.find("td:eq("+(_b.month-1)+")").addClass("calendar-selected");
};
};
function _5(_1a){
var _1b=$.data(_1a,"calendar").options;
$(_1a).find(".calendar-menu").show();
if($(_1a).find(".calendar-menu-month-inner").is(":empty")){
$(_1a).find(".calendar-menu-month-inner").empty();
var t=$("").appendTo($(_1a).find(".calendar-menu-month-inner"));
var idx=0;
for(var i=0;i<3;i++){
var tr=$(" ").appendTo(t);
for(var j=0;j<4;j++){
$(" ").html(_1b.months[idx++]).attr("abbr",idx).appendTo(tr);
}
}
}
var _1c=$(_1a).find(".calendar-body");
var _1d=$(_1a).find(".calendar-menu");
var _1e=_1d.find(".calendar-menu-year-inner");
var _1f=_1d.find(".calendar-menu-month-inner");
_1e.find("input").val(_1b.year).focus();
_1f.find("td.calendar-selected").removeClass("calendar-selected");
_1f.find("td:eq("+(_1b.month-1)+")").addClass("calendar-selected");
_1d._outerWidth(_1c._outerWidth());
_1d._outerHeight(_1c._outerHeight());
_1f._outerHeight(_1d.height()-_1e._outerHeight());
};
function _20(_21,_22,_23){
var _24=$.data(_21,"calendar").options;
var _25=[];
var _26=new Date(_22,_23,0).getDate();
for(var i=1;i<=_26;i++){
_25.push([_22,_23,i]);
}
var _27=[],_28=[];
var _29=-1;
while(_25.length>0){
var _2a=_25.shift();
_28.push(_2a);
var day=new Date(_2a[0],_2a[1]-1,_2a[2]).getDay();
if(_29==day){
day=0;
}else{
if(day==(_24.firstDay==0?7:_24.firstDay)-1){
_27.push(_28);
_28=[];
}
}
_29=day;
}
if(_28.length){
_27.push(_28);
}
var _2b=_27[0];
if(_2b.length<7){
while(_2b.length<7){
var _2c=_2b[0];
var _2a=new Date(_2c[0],_2c[1]-1,_2c[2]-1);
_2b.unshift([_2a.getFullYear(),_2a.getMonth()+1,_2a.getDate()]);
}
}else{
var _2c=_2b[0];
var _28=[];
for(var i=1;i<=7;i++){
var _2a=new Date(_2c[0],_2c[1]-1,_2c[2]-i);
_28.unshift([_2a.getFullYear(),_2a.getMonth()+1,_2a.getDate()]);
}
_27.unshift(_28);
}
var _2d=_27[_27.length-1];
while(_2d.length<7){
var _2e=_2d[_2d.length-1];
var _2a=new Date(_2e[0],_2e[1]-1,_2e[2]+1);
_2d.push([_2a.getFullYear(),_2a.getMonth()+1,_2a.getDate()]);
}
if(_27.length<6){
var _2e=_2d[_2d.length-1];
var _28=[];
for(var i=1;i<=7;i++){
var _2a=new Date(_2e[0],_2e[1]-1,_2e[2]+i);
_28.push([_2a.getFullYear(),_2a.getMonth()+1,_2a.getDate()]);
}
_27.push(_28);
}
return _27;
};
function _19(_2f){
var _30=$.data(_2f,"calendar").options;
if(_30.current&&!_30.validator.call(_2f,_30.current)){
_30.current=null;
}
var now=new Date();
var _31=now.getFullYear()+","+(now.getMonth()+1)+","+now.getDate();
var _32=_30.current?(_30.current.getFullYear()+","+(_30.current.getMonth()+1)+","+_30.current.getDate()):"";
var _33=6-_30.firstDay;
var _34=_33+1;
if(_33>=7){
_33-=7;
}
if(_34>=7){
_34-=7;
}
$(_2f).find(".calendar-title span").html(_30.months[_30.month-1]+" "+_30.year);
var _35=$(_2f).find("div.calendar-body");
_35.children("table").remove();
var _36=[""];
_36.push("");
for(var i=_30.firstDay;i<_30.weeks.length;i++){
_36.push(""+_30.weeks[i]+" ");
}
for(var i=0;i<_30.firstDay;i++){
_36.push(""+_30.weeks[i]+" ");
}
_36.push(" ");
_36.push("");
var _37=_20(_2f,_30.year,_30.month);
for(var i=0;i<_37.length;i++){
var _38=_37[i];
var cls="";
if(i==0){
cls="calendar-first";
}else{
if(i==_37.length-1){
cls="calendar-last";
}
}
_36.push("");
for(var j=0;j<_38.length;j++){
var day=_38[j];
var s=day[0]+","+day[1]+","+day[2];
var _39=new Date(day[0],parseInt(day[1])-1,day[2]);
var d=_30.formatter.call(_2f,_39);
var css=_30.styler.call(_2f,_39);
var _3a="";
var _3b="";
if(typeof css=="string"){
_3b=css;
}else{
if(css){
_3a=css["class"]||"";
_3b=css["style"]||"";
}
}
var cls="calendar-day";
if(!(_30.year==day[0]&&_30.month==day[1])){
cls+=" calendar-other-month";
}
if(s==_31){
cls+=" calendar-today";
}
if(s==_32){
cls+=" calendar-selected";
}
if(j==_33){
cls+=" calendar-saturday";
}else{
if(j==_34){
cls+=" calendar-sunday";
}
}
if(j==0){
cls+=" calendar-first";
}else{
if(j==_38.length-1){
cls+=" calendar-last";
}
}
cls+=" "+_3a;
if(!_30.validator.call(_2f,_39)){
cls+=" calendar-disabled";
}
_36.push(""+d+" ");
}
_36.push(" ");
}
_36.push(" ");
_36.push("
");
_35.append(_36.join(""));
_35.children("table.calendar-dtable").prependTo(_35);
_30.onNavigate.call(_2f,_30.year,_30.month);
};
$.fn.calendar=function(_3c,_3d){
if(typeof _3c=="string"){
return $.fn.calendar.methods[_3c](this,_3d);
}
_3c=_3c||{};
return this.each(function(){
var _3e=$.data(this,"calendar");
if(_3e){
$.extend(_3e.options,_3c);
}else{
_3e=$.data(this,"calendar",{options:$.extend({},$.fn.calendar.defaults,$.fn.calendar.parseOptions(this),_3c)});
_6(this);
}
if(_3e.options.border==false){
$(this).addClass("calendar-noborder");
}
_1(this);
_9(this);
_19(this);
$(this).find("div.calendar-menu").hide();
});
};
$.fn.calendar.methods={options:function(jq){
return $.data(jq[0],"calendar").options;
},resize:function(jq,_3f){
return jq.each(function(){
_1(this,_3f);
});
},moveTo:function(jq,_40){
return jq.each(function(){
var _41=$(this).calendar("options");
if(_41.validator.call(this,_40)){
var _42=_41.current;
$(this).calendar({year:_40.getFullYear(),month:_40.getMonth()+1,current:_40});
if(!_42||_42.getTime()!=_40.getTime()){
_41.onChange.call(this,_41.current,_42);
}
}
});
}};
$.fn.calendar.parseOptions=function(_43){
var t=$(_43);
return $.extend({},$.parser.parseOptions(_43,[{firstDay:"number",fit:"boolean",border:"boolean"}]));
};
$.fn.calendar.defaults={width:180,height:180,fit:false,border:true,firstDay:0,weeks:["S","M","T","W","T","F","S"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],year:new Date().getFullYear(),month:new Date().getMonth()+1,current:(function(){
var d=new Date();
return new Date(d.getFullYear(),d.getMonth(),d.getDate());
})(),formatter:function(_44){
return _44.getDate();
},styler:function(_45){
return "";
},validator:function(_46){
return true;
},onSelect:function(_47){
},onChange:function(_48,_49){
},onNavigate:function(_4a,_4b){
}};
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.combo.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
$(function(){
$(document).unbind(".combo").bind("mousedown.combo mousewheel.combo",function(e){
var p=$(e.target).closest("span.combo,div.combo-p");
if(p.length){
_1(p);
return;
}
$("body>div.combo-p>div.combo-panel:visible").panel("close");
});
});
function _2(_3){
var _4=$.data(_3,"combo");
var _5=_4.options;
if(!_4.panel){
_4.panel=$("
").appendTo("body");
_4.panel.panel({minWidth:_5.panelMinWidth,maxWidth:_5.panelMaxWidth,minHeight:_5.panelMinHeight,maxHeight:_5.panelMaxHeight,doSize:false,closed:true,cls:"combo-p",style:{position:"absolute",zIndex:10},onOpen:function(){
var _6=$(this).panel("options").comboTarget;
var _7=$.data(_6,"combo");
if(_7){
_7.options.onShowPanel.call(_6);
}
},onBeforeClose:function(){
_1(this);
},onClose:function(){
var _8=$(this).panel("options").comboTarget;
var _9=$.data(_8,"combo");
if(_9){
_9.options.onHidePanel.call(_8);
}
}});
}
var _a=$.extend(true,[],_5.icons);
if(_5.hasDownArrow){
_a.push({iconCls:"combo-arrow",handler:function(e){
_f(e.data.target);
}});
}
$(_3).addClass("combo-f").textbox($.extend({},_5,{icons:_a,onChange:function(){
}}));
$(_3).attr("comboName",$(_3).attr("textboxName"));
_4.combo=$(_3).next();
_4.combo.addClass("combo");
};
function _b(_c){
var _d=$.data(_c,"combo");
var _e=_d.options;
var p=_d.panel;
if(p.is(":visible")){
p.panel("close");
}
if(!_e.cloned){
p.panel("destroy");
}
$(_c).textbox("destroy");
};
function _f(_10){
var _11=$.data(_10,"combo").panel;
if(_11.is(":visible")){
_12(_10);
}else{
var p=$(_10).closest("div.combo-panel");
$("div.combo-panel:visible").not(_11).not(p).panel("close");
$(_10).combo("showPanel");
}
$(_10).combo("textbox").focus();
};
function _1(_13){
$(_13).find(".combo-f").each(function(){
var p=$(this).combo("panel");
if(p.is(":visible")){
p.panel("close");
}
});
};
function _14(e){
var _15=e.data.target;
var _16=$.data(_15,"combo");
var _17=_16.options;
var _18=_16.panel;
if(!_17.editable){
_f(_15);
}else{
var p=$(_15).closest("div.combo-panel");
$("div.combo-panel:visible").not(_18).not(p).panel("close");
}
};
function _19(e){
var _1a=e.data.target;
var t=$(_1a);
var _1b=t.data("combo");
var _1c=t.combo("options");
switch(e.keyCode){
case 38:
_1c.keyHandler.up.call(_1a,e);
break;
case 40:
_1c.keyHandler.down.call(_1a,e);
break;
case 37:
_1c.keyHandler.left.call(_1a,e);
break;
case 39:
_1c.keyHandler.right.call(_1a,e);
break;
case 13:
e.preventDefault();
_1c.keyHandler.enter.call(_1a,e);
return false;
case 9:
case 27:
_12(_1a);
break;
default:
if(_1c.editable){
if(_1b.timer){
clearTimeout(_1b.timer);
}
_1b.timer=setTimeout(function(){
var q=t.combo("getText");
if(_1b.previousText!=q){
_1b.previousText=q;
t.combo("showPanel");
_1c.keyHandler.query.call(_1a,q,e);
t.combo("validate");
}
},_1c.delay);
}
}
};
function _1d(_1e){
var _1f=$.data(_1e,"combo");
var _20=_1f.combo;
var _21=_1f.panel;
var _22=$(_1e).combo("options");
var _23=_21.panel("options");
_23.comboTarget=_1e;
if(_23.closed){
_21.panel("panel").show().css({zIndex:($.fn.menu?$.fn.menu.defaults.zIndex++:$.fn.window.defaults.zIndex++),left:-999999});
_21.panel("resize",{width:(_22.panelWidth?_22.panelWidth:_20._outerWidth()),height:_22.panelHeight});
_21.panel("panel").hide();
_21.panel("open");
}
(function(){
if(_21.is(":visible")){
_21.panel("move",{left:_24(),top:_25()});
setTimeout(arguments.callee,200);
}
})();
function _24(){
var _26=_20.offset().left;
if(_22.panelAlign=="right"){
_26+=_20._outerWidth()-_21._outerWidth();
}
if(_26+_21._outerWidth()>$(window)._outerWidth()+$(document).scrollLeft()){
_26=$(window)._outerWidth()+$(document).scrollLeft()-_21._outerWidth();
}
if(_26<0){
_26=0;
}
return _26;
};
function _25(){
var top=_20.offset().top+_20._outerHeight();
if(top+_21._outerHeight()>$(window)._outerHeight()+$(document).scrollTop()){
top=_20.offset().top-_21._outerHeight();
}
if(top<$(document).scrollTop()){
top=_20.offset().top+_20._outerHeight();
}
return top;
};
};
function _12(_27){
var _28=$.data(_27,"combo").panel;
_28.panel("close");
};
function _29(_2a){
var _2b=$.data(_2a,"combo");
var _2c=_2b.options;
var _2d=_2b.combo;
$(_2a).textbox("clear");
if(_2c.multiple){
_2d.find(".textbox-value").remove();
}else{
_2d.find(".textbox-value").val("");
}
};
function _2e(_2f,_30){
var _31=$.data(_2f,"combo");
var _32=$(_2f).textbox("getText");
if(_32!=_30){
$(_2f).textbox("setText",_30);
_31.previousText=_30;
}
};
function _33(_34){
var _35=[];
var _36=$.data(_34,"combo").combo;
_36.find(".textbox-value").each(function(){
_35.push($(this).val());
});
return _35;
};
function _37(_38,_39){
var _3a=$.data(_38,"combo");
var _3b=_3a.options;
var _3c=_3a.combo;
if(!$.isArray(_39)){
_39=_39.split(_3b.separator);
}
var _3d=_33(_38);
_3c.find(".textbox-value").remove();
var _3e=$(_38).attr("textboxName")||"";
for(var i=0;i<_39.length;i++){
var _3f=$(" ").appendTo(_3c);
_3f.attr("name",_3e);
if(_3b.disabled){
_3f.attr("disabled","disabled");
}
_3f.val(_39[i]);
}
var _40=(function(){
if(_3d.length!=_39.length){
return true;
}
var a1=$.extend(true,[],_3d);
var a2=$.extend(true,[],_39);
a1.sort();
a2.sort();
for(var i=0;i_c.height()){
var h=_c.scrollTop()+_d.position().top+_d.outerHeight()-_c.height();
_c.scrollTop(h);
}
}
}
};
function _e(_f,dir){
var _10=$.data(_f,"combobox").options;
var _11=$(_f).combobox("panel");
var _12=_11.children("div.combobox-item-hover");
if(!_12.length){
_12=_11.children("div.combobox-item-selected");
}
_12.removeClass("combobox-item-hover");
var _13="div.combobox-item:visible:not(.combobox-item-disabled):first";
var _14="div.combobox-item:visible:not(.combobox-item-disabled):last";
if(!_12.length){
_12=_11.children(dir=="next"?_13:_14);
}else{
if(dir=="next"){
_12=_12.nextAll(_13);
if(!_12.length){
_12=_11.children(_13);
}
}else{
_12=_12.prevAll(_13);
if(!_12.length){
_12=_11.children(_14);
}
}
}
if(_12.length){
_12.addClass("combobox-item-hover");
var row=_10.finder.getRow(_f,_12);
if(row){
_8(_f,row[_10.valueField]);
if(_10.selectOnNavigation){
_15(_f,row[_10.valueField]);
}
}
}
};
function _15(_16,_17){
var _18=$.data(_16,"combobox").options;
var _19=$(_16).combo("getValues");
if($.inArray(_17+"",_19)==-1){
if(_18.multiple){
_19.push(_17);
}else{
_19=[_17];
}
_1a(_16,_19);
_18.onSelect.call(_16,_18.finder.getRow(_16,_17));
}
};
function _1b(_1c,_1d){
var _1e=$.data(_1c,"combobox").options;
var _1f=$(_1c).combo("getValues");
var _20=$.inArray(_1d+"",_1f);
if(_20>=0){
_1f.splice(_20,1);
_1a(_1c,_1f);
_1e.onUnselect.call(_1c,_1e.finder.getRow(_1c,_1d));
}
};
function _1a(_21,_22,_23){
var _24=$.data(_21,"combobox").options;
var _25=$(_21).combo("panel");
if(!$.isArray(_22)){
_22=_22.split(_24.separator);
}
_25.find("div.combobox-item-selected").removeClass("combobox-item-selected");
var vv=[],ss=[];
for(var i=0;i<_22.length;i++){
var v=_22[i];
var s=v;
_24.finder.getEl(_21,v).addClass("combobox-item-selected");
var row=_24.finder.getRow(_21,v);
if(row){
s=row[_24.textField];
}
vv.push(v);
ss.push(s);
}
$(_21).combo("setValues",vv);
if(!_23){
$(_21).combo("setText",ss.join(_24.separator));
}
};
function _26(_27,_28,_29){
var _2a=$.data(_27,"combobox");
var _2b=_2a.options;
_2a.data=_2b.loadFilter.call(_27,_28);
_2a.groups=[];
_28=_2a.data;
var _2c=$(_27).combobox("getValues");
var dd=[];
var _2d=undefined;
for(var i=0;i<_28.length;i++){
var row=_28[i];
var v=row[_2b.valueField]+"";
var s=row[_2b.textField];
var g=row[_2b.groupField];
if(g){
if(_2d!=g){
_2d=g;
_2a.groups.push(g);
dd.push("");
dd.push(_2b.groupFormatter?_2b.groupFormatter.call(_27,g):g);
dd.push("
");
}
}else{
_2d=undefined;
}
var cls="combobox-item"+(row.disabled?" combobox-item-disabled":"")+(g?" combobox-gitem":"");
dd.push("");
dd.push(_2b.formatter?_2b.formatter.call(_27,row):s);
dd.push("
");
if(row["selected"]&&$.inArray(v,_2c)==-1){
_2c.push(v);
}
}
$(_27).combo("panel").html(dd.join(""));
if(_2b.multiple){
_1a(_27,_2c,_29);
}else{
_1a(_27,_2c.length?[_2c[_2c.length-1]]:[],_29);
}
_2b.onLoadSuccess.call(_27,_28);
};
function _2e(_2f,url,_30,_31){
var _32=$.data(_2f,"combobox").options;
if(url){
_32.url=url;
}
_30=_30||{};
if(_32.onBeforeLoad.call(_2f,_30)==false){
return;
}
_32.loader.call(_2f,_30,function(_33){
_26(_2f,_33,_31);
},function(){
_32.onLoadError.apply(this,arguments);
});
};
function _34(_35,q){
var _36=$.data(_35,"combobox");
var _37=_36.options;
if(_37.multiple&&!q){
_1a(_35,[],true);
}else{
_1a(_35,[q],true);
}
if(_37.mode=="remote"){
_2e(_35,null,{q:q},true);
}else{
var _38=$(_35).combo("panel");
_38.find("div.combobox-item-selected,div.combobox-item-hover").removeClass("combobox-item-selected combobox-item-hover");
_38.find("div.combobox-item,div.combobox-group").hide();
var _39=_36.data;
var vv=[];
var qq=_37.multiple?q.split(_37.separator):[q];
$.map(qq,function(q){
q=$.trim(q);
var _3a=undefined;
for(var i=0;i<_39.length;i++){
var row=_39[i];
if(_37.filter.call(_35,q,row)){
var v=row[_37.valueField];
var s=row[_37.textField];
var g=row[_37.groupField];
var _3b=_37.finder.getEl(_35,v).show();
if(s.toLowerCase()==q.toLowerCase()){
vv.push(v);
_3b.addClass("combobox-item-selected");
}
if(_37.groupField&&_3a!=g){
$("#"+_36.groupIdPrefix+"_"+$.inArray(g,_36.groups)).show();
_3a=g;
}
}
}
});
_1a(_35,vv,true);
}
};
function _3c(_3d){
var t=$(_3d);
var _3e=t.combobox("options");
var _3f=t.combobox("panel");
var _40=_3f.children("div.combobox-item-hover");
if(_40.length){
var row=_3e.finder.getRow(_3d,_40);
var _41=row[_3e.valueField];
if(_3e.multiple){
if(_40.hasClass("combobox-item-selected")){
t.combobox("unselect",_41);
}else{
t.combobox("select",_41);
}
}else{
t.combobox("select",_41);
}
}
var vv=[];
$.map(t.combobox("getValues"),function(v){
if(_2(_3d,v)>=0){
vv.push(v);
}
});
t.combobox("setValues",vv);
if(!_3e.multiple){
t.combobox("hidePanel");
}
};
function _42(_43){
var _44=$.data(_43,"combobox");
var _45=_44.options;
_1++;
_44.itemIdPrefix="_easyui_combobox_i"+_1;
_44.groupIdPrefix="_easyui_combobox_g"+_1;
$(_43).addClass("combobox-f");
$(_43).combo($.extend({},_45,{onShowPanel:function(){
$(_43).combo("panel").find("div.combobox-item,div.combobox-group").show();
_8(_43,$(_43).combobox("getValue"));
_45.onShowPanel.call(_43);
}}));
$(_43).combo("panel").unbind().bind("mouseover",function(e){
$(this).children("div.combobox-item-hover").removeClass("combobox-item-hover");
var _46=$(e.target).closest("div.combobox-item");
if(!_46.hasClass("combobox-item-disabled")){
_46.addClass("combobox-item-hover");
}
e.stopPropagation();
}).bind("mouseout",function(e){
$(e.target).closest("div.combobox-item").removeClass("combobox-item-hover");
e.stopPropagation();
}).bind("click",function(e){
var _47=$(e.target).closest("div.combobox-item");
if(!_47.length||_47.hasClass("combobox-item-disabled")){
return;
}
var row=_45.finder.getRow(_43,_47);
if(!row){
return;
}
var _48=row[_45.valueField];
if(_45.multiple){
if(_47.hasClass("combobox-item-selected")){
_1b(_43,_48);
}else{
_15(_43,_48);
}
}else{
_15(_43,_48);
$(_43).combo("hidePanel");
}
e.stopPropagation();
});
};
$.fn.combobox=function(_49,_4a){
if(typeof _49=="string"){
var _4b=$.fn.combobox.methods[_49];
if(_4b){
return _4b(this,_4a);
}else{
return this.combo(_49,_4a);
}
}
_49=_49||{};
return this.each(function(){
var _4c=$.data(this,"combobox");
if(_4c){
$.extend(_4c.options,_49);
_42(this);
}else{
_4c=$.data(this,"combobox",{options:$.extend({},$.fn.combobox.defaults,$.fn.combobox.parseOptions(this),_49),data:[]});
_42(this);
var _4d=$.fn.combobox.parseData(this);
if(_4d.length){
_26(this,_4d);
}
}
if(_4c.options.data){
_26(this,_4c.options.data);
}
_2e(this);
});
};
$.fn.combobox.methods={options:function(jq){
var _4e=jq.combo("options");
return $.extend($.data(jq[0],"combobox").options,{width:_4e.width,height:_4e.height,originalValue:_4e.originalValue,disabled:_4e.disabled,readonly:_4e.readonly});
},getData:function(jq){
return $.data(jq[0],"combobox").data;
},setValues:function(jq,_4f){
return jq.each(function(){
_1a(this,_4f);
});
},setValue:function(jq,_50){
return jq.each(function(){
_1a(this,[_50]);
});
},clear:function(jq){
return jq.each(function(){
$(this).combo("clear");
var _51=$(this).combo("panel");
_51.find("div.combobox-item-selected").removeClass("combobox-item-selected");
});
},reset:function(jq){
return jq.each(function(){
var _52=$(this).combobox("options");
if(_52.multiple){
$(this).combobox("setValues",_52.originalValue);
}else{
$(this).combobox("setValue",_52.originalValue);
}
});
},loadData:function(jq,_53){
return jq.each(function(){
_26(this,_53);
});
},reload:function(jq,url){
return jq.each(function(){
_2e(this,url);
});
},select:function(jq,_54){
return jq.each(function(){
_15(this,_54);
});
},unselect:function(jq,_55){
return jq.each(function(){
_1b(this,_55);
});
}};
$.fn.combobox.parseOptions=function(_56){
var t=$(_56);
return $.extend({},$.fn.combo.parseOptions(_56),$.parser.parseOptions(_56,["valueField","textField","groupField","mode","method","url"]));
};
$.fn.combobox.parseData=function(_57){
var _58=[];
var _59=$(_57).combobox("options");
$(_57).children().each(function(){
if(this.tagName.toLowerCase()=="optgroup"){
var _5a=$(this).attr("label");
$(this).children().each(function(){
_5b(this,_5a);
});
}else{
_5b(this);
}
});
return _58;
function _5b(el,_5c){
var t=$(el);
var row={};
row[_59.valueField]=t.attr("value")!=undefined?t.attr("value"):t.text();
row[_59.textField]=t.text();
row["selected"]=t.is(":selected");
row["disabled"]=t.is(":disabled");
if(_5c){
_59.groupField=_59.groupField||"group";
row[_59.groupField]=_5c;
}
_58.push(row);
};
};
$.fn.combobox.defaults=$.extend({},$.fn.combo.defaults,{valueField:"value",textField:"text",groupField:null,groupFormatter:function(_5d){
return _5d;
},mode:"local",method:"post",url:null,data:null,keyHandler:{up:function(e){
_e(this,"prev");
e.preventDefault();
},down:function(e){
_e(this,"next");
e.preventDefault();
},left:function(e){
},right:function(e){
},enter:function(e){
_3c(this);
},query:function(q,e){
_34(this,q);
}},filter:function(q,row){
var _5e=$(this).combobox("options");
return row[_5e.textField].toLowerCase().indexOf(q.toLowerCase())==0;
},formatter:function(row){
var _5f=$(this).combobox("options");
return row[_5f.textField];
},loader:function(_60,_61,_62){
var _63=$(this).combobox("options");
if(!_63.url){
return false;
}
$.ajax({type:_63.method,url:_63.url,data:_60,dataType:"json",success:function(_64){
_61(_64);
},error:function(){
_62.apply(this,arguments);
}});
},loadFilter:function(_65){
return _65;
},finder:{getEl:function(_66,_67){
var _68=_2(_66,_67);
var id=$.data(_66,"combobox").itemIdPrefix+"_"+_68;
return $("#"+id);
},getRow:function(_69,p){
var _6a=$.data(_69,"combobox");
var _6b=(p instanceof jQuery)?p.attr("id").substr(_6a.itemIdPrefix.length+1):_2(_69,p);
return _6a.data[parseInt(_6b)];
}},onBeforeLoad:function(_6c){
},onLoadSuccess:function(){
},onLoadError:function(){
},onSelect:function(_6d){
},onUnselect:function(_6e){
}});
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.combogrid.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"combogrid");
var _4=_3.options;
var _5=_3.grid;
$(_2).addClass("combogrid-f").combo($.extend({},_4,{onShowPanel:function(){
var p=$(this).combogrid("panel");
var _6=p.outerHeight()-p.height();
var _7=p._size("minHeight");
var _8=p._size("maxHeight");
$(this).combogrid("grid").datagrid("resize",{width:"100%",height:(isNaN(parseInt(_4.panelHeight))?"auto":"100%"),minHeight:(_7?_7-_6:""),maxHeight:(_8?_8-_6:"")});
_4.onShowPanel.call(this);
}}));
var _9=$(_2).combo("panel");
if(!_5){
_5=$("").appendTo(_9);
_3.grid=_5;
}
_5.datagrid($.extend({},_4,{border:false,singleSelect:(!_4.multiple),onLoadSuccess:function(_a){
var _b=$(_2).combo("getValues");
var _c=_4.onSelect;
_4.onSelect=function(){
};
_1c(_2,_b,_3.remainText);
_4.onSelect=_c;
_4.onLoadSuccess.apply(_2,arguments);
},onClickRow:_d,onSelect:function(_e,_f){
_10();
_4.onSelect.call(this,_e,_f);
},onUnselect:function(_11,row){
_10();
_4.onUnselect.call(this,_11,row);
},onSelectAll:function(_12){
_10();
_4.onSelectAll.call(this,_12);
},onUnselectAll:function(_13){
if(_4.multiple){
_10();
}
_4.onUnselectAll.call(this,_13);
}}));
function _d(_14,row){
_3.remainText=false;
_10();
if(!_4.multiple){
$(_2).combo("hidePanel");
}
_4.onClickRow.call(this,_14,row);
};
function _10(){
var _15=_5.datagrid("getSelections");
var vv=[],ss=[];
for(var i=0;i<_15.length;i++){
vv.push(_15[i][_4.idField]);
ss.push(_15[i][_4.textField]);
}
if(!_4.multiple){
$(_2).combo("setValues",(vv.length?vv:[""]));
}else{
$(_2).combo("setValues",vv);
}
if(!_3.remainText){
$(_2).combo("setText",ss.join(_4.separator));
}
};
};
function nav(_16,dir){
var _17=$.data(_16,"combogrid");
var _18=_17.options;
var _19=_17.grid;
var _1a=_19.datagrid("getRows").length;
if(!_1a){
return;
}
var tr=_18.finder.getTr(_19[0],null,"highlight");
if(!tr.length){
tr=_18.finder.getTr(_19[0],null,"selected");
}
var _1b;
if(!tr.length){
_1b=(dir=="next"?0:_1a-1);
}else{
var _1b=parseInt(tr.attr("datagrid-row-index"));
_1b+=(dir=="next"?1:-1);
if(_1b<0){
_1b=_1a-1;
}
if(_1b>=_1a){
_1b=0;
}
}
_19.datagrid("highlightRow",_1b);
if(_18.selectOnNavigation){
_17.remainText=false;
_19.datagrid("selectRow",_1b);
}
};
function _1c(_1d,_1e,_1f){
var _20=$.data(_1d,"combogrid");
var _21=_20.options;
var _22=_20.grid;
var _23=_22.datagrid("getRows");
var ss=[];
var _24=$(_1d).combo("getValues");
var _25=$(_1d).combo("options");
var _26=_25.onChange;
_25.onChange=function(){
};
_22.datagrid("clearSelections");
if(!$.isArray(_1e)){
_1e=_1e.split(_21.separator);
}
for(var i=0;i<_1e.length;i++){
var _27=_22.datagrid("getRowIndex",_1e[i]);
if(_27>=0){
_22.datagrid("selectRow",_27);
ss.push(_23[_27][_21.textField]);
}else{
ss.push(_1e[i]);
}
}
$(_1d).combo("setValues",_24);
_25.onChange=_26;
$(_1d).combo("setValues",_1e);
if(!_1f){
var s=ss.join(_21.separator);
if($(_1d).combo("getText")!=s){
$(_1d).combo("setText",s);
}
}
};
function _28(_29,q){
var _2a=$.data(_29,"combogrid");
var _2b=_2a.options;
var _2c=_2a.grid;
_2a.remainText=true;
if(_2b.multiple&&!q){
_1c(_29,[],true);
}else{
_1c(_29,[q],true);
}
if(_2b.mode=="remote"){
_2c.datagrid("clearSelections");
_2c.datagrid("load",$.extend({},_2b.queryParams,{q:q}));
}else{
if(!q){
return;
}
_2c.datagrid("clearSelections").datagrid("highlightRow",-1);
var _2d=_2c.datagrid("getRows");
var qq=_2b.multiple?q.split(_2b.separator):[q];
$.map(qq,function(q){
q=$.trim(q);
if(q){
$.map(_2d,function(row,i){
if(q==row[_2b.textField]){
_2c.datagrid("selectRow",i);
}else{
if(_2b.filter.call(_29,q,row)){
_2c.datagrid("highlightRow",i);
}
}
});
}
});
}
};
function _2e(_2f){
var _30=$.data(_2f,"combogrid");
var _31=_30.options;
var _32=_30.grid;
var tr=_31.finder.getTr(_32[0],null,"highlight");
_30.remainText=false;
if(tr.length){
var _33=parseInt(tr.attr("datagrid-row-index"));
if(_31.multiple){
if(tr.hasClass("datagrid-row-selected")){
_32.datagrid("unselectRow",_33);
}else{
_32.datagrid("selectRow",_33);
}
}else{
_32.datagrid("selectRow",_33);
}
}
var vv=[];
$.map(_32.datagrid("getSelections"),function(row){
vv.push(row[_31.idField]);
});
$(_2f).combogrid("setValues",vv);
if(!_31.multiple){
$(_2f).combogrid("hidePanel");
}
};
$.fn.combogrid=function(_34,_35){
if(typeof _34=="string"){
var _36=$.fn.combogrid.methods[_34];
if(_36){
return _36(this,_35);
}else{
return this.combo(_34,_35);
}
}
_34=_34||{};
return this.each(function(){
var _37=$.data(this,"combogrid");
if(_37){
$.extend(_37.options,_34);
}else{
_37=$.data(this,"combogrid",{options:$.extend({},$.fn.combogrid.defaults,$.fn.combogrid.parseOptions(this),_34)});
}
_1(this);
});
};
$.fn.combogrid.methods={options:function(jq){
var _38=jq.combo("options");
return $.extend($.data(jq[0],"combogrid").options,{width:_38.width,height:_38.height,originalValue:_38.originalValue,disabled:_38.disabled,readonly:_38.readonly});
},grid:function(jq){
return $.data(jq[0],"combogrid").grid;
},setValues:function(jq,_39){
return jq.each(function(){
_1c(this,_39);
});
},setValue:function(jq,_3a){
return jq.each(function(){
_1c(this,[_3a]);
});
},clear:function(jq){
return jq.each(function(){
$(this).combogrid("grid").datagrid("clearSelections");
$(this).combo("clear");
});
},reset:function(jq){
return jq.each(function(){
var _3b=$(this).combogrid("options");
if(_3b.multiple){
$(this).combogrid("setValues",_3b.originalValue);
}else{
$(this).combogrid("setValue",_3b.originalValue);
}
});
}};
$.fn.combogrid.parseOptions=function(_3c){
var t=$(_3c);
return $.extend({},$.fn.combo.parseOptions(_3c),$.fn.datagrid.parseOptions(_3c),$.parser.parseOptions(_3c,["idField","textField","mode"]));
};
$.fn.combogrid.defaults=$.extend({},$.fn.combo.defaults,$.fn.datagrid.defaults,{height:22,loadMsg:null,idField:null,textField:null,mode:"local",keyHandler:{up:function(e){
nav(this,"prev");
e.preventDefault();
},down:function(e){
nav(this,"next");
e.preventDefault();
},left:function(e){
},right:function(e){
},enter:function(e){
_2e(this);
},query:function(q,e){
_28(this,q);
}},filter:function(q,row){
var _3d=$(this).combogrid("options");
return row[_3d.textField].toLowerCase().indexOf(q.toLowerCase())==0;
}});
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.combotree.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"combotree");
var _4=_3.options;
var _5=_3.tree;
$(_2).addClass("combotree-f");
$(_2).combo(_4);
var _6=$(_2).combo("panel");
if(!_5){
_5=$("").appendTo(_6);
$.data(_2,"combotree").tree=_5;
}
_5.tree($.extend({},_4,{checkbox:_4.multiple,onLoadSuccess:function(_7,_8){
var _9=$(_2).combotree("getValues");
if(_4.multiple){
var _a=_5.tree("getChecked");
for(var i=0;i<_a.length;i++){
var id=_a[i].id;
(function(){
for(var i=0;i<_9.length;i++){
if(id==_9[i]){
return;
}
}
_9.push(id);
})();
}
}
$(_2).combotree("setValues",_9);
_4.onLoadSuccess.call(this,_7,_8);
},onClick:function(_b){
if(_4.multiple){
$(this).tree(_b.checked?"uncheck":"check",_b.target);
}else{
$(_2).combo("hidePanel");
}
_e(_2);
_4.onClick.call(this,_b);
},onCheck:function(_c,_d){
_e(_2);
_4.onCheck.call(this,_c,_d);
}}));
};
function _e(_f){
var _10=$.data(_f,"combotree");
var _11=_10.options;
var _12=_10.tree;
var vv=[],ss=[];
if(_11.multiple){
var _13=_12.tree("getChecked");
for(var i=0;i<_13.length;i++){
vv.push(_13[i].id);
ss.push(_13[i].text);
}
}else{
var _14=_12.tree("getSelected");
if(_14){
vv.push(_14.id);
ss.push(_14.text);
}
}
$(_f).combo("setValues",vv).combo("setText",ss.join(_11.separator));
};
function _15(_16,_17){
var _18=$.data(_16,"combotree");
var _19=_18.options;
var _1a=_18.tree;
var _1b=_1a.tree("options");
var _1c=_1b.onCheck;
var _1d=_1b.onSelect;
_1b.onCheck=_1b.onSelect=function(){
};
_1a.find("span.tree-checkbox").addClass("tree-checkbox0").removeClass("tree-checkbox1 tree-checkbox2");
if(!$.isArray(_17)){
_17=_17.split(_19.separator);
}
for(var i=0;i<_17.length;i++){
var _1e=_1a.tree("find",_17[i]);
if(_1e){
_1a.tree("check",_1e.target);
_1a.tree("select",_1e.target);
}
}
_1b.onCheck=_1c;
_1b.onSelect=_1d;
_e(_16);
};
$.fn.combotree=function(_1f,_20){
if(typeof _1f=="string"){
var _21=$.fn.combotree.methods[_1f];
if(_21){
return _21(this,_20);
}else{
return this.combo(_1f,_20);
}
}
_1f=_1f||{};
return this.each(function(){
var _22=$.data(this,"combotree");
if(_22){
$.extend(_22.options,_1f);
}else{
$.data(this,"combotree",{options:$.extend({},$.fn.combotree.defaults,$.fn.combotree.parseOptions(this),_1f)});
}
_1(this);
});
};
$.fn.combotree.methods={options:function(jq){
var _23=jq.combo("options");
return $.extend($.data(jq[0],"combotree").options,{width:_23.width,height:_23.height,originalValue:_23.originalValue,disabled:_23.disabled,readonly:_23.readonly});
},clone:function(jq,_24){
var t=jq.combo("clone",_24);
t.data("combotree",{options:$.extend(true,{},jq.combotree("options")),tree:jq.combotree("tree")});
return t;
},tree:function(jq){
return $.data(jq[0],"combotree").tree;
},loadData:function(jq,_25){
return jq.each(function(){
var _26=$.data(this,"combotree").options;
_26.data=_25;
var _27=$.data(this,"combotree").tree;
_27.tree("loadData",_25);
});
},reload:function(jq,url){
return jq.each(function(){
var _28=$.data(this,"combotree").options;
var _29=$.data(this,"combotree").tree;
if(url){
_28.url=url;
}
_29.tree({url:_28.url});
});
},setValues:function(jq,_2a){
return jq.each(function(){
_15(this,_2a);
});
},setValue:function(jq,_2b){
return jq.each(function(){
_15(this,[_2b]);
});
},clear:function(jq){
return jq.each(function(){
var _2c=$.data(this,"combotree").tree;
_2c.find("div.tree-node-selected").removeClass("tree-node-selected");
var cc=_2c.tree("getChecked");
for(var i=0;i"];
for(var i=0;i<_f.length;i++){
_e.cache[_f[i][0]]={width:_f[i][1]};
}
var _10=0;
for(var s in _e.cache){
var _11=_e.cache[s];
_11.index=_10++;
ss.push(s+"{width:"+_11.width+"}");
}
ss.push("");
$(ss.join("\n")).appendTo(cc);
cc.children("style[easyui]:not(:last)").remove();
},getRule:function(_12){
var _13=cc.children("style[easyui]:last")[0];
var _14=_13.styleSheet?_13.styleSheet:(_13.sheet||document.styleSheets[document.styleSheets.length-1]);
var _15=_14.cssRules||_14.rules;
return _15[_12];
},set:function(_16,_17){
var _18=_e.cache[_16];
if(_18){
_18.width=_17;
var _19=this.getRule(_18.index);
if(_19){
_19.style["width"]=_17;
}
}
},remove:function(_1a){
var tmp=[];
for(var s in _e.cache){
if(s.indexOf(_1a)==-1){
tmp.push([s,_e.cache[s].width]);
}
}
_e.cache={};
this.add(tmp);
},dirty:function(_1b){
if(_1b){
_e.dirty.push(_1b);
}
},clean:function(){
for(var i=0;i<_e.dirty.length;i++){
this.remove(_e.dirty[i]);
}
_e.dirty=[];
}};
};
function _1c(_1d,_1e){
var _1f=$.data(_1d,"datagrid");
var _20=_1f.options;
var _21=_1f.panel;
if(_1e){
$.extend(_20,_1e);
}
if(_20.fit==true){
var p=_21.panel("panel").parent();
_20.width=p.width();
_20.height=p.height();
}
_21.panel("resize",_20);
};
function _22(_23){
var _24=$.data(_23,"datagrid");
var _25=_24.options;
var dc=_24.dc;
var _26=_24.panel;
var _27=_26.width();
var _28=_26.height();
var _29=dc.view;
var _2a=dc.view1;
var _2b=dc.view2;
var _2c=_2a.children("div.datagrid-header");
var _2d=_2b.children("div.datagrid-header");
var _2e=_2c.find("table");
var _2f=_2d.find("table");
_29.width(_27);
var _30=_2c.children("div.datagrid-header-inner").show();
_2a.width(_30.find("table").width());
if(!_25.showHeader){
_30.hide();
}
_2b.width(_27-_2a._outerWidth());
_2a.children("div.datagrid-header,div.datagrid-body,div.datagrid-footer").width(_2a.width());
_2b.children("div.datagrid-header,div.datagrid-body,div.datagrid-footer").width(_2b.width());
var hh;
_2c.add(_2d).css("height","");
_2e.add(_2f).css("height","");
hh=Math.max(_2e.height(),_2f.height());
_2e.add(_2f).height(hh);
_2c.add(_2d)._outerHeight(hh);
dc.body1.add(dc.body2).children("table.datagrid-btable-frozen").css({position:"absolute",top:dc.header2._outerHeight()});
var _31=dc.body2.children("table.datagrid-btable-frozen")._outerHeight();
var _32=_31+_2b.children("div.datagrid-header")._outerHeight()+_2b.children("div.datagrid-footer")._outerHeight()+_26.children("div.datagrid-toolbar")._outerHeight();
_26.children("div.datagrid-pager").each(function(){
_32+=$(this)._outerHeight();
});
var _33=_26.outerHeight()-_26.height();
var _34=_26._size("minHeight")||"";
var _35=_26._size("maxHeight")||"";
_2a.add(_2b).children("div.datagrid-body").css({marginTop:_31,height:(isNaN(parseInt(_25.height))?"":(_28-_32)),minHeight:(_34?_34-_33-_32:""),maxHeight:(_35?_35-_33-_32:"")});
_29.height(_2b.height());
};
function _36(_37,_38,_39){
var _3a=$.data(_37,"datagrid").data.rows;
var _3b=$.data(_37,"datagrid").options;
var dc=$.data(_37,"datagrid").dc;
if(!dc.body1.is(":empty")&&(!_3b.nowrap||_3b.autoRowHeight||_39)){
if(_38!=undefined){
var tr1=_3b.finder.getTr(_37,_38,"body",1);
var tr2=_3b.finder.getTr(_37,_38,"body",2);
_3c(tr1,tr2);
}else{
var tr1=_3b.finder.getTr(_37,0,"allbody",1);
var tr2=_3b.finder.getTr(_37,0,"allbody",2);
_3c(tr1,tr2);
if(_3b.showFooter){
var tr1=_3b.finder.getTr(_37,0,"allfooter",1);
var tr2=_3b.finder.getTr(_37,0,"allfooter",2);
_3c(tr1,tr2);
}
}
}
_22(_37);
if(_3b.height=="auto"){
var _3d=dc.body1.parent();
var _3e=dc.body2;
var _3f=_40(_3e);
var _41=_3f.height;
if(_3f.width>_3e.width()){
_41+=18;
}
_41-=parseInt(_3e.css("marginTop"))||0;
_3d.height(_41);
_3e.height(_41);
dc.view.height(dc.view2.height());
}
dc.body2.triggerHandler("scroll");
function _3c(_42,_43){
for(var i=0;i<_43.length;i++){
var tr1=$(_42[i]);
var tr2=$(_43[i]);
tr1.css("height","");
tr2.css("height","");
var _44=Math.max(tr1.height(),tr2.height());
tr1.css("height",_44);
tr2.css("height",_44);
}
};
function _40(cc){
var _45=0;
var _46=0;
$(cc).children().each(function(){
var c=$(this);
if(c.is(":visible")){
_46+=c._outerHeight();
if(_45");
}
_4c(true);
_4c(false);
_22(_48);
function _4c(_4d){
var _4e=_4d?1:2;
var tr=_4b.finder.getTr(_48,_49,"body",_4e);
(_4d?dc.body1:dc.body2).children("table.datagrid-btable-frozen").append(tr);
};
};
function _4f(_50,_51){
function _52(){
var _53=[];
var _54=[];
$(_50).children("thead").each(function(){
var opt=$.parser.parseOptions(this,[{frozen:"boolean"}]);
$(this).find("tr").each(function(){
var _55=[];
$(this).find("th").each(function(){
var th=$(this);
var col=$.extend({},$.parser.parseOptions(this,["field","align","halign","order","width",{sortable:"boolean",checkbox:"boolean",resizable:"boolean",fixed:"boolean"},{rowspan:"number",colspan:"number"}]),{title:(th.html()||undefined),hidden:(th.attr("hidden")?true:undefined),formatter:(th.attr("formatter")?eval(th.attr("formatter")):undefined),styler:(th.attr("styler")?eval(th.attr("styler")):undefined),sorter:(th.attr("sorter")?eval(th.attr("sorter")):undefined)});
if(col.width&&String(col.width).indexOf("%")==-1){
col.width=parseInt(col.width);
}
if(th.attr("editor")){
var s=$.trim(th.attr("editor"));
if(s.substr(0,1)=="{"){
col.editor=eval("("+s+")");
}else{
col.editor=s;
}
}
_55.push(col);
});
opt.frozen?_53.push(_55):_54.push(_55);
});
});
return [_53,_54];
};
var _56=$("").insertAfter(_50);
_56.panel({doSize:false,cls:"datagrid"});
$(_50).addClass("datagrid-f").hide().appendTo(_56.children("div.datagrid-view"));
var cc=_52();
var _57=_56.children("div.datagrid-view");
var _58=_57.children("div.datagrid-view1");
var _59=_57.children("div.datagrid-view2");
return {panel:_56,frozenColumns:cc[0],columns:cc[1],dc:{view:_57,view1:_58,view2:_59,header1:_58.children("div.datagrid-header").children("div.datagrid-header-inner"),header2:_59.children("div.datagrid-header").children("div.datagrid-header-inner"),body1:_58.children("div.datagrid-body").children("div.datagrid-body-inner"),body2:_59.children("div.datagrid-body"),footer1:_58.children("div.datagrid-footer").children("div.datagrid-footer-inner"),footer2:_59.children("div.datagrid-footer").children("div.datagrid-footer-inner")}};
};
function _5a(_5b){
var _5c=$.data(_5b,"datagrid");
var _5d=_5c.options;
var dc=_5c.dc;
var _5e=_5c.panel;
_5c.ss=$(_5b).datagrid("createStyleSheet");
_5e.panel($.extend({},_5d,{id:null,doSize:false,onResize:function(_5f,_60){
setTimeout(function(){
if($.data(_5b,"datagrid")){
_22(_5b);
_b0(_5b);
_5d.onResize.call(_5e,_5f,_60);
}
},0);
},onExpand:function(){
_36(_5b);
_5d.onExpand.call(_5e);
}}));
_5c.rowIdPrefix="datagrid-row-r"+(++_1);
_5c.cellClassPrefix="datagrid-cell-c"+_1;
_61(dc.header1,_5d.frozenColumns,true);
_61(dc.header2,_5d.columns,false);
_62();
dc.header1.add(dc.header2).css("display",_5d.showHeader?"block":"none");
dc.footer1.add(dc.footer2).css("display",_5d.showFooter?"block":"none");
if(_5d.toolbar){
if($.isArray(_5d.toolbar)){
$("div.datagrid-toolbar",_5e).remove();
var tb=$("").prependTo(_5e);
var tr=tb.find("tr");
for(var i=0;i<_5d.toolbar.length;i++){
var btn=_5d.toolbar[i];
if(btn=="-"){
$("
").appendTo(tr);
}else{
var td=$(" ").appendTo(tr);
var _63=$(" ").appendTo(td);
_63[0].onclick=eval(btn.handler||function(){
});
_63.linkbutton($.extend({},btn,{plain:true}));
}
}
}else{
$(_5d.toolbar).addClass("datagrid-toolbar").prependTo(_5e);
$(_5d.toolbar).show();
}
}else{
$("div.datagrid-toolbar",_5e).remove();
}
$("div.datagrid-pager",_5e).remove();
if(_5d.pagination){
var _64=$("");
if(_5d.pagePosition=="bottom"){
_64.appendTo(_5e);
}else{
if(_5d.pagePosition=="top"){
_64.addClass("datagrid-pager-top").prependTo(_5e);
}else{
var _65=$("").prependTo(_5e);
_64.appendTo(_5e);
_64=_64.add(_65);
}
}
_64.pagination({total:(_5d.pageNumber*_5d.pageSize),pageNumber:_5d.pageNumber,pageSize:_5d.pageSize,pageList:_5d.pageList,onSelectPage:function(_66,_67){
_5d.pageNumber=_66||1;
_5d.pageSize=_67;
_64.pagination("refresh",{pageNumber:_66,pageSize:_67});
_ae(_5b);
}});
_5d.pageSize=_64.pagination("options").pageSize;
}
function _61(_68,_69,_6a){
if(!_69){
return;
}
$(_68).show();
$(_68).empty();
var _6b=[];
var _6c=[];
if(_5d.sortName){
_6b=_5d.sortName.split(",");
_6c=_5d.sortOrder.split(",");
}
var t=$("").appendTo(_68);
for(var i=0;i<_69.length;i++){
var tr=$("").appendTo($("tbody",t));
var _6d=_69[i];
for(var j=0;j<_6d.length;j++){
var col=_6d[j];
var _6e="";
if(col.rowspan){
_6e+="rowspan=\""+col.rowspan+"\" ";
}
if(col.colspan){
_6e+="colspan=\""+col.colspan+"\" ";
}
var td=$(" ").appendTo(tr);
if(col.checkbox){
td.attr("field",col.field);
$("").html(" ").appendTo(td);
}else{
if(col.field){
td.attr("field",col.field);
td.append("
");
$("span",td).html(col.title);
$("span.datagrid-sort-icon",td).html(" ");
var _6f=td.find("div.datagrid-cell");
var pos=_2(_6b,col.field);
if(pos>=0){
_6f.addClass("datagrid-sort-"+_6c[pos]);
}
if(col.resizable==false){
_6f.attr("resizable","false");
}
if(col.width){
var _70=$.parser.parseValue("width",col.width,dc.view,_5d.scrollbarSize);
_6f._outerWidth(_70-1);
col.boxWidth=parseInt(_6f[0].style.width);
col.deltaWidth=_70-col.boxWidth;
}else{
col.auto=true;
}
_6f.css("text-align",(col.halign||col.align||""));
col.cellClass=_5c.cellClassPrefix+"-"+col.field.replace(/[\.|\s]/g,"-");
_6f.addClass(col.cellClass).css("width","");
}else{
$("
").html(col.title).appendTo(td);
}
}
if(col.hidden){
td.hide();
}
}
}
if(_6a&&_5d.rownumbers){
var td=$(" ");
if($("tr",t).length==0){
td.wrap("").parent().appendTo($("tbody",t));
}else{
td.prependTo($("tr:first",t));
}
}
};
function _62(){
var _71=[];
var _72=_73(_5b,true).concat(_73(_5b));
for(var i=0;i<_72.length;i++){
var col=_74(_5b,_72[i]);
if(col&&!col.checkbox){
_71.push(["."+col.cellClass,col.boxWidth?col.boxWidth+"px":"auto"]);
}
}
_5c.ss.add(_71);
_5c.ss.dirty(_5c.cellSelectorPrefix);
_5c.cellSelectorPrefix="."+_5c.cellClassPrefix;
};
};
function _75(_76){
var _77=$.data(_76,"datagrid");
var _78=_77.panel;
var _79=_77.options;
var dc=_77.dc;
var _7a=dc.header1.add(dc.header2);
_7a.find("input[type=checkbox]").unbind(".datagrid").bind("click.datagrid",function(e){
if(_79.singleSelect&&_79.selectOnCheck){
return false;
}
if($(this).is(":checked")){
_123(_76);
}else{
_129(_76);
}
e.stopPropagation();
});
var _7b=_7a.find("div.datagrid-cell");
_7b.closest("td").unbind(".datagrid").bind("mouseenter.datagrid",function(){
if(_77.resizing){
return;
}
$(this).addClass("datagrid-header-over");
}).bind("mouseleave.datagrid",function(){
$(this).removeClass("datagrid-header-over");
}).bind("contextmenu.datagrid",function(e){
var _7c=$(this).attr("field");
_79.onHeaderContextMenu.call(_76,e,_7c);
});
_7b.unbind(".datagrid").bind("click.datagrid",function(e){
var p1=$(this).offset().left+5;
var p2=$(this).offset().left+$(this)._outerWidth()-5;
if(e.pageXp1){
_a2(_76,$(this).parent().attr("field"));
}
}).bind("dblclick.datagrid",function(e){
var p1=$(this).offset().left+5;
var p2=$(this).offset().left+$(this)._outerWidth()-5;
var _7d=_79.resizeHandle=="right"?(e.pageX>p2):(_79.resizeHandle=="left"?(e.pageXp2));
if(_7d){
var _7e=$(this).parent().attr("field");
var col=_74(_76,_7e);
if(col.resizable==false){
return;
}
$(_76).datagrid("autoSizeColumn",_7e);
col.auto=false;
}
});
var _7f=_79.resizeHandle=="right"?"e":(_79.resizeHandle=="left"?"w":"e,w");
_7b.each(function(){
$(this).resizable({handles:_7f,disabled:($(this).attr("resizable")?$(this).attr("resizable")=="false":false),minWidth:25,onStartResize:function(e){
_77.resizing=true;
_7a.css("cursor",$("body").css("cursor"));
if(!_77.proxy){
_77.proxy=$("
").appendTo(dc.view);
}
_77.proxy.css({left:e.pageX-$(_78).offset().left-1,display:"none"});
setTimeout(function(){
if(_77.proxy){
_77.proxy.show();
}
},500);
},onResize:function(e){
_77.proxy.css({left:e.pageX-$(_78).offset().left-1,display:"block"});
return false;
},onStopResize:function(e){
_7a.css("cursor","");
$(this).css("height","");
var _80=$(this).parent().attr("field");
var col=_74(_76,_80);
col.width=$(this)._outerWidth();
col.boxWidth=col.width-col.deltaWidth;
col.auto=undefined;
$(this).css("width","");
_d1(_76,_80);
_77.proxy.remove();
_77.proxy=null;
if($(this).parents("div:first.datagrid-header").parent().hasClass("datagrid-view1")){
_22(_76);
}
_b0(_76);
_79.onResizeColumn.call(_76,_80,col.width);
setTimeout(function(){
_77.resizing=false;
},0);
}});
});
var bb=dc.body1.add(dc.body2);
bb.unbind();
for(var _81 in _79.rowEvents){
bb.bind(_81,_79.rowEvents[_81]);
}
dc.body1.bind("mousewheel DOMMouseScroll",function(e){
var e1=e.originalEvent||window.event;
var _82=e1.wheelDelta||e1.detail*(-1);
var dg=$(e.target).closest("div.datagrid-view").children(".datagrid-f");
var dc=dg.data("datagrid").dc;
dc.body2.scrollTop(dc.body2.scrollTop()-_82);
});
dc.body2.bind("scroll",function(){
var b1=dc.view1.children("div.datagrid-body");
b1.scrollTop($(this).scrollTop());
var c1=dc.body1.children(":first");
var c2=dc.body2.children(":first");
if(c1.length&&c2.length){
var _83=c1.offset().top;
var _84=c2.offset().top;
if(_83!=_84){
b1.scrollTop(b1.scrollTop()+_83-_84);
}
}
dc.view2.children("div.datagrid-header,div.datagrid-footer")._scrollLeft($(this)._scrollLeft());
dc.body2.children("table.datagrid-btable-frozen").css("left",-$(this)._scrollLeft());
});
};
function _85(_86){
return function(e){
var tr=_87(e.target);
if(!tr){
return;
}
var _88=_89(tr);
if($.data(_88,"datagrid").resizing){
return;
}
var _8a=_8b(tr);
if(_86){
_8c(_88,_8a);
}else{
var _8d=$.data(_88,"datagrid").options;
_8d.finder.getTr(_88,_8a).removeClass("datagrid-row-over");
}
};
};
function _8e(e){
var tr=_87(e.target);
if(!tr){
return;
}
var _8f=_89(tr);
var _90=$.data(_8f,"datagrid").options;
var _91=_8b(tr);
var tt=$(e.target);
if(tt.parent().hasClass("datagrid-cell-check")){
if(_90.singleSelect&&_90.selectOnCheck){
tt._propAttr("checked",!tt.is(":checked"));
_92(_8f,_91);
}else{
if(tt.is(":checked")){
tt._propAttr("checked",false);
_92(_8f,_91);
}else{
tt._propAttr("checked",true);
_93(_8f,_91);
}
}
}else{
var row=_90.finder.getRow(_8f,_91);
var td=tt.closest("td[field]",tr);
if(td.length){
var _94=td.attr("field");
_90.onClickCell.call(_8f,_91,_94,row[_94]);
}
if(_90.singleSelect==true){
_95(_8f,_91);
}else{
if(_90.ctrlSelect){
if(e.ctrlKey){
if(tr.hasClass("datagrid-row-selected")){
_96(_8f,_91);
}else{
_95(_8f,_91);
}
}else{
if(e.shiftKey){
$(_8f).datagrid("clearSelections");
var _97=Math.min(_90.lastSelectedIndex||0,_91);
var _98=Math.max(_90.lastSelectedIndex||0,_91);
for(var i=_97;i<=_98;i++){
_95(_8f,i);
}
}else{
$(_8f).datagrid("clearSelections");
_95(_8f,_91);
_90.lastSelectedIndex=_91;
}
}
}else{
if(tr.hasClass("datagrid-row-selected")){
_96(_8f,_91);
}else{
_95(_8f,_91);
}
}
}
_90.onClickRow.call(_8f,_91,row);
}
};
function _99(e){
var tr=_87(e.target);
if(!tr){
return;
}
var _9a=_89(tr);
var _9b=$.data(_9a,"datagrid").options;
var _9c=_8b(tr);
var row=_9b.finder.getRow(_9a,_9c);
var td=$(e.target).closest("td[field]",tr);
if(td.length){
var _9d=td.attr("field");
_9b.onDblClickCell.call(_9a,_9c,_9d,row[_9d]);
}
_9b.onDblClickRow.call(_9a,_9c,row);
};
function _9e(e){
var tr=_87(e.target);
if(!tr){
return;
}
var _9f=_89(tr);
var _a0=$.data(_9f,"datagrid").options;
var _a1=_8b(tr);
var row=_a0.finder.getRow(_9f,_a1);
_a0.onRowContextMenu.call(_9f,e,_a1,row);
};
function _89(t){
return $(t).closest("div.datagrid-view").children(".datagrid-f")[0];
};
function _87(t){
var tr=$(t).closest("tr.datagrid-row");
if(tr.length&&tr.parent().length){
return tr;
}else{
return undefined;
}
};
function _8b(tr){
if(tr.attr("datagrid-row-index")){
return parseInt(tr.attr("datagrid-row-index"));
}else{
return tr.attr("node-id");
}
};
function _a2(_a3,_a4){
var _a5=$.data(_a3,"datagrid");
var _a6=_a5.options;
_a4=_a4||{};
var _a7={sortName:_a6.sortName,sortOrder:_a6.sortOrder};
if(typeof _a4=="object"){
$.extend(_a7,_a4);
}
var _a8=[];
var _a9=[];
if(_a7.sortName){
_a8=_a7.sortName.split(",");
_a9=_a7.sortOrder.split(",");
}
if(typeof _a4=="string"){
var _aa=_a4;
var col=_74(_a3,_aa);
if(!col.sortable||_a5.resizing){
return;
}
var _ab=col.order||"asc";
var pos=_2(_a8,_aa);
if(pos>=0){
var _ac=_a9[pos]=="asc"?"desc":"asc";
if(_a6.multiSort&&_ac==_ab){
_a8.splice(pos,1);
_a9.splice(pos,1);
}else{
_a9[pos]=_ac;
}
}else{
if(_a6.multiSort){
_a8.push(_aa);
_a9.push(_ab);
}else{
_a8=[_aa];
_a9=[_ab];
}
}
_a7.sortName=_a8.join(",");
_a7.sortOrder=_a9.join(",");
}
if(_a6.onBeforeSortColumn.call(_a3,_a7.sortName,_a7.sortOrder)==false){
return;
}
$.extend(_a6,_a7);
var dc=_a5.dc;
var _ad=dc.header1.add(dc.header2);
_ad.find("div.datagrid-cell").removeClass("datagrid-sort-asc datagrid-sort-desc");
for(var i=0;i<_a8.length;i++){
var col=_74(_a3,_a8[i]);
_ad.find("div."+col.cellClass).addClass("datagrid-sort-"+_a9[i]);
}
if(_a6.remoteSort){
_ae(_a3);
}else{
_af(_a3,$(_a3).datagrid("getData"));
}
_a6.onSortColumn.call(_a3,_a6.sortName,_a6.sortOrder);
};
function _b0(_b1){
var _b2=$.data(_b1,"datagrid");
var _b3=_b2.options;
var dc=_b2.dc;
var _b4=dc.view2.children("div.datagrid-header");
dc.body2.css("overflow-x","");
_b5();
_b6();
if(_b4.width()>=_b4.find("table").width()){
dc.body2.css("overflow-x","hidden");
}
function _b6(){
if(!_b3.fitColumns){
return;
}
if(!_b2.leftWidth){
_b2.leftWidth=0;
}
var _b7=0;
var cc=[];
var _b8=_73(_b1,false);
for(var i=0;i<_b8.length;i++){
var col=_74(_b1,_b8[i]);
if(_b9(col)){
_b7+=col.width;
cc.push({field:col.field,col:col,addingWidth:0});
}
}
if(!_b7){
return;
}
cc[cc.length-1].addingWidth-=_b2.leftWidth;
var _ba=_b4.children("div.datagrid-header-inner").show();
var _bb=_b4.width()-_b4.find("table").width()-_b3.scrollbarSize+_b2.leftWidth;
var _bc=_bb/_b7;
if(!_b3.showHeader){
_ba.hide();
}
for(var i=0;i0){
c.col.boxWidth+=c.addingWidth;
c.col.width+=c.addingWidth;
}
}
_b2.leftWidth=_bb;
_d1(_b1);
};
function _b5(){
var _be=false;
var _bf=_73(_b1,true).concat(_73(_b1,false));
$.map(_bf,function(_c0){
var col=_74(_b1,_c0);
if(String(col.width||"").indexOf("%")>=0){
var _c1=$.parser.parseValue("width",col.width,dc.view,_b3.scrollbarSize)-col.deltaWidth;
if(_c1>0){
col.boxWidth=_c1;
_be=true;
}
}
});
if(_be){
_d1(_b1);
}
};
function _b9(col){
if(String(col.width||"").indexOf("%")>=0){
return false;
}
if(!col.hidden&&!col.checkbox&&!col.auto&&!col.fixed){
return true;
}
};
};
function _c2(_c3,_c4){
var _c5=$.data(_c3,"datagrid");
var _c6=_c5.options;
var dc=_c5.dc;
var tmp=$("
").appendTo("body");
if(_c4){
_1c(_c4);
if(_c6.fitColumns){
_22(_c3);
_b0(_c3);
}
}else{
var _c7=false;
var _c8=_73(_c3,true).concat(_73(_c3,false));
for(var i=0;i<_c8.length;i++){
var _c4=_c8[i];
var col=_74(_c3,_c4);
if(col.auto){
_1c(_c4);
_c7=true;
}
}
if(_c7&&_c6.fitColumns){
_22(_c3);
_b0(_c3);
}
}
tmp.remove();
function _1c(_c9){
var _ca=dc.view.find("div.datagrid-header td[field=\""+_c9+"\"] div.datagrid-cell");
_ca.css("width","");
var col=$(_c3).datagrid("getColumnOption",_c9);
col.width=undefined;
col.boxWidth=undefined;
col.auto=true;
$(_c3).datagrid("fixColumnSize",_c9);
var _cb=Math.max(_cc("header"),_cc("allbody"),_cc("allfooter"))+1;
_ca._outerWidth(_cb-1);
col.width=_cb;
col.boxWidth=parseInt(_ca[0].style.width);
col.deltaWidth=_cb-col.boxWidth;
_ca.css("width","");
$(_c3).datagrid("fixColumnSize",_c9);
_c6.onResizeColumn.call(_c3,_c9,col.width);
function _cc(_cd){
var _ce=0;
if(_cd=="header"){
_ce=_cf(_ca);
}else{
_c6.finder.getTr(_c3,0,_cd).find("td[field=\""+_c9+"\"] div.datagrid-cell").each(function(){
var w=_cf($(this));
if(_ce=0){
var _ee=col.field||"";
for(var c=0;c<(col.colspan||1);c++){
for(var r=0;r<(col.rowspan||1);r++){
aa[_eb+r][_ec]=_ee;
}
_ec++;
}
}
});
}
return aa[aa.length-1];
function _ea(){
var _ef=0;
$.map(_e8[0],function(col){
_ef+=col.colspan||1;
});
return _ef;
};
function _ed(a){
for(var i=0;ib?1:-1);
};
r=_f6(r1[sn],r2[sn])*(so=="asc"?1:-1);
if(r!=0){
return r;
}
}
return r;
});
}
if(_f3.view.onBeforeRender){
_f3.view.onBeforeRender.call(_f3.view,_f0,_f1.rows);
}
_f3.view.render.call(_f3.view,_f0,dc.body2,false);
_f3.view.render.call(_f3.view,_f0,dc.body1,true);
if(_f3.showFooter){
_f3.view.renderFooter.call(_f3.view,_f0,dc.footer2,false);
_f3.view.renderFooter.call(_f3.view,_f0,dc.footer1,true);
}
if(_f3.view.onAfterRender){
_f3.view.onAfterRender.call(_f3.view,_f0);
}
_f2.ss.clean();
var _f7=$(_f0).datagrid("getPager");
if(_f7.length){
var _f8=_f7.pagination("options");
if(_f8.total!=_f1.total){
_f7.pagination("refresh",{total:_f1.total});
if(_f3.pageNumber!=_f8.pageNumber&&_f8.pageNumber>0){
_f3.pageNumber=_f8.pageNumber;
_ae(_f0);
}
}
}
_36(_f0);
dc.body2.triggerHandler("scroll");
$(_f0).datagrid("setSelectionState");
$(_f0).datagrid("autoSizeColumn");
_f3.onLoadSuccess.call(_f0,_f1);
};
function _f9(_fa){
var _fb=$.data(_fa,"datagrid");
var _fc=_fb.options;
var dc=_fb.dc;
dc.header1.add(dc.header2).find("input[type=checkbox]")._propAttr("checked",false);
if(_fc.idField){
var _fd=$.data(_fa,"treegrid")?true:false;
var _fe=_fc.onSelect;
var _ff=_fc.onCheck;
_fc.onSelect=_fc.onCheck=function(){
};
var rows=_fc.finder.getRows(_fa);
for(var i=0;i_110.height()-18){
_110.scrollTop(_110.scrollTop()+top+tr._outerHeight()-_110.height()+18);
}
}
}
};
function _8c(_112,_113){
var _114=$.data(_112,"datagrid");
var opts=_114.options;
opts.finder.getTr(_112,_114.highlightIndex).removeClass("datagrid-row-over");
opts.finder.getTr(_112,_113).addClass("datagrid-row-over");
_114.highlightIndex=_113;
};
function _95(_115,_116,_117){
var _118=$.data(_115,"datagrid");
var opts=_118.options;
var row=opts.finder.getRow(_115,_116);
if(opts.onBeforeSelect.call(_115,_116,row)==false){
return;
}
if(opts.singleSelect){
_119(_115,true);
_118.selectedRows=[];
}
if(!_117&&opts.checkOnSelect){
_92(_115,_116,true);
}
if(opts.idField){
_7(_118.selectedRows,opts.idField,row);
}
opts.finder.getTr(_115,_116).addClass("datagrid-row-selected");
opts.onSelect.call(_115,_116,row);
_10b(_115,_116);
};
function _96(_11a,_11b,_11c){
var _11d=$.data(_11a,"datagrid");
var dc=_11d.dc;
var opts=_11d.options;
var row=opts.finder.getRow(_11a,_11b);
if(opts.onBeforeUnselect.call(_11a,_11b,row)==false){
return;
}
if(!_11c&&opts.checkOnSelect){
_93(_11a,_11b,true);
}
opts.finder.getTr(_11a,_11b).removeClass("datagrid-row-selected");
if(opts.idField){
_4(_11d.selectedRows,opts.idField,row[opts.idField]);
}
opts.onUnselect.call(_11a,_11b,row);
};
function _11e(_11f,_120){
var _121=$.data(_11f,"datagrid");
var opts=_121.options;
var rows=opts.finder.getRows(_11f);
var _122=$.data(_11f,"datagrid").selectedRows;
if(!_120&&opts.checkOnSelect){
_123(_11f,true);
}
opts.finder.getTr(_11f,"","allbody").addClass("datagrid-row-selected");
if(opts.idField){
for(var _124=0;_124 ");
cell.children("table").bind("click dblclick contextmenu",function(e){
e.stopPropagation();
});
$.data(cell[0],"datagrid.editor",{actions:_15a,target:_15a.init(cell.find("td"),_159),field:_157,type:_158,oldHtml:_15b});
}
}
});
_36(_155,_156,true);
};
function _14c(_15d,_15e){
var opts=$.data(_15d,"datagrid").options;
var tr=opts.finder.getTr(_15d,_15e);
tr.children("td").each(function(){
var cell=$(this).find("div.datagrid-editable");
if(cell.length){
var ed=$.data(cell[0],"datagrid.editor");
if(ed.actions.destroy){
ed.actions.destroy(ed.target);
}
cell.html(ed.oldHtml);
$.removeData(cell[0],"datagrid.editor");
cell.removeClass("datagrid-editable");
cell.css("width","");
}
});
};
function _13f(_15f,_160){
var tr=$.data(_15f,"datagrid").options.finder.getTr(_15f,_160);
if(!tr.hasClass("datagrid-row-editing")){
return true;
}
var vbox=tr.find(".validatebox-text");
vbox.validatebox("validate");
vbox.trigger("mouseleave");
var _161=tr.find(".validatebox-invalid");
return _161.length==0;
};
function _162(_163,_164){
var _165=$.data(_163,"datagrid").insertedRows;
var _166=$.data(_163,"datagrid").deletedRows;
var _167=$.data(_163,"datagrid").updatedRows;
if(!_164){
var rows=[];
rows=rows.concat(_165);
rows=rows.concat(_166);
rows=rows.concat(_167);
return rows;
}else{
if(_164=="inserted"){
return _165;
}else{
if(_164=="deleted"){
return _166;
}else{
if(_164=="updated"){
return _167;
}
}
}
}
return [];
};
function _168(_169,_16a){
var _16b=$.data(_169,"datagrid");
var opts=_16b.options;
var data=_16b.data;
var _16c=_16b.insertedRows;
var _16d=_16b.deletedRows;
$(_169).datagrid("cancelEdit",_16a);
var row=opts.finder.getRow(_169,_16a);
if(_2(_16c,row)>=0){
_4(_16c,row);
}else{
_16d.push(row);
}
_4(_16b.selectedRows,opts.idField,row[opts.idField]);
_4(_16b.checkedRows,opts.idField,row[opts.idField]);
opts.view.deleteRow.call(opts.view,_169,_16a);
if(opts.height=="auto"){
_36(_169);
}
$(_169).datagrid("getPager").pagination("refresh",{total:data.total});
};
function _16e(_16f,_170){
var data=$.data(_16f,"datagrid").data;
var view=$.data(_16f,"datagrid").options.view;
var _171=$.data(_16f,"datagrid").insertedRows;
view.insertRow.call(view,_16f,_170.index,_170.row);
_171.push(_170.row);
$(_16f).datagrid("getPager").pagination("refresh",{total:data.total});
};
function _172(_173,row){
var data=$.data(_173,"datagrid").data;
var view=$.data(_173,"datagrid").options.view;
var _174=$.data(_173,"datagrid").insertedRows;
view.insertRow.call(view,_173,null,row);
_174.push(row);
$(_173).datagrid("getPager").pagination("refresh",{total:data.total});
};
function _175(_176){
var _177=$.data(_176,"datagrid");
var data=_177.data;
var rows=data.rows;
var _178=[];
for(var i=0;i=0){
(_185=="s"?_95:_92)(_17c,_186,true);
}
}
};
for(var i=0;i0){
_af(this,data);
_175(this);
}
}
_ae(this);
});
};
function _197(_198){
var _199={};
$.map(_198,function(name){
_199[name]=_19a(name);
});
return _199;
function _19a(name){
function isA(_19b){
return $.data($(_19b)[0],name)!=undefined;
};
return {init:function(_19c,_19d){
var _19e=$(" ").appendTo(_19c);
if(_19e[name]&&name!="text"){
return _19e[name](_19d);
}else{
return _19e;
}
},destroy:function(_19f){
if(isA(_19f,name)){
$(_19f)[name]("destroy");
}
},getValue:function(_1a0){
if(isA(_1a0,name)){
var opts=$(_1a0)[name]("options");
if(opts.multiple){
return $(_1a0)[name]("getValues").join(opts.separator);
}else{
return $(_1a0)[name]("getValue");
}
}else{
return $(_1a0).val();
}
},setValue:function(_1a1,_1a2){
if(isA(_1a1,name)){
var opts=$(_1a1)[name]("options");
if(opts.multiple){
if(_1a2){
$(_1a1)[name]("setValues",_1a2.split(opts.separator));
}else{
$(_1a1)[name]("clear");
}
}else{
$(_1a1)[name]("setValue",_1a2);
}
}else{
$(_1a1).val(_1a2);
}
},resize:function(_1a3,_1a4){
if(isA(_1a3,name)){
$(_1a3)[name]("resize",_1a4);
}else{
$(_1a3)._outerWidth(_1a4)._outerHeight(22);
}
}};
};
};
var _1a5=$.extend({},_197(["text","textbox","numberbox","numberspinner","combobox","combotree","combogrid","datebox","datetimebox","timespinner","datetimespinner"]),{textarea:{init:function(_1a6,_1a7){
var _1a8=$(" ").appendTo(_1a6);
return _1a8;
},getValue:function(_1a9){
return $(_1a9).val();
},setValue:function(_1aa,_1ab){
$(_1aa).val(_1ab);
},resize:function(_1ac,_1ad){
$(_1ac)._outerWidth(_1ad);
}},checkbox:{init:function(_1ae,_1af){
var _1b0=$(" ").appendTo(_1ae);
_1b0.val(_1af.on);
_1b0.attr("offval",_1af.off);
return _1b0;
},getValue:function(_1b1){
if($(_1b1).is(":checked")){
return $(_1b1).val();
}else{
return $(_1b1).attr("offval");
}
},setValue:function(_1b2,_1b3){
var _1b4=false;
if($(_1b2).val()==_1b3){
_1b4=true;
}
$(_1b2)._propAttr("checked",_1b4);
}},validatebox:{init:function(_1b5,_1b6){
var _1b7=$(" ").appendTo(_1b5);
_1b7.validatebox(_1b6);
return _1b7;
},destroy:function(_1b8){
$(_1b8).validatebox("destroy");
},getValue:function(_1b9){
return $(_1b9).val();
},setValue:function(_1ba,_1bb){
$(_1ba).val(_1bb);
},resize:function(_1bc,_1bd){
$(_1bc)._outerWidth(_1bd)._outerHeight(22);
}}});
$.fn.datagrid.methods={options:function(jq){
var _1be=$.data(jq[0],"datagrid").options;
var _1bf=$.data(jq[0],"datagrid").panel.panel("options");
var opts=$.extend(_1be,{width:_1bf.width,height:_1bf.height,closed:_1bf.closed,collapsed:_1bf.collapsed,minimized:_1bf.minimized,maximized:_1bf.maximized});
return opts;
},setSelectionState:function(jq){
return jq.each(function(){
_f9(this);
});
},createStyleSheet:function(jq){
return _9(jq[0]);
},getPanel:function(jq){
return $.data(jq[0],"datagrid").panel;
},getPager:function(jq){
return $.data(jq[0],"datagrid").panel.children("div.datagrid-pager");
},getColumnFields:function(jq,_1c0){
return _73(jq[0],_1c0);
},getColumnOption:function(jq,_1c1){
return _74(jq[0],_1c1);
},resize:function(jq,_1c2){
return jq.each(function(){
_1c(this,_1c2);
});
},load:function(jq,_1c3){
return jq.each(function(){
var opts=$(this).datagrid("options");
if(typeof _1c3=="string"){
opts.url=_1c3;
_1c3=null;
}
opts.pageNumber=1;
var _1c4=$(this).datagrid("getPager");
_1c4.pagination("refresh",{pageNumber:1});
_ae(this,_1c3);
});
},reload:function(jq,_1c5){
return jq.each(function(){
var opts=$(this).datagrid("options");
if(typeof _1c5=="string"){
opts.url=_1c5;
_1c5=null;
}
_ae(this,_1c5);
});
},reloadFooter:function(jq,_1c6){
return jq.each(function(){
var opts=$.data(this,"datagrid").options;
var dc=$.data(this,"datagrid").dc;
if(_1c6){
$.data(this,"datagrid").footer=_1c6;
}
if(opts.showFooter){
opts.view.renderFooter.call(opts.view,this,dc.footer2,false);
opts.view.renderFooter.call(opts.view,this,dc.footer1,true);
if(opts.view.onAfterRender){
opts.view.onAfterRender.call(opts.view,this);
}
$(this).datagrid("fixRowHeight");
}
});
},loading:function(jq){
return jq.each(function(){
var opts=$.data(this,"datagrid").options;
$(this).datagrid("getPager").pagination("loading");
if(opts.loadMsg){
var _1c7=$(this).datagrid("getPanel");
if(!_1c7.children("div.datagrid-mask").length){
$("
").appendTo(_1c7);
var msg=$("
").html(opts.loadMsg).appendTo(_1c7);
msg._outerHeight(40);
msg.css({marginLeft:(-msg.outerWidth()/2),lineHeight:(msg.height()+"px")});
}
}
});
},loaded:function(jq){
return jq.each(function(){
$(this).datagrid("getPager").pagination("loaded");
var _1c8=$(this).datagrid("getPanel");
_1c8.children("div.datagrid-mask-msg").remove();
_1c8.children("div.datagrid-mask").remove();
});
},fitColumns:function(jq){
return jq.each(function(){
_b0(this);
});
},fixColumnSize:function(jq,_1c9){
return jq.each(function(){
_d1(this,_1c9);
});
},fixRowHeight:function(jq,_1ca){
return jq.each(function(){
_36(this,_1ca);
});
},freezeRow:function(jq,_1cb){
return jq.each(function(){
_47(this,_1cb);
});
},autoSizeColumn:function(jq,_1cc){
return jq.each(function(){
_c2(this,_1cc);
});
},loadData:function(jq,data){
return jq.each(function(){
_af(this,data);
_175(this);
});
},getData:function(jq){
return $.data(jq[0],"datagrid").data;
},getRows:function(jq){
return $.data(jq[0],"datagrid").data.rows;
},getFooterRows:function(jq){
return $.data(jq[0],"datagrid").footer;
},getRowIndex:function(jq,id){
return _102(jq[0],id);
},getChecked:function(jq){
return _108(jq[0]);
},getSelected:function(jq){
var rows=_105(jq[0]);
return rows.length>0?rows[0]:null;
},getSelections:function(jq){
return _105(jq[0]);
},clearSelections:function(jq){
return jq.each(function(){
var _1cd=$.data(this,"datagrid");
var _1ce=_1cd.selectedRows;
var _1cf=_1cd.checkedRows;
_1ce.splice(0,_1ce.length);
_119(this);
if(_1cd.options.checkOnSelect){
_1cf.splice(0,_1cf.length);
}
});
},clearChecked:function(jq){
return jq.each(function(){
var _1d0=$.data(this,"datagrid");
var _1d1=_1d0.selectedRows;
var _1d2=_1d0.checkedRows;
_1d2.splice(0,_1d2.length);
_129(this);
if(_1d0.options.selectOnCheck){
_1d1.splice(0,_1d1.length);
}
});
},scrollTo:function(jq,_1d3){
return jq.each(function(){
_10b(this,_1d3);
});
},highlightRow:function(jq,_1d4){
return jq.each(function(){
_8c(this,_1d4);
_10b(this,_1d4);
});
},selectAll:function(jq){
return jq.each(function(){
_11e(this);
});
},unselectAll:function(jq){
return jq.each(function(){
_119(this);
});
},selectRow:function(jq,_1d5){
return jq.each(function(){
_95(this,_1d5);
});
},selectRecord:function(jq,id){
return jq.each(function(){
var opts=$.data(this,"datagrid").options;
if(opts.idField){
var _1d6=_102(this,id);
if(_1d6>=0){
$(this).datagrid("selectRow",_1d6);
}
}
});
},unselectRow:function(jq,_1d7){
return jq.each(function(){
_96(this,_1d7);
});
},checkRow:function(jq,_1d8){
return jq.each(function(){
_92(this,_1d8);
});
},uncheckRow:function(jq,_1d9){
return jq.each(function(){
_93(this,_1d9);
});
},checkAll:function(jq){
return jq.each(function(){
_123(this);
});
},uncheckAll:function(jq){
return jq.each(function(){
_129(this);
});
},beginEdit:function(jq,_1da){
return jq.each(function(){
_13a(this,_1da);
});
},endEdit:function(jq,_1db){
return jq.each(function(){
_140(this,_1db,false);
});
},cancelEdit:function(jq,_1dc){
return jq.each(function(){
_140(this,_1dc,true);
});
},getEditors:function(jq,_1dd){
return _14d(jq[0],_1dd);
},getEditor:function(jq,_1de){
return _151(jq[0],_1de);
},refreshRow:function(jq,_1df){
return jq.each(function(){
var opts=$.data(this,"datagrid").options;
opts.view.refreshRow.call(opts.view,this,_1df);
});
},validateRow:function(jq,_1e0){
return _13f(jq[0],_1e0);
},updateRow:function(jq,_1e1){
return jq.each(function(){
var opts=$.data(this,"datagrid").options;
opts.view.updateRow.call(opts.view,this,_1e1.index,_1e1.row);
});
},appendRow:function(jq,row){
return jq.each(function(){
_172(this,row);
});
},insertRow:function(jq,_1e2){
return jq.each(function(){
_16e(this,_1e2);
});
},deleteRow:function(jq,_1e3){
return jq.each(function(){
_168(this,_1e3);
});
},getChanges:function(jq,_1e4){
return _162(jq[0],_1e4);
},acceptChanges:function(jq){
return jq.each(function(){
_179(this);
});
},rejectChanges:function(jq){
return jq.each(function(){
_17b(this);
});
},mergeCells:function(jq,_1e5){
return jq.each(function(){
_18e(this,_1e5);
});
},showColumn:function(jq,_1e6){
return jq.each(function(){
var _1e7=$(this).datagrid("getPanel");
_1e7.find("td[field=\""+_1e6+"\"]").show();
$(this).datagrid("getColumnOption",_1e6).hidden=false;
$(this).datagrid("fitColumns");
});
},hideColumn:function(jq,_1e8){
return jq.each(function(){
var _1e9=$(this).datagrid("getPanel");
_1e9.find("td[field=\""+_1e8+"\"]").hide();
$(this).datagrid("getColumnOption",_1e8).hidden=true;
$(this).datagrid("fitColumns");
});
},sort:function(jq,_1ea){
return jq.each(function(){
_a2(this,_1ea);
});
}};
$.fn.datagrid.parseOptions=function(_1eb){
var t=$(_1eb);
return $.extend({},$.fn.panel.parseOptions(_1eb),$.parser.parseOptions(_1eb,["url","toolbar","idField","sortName","sortOrder","pagePosition","resizeHandle",{sharedStyleSheet:"boolean",fitColumns:"boolean",autoRowHeight:"boolean",striped:"boolean",nowrap:"boolean"},{rownumbers:"boolean",singleSelect:"boolean",ctrlSelect:"boolean",checkOnSelect:"boolean",selectOnCheck:"boolean"},{pagination:"boolean",pageSize:"number",pageNumber:"number"},{multiSort:"boolean",remoteSort:"boolean",showHeader:"boolean",showFooter:"boolean"},{scrollbarSize:"number"}]),{pageList:(t.attr("pageList")?eval(t.attr("pageList")):undefined),loadMsg:(t.attr("loadMsg")!=undefined?t.attr("loadMsg"):undefined),rowStyler:(t.attr("rowStyler")?eval(t.attr("rowStyler")):undefined)});
};
$.fn.datagrid.parseData=function(_1ec){
var t=$(_1ec);
var data={total:0,rows:[]};
var _1ed=t.datagrid("getColumnFields",true).concat(t.datagrid("getColumnFields",false));
t.find("tbody tr").each(function(){
data.total++;
var row={};
$.extend(row,$.parser.parseOptions(this,["iconCls","state"]));
for(var i=0;i<_1ed.length;i++){
row[_1ed[i]]=$(this).find("td:eq("+i+")").html();
}
data.rows.push(row);
});
return data;
};
var _1ee={render:function(_1ef,_1f0,_1f1){
var _1f2=$.data(_1ef,"datagrid");
var opts=_1f2.options;
var rows=_1f2.data.rows;
var _1f3=$(_1ef).datagrid("getColumnFields",_1f1);
if(_1f1){
if(!(opts.rownumbers||(opts.frozenColumns&&opts.frozenColumns.length))){
return;
}
}
var _1f4=[""];
for(var i=0;i");
_1f4.push(this.renderRow.call(this,_1ef,_1f3,_1f1,i,rows[i]));
_1f4.push("");
}
_1f4.push("
");
$(_1f0).html(_1f4.join(""));
},renderFooter:function(_1f9,_1fa,_1fb){
var opts=$.data(_1f9,"datagrid").options;
var rows=$.data(_1f9,"datagrid").footer||[];
var _1fc=$(_1f9).datagrid("getColumnFields",_1fb);
var _1fd=[""];
for(var i=0;i");
_1fd.push(this.renderRow.call(this,_1f9,_1fc,_1fb,i,rows[i]));
_1fd.push("");
}
_1fd.push("
");
$(_1fa).html(_1fd.join(""));
},renderRow:function(_1fe,_1ff,_200,_201,_202){
var opts=$.data(_1fe,"datagrid").options;
var cc=[];
if(_200&&opts.rownumbers){
var _203=_201+1;
if(opts.pagination){
_203+=(opts.pageNumber-1)*opts.pageSize;
}
cc.push(""+_203+"
");
}
for(var i=0;i<_1ff.length;i++){
var _204=_1ff[i];
var col=$(_1fe).datagrid("getColumnOption",_204);
if(col){
var _205=_202[_204];
var css=col.styler?(col.styler(_205,_202,_201)||""):"";
var _206="";
var _207="";
if(typeof css=="string"){
_207=css;
}else{
if(css){
_206=css["class"]||"";
_207=css["style"]||"";
}
}
var cls=_206?"class=\""+_206+"\"":"";
var _208=col.hidden?"style=\"display:none;"+_207+"\"":(_207?"style=\""+_207+"\"":"");
cc.push("");
var _208="";
if(!col.checkbox){
if(col.align){
_208+="text-align:"+col.align+";";
}
if(!opts.nowrap){
_208+="white-space:normal;height:auto;";
}else{
if(opts.autoRowHeight){
_208+="height:auto;";
}
}
}
cc.push("");
if(col.checkbox){
cc.push(" ");
}else{
if(col.formatter){
cc.push(col.formatter(_205,_202,_201));
}else{
cc.push(_205);
}
}
cc.push("
");
cc.push(" ");
}
}
return cc.join("");
},refreshRow:function(_209,_20a){
this.updateRow.call(this,_209,_20a,{});
},updateRow:function(_20b,_20c,row){
var opts=$.data(_20b,"datagrid").options;
var rows=$(_20b).datagrid("getRows");
var _20d=_20e(_20c);
$.extend(rows[_20c],row);
var _20f=_20e(_20c);
var _210=_20d.c;
var _211=_20f.s;
var _212="datagrid-row "+(_20c%2&&opts.striped?"datagrid-row-alt ":" ")+_20f.c;
function _20e(_213){
var css=opts.rowStyler?opts.rowStyler.call(_20b,_213,rows[_213]):"";
var _214="";
var _215="";
if(typeof css=="string"){
_215=css;
}else{
if(css){
_214=css["class"]||"";
_215=css["style"]||"";
}
}
return {c:_214,s:_215};
};
function _216(_217){
var _218=$(_20b).datagrid("getColumnFields",_217);
var tr=opts.finder.getTr(_20b,_20c,"body",(_217?1:2));
var _219=tr.find("div.datagrid-cell-check input[type=checkbox]").is(":checked");
tr.html(this.renderRow.call(this,_20b,_218,_217,_20c,rows[_20c]));
tr.attr("style",_211).removeClass(_210).addClass(_212);
if(_219){
tr.find("div.datagrid-cell-check input[type=checkbox]")._propAttr("checked",true);
}
};
_216.call(this,true);
_216.call(this,false);
$(_20b).datagrid("fixRowHeight",_20c);
},insertRow:function(_21a,_21b,row){
var _21c=$.data(_21a,"datagrid");
var opts=_21c.options;
var dc=_21c.dc;
var data=_21c.data;
if(_21b==undefined||_21b==null){
_21b=data.rows.length;
}
if(_21b>data.rows.length){
_21b=data.rows.length;
}
function _21d(_21e){
var _21f=_21e?1:2;
for(var i=data.rows.length-1;i>=_21b;i--){
var tr=opts.finder.getTr(_21a,i,"body",_21f);
tr.attr("datagrid-row-index",i+1);
tr.attr("id",_21c.rowIdPrefix+"-"+_21f+"-"+(i+1));
if(_21e&&opts.rownumbers){
var _220=i+2;
if(opts.pagination){
_220+=(opts.pageNumber-1)*opts.pageSize;
}
tr.find("div.datagrid-cell-rownumber").html(_220);
}
if(opts.striped){
tr.removeClass("datagrid-row-alt").addClass((i+1)%2?"datagrid-row-alt":"");
}
}
};
function _221(_222){
var _223=_222?1:2;
var _224=$(_21a).datagrid("getColumnFields",_222);
var _225=_21c.rowIdPrefix+"-"+_223+"-"+_21b;
var tr=" ";
if(_21b>=data.rows.length){
if(data.rows.length){
opts.finder.getTr(_21a,"","last",_223).after(tr);
}else{
var cc=_222?dc.body1:dc.body2;
cc.html("");
}
}else{
opts.finder.getTr(_21a,_21b+1,"body",_223).before(tr);
}
};
_21d.call(this,true);
_21d.call(this,false);
_221.call(this,true);
_221.call(this,false);
data.total+=1;
data.rows.splice(_21b,0,row);
this.refreshRow.call(this,_21a,_21b);
},deleteRow:function(_226,_227){
var _228=$.data(_226,"datagrid");
var opts=_228.options;
var data=_228.data;
function _229(_22a){
var _22b=_22a?1:2;
for(var i=_227+1;itable>tbody>tr[datagrid-row-index="+_236+"]");
}
return tr;
}else{
if(type=="footer"){
return (_237==1?dc.footer1:dc.footer2).find(">table>tbody>tr[datagrid-row-index="+_236+"]");
}else{
if(type=="selected"){
return (_237==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-selected");
}else{
if(type=="highlight"){
return (_237==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-over");
}else{
if(type=="checked"){
return (_237==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-checked");
}else{
if(type=="editing"){
return (_237==1?dc.body1:dc.body2).find(">table>tbody>tr.datagrid-row-editing");
}else{
if(type=="last"){
return (_237==1?dc.body1:dc.body2).find(">table>tbody>tr[datagrid-row-index]:last");
}else{
if(type=="allbody"){
return (_237==1?dc.body1:dc.body2).find(">table>tbody>tr[datagrid-row-index]");
}else{
if(type=="allfooter"){
return (_237==1?dc.footer1:dc.footer2).find(">table>tbody>tr[datagrid-row-index]");
}
}
}
}
}
}
}
}
}
}
},getRow:function(_239,p){
var _23a=(typeof p=="object")?p.attr("datagrid-row-index"):p;
return $.data(_239,"datagrid").data.rows[parseInt(_23a)];
},getRows:function(_23b){
return $(_23b).datagrid("getRows");
}},view:_1ee,onBeforeLoad:function(_23c){
},onLoadSuccess:function(){
},onLoadError:function(){
},onClickRow:function(_23d,_23e){
},onDblClickRow:function(_23f,_240){
},onClickCell:function(_241,_242,_243){
},onDblClickCell:function(_244,_245,_246){
},onBeforeSortColumn:function(sort,_247){
},onSortColumn:function(sort,_248){
},onResizeColumn:function(_249,_24a){
},onBeforeSelect:function(_24b,_24c){
},onSelect:function(_24d,_24e){
},onBeforeUnselect:function(_24f,_250){
},onUnselect:function(_251,_252){
},onSelectAll:function(rows){
},onUnselectAll:function(rows){
},onBeforeCheck:function(_253,_254){
},onCheck:function(_255,_256){
},onBeforeUncheck:function(_257,_258){
},onUncheck:function(_259,_25a){
},onCheckAll:function(rows){
},onUncheckAll:function(rows){
},onBeforeEdit:function(_25b,_25c){
},onBeginEdit:function(_25d,_25e){
},onEndEdit:function(_25f,_260,_261){
},onAfterEdit:function(_262,_263,_264){
},onCancelEdit:function(_265,_266){
},onHeaderContextMenu:function(e,_267){
},onRowContextMenu:function(e,_268,_269){
}});
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.datebox.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"datebox");
var _4=_3.options;
$(_2).addClass("datebox-f").combo($.extend({},_4,{onShowPanel:function(){
_5(this);
_6(this);
_7(this);
_18(this,$(this).datebox("getText"),true);
_4.onShowPanel.call(this);
}}));
if(!_3.calendar){
var _8=$(_2).combo("panel").css("overflow","hidden");
_8.panel("options").onBeforeDestroy=function(){
var c=$(this).find(".calendar-shared");
if(c.length){
c.insertBefore(c[0].pholder);
}
};
var cc=$("
").prependTo(_8);
if(_4.sharedCalendar){
var c=$(_4.sharedCalendar);
if(!c[0].pholder){
c[0].pholder=$("
").insertAfter(c);
}
c.addClass("calendar-shared").appendTo(cc);
if(!c.hasClass("calendar")){
c.calendar();
}
_3.calendar=c;
}else{
_3.calendar=$("
").appendTo(cc).calendar();
}
$.extend(_3.calendar.calendar("options"),{fit:true,border:false,onSelect:function(_9){
var _a=this.target;
var _b=$(_a).datebox("options");
_18(_a,_b.formatter.call(_a,_9));
$(_a).combo("hidePanel");
_b.onSelect.call(_a,_9);
}});
}
$(_2).combo("textbox").parent().addClass("datebox");
$(_2).datebox("initValue",_4.value);
function _5(_c){
var _d=$(_c).datebox("options");
var _e=$(_c).combo("panel");
_e.unbind(".datebox").bind("click.datebox",function(e){
if($(e.target).hasClass("datebox-button-a")){
var _f=parseInt($(e.target).attr("datebox-button-index"));
_d.buttons[_f].handler.call(e.target,_c);
}
});
};
function _6(_10){
var _11=$(_10).combo("panel");
if(_11.children("div.datebox-button").length){
return;
}
var _12=$("").appendTo(_11);
var tr=_12.find("tr");
for(var i=0;i<_4.buttons.length;i++){
var td=$(" ").appendTo(tr);
var btn=_4.buttons[i];
var t=$(" ").html($.isFunction(btn.text)?btn.text(_10):btn.text).appendTo(td);
t.attr("datebox-button-index",i);
}
tr.find("td").css("width",(100/_4.buttons.length)+"%");
};
function _7(_13){
var _14=$(_13).combo("panel");
var cc=_14.children("div.datebox-calendar-inner");
_14.children()._outerWidth(_14.width());
_3.calendar.appendTo(cc);
_3.calendar[0].target=_13;
if(_4.panelHeight!="auto"){
var _15=_14.height();
_14.children().not(cc).each(function(){
_15-=$(this).outerHeight();
});
cc._outerHeight(_15);
}
_3.calendar.calendar("resize");
};
};
function _16(_17,q){
_18(_17,q,true);
};
function _19(_1a){
var _1b=$.data(_1a,"datebox");
var _1c=_1b.options;
var _1d=_1b.calendar.calendar("options").current;
if(_1d){
_18(_1a,_1c.formatter.call(_1a,_1d));
$(_1a).combo("hidePanel");
}
};
function _18(_1e,_1f,_20){
var _21=$.data(_1e,"datebox");
var _22=_21.options;
var _23=_21.calendar;
$(_1e).combo("setValue",_1f);
_23.calendar("moveTo",_22.parser.call(_1e,_1f));
if(!_20){
if(_1f){
_1f=_22.formatter.call(_1e,_23.calendar("options").current);
$(_1e).combo("setValue",_1f).combo("setText",_1f);
}else{
$(_1e).combo("setText",_1f);
}
}
};
$.fn.datebox=function(_24,_25){
if(typeof _24=="string"){
var _26=$.fn.datebox.methods[_24];
if(_26){
return _26(this,_25);
}else{
return this.combo(_24,_25);
}
}
_24=_24||{};
return this.each(function(){
var _27=$.data(this,"datebox");
if(_27){
$.extend(_27.options,_24);
}else{
$.data(this,"datebox",{options:$.extend({},$.fn.datebox.defaults,$.fn.datebox.parseOptions(this),_24)});
}
_1(this);
});
};
$.fn.datebox.methods={options:function(jq){
var _28=jq.combo("options");
return $.extend($.data(jq[0],"datebox").options,{width:_28.width,height:_28.height,originalValue:_28.originalValue,disabled:_28.disabled,readonly:_28.readonly});
},cloneFrom:function(jq,_29){
return jq.each(function(){
$(this).combo("cloneFrom",_29);
$.data(this,"datebox",{options:$.extend(true,{},$(_29).datebox("options")),calendar:$(_29).datebox("calendar")});
$(this).addClass("datebox-f");
});
},calendar:function(jq){
return $.data(jq[0],"datebox").calendar;
},initValue:function(jq,_2a){
return jq.each(function(){
var _2b=$(this).datebox("options");
var _2c=_2b.value;
if(_2c){
_2c=_2b.formatter.call(this,_2b.parser.call(this,_2c));
}
$(this).combo("initValue",_2c).combo("setText",_2c);
});
},setValue:function(jq,_2d){
return jq.each(function(){
_18(this,_2d);
});
},reset:function(jq){
return jq.each(function(){
var _2e=$(this).datebox("options");
$(this).datebox("setValue",_2e.originalValue);
});
}};
$.fn.datebox.parseOptions=function(_2f){
return $.extend({},$.fn.combo.parseOptions(_2f),$.parser.parseOptions(_2f,["sharedCalendar"]));
};
$.fn.datebox.defaults=$.extend({},$.fn.combo.defaults,{panelWidth:180,panelHeight:"auto",sharedCalendar:null,keyHandler:{up:function(e){
},down:function(e){
},left:function(e){
},right:function(e){
},enter:function(e){
_19(this);
},query:function(q,e){
_16(this,q);
}},currentText:"Today",closeText:"Close",okText:"Ok",buttons:[{text:function(_30){
return $(_30).datebox("options").currentText;
},handler:function(_31){
$(_31).datebox("calendar").calendar({year:new Date().getFullYear(),month:new Date().getMonth()+1,current:new Date()});
_19(_31);
}},{text:function(_32){
return $(_32).datebox("options").closeText;
},handler:function(_33){
$(this).closest("div.combo-panel").panel("close");
}}],formatter:function(_34){
var y=_34.getFullYear();
var m=_34.getMonth()+1;
var d=_34.getDate();
return (m<10?("0"+m):m)+"/"+(d<10?("0"+d):d)+"/"+y;
},parser:function(s){
if(!s){
return new Date();
}
var ss=s.split("/");
var m=parseInt(ss[0],10);
var d=parseInt(ss[1],10);
var y=parseInt(ss[2],10);
if(!isNaN(y)&&!isNaN(m)&&!isNaN(d)){
return new Date(y,m-1,d);
}else{
return new Date();
}
},onSelect:function(_35){
}});
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.datetimebox.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"datetimebox");
var _4=_3.options;
$(_2).datebox($.extend({},_4,{onShowPanel:function(){
var _5=$(this).datetimebox("getValue");
_d(this,_5,true);
_4.onShowPanel.call(this);
},formatter:$.fn.datebox.defaults.formatter,parser:$.fn.datebox.defaults.parser}));
$(_2).removeClass("datebox-f").addClass("datetimebox-f");
$(_2).datebox("calendar").calendar({onSelect:function(_6){
_4.onSelect.call(this.target,_6);
}});
if(!_3.spinner){
var _7=$(_2).datebox("panel");
var p=$("
").insertAfter(_7.children("div.datebox-calendar-inner"));
_3.spinner=p.children("input");
}
_3.spinner.timespinner({width:_4.spinnerWidth,showSeconds:_4.showSeconds,separator:_4.timeSeparator});
$(_2).datetimebox("initValue",_4.value);
};
function _8(_9){
var c=$(_9).datetimebox("calendar");
var t=$(_9).datetimebox("spinner");
var _a=c.calendar("options").current;
return new Date(_a.getFullYear(),_a.getMonth(),_a.getDate(),t.timespinner("getHours"),t.timespinner("getMinutes"),t.timespinner("getSeconds"));
};
function _b(_c,q){
_d(_c,q,true);
};
function _e(_f){
var _10=$.data(_f,"datetimebox").options;
var _11=_8(_f);
_d(_f,_10.formatter.call(_f,_11));
$(_f).combo("hidePanel");
};
function _d(_12,_13,_14){
var _15=$.data(_12,"datetimebox").options;
$(_12).combo("setValue",_13);
if(!_14){
if(_13){
var _16=_15.parser.call(_12,_13);
$(_12).combo("setValue",_15.formatter.call(_12,_16));
$(_12).combo("setText",_15.formatter.call(_12,_16));
}else{
$(_12).combo("setText",_13);
}
}
var _16=_15.parser.call(_12,_13);
$(_12).datetimebox("calendar").calendar("moveTo",_16);
$(_12).datetimebox("spinner").timespinner("setValue",_17(_16));
function _17(_18){
function _19(_1a){
return (_1a<10?"0":"")+_1a;
};
var tt=[_19(_18.getHours()),_19(_18.getMinutes())];
if(_15.showSeconds){
tt.push(_19(_18.getSeconds()));
}
return tt.join($(_12).datetimebox("spinner").timespinner("options").separator);
};
};
$.fn.datetimebox=function(_1b,_1c){
if(typeof _1b=="string"){
var _1d=$.fn.datetimebox.methods[_1b];
if(_1d){
return _1d(this,_1c);
}else{
return this.datebox(_1b,_1c);
}
}
_1b=_1b||{};
return this.each(function(){
var _1e=$.data(this,"datetimebox");
if(_1e){
$.extend(_1e.options,_1b);
}else{
$.data(this,"datetimebox",{options:$.extend({},$.fn.datetimebox.defaults,$.fn.datetimebox.parseOptions(this),_1b)});
}
_1(this);
});
};
$.fn.datetimebox.methods={options:function(jq){
var _1f=jq.datebox("options");
return $.extend($.data(jq[0],"datetimebox").options,{originalValue:_1f.originalValue,disabled:_1f.disabled,readonly:_1f.readonly});
},cloneFrom:function(jq,_20){
return jq.each(function(){
$(this).datebox("cloneFrom",_20);
$.data(this,"datetimebox",{options:$.extend(true,{},$(_20).datetimebox("options")),spinner:$(_20).datetimebox("spinner")});
$(this).removeClass("datebox-f").addClass("datetimebox-f");
});
},spinner:function(jq){
return $.data(jq[0],"datetimebox").spinner;
},initValue:function(jq,_21){
return jq.each(function(){
var _22=$(this).datetimebox("options");
var _23=_22.value;
if(_23){
_23=_22.formatter.call(this,_22.parser.call(this,_23));
}
$(this).combo("initValue",_23).combo("setText",_23);
});
},setValue:function(jq,_24){
return jq.each(function(){
_d(this,_24);
});
},reset:function(jq){
return jq.each(function(){
var _25=$(this).datetimebox("options");
$(this).datetimebox("setValue",_25.originalValue);
});
}};
$.fn.datetimebox.parseOptions=function(_26){
var t=$(_26);
return $.extend({},$.fn.datebox.parseOptions(_26),$.parser.parseOptions(_26,["timeSeparator","spinnerWidth",{showSeconds:"boolean"}]));
};
$.fn.datetimebox.defaults=$.extend({},$.fn.datebox.defaults,{spinnerWidth:"100%",showSeconds:true,timeSeparator:":",keyHandler:{up:function(e){
},down:function(e){
},left:function(e){
},right:function(e){
},enter:function(e){
_e(this);
},query:function(q,e){
_b(this,q);
}},buttons:[{text:function(_27){
return $(_27).datetimebox("options").currentText;
},handler:function(_28){
var _29=$(_28).datetimebox("options");
_d(_28,_29.formatter.call(_28,new Date()));
$(_28).datetimebox("hidePanel");
}},{text:function(_2a){
return $(_2a).datetimebox("options").okText;
},handler:function(_2b){
_e(_2b);
}},{text:function(_2c){
return $(_2c).datetimebox("options").closeText;
},handler:function(_2d){
$(_2d).datetimebox("hidePanel");
}}],formatter:function(_2e){
var h=_2e.getHours();
var M=_2e.getMinutes();
var s=_2e.getSeconds();
function _2f(_30){
return (_30<10?"0":"")+_30;
};
var _31=$(this).datetimebox("spinner").timespinner("options").separator;
var r=$.fn.datebox.defaults.formatter(_2e)+" "+_2f(h)+_31+_2f(M);
if($(this).datetimebox("options").showSeconds){
r+=_31+_2f(s);
}
return r;
},parser:function(s){
if($.trim(s)==""){
return new Date();
}
var dt=s.split(" ");
var d=$.fn.datebox.defaults.parser(dt[0]);
if(dt.length<2){
return d;
}
var _32=$(this).datetimebox("spinner").timespinner("options").separator;
var tt=dt[1].split(_32);
var _33=parseInt(tt[0],10)||0;
var _34=parseInt(tt[1],10)||0;
var _35=parseInt(tt[2],10)||0;
return new Date(d.getFullYear(),d.getMonth(),d.getDate(),_33,_34,_35);
}});
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.datetimespinner.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"datetimespinner").options;
$(_2).addClass("datetimespinner-f").timespinner(_3);
};
$.fn.datetimespinner=function(_4,_5){
if(typeof _4=="string"){
var _6=$.fn.datetimespinner.methods[_4];
if(_6){
return _6(this,_5);
}else{
return this.timespinner(_4,_5);
}
}
_4=_4||{};
return this.each(function(){
var _7=$.data(this,"datetimespinner");
if(_7){
$.extend(_7.options,_4);
}else{
$.data(this,"datetimespinner",{options:$.extend({},$.fn.datetimespinner.defaults,$.fn.datetimespinner.parseOptions(this),_4)});
}
_1(this);
});
};
$.fn.datetimespinner.methods={options:function(jq){
var _8=jq.timespinner("options");
return $.extend($.data(jq[0],"datetimespinner").options,{width:_8.width,value:_8.value,originalValue:_8.originalValue,disabled:_8.disabled,readonly:_8.readonly});
}};
$.fn.datetimespinner.parseOptions=function(_9){
return $.extend({},$.fn.timespinner.parseOptions(_9),$.parser.parseOptions(_9,[]));
};
$.fn.datetimespinner.defaults=$.extend({},$.fn.timespinner.defaults,{formatter:function(_a){
if(!_a){
return "";
}
return $.fn.datebox.defaults.formatter.call(this,_a)+" "+$.fn.timespinner.defaults.formatter.call(this,_a);
},parser:function(s){
s=$.trim(s);
if(!s){
return null;
}
var dt=s.split(" ");
var _b=$.fn.datebox.defaults.parser.call(this,dt[0]);
if(dt.length<2){
return _b;
}
var _c=$.fn.timespinner.defaults.parser.call(this,dt[1]);
return new Date(_b.getFullYear(),_b.getMonth(),_b.getDate(),_c.getHours(),_c.getMinutes(),_c.getSeconds());
},selections:[[0,2],[3,5],[6,10],[11,13],[14,16],[17,19]]});
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.dialog.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"dialog").options;
_3.inited=false;
$(_2).window($.extend({},_3,{onResize:function(w,h){
if(_3.inited){
_a(this);
_3.onResize.call(this,w,h);
}
}}));
var _4=$(_2).window("window");
if(_3.toolbar){
if($.isArray(_3.toolbar)){
$(_2).siblings("div.dialog-toolbar").remove();
var _5=$("").appendTo(_4);
var tr=_5.find("tr");
for(var i=0;i<_3.toolbar.length;i++){
var _6=_3.toolbar[i];
if(_6=="-"){
$("
").appendTo(tr);
}else{
var td=$(" ").appendTo(tr);
var _7=$(" ").appendTo(td);
_7[0].onclick=eval(_6.handler||function(){
});
_7.linkbutton($.extend({},_6,{plain:true}));
}
}
}else{
$(_3.toolbar).addClass("dialog-toolbar").appendTo(_4);
$(_3.toolbar).show();
}
}else{
$(_2).siblings("div.dialog-toolbar").remove();
}
if(_3.buttons){
if($.isArray(_3.buttons)){
$(_2).siblings("div.dialog-button").remove();
var _8=$("
").appendTo(_4);
for(var i=0;i<_3.buttons.length;i++){
var p=_3.buttons[i];
var _9=$(" ").appendTo(_8);
if(p.handler){
_9[0].onclick=p.handler;
}
_9.linkbutton(p);
}
}else{
$(_3.buttons).addClass("dialog-button").appendTo(_4);
$(_3.buttons).show();
}
}else{
$(_2).siblings("div.dialog-button").remove();
}
_3.inited=true;
_4.show();
$(_2).window("resize");
if(_3.closed){
_4.hide();
}
};
function _a(_b,_c){
var t=$(_b);
var _d=t.dialog("options");
var _e=_d.noheader;
var tb=t.siblings(".dialog-toolbar");
var bb=t.siblings(".dialog-button");
tb.insertBefore(_b).css({position:"relative",borderTopWidth:(_e?1:0),top:(_e?tb.length:0)});
bb.insertAfter(_b).css({position:"relative",top:-1});
if(!isNaN(parseInt(_d.height))){
t._outerHeight(t._outerHeight()-tb._outerHeight()-bb._outerHeight());
}
tb.add(bb)._outerWidth(t._outerWidth());
var _f=$.data(_b,"window").shadow;
if(_f){
var cc=t.panel("panel");
_f.css({width:cc._outerWidth(),height:cc._outerHeight()});
}
};
$.fn.dialog=function(_10,_11){
if(typeof _10=="string"){
var _12=$.fn.dialog.methods[_10];
if(_12){
return _12(this,_11);
}else{
return this.window(_10,_11);
}
}
_10=_10||{};
return this.each(function(){
var _13=$.data(this,"dialog");
if(_13){
$.extend(_13.options,_10);
}else{
$.data(this,"dialog",{options:$.extend({},$.fn.dialog.defaults,$.fn.dialog.parseOptions(this),_10)});
}
_1(this);
});
};
$.fn.dialog.methods={options:function(jq){
var _14=$.data(jq[0],"dialog").options;
var _15=jq.panel("options");
$.extend(_14,{width:_15.width,height:_15.height,left:_15.left,top:_15.top,closed:_15.closed,collapsed:_15.collapsed,minimized:_15.minimized,maximized:_15.maximized});
return _14;
},dialog:function(jq){
return jq.window("window");
}};
$.fn.dialog.parseOptions=function(_16){
return $.extend({},$.fn.window.parseOptions(_16),$.parser.parseOptions(_16,["toolbar","buttons"]));
};
$.fn.dialog.defaults=$.extend({},$.fn.window.defaults,{title:"New Dialog",collapsible:false,minimizable:false,maximizable:false,resizable:false,toolbar:null,buttons:null});
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.draggable.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(e){
var _2=$.data(e.data.target,"draggable");
var _3=_2.options;
var _4=_2.proxy;
var _5=e.data;
var _6=_5.startLeft+e.pageX-_5.startX;
var _7=_5.startTop+e.pageY-_5.startY;
if(_4){
if(_4.parent()[0]==document.body){
if(_3.deltaX!=null&&_3.deltaX!=undefined){
_6=e.pageX+_3.deltaX;
}else{
_6=e.pageX-e.data.offsetWidth;
}
if(_3.deltaY!=null&&_3.deltaY!=undefined){
_7=e.pageY+_3.deltaY;
}else{
_7=e.pageY-e.data.offsetHeight;
}
}else{
if(_3.deltaX!=null&&_3.deltaX!=undefined){
_6+=e.data.offsetWidth+_3.deltaX;
}
if(_3.deltaY!=null&&_3.deltaY!=undefined){
_7+=e.data.offsetHeight+_3.deltaY;
}
}
}
if(e.data.parent!=document.body){
_6+=$(e.data.parent).scrollLeft();
_7+=$(e.data.parent).scrollTop();
}
if(_3.axis=="h"){
_5.left=_6;
}else{
if(_3.axis=="v"){
_5.top=_7;
}else{
_5.left=_6;
_5.top=_7;
}
}
};
function _8(e){
var _9=$.data(e.data.target,"draggable");
var _a=_9.options;
var _b=_9.proxy;
if(!_b){
_b=$(e.data.target);
}
_b.css({left:e.data.left,top:e.data.top});
$("body").css("cursor",_a.cursor);
};
function _c(e){
$.fn.draggable.isDragging=true;
var _d=$.data(e.data.target,"draggable");
var _e=_d.options;
var _f=$(".droppable").filter(function(){
return e.data.target!=this;
}).filter(function(){
var _10=$.data(this,"droppable").options.accept;
if(_10){
return $(_10).filter(function(){
return this==e.data.target;
}).length>0;
}else{
return true;
}
});
_d.droppables=_f;
var _11=_d.proxy;
if(!_11){
if(_e.proxy){
if(_e.proxy=="clone"){
_11=$(e.data.target).clone().insertAfter(e.data.target);
}else{
_11=_e.proxy.call(e.data.target,e.data.target);
}
_d.proxy=_11;
}else{
_11=$(e.data.target);
}
}
_11.css("position","absolute");
_1(e);
_8(e);
_e.onStartDrag.call(e.data.target,e);
return false;
};
function _12(e){
var _13=$.data(e.data.target,"draggable");
_1(e);
if(_13.options.onDrag.call(e.data.target,e)!=false){
_8(e);
}
var _14=e.data.target;
_13.droppables.each(function(){
var _15=$(this);
if(_15.droppable("options").disabled){
return;
}
var p2=_15.offset();
if(e.pageX>p2.left&&e.pageXp2.top&&e.pageYp2.left&&e.pageXp2.top&&e.pageY_2a.options.edge;
};
});
};
$.fn.draggable.methods={options:function(jq){
return $.data(jq[0],"draggable").options;
},proxy:function(jq){
return $.data(jq[0],"draggable").proxy;
},enable:function(jq){
return jq.each(function(){
$(this).draggable({disabled:false});
});
},disable:function(jq){
return jq.each(function(){
$(this).draggable({disabled:true});
});
}};
$.fn.draggable.parseOptions=function(_2f){
var t=$(_2f);
return $.extend({},$.parser.parseOptions(_2f,["cursor","handle","axis",{"revert":"boolean","deltaX":"number","deltaY":"number","edge":"number"}]),{disabled:(t.attr("disabled")?true:undefined)});
};
$.fn.draggable.defaults={proxy:null,revert:false,cursor:"move",deltaX:null,deltaY:null,handle:null,disabled:false,edge:0,axis:null,onBeforeDrag:function(e){
},onStartDrag:function(e){
},onDrag:function(e){
},onStopDrag:function(e){
}};
$.fn.draggable.isDragging=false;
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.droppable.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2){
$(_2).addClass("droppable");
$(_2).bind("_dragenter",function(e,_3){
$.data(_2,"droppable").options.onDragEnter.apply(_2,[e,_3]);
});
$(_2).bind("_dragleave",function(e,_4){
$.data(_2,"droppable").options.onDragLeave.apply(_2,[e,_4]);
});
$(_2).bind("_dragover",function(e,_5){
$.data(_2,"droppable").options.onDragOver.apply(_2,[e,_5]);
});
$(_2).bind("_drop",function(e,_6){
$.data(_2,"droppable").options.onDrop.apply(_2,[e,_6]);
});
};
$.fn.droppable=function(_7,_8){
if(typeof _7=="string"){
return $.fn.droppable.methods[_7](this,_8);
}
_7=_7||{};
return this.each(function(){
var _9=$.data(this,"droppable");
if(_9){
$.extend(_9.options,_7);
}else{
_1(this);
$.data(this,"droppable",{options:$.extend({},$.fn.droppable.defaults,$.fn.droppable.parseOptions(this),_7)});
}
});
};
$.fn.droppable.methods={options:function(jq){
return $.data(jq[0],"droppable").options;
},enable:function(jq){
return jq.each(function(){
$(this).droppable({disabled:false});
});
},disable:function(jq){
return jq.each(function(){
$(this).droppable({disabled:true});
});
}};
$.fn.droppable.parseOptions=function(_a){
var t=$(_a);
return $.extend({},$.parser.parseOptions(_a,["accept"]),{disabled:(t.attr("disabled")?true:undefined)});
};
$.fn.droppable.defaults={accept:null,disabled:false,onDragEnter:function(e,_b){
},onDragOver:function(e,_c){
},onDragLeave:function(e,_d){
},onDrop:function(e,_e){
}};
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.filebox.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
var _1=0;
function _2(_3){
var _4=$.data(_3,"filebox");
var _5=_4.options;
var id="filebox_file_id_"+(++_1);
$(_3).addClass("filebox-f").textbox($.extend({},_5,{buttonText:_5.buttonText?(""+_5.buttonText+" "):""}));
$(_3).textbox("textbox").attr("readonly","readonly");
_4.filebox=$(_3).next().addClass("filebox");
_4.filebox.find(".textbox-value").remove();
_5.oldValue="";
var _6=$(" ").appendTo(_4.filebox);
_6.attr("id",id).attr("name",$(_3).attr("textboxName")||"");
_6.change(function(){
$(_3).filebox("setText",this.value);
_5.onChange.call(_3,this.value,_5.oldValue);
_5.oldValue=this.value;
});
var _7=$(_3).filebox("button");
if(_7.length){
if(_7.linkbutton("options").disabled){
_6.attr("disabled","disabled");
}else{
_6.removeAttr("disabled");
}
}
};
$.fn.filebox=function(_8,_9){
if(typeof _8=="string"){
var _a=$.fn.filebox.methods[_8];
if(_a){
return _a(this,_9);
}else{
return this.textbox(_8,_9);
}
}
_8=_8||{};
return this.each(function(){
var _b=$.data(this,"filebox");
if(_b){
$.extend(_b.options,_8);
}else{
$.data(this,"filebox",{options:$.extend({},$.fn.filebox.defaults,$.fn.filebox.parseOptions(this),_8)});
}
_2(this);
});
};
$.fn.filebox.methods={options:function(jq){
var _c=jq.textbox("options");
return $.extend($.data(jq[0],"filebox").options,{width:_c.width,value:_c.value,originalValue:_c.originalValue,disabled:_c.disabled,readonly:_c.readonly});
}};
$.fn.filebox.parseOptions=function(_d){
return $.extend({},$.fn.textbox.parseOptions(_d),{});
};
$.fn.filebox.defaults=$.extend({},$.fn.textbox.defaults,{buttonIcon:null,buttonText:"Choose File",buttonAlign:"right",inputEvents:{}});
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.form.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2,_3){
var _4=$.data(_2,"form").options;
$.extend(_4,_3||{});
var _5=$.extend({},_4.queryParams);
if(_4.onSubmit.call(_2,_5)==false){
return;
}
$(_2).find(".textbox-text:focus").blur();
var _6="easyui_frame_"+(new Date().getTime());
var _7=$("").appendTo("body");
_7.attr("src",window.ActiveXObject?"javascript:false":"about:blank");
_7.css({position:"absolute",top:-1000,left:-1000});
_7.bind("load",cb);
_8(_5);
function _8(_9){
var _a=$(_2);
if(_4.url){
_a.attr("action",_4.url);
}
var t=_a.attr("target"),a=_a.attr("action");
_a.attr("target",_6);
var _b=$();
try{
for(var n in _9){
var _c=$(" ").val(_9[n]).appendTo(_a);
_b=_b.add(_c);
}
_d();
_a[0].submit();
}
finally{
_a.attr("action",a);
t?_a.attr("target",t):_a.removeAttr("target");
_b.remove();
}
};
function _d(){
var f=$("#"+_6);
if(!f.length){
return;
}
try{
var s=f.contents()[0].readyState;
if(s&&s.toLowerCase()=="uninitialized"){
setTimeout(_d,100);
}
}
catch(e){
cb();
}
};
var _e=10;
function cb(){
var f=$("#"+_6);
if(!f.length){
return;
}
f.unbind();
var _f="";
try{
var _10=f.contents().find("body");
_f=_10.html();
if(_f==""){
if(--_e){
setTimeout(cb,100);
return;
}
}
var ta=_10.find(">textarea");
if(ta.length){
_f=ta.val();
}else{
var pre=_10.find(">pre");
if(pre.length){
_f=pre.html();
}
}
}
catch(e){
}
_4.success(_f);
setTimeout(function(){
f.unbind();
f.remove();
},100);
};
};
function _11(_12,_13){
var _14=$.data(_12,"form").options;
if(typeof _13=="string"){
var _15={};
if(_14.onBeforeLoad.call(_12,_15)==false){
return;
}
$.ajax({url:_13,data:_15,dataType:"json",success:function(_16){
_17(_16);
},error:function(){
_14.onLoadError.apply(_12,arguments);
}});
}else{
_17(_13);
}
function _17(_18){
var _19=$(_12);
for(var _1a in _18){
var val=_18[_1a];
var rr=_1b(_1a,val);
if(!rr.length){
var _1c=_1d(_1a,val);
if(!_1c){
$("input[name=\""+_1a+"\"]",_19).val(val);
$("textarea[name=\""+_1a+"\"]",_19).val(val);
$("select[name=\""+_1a+"\"]",_19).val(val);
}
}
_1e(_1a,val);
}
_14.onLoadSuccess.call(_12,_18);
_2b(_12);
};
function _1b(_1f,val){
var rr=$(_12).find("input[name=\""+_1f+"\"][type=radio], input[name=\""+_1f+"\"][type=checkbox]");
rr._propAttr("checked",false);
rr.each(function(){
var f=$(this);
if(f.val()==String(val)||$.inArray(f.val(),$.isArray(val)?val:[val])>=0){
f._propAttr("checked",true);
}
});
return rr;
};
function _1d(_20,val){
var _21=0;
var pp=["textbox","numberbox","slider"];
for(var i=0;i=0){
_17(_13,_15,this);
}
});
};
cc.children("form").length?_14(cc.children("form")):_14(cc);
cc.append("
");
cc.bind("_resize",function(e,_16){
if($(this).hasClass("easyui-fluid")||_16){
_2(_13);
}
return false;
});
};
function _17(_18,_19,el){
_19.region=_19.region||"center";
var _1a=$.data(_18,"layout").panels;
var cc=$(_18);
var dir=_19.region;
if(_1a[dir].length){
return;
}
var pp=$(el);
if(!pp.length){
pp=$("
").appendTo(cc);
}
var _1b=$.extend({},$.fn.layout.paneldefaults,{width:(pp.length?parseInt(pp[0].style.width)||pp.outerWidth():"auto"),height:(pp.length?parseInt(pp[0].style.height)||pp.outerHeight():"auto"),doSize:false,collapsible:true,cls:("layout-panel layout-panel-"+dir),bodyCls:"layout-body",onOpen:function(){
var _1c=$(this).panel("header").children("div.panel-tool");
_1c.children("a.panel-tool-collapse").hide();
var _1d={north:"up",south:"down",east:"right",west:"left"};
if(!_1d[dir]){
return;
}
var _1e="layout-button-"+_1d[dir];
var t=_1c.children("a."+_1e);
if(!t.length){
t=$(" ").addClass(_1e).appendTo(_1c);
t.bind("click",{dir:dir},function(e){
_2b(_18,e.data.dir);
return false;
});
}
$(this).panel("options").collapsible?t.show():t.hide();
}},_19);
pp.panel(_1b);
_1a[dir]=pp;
if(pp.panel("options").split){
var _1f=pp.panel("panel");
_1f.addClass("layout-split-"+dir);
var _20="";
if(dir=="north"){
_20="s";
}
if(dir=="south"){
_20="n";
}
if(dir=="east"){
_20="w";
}
if(dir=="west"){
_20="e";
}
_1f.resizable($.extend({},{handles:_20,onStartResize:function(e){
_1=true;
if(dir=="north"||dir=="south"){
var _21=$(">div.layout-split-proxy-v",_18);
}else{
var _21=$(">div.layout-split-proxy-h",_18);
}
var top=0,_22=0,_23=0,_24=0;
var pos={display:"block"};
if(dir=="north"){
pos.top=parseInt(_1f.css("top"))+_1f.outerHeight()-_21.height();
pos.left=parseInt(_1f.css("left"));
pos.width=_1f.outerWidth();
pos.height=_21.height();
}else{
if(dir=="south"){
pos.top=parseInt(_1f.css("top"));
pos.left=parseInt(_1f.css("left"));
pos.width=_1f.outerWidth();
pos.height=_21.height();
}else{
if(dir=="east"){
pos.top=parseInt(_1f.css("top"))||0;
pos.left=parseInt(_1f.css("left"))||0;
pos.width=_21.width();
pos.height=_1f.outerHeight();
}else{
if(dir=="west"){
pos.top=parseInt(_1f.css("top"))||0;
pos.left=_1f.outerWidth()-_21.width();
pos.width=_21.width();
pos.height=_1f.outerHeight();
}
}
}
}
_21.css(pos);
$("
").css({left:0,top:0,width:cc.width(),height:cc.height()}).appendTo(cc);
},onResize:function(e){
if(dir=="north"||dir=="south"){
var _25=$(">div.layout-split-proxy-v",_18);
_25.css("top",e.pageY-$(_18).offset().top-_25.height()/2);
}else{
var _25=$(">div.layout-split-proxy-h",_18);
_25.css("left",e.pageX-$(_18).offset().left-_25.width()/2);
}
return false;
},onStopResize:function(e){
cc.children("div.layout-split-proxy-v,div.layout-split-proxy-h").hide();
pp.panel("resize",e.data);
_2(_18);
_1=false;
cc.find(">div.layout-mask").remove();
}},_19));
}
};
function _26(_27,_28){
var _29=$.data(_27,"layout").panels;
if(_29[_28].length){
_29[_28].panel("destroy");
_29[_28]=$();
var _2a="expand"+_28.substring(0,1).toUpperCase()+_28.substring(1);
if(_29[_2a]){
_29[_2a].panel("destroy");
_29[_2a]=undefined;
}
}
};
function _2b(_2c,_2d,_2e){
if(_2e==undefined){
_2e="normal";
}
var _2f=$.data(_2c,"layout").panels;
var p=_2f[_2d];
var _30=p.panel("options");
if(_30.onBeforeCollapse.call(p)==false){
return;
}
var _31="expand"+_2d.substring(0,1).toUpperCase()+_2d.substring(1);
if(!_2f[_31]){
_2f[_31]=_32(_2d);
_2f[_31].panel("panel").bind("click",function(){
p.panel("expand",false).panel("open");
var _33=_34();
p.panel("resize",_33.collapse);
p.panel("panel").animate(_33.expand,function(){
$(this).unbind(".layout").bind("mouseleave.layout",{region:_2d},function(e){
if(_1==true){
return;
}
if($("body>div.combo-p>div.combo-panel:visible").length){
return;
}
_2b(_2c,e.data.region);
});
});
return false;
});
}
var _35=_34();
if(!_a(_2f[_31])){
_2f.center.panel("resize",_35.resizeC);
}
p.panel("panel").animate(_35.collapse,_2e,function(){
p.panel("collapse",false).panel("close");
_2f[_31].panel("open").panel("resize",_35.expandP);
$(this).unbind(".layout");
});
function _32(dir){
var _36;
if(dir=="east"){
_36="layout-button-left";
}else{
if(dir=="west"){
_36="layout-button-right";
}else{
if(dir=="north"){
_36="layout-button-down";
}else{
if(dir=="south"){
_36="layout-button-up";
}
}
}
}
var p=$("
").appendTo(_2c);
p.panel($.extend({},$.fn.layout.paneldefaults,{cls:("layout-expand layout-expand-"+dir),title:" ",closed:true,minWidth:0,minHeight:0,doSize:false,tools:[{iconCls:_36,handler:function(){
_3c(_2c,_2d);
return false;
}}]}));
p.panel("panel").hover(function(){
$(this).addClass("layout-expand-over");
},function(){
$(this).removeClass("layout-expand-over");
});
return p;
};
function _34(){
var cc=$(_2c);
var _37=_2f.center.panel("options");
var _38=_30.collapsedSize;
if(_2d=="east"){
var _39=p.panel("panel")._outerWidth();
var _3a=_37.width+_39-_38;
if(_30.split||!_30.border){
_3a++;
}
return {resizeC:{width:_3a},expand:{left:cc.width()-_39},expandP:{top:_37.top,left:cc.width()-_38,width:_38,height:_37.height},collapse:{left:cc.width(),top:_37.top,height:_37.height}};
}else{
if(_2d=="west"){
var _39=p.panel("panel")._outerWidth();
var _3a=_37.width+_39-_38;
if(_30.split||!_30.border){
_3a++;
}
return {resizeC:{width:_3a,left:_38-1},expand:{left:0},expandP:{left:0,top:_37.top,width:_38,height:_37.height},collapse:{left:-_39,top:_37.top,height:_37.height}};
}else{
if(_2d=="north"){
var _3b=p.panel("panel")._outerHeight();
var hh=_37.height;
if(!_a(_2f.expandNorth)){
hh+=_3b-_38+((_30.split||!_30.border)?1:0);
}
_2f.east.add(_2f.west).add(_2f.expandEast).add(_2f.expandWest).panel("resize",{top:_38-1,height:hh});
return {resizeC:{top:_38-1,height:hh},expand:{top:0},expandP:{top:0,left:0,width:cc.width(),height:_38},collapse:{top:-_3b,width:cc.width()}};
}else{
if(_2d=="south"){
var _3b=p.panel("panel")._outerHeight();
var hh=_37.height;
if(!_a(_2f.expandSouth)){
hh+=_3b-_38+((_30.split||!_30.border)?1:0);
}
_2f.east.add(_2f.west).add(_2f.expandEast).add(_2f.expandWest).panel("resize",{height:hh});
return {resizeC:{height:hh},expand:{top:cc.height()-_3b},expandP:{top:cc.height()-_38,left:0,width:cc.width(),height:_38},collapse:{top:cc.height(),width:cc.width()}};
}
}
}
}
};
};
function _3c(_3d,_3e){
var _3f=$.data(_3d,"layout").panels;
var p=_3f[_3e];
var _40=p.panel("options");
if(_40.onBeforeExpand.call(p)==false){
return;
}
var _41="expand"+_3e.substring(0,1).toUpperCase()+_3e.substring(1);
if(_3f[_41]){
_3f[_41].panel("close");
p.panel("panel").stop(true,true);
p.panel("expand",false).panel("open");
var _42=_43();
p.panel("resize",_42.collapse);
p.panel("panel").animate(_42.expand,function(){
_2(_3d);
});
}
function _43(){
var cc=$(_3d);
var _44=_3f.center.panel("options");
if(_3e=="east"&&_3f.expandEast){
return {collapse:{left:cc.width(),top:_44.top,height:_44.height},expand:{left:cc.width()-p.panel("panel")._outerWidth()}};
}else{
if(_3e=="west"&&_3f.expandWest){
return {collapse:{left:-p.panel("panel")._outerWidth(),top:_44.top,height:_44.height},expand:{left:0}};
}else{
if(_3e=="north"&&_3f.expandNorth){
return {collapse:{top:-p.panel("panel")._outerHeight(),width:cc.width()},expand:{top:0}};
}else{
if(_3e=="south"&&_3f.expandSouth){
return {collapse:{top:cc.height(),width:cc.width()},expand:{top:cc.height()-p.panel("panel")._outerHeight()}};
}
}
}
}
};
};
function _a(pp){
if(!pp){
return false;
}
if(pp.length){
return pp.panel("panel").is(":visible");
}else{
return false;
}
};
function _45(_46){
var _47=$.data(_46,"layout").panels;
if(_47.east.length&&_47.east.panel("options").collapsed){
_2b(_46,"east",0);
}
if(_47.west.length&&_47.west.panel("options").collapsed){
_2b(_46,"west",0);
}
if(_47.north.length&&_47.north.panel("options").collapsed){
_2b(_46,"north",0);
}
if(_47.south.length&&_47.south.panel("options").collapsed){
_2b(_46,"south",0);
}
};
$.fn.layout=function(_48,_49){
if(typeof _48=="string"){
return $.fn.layout.methods[_48](this,_49);
}
_48=_48||{};
return this.each(function(){
var _4a=$.data(this,"layout");
if(_4a){
$.extend(_4a.options,_48);
}else{
var _4b=$.extend({},$.fn.layout.defaults,$.fn.layout.parseOptions(this),_48);
$.data(this,"layout",{options:_4b,panels:{center:$(),north:$(),south:$(),east:$(),west:$()}});
_12(this);
}
_2(this);
_45(this);
});
};
$.fn.layout.methods={options:function(jq){
return $.data(jq[0],"layout").options;
},resize:function(jq,_4c){
return jq.each(function(){
_2(this,_4c);
});
},panel:function(jq,_4d){
return $.data(jq[0],"layout").panels[_4d];
},collapse:function(jq,_4e){
return jq.each(function(){
_2b(this,_4e);
});
},expand:function(jq,_4f){
return jq.each(function(){
_3c(this,_4f);
});
},add:function(jq,_50){
return jq.each(function(){
_17(this,_50);
_2(this);
if($(this).layout("panel",_50.region).panel("options").collapsed){
_2b(this,_50.region,0);
}
});
},remove:function(jq,_51){
return jq.each(function(){
_26(this,_51);
_2(this);
});
}};
$.fn.layout.parseOptions=function(_52){
return $.extend({},$.parser.parseOptions(_52,[{fit:"boolean"}]));
};
$.fn.layout.defaults={fit:false};
$.fn.layout.parsePanelOptions=function(_53){
var t=$(_53);
return $.extend({},$.fn.panel.parseOptions(_53),$.parser.parseOptions(_53,["region",{split:"boolean",collpasedSize:"number",minWidth:"number",minHeight:"number",maxWidth:"number",maxHeight:"number"}]));
};
$.fn.layout.paneldefaults=$.extend({},$.fn.panel.defaults,{region:null,split:false,collapsedSize:28,minWidth:10,minHeight:10,maxWidth:10000,maxHeight:10000});
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.linkbutton.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2,_3){
var _4=$.data(_2,"linkbutton").options;
if(_3){
$.extend(_4,_3);
}
if(_4.width||_4.height||_4.fit){
var _5=$(_2);
var _6=_5.parent();
var _7=_5.is(":visible");
if(!_7){
var _8=$("
").insertBefore(_2);
var _9={position:_5.css("position"),display:_5.css("display"),left:_5.css("left")};
_5.appendTo("body");
_5.css({position:"absolute",display:"inline-block",left:-20000});
}
_5._size(_4,_6);
var _a=_5.find(".l-btn-left");
_a.css("margin-top",0);
_a.css("margin-top",parseInt((_5.height()-_a.height())/2)+"px");
if(!_7){
_5.insertAfter(_8);
_5.css(_9);
_8.remove();
}
}
};
function _b(_c){
var _d=$.data(_c,"linkbutton").options;
var t=$(_c).empty();
t.addClass("l-btn").removeClass("l-btn-plain l-btn-selected l-btn-plain-selected");
t.removeClass("l-btn-small l-btn-medium l-btn-large").addClass("l-btn-"+_d.size);
if(_d.plain){
t.addClass("l-btn-plain");
}
if(_d.selected){
t.addClass(_d.plain?"l-btn-selected l-btn-plain-selected":"l-btn-selected");
}
t.attr("group",_d.group||"");
t.attr("id",_d.id||"");
var _e=$(" ").appendTo(t);
if(_d.text){
$(" ").html(_d.text).appendTo(_e);
}else{
$(" ").appendTo(_e);
}
if(_d.iconCls){
$(" ").addClass(_d.iconCls).appendTo(_e);
_e.addClass("l-btn-icon-"+_d.iconAlign);
}
t.unbind(".linkbutton").bind("focus.linkbutton",function(){
if(!_d.disabled){
$(this).addClass("l-btn-focus");
}
}).bind("blur.linkbutton",function(){
$(this).removeClass("l-btn-focus");
}).bind("click.linkbutton",function(){
if(!_d.disabled){
if(_d.toggle){
if(_d.selected){
$(this).linkbutton("unselect");
}else{
$(this).linkbutton("select");
}
}
_d.onClick.call(this);
}
});
_f(_c,_d.selected);
_10(_c,_d.disabled);
};
function _f(_11,_12){
var _13=$.data(_11,"linkbutton").options;
if(_12){
if(_13.group){
$("a.l-btn[group=\""+_13.group+"\"]").each(function(){
var o=$(this).linkbutton("options");
if(o.toggle){
$(this).removeClass("l-btn-selected l-btn-plain-selected");
o.selected=false;
}
});
}
$(_11).addClass(_13.plain?"l-btn-selected l-btn-plain-selected":"l-btn-selected");
_13.selected=true;
}else{
if(!_13.group){
$(_11).removeClass("l-btn-selected l-btn-plain-selected");
_13.selected=false;
}
}
};
function _10(_14,_15){
var _16=$.data(_14,"linkbutton");
var _17=_16.options;
$(_14).removeClass("l-btn-disabled l-btn-plain-disabled");
if(_15){
_17.disabled=true;
var _18=$(_14).attr("href");
if(_18){
_16.href=_18;
$(_14).attr("href","javascript:void(0)");
}
if(_14.onclick){
_16.onclick=_14.onclick;
_14.onclick=null;
}
_17.plain?$(_14).addClass("l-btn-disabled l-btn-plain-disabled"):$(_14).addClass("l-btn-disabled");
}else{
_17.disabled=false;
if(_16.href){
$(_14).attr("href",_16.href);
}
if(_16.onclick){
_14.onclick=_16.onclick;
}
}
};
$.fn.linkbutton=function(_19,_1a){
if(typeof _19=="string"){
return $.fn.linkbutton.methods[_19](this,_1a);
}
_19=_19||{};
return this.each(function(){
var _1b=$.data(this,"linkbutton");
if(_1b){
$.extend(_1b.options,_19);
}else{
$.data(this,"linkbutton",{options:$.extend({},$.fn.linkbutton.defaults,$.fn.linkbutton.parseOptions(this),_19)});
$(this).removeAttr("disabled");
$(this).bind("_resize",function(e,_1c){
if($(this).hasClass("easyui-fluid")||_1c){
_1(this);
}
return false;
});
}
_b(this);
_1(this);
});
};
$.fn.linkbutton.methods={options:function(jq){
return $.data(jq[0],"linkbutton").options;
},resize:function(jq,_1d){
return jq.each(function(){
_1(this,_1d);
});
},enable:function(jq){
return jq.each(function(){
_10(this,false);
});
},disable:function(jq){
return jq.each(function(){
_10(this,true);
});
},select:function(jq){
return jq.each(function(){
_f(this,true);
});
},unselect:function(jq){
return jq.each(function(){
_f(this,false);
});
}};
$.fn.linkbutton.parseOptions=function(_1e){
var t=$(_1e);
return $.extend({},$.parser.parseOptions(_1e,["id","iconCls","iconAlign","group","size",{plain:"boolean",toggle:"boolean",selected:"boolean"}]),{disabled:(t.attr("disabled")?true:undefined),text:$.trim(t.html()),iconCls:(t.attr("icon")||t.attr("iconCls"))});
};
$.fn.linkbutton.defaults={id:null,disabled:false,toggle:false,selected:false,group:null,plain:false,text:"",iconCls:null,iconAlign:"left",size:"small",onClick:function(){
}};
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.menu.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2){
$(_2).appendTo("body");
$(_2).addClass("menu-top");
$(document).unbind(".menu").bind("mousedown.menu",function(e){
var m=$(e.target).closest("div.menu,div.combo-p");
if(m.length){
return;
}
$("body>div.menu-top:visible").menu("hide");
});
var _3=_4($(_2));
for(var i=0;i<_3.length;i++){
_5(_3[i]);
}
function _4(_6){
var _7=[];
_6.addClass("menu");
_7.push(_6);
if(!_6.hasClass("menu-content")){
_6.children("div").each(function(){
var _8=$(this).children("div");
if(_8.length){
_8.insertAfter(_2);
this.submenu=_8;
var mm=_4(_8);
_7=_7.concat(mm);
}
});
}
return _7;
};
function _5(_9){
var wh=$.parser.parseOptions(_9[0],["width","height"]);
_9[0].originalHeight=wh.height||0;
if(_9.hasClass("menu-content")){
_9[0].originalWidth=wh.width||_9._outerWidth();
}else{
_9[0].originalWidth=wh.width||0;
_9.children("div").each(function(){
var _a=$(this);
var _b=$.extend({},$.parser.parseOptions(this,["name","iconCls","href",{separator:"boolean"}]),{disabled:(_a.attr("disabled")?true:undefined)});
if(_b.separator){
_a.addClass("menu-sep");
}
if(!_a.hasClass("menu-sep")){
_a[0].itemName=_b.name||"";
_a[0].itemHref=_b.href||"";
var _c=_a.addClass("menu-item").html();
_a.empty().append($("").html(_c));
if(_b.iconCls){
$("").addClass(_b.iconCls).appendTo(_a);
}
if(_b.disabled){
_d(_2,_a[0],true);
}
if(_a[0].submenu){
$("").appendTo(_a);
}
_e(_2,_a);
}
});
$("").prependTo(_9);
}
_f(_2,_9);
_9.hide();
_10(_2,_9);
};
};
function _f(_11,_12){
var _13=$.data(_11,"menu").options;
var _14=_12.attr("style")||"";
_12.css({display:"block",left:-10000,height:"auto",overflow:"hidden"});
var el=_12[0];
var _15=el.originalWidth||0;
if(!_15){
_15=0;
_12.find("div.menu-text").each(function(){
if(_15<$(this)._outerWidth()){
_15=$(this)._outerWidth();
}
$(this).closest("div.menu-item")._outerHeight($(this)._outerHeight()+2);
});
_15+=40;
}
_15=Math.max(_15,_13.minWidth);
var _16=el.originalHeight||0;
if(!_16){
_16=_12.outerHeight();
if(_12.hasClass("menu-top")&&_13.alignTo){
var at=$(_13.alignTo);
var h1=at.offset().top-$(document).scrollTop();
var h2=$(window)._outerHeight()+$(document).scrollTop()-at.offset().top-at._outerHeight();
_16=Math.min(_16,Math.max(h1,h2));
}else{
if(_16>$(window)._outerHeight()){
_16=$(window).height();
_14+=";overflow:auto";
}else{
_14+=";overflow:hidden";
}
}
}
var _17=Math.max(el.originalHeight,_12.outerHeight())-2;
_12._outerWidth(_15)._outerHeight(_16);
_12.children("div.menu-line")._outerHeight(_17);
_14+=";width:"+el.style.width+";height:"+el.style.height;
_12.attr("style",_14);
};
function _10(_18,_19){
var _1a=$.data(_18,"menu");
_19.unbind(".menu").bind("mouseenter.menu",function(){
if(_1a.timer){
clearTimeout(_1a.timer);
_1a.timer=null;
}
}).bind("mouseleave.menu",function(){
if(_1a.options.hideOnUnhover){
_1a.timer=setTimeout(function(){
_1b(_18);
},_1a.options.duration);
}
});
};
function _e(_1c,_1d){
if(!_1d.hasClass("menu-item")){
return;
}
_1d.unbind(".menu");
_1d.bind("click.menu",function(){
if($(this).hasClass("menu-item-disabled")){
return;
}
if(!this.submenu){
_1b(_1c);
var _1e=this.itemHref;
if(_1e){
location.href=_1e;
}
}
var _1f=$(_1c).menu("getItem",this);
$.data(_1c,"menu").options.onClick.call(_1c,_1f);
}).bind("mouseenter.menu",function(e){
_1d.siblings().each(function(){
if(this.submenu){
_22(this.submenu);
}
$(this).removeClass("menu-active");
});
_1d.addClass("menu-active");
if($(this).hasClass("menu-item-disabled")){
_1d.addClass("menu-active-disabled");
return;
}
var _20=_1d[0].submenu;
if(_20){
$(_1c).menu("show",{menu:_20,parent:_1d});
}
}).bind("mouseleave.menu",function(e){
_1d.removeClass("menu-active menu-active-disabled");
var _21=_1d[0].submenu;
if(_21){
if(e.pageX>=parseInt(_21.css("left"))){
_1d.addClass("menu-active");
}else{
_22(_21);
}
}else{
_1d.removeClass("menu-active");
}
});
};
function _1b(_23){
var _24=$.data(_23,"menu");
if(_24){
if($(_23).is(":visible")){
_22($(_23));
_24.options.onHide.call(_23);
}
}
return false;
};
function _25(_26,_27){
var _28,top;
_27=_27||{};
var _29=$(_27.menu||_26);
$(_26).menu("resize",_29[0]);
if(_29.hasClass("menu-top")){
var _2a=$.data(_26,"menu").options;
$.extend(_2a,_27);
_28=_2a.left;
top=_2a.top;
if(_2a.alignTo){
var at=$(_2a.alignTo);
_28=at.offset().left;
top=at.offset().top+at._outerHeight();
if(_2a.align=="right"){
_28+=at.outerWidth()-_29.outerWidth();
}
}
if(_28+_29.outerWidth()>$(window)._outerWidth()+$(document)._scrollLeft()){
_28=$(window)._outerWidth()+$(document).scrollLeft()-_29.outerWidth()-5;
}
if(_28<0){
_28=0;
}
top=_2b(top,_2a.alignTo);
}else{
var _2c=_27.parent;
_28=_2c.offset().left+_2c.outerWidth()-2;
if(_28+_29.outerWidth()+5>$(window)._outerWidth()+$(document).scrollLeft()){
_28=_2c.offset().left-_29.outerWidth()+2;
}
top=_2b(_2c.offset().top-3);
}
function _2b(top,_2d){
if(top+_29.outerHeight()>$(window)._outerHeight()+$(document).scrollTop()){
if(_2d){
top=$(_2d).offset().top-_29._outerHeight();
}else{
top=$(window)._outerHeight()+$(document).scrollTop()-_29.outerHeight();
}
}
if(top<0){
top=0;
}
return top;
};
_29.css({left:_28,top:top});
_29.show(0,function(){
if(!_29[0].shadow){
_29[0].shadow=$("
").insertAfter(_29);
}
_29[0].shadow.css({display:"block",zIndex:$.fn.menu.defaults.zIndex++,left:_29.css("left"),top:_29.css("top"),width:_29.outerWidth(),height:_29.outerHeight()});
_29.css("z-index",$.fn.menu.defaults.zIndex++);
if(_29.hasClass("menu-top")){
$.data(_29[0],"menu").options.onShow.call(_29[0]);
}
});
};
function _22(_2e){
if(!_2e){
return;
}
_2f(_2e);
_2e.find("div.menu-item").each(function(){
if(this.submenu){
_22(this.submenu);
}
$(this).removeClass("menu-active");
});
function _2f(m){
m.stop(true,true);
if(m[0].shadow){
m[0].shadow.hide();
}
m.hide();
};
};
function _30(_31,_32){
var _33=null;
var tmp=$("
");
function _34(_35){
_35.children("div.menu-item").each(function(){
var _36=$(_31).menu("getItem",this);
var s=tmp.empty().html(_36.text).text();
if(_32==$.trim(s)){
_33=_36;
}else{
if(this.submenu&&!_33){
_34(this.submenu);
}
}
});
};
_34($(_31));
tmp.remove();
return _33;
};
function _d(_37,_38,_39){
var t=$(_38);
if(!t.hasClass("menu-item")){
return;
}
if(_39){
t.addClass("menu-item-disabled");
if(_38.onclick){
_38.onclick1=_38.onclick;
_38.onclick=null;
}
}else{
t.removeClass("menu-item-disabled");
if(_38.onclick1){
_38.onclick=_38.onclick1;
_38.onclick1=null;
}
}
};
function _3a(_3b,_3c){
var _3d=$(_3b);
if(_3c.parent){
if(!_3c.parent.submenu){
var _3e=$("").appendTo("body");
_3e.hide();
_3c.parent.submenu=_3e;
$("").appendTo(_3c.parent);
}
_3d=_3c.parent.submenu;
}
if(_3c.separator){
var _3f=$("").appendTo(_3d);
}else{
var _3f=$("").appendTo(_3d);
$("").html(_3c.text).appendTo(_3f);
}
if(_3c.iconCls){
$("").addClass(_3c.iconCls).appendTo(_3f);
}
if(_3c.id){
_3f.attr("id",_3c.id);
}
if(_3c.name){
_3f[0].itemName=_3c.name;
}
if(_3c.href){
_3f[0].itemHref=_3c.href;
}
if(_3c.onclick){
if(typeof _3c.onclick=="string"){
_3f.attr("onclick",_3c.onclick);
}else{
_3f[0].onclick=eval(_3c.onclick);
}
}
if(_3c.handler){
_3f[0].onclick=eval(_3c.handler);
}
if(_3c.disabled){
_d(_3b,_3f[0],true);
}
_e(_3b,_3f);
_10(_3b,_3d);
_f(_3b,_3d);
};
function _40(_41,_42){
function _43(el){
if(el.submenu){
el.submenu.children("div.menu-item").each(function(){
_43(this);
});
var _44=el.submenu[0].shadow;
if(_44){
_44.remove();
}
el.submenu.remove();
}
$(el).remove();
};
var _45=$(_42).parent();
_43(_42);
_f(_41,_45);
};
function _46(_47,_48,_49){
var _4a=$(_48).parent();
if(_49){
$(_48).show();
}else{
$(_48).hide();
}
_f(_47,_4a);
};
function _4b(_4c){
$(_4c).children("div.menu-item").each(function(){
_40(_4c,this);
});
if(_4c.shadow){
_4c.shadow.remove();
}
$(_4c).remove();
};
$.fn.menu=function(_4d,_4e){
if(typeof _4d=="string"){
return $.fn.menu.methods[_4d](this,_4e);
}
_4d=_4d||{};
return this.each(function(){
var _4f=$.data(this,"menu");
if(_4f){
$.extend(_4f.options,_4d);
}else{
_4f=$.data(this,"menu",{options:$.extend({},$.fn.menu.defaults,$.fn.menu.parseOptions(this),_4d)});
_1(this);
}
$(this).css({left:_4f.options.left,top:_4f.options.top});
});
};
$.fn.menu.methods={options:function(jq){
return $.data(jq[0],"menu").options;
},show:function(jq,pos){
return jq.each(function(){
_25(this,pos);
});
},hide:function(jq){
return jq.each(function(){
_1b(this);
});
},destroy:function(jq){
return jq.each(function(){
_4b(this);
});
},setText:function(jq,_50){
return jq.each(function(){
$(_50.target).children("div.menu-text").html(_50.text);
});
},setIcon:function(jq,_51){
return jq.each(function(){
$(_51.target).children("div.menu-icon").remove();
if(_51.iconCls){
$("").addClass(_51.iconCls).appendTo(_51.target);
}
});
},getItem:function(jq,_52){
var t=$(_52);
var _53={target:_52,id:t.attr("id"),text:$.trim(t.children("div.menu-text").html()),disabled:t.hasClass("menu-item-disabled"),name:_52.itemName,href:_52.itemHref,onclick:_52.onclick};
var _54=t.children("div.menu-icon");
if(_54.length){
var cc=[];
var aa=_54.attr("class").split(" ");
for(var i=0;i").addClass(_3.cls.arrow).appendTo(_5);
$(" ").addClass("m-btn-line").appendTo(_5);
if(_3.menu){
$(_3.menu).menu({duration:_3.duration});
var _6=$(_3.menu).menu("options");
var _7=_6.onShow;
var _8=_6.onHide;
$.extend(_6,{onShow:function(){
var _9=$(this).menu("options");
var _a=$(_9.alignTo);
var _b=_a.menubutton("options");
_a.addClass((_b.plain==true)?_b.cls.btn2:_b.cls.btn1);
_7.call(this);
},onHide:function(){
var _c=$(this).menu("options");
var _d=$(_c.alignTo);
var _e=_d.menubutton("options");
_d.removeClass((_e.plain==true)?_e.cls.btn2:_e.cls.btn1);
_8.call(this);
}});
}
};
function _f(_10){
var _11=$.data(_10,"menubutton").options;
var btn=$(_10);
var t=btn.find("."+_11.cls.trigger);
if(!t.length){
t=btn;
}
t.unbind(".menubutton");
var _12=null;
t.bind("click.menubutton",function(){
if(!_13()){
_14(_10);
return false;
}
}).bind("mouseenter.menubutton",function(){
if(!_13()){
_12=setTimeout(function(){
_14(_10);
},_11.duration);
return false;
}
}).bind("mouseleave.menubutton",function(){
if(_12){
clearTimeout(_12);
}
$(_11.menu).triggerHandler("mouseleave");
});
function _13(){
return $(_10).linkbutton("options").disabled;
};
};
function _14(_15){
var _16=$(_15).menubutton("options");
if(_16.disabled||!_16.menu){
return;
}
$("body>div.menu-top").menu("hide");
var btn=$(_15);
var mm=$(_16.menu);
if(mm.length){
mm.menu("options").alignTo=btn;
mm.menu("show",{alignTo:btn,align:_16.menuAlign});
}
btn.blur();
};
$.fn.menubutton=function(_17,_18){
if(typeof _17=="string"){
var _19=$.fn.menubutton.methods[_17];
if(_19){
return _19(this,_18);
}else{
return this.linkbutton(_17,_18);
}
}
_17=_17||{};
return this.each(function(){
var _1a=$.data(this,"menubutton");
if(_1a){
$.extend(_1a.options,_17);
}else{
$.data(this,"menubutton",{options:$.extend({},$.fn.menubutton.defaults,$.fn.menubutton.parseOptions(this),_17)});
$(this).removeAttr("disabled");
}
_1(this);
_f(this);
});
};
$.fn.menubutton.methods={options:function(jq){
var _1b=jq.linkbutton("options");
return $.extend($.data(jq[0],"menubutton").options,{toggle:_1b.toggle,selected:_1b.selected,disabled:_1b.disabled});
},destroy:function(jq){
return jq.each(function(){
var _1c=$(this).menubutton("options");
if(_1c.menu){
$(_1c.menu).menu("destroy");
}
$(this).remove();
});
}};
$.fn.menubutton.parseOptions=function(_1d){
var t=$(_1d);
return $.extend({},$.fn.linkbutton.parseOptions(_1d),$.parser.parseOptions(_1d,["menu",{plain:"boolean",duration:"number"}]));
};
$.fn.menubutton.defaults=$.extend({},$.fn.linkbutton.defaults,{plain:true,menu:null,menuAlign:"left",duration:100,cls:{btn1:"m-btn-active",btn2:"m-btn-plain-active",arrow:"m-btn-downarrow",trigger:"m-btn"}});
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.messager.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(el,_2,_3,_4){
var _5=$(el).window("window");
if(!_5){
return;
}
switch(_2){
case null:
_5.show();
break;
case "slide":
_5.slideDown(_3);
break;
case "fade":
_5.fadeIn(_3);
break;
case "show":
_5.show(_3);
break;
}
var _6=null;
if(_4>0){
_6=setTimeout(function(){
_7(el,_2,_3);
},_4);
}
_5.hover(function(){
if(_6){
clearTimeout(_6);
}
},function(){
if(_4>0){
_6=setTimeout(function(){
_7(el,_2,_3);
},_4);
}
});
};
function _7(el,_8,_9){
if(el.locked==true){
return;
}
el.locked=true;
var _a=$(el).window("window");
if(!_a){
return;
}
switch(_8){
case null:
_a.hide();
break;
case "slide":
_a.slideUp(_9);
break;
case "fade":
_a.fadeOut(_9);
break;
case "show":
_a.hide(_9);
break;
}
setTimeout(function(){
$(el).window("destroy");
},_9);
};
function _b(_c){
var _d=$.extend({},$.fn.window.defaults,{collapsible:false,minimizable:false,maximizable:false,shadow:false,draggable:false,resizable:false,closed:true,style:{left:"",top:"",right:0,zIndex:$.fn.window.defaults.zIndex++,bottom:-document.body.scrollTop-document.documentElement.scrollTop},onBeforeOpen:function(){
_1(this,_d.showType,_d.showSpeed,_d.timeout);
return false;
},onBeforeClose:function(){
_7(this,_d.showType,_d.showSpeed);
return false;
}},{title:"",width:250,height:100,showType:"slide",showSpeed:600,msg:"",timeout:4000},_c);
_d.style.zIndex=$.fn.window.defaults.zIndex++;
var _e=$("
").html(_d.msg).appendTo("body");
_e.window(_d);
_e.window("window").css(_d.style);
_e.window("open");
return _e;
};
function _f(_10,_11,_12){
var win=$("
").appendTo("body");
win.append(_11);
if(_12){
var tb=$("
").appendTo(win);
for(var _13 in _12){
$(" ").attr("href","javascript:void(0)").text(_13).css("margin-left",10).bind("click",eval(_12[_13])).appendTo(tb).linkbutton();
}
}
win.window({title:_10,noheader:(_10?false:true),width:300,height:"auto",modal:true,collapsible:false,minimizable:false,maximizable:false,resizable:false,onClose:function(){
setTimeout(function(){
win.window("destroy");
},100);
}});
win.window("window").addClass("messager-window");
win.children("div.messager-button").children("a:first").focus();
return win;
};
$.messager={show:function(_14){
return _b(_14);
},alert:function(_15,msg,_16,fn){
var _17=""+msg+"
";
switch(_16){
case "error":
_17="
"+_17;
break;
case "info":
_17="
"+_17;
break;
case "question":
_17="
"+_17;
break;
case "warning":
_17="
"+_17;
break;
}
_17+="";
var _18={};
_18[$.messager.defaults.ok]=function(){
win.window("close");
if(fn){
fn();
return false;
}
};
var win=_f(_15,_17,_18);
return win;
},confirm:function(_19,msg,fn){
var _1a="
"+"
"+msg+"
"+"
";
var _1b={};
_1b[$.messager.defaults.ok]=function(){
win.window("close");
if(fn){
fn(true);
return false;
}
};
_1b[$.messager.defaults.cancel]=function(){
win.window("close");
if(fn){
fn(false);
return false;
}
};
var win=_f(_19,_1a,_1b);
return win;
},prompt:function(_1c,msg,fn){
var _1d="
"+"
"+msg+"
"+"
"+"
"+"
";
var _1e={};
_1e[$.messager.defaults.ok]=function(){
win.window("close");
if(fn){
fn($(".messager-input",win).val());
return false;
}
};
_1e[$.messager.defaults.cancel]=function(){
win.window("close");
if(fn){
fn();
return false;
}
};
var win=_f(_1c,_1d,_1e);
win.children("input.messager-input").focus();
return win;
},progress:function(_1f){
var _20={bar:function(){
return $("body>div.messager-window").find("div.messager-p-bar");
},close:function(){
var win=$("body>div.messager-window>div.messager-body:has(div.messager-progress)");
if(win.length){
win.window("close");
}
}};
if(typeof _1f=="string"){
var _21=_20[_1f];
return _21();
}
var _22=$.extend({title:"",msg:"",text:undefined,interval:300},_1f||{});
var _23="
";
var win=_f(_22.title,_23,null);
win.find("div.messager-p-msg").html(_22.msg);
var bar=win.find("div.messager-p-bar");
bar.progressbar({text:_22.text});
win.window({closable:false,onClose:function(){
if(this.timer){
clearInterval(this.timer);
}
$(this).window("destroy");
}});
if(_22.interval){
win[0].timer=setInterval(function(){
var v=bar.progressbar("getValue");
v+=10;
if(v>100){
v=0;
}
bar.progressbar("setValue",v);
},_22.interval);
}
return win;
}};
$.messager.defaults={ok:"Ok",cancel:"Cancel"};
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.numberbox.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"numberbox");
var _4=_3.options;
$(_2).addClass("numberbox-f").textbox(_4);
$(_2).textbox("textbox").css({imeMode:"disabled"});
$(_2).attr("numberboxName",$(_2).attr("textboxName"));
_3.numberbox=$(_2).next();
_3.numberbox.addClass("numberbox");
var _5=_4.parser.call(_2,_4.value);
var _6=_4.formatter.call(_2,_5);
$(_2).numberbox("initValue",_5).numberbox("setText",_6);
};
function _7(_8,_9){
var _a=$.data(_8,"numberbox");
var _b=_a.options;
var _9=_b.parser.call(_8,_9);
var _c=_b.formatter.call(_8,_9);
_b.value=_9;
$(_8).textbox("setValue",_9).textbox("setText",_c);
};
$.fn.numberbox=function(_d,_e){
if(typeof _d=="string"){
var _f=$.fn.numberbox.methods[_d];
if(_f){
return _f(this,_e);
}else{
return this.textbox(_d,_e);
}
}
_d=_d||{};
return this.each(function(){
var _10=$.data(this,"numberbox");
if(_10){
$.extend(_10.options,_d);
}else{
_10=$.data(this,"numberbox",{options:$.extend({},$.fn.numberbox.defaults,$.fn.numberbox.parseOptions(this),_d)});
}
_1(this);
});
};
$.fn.numberbox.methods={options:function(jq){
var _11=jq.data("textbox")?jq.textbox("options"):{};
return $.extend($.data(jq[0],"numberbox").options,{width:_11.width,originalValue:_11.originalValue,disabled:_11.disabled,readonly:_11.readonly});
},fix:function(jq){
return jq.each(function(){
$(this).numberbox("setValue",$(this).numberbox("getText"));
});
},setValue:function(jq,_12){
return jq.each(function(){
_7(this,_12);
});
},clear:function(jq){
return jq.each(function(){
$(this).textbox("clear");
$(this).numberbox("options").value="";
});
},reset:function(jq){
return jq.each(function(){
$(this).textbox("reset");
$(this).numberbox("setValue",$(this).numberbox("getValue"));
});
}};
$.fn.numberbox.parseOptions=function(_13){
var t=$(_13);
return $.extend({},$.fn.textbox.parseOptions(_13),$.parser.parseOptions(_13,["decimalSeparator","groupSeparator","suffix",{min:"number",max:"number",precision:"number"}]),{prefix:(t.attr("prefix")?t.attr("prefix"):undefined)});
};
$.fn.numberbox.defaults=$.extend({},$.fn.textbox.defaults,{inputEvents:{keypress:function(e){
var _14=e.data.target;
var _15=$(_14).numberbox("options");
return _15.filter.call(_14,e);
},blur:function(e){
var _16=e.data.target;
$(_16).numberbox("setValue",$(_16).numberbox("getText"));
},keydown:function(e){
if(e.keyCode==13){
var _17=e.data.target;
$(_17).numberbox("setValue",$(_17).numberbox("getText"));
}
}},min:null,max:null,precision:0,decimalSeparator:".",groupSeparator:"",prefix:"",suffix:"",filter:function(e){
var _18=$(this).numberbox("options");
var s=$(this).numberbox("getText");
if(e.which==13){
return true;
}
if(e.which==45){
return (s.indexOf("-")==-1?true:false);
}
var c=String.fromCharCode(e.which);
if(c==_18.decimalSeparator){
return (s.indexOf(c)==-1?true:false);
}else{
if(c==_18.groupSeparator){
return true;
}else{
if((e.which>=48&&e.which<=57&&e.ctrlKey==false&&e.shiftKey==false)||e.which==0||e.which==8){
return true;
}else{
if(e.ctrlKey==true&&(e.which==99||e.which==118)){
return true;
}else{
return false;
}
}
}
}
},formatter:function(_19){
if(!_19){
return _19;
}
_19=_19+"";
var _1a=$(this).numberbox("options");
var s1=_19,s2="";
var _1b=_19.indexOf(".");
if(_1b>=0){
s1=_19.substring(0,_1b);
s2=_19.substring(_1b+1,_19.length);
}
if(_1a.groupSeparator){
var p=/(\d+)(\d{3})/;
while(p.test(s1)){
s1=s1.replace(p,"$1"+_1a.groupSeparator+"$2");
}
}
if(s2){
return _1a.prefix+s1+_1a.decimalSeparator+s2+_1a.suffix;
}else{
return _1a.prefix+s1+_1a.suffix;
}
},parser:function(s){
s=s+"";
var _1c=$(this).numberbox("options");
if(parseFloat(s)!=s){
if(_1c.prefix){
s=$.trim(s.replace(new RegExp("\\"+$.trim(_1c.prefix),"g"),""));
}
if(_1c.suffix){
s=$.trim(s.replace(new RegExp("\\"+$.trim(_1c.suffix),"g"),""));
}
if(_1c.groupSeparator){
s=$.trim(s.replace(new RegExp("\\"+_1c.groupSeparator,"g"),""));
}
if(_1c.decimalSeparator){
s=$.trim(s.replace(new RegExp("\\"+_1c.decimalSeparator,"g"),"."));
}
s=s.replace(/\s/g,"");
}
var val=parseFloat(s).toFixed(_1c.precision);
if(isNaN(val)){
val="";
}else{
if(typeof (_1c.min)=="number"&&val<_1c.min){
val=_1c.min.toFixed(_1c.precision);
}else{
if(typeof (_1c.max)=="number"&&val>_1c.max){
val=_1c.max.toFixed(_1c.precision);
}
}
}
return val;
}});
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.numberspinner.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2){
$(_2).addClass("numberspinner-f");
var _3=$.data(_2,"numberspinner").options;
$(_2).numberbox(_3).spinner(_3);
$(_2).numberbox("setValue",_3.value);
};
function _4(_5,_6){
var _7=$.data(_5,"numberspinner").options;
var v=parseFloat($(_5).numberbox("getValue")||_7.value)||0;
if(_6){
v-=_7.increment;
}else{
v+=_7.increment;
}
$(_5).numberbox("setValue",v);
};
$.fn.numberspinner=function(_8,_9){
if(typeof _8=="string"){
var _a=$.fn.numberspinner.methods[_8];
if(_a){
return _a(this,_9);
}else{
return this.numberbox(_8,_9);
}
}
_8=_8||{};
return this.each(function(){
var _b=$.data(this,"numberspinner");
if(_b){
$.extend(_b.options,_8);
}else{
$.data(this,"numberspinner",{options:$.extend({},$.fn.numberspinner.defaults,$.fn.numberspinner.parseOptions(this),_8)});
}
_1(this);
});
};
$.fn.numberspinner.methods={options:function(jq){
var _c=jq.numberbox("options");
return $.extend($.data(jq[0],"numberspinner").options,{width:_c.width,value:_c.value,originalValue:_c.originalValue,disabled:_c.disabled,readonly:_c.readonly});
}};
$.fn.numberspinner.parseOptions=function(_d){
return $.extend({},$.fn.spinner.parseOptions(_d),$.fn.numberbox.parseOptions(_d),{});
};
$.fn.numberspinner.defaults=$.extend({},$.fn.spinner.defaults,$.fn.numberbox.defaults,{spin:function(_e){
_4(this,_e);
}});
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/plugins/jquery.pagination.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"pagination");
var _4=_3.options;
var bb=_3.bb={};
var _5=$(_2).addClass("pagination").html("
");
var tr=_5.find("tr");
var aa=$.extend([],_4.layout);
if(!_4.showPageList){
_6(aa,"list");
}
if(!_4.showRefresh){
_6(aa,"refresh");
}
if(aa[0]=="sep"){
aa.shift();
}
if(aa[aa.length-1]=="sep"){
aa.pop();
}
for(var _7=0;_7
').appendTo(container);
panels.push(pp);
createPanel(container, pp, options);
setSize(container);
opts.onAdd.call(container, options.title, panels.length-1);
if (options.selected){
select(container, panels.length-1);
}
}
function remove(container, which){
var state = $.data(container, 'accordion');
var opts = state.options;
var panels = state.panels;
stopAnimate(container);
var panel = getPanel(container, which);
var title = panel.panel('options').title;
var index = getPanelIndex(container, panel);
if (!panel){return}
if (opts.onBeforeRemove.call(container, title, index) == false){return}
panels.splice(index, 1);
panel.panel('destroy');
if (panels.length){
setSize(container);
var curr = getSelected(container);
if (!curr){
select(container, 0);
}
}
opts.onRemove.call(container, title, index);
}
$.fn.accordion = function(options, param){
if (typeof options == 'string'){
return $.fn.accordion.methods[options](this, param);
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'accordion');
if (state){
$.extend(state.options, options);
} else {
$.data(this, 'accordion', {
options: $.extend({}, $.fn.accordion.defaults, $.fn.accordion.parseOptions(this), options),
accordion: $(this).addClass('accordion'),
panels: []
});
init(this);
}
setProperties(this);
setSize(this);
doFirstSelect(this);
});
};
$.fn.accordion.methods = {
options: function(jq){
return $.data(jq[0], 'accordion').options;
},
panels: function(jq){
return $.data(jq[0], 'accordion').panels;
},
resize: function(jq, param){
return jq.each(function(){
setSize(this, param);
});
},
getSelections: function(jq){
return getSelections(jq[0]);
},
getSelected: function(jq){
return getSelected(jq[0]);
},
getPanel: function(jq, which){
return getPanel(jq[0], which);
},
getPanelIndex: function(jq, panel){
return getPanelIndex(jq[0], panel);
},
select: function(jq, which){
return jq.each(function(){
select(this, which);
});
},
unselect: function(jq, which){
return jq.each(function(){
unselect(this, which);
});
},
add: function(jq, options){
return jq.each(function(){
add(this, options);
});
},
remove: function(jq, which){
return jq.each(function(){
remove(this, which);
});
}
};
$.fn.accordion.parseOptions = function(target){
var t = $(target);
return $.extend({}, $.parser.parseOptions(target, [
'width','height',
{fit:'boolean',border:'boolean',animate:'boolean',multiple:'boolean',selected:'number'}
]));
};
$.fn.accordion.defaults = {
width: 'auto',
height: 'auto',
fit: false,
border: true,
animate: true,
multiple: false,
selected: 0,
onSelect: function(title, index){},
onUnselect: function(title, index){},
onAdd: function(title, index){},
onBeforeRemove: function(title, index){},
onRemove: function(title, index){}
};
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.calendar.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
/**
* calendar - jQuery EasyUI
*
*/
(function($){
function setSize(target, param){
var opts = $.data(target, 'calendar').options;
var t = $(target);
if (param){
$.extend(opts, {
width: param.width,
height: param.height
});
}
t._size(opts, t.parent());
t.find('.calendar-body')._outerHeight(t.height() - t.find('.calendar-header')._outerHeight());
if (t.find('.calendar-menu').is(':visible')){
showSelectMenus(target);
}
}
function init(target){
$(target).addClass('calendar').html(
'' +
'
' +
'' +
'
'
);
$(target).bind('_resize', function(e,force){
if ($(this).hasClass('easyui-fluid') || force){
setSize(target);
}
return false;
});
}
function bindEvents(target){
var opts = $.data(target, 'calendar').options;
var menu = $(target).find('.calendar-menu');
menu.find('.calendar-menu-year').unbind('.calendar').bind('keypress.calendar', function(e){
if (e.keyCode == 13){
setDate(true);
}
});
$(target).unbind('.calendar').bind('mouseover.calendar', function(e){
var t = toTarget(e.target);
if (t.hasClass('calendar-nav') || t.hasClass('calendar-text') || (t.hasClass('calendar-day') && !t.hasClass('calendar-disabled'))){
t.addClass('calendar-nav-hover');
}
}).bind('mouseout.calendar', function(e){
var t = toTarget(e.target);
if (t.hasClass('calendar-nav') || t.hasClass('calendar-text') || (t.hasClass('calendar-day') && !t.hasClass('calendar-disabled'))){
t.removeClass('calendar-nav-hover');
}
}).bind('click.calendar', function(e){
var t = toTarget(e.target);
if (t.hasClass('calendar-menu-next') || t.hasClass('calendar-nextyear')){
showYear(1);
} else if (t.hasClass('calendar-menu-prev') || t.hasClass('calendar-prevyear')){
showYear(-1);
} else if (t.hasClass('calendar-menu-month')){
menu.find('.calendar-selected').removeClass('calendar-selected');
t.addClass('calendar-selected');
setDate(true);
} else if (t.hasClass('calendar-prevmonth')){
showMonth(-1);
} else if (t.hasClass('calendar-nextmonth')){
showMonth(1);
} else if (t.hasClass('calendar-text')){
if (menu.is(':visible')){
menu.hide();
} else {
showSelectMenus(target);
}
} else if (t.hasClass('calendar-day')){
if (t.hasClass('calendar-disabled')){return}
var oldValue = opts.current;
t.closest('div.calendar-body').find('.calendar-selected').removeClass('calendar-selected');
t.addClass('calendar-selected');
var parts = t.attr('abbr').split(',');
var y = parseInt(parts[0]);
var m = parseInt(parts[1]);
var d = parseInt(parts[2]);
opts.current = new Date(y, m-1, d);
opts.onSelect.call(target, opts.current);
if (!oldValue || oldValue.getTime() != opts.current.getTime()){
opts.onChange.call(target, opts.current, oldValue);
}
if (opts.year != y || opts.month != m){
opts.year = y;
opts.month = m;
show(target);
}
}
});
function toTarget(t){
var day = $(t).closest('.calendar-day');
if (day.length){
return day;
} else {
return $(t);
}
}
function setDate(hideMenu){
var menu = $(target).find('.calendar-menu');
var year = menu.find('.calendar-menu-year').val();
var month = menu.find('.calendar-selected').attr('abbr');
if (!isNaN(year)){
opts.year = parseInt(year);
opts.month = parseInt(month);
show(target);
}
if (hideMenu){menu.hide()}
}
function showYear(delta){
opts.year += delta;
show(target);
menu.find('.calendar-menu-year').val(opts.year);
}
function showMonth(delta){
opts.month += delta;
if (opts.month > 12){
opts.year++;
opts.month = 1;
} else if (opts.month < 1){
opts.year--;
opts.month = 12;
}
show(target);
menu.find('td.calendar-selected').removeClass('calendar-selected');
menu.find('td:eq(' + (opts.month-1) + ')').addClass('calendar-selected');
}
}
/**
* show the select menu that can change year or month, if the menu is not be created then create it.
*/
function showSelectMenus(target){
var opts = $.data(target, 'calendar').options;
$(target).find('.calendar-menu').show();
if ($(target).find('.calendar-menu-month-inner').is(':empty')){
$(target).find('.calendar-menu-month-inner').empty();
var t = $('
').appendTo($(target).find('.calendar-menu-month-inner'));
var idx = 0;
for(var i=0; i<3; i++){
var tr = $('
').appendTo(t);
for(var j=0; j<4; j++){
$('').html(opts.months[idx++]).attr('abbr',idx).appendTo(tr);
}
}
}
var body = $(target).find('.calendar-body');
var sele = $(target).find('.calendar-menu');
var seleYear = sele.find('.calendar-menu-year-inner');
var seleMonth = sele.find('.calendar-menu-month-inner');
seleYear.find('input').val(opts.year).focus();
seleMonth.find('td.calendar-selected').removeClass('calendar-selected');
seleMonth.find('td:eq('+(opts.month-1)+')').addClass('calendar-selected');
sele._outerWidth(body._outerWidth());
sele._outerHeight(body._outerHeight());
seleMonth._outerHeight(sele.height() - seleYear._outerHeight());
}
/**
* get weeks data.
*/
function getWeeks(target, year, month){
var opts = $.data(target, 'calendar').options;
var dates = [];
var lastDay = new Date(year, month, 0).getDate();
for(var i=1; i<=lastDay; i++) dates.push([year,month,i]);
// group date by week
var weeks = [], week = [];
var memoDay = -1;
while(dates.length > 0){
var date = dates.shift();
week.push(date);
var day = new Date(date[0],date[1]-1,date[2]).getDay();
if (memoDay == day){
day = 0;
} else if (day == (opts.firstDay==0 ? 7 : opts.firstDay) - 1){
weeks.push(week);
week = [];
}
memoDay = day;
}
if (week.length){
weeks.push(week);
}
var firstWeek = weeks[0];
if (firstWeek.length < 7){
while(firstWeek.length < 7){
var firstDate = firstWeek[0];
var date = new Date(firstDate[0],firstDate[1]-1,firstDate[2]-1)
firstWeek.unshift([date.getFullYear(), date.getMonth()+1, date.getDate()]);
}
} else {
var firstDate = firstWeek[0];
var week = [];
for(var i=1; i<=7; i++){
var date = new Date(firstDate[0], firstDate[1]-1, firstDate[2]-i);
week.unshift([date.getFullYear(), date.getMonth()+1, date.getDate()]);
}
weeks.unshift(week);
}
var lastWeek = weeks[weeks.length-1];
while(lastWeek.length < 7){
var lastDate = lastWeek[lastWeek.length-1];
var date = new Date(lastDate[0], lastDate[1]-1, lastDate[2]+1);
lastWeek.push([date.getFullYear(), date.getMonth()+1, date.getDate()]);
}
if (weeks.length < 6){
var lastDate = lastWeek[lastWeek.length-1];
var week = [];
for(var i=1; i<=7; i++){
var date = new Date(lastDate[0], lastDate[1]-1, lastDate[2]+i);
week.push([date.getFullYear(), date.getMonth()+1, date.getDate()]);
}
weeks.push(week);
}
return weeks;
}
/**
* show the calendar day.
*/
function show(target){
var opts = $.data(target, 'calendar').options;
if (opts.current && !opts.validator.call(target, opts.current)){
opts.current = null;
}
var now = new Date();
var todayInfo = now.getFullYear()+','+(now.getMonth()+1)+','+now.getDate();
var currentInfo = opts.current ? (opts.current.getFullYear()+','+(opts.current.getMonth()+1)+','+opts.current.getDate()) : '';
// calulate the saturday and sunday index
var saIndex = 6 - opts.firstDay;
var suIndex = saIndex + 1;
if (saIndex >= 7) saIndex -= 7;
if (suIndex >= 7) suIndex -= 7;
$(target).find('.calendar-title span').html(opts.months[opts.month-1] + ' ' + opts.year);
var body = $(target).find('div.calendar-body');
body.children('table').remove();
var data = ['
'];
data.push('');
for(var i=opts.firstDay; i'+opts.weeks[i]+'');
}
for(var i=0; i'+opts.weeks[i]+'');
}
data.push(' ');
data.push('');
var weeks = getWeeks(target, opts.year, opts.month);
for(var i=0; i');
for(var j=0; j' + d + '');
}
data.push('');
}
data.push(' ');
data.push('
');
body.append(data.join(''));
body.children('table.calendar-dtable').prependTo(body);
opts.onNavigate.call(target, opts.year, opts.month);
}
$.fn.calendar = function(options, param){
if (typeof options == 'string'){
return $.fn.calendar.methods[options](this, param);
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'calendar');
if (state){
$.extend(state.options, options);
} else {
state = $.data(this, 'calendar', {
options:$.extend({}, $.fn.calendar.defaults, $.fn.calendar.parseOptions(this), options)
});
init(this);
}
if (state.options.border == false){
$(this).addClass('calendar-noborder');
}
setSize(this);
bindEvents(this);
show(this);
$(this).find('div.calendar-menu').hide(); // hide the calendar menu
});
};
$.fn.calendar.methods = {
options: function(jq){
return $.data(jq[0], 'calendar').options;
},
resize: function(jq, param){
return jq.each(function(){
setSize(this, param);
});
},
moveTo: function(jq, date){
return jq.each(function(){
var opts = $(this).calendar('options');
if (opts.validator.call(this, date)){
var oldValue = opts.current;
$(this).calendar({
year: date.getFullYear(),
month: date.getMonth()+1,
current: date
});
if (!oldValue || oldValue.getTime() != date.getTime()){
opts.onChange.call(this, opts.current, oldValue);
}
}
});
}
};
$.fn.calendar.parseOptions = function(target){
var t = $(target);
return $.extend({}, $.parser.parseOptions(target, [
{firstDay:'number',fit:'boolean',border:'boolean'}
]));
};
$.fn.calendar.defaults = {
width:180,
height:180,
fit:false,
border:true,
firstDay:0,
weeks:['S','M','T','W','T','F','S'],
months:['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
year:new Date().getFullYear(),
month:new Date().getMonth()+1,
current:(function(){
var d = new Date();
return new Date(d.getFullYear(), d.getMonth(), d.getDate());
})(),
formatter:function(date){return date.getDate()},
styler:function(date){return ''},
validator:function(date){return true},
onSelect: function(date){},
onChange: function(newDate, oldDate){},
onNavigate: function(year, month){}
};
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.combobox.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
/**
* combobox - jQuery EasyUI
*
* Dependencies:
* combo
*
*/
(function($){
var COMBOBOX_SERNO = 0;
function getRowIndex(target, value){
var state = $.data(target, 'combobox');
var opts = state.options;
var data = state.data;
for(var i=0; i
panel.height()){
var h = panel.scrollTop() + item.position().top + item.outerHeight() - panel.height();
panel.scrollTop(h);
}
}
}
function nav(target, dir){
var opts = $.data(target, 'combobox').options;
var panel = $(target).combobox('panel');
var item = panel.children('div.combobox-item-hover');
if (!item.length){
item = panel.children('div.combobox-item-selected');
}
item.removeClass('combobox-item-hover');
var firstSelector = 'div.combobox-item:visible:not(.combobox-item-disabled):first';
var lastSelector = 'div.combobox-item:visible:not(.combobox-item-disabled):last';
if (!item.length){
item = panel.children(dir=='next' ? firstSelector : lastSelector);
// item = panel.children('div.combobox-item:visible:' + (dir=='next'?'first':'last'));
} else {
if (dir == 'next'){
item = item.nextAll(firstSelector);
// item = item.nextAll('div.combobox-item:visible:first');
if (!item.length){
item = panel.children(firstSelector);
// item = panel.children('div.combobox-item:visible:first');
}
} else {
item = item.prevAll(firstSelector);
// item = item.prevAll('div.combobox-item:visible:first');
if (!item.length){
item = panel.children(lastSelector);
// item = panel.children('div.combobox-item:visible:last');
}
}
}
if (item.length){
item.addClass('combobox-item-hover');
var row = opts.finder.getRow(target, item);
if (row){
scrollTo(target, row[opts.valueField]);
if (opts.selectOnNavigation){
select(target, row[opts.valueField]);
}
}
}
}
/**
* select the specified value
*/
function select(target, value){
var opts = $.data(target, 'combobox').options;
var values = $(target).combo('getValues');
if ($.inArray(value+'', values) == -1){
if (opts.multiple){
values.push(value);
} else {
values = [value];
}
setValues(target, values);
opts.onSelect.call(target, opts.finder.getRow(target, value));
}
}
/**
* unselect the specified value
*/
function unselect(target, value){
var opts = $.data(target, 'combobox').options;
var values = $(target).combo('getValues');
var index = $.inArray(value+'', values);
if (index >= 0){
values.splice(index, 1);
setValues(target, values);
opts.onUnselect.call(target, opts.finder.getRow(target, value));
}
}
/**
* set values
*/
function setValues(target, values, remainText){
var opts = $.data(target, 'combobox').options;
var panel = $(target).combo('panel');
if (!$.isArray(values)){values = values.split(opts.separator)}
panel.find('div.combobox-item-selected').removeClass('combobox-item-selected');
var vv = [], ss = [];
for(var i=0; i');
dd.push(opts.groupFormatter ? opts.groupFormatter.call(target, g) : g);
dd.push(' ');
}
} else {
group = undefined;
}
var cls = 'combobox-item' + (row.disabled ? ' combobox-item-disabled' : '') + (g ? ' combobox-gitem' : '');
dd.push('
');
dd.push(opts.formatter ? opts.formatter.call(target, row) : s);
dd.push('
');
// if (item['selected']){
// (function(){
// for(var i=0; i
= 0){
vv.push(v);
}
});
t.combobox('setValues', vv);
if (!opts.multiple){
t.combobox('hidePanel');
}
}
/**
* create the component
*/
function create(target){
var state = $.data(target, 'combobox');
var opts = state.options;
COMBOBOX_SERNO++;
state.itemIdPrefix = '_easyui_combobox_i' + COMBOBOX_SERNO;
state.groupIdPrefix = '_easyui_combobox_g' + COMBOBOX_SERNO;
$(target).addClass('combobox-f');
$(target).combo($.extend({}, opts, {
onShowPanel: function(){
$(target).combo('panel').find('div.combobox-item,div.combobox-group').show();
scrollTo(target, $(target).combobox('getValue'));
opts.onShowPanel.call(target);
}
}));
$(target).combo('panel').unbind().bind('mouseover', function(e){
$(this).children('div.combobox-item-hover').removeClass('combobox-item-hover');
var item = $(e.target).closest('div.combobox-item');
if (!item.hasClass('combobox-item-disabled')){
item.addClass('combobox-item-hover');
}
e.stopPropagation();
}).bind('mouseout', function(e){
$(e.target).closest('div.combobox-item').removeClass('combobox-item-hover');
e.stopPropagation();
}).bind('click', function(e){
var item = $(e.target).closest('div.combobox-item');
if (!item.length || item.hasClass('combobox-item-disabled')){return}
var row = opts.finder.getRow(target, item);
if (!row){return}
var value = row[opts.valueField];
if (opts.multiple){
if (item.hasClass('combobox-item-selected')){
unselect(target, value);
} else {
select(target, value);
}
} else {
select(target, value);
$(target).combo('hidePanel');
}
e.stopPropagation();
});
}
$.fn.combobox = function(options, param){
if (typeof options == 'string'){
var method = $.fn.combobox.methods[options];
if (method){
return method(this, param);
} else {
return this.combo(options, param);
}
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'combobox');
if (state){
$.extend(state.options, options);
create(this);
} else {
state = $.data(this, 'combobox', {
options: $.extend({}, $.fn.combobox.defaults, $.fn.combobox.parseOptions(this), options),
data: []
});
create(this);
var data = $.fn.combobox.parseData(this);
if (data.length){
loadData(this, data);
}
}
if (state.options.data){
loadData(this, state.options.data);
}
request(this);
});
};
$.fn.combobox.methods = {
options: function(jq){
var copts = jq.combo('options');
return $.extend($.data(jq[0], 'combobox').options, {
width: copts.width,
height: copts.height,
originalValue: copts.originalValue,
disabled: copts.disabled,
readonly: copts.readonly
});
},
getData: function(jq){
return $.data(jq[0], 'combobox').data;
},
setValues: function(jq, values){
return jq.each(function(){
setValues(this, values);
});
},
setValue: function(jq, value){
return jq.each(function(){
setValues(this, [value]);
});
},
clear: function(jq){
return jq.each(function(){
$(this).combo('clear');
var panel = $(this).combo('panel');
panel.find('div.combobox-item-selected').removeClass('combobox-item-selected');
});
},
reset: function(jq){
return jq.each(function(){
var opts = $(this).combobox('options');
if (opts.multiple){
$(this).combobox('setValues', opts.originalValue);
} else {
$(this).combobox('setValue', opts.originalValue);
}
});
},
loadData: function(jq, data){
return jq.each(function(){
loadData(this, data);
});
},
reload: function(jq, url){
return jq.each(function(){
request(this, url);
});
},
select: function(jq, value){
return jq.each(function(){
select(this, value);
});
},
unselect: function(jq, value){
return jq.each(function(){
unselect(this, value);
});
}
};
$.fn.combobox.parseOptions = function(target){
var t = $(target);
return $.extend({}, $.fn.combo.parseOptions(target), $.parser.parseOptions(target,[
'valueField','textField','groupField','mode','method','url'
]));
};
$.fn.combobox.parseData = function(target){
var data = [];
var opts = $(target).combobox('options');
$(target).children().each(function(){
if (this.tagName.toLowerCase() == 'optgroup'){
var group = $(this).attr('label');
$(this).children().each(function(){
_parseItem(this, group);
});
} else {
_parseItem(this);
}
});
return data;
function _parseItem(el, group){
var t = $(el);
var row = {};
row[opts.valueField] = t.attr('value')!=undefined ? t.attr('value') : t.text();
row[opts.textField] = t.text();
row['selected'] = t.is(':selected');
row['disabled'] = t.is(':disabled');
if (group){
opts.groupField = opts.groupField || 'group';
row[opts.groupField] = group;
}
data.push(row);
}
};
$.fn.combobox.defaults = $.extend({}, $.fn.combo.defaults, {
valueField: 'value',
textField: 'text',
groupField: null,
groupFormatter: function(group){return group;},
mode: 'local', // or 'remote'
method: 'post',
url: null,
data: null,
keyHandler: {
up: function(e){nav(this,'prev');e.preventDefault()},
down: function(e){nav(this,'next');e.preventDefault()},
left: function(e){},
right: function(e){},
enter: function(e){doEnter(this)},
query: function(q,e){doQuery(this, q)}
},
filter: function(q, row){
var opts = $(this).combobox('options');
return row[opts.textField].toLowerCase().indexOf(q.toLowerCase()) == 0;
},
formatter: function(row){
var opts = $(this).combobox('options');
return row[opts.textField];
},
loader: function(param, success, error){
var opts = $(this).combobox('options');
if (!opts.url) return false;
$.ajax({
type: opts.method,
url: opts.url,
data: param,
dataType: 'json',
success: function(data){
success(data);
},
error: function(){
error.apply(this, arguments);
}
});
},
loadFilter: function(data){
return data;
},
finder:{
getEl:function(target, value){
var index = getRowIndex(target, value);
var id = $.data(target, 'combobox').itemIdPrefix + '_' + index;
return $('#'+id);
},
getRow:function(target, p){
var state = $.data(target, 'combobox');
var index = (p instanceof jQuery) ? p.attr('id').substr(state.itemIdPrefix.length+1) : getRowIndex(target, p);
return state.data[parseInt(index)];
}
},
onBeforeLoad: function(param){},
onLoadSuccess: function(){},
onLoadError: function(){},
onSelect: function(record){},
onUnselect: function(record){}
});
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.datebox.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
/**
* datebox - jQuery EasyUI
*
* Dependencies:
* calendar
* combo
*
*/
(function($){
/**
* create date box
*/
function createBox(target){
var state = $.data(target, 'datebox');
var opts = state.options;
$(target).addClass('datebox-f').combo($.extend({}, opts, {
onShowPanel:function(){
bindEvents(this);
setButtons(this);
setCalendar(this);
setValue(this, $(this).datebox('getText'), true);
opts.onShowPanel.call(this);
}
}));
/**
* if the calendar isn't created, create it.
*/
if (!state.calendar){
var panel = $(target).combo('panel').css('overflow','hidden');
panel.panel('options').onBeforeDestroy = function(){
var c = $(this).find('.calendar-shared');
if (c.length){
c.insertBefore(c[0].pholder);
}
};
var cc = $('
').prependTo(panel);
if (opts.sharedCalendar){
var c = $(opts.sharedCalendar);
if (!c[0].pholder){
c[0].pholder = $('
').insertAfter(c);
}
c.addClass('calendar-shared').appendTo(cc);
if (!c.hasClass('calendar')){
c.calendar();
}
state.calendar = c;
} else {
state.calendar = $('
').appendTo(cc).calendar();
}
$.extend(state.calendar.calendar('options'), {
fit:true,
border:false,
onSelect:function(date){
var target = this.target;
var opts = $(target).datebox('options');
setValue(target, opts.formatter.call(target, date));
$(target).combo('hidePanel');
opts.onSelect.call(target, date);
}
});
}
$(target).combo('textbox').parent().addClass('datebox');
$(target).datebox('initValue', opts.value);
function bindEvents(target){
var opts = $(target).datebox('options');
var panel = $(target).combo('panel');
panel.unbind('.datebox').bind('click.datebox', function(e){
if ($(e.target).hasClass('datebox-button-a')){
var index = parseInt($(e.target).attr('datebox-button-index'));
opts.buttons[index].handler.call(e.target, target);
}
});
}
function setButtons(target){
var panel = $(target).combo('panel');
if (panel.children('div.datebox-button').length){return}
var button = $('').appendTo(panel);
var tr = button.find('tr');
for(var i=0; i').appendTo(tr);
var btn = opts.buttons[i];
var t = $(' ').html($.isFunction(btn.text) ? btn.text(target) : btn.text).appendTo(td);
t.attr('datebox-button-index', i);
}
tr.find('td').css('width', (100/opts.buttons.length)+'%');
}
function setCalendar(target){
var panel = $(target).combo('panel');
var cc = panel.children('div.datebox-calendar-inner');
panel.children()._outerWidth(panel.width());
state.calendar.appendTo(cc);
state.calendar[0].target = target;
if (opts.panelHeight != 'auto'){
var height = panel.height();
panel.children().not(cc).each(function(){
height -= $(this).outerHeight();
});
cc._outerHeight(height);
}
state.calendar.calendar('resize');
}
}
/**
* called when user inputs some value in text box
*/
function doQuery(target, q){
setValue(target, q, true);
}
/**
* called when user press enter key
*/
function doEnter(target){
var state = $.data(target, 'datebox');
var opts = state.options;
var current = state.calendar.calendar('options').current;
if (current){
setValue(target, opts.formatter.call(target, current));
$(target).combo('hidePanel');
}
}
function setValue(target, value, remainText){
var state = $.data(target, 'datebox');
var opts = state.options;
var calendar = state.calendar;
$(target).combo('setValue', value);
calendar.calendar('moveTo', opts.parser.call(target, value));
if (!remainText){
if (value){
value = opts.formatter.call(target, calendar.calendar('options').current);
$(target).combo('setValue', value).combo('setText', value);
} else {
$(target).combo('setText', value);
}
}
}
$.fn.datebox = function(options, param){
if (typeof options == 'string'){
var method = $.fn.datebox.methods[options];
if (method){
return method(this, param);
} else {
return this.combo(options, param);
}
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'datebox');
if (state){
$.extend(state.options, options);
} else {
$.data(this, 'datebox', {
options: $.extend({}, $.fn.datebox.defaults, $.fn.datebox.parseOptions(this), options)
});
}
createBox(this);
});
};
$.fn.datebox.methods = {
options: function(jq){
var copts = jq.combo('options');
return $.extend($.data(jq[0], 'datebox').options, {
width: copts.width,
height: copts.height,
originalValue: copts.originalValue,
disabled: copts.disabled,
readonly: copts.readonly
});
},
cloneFrom: function(jq, from){
return jq.each(function(){
$(this).combo('cloneFrom', from);
$.data(this, 'datebox', {
options: $.extend(true, {}, $(from).datebox('options')),
calendar: $(from).datebox('calendar')
});
$(this).addClass('datebox-f');
});
},
calendar: function(jq){ // get the calendar object
return $.data(jq[0], 'datebox').calendar;
},
initValue: function(jq, value){
return jq.each(function(){
var opts = $(this).datebox('options');
var value = opts.value;
if (value){
value = opts.formatter.call(this, opts.parser.call(this, value));
}
$(this).combo('initValue', value).combo('setText', value);
});
},
setValue: function(jq, value){
return jq.each(function(){
setValue(this, value);
});
},
reset: function(jq){
return jq.each(function(){
var opts = $(this).datebox('options');
$(this).datebox('setValue', opts.originalValue);
});
}
};
$.fn.datebox.parseOptions = function(target){
return $.extend({}, $.fn.combo.parseOptions(target), $.parser.parseOptions(target, ['sharedCalendar']));
};
$.fn.datebox.defaults = $.extend({}, $.fn.combo.defaults, {
panelWidth:180,
panelHeight:'auto',
sharedCalendar:null,
keyHandler: {
up:function(e){},
down:function(e){},
left: function(e){},
right: function(e){},
enter:function(e){doEnter(this)},
query:function(q,e){doQuery(this, q)}
},
currentText:'Today',
closeText:'Close',
okText:'Ok',
buttons:[{
text: function(target){return $(target).datebox('options').currentText;},
handler: function(target){
$(target).datebox('calendar').calendar({
year:new Date().getFullYear(),
month:new Date().getMonth()+1,
current:new Date()
});
doEnter(target);
}
},{
text: function(target){return $(target).datebox('options').closeText;},
handler: function(target){
$(this).closest('div.combo-panel').panel('close');
}
}],
formatter:function(date){
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
return (m<10?('0'+m):m)+'/'+(d<10?('0'+d):d)+'/'+y;
},
parser:function(s){
if (!s) return new Date();
var ss = s.split('/');
var m = parseInt(ss[0],10);
var d = parseInt(ss[1],10);
var y = parseInt(ss[2],10);
if (!isNaN(y) && !isNaN(m) && !isNaN(d)){
return new Date(y,m-1,d);
} else {
return new Date();
}
},
onSelect:function(date){}
});
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.draggable.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
/**
* draggable - jQuery EasyUI
*
*/
(function($){
// var isDragging = false;
function drag(e){
var state = $.data(e.data.target, 'draggable');
var opts = state.options;
var proxy = state.proxy;
var dragData = e.data;
var left = dragData.startLeft + e.pageX - dragData.startX;
var top = dragData.startTop + e.pageY - dragData.startY;
if (proxy){
if (proxy.parent()[0] == document.body){
if (opts.deltaX != null && opts.deltaX != undefined){
left = e.pageX + opts.deltaX;
} else {
left = e.pageX - e.data.offsetWidth;
}
if (opts.deltaY != null && opts.deltaY != undefined){
top = e.pageY + opts.deltaY;
} else {
top = e.pageY - e.data.offsetHeight;
}
} else {
if (opts.deltaX != null && opts.deltaX != undefined){
left += e.data.offsetWidth + opts.deltaX;
}
if (opts.deltaY != null && opts.deltaY != undefined){
top += e.data.offsetHeight + opts.deltaY;
}
}
}
// if (opts.deltaX != null && opts.deltaX != undefined){
// left = e.pageX + opts.deltaX;
// }
// if (opts.deltaY != null && opts.deltaY != undefined){
// top = e.pageY + opts.deltaY;
// }
if (e.data.parent != document.body) {
left += $(e.data.parent).scrollLeft();
top += $(e.data.parent).scrollTop();
}
if (opts.axis == 'h') {
dragData.left = left;
} else if (opts.axis == 'v') {
dragData.top = top;
} else {
dragData.left = left;
dragData.top = top;
}
}
function applyDrag(e){
var state = $.data(e.data.target, 'draggable');
var opts = state.options;
var proxy = state.proxy;
if (!proxy){
proxy = $(e.data.target);
}
// if (proxy){
// proxy.css('cursor', opts.cursor);
// } else {
// proxy = $(e.data.target);
// $.data(e.data.target, 'draggable').handle.css('cursor', opts.cursor);
// }
proxy.css({
left:e.data.left,
top:e.data.top
});
$('body').css('cursor', opts.cursor);
}
function doDown(e){
// isDragging = true;
$.fn.draggable.isDragging = true;
var state = $.data(e.data.target, 'draggable');
var opts = state.options;
var droppables = $('.droppable').filter(function(){
return e.data.target != this;
}).filter(function(){
var accept = $.data(this, 'droppable').options.accept;
if (accept){
return $(accept).filter(function(){
return this == e.data.target;
}).length > 0;
} else {
return true;
}
});
state.droppables = droppables;
var proxy = state.proxy;
if (!proxy){
if (opts.proxy){
if (opts.proxy == 'clone'){
proxy = $(e.data.target).clone().insertAfter(e.data.target);
} else {
proxy = opts.proxy.call(e.data.target, e.data.target);
}
state.proxy = proxy;
} else {
proxy = $(e.data.target);
}
}
proxy.css('position', 'absolute');
drag(e);
applyDrag(e);
opts.onStartDrag.call(e.data.target, e);
return false;
}
function doMove(e){
var state = $.data(e.data.target, 'draggable');
drag(e);
if (state.options.onDrag.call(e.data.target, e) != false){
applyDrag(e);
}
var source = e.data.target;
state.droppables.each(function(){
var dropObj = $(this);
if (dropObj.droppable('options').disabled){return;}
var p2 = dropObj.offset();
if (e.pageX > p2.left && e.pageX < p2.left + dropObj.outerWidth()
&& e.pageY > p2.top && e.pageY < p2.top + dropObj.outerHeight()){
if (!this.entered){
$(this).trigger('_dragenter', [source]);
this.entered = true;
}
$(this).trigger('_dragover', [source]);
} else {
if (this.entered){
$(this).trigger('_dragleave', [source]);
this.entered = false;
}
}
});
return false;
}
function doUp(e){
// isDragging = false;
$.fn.draggable.isDragging = false;
// drag(e);
doMove(e);
var state = $.data(e.data.target, 'draggable');
var proxy = state.proxy;
var opts = state.options;
if (opts.revert){
if (checkDrop() == true){
$(e.data.target).css({
position:e.data.startPosition,
left:e.data.startLeft,
top:e.data.startTop
});
} else {
if (proxy){
var left, top;
if (proxy.parent()[0] == document.body){
left = e.data.startX - e.data.offsetWidth;
top = e.data.startY - e.data.offsetHeight;
} else {
left = e.data.startLeft;
top = e.data.startTop;
}
proxy.animate({
left: left,
top: top
}, function(){
removeProxy();
});
} else {
$(e.data.target).animate({
left:e.data.startLeft,
top:e.data.startTop
}, function(){
$(e.data.target).css('position', e.data.startPosition);
});
}
}
} else {
$(e.data.target).css({
position:'absolute',
left:e.data.left,
top:e.data.top
});
checkDrop();
}
opts.onStopDrag.call(e.data.target, e);
$(document).unbind('.draggable');
setTimeout(function(){
$('body').css('cursor','');
},100);
function removeProxy(){
if (proxy){
proxy.remove();
}
state.proxy = null;
}
function checkDrop(){
var dropped = false;
state.droppables.each(function(){
var dropObj = $(this);
if (dropObj.droppable('options').disabled){return;}
var p2 = dropObj.offset();
if (e.pageX > p2.left && e.pageX < p2.left + dropObj.outerWidth()
&& e.pageY > p2.top && e.pageY < p2.top + dropObj.outerHeight()){
if (opts.revert){
$(e.data.target).css({
position:e.data.startPosition,
left:e.data.startLeft,
top:e.data.startTop
});
}
$(this).trigger('_drop', [e.data.target]);
removeProxy();
dropped = true;
this.entered = false;
return false;
}
});
if (!dropped && !opts.revert){
removeProxy();
}
return dropped;
}
return false;
}
$.fn.draggable = function(options, param){
if (typeof options == 'string'){
return $.fn.draggable.methods[options](this, param);
}
return this.each(function(){
var opts;
var state = $.data(this, 'draggable');
if (state) {
state.handle.unbind('.draggable');
opts = $.extend(state.options, options);
} else {
opts = $.extend({}, $.fn.draggable.defaults, $.fn.draggable.parseOptions(this), options || {});
}
var handle = opts.handle ? (typeof opts.handle=='string' ? $(opts.handle, this) : opts.handle) : $(this);
$.data(this, 'draggable', {
options: opts,
handle: handle
});
if (opts.disabled) {
$(this).css('cursor', '');
return;
}
handle.unbind('.draggable').bind('mousemove.draggable', {target:this}, function(e){
// if (isDragging) return;
if ($.fn.draggable.isDragging){return}
var opts = $.data(e.data.target, 'draggable').options;
if (checkArea(e)){
$(this).css('cursor', opts.cursor);
} else {
$(this).css('cursor', '');
}
}).bind('mouseleave.draggable', {target:this}, function(e){
$(this).css('cursor', '');
}).bind('mousedown.draggable', {target:this}, function(e){
if (checkArea(e) == false) return;
$(this).css('cursor', '');
var position = $(e.data.target).position();
var offset = $(e.data.target).offset();
var data = {
startPosition: $(e.data.target).css('position'),
startLeft: position.left,
startTop: position.top,
left: position.left,
top: position.top,
startX: e.pageX,
startY: e.pageY,
offsetWidth: (e.pageX - offset.left),
offsetHeight: (e.pageY - offset.top),
target: e.data.target,
parent: $(e.data.target).parent()[0]
};
$.extend(e.data, data);
var opts = $.data(e.data.target, 'draggable').options;
if (opts.onBeforeDrag.call(e.data.target, e) == false) return;
$(document).bind('mousedown.draggable', e.data, doDown);
$(document).bind('mousemove.draggable', e.data, doMove);
$(document).bind('mouseup.draggable', e.data, doUp);
// $('body').css('cursor', opts.cursor);
});
// check if the handle can be dragged
function checkArea(e) {
var state = $.data(e.data.target, 'draggable');
var handle = state.handle;
var offset = $(handle).offset();
var width = $(handle).outerWidth();
var height = $(handle).outerHeight();
var t = e.pageY - offset.top;
var r = offset.left + width - e.pageX;
var b = offset.top + height - e.pageY;
var l = e.pageX - offset.left;
return Math.min(t,r,b,l) > state.options.edge;
}
});
};
$.fn.draggable.methods = {
options: function(jq){
return $.data(jq[0], 'draggable').options;
},
proxy: function(jq){
return $.data(jq[0], 'draggable').proxy;
},
enable: function(jq){
return jq.each(function(){
$(this).draggable({disabled:false});
});
},
disable: function(jq){
return jq.each(function(){
$(this).draggable({disabled:true});
});
}
};
$.fn.draggable.parseOptions = function(target){
var t = $(target);
return $.extend({},
$.parser.parseOptions(target, ['cursor','handle','axis',
{'revert':'boolean','deltaX':'number','deltaY':'number','edge':'number'}]), {
disabled: (t.attr('disabled') ? true : undefined)
});
};
$.fn.draggable.defaults = {
proxy:null, // 'clone' or a function that will create the proxy object,
// the function has the source parameter that indicate the source object dragged.
revert:false,
cursor:'move',
deltaX:null,
deltaY:null,
handle: null,
disabled: false,
edge:0,
axis:null, // v or h
onBeforeDrag: function(e){},
onStartDrag: function(e){},
onDrag: function(e){},
onStopDrag: function(e){}
};
$.fn.draggable.isDragging = false;
// $(function(){
// function touchHandler(e) {
// var touches = e.changedTouches, first = touches[0], type = "";
//
// switch(e.type) {
// case "touchstart": type = "mousedown"; break;
// case "touchmove": type = "mousemove"; break;
// case "touchend": type = "mouseup"; break;
// default: return;
// }
// var simulatedEvent = document.createEvent("MouseEvent");
// simulatedEvent.initMouseEvent(type, true, true, window, 1,
// first.screenX, first.screenY,
// first.clientX, first.clientY, false,
// false, false, false, 0/*left*/, null);
//
// first.target.dispatchEvent(simulatedEvent);
// if (isDragging){
// e.preventDefault();
// }
// }
//
// if (document.addEventListener){
// document.addEventListener("touchstart", touchHandler, true);
// document.addEventListener("touchmove", touchHandler, true);
// document.addEventListener("touchend", touchHandler, true);
// document.addEventListener("touchcancel", touchHandler, true);
// }
// });
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.droppable.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
/**
* droppable - jQuery EasyUI
*
*/
(function($){
function init(target){
$(target).addClass('droppable');
$(target).bind('_dragenter', function(e, source){
$.data(target, 'droppable').options.onDragEnter.apply(target, [e, source]);
});
$(target).bind('_dragleave', function(e, source){
$.data(target, 'droppable').options.onDragLeave.apply(target, [e, source]);
});
$(target).bind('_dragover', function(e, source){
$.data(target, 'droppable').options.onDragOver.apply(target, [e, source]);
});
$(target).bind('_drop', function(e, source){
$.data(target, 'droppable').options.onDrop.apply(target, [e, source]);
});
}
$.fn.droppable = function(options, param){
if (typeof options == 'string'){
return $.fn.droppable.methods[options](this, param);
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'droppable');
if (state){
$.extend(state.options, options);
} else {
init(this);
$.data(this, 'droppable', {
options: $.extend({}, $.fn.droppable.defaults, $.fn.droppable.parseOptions(this), options)
});
}
});
};
$.fn.droppable.methods = {
options: function(jq){
return $.data(jq[0], 'droppable').options;
},
enable: function(jq){
return jq.each(function(){
$(this).droppable({disabled:false});
});
},
disable: function(jq){
return jq.each(function(){
$(this).droppable({disabled:true});
});
}
};
$.fn.droppable.parseOptions = function(target){
var t = $(target);
return $.extend({}, $.parser.parseOptions(target, ['accept']), {
disabled: (t.attr('disabled') ? true : undefined)
});
};
$.fn.droppable.defaults = {
accept:null,
disabled:false,
onDragEnter:function(e, source){},
onDragOver:function(e, source){},
onDragLeave:function(e, source){},
onDrop:function(e, source){}
};
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.form.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
/**
* form - jQuery EasyUI
*
*/
(function($){
/**
* submit the form
*/
function ajaxSubmit(target, options){
var opts = $.data(target, 'form').options;
$.extend(opts, options||{});
var param = $.extend({}, opts.queryParams);
if (opts.onSubmit.call(target, param) == false){return;}
$(target).find('.textbox-text:focus').blur();
var frameId = 'easyui_frame_' + (new Date().getTime());
var frame = $('').appendTo('body')
frame.attr('src', window.ActiveXObject ? 'javascript:false' : 'about:blank');
frame.css({
position:'absolute',
top:-1000,
left:-1000
});
frame.bind('load', cb);
submit(param);
function submit(param){
var form = $(target);
if (opts.url){
form.attr('action', opts.url);
}
var t = form.attr('target'), a = form.attr('action');
form.attr('target', frameId);
var paramFields = $();
try {
for(var n in param){
var field = $(' ').val(param[n]).appendTo(form);
paramFields = paramFields.add(field);
}
checkState();
form[0].submit();
} finally {
form.attr('action', a);
t ? form.attr('target', t) : form.removeAttr('target');
paramFields.remove();
}
}
function checkState(){
var f = $('#'+frameId);
if (!f.length){return}
try{
var s = f.contents()[0].readyState;
if (s && s.toLowerCase() == 'uninitialized'){
setTimeout(checkState, 100);
}
} catch(e){
cb();
}
}
var checkCount = 10;
function cb(){
var f = $('#'+frameId);
if (!f.length){return}
f.unbind();
var data = '';
try{
var body = f.contents().find('body');
data = body.html();
if (data == ''){
if (--checkCount){
setTimeout(cb, 100);
return;
}
}
var ta = body.find('>textarea');
if (ta.length){
data = ta.val();
} else {
var pre = body.find('>pre');
if (pre.length){
data = pre.html();
}
}
} catch(e){
}
opts.success(data);
setTimeout(function(){
f.unbind();
f.remove();
}, 100);
}
}
/**
* load form data
* if data is a URL string type load from remote site,
* otherwise load from local data object.
*/
function load(target, data){
var opts = $.data(target, 'form').options;
if (typeof data == 'string'){
var param = {};
if (opts.onBeforeLoad.call(target, param) == false) return;
$.ajax({
url: data,
data: param,
dataType: 'json',
success: function(data){
_load(data);
},
error: function(){
opts.onLoadError.apply(target, arguments);
}
});
} else {
_load(data);
}
function _load(data){
var form = $(target);
for(var name in data){
var val = data[name];
var rr = _checkField(name, val);
if (!rr.length){
var count = _loadOther(name, val);
if (!count){
$('input[name="'+name+'"]', form).val(val);
$('textarea[name="'+name+'"]', form).val(val);
$('select[name="'+name+'"]', form).val(val);
}
}
_loadCombo(name, val);
}
opts.onLoadSuccess.call(target, data);
validate(target);
}
/**
* check the checkbox and radio fields
*/
function _checkField(name, val){
var rr = $(target).find('input[name="'+name+'"][type=radio], input[name="'+name+'"][type=checkbox]');
rr._propAttr('checked', false);
rr.each(function(){
var f = $(this);
if (f.val() == String(val) || $.inArray(f.val(), $.isArray(val)?val:[val]) >= 0){
f._propAttr('checked', true);
}
});
return rr;
}
function _loadOther(name, val){
var count = 0;
var pp = ['textbox','numberbox','slider'];
for(var i=0; i ').insertBefore(target);
var style = {
position: btn.css('position'),
display: btn.css('display'),
left: btn.css('left')
};
btn.appendTo('body');
btn.css({
position: 'absolute',
display: 'inline-block',
left: -20000
});
}
btn._size(opts, parent);
var left = btn.find('.l-btn-left');
left.css('margin-top', 0);
left.css('margin-top', parseInt((btn.height()-left.height())/2)+'px');
if (!isVisible){
btn.insertAfter(spacer);
btn.css(style);
spacer.remove();
}
}
}
function createButton(target) {
var opts = $.data(target, 'linkbutton').options;
var t = $(target).empty();
t.addClass('l-btn').removeClass('l-btn-plain l-btn-selected l-btn-plain-selected');
t.removeClass('l-btn-small l-btn-medium l-btn-large').addClass('l-btn-'+opts.size);
if (opts.plain){t.addClass('l-btn-plain')}
if (opts.selected){
t.addClass(opts.plain ? 'l-btn-selected l-btn-plain-selected' : 'l-btn-selected');
}
t.attr('group', opts.group || '');
t.attr('id', opts.id || '');
var inner = $(' ').appendTo(t);
if (opts.text){
$(' ').html(opts.text).appendTo(inner);
} else {
$(' ').appendTo(inner);
}
if (opts.iconCls){
$(' ').addClass(opts.iconCls).appendTo(inner);
inner.addClass('l-btn-icon-'+opts.iconAlign);
}
t.unbind('.linkbutton').bind('focus.linkbutton',function(){
if (!opts.disabled){
$(this).addClass('l-btn-focus');
}
}).bind('blur.linkbutton',function(){
$(this).removeClass('l-btn-focus');
}).bind('click.linkbutton',function(){
if (!opts.disabled){
if (opts.toggle){
if (opts.selected){
$(this).linkbutton('unselect');
} else {
$(this).linkbutton('select');
}
}
opts.onClick.call(this);
}
// return false;
});
// if (opts.toggle && !opts.disabled){
// t.bind('click.linkbutton', function(){
// if (opts.selected){
// $(this).linkbutton('unselect');
// } else {
// $(this).linkbutton('select');
// }
// });
// }
setSelected(target, opts.selected)
setDisabled(target, opts.disabled);
}
function setSelected(target, selected){
var opts = $.data(target, 'linkbutton').options;
if (selected){
if (opts.group){
$('a.l-btn[group="'+opts.group+'"]').each(function(){
var o = $(this).linkbutton('options');
if (o.toggle){
$(this).removeClass('l-btn-selected l-btn-plain-selected');
o.selected = false;
}
});
}
$(target).addClass(opts.plain ? 'l-btn-selected l-btn-plain-selected' : 'l-btn-selected');
opts.selected = true;
} else {
if (!opts.group){
$(target).removeClass('l-btn-selected l-btn-plain-selected');
opts.selected = false;
}
}
}
function setDisabled(target, disabled){
var state = $.data(target, 'linkbutton');
var opts = state.options;
$(target).removeClass('l-btn-disabled l-btn-plain-disabled');
if (disabled){
opts.disabled = true;
var href = $(target).attr('href');
if (href){
state.href = href;
$(target).attr('href', 'javascript:void(0)');
}
if (target.onclick){
state.onclick = target.onclick;
target.onclick = null;
}
opts.plain ? $(target).addClass('l-btn-disabled l-btn-plain-disabled') : $(target).addClass('l-btn-disabled');
} else {
opts.disabled = false;
if (state.href) {
$(target).attr('href', state.href);
}
if (state.onclick) {
target.onclick = state.onclick;
}
}
}
$.fn.linkbutton = function(options, param){
if (typeof options == 'string'){
return $.fn.linkbutton.methods[options](this, param);
}
options = options || {};
return this.each(function(){
var state = $.data(this, 'linkbutton');
if (state){
$.extend(state.options, options);
} else {
$.data(this, 'linkbutton', {
options: $.extend({}, $.fn.linkbutton.defaults, $.fn.linkbutton.parseOptions(this), options)
});
$(this).removeAttr('disabled');
$(this).bind('_resize', function(e, force){
if ($(this).hasClass('easyui-fluid') || force){
setSize(this);
}
return false;
});
}
createButton(this);
setSize(this);
});
};
$.fn.linkbutton.methods = {
options: function(jq){
return $.data(jq[0], 'linkbutton').options;
},
resize: function(jq, param){
return jq.each(function(){
setSize(this, param);
});
},
enable: function(jq){
return jq.each(function(){
setDisabled(this, false);
});
},
disable: function(jq){
return jq.each(function(){
setDisabled(this, true);
});
},
select: function(jq){
return jq.each(function(){
setSelected(this, true);
});
},
unselect: function(jq){
return jq.each(function(){
setSelected(this, false);
});
}
};
$.fn.linkbutton.parseOptions = function(target){
var t = $(target);
return $.extend({}, $.parser.parseOptions(target,
['id','iconCls','iconAlign','group','size',{plain:'boolean',toggle:'boolean',selected:'boolean'}]
), {
disabled: (t.attr('disabled') ? true : undefined),
text: $.trim(t.html()),
iconCls: (t.attr('icon') || t.attr('iconCls'))
});
};
$.fn.linkbutton.defaults = {
id: null,
disabled: false,
toggle: false,
selected: false,
group: null,
plain: false,
text: '',
iconCls: null,
iconAlign: 'left',
size: 'small', // small,large
onClick: function(){}
};
})(jQuery);
================================================
FILE: migo-manage/manage-web/src/main/webapp/js/jquery-easyui-1.4.1/src/jquery.menu.js
================================================
/**
* jQuery EasyUI 1.4.1
*
* Copyright (c) 2009-2014 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL license: http://www.gnu.org/licenses/gpl.txt
* To use it on other terms please contact us at info@jeasyui.com
*
*/
/**
* menu - jQuery EasyUI
*
*/
(function($){
/**
* initialize the target menu, the function can be invoked only once
*/
function init(target){
$(target).appendTo('body');
$(target).addClass('menu-top'); // the top menu
$(document).unbind('.menu').bind('mousedown.menu', function(e){
// var allMenu = $('body>div.menu:visible');
// var m = $(e.target).closest('div.menu', allMenu);
var m = $(e.target).closest('div.menu,div.combo-p');
if (m.length){return}
$('body>div.menu-top:visible').menu('hide');
});
var menus = splitMenu($(target));
for(var i=0; i