|
@@ -487,30 +487,9 @@ public class WZBAction
|
|
{
|
|
{
|
|
this.lmb = ((LMB)this.lmbIf.getLMBService().getLmbManager().searchByID(Long.valueOf(this.lmid)));
|
|
this.lmb = ((LMB)this.lmbIf.getLMBService().getLmbManager().searchByID(Long.valueOf(this.lmid)));
|
|
this.news = this.wzbIf.getWZBService().getWzbManager().getAllWzb(this.lmid, new String[] { "1", "2", "3", "4" });
|
|
this.news = this.wzbIf.getWZBService().getWzbManager().getAllWzb(this.lmid, new String[] { "1", "2", "3", "4" });
|
|
-
|
|
|
|
- List<WZB> list = new ArrayList();
|
|
|
|
- if ((this.news != null) && (this.news.size() > 0)) {
|
|
|
|
- for (WZB wzb : this.news)
|
|
|
|
- {
|
|
|
|
- wzb.setWznr("");
|
|
|
|
- if ("1".equals(wzb.getWzzt())) {
|
|
|
|
- wzb.setWzzt("已发布");
|
|
|
|
- } else if ("2".equals(wzb.getWzzt())) {
|
|
|
|
- wzb.setWzzt("待发布");
|
|
|
|
- } else if ("3".equals(wzb.getWzzt())) {
|
|
|
|
- wzb.setWzzt("退回状态");
|
|
|
|
- } else if ("4".equals(wzb.getWzzt())) {
|
|
|
|
- wzb.setWzzt("草稿");
|
|
|
|
- } else if ("5".equals(wzb.getWzzt())) {
|
|
|
|
- wzb.setWzzt("删除状态");
|
|
|
|
- } else if ("11".equals(wzb.getWzzt())) {
|
|
|
|
- wzb.setWzzt("已上报");
|
|
|
|
- }
|
|
|
|
- list.add(wzb);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ this.news = renderWzzt(this.news);
|
|
setJsondata(
|
|
setJsondata(
|
|
- JsonResult.listByLigerUI(list, Integer.valueOf(list.isEmpty() ? 0 : list.size())).toString());
|
|
|
|
|
|
+ JsonResult.listByLigerUI(this.news, Integer.valueOf(this.news.isEmpty() ? 0 : this.news.size())).toString());
|
|
}
|
|
}
|
|
catch (Exception e)
|
|
catch (Exception e)
|
|
{
|
|
{
|
|
@@ -528,6 +507,7 @@ public class WZBAction
|
|
{
|
|
{
|
|
this.lmb = ((LMB)this.lmbIf.getLMBService().getLmbManager().searchByID(Long.valueOf(this.lmid)));
|
|
this.lmb = ((LMB)this.lmbIf.getLMBService().getLmbManager().searchByID(Long.valueOf(this.lmid)));
|
|
this.news = this.wzbIf.getWZBService().getWzbManager().getAllWzbForPage(this.lmid, new String[] { "1", "2", "3", "4" }, (Integer.parseInt(this.page) - 1) * 30, 30);
|
|
this.news = this.wzbIf.getWZBService().getWzbManager().getAllWzbForPage(this.lmid, new String[] { "1", "2", "3", "4" }, (Integer.parseInt(this.page) - 1) * 30, 30);
|
|
|
|
+ this.news = renderWzzt(this.news);
|
|
int count = this.wzbIf.getWZBService().getWzbManager().getAllWzbCount(this.lmid, new String[] { "1", "2", "3", "4" });
|
|
int count = this.wzbIf.getWZBService().getWzbManager().getAllWzbCount(this.lmid, new String[] { "1", "2", "3", "4" });
|
|
HttpServletResponse response = ServletActionContext.getResponse();
|
|
HttpServletResponse response = ServletActionContext.getResponse();
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
response.setContentType("text/html;charset=UTF-8");
|
|
@@ -542,6 +522,34 @@ public class WZBAction
|
|
return "data";
|
|
return "data";
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 渲染文章状态方法
|
|
|
|
+ * */
|
|
|
|
+ public List<WZB> renderWzzt(List<WZB> news){
|
|
|
|
+ List<WZB> list = new ArrayList();
|
|
|
|
+ if ((news != null) && (news.size() > 0)) {
|
|
|
|
+ for (WZB wzb : news)
|
|
|
|
+ {
|
|
|
|
+ wzb.setWznr("");
|
|
|
|
+ if ("1".equals(wzb.getWzzt())) {
|
|
|
|
+ wzb.setWzzt("已发布");
|
|
|
|
+ } else if ("2".equals(wzb.getWzzt())) {
|
|
|
|
+ wzb.setWzzt("待发布");
|
|
|
|
+ } else if ("3".equals(wzb.getWzzt())) {
|
|
|
|
+ wzb.setWzzt("退回状态");
|
|
|
|
+ } else if ("4".equals(wzb.getWzzt())) {
|
|
|
|
+ wzb.setWzzt("草稿");
|
|
|
|
+ } else if ("5".equals(wzb.getWzzt())) {
|
|
|
|
+ wzb.setWzzt("删除状态");
|
|
|
|
+ } else if ("11".equals(wzb.getWzzt())) {
|
|
|
|
+ wzb.setWzzt("已上报");
|
|
|
|
+ }
|
|
|
|
+ list.add(wzb);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return list;
|
|
|
|
+ }
|
|
|
|
+
|
|
public String filelist()
|
|
public String filelist()
|
|
{
|
|
{
|
|
this.list = (this.list == null ? new ArrayList() : this.list);
|
|
this.list = (this.list == null ? new ArrayList() : this.list);
|
|
@@ -803,11 +811,13 @@ public class WZBAction
|
|
{
|
|
{
|
|
try
|
|
try
|
|
{
|
|
{
|
|
- this.news = this.wzbIf.getWZBService().getWzbManager().searchWzb(this.searchWzbt);
|
|
|
|
|
|
+ this.news = this.wzbIf.getWZBService().getWzbManager().searchWzb(this.lmid, this.searchWzbt);
|
|
|
|
+ this.news = renderWzzt(this.news);
|
|
setJsondata(
|
|
setJsondata(
|
|
JsonResult.listByLigerUI(this.news, Integer.valueOf(this.news.isEmpty() ? 0 : this.news.size())).toString());
|
|
JsonResult.listByLigerUI(this.news, Integer.valueOf(this.news.isEmpty() ? 0 : this.news.size())).toString());
|
|
- /**添加日志 1查询**/
|
|
|
|
- yhrzbManager.saveLog(1,wzb,lmbIf);
|
|
|
|
|
|
+ this.lmidStr = this.lmid+"";
|
|
|
|
+// /*添加日志 1查询**/
|
|
|
|
+// yhrzbManager.saveLog(1,wzb,lmbIf);
|
|
}
|
|
}
|
|
catch (Exception e)
|
|
catch (Exception e)
|
|
{
|
|
{
|