123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360 |
- <%--
- - FileName : SuppDeptRequestList.jsp
- - Author(s) : mklee
- - Date : 2017.02.20
- -
- - 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.udapsoft.common.code.*" %>
- <%@ 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 job_gubun = "외주";
- if(params.get("corp_status").isEmpty()){
- if (user.get("RIGHT_NAME").equals("OUTSIDE")){
- params.set("corp_status","00");
- }else{
- params.set("corp_status","AA");
- }
- }else if(params.get("corp_status").equals("A")){
- params.set("corp_status","");
- }
- %>
- <script language="javascript">
- /*예약함수*/
- var sheet1 = new ibsheetObject();
- var sheet1Row;
- var sheet1PageNo = 1;
- var pageLastRowIndex = 1;
- var validationResult = false;
- var filterShow = false;
-
- $(document).on("keyup", "input:text", function(e) {
- if($(this).attr("numberOnly") == "true")
- {
- $(this).val( $(this).val().replace(/[^0-9]/gi,"") );
- }
-
- if (e.keyCode == 13)
- {
- $.searchList();
- }
-
- });
-
-
- $(function(){
-
- $("#btn_reg").click(function(){
- $("#fevent").val("");
- $("#form1").attr("action", "/supplier/outside/SuppDeptRequest.screen");
- $("#form1").attr("target", "_self");
- $("#form1").attr("method", "post");
- $("#form1").submit();
- });
-
- $("#btn_search").click(function(){
- $.searchList();
- });
-
- $("#popTest").click(function(){
-
- var win_id = "corp";
- var link = "/common/corp/SuppChoicePop.screen";
- fLayerPop(win_id, link, 800,400, '', '', 'NO');
- });
-
-
- $("#btn_delete").click(function(){
-
- $("#fevent").val("DELETE_DATA");
-
- if(confirm("삭제 하시겠습니까?"))
- {
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/SuppDeptRequestList_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
- }
-
- });
-
-
- /* $("#btn_confirm").click(function(){
-
- for(i=0; i < sheet1.LastRow(); i++)
- {
- if(sheet1.GetCellValue(i+1, "STATUS") == "D")
- {
- sheet1.SetCellValue(i+1, "STATUS", "U");
- }
- }
- if(confirm("일괄 요청을 하시겠습니까?"))
- {
- $("#fevent").val("ALL_CONFIRM");
-
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/SuppDeptRequestList_sheet.screen";
- var result = Modular.view.IBSheet7.doSave(sheet1, url, $("#form1"), false);
- }
- }); */
-
-
-
-
- $.test = function(resultVal)
- {
- for(var i=0; i < resultVal[0].length; i++)
- {
- alert(resultVal[0][i]);
- alert(resultVal[1][i]);
- alert(resultVal[2][i]);
- alert(resultVal[3][i]);
- alert(resultVal[4][i]);
- alert(resultVal[5][i]);
- alert(resultVal[6][i]);
- alert(resultVal[7][i]);
- }
- };
-
-
- $.searchList = function()
- {
- $("#fevent").val("GET_LIST");
-
- var url = Modular.model.PageContext.CONTEXT_ROOT + "/supplier/outside/SuppDeptRequestList_sheet.screen";
- Modular.view.IBSheet7.doSearch(sheet1, url, $("#form1"), 30, "");
- }
-
-
-
-
- $.gridInit = function(sheetName)
- {
- var init_sheet = {};
-
- init_sheet.Cfg = {SearchMode:2, Page:30, MergeSheet:msHeaderOnly};
- init_sheet.Cols = [
- {Header:"Status", Type:"Status", SaveName:"STATUS", Width:10, Align:"Center", Hidden:"True"},
- {Header:"선택", Type:"DelCheck", SaveName:"DEL_CHK", Width:20, Align:"Center", Edit:"True"},
- {Header:"번호", Type:"Seq", SaveName:"NO", Width:20, Align:"Center", Edit:"False"},
- {Header:"CORP_ID", Type:"Text", SaveName:"CORP_ID", Width:100, Align:"Center", Hidden:"True"},
- {Header:"사업자번호", Type:"Text", SaveName:"CORP_REG_NO", Width:40, Align:"Center", Edit:"False", Format:"SaupNo"},
- {Header:"☞업체명", Type:"Text", SaveName:"CORP_KOR", Width:150, Align:"Left", Edit:"False"},
- {Header:"대표자명", Type:"Text", SaveName:"REP_NAME", Width:50, Align:"Center", Edit:"False"},
- {Header:"담당자명", Type:"Text", SaveName:"USER_NAME", Width:50, Align:"Center", Edit:"False"},
- {Header:"연락처", Type:"Text", SaveName:"HP_NUM", Width:50, Align:"Center", Edit:"False"},
- {Header:"이메일", Type:"Text", SaveName:"EMAIL", Width:50, Align:"Center", Edit:"False", Hidden:"True"},
- {Header:"등록요청일", Type:"Date", SaveName:"REQ_DATE", Width:60, Format:"Ymd", Align:"Center", Edit:"False"},
- {Header:"추천사유", Type:"Text", SaveName:"REQ_REMARK", Width:160, Align:"Left", Edit:"False"},
- {Header:"상태", Type:"Text", SaveName:"STATUS_CODE", Width:60, Align:"Center", Hidden:"True", Edit:"False"},
- {Header:"상태", Type:"Text", SaveName:"STATUS_NM", Width:60, Align:"Center", Edit:"False"},
- {Header:"작성자", Type:"Text", SaveName:"cre_by", Width:60, Align:"Center", Hidden:"True", Edit:"False"}
- ];
-
-
- init_sheet.HeaderMode = {Sort:1};
- IBS_InitSheet(sheetName, init_sheet);
- sheetName.SetDataAutoTrim(0);
- sheetName.SetDataLinkMouse("CORP_KOR", 1);
- sheetName.SetColFontColor("CORP_KOR", "#0000ff");
- sheetName.FitColWidth();
- }
-
-
- });
-
-
- $(document).ready(function(){
-
- $.gridInit(sheet1);
- $.searchList();
-
- autoResize();
-
- });
-
-
-
- function sheet1_OnSmartResize(Width, Height) {
- sheet1.FitColWidth();
- autoResize();
-
- }
- function autoResize(){
- var t1_height = document.getElementById("search-table").scrollHeight + document.getElementById("title").scrollHeight + 24;
- var iframeHeight= document.body.scrollHeight - t1_height;
- var iframeWidth= document.body.scrollWidth;
-
-
- sheet1.SetSheetHeight(iframeHeight);
- }
-
-
- function sheet1_OnDblClick(Row, Col)
- {
- var s_name = sheet1.ColSaveName(Col);
-
- if(s_name == "CORP_KOR")
- {
- $("#fevent").val("GET_DETAIL");
- $("#p_corp_id").val(sheet1.GetCellValue(Row, "CORP_ID"));
-
- $("#form1").attr("action", "/supplier/outside/SuppDeptRequest.screen");
- $("#form1").attr("target", "_self");
- $("#form1").attr("method", "post");
- $("#form1").submit();
- }
- }
-
- function sheet1_OnSearchEnd(Row, Col)
- {
- sheet1.FitColWidth();
- }
-
- function sheet1_OnSaveEnd(code, msg)
- {
- var event = $("#fevent").val();
- var f = document.form1;
-
- document.form1.isSubmit = false;
-
- if(event == "DELETE_DATA")
- {
- if(code >= "0")
- {
- alert("삭제되었습니다.");
- $("#btn_search").click();
- }
- else
- {
- alert("삭제에 실패하였습니다. 관리자에게 문의하시기 바랍니다.");
- }
- }
- else if(event == "ALL_CONFIRM")
- {
- if(code >= "0")
- {
- alert("요청이 완료되었습니다.");
- $("#btn_search").click();
- }
- else
- {
- alert("요청에 실패하였습니다. 관리자에게 문의하시기 바랍니다.");
- }
- }
- }
-
- function sheet1_OnSearchEnd(code, message) {
- if(code == 0 || code == "0"){
- var rowcnt = sheet1.RowCount();
- for(var r=1; r < rowcnt+1; r++){
- if(sheet1.GetCellValue(r,"STATUS_CODE")== '00' || sheet1.GetCellValue(r,"STATUS_CODE")== '03'){
- sheet1.SetRowEditable(r,false);
- }
- //2020.04.13 외주담당자 추가
- if(sheet1.GetCellValue(r,"cre_by") != "<%= user.get("acct_id")%>" && "<%= user.get("RIGHT_NAME")%>" != "OUTSIDE"){
- sheet1.SetRowEditable(r,false);
- }
- }
- }else{
- alert(message);
- }
- }
-
- document.body.onresize = addEvent( document.body.onresize, "autoResize()");
-
-
- </script>
- <modular:search id="form1">
- <modular:key id="fevent" />
- </modular:search>
- <form id="form1" name="form1" method="post" modular:type="search">
- <INPUT type="hidden" name="fevent" id="fevent" value="">
- <input type="hidden" name="p_corp_id" id="p_corp_id" value="" />
- <input type="hidden" name="p_charge_seq" id="p_charge_seq" value="" />
- <input type="hidden" name="job_div" id="job_div" value="O" />
- <div align="left" id="title">
- <ul>
- <li><%=job_gubun %>_협력업체가입요청 </li>
- </ul>
- </div>
-
- <table border="0" cellspacing="0" cellpadding="0" width="100%" id="search-table">
- <!-- 검색조건 영역 : 시작 -->
- <tr>
- <td height="1">
- <table cellspacing="1" cellpadding="0" class="search-form-table">
- <col width="100"/>
- <col/>
- <col width="100"/>
- <col/>
- <col width="100"/>
- <col/>
- <col width="300"/>
-
- <tr height="25">
- <!-- 검색조건 타이틀 1 -->
- <th>
- 사업자번호
- </th>
- <td>
- <input type="text" name="corp_no" id="corp_no" SIZE="10" value="<%=params.get("corp_no") %>" numberOnly="true" maxlength="10" />
- </td>
- <th>
- 업체명
- </th>
- <td>
- <input type="text" name="corp_name" id="corp_name" style="width: 85%;IME-MODE : active;" value="<%=params.get("corp_name") %>" />
- </td>
- <th>
- 상태
- </th>
- <td>
- <%=CommCodeManager.getSelectCodeList("OUT_SUPP_REQ_STATUS","corp_status","height=18;","<option value=''>--전체--</option>",params.get("corp_status")) %>
- </td>
- <td class="search_button" style="text-align: center;">
- <span class="btnSearch center"><a href="javascript:void(0);" id="btn_search">검색</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btn_reg">신규등록</a></span>
- <span class="btnSearch center"><a href="javascript:void(0);" id="btn_delete">삭제</a></span>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <!-- 검색조건 영역 : 종료 -->
- <!-- 검색조건 영역, 테이터 영역 구분 여백 : 시작 -->
- <tr>
- <td height="1">
- </td>
- </tr>
- <!-- 검색조건 영역, 테이터 영역 구분 여백 : 종료 -->
- </table>
- <div id="sheet1_div" style="padding-top:5px; height: 400px">
- <script>createIBSheet("sheet1","100%", "400px");</script>
- </div>
- </form>
-
-
|