erpweb/src/com/oa/actions/NewAction.java
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.oa.actions;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.struts2.ServletActionContext;
import com.oa.models.TIn;
import com.oa.models.TNew;
import com.oa.services.NewServices;
import com.oa.utils.PageInfo;
/**
*
*
* 功能:入库配料管理
*
*/
public class NewAction extends BaseAction{
private NewServices newServices;
private Integer id;
private String materialname;
private Integer num;
private Integer upnum;
private String inputdate;
private String searchname;
private String newid;
private String flag;
/**
*
*
* 功能:入库配料查看
*
*/
public String queryNew() throws Exception{
if (getSessionAttribute("querypageunit") == null) {
setSessionAttribute("querypageunit",this.pageunit);
}
StringBuffer cond = new StringBuffer();
if(null!=searchname&&""!=searchname.trim()){
cond.append(" and a.materialname like '%"+searchname.trim()+"%' ");
}
if(flag!=null&&"a".equals(flag)){
cond.append(" and a.num<a.upnum ");
}
int curpage = Integer.parseInt(this.getCurrentpage(ServletActionContext.getRequest()));
int pageunit = Integer.parseInt(this.getPageunit(ServletActionContext.getRequest(), "querypageunit"));
String url = "";
if(flag!=null&&"a".equals(flag)){
url = "new_queryNew?flag=a";
}else{
url = "new_queryNew?a=a";
}
PageInfo pageInfo = this.newServices.queryNew(curpage,
pageunit, ServletActionContext.getRequest(), url, cond.toString());
setRequestAttribute("pageinfo", pageInfo);
setRequestAttribute("searchname", this.searchname);
if(flag!=null&&"a".equals(flag)){
return "queryNewa";
后面还有 171 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。