|
@@ -512,10 +512,101 @@ public class WorkClientInfoController extends BaseController {
|
|
|
model.addAttribute("page", page);
|
|
|
return "modules/sys/gridselect1";
|
|
|
}
|
|
|
-
|
|
|
+ //施工方联系人
|
|
|
@RequestMapping("clientInfolist")
|
|
|
public String queryClientInfolist(WorkClientInfo clientInfo, String url, String fieldLabels, String fieldKeys, String searchLabel, String searchKey, String searchLabel1, String searchKey1, HttpServletRequest request, HttpServletResponse response, Model model){
|
|
|
- Page<WorkClientInfo> page = workClientInfoService.findPage(new Page<WorkClientInfo>(request, response), clientInfo);
|
|
|
+ Page<WorkClientInfo> page = workClientInfoService.findPageUnit(new Page<WorkClientInfo>(request, response), clientInfo);
|
|
|
+ try {
|
|
|
+ fieldLabels = URLDecoder.decode(fieldLabels, "UTF-8");
|
|
|
+ fieldKeys = URLDecoder.decode(fieldKeys, "UTF-8");
|
|
|
+ searchLabel = URLDecoder.decode(searchLabel, "UTF-8");
|
|
|
+ searchKey = URLDecoder.decode(searchKey, "UTF-8");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ model.addAttribute("labelNames", fieldLabels.split("\\|"));
|
|
|
+ model.addAttribute("labelValues", fieldKeys.split("\\|"));
|
|
|
+ model.addAttribute("fieldLabels", fieldLabels);
|
|
|
+ model.addAttribute("fieldKeys", fieldKeys);
|
|
|
+ model.addAttribute("url", url);
|
|
|
+ model.addAttribute("searchLabel", searchLabel);
|
|
|
+ model.addAttribute("searchKey", searchKey);
|
|
|
+ model.addAttribute("obj", clientInfo);
|
|
|
+ model.addAttribute("page", page);
|
|
|
+ if(clientInfo.getClientType().equals("3")){
|
|
|
+ return "modules/sys/gridselectClientLink";
|
|
|
+ }else if(clientInfo.getClientType().equals("2")){
|
|
|
+ return "modules/sys/gridselectClientBuild";
|
|
|
+ }else if(clientInfo.getClientType().equals("4")){
|
|
|
+ return "modules/sys/gridselectClientSuper";
|
|
|
+ }else if(clientInfo.getClientType().equals("5")){
|
|
|
+ return "modules/sys/gridselectClientDesign";
|
|
|
+ }
|
|
|
+ return "null";
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新添加页面建设单位
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping("clientInfoBuild")
|
|
|
+ public String queryClientInfoBuild(WorkClientInfo clientInfo, String url, String fieldLabels, String fieldKeys, String searchLabel, String searchKey, String searchLabel1, String searchKey1, HttpServletRequest request, HttpServletResponse response, Model model){
|
|
|
+ Page<WorkClientInfo> page = workClientInfoService.findPageUnit(new Page<WorkClientInfo>(request, response), clientInfo);
|
|
|
+ try {
|
|
|
+ fieldLabels = URLDecoder.decode(fieldLabels, "UTF-8");
|
|
|
+ fieldKeys = URLDecoder.decode(fieldKeys, "UTF-8");
|
|
|
+ searchLabel = URLDecoder.decode(searchLabel, "UTF-8");
|
|
|
+ searchKey = URLDecoder.decode(searchKey, "UTF-8");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ model.addAttribute("labelNames", fieldLabels.split("\\|"));
|
|
|
+ model.addAttribute("labelValues", fieldKeys.split("\\|"));
|
|
|
+ model.addAttribute("fieldLabels", fieldLabels);
|
|
|
+ model.addAttribute("fieldKeys", fieldKeys);
|
|
|
+ model.addAttribute("url", url);
|
|
|
+ model.addAttribute("searchLabel", searchLabel);
|
|
|
+ model.addAttribute("searchKey", searchKey);
|
|
|
+ model.addAttribute("obj", clientInfo);
|
|
|
+ model.addAttribute("page", page);
|
|
|
+ return "modules/sys/gridselectClientBuild";
|
|
|
+ /*Page<WorkClientInfo> page = workClientInfoService.findPageUnit(new Page<WorkClientInfo>(request, response), clientInfo);
|
|
|
+ try {
|
|
|
+ fieldLabels = URLDecoder.decode(fieldLabels, "UTF-8");
|
|
|
+ fieldKeys = URLDecoder.decode(fieldKeys, "UTF-8");
|
|
|
+ searchLabel = URLDecoder.decode(searchLabel, "UTF-8");
|
|
|
+ searchKey = URLDecoder.decode(searchKey, "UTF-8");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ model.addAttribute("labelNames", fieldLabels.split("\\|"));
|
|
|
+ model.addAttribute("labelValues", fieldKeys.split("\\|"));
|
|
|
+ model.addAttribute("fieldLabels", fieldLabels);
|
|
|
+ model.addAttribute("fieldKeys", fieldKeys);
|
|
|
+ model.addAttribute("url", url);
|
|
|
+ model.addAttribute("searchLabel", searchLabel);
|
|
|
+ model.addAttribute("searchKey", searchKey);
|
|
|
+ model.addAttribute("obj", clientInfo);
|
|
|
+ model.addAttribute("page", page);
|
|
|
+ if(clientInfo.getClientType().equals("3")){
|
|
|
+ return "modules/sys/gridselectClientLink";
|
|
|
+ }else if(clientInfo.getClientType().equals("2")){
|
|
|
+ return "modules/sys/gridselectClientBuild";
|
|
|
+ }else if(clientInfo.getClientType().equals("4")){
|
|
|
+ return "modules/sys/gridselectClientSuper";
|
|
|
+ }else if(clientInfo.getClientType().equals("5")){
|
|
|
+ return "modules/sys/gridselectClientDesign";
|
|
|
+ }
|
|
|
+ return "null";*/
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新添加监理单位
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping("clientInfoSuper")
|
|
|
+ public String queryClientInfoSuper(WorkClientInfo clientInfo, String url, String fieldLabels, String fieldKeys, String searchLabel, String searchKey, String searchLabel1, String searchKey1, HttpServletRequest request, HttpServletResponse response, Model model){
|
|
|
+ Page<WorkClientInfo> page = workClientInfoService.findPageUnit(new Page<WorkClientInfo>(request, response), clientInfo);
|
|
|
try {
|
|
|
fieldLabels = URLDecoder.decode(fieldLabels, "UTF-8");
|
|
|
fieldKeys = URLDecoder.decode(fieldKeys, "UTF-8");
|
|
@@ -533,9 +624,60 @@ public class WorkClientInfoController extends BaseController {
|
|
|
model.addAttribute("searchKey", searchKey);
|
|
|
model.addAttribute("obj", clientInfo);
|
|
|
model.addAttribute("page", page);
|
|
|
- return "modules/sys/gridselectClientLink";
|
|
|
+ return "modules/sys/gridselectClientSuper";
|
|
|
}
|
|
|
|
|
|
+ //设计方联系人
|
|
|
+ @RequestMapping("clientInfoDesign")
|
|
|
+ public String queryClientInfoDesign(WorkClientInfo clientInfo, String url, String fieldLabels, String fieldKeys, String searchLabel, String searchKey, String searchLabel1, String searchKey1, HttpServletRequest request, HttpServletResponse response, Model model){
|
|
|
+ Page<WorkClientInfo> page = workClientInfoService.findPageUnit(new Page<WorkClientInfo>(request, response), clientInfo);
|
|
|
+ try {
|
|
|
+ fieldLabels = URLDecoder.decode(fieldLabels, "UTF-8");
|
|
|
+ fieldKeys = URLDecoder.decode(fieldKeys, "UTF-8");
|
|
|
+ searchLabel = URLDecoder.decode(searchLabel, "UTF-8");
|
|
|
+ searchKey = URLDecoder.decode(searchKey, "UTF-8");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ model.addAttribute("labelNames", fieldLabels.split("\\|"));
|
|
|
+ model.addAttribute("labelValues", fieldKeys.split("\\|"));
|
|
|
+ model.addAttribute("fieldLabels", fieldLabels);
|
|
|
+ model.addAttribute("fieldKeys", fieldKeys);
|
|
|
+ model.addAttribute("url", url);
|
|
|
+ model.addAttribute("searchLabel", searchLabel);
|
|
|
+ model.addAttribute("searchKey", searchKey);
|
|
|
+ model.addAttribute("obj", clientInfo);
|
|
|
+ model.addAttribute("page", page);
|
|
|
+ return "modules/sys/gridselectClientDesign";
|
|
|
+ /*Page<WorkClientInfo> page = workClientInfoService.findPageUnit(new Page<WorkClientInfo>(request, response), clientInfo);
|
|
|
+ try {
|
|
|
+ fieldLabels = URLDecoder.decode(fieldLabels, "UTF-8");
|
|
|
+ fieldKeys = URLDecoder.decode(fieldKeys, "UTF-8");
|
|
|
+ searchLabel = URLDecoder.decode(searchLabel, "UTF-8");
|
|
|
+ searchKey = URLDecoder.decode(searchKey, "UTF-8");
|
|
|
+ } catch (UnsupportedEncodingException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ model.addAttribute("labelNames", fieldLabels.split("\\|"));
|
|
|
+ model.addAttribute("labelValues", fieldKeys.split("\\|"));
|
|
|
+ model.addAttribute("fieldLabels", fieldLabels);
|
|
|
+ model.addAttribute("fieldKeys", fieldKeys);
|
|
|
+ model.addAttribute("url", url);
|
|
|
+ model.addAttribute("searchLabel", searchLabel);
|
|
|
+ model.addAttribute("searchKey", searchKey);
|
|
|
+ model.addAttribute("obj", clientInfo);
|
|
|
+ model.addAttribute("page", page);
|
|
|
+ if(clientInfo.getClientType().equals("3")){
|
|
|
+ return "modules/sys/gridselectClientLink";
|
|
|
+ }else if(clientInfo.getClientType().equals("2")){
|
|
|
+ return "modules/sys/gridselectClientBuild";
|
|
|
+ }else if(clientInfo.getClientType().equals("4")){
|
|
|
+ return "modules/sys/gridselectClientSuper";
|
|
|
+ }else if(clientInfo.getClientType().equals("5")){
|
|
|
+ return "modules/sys/gridselectClientDesign";
|
|
|
+ }
|
|
|
+ return "null";*/
|
|
|
+ }
|
|
|
@ResponseBody
|
|
|
@RequestMapping("checkUscCode")
|
|
|
public String checkUscCode(String uscCode,String oldUscCode){
|