📄 clientselectkhxx.java~4~
字号:
package com.webtier.queryInformation;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import com.domain.KhxxForm;
import com.service.KhxxFacade;
import com.service.KhxxFacadeImpl;
import com.domain.KhxxForm;
import com.tool.Chinese;
import java.util.List;
import com.domain.SkhfkForm;
//根据名称去查询
public class ClientSelectKhxx
extends Action {
private KhxxFacade facade = null;
public ClientSelectKhxx() {
this.facade = new KhxxFacadeImpl();
}
public ActionForward perform(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) {
SkhfkForm skhfkForm = (SkhfkForm) actionForm;
KhxxForm khxxForm = (KhxxForm) actionForm;
List mc = (List) httpServletRequest.getAttribute("khmc");
for(int i=0;i<mc.size();i++){
SkhfkForm form=(SkhfkForm)mc.get(i);
System.out.println("mc"+mc);
khxxForm.setKhxx_mc(Chinese.str(form.getKhfk_khmc()));
httpServletRequest.setAttribute("form", this.facade.khxxMc(khxxForm));
}
return actionMapping.findForward("clientSelectKhxx");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -