"src/main/webapp/upload/article/1/1461383921888.jpeg" did not exist on "c9bf4f7e66b8fafcfe4ad7ff795c691daab54f8b"
Commit 86df29f6 authored by 季圣华's avatar 季圣华
Browse files

no commit message

parent b8a2b074
package com.jsh.dao.materials;
import com.jsh.base.BaseIDAO;
import com.jsh.util.JshException;
import com.jsh.model.po.AccountItem;
import com.jsh.util.PageUtil;
public interface AccountItemIDAO extends BaseIDAO<AccountItem>
{
}
......@@ -3,11 +3,11 @@ package com.jsh.dao.materials;
import org.hibernate.Query;
import com.jsh.base.BaseDAO;
import com.jsh.exception.JshException;
import com.jsh.util.JshException;
import com.jsh.model.po.DepotHead;
import com.jsh.model.po.UserBusiness;
import com.jsh.util.common.PageUtil;
import com.jsh.util.common.SearchConditionUtil;
import com.jsh.util.PageUtil;
import com.jsh.util.SearchConditionUtil;
public class DepotHeadDAO extends BaseDAO<DepotHead> implements DepotHeadIDAO
{
......
package com.jsh.dao.materials;
import com.jsh.base.BaseIDAO;
import com.jsh.exception.JshException;
import com.jsh.util.JshException;
import com.jsh.model.po.DepotHead;
import com.jsh.model.po.UserBusiness;
import com.jsh.util.common.PageUtil;
import com.jsh.util.PageUtil;
public interface DepotHeadIDAO extends BaseIDAO<DepotHead>
{
......
......@@ -3,11 +3,11 @@ package com.jsh.dao.materials;
import org.hibernate.Query;
import com.jsh.base.BaseDAO;
import com.jsh.exception.JshException;
import com.jsh.util.JshException;
import com.jsh.model.po.DepotHead;
import com.jsh.model.po.DepotItem;
import com.jsh.util.common.PageUtil;
import com.jsh.util.common.SearchConditionUtil;
import com.jsh.util.PageUtil;
import com.jsh.util.SearchConditionUtil;
public class DepotItemDAO extends BaseDAO<DepotItem> implements DepotItemIDAO
{
......
package com.jsh.dao.materials;
import com.jsh.base.BaseIDAO;
import com.jsh.exception.JshException;
import com.jsh.util.JshException;
import com.jsh.model.po.DepotHead;
import com.jsh.model.po.DepotItem;
import com.jsh.util.common.PageUtil;
import com.jsh.util.PageUtil;
public interface DepotItemIDAO extends BaseIDAO<DepotItem>
{
......
package com.jsh.exception;
/**
* @title: 平台异常基类
* @description: 用于包装一些异常信息,打印日志等服务
* @author jishenghua
* @since: 2014-01-24
*/
@SuppressWarnings("serial")
public class JshException extends Exception
{
public long errorCode = -1;
public String message ;
public JshException()
{
super();
}
public JshException(String message)
{
super(message);
this.message = message;
}
public JshException(String message, Throwable cause)
{
super(message, cause);
this.message = message;
}
public JshException(Throwable cause)
{
super(cause);
}
public JshException(long errorCode)
{
super();
this.errorCode = errorCode;
}
public JshException(String message, long errorCode)
{
super(message);
this.errorCode = errorCode;
this.message = message;
}
public JshException(String message, long errorCode, Throwable cause)
{
super(message, cause);
this.errorCode = errorCode;
this.message = message;
}
public JshException(long errorCode, Throwable cause)
{
super(cause);
this.errorCode = errorCode;
}
public long getErrorCode()
{
return errorCode;
}
public String getMessage()
{
return message;
}
}
package com.jsh.filter.common;
import org.hibernate.FlushMode;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.dao.DataAccessResourceFailureException;
import org.springframework.orm.hibernate3.support.OpenSessionInViewFilter;
public class OpenSessionInViewFilterExtend extends OpenSessionInViewFilter
{
@Override
protected Session getSession(SessionFactory sessionFactory)
throws DataAccessResourceFailureException
{
this.setFlushMode(FlushMode.AUTO);
return super.getSession(sessionFactory);
}
@Override
protected void closeSession(Session session, SessionFactory sessionFactory)
{
session.flush();
super.closeSession(session, sessionFactory);
}
}
package com.jsh.filter.user;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* 用户登录session处理类
* 过滤session是否超时
* @author jishenghua
* @version [版本号, 2012-3-6]
* @see [相关类/方法]
* @since
*/
public class UserFilter implements Filter
{
/**
* 初始化过滤器 暂不处理
* 重载方法
* @param arg0
* @throws ServletException
*/
public void init(FilterConfig arg0)
throws ServletException
{
}
/**
* 判断用户session是否存在 不存在则跳转到登录页面
* 重载方法
* @param srequest
* @param sresponse
* @param chain
* @throws IOException
* @throws ServletException
*/
public void doFilter(ServletRequest srequest, ServletResponse sresponse, FilterChain chain)
throws IOException, ServletException
{
HttpServletRequest request = (HttpServletRequest) srequest;
HttpServletResponse response = (HttpServletResponse) sresponse;
HttpSession session = request.getSession();
// //定义登录页面不被过滤===后续考虑
// List<String> notFilterFile = new ArrayList<String>();
// notFilterFile.add("/login.jsp");
// notFilterFile.add("/logout.jsp");
// notFilterFile.add("/css/*");
// notFilterFile.add("/css/zTreeStyle/*");
// notFilterFile.add("/css/zTreeStyle/img/*");
// notFilterFile.add("/css/zTreeStyle/img/diy/*");
//获取工程路径
String path = request.getContextPath();
String requestURl = request.getRequestURI();
//提示用户没有权限操作
// response.setCharacterEncoding("utf-8");
// PrintWriter pw=response.getWriter();
// pw.write("<script language='javascript'>alert('您没有权限进行此项操作!')</script>");
//session中有值则不进行处理
if(requestURl.contains("/pages") &&null != session.getAttribute("user"))
chain.doFilter(request, response);
else
response.sendRedirect(path + "/logout.jsp");
}
/**
* 销毁过滤器
*/
public void destroy()
{
}
}
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.jsh.model.po.AccountHead" table="jsh_accounthead">
<id name="Id" type="java.lang.Long">
<column name="Id"/>
<generator class="native"/>
</id>
<property generated="never" lazy="false" name="Type" type="java.lang.String">
<column length="50" name="Type">
<comment>类型(支出/收入/收款/付款/转账)</comment>
</column>
</property>
<many-to-one name="OrganId" class="com.jsh.model.po.Supplier" lazy="false">
<column name="OrganId">
<comment>单位Id(收款/付款单位)</comment>
</column>
</many-to-one>
<many-to-one name="HandsPersonId" class="com.jsh.model.po.Person" lazy="false">
<column name="HandsPersonId">
<comment>经手人Id</comment>
</column>
</many-to-one>
<property generated="never" lazy="false" name="ChangeAmount" type="java.lang.Double">
<column name="ChangeAmount" precision="22" scale="3">
<comment>变动金额(优惠/收款/付款/实付)</comment>
</column>
</property>
<many-to-one name="AccountId" class="com.jsh.model.po.Account" lazy="false">
<column name="AccountId">
<comment>账户(收款/付款)</comment>
</column>
</many-to-one>
<property generated="never" lazy="false" name="BillNo" type="java.lang.String">
<column length="50" name="BillNo">
<comment>单据编号</comment>
</column>
</property>
<property name="BillTime" type="java.sql.Timestamp">
<column length="19" name="BillTime">
<comment>单据日期</comment>
</column>
</property>
<property generated="never" lazy="false" name="Remark" type="java.lang.String">
<column length="100" name="Remark">
<comment>备注</comment>
</column>
</property>
</class>
</hibernate-mapping>
package com.jsh.model.po;
import java.sql.Timestamp;
@SuppressWarnings("serial")
public class AccountHead implements java.io.Serializable
{
private Long Id;
private String Type;
private Supplier OrganId;
private Person HandsPersonId;
private Double ChangeAmount;
private Account AccountId;
private String BillNo;
private Timestamp BillTime;
private String Remark;
public AccountHead()
{
}
public AccountHead(Long Id)
{
this.Id = Id ;
}
public AccountHead(String type, Supplier organId,
Person handsPersonId, Double changeAmount, Account accountId,
String billNo, Timestamp billTime, String remark)
{
super();
Type = type;
OrganId = organId;
HandsPersonId = handsPersonId;
ChangeAmount = changeAmount;
AccountId = accountId;
BillNo = billNo;
BillTime = billTime;
Remark = remark;
}
public void setId(Long id)
{
Id = id;
}
public Long getId()
{
return Id;
}
public void setType(String type)
{
Type = type;
}
public String getType()
{
return Type;
}
public void setOrganId(Supplier organId)
{
OrganId = organId;
}
public Supplier getOrganId()
{
return OrganId;
}
public void setHandsPersonId(Person handsPersonId)
{
HandsPersonId = handsPersonId;
}
public Person getHandsPersonId()
{
return HandsPersonId;
}
public void setChangeAmount(Double changeAmount)
{
ChangeAmount = changeAmount;
}
public Double getChangeAmount()
{
return ChangeAmount;
}
public void setAccountId(Account accountId)
{
AccountId = accountId;
}
public Account getAccountId()
{
return AccountId;
}
public void setBillNo(String billNo)
{
BillNo = billNo;
}
public String getBillNo()
{
return BillNo;
}
public void setBillTime(Timestamp billTime)
{
BillTime = billTime;
}
public Timestamp getBillTime()
{
return BillTime;
}
public void setRemark(String remark)
{
Remark = remark;
}
public String getRemark()
{
return Remark;
}
}
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.jsh.model.po.AccountItem" table="jsh_accountitem">
<id name="Id" type="java.lang.Long">
<column name="Id"/>
<generator class="native"/>
</id>
<many-to-one name="HeaderId" class="com.jsh.model.po.AccountHead" lazy="false">
<column name="HeaderId" not-null="true">
<comment>表头Id</comment>
</column>
</many-to-one>
<many-to-one name="AccountId" class="com.jsh.model.po.Account" lazy="false">
<column name="AccountId">
<comment>账户Id</comment>
</column>
</many-to-one>
<many-to-one name="InOutItemId" class="com.jsh.model.po.InOutItem" lazy="false">
<column name="InOutItemId">
<comment>收支项目Id</comment>
</column>
</many-to-one>
<property generated="never" lazy="false" name="EachAmount" type="java.lang.Double">
<column name="EachAmount" precision="22" scale="3">
<comment>单项金额</comment>
</column>
</property>
<property generated="never" lazy="false" name="Remark" type="java.lang.String">
<column length="100" name="Remark">
<comment>单据备注</comment>
</column>
</property>
</class>
</hibernate-mapping>
package com.jsh.model.po;
@SuppressWarnings("serial")
public class AccountItem implements java.io.Serializable
{
private Long Id;
private AccountHead HeaderId;
private Account AccountId;
private InOutItem InOutItemId;
private Double EachAmount;
private String Remark;
public AccountItem()
{
}
public AccountItem(Long Id)
{
this.Id = Id ;
}
public AccountItem(AccountHead headerId, Account accountId,
InOutItem inOutItemId, Double eachAmount, String remark)
{
super();
HeaderId = headerId;
AccountId = accountId;
InOutItemId = inOutItemId;
EachAmount = eachAmount;
Remark = remark;
}
public void setId(Long id)
{
Id = id;
}
public Long getId()
{
return Id;
}
public void setHeaderId(AccountHead headerId)
{
HeaderId = headerId;
}
public AccountHead getHeaderId()
{
return HeaderId;
}
public void setAccountId(Account accountId)
{
AccountId = accountId;
}
public Account getAccountId()
{
return AccountId;
}
public void setInOutItemId(InOutItem inOutItemId)
{
InOutItemId = inOutItemId;
}
public InOutItem getInOutItemId()
{
return InOutItemId;
}
public void setEachAmount(Double eachAmount)
{
EachAmount = eachAmount;
}
public Double getEachAmount()
{
return EachAmount;
}
public void setRemark(String remark)
{
Remark = remark;
}
public String getRemark()
{
return Remark;
}
}
package com.jsh.model.vo.materials;
import java.io.Serializable;
@SuppressWarnings("serial")
public class AccountHeadModel implements Serializable
{
private AccountHeadShowModel showModel = new AccountHeadShowModel();
/**======开始接受页面参数=================**/
private String Type;
private Long OrganId;
private Long HandsPersonId;
private Double ChangeAmount;
private Long AccountId;
private String BillNo;
private String BillTime;
private String Remark;
private String BeginTime; //查询开始时间
private String EndTime; //查询结束时间
private String MonthTime; //查询月份
/**
* 分类ID
*/
private Long accountHeadID = 0l;
/**
* 分类IDs 批量操作使用
*/
private String accountHeadIDs = "";
/**
* 每页显示的个数
*/
private int pageSize = 10;
/**
* 当前页码
*/
private int pageNo = 1;
/**
* 用户IP,用户记录操作日志
*/
private String clientIp = "";
public void setShowModel(AccountHeadShowModel showModel)
{
this.showModel = showModel;
}
public AccountHeadShowModel getShowModel()
{
return showModel;
}
public void setType(String type)
{
Type = type;
}
public String getType()
{
return Type;
}
public void setOrganId(Long organId)
{
OrganId = organId;
}
public Long getOrganId()
{
return OrganId;
}
public void setHandsPersonId(Long handsPersonId)
{
HandsPersonId = handsPersonId;
}
public Long getHandsPersonId()
{
return HandsPersonId;
}
public void setChangeAmount(Double changeAmount)
{
ChangeAmount = changeAmount;
}
public Double getChangeAmount()
{
return ChangeAmount;
}
public void setAccountId(Long accountId)
{
AccountId = accountId;
}
public Long getAccountId()
{
return AccountId;
}
public void setBillNo(String billNo)
{
BillNo = billNo;
}
public String getBillNo()
{
return BillNo;
}
public void setBillTime(String billTime)
{
BillTime = billTime;
}
public String getBillTime()
{
return BillTime;
}
public void setRemark(String remark)
{
Remark = remark;
}
public String getRemark()
{
return Remark;
}
public void setBeginTime(String beginTime)
{
BeginTime = beginTime;
}
public String getBeginTime()
{
return BeginTime;
}
public void setEndTime(String endTime)
{
EndTime = endTime;
}
public String getEndTime()
{
return EndTime;
}
public void setMonthTime(String monthTime)
{
MonthTime = monthTime;
}
public String getMonthTime()
{
return MonthTime;
}
public void setAccountHeadID(Long accountHeadID)
{
this.accountHeadID = accountHeadID;
}
public Long getAccountHeadID()
{
return accountHeadID;
}
public void setAccountHeadIDs(String accountHeadIDs)
{
this.accountHeadIDs = accountHeadIDs;
}
public String getAccountHeadIDs()
{
return accountHeadIDs;
}
public void setPageSize(int pageSize)
{
this.pageSize = pageSize;
}
public int getPageSize()
{
return pageSize;
}
public void setPageNo(int pageNo)
{
this.pageNo = pageNo;
}
public int getPageNo()
{
return pageNo;
}
public void setClientIp(String clientIp)
{
this.clientIp = clientIp;
}
public String getClientIp()
{
return clientIp;
}}
package com.jsh.model.vo.materials;
import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@SuppressWarnings("serial")
public class AccountHeadShowModel implements Serializable
{
/**
* 提示信息
*/
private String msgTip = "";
/**
* 系统数据
*/
@SuppressWarnings("rawtypes")
private Map<String,List> map = new HashMap<String,List>();
public String getMsgTip()
{
return msgTip;
}
public void setMsgTip(String msgTip)
{
this.msgTip = msgTip;
}
@SuppressWarnings("rawtypes")
public Map<String, List> getMap() {
return map;
}
@SuppressWarnings("rawtypes")
public void setMap(Map<String, List> map) {
this.map = map;
}
}
package com.jsh.model.vo.materials;
import java.io.InputStream;
import java.io.Serializable;
@SuppressWarnings("serial")
public class AccountItemModel implements Serializable
{
private AccountItemShowModel showModel = new AccountItemShowModel();
/**======开始接受页面参数=================**/
private Long HeaderId;
private Long AccountId;
private Long InOutItemId;
private Double EachAmount;
private String Remark = "";
private String Inserted = ""; //json插入记录
private String Deleted = ""; //json删除记录
private String Updated = ""; //json修改记录
private String HeadIds = ""; //表头集合列表
private String MonthTime = ""; //月份
private String browserType = "";
/**
* 文件名称
*/
private String fileName = "";
/**
* 分类ID
*/
private Long accountItemID = 0l;
/**
* 分类IDs 批量操作使用
*/
private String accountItemIDs = "";
/**
* 每页显示的个数
*/
private int pageSize = 800;
/**
* 当前页码
*/
private int pageNo = 1;
/**
* 用户IP,用户记录操作日志
*/
private String clientIp = "";
/**
* 输入流,导出excel文件
*/
private InputStream excelStream;
public void setShowModel(AccountItemShowModel showModel)
{
this.showModel = showModel;
}
public AccountItemShowModel getShowModel()
{
return showModel;
}
public void setHeaderId(Long headerId)
{
HeaderId = headerId;
}
public Long getHeaderId()
{
return HeaderId;
}
public void setAccountId(Long accountId)
{
AccountId = accountId;
}
public Long getAccountId()
{
return AccountId;
}
public void setInOutItemId(Long inOutItemId)
{
InOutItemId = inOutItemId;
}
public Long getInOutItemId()
{
return InOutItemId;
}
public void setEachAmount(Double eachAmount)
{
EachAmount = eachAmount;
}
public Double getEachAmount()
{
return EachAmount;
}
public void setRemark(String remark)
{
Remark = remark;
}
public String getRemark()
{
return Remark;
}
public void setInserted(String inserted)
{
Inserted = inserted;
}
public String getInserted()
{
return Inserted;
}
public void setDeleted(String deleted)
{
Deleted = deleted;
}
public String getDeleted()
{
return Deleted;
}
public void setUpdated(String updated)
{
Updated = updated;
}
public String getUpdated()
{
return Updated;
}
public void setHeadIds(String headIds)
{
HeadIds = headIds;
}
public String getHeadIds()
{
return HeadIds;
}
public void setMonthTime(String monthTime)
{
MonthTime = monthTime;
}
public String getMonthTime()
{
return MonthTime;
}
public void setBrowserType(String browserType)
{
this.browserType = browserType;
}
public String getBrowserType()
{
return browserType;
}
public void setFileName(String fileName)
{
this.fileName = fileName;
}
public String getFileName()
{
return fileName;
}
public void setAccountItemID(Long accountItemID)
{
this.accountItemID = accountItemID;
}
public Long getAccountItemID()
{
return accountItemID;
}
public void setAccountItemIDs(String accountItemIDs)
{
this.accountItemIDs = accountItemIDs;
}
public String getAccountItemIDs()
{
return accountItemIDs;
}
public void setPageSize(int pageSize)
{
this.pageSize = pageSize;
}
public int getPageSize()
{
return pageSize;
}
public void setPageNo(int pageNo)
{
this.pageNo = pageNo;
}
public int getPageNo()
{
return pageNo;
}
public void setClientIp(String clientIp)
{
this.clientIp = clientIp;
}
public String getClientIp()
{
return clientIp;
}
public void setExcelStream(InputStream excelStream)
{
this.excelStream = excelStream;
}
public InputStream getExcelStream()
{
return excelStream;
}
}
package com.jsh.model.vo.materials;
import java.io.Serializable;
@SuppressWarnings("serial")
public class AccountItemShowModel implements Serializable
{
/**
* 提示信息
*/
private String msgTip = "";
public String getMsgTip()
{
return msgTip;
}
public void setMsgTip(String msgTip)
{
this.msgTip = msgTip;
}
}
......@@ -4,9 +4,9 @@ import java.io.File;
import java.io.InputStream;
import com.jsh.base.BaseIService;
import com.jsh.exception.JshException;
import com.jsh.util.JshException;
import com.jsh.model.po.Asset;
import com.jsh.util.common.PageUtil;
import com.jsh.util.PageUtil;
public interface AssetIService extends BaseIService<Asset>
{
......
......@@ -33,19 +33,19 @@ import org.apache.poi.ss.usermodel.Row;
import com.jsh.base.BaseService;
import com.jsh.base.Log;
import com.jsh.constants.asset.AssetConstants;
import com.jsh.util.AssetConstants;
import com.jsh.dao.asset.AssetIDAO;
import com.jsh.dao.basic.AssetNameIDAO;
import com.jsh.dao.basic.CategoryIDAO;
import com.jsh.dao.basic.SupplierIDAO;
import com.jsh.dao.basic.UserIDAO;
import com.jsh.exception.JshException;
import com.jsh.util.JshException;
import com.jsh.model.po.Asset;
import com.jsh.model.po.Assetname;
import com.jsh.model.po.Category;
import com.jsh.model.po.Supplier;
import com.jsh.util.common.PageUtil;
import com.jsh.util.common.Tools;
import com.jsh.util.PageUtil;
import com.jsh.util.Tools;
public class AssetService extends BaseService<Asset> implements AssetIService
{
......
package com.jsh.service.asset;
import com.jsh.exception.JshException;
import com.jsh.util.JshException;
import com.jsh.model.po.Asset;
import com.jsh.util.common.PageUtil;
import com.jsh.util.PageUtil;
public interface ReportIService
{
......
package com.jsh.service.asset;
import com.jsh.dao.asset.ReportIDAO;
import com.jsh.exception.JshException;
import com.jsh.util.JshException;
import com.jsh.model.po.Asset;
import com.jsh.util.common.PageUtil;
import com.jsh.util.PageUtil;
public class ReportService implements ReportIService
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment