Refresh the "handled/To-Do items" of ufida oa and retain the query conditions.

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.