📄 f0a235b78c00001d183ca9fc5b3b580e
字号:
/******************************************
* 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();
HibernateUtil.currentSession().beginTransaction();
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;
}
public static void main(String[] args) {
FeeForAccounter(002);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -