30337c058c00001d183ca9fc5b3b580e

来自「实训时做的物流系统」· 代码 · 共 63 行

TXT
63
字号
/******************************************
 *   author@ZhanLiangfei                  *
 *   2008-04-02                           *
 *   本类实现商务部门对费用(委托单)的各项操作方法 *
 ******************************************/  
package com.cost.biz;
import java.util.List;
import org.apache.struts.action.ActionErrors;
import com.cost.persistence.util.HibernateUtil;
import com.cost.persistence.hibernate.pojo.Order;

public class FeeOperate implements java.io.Serializable {

	public static List FeeForAccounter(int userid){
		/*根据账单员ID查询所有本人提交的委托单,并返回list型查询结果*/
		List list = HibernateUtil.currentSession().createQuery
		("from order where userinfoByUserId='"+userid+"'").list();
		return list;
	}
	public static List FeeWaitForCheck(){
		/*查询数据库中所有状态为"待稽核"的费用单(委托单),返回list型查询结果*/
		List list = HibernateUtil.currentSession().createQuery
		("from Order where cancleState='0'").list();
		return list;
	}
	public List FeeWaitForRecord(){
		List list = HibernateUtil.currentSession().createQuery
		("from Order where cancleState='1'").list();
		return list;
	}
	public List FeeWaitForCancle(){
		List list = HibernateUtil.currentSession().createQuery
		("from Order where cancleState='2'").list();
		return list;
	}
	public Order FeeView(String orderNo){
		List list = HibernateUtil.currentSession().createQuery
		("from Order where orderNo='"+orderNo+"'").list();
		Order order = (Order)list.get(0);
		return order;
	}
    public ActionErrors FeeAdd(){
    	ActionErrors errors = new ActionErrors();
    	return errors;
    }
    public ActionErrors FeeUpdate(){
    	ActionErrors errors = new ActionErrors();
    	return errors;
    }
	public ActionErrors FeeCheck(){
    	ActionErrors errors = new ActionErrors();
    	return errors;
    }
    public ActionErrors FeeRecord(){
    	ActionErrors errors = new ActionErrors();
    	return errors;
    }
    public ActionErrors FeeCancle(){
    	ActionErrors errors = new ActionErrors();
    	return errors;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?