There are still a lot of problems with this OA. This is a temporary modification for emergency use some time ago (no official patches have been provided yet ), this modification allows "handled/To-Do items" to retain the last query conditions and take effect after refreshing.
Modify the file: yyoa/infomgr/processinfo/toolbar. jsp
Change the content of the two TD versions starting with 659th:
<TD>
<%
String _ condition _ = "";
If (session. getattribute ("_ search_condtion __")! = NULL)
_ Condition _ = (string) Session. getattribute ("_ search_condtion __");
%>
<Select name = "myselect" onchange = shownext () style = "width: 120">
<Option value = "title"> -- select a query condition -- </option>
<Option value = "title" <% = (_ condition _. Equals ("title ")? "Selected": "") %> title </option>
<Option value = "imp_id" <% = (_ condition _. Equals ("imp_id ")? "Selected": "") %> importance </option>
<Option value = "creater" <% = (_ condition _. Equals ("creater ")? "Selected": "") %> initiator </option>
<Option value = "createday" <% = (_ condition _. Equals ("createday ")? "Selected": "") %> launch date </option>
</SELECT>
</TD>
<TD>
<Div id = "mydiv"> <input type = "text" name = "textfield" style = "width: 100" onkeydown = "javascript: If (event. keycode = 13) return false; "value =" <% = session. getattribute ("_ search_condtion_value __")! = NULL? (String) Session. getattribute ("_ search_condtion_value _"): "" %> "> </div>
</TD>
Modify the file: yyoa/infomgr/processinfo/docmgrhome. jsp
Modified content:
String condition = request. getparameter ("myselect ");
String conditionvalue = request. getparameter ("textfield ");
String conditionvalue1 = request. getparameter ("textfield1 ");
If (conditionvalue1! = NULL)
Conditionvalue + = ";" + conditionvalue1;
If (condition = NULL)
Condition = "";
Insert and modify the code:
String condition = request. getparameter ("myselect ");
String conditionvalue = request. getparameter ("textfield ");
String conditionvalue1 = request. getparameter ("textfield1 ");
// Peng Guohui ---------
If (condition! = NULL)
Session. setattribute ("_ search_condtion _", condition );
Else if (session. getattribute ("_ search_condtion __")! = NULL)
Condition = (string) Session. getattribute ("_ search_condtion __");
If (conditionvalue! = NULL)
Session. setattribute ("_ search_condtion_value _", conditionvalue );
Else if (session. getattribute ("_ search_condtion_value __")! = NULL)
Conditionvalue = (string) Session. getattribute ("_ search_condtion_value __");
If (conditionvalue1! = NULL)
Session. setattribute ("_ search_condtion_value1 _", conditionvalue );
Else if (session. getattribute ("_ search_condtion_value1 __")! = NULL)
Conditionvalue1 = (string) Session. getattribute ("_ search_condtion_value1 __");
//------------------------
If (conditionvalue1! = NULL)
Conditionvalue + = ";" + conditionvalue1;
If (condition = NULL)
Condition = "";
This modification also has two problems:
1. When the selected query condition is "launch date", only the start date and end date are displayed after the refresh.
2. When the selected query condition is "important program", the refresh is not displayed in the drop-down box, and the input box contains numbers.
These two query conditions are not used much and you don't want to modify them.
This article is for personal retention only. You are not allowed to repost, reference, or comment!