• 大小: 14.21MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-06-14
  • 语言: Java
  • 标签: javaerp  

资源简介

java 销存源码,功能完整,实用,可二次开发,也可直接布署使用!

资源截图

代码片段和文件信息

package com.jsh.action.asset;

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

import net.sf.json.JSONArray;
import net.sf.json.JSONobject;

import org.springframework.dao.DataAccessException;

import com.jsh.base.baseAction;
import com.jsh.base.Log;
import com.jsh.util.AssetConstants;
import com.jsh.util.JshException;
import com.jsh.model.po.Asset;
import com.jsh.model.po.Assetname;
import com.jsh.model.po.Basicuser;
import com.jsh.model.po.Logdetails;
import com.jsh.model.po.Supplier;
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.PageUtil;
import com.jsh.util.Tools;

@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.ge

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-03-29 11:34  JSH_ERP\
     文件         214  2018-03-29 11:34  JSH_ERP\.gitignore
     文件       11357  2018-03-29 11:34  JSH_ERP\LICENSE
     文件        2622  2018-03-29 11:34  JSH_ERP\README.md
     文件       11273  2018-03-29 11:34  JSH_ERP\pom.xml
     目录           0  2018-03-29 11:34  JSH_ERP\sql\
     文件      651882  2018-03-29 11:34  JSH_ERP\sql\jsh_erp.sql
     目录           0  2018-03-29 11:34  JSH_ERP\src\
     目录           0  2018-03-29 11:34  JSH_ERP\src\main\
     目录           0  2018-03-29 11:34  JSH_ERP\src\main\java\
     目录           0  2018-03-29 11:34  JSH_ERP\src\main\java\com\
     目录           0  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\
     目录           0  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\
     目录           0  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\asset\
     文件       18273  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\asset\AssetAction.java
     文件        3905  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\asset\ReportAction.java
     目录           0  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\
     文件       27421  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\AccountAction.java
     文件       17133  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\AppAction.java
     文件       10099  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\AssetNameAction.java
     文件        8734  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\CategoryAction.java
     文件       13063  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\DepotAction.java
     文件       22362  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\FunctionsAction.java
     文件       10798  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\InOutItemAction.java
     文件        6392  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\LogAction.java
     文件       10403  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\RoleAction.java
     文件       30810  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\SupplierAction.java
     文件        4278  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\SystemConfigAction.java
     文件        7654  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\UnitAction.java
     文件       16481  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\UserAction.java
     文件        8578  2018-03-29 11:34  JSH_ERP\src\main\java\com\jsh\action\basic\UserBusinessAction.java
............此处省略1580个文件信息

评论

共有 条评论

相关资源