dlgSearchSpotDept_Change.jsp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <%--
  2. - FileName : dlgSearchSpotDept_Change.jsp
  3. - Author(s) : gyeongmo an
  4. - Date : 2014-07-11
  5. - Copyright : Copyright (c) 2014 www.udapsoft.co.kr, Inc.
  6. -
  7. - Description:
  8. --%>
  9. <%@ page contentType="text/html; charset=utf-8" %>
  10. <%@ page import="kr.co.hsnc.common.util.*"%>
  11. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  12. <%
  13. ctx.init(request, response);
  14. ValueObject user = ctx.getUser();
  15. ValueObject params = ctx.getParams();
  16. boolean success = false;
  17. String site_code = params.get("site_code");
  18. String dept_nm = params.get("dept_nm");
  19. //String site_ac_unit_cd = params.get("site_ac_unit_cd");
  20. if( ! site_code.equals("") && ! dept_nm.equals("") )
  21. {
  22. user.set("dept_cd" , site_code);//코드
  23. user.set("dept_nm", dept_nm);//명
  24. //user.set("site_ac_unit_cd", site_ac_unit_cd);//사업부
  25. success = true;
  26. }
  27. %>
  28. <%
  29. if( success ) {
  30. %>
  31. <SCRIPT language="javascript">
  32. parent.doSelect();
  33. </SCRIPT>
  34. <%
  35. }
  36. else {
  37. %>
  38. <SCRIPT language="javascript">
  39. dlgAlert("현장변경 실패하였습니다.");
  40. </SCRIPT>
  41. <% } %>