• 大小: 14.2MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-07-02
  • 语言: 其他
  • 标签: SSM  Maven  Jfinal  

资源简介

SSM+Maven+Jfinal+仓库管理系统SSM+Maven+Jfinal+仓库管理系统

资源截图

代码片段和文件信息

package com.jsh.action.asset;

import com.jsh.base.baseAction;
import com.jsh.base.Log;
import com.jsh.model.po.*;
import com.jsh.model.vo.asset.AssetModel;
import com.jsh.service.asset.AssetIService;
import com.jsh.service.basic.AssetNameIService;
import com.jsh.service.basic.CategoryIService;
import com.jsh.service.basic.SupplierIService;
import com.jsh.service.basic.UserIService;
import com.jsh.util.AssetConstants;
import com.jsh.util.JshException;
import com.jsh.util.PageUtil;
import com.jsh.util.Tools;
import net.sf.json.JSONArray;
import net.sf.json.JSONobject;
import org.springframework.dao.DataAccessException;

import java.io.IOException;
import java.io.InputStream;
import java.sql.Timestamp;
import java.text.ParseException;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@SuppressWarnings(“serial“)
public class AssetAction extends baseAction {
    private AssetModel model = new AssetModel();
    private AssetIService assetService;
    private CategoryIService categoryService;
    private SupplierIService supplierService;
    private UserIService userService;
    private AssetNameIService assetnameService;

    @SuppressWarnings({“rawtypes“ “unchecked“})
    public String getBasicData() {
        Map mapData = model.getShowModel().getMap();
        PageUtil pageUtil = new PageUtil();
        pageUtil.setPageSize(0);
        pageUtil.setCurPage(0);
        try {
            Mapject> condition = pageUtil.getAdvSearch();
            condition.put(“id_s_order“ “desc“);
            categoryService.find(pageUtil);
            mapData.put(“categoryList“ pageUtil.getPageList());
            supplierService.find(pageUtil);
            mapData.put(“supplierList“ pageUtil.getPageList());

            condition.put(“isystem_n_eq“ 1);
            condition.put(“id_s_order“ “desc“);
            userService.find(pageUtil);
            mapData.put(“userList“ pageUtil.getPageList());

            //清除搜索条件 防止对查询有影响
            condition.remove(“isystem_n_eq“);

            assetnameService.find(pageUtil);
            mapData.put(“assetnameList“ pageUtil.getPageList());
        } catch (Exception e) {
            Log.errorFileSync(“>>>>>>>>>>>>>查找系统基础数据信息异常“ e);
            model.getShowModel().setMsgTip(“exceptoin“);
        }
        return SUCCESS;
    }

    /**
     * 增加资产
     *
     * @return
     */
    public void create() {
        Log.infoFileSync(“==================开始调用增加资产方法===================“);
        Boolean flag = false;
        try {
            Asset asset = new Asset();
            //添加设置
            asset.setAssetname(new Assetname(model.getAssetNameID()));

            asset.setLocation(model.getLocation());
            asset.setStatus(model.getStatus());
            asset.setPrice(model.getPrice());

            if (null != model.getUserID()) {
                asset.setUser(new Basicuser(model.getUserID()));
            }
            try 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-05-16 02:43  JSH_ERP\
     文件         240  2018-05-16 02:43  JSH_ERP\.gitignore
     文件       11357  2018-05-16 02:43  JSH_ERP\LICENSE
     文件        2624  2018-05-21 09:15  JSH_ERP\README.md
     文件       11273  2018-05-16 02:43  JSH_ERP\pom.xml
     目录           0  2018-05-16 02:43  JSH_ERP\sql\
     文件      651882  2018-05-16 02:43  JSH_ERP\sql\jsh_erp.sql
     目录           0  2018-05-16 02:43  JSH_ERP\src\
     目录           0  2018-05-16 02:43  JSH_ERP\src\main\
     目录           0  2018-05-16 02:43  JSH_ERP\src\main\java\
     目录           0  2018-05-16 02:43  JSH_ERP\src\main\java\com\
     目录           0  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\
     目录           0  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\
     目录           0  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\asset\
     文件       17897  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\asset\AssetAction.java
     文件        3929  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\asset\ReportAction.java
     目录           0  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\
     文件       26636  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\AccountAction.java
     文件       17694  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\AppAction.java
     文件        9700  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\AssetNameAction.java
     文件        8871  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\CategoryAction.java
     文件       15847  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\DepotAction.java
     文件       26039  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\FunctionsAction.java
     文件       10439  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\InOutItemAction.java
     文件        6457  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\LogAction.java
     文件       10710  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\RoleAction.java
     文件       30812  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\SupplierAction.java
     文件        4331  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\SystemConfigAction.java
     文件        9180  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\UnitAction.java
     文件       17521  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\UserAction.java
     文件        8661  2018-05-16 02:43  JSH_ERP\src\main\java\com\jsh\action\basic\UserBusinessAction.java
............此处省略1580个文件信息

评论

共有 条评论