123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553 |
- <%--
- - FileName : UserList.jsp
- - Author(s) : Joung Kyu Park
- - Date : 2007.05.16
- - Copyright : Copyright (c) 2002-2007 www.hwenc.com, Inc.
- -
- - Description: 사용자 등록
- --%>
-
- <%@ page contentType="text/html; charset=utf-8" %>
- <%@ page import="com.udapsoft.waf.system.HandlerStorage" %>
- <%@ page import="com.udapsoft.waf.common.ui.*" %>
- <%@ page import="kr.co.hsnc.common.util.*"%>
- <%@ page import="kr.co.hsnc.common.sql.*" %>
- <%@ include file="/jsp/work/taglib.jsp" %>
- <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
- <%
- ctx.init(request, response);
- HandlerStorage storage = ctx.getHandlerStorage();
- ValueObject params = storage.getParams();
- ValueObject user = storage.getUser();
- String event = storage.getEvent();
- String deptCd = user.get("site_code");
- String deptName = user.get("site_name");
- deptCd = params.get("buseo");
- RowSet materialKindCodeLv1 = storage.getRowSet("materialKindCodeLv1");
- RowSet materialKindCodeLv2 = new RowSetImpl();
- RowSet materialKindCodeLv3 = new RowSetImpl();
-
- %>
- <SCRIPT language="JavaScript">
- /*예약함수*/
- var sheet1 = new ibsheetObject();
- var sheet2 = new ibsheetObject();
- var sheet1Row;
- var sheet1PageNo = 1;
- var pageLastRowIndex = 1;
- var validationResult = false;
- var filterShow = false;
-
-
- $(document).ready(function(){
-
- var init_sheet = {};
- init_sheet.Cfg = {SearchMode:0, MergeSheet:msHeaderOnly};
-
- init_sheet.Cols = [
- {Header:"레벨", Type:"Text", TreeCol:1, LevelSaveName:"MATERIAL_LEVEL", SaveName:"MATERIAL_LEVEL" , Width:300},
- {Header:"대분류", Type:"Text", SaveName:"GUBUN_1", Width:100, Align:"Center"},
- {Header:"중분류", Type:"Text", SaveName:"GUBUN_2", Width:100, Align:"Center"},
- {Header:"소분류", Type:"Text", SaveName:"GUBUN_3", Width:100, Align:"Center"},
- {Header:"LEVEL", Type:"Text", SaveName:"LEVEL", Width:100, Align:"Center"}
- ];
-
-
- init_sheet.HeaderMode = {Sort:1};
- IBS_InitSheet(sheet1, init_sheet);
- sheet1.SetDataAutoTrim(0);
- sheet1.SetEditable(false);
- sheet1.FitColWidth();
-
-
-
-
-
-
-
- ///////////////////////////////
- var init_sheet = {};
- init_sheet.Cfg = {SearchMode:0, MergeSheet:msHeaderOnly};
-
- init_sheet.Cols = [
- {Header:'Del', Type:"DelCheck", SaveName:"DEL_CHECK", Width:30, Align:"Center"},
- {Header:'Status', Type:"Status", SaveName:"STATUS", Width:0, Align:"Center", Edit:"False", Hidden:"True"},
- {Header:"대분류", Type:"Text", SaveName:"TRAN_GUBUN_1", Width:100},
- {Header:"중분류", Type:"Text", SaveName:"TRAN_GUBUN_2", Width:100, Align:"Center"},
- {Header:"소분류", Type:"Text", SaveName:"TRAN_GUBUN_3", Width:100, Align:"Center"},
- ];
-
-
- init_sheet.HeaderMode = {Sort:1};
- IBS_InitSheet(sheet2, init_sheet);
- sheet2.SetDataAutoTrim(0);
- // sheet1.SetEditable(false);
- sheet2.FitColWidth();
-
-
- });
-
-
-
-
- $(function(){
-
- $("#btnSearch").click(function(){
-
- $("#event").val("GET_LIST");
-
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/test/TestList2_sheet.screen";
- Modular.view.IBSheet7.doSearch(sheet1, url, $("#form1"), 10000, "");
- // sheet1.DoSearch("/test/TestList_data.screen", $("#form1"));
-
- });
-
- $("#btnAdd").click(function(){
- sheet1.DataInsert(-1);
- });
-
- $("#btnSave").click(function(){
- if (confirm("저장하시겠습니까?"))
- {
- $("#event").val("SAVE_LIST");
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/test/TestList2_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
- }
- });
-
- $("#btnSave2").click(function(){
-
- var f = document.form1
- $("#event").val("SAVE_FORM");
-
- submitXmlRequest("/test/TestList_form.screen", "SAVE_FORM", f);
- // var url = Modular.model.PageContext.CONTEXT_ROOT + "/test/TestList_sheet.screen";
- // Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), 10000, false);
- });
-
-
- $("#material_Kind_Code_Lv1").change(function(){
-
- var f = document.form1;
- $("#event").val("GET_MATL_KIND_CODE_LV2");
-
- $("#materiallevel").val("2");
- $("#materialgroup").val($("#material_Kind_Code_Lv1").val());
-
- submitXmlRequest("/test/TestList2_form.screen", "GET_MATL_KIND_CODE_LV2", f, "ROWSET");
- });
-
- $("#material_Kind_Code_Lv2").change(function(){
-
- var f = document.form1;
-
- $("#event").val("GET_MATL_KIND_CODE_LV3");
-
- $("#materiallevel").val("3");
- $("#materialgroup").val($("#material_Kind_Code_Lv2").val());
-
- submitXmlRequest("/test/TestList2_form.screen", "GET_MATL_KIND_CODE_LV3", f, "ROWSET");
- });
-
- });
-
-
-
-
- // 자재분류 첫번째 SELECT BOX onChange 이벤트
- // function doChangeMaterialKind() {
- // document.form1.materiallevel.value = "2";
- // document.form1.materialgroup.value = document.form1.material_Kind_Code_Lv1_id.value;
- // submitXmlRequest("/pur/common/MatlCodeSelectAllPopup_process.screen", "GET_MATL_KIND_CODE_LV2", document.form1, "VALUEOBJECT");
-
- // }
-
-
-
-
- function sheet1_OnDblClick(Row, Col, Value)
- {
- var rowIndex = "";
- var sheetObj = document.all.sheet1;
-
-
- if(sheet1.GetCellValue(Row, "LEVEL") == "2")
- {
- rowIndex = sheet2.DataInsert(-1);
- sheet2.SetCellValue(rowIndex, "TRAN_GUBUN_1", sheet1.GetCellValue(Row, "GUBUN_1"));
- sheet2.SetCellValue(rowIndex, "TRAN_GUBUN_2", sheet1.GetCellValue(Row, "GUBUN_2"));
- sheet2.SetCellValue(rowIndex, "TRAN_GUBUN_3", sheet1.GetCellValue(Row, "GUBUN_3"));
- }
- else
- {
- // dlgAlert("ㅁㄴ야ㅕ모뉴야ㅕㅁ뉴야며늉먄유");
- alert("소분류를 선택해 주세요.");
- }
- }
-
-
- function sheet2_OnDblClick(Row, Col, Value)
- {
- var rowIndex = "";
- var sheetObj = document.all.sheet1;
-
- sheet2.SetCellValue(1, 0, "D");
- }
-
-
- function doResult(resultObj) {
- try {
- if( resultObj.getRequestEvent() == "SAVE_FORM") {
- if( resultObj.getSuccess() ) {
- alert("Process is completed.");
- // goListProc();
- location.reload();
- }
- else {
- dlgErrorMsg(resultObj);
- }
- // document.form1.isSubmit = false;
- }
- else if ( resultObj.getRequestEvent() == "GET_MATL_KIND_CODE_LV2" )
- {
- if ( resultObj.getSuccess() == true )
- {
- var rowSet = resultObj.getRowSet();
-
- $("#material_Kind_Code_Lv2").empty().data("options");
- $("#material_Kind_Code_Lv2").append("<option value=''>-- 전체 --</option>");
-
- for ( var i = 0; i < rowSet.getRowSize(); i++ )
- {
- $("#material_Kind_Code_Lv2").append("<option value='"+rowSet.getColValue( i, 1 )+"'>"+rowSet.getColValue( i, 1 ) + " : " + rowSet.getColValue( i, 2 )+"</option>");
- }
-
-
- if($("#material_Kind_Code_Lv1").val() == "")
- {
- $("#material_Kind_Code_Lv2").empty().data("options");
- $("#material_Kind_Code_Lv2").append("<option value=''>-- 전체 --</option>");
- }
-
- if($("#material_Kind_Code_Lv3").val() == "")
- {
- $("#material_Kind_Code_Lv3").empty().data("options");
- $("#material_Kind_Code_Lv3").append("<option value=''>-- 전체 --</option>");
- }
-
- document.form1.isSubmit = false;
-
- } else {
- dlgErrorMsg(resultObj);
- }
- }
- else if ( resultObj.getRequestEvent() == "GET_MATL_KIND_CODE_LV3" )
- {
- if ( resultObj.getSuccess() == true )
- {
- var rowSet = resultObj.getRowSet();
-
- $("#material_Kind_Code_Lv3").empty().data("options");
- $("#material_Kind_Code_Lv3").append("<option value=''>-- 전체 --</option>");
-
- for ( var i = 0; i < rowSet.getRowSize(); i++ )
- {
- $("#material_Kind_Code_Lv3").append("<option value='"+rowSet.getColValue( i, 1 )+"'>"+rowSet.getColValue( i, 1 ) + " : " + rowSet.getColValue( i, 2 )+"</option>");
- }
-
- if($("#material_Kind_Code_Lv2").val() == "")
- {
- $("#material_Kind_Code_Lv3").empty().data("options");
- $("#material_Kind_Code_Lv3").append("<option value=''>-- 전체 --</option>");
- }
-
- document.form1.isSubmit = false;
- }
- else
- {
- dlgErrorMsg(resultObj);
- }
- }
- }
- catch(errorObject) {
- showErrorDlg("doResult()", errorObject);
- }
- }
-
- function injectSelect(vo, selectObj, code, value){
- var Code = vo.get(code);
- var Value = vo.get(value);
- var arrCd = Code.split('|');
- var arrValue = Value.split('|');
- while(selectObj.options.length){
- selectObj.remove(0);
- }
-
- var newOpt;
- newOpt = document.createElement('option');
- newOpt.text = "-- 전체 --";
- newOpt.value = "";
- selectObj.options.add(newOpt);
-
- if (arrCd == '') {
- selectObj.length = 1;
-
- } else {
- for(var i = 0; i < arrCd.length; i++){
- newOpt = document.createElement('option');
- newOpt.text = arrValue[i] + " : " + arrCd[i];
- newOpt.value = arrValue[i];
- selectObj.options.add(newOpt);
- }
- }
- }
-
-
-
- function sheet1_OnSaveEnd(code, msg)
- {
- var event = $("#event").val();
-
- if(code >= "0")
- {
- dlgAlert("등록되었습니다.");
- }
- else
- {
- dlgAlert("등록실패.");
- }
-
- $("#event").val("GET_LIST");
-
- // // var url = Modular.model.PageContext.CONTEXT_ROOT + "/test/TestList_sheet.screen";
- // Modular.view.IBSheet7.doSearch(sheet1, url, $("#form1"), 10000, "");
- }
-
-
-
- </SCRIPT>
- <modular:search id="form1">
- <modular:key id="event" />
- </modular:search>
- <form id="form1" name="form1" method="post" modular:type="search">
- <TABLE border="0" cellspacing="0" cellpadding="0" width="100%">
- <TR><TD height="1" colspan="2">
- <INPUT type="hidden" name="p_user_sabun" value="">
- <INPUT type="hidden" name="event" id="event" value="">
- <INPUT type="hidden" name="p_user_pw" value="">
- <INPUT type="hidden" name="p_buseo_nm" value="">
- <INPUT type="hidden" name="p_job_dscr" value="">
- <INPUT type="hidden" name="p_tel_no" value="">
- <INPUT type="hidden" name="p_hand_tel_no" value="">
- <INPUT type="hidden" name="p_e_mail" value="">
- <INPUT type="hidden" name="p_user_name" value="">
- <INPUT type="hidden" name="acct_id" value="">
- <INPUT type="hidden" name="j_usertype" value="head">
- <input type="hidden" name="login_id" >
- <input type="hidden" name="login_pw" >
- <INPUT type="hidden" name="j_admin_login_gb" value="Y">
- <!-- material seledct box -->
- <input type="hidden" id="materialgroup" name="materialgroup" value="">
- <input type="hidden" id="materiallevel" name="materiallevel" value="">
- <TABLE class="screen_title_table">
- <TR height="2"><TD colspan="2"></TD></TR>
- <TR height="25">
- <TD width="16" valign="middle"><IMG src="/img/buyer/template/bullet_03.gif" ></TD>
- <TD width="100%" class="screen_title_text">TEST</TD>
- </TR>
- </TABLE>
- </TD></TR>
- <!-- 검색조건 영역 : 시작 -->
- <TR><TD height="1" colspan="2">
- <TABLE cellspacing="1" cellpadding="0" class="search_table">
- <TR height="25">
- <!-- 검색조건 타이틀 1 -->
-
- <TD width="10%" class="search_table_title">
- <img src="/img/buyer/button/bullet_01.gif" align="middle">Dept
- </TD>
- <TD width="30%" class="search_table_data">
-
- <%= HTMLMaker.getSelectTag(materialKindCodeLv1, "materialgroup", "materialgroupname" , "material_Kind_Code_Lv1", "style='width:30%;height=18;'", "<OPTION value=''>-- 전체 --</OPTION>", "", 0) %>
-
- <%= HTMLMaker.getSelectTag(materialKindCodeLv2, "materialgroup", "materialgroupname" , "material_Kind_Code_Lv2", "style='width:30%;height=18;'", "<OPTION value=''>-- 전체 --</OPTION>", "", 0) %>
-
- <%= HTMLMaker.getSelectTag(materialKindCodeLv3, "materialgroup", "materialgroupname" , "material_Kind_Code_Lv3", "style='width:30%;height=18;'", "<OPTION value=''>-- 전체 --</OPTION>", "", 0) %>
-
- </TD>
- <TD width="8%" class="search_table_title">
- <img src="/img/buyer/button/bullet_01.gif" align="middle">Account Type
- </TD>
- <TD witdh="5%" class="search_table_data">
- <input type="text" name="type" id="type" value=""/>
- </TD>
- <TD width="8%" class="search_table_title">
- <img src="/img/buyer/button/bullet_01.gif" align="middle">Emp. No.
- </TD>
- <TD width="10%" class="search_table_data">
-
- <%= InputText.get("user_sabun", "", 80, 50, "hangule, desc=사번, PerSize") %>
- </TD>
- <TD width="20%" rowspan="3" class="search_button">
-
- <!-- 검색버튼 영역 : 시작 -->
- <TABLE border="0" cellpadding="0" cellspacing="0" align="center">
- <TR>
- <!-- 초기화버튼 : 시작 -->
-
- <TD>
- <DIV id="btnSearch" class="button_style">
- <TABLE border="0" cellpadding="0" cellspacing="0">
- <TR>
- <TD class="button_left1"></TD>
- <TD class="button_text1">Search </TD>
- <TD class="button_right"></TD>
- </TR>
- </TABLE>
- </DIV>
- </TD>
- <!-- 초기화버튼 : 종료 -->
-
- <!-- 검색버튼 구분 여백 : 시작 -->
- <TD width="5"></TD>
- <!-- 검색버튼 구분 여백 : 종료 -->
-
- <!-- 검색버튼 : 시작 -->
- <TD>
- <DIV id="btnSave" class="button_style">
- <TABLE border="0" cellpadding="0" cellspacing="0">
- <TR>
- <TD class="button_left1"></TD>
- <TD class="button_text1">Save </TD>
- <TD class="button_right"></TD>
- </TR>
- </TABLE>
- </DIV>
- <DIV id="btnSave2" class="button_style">
- <TABLE border="0" cellpadding="0" cellspacing="0">
- <TR>
- <TD class="button_left1"></TD>
- <TD class="button_text1">Save2 </TD>
- <TD class="button_right"></TD>
- </TR>
- </TABLE>
- </DIV>
- </TD>
- <!-- 검색버튼 : 종료 -->
-
- <!-- 검색버튼 구분 여백 : 시작 -->
- <TD width="5"></TD>
- <!-- 검색버튼 구분 여백 : 종료 -->
-
- <!-- 검색버튼 : 시작 -->
- <TD>
- <DIV id="btnAdd" class="button_style">
- <TABLE border="0" cellpadding="0" cellspacing="0">
- <TR>
- <TD class="button_left1"></TD>
- <TD class="button_text1">Add </TD>
- <TD class="button_right"></TD>
- </TR>
- </TABLE>
- </DIV>
- </TD>
- <TD width="5"></TD>
- <TD>
- <DIV onclick="getEhr();" class="button_style"> <!-- SP_GET_EHR_EMPDATA 프로시져 호출-->
- <TABLE border="0" cellpadding="0" cellspacing="0">
- <TR>
- <TD class="button_left1"></TD>
- <TD class="button_text1">EHR Sync </TD>
- <TD class="button_right"></TD>
- </TR>
- </TABLE>
- </DIV>
- </TD>
- </TR>
- </TABLE>
- <!-- 검색버튼 영역 : 종료 -->
- </TD>
- </TR>
- <TR height="25">
- <!-- 검색조건 타이틀 1 -->
- <TD width="8%" class="search_table_title">
- <img src="/img/buyer/button/bullet_01.gif" align="middle">Site
- </TD>
- <TD witdh="15%" class="search_table_data">
-
- <INPUT type="text" name="dept_cd" class="input" value="" readOnly style="width:30%;background-color: #dedede;" >
- <INPUT type="text" name="dept_nm" class="input" value="" style="width:52%">
- <IMG onclick="dlgSearchSpotDept(document.form1.dept_cd, document.form1.dept_nm);" src="/img/buyer/button/bt_search_right.gif" alt="현장찾기" border="0" align="absmiddle" style="cursor:hand;">
- </TD>
- <TD width="8%" class="search_table_title">
- <img src="/img/buyer/button/bullet_01.gif" align="middle">Name
- </TD>
- <TD witdh="5%" class="search_table_data" colspan="3">
-
- <%//= InputText.get("user_name", "", 60, 50, "hangule, desc=성명, PerSize") %>
- <INPUT type="text" name="user_name" value="<%=params.get("user_name") %>" maxlength="50" class="input" style="IME-MODE : active;width:30%;" desc="성명" onKeyPress="doKeyPress();">
- </TD>
-
- </TR>
-
- </TABLE>
- </TD></TR>
- <!-- 검색조건 영역 : 종료 -->
- <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
- <TR><TD height="1" colspan="2">
- <TABLE border="0" cellspacing="0" cellpadding="0" class="search_data_div_height">
- <TR><TD></TD></TR>
- </TABLE>
- </TD></TR>
- <!-- 검색조건 영역, 테이터 영역 구분 여백 : 종료 -->
- </TABLE>
- </FORM>
- <table border="0" cellspacing="0" cellpadding="0" style="width: 100%; height: 100%;">
- <!-- 데이터 영역 : 시작 -->
- <tr>
- <td id="sheet1_td" style="width: 45%;">
- <!-- IBSheet7 그리드 생성 -->
- <script>createIBSheet("sheet1","100%", "100%");</script>
- </td>
- <td id="sheet12_td" style="width: 45%;">
- <!-- IBSheet7 그리드 생성 -->
- <script>createIBSheet("sheet2","100%", "100%");</script>
- </td>
- </tr>
- <!-- 데이터 영역 : 종료 -->
- </table>
|