render("index.html");
}
public void add() {
Long id = getParaToLong(0, 0L);
Long pid = getParaToLong(1, 0L);
Partment partment=new Partment();
if(id!=null&&id!=0){
partment=Partment.dao.findById(id);
}
partment.set("pid",pid);
setAttr("pojo",partment);
setAttr(OrgSelectTarget.targetName,new OrgSelectTarget());
setAttr(PartmentSelectTarget.targetName,new PartmentSelectTarget());
setAttr(EmployeeSelectTarget.targetName,new EmployeeSelectTarget());
render("add.html");