123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLAF00100_검사별 장비관리.xrw
- * 설 명 : 검사별 장비관리 상세설명 화면
- * 설 계 자 : 유동철
- * 작 성 자 : 유동철
- * 작 성 일 : 200.05.19
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>검사별 장비관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <tclsinfo>
- <tclscdlist>
- <choi/>
- <tclscd/>
- <dummy1/>
- <tclsnm/>
- <goodcd/>
- <dummy2/>
- <goodnm/>
- <eqmtcd/>
- <dummy3/>
- <eqmtnm/>
- <fromdd/>
- <todd/>
- <useunit/>
- <useqty/>
- <posdeptcd/>
- <dutdeptcd/>
- <instcd/>
- <existyn/>
- </tclscdlist>
- </tclsinfo>
- </main>
- <send>
- </send>
- <init>
- <seamthdcd/>
- <seaval/>
- <dutdept>
- <appdeptcd>
- <cd/>
- <nm/>
- </appdeptcd>
- </dutdept>
- <eqmtinfo>
- <eqmtlist>
- <choi/>
- <eqmtcd/>
- <eqmtnm/>
- <tclscd/>
- <fromdd/>
- <todd/>
- </eqmtlist>
- </eqmtinfo>
- <tclscd>
- <tclscdlist>
- <choi/>
- <tclscd/>
- <tclsnm/>
- <fromdd/>
- <todd/>
- </tclscdlist>
- </tclscd>
- <dutdept>
- <appdeptcd>
- <cd/>
- <nm/>
- </appdeptcd>
- </dutdept>
- <appdeptcd/>
- <popflagcd/>
- </init>
- <hidden>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLAF00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/deptinfo"/>
- <submission id="TRLAA00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/appdeptcd"/>
- <submission id="TRLAF00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tclsinfo/tclscdlist"/>
- <submission id="TXLAF00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- /* @group : 검사별 장비관리
- * @ver : 2008.05.20 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화
- */
- function fExeInitialize() {
-
- //현재날짜
- var toDay = getCurrentDate();
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/tclsinfo/tclscdlist");
-
- //--------------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/userid", getUserInfo("userid"));
- submit("TRLAF00402", false); // 사용자가 속한 과코드 조회
-
- model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd"));
- submit("TRLAA00103"); // 부서코드 목록
- //-------------------------------------------
- model.makeValue("/root/init/seamthdcd", "0"); // 0:검사코드, 1:물품코드, 2:장비코드
- model.makeValue("/root/init/seaval", "");
- model.makeValue("/root/init/appdeptcd", "");
-
- //------------------
- // 부서코드 기본선택
- if (cbo_appdeptcd.length > 0) {
- cbo_appdeptcd.select(0);
- }
-
- //--------------
- model.refresh();
- }
-
- /* @group : 검사별 장비관리
- * @ver : 2008.05.20 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드 클릭 처리 Function
- */
- function fExeGridClick() {
-
- //------------------------------------------------------------------------------------------------
- if (grd_tclseqmtlist.isCell(event.target) && grd_tclseqmtlist.row >= grd_tclseqmtlist.fixedRows) {
- //-----------------------------
- switch (grd_tclseqmtlist.col) {
- case 3 :
- case 6 :
- case 9 : break;
- default : return false;
- }
- //-----------------------------------------------------------------
- setParameter("SMLAF00600_instcd", getUserInfo("dutplceinstcd"));
- setParameter("SMLAF00600_posdeptcd", model.getValue("/root/init/deptinfo/cd"));
- setParameter("SMLAF00600_cd", "");
- setParameter("SMLAF00600_nm", "");
- setParameter("SMLAF00600_flagcd", grd_tclseqmtlist.col);
- //setParameter("SMLAF00600_dutdeptcd", model.getValue("/root/init/appdeptcd"));
- setParameter("SMLAF00600_dutdeptcd", "");
-
-
- //------------------
- // 팝업창 호출
- modal("SPLAF00700_코드팝업");
-
- //----------------------------------------
- if (getParameter("SMLAF00600_cd") != "") {
-
- //-----------------------------
- switch (grd_tclseqmtlist.col) {
- case 3 : model.setValue("/root/main/tclsinfo/tclscdlist["+grd_tclseqmtlist.row+"]/tclscd", getParameter("SMLAF00600_cd"));
- model.setValue("/root/main/tclsinfo/tclscdlist["+grd_tclseqmtlist.row+"]/tclsnm", getParameter("SMLAF00600_nm"));
- break;
- case 6 : model.setValue("/root/main/tclsinfo/tclscdlist["+grd_tclseqmtlist.row+"]/goodcd", getParameter("SMLAF00600_cd"));
- model.setValue("/root/main/tclsinfo/tclscdlist["+grd_tclseqmtlist.row+"]/goodnm", getParameter("SMLAF00600_nm"));
- break;
- case 9 : model.setValue("/root/main/tclsinfo/tclscdlist["+grd_tclseqmtlist.row+"]/eqmtcd", getParameter("SMLAF00600_cd"));
- model.setValue("/root/main/tclsinfo/tclscdlist["+grd_tclseqmtlist.row+"]/eqmtnm", getParameter("SMLAF00600_nm"));
- break;
- }
- }
- }
-
- //-------------------------
- grd_tclseqmtlist.refresh();
- }
-
- /* @group : 검사별 장비관리
- * @ver : 2008.05.20 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : Row 삭제
- */
- function fExeDeleteRow() {
-
- if (model.getValue("/root/main/tclsinfo/tclscdlist["+grd_tclseqmtlist.row+"]/existyn") == "N") {
- grd_tclseqmtlist.deleteRow(grd_tclseqmtlist.row);
- }
-
- //-------------------------
- grd_tclseqmtlist.refresh();
- }
-
- /* @group : 검사별 장비관리
- * @ver : 2008.05.20 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : Row 추가
- */
- function fExeInsertRow() {
-
- if (model.getValue("/root/init/appdeptcd") == "") {
- messageBox("부서코드를 선택하여 주십시오! 행추가를 ", "E001");
- return false;
- }
-
- //------------------------
- grd_tclseqmtlist.addRow();
- grd_tclseqmtlist.refresh();
-
- model.makeValue("/root/main/tclsinfo/tclscdlist["+grd_tclseqmtlist.row+"]/existyn", "N");
- model.makeValue("/root/main/tclsinfo/tclscdlist["+grd_tclseqmtlist.row+"]/dummy1", "I");
- model.makeValue("/root/main/tclsinfo/tclscdlist["+grd_tclseqmtlist.row+"]/posdeptcd", model.getValue("/root/init/deptinfo/cd"));
- model.makeValue("/root/main/tclsinfo/tclscdlist["+grd_tclseqmtlist.row+"]/dutdeptcd", model.getValue("/root/init/appdeptcd"));
- }
-
- /* @group : 검사별 장비관리
- * @ver : 2008.05.20 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사, 물품, 장비목록을 조회한다.
- */
- function fGetCdEqList() {
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/tclsinfo/tclscdlist");
-
- //-----------------------------------------------------------------
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/posdeptcd", model.getValue("/root/init/deptinfo/cd"));
- model.makeValue("/root/send/dutdeptcd", model.getValue("/root/init/appdeptcd"));
- model.makeValue("/root/send/seamthdcd", model.getValue("/root/init/seamthdcd"));
- model.makeValue("/root/send/seaval", model.getValue("/root/init/seaval"));
-
- //-------------------
- submit("TRLAF00601");
- }
-
- /* @group : 검사별 장비관리
- * @ver : 2008.05.20 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검사, 물품, 장비목록을 저장한다.
- */
- function fExeCdEqmtSave() {
-
- var iFindNo = 0;
- var sNode = "/root/main/tclsinfo/tclscdlist";
-
- //-----------------------------------------------------------
- iFindNo = grd_tclseqmtlist.findRow("true", 1, 1, true, true);
- if (Number(iFindNo) <= 0) {
- messageBox("저장할 목록을 선택하지 않았습니다! ", "I007");
- return false;
- }
-
- //-----------------------------
- grd_tclseqmtlist.clearStatus();
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
- if (model.getValue(sNode+"["+iNo+"]/choi") == "true") {
-
- //-----------------------
- // 검사코드 선택여부 검사
- if (model.getValue(sNode+"["+iNo+"]/tclscd") == "") {
- messageBox("검사를 선택하지 않았습니다! ", "I007");
- return false;
- }
-
- //-----------------------
- // 물품코드 선택여부 검사
- if (model.getValue(sNode+"["+iNo+"]/goodcd") == "") {
- messageBox("물품을 선택하지 않았습니다! ", "I007");
- return false;
- }
-
- //-----------------------
- // 시작일자 입력여부 검사
- if (model.getValue(sNode+"["+iNo+"]/fromdd") == "") {
- messageBox("시작일자를 입력하지 않았습니다! ", "I007");
- return false;
- }
-
- //-----------------------
- // 종료일자 입력여부 검사
- if (model.getValue(sNode+"["+iNo+"]/todd") == "") {
- messageBox("종료일자를 입력하지 않았습니다! ", "I007");
- return false;
- }
-
- //-----------------------
- // 사용단위 입력여부 검사
- if (model.getValue(sNode+"["+iNo+"]/useunit") == "") {
- messageBox("사용단위를 입력하지 않았습니다! ", "I007");
- return false;
- }
-
- //-----------------------
- // 사용수량 입력여부 검사
- if (model.getValue(sNode+"["+iNo+"]/useqty") == "" || Number(model.getValue(sNode+"["+iNo+"]/useqty")) <= 0) {
- messageBox("사용수량를 입력하지 않았습니다! ", "I007");
- return false;
- }
-
- //----------------------------------------
- grd_tclseqmtlist.addStatus(iNo, "insert");
- }
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/tclscdlist", grd_tclseqmtlist.getUpdateData());
-
- //-----------
- setAlertOn();
- if (submit("TXLAF00601")) {
- fGetCdEqList();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1192;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">검사별 장비관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:35px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194; height:35; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194; height:35; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:75px; height:17px; ">검색값 :</caption>
- <caption id="caption7" class="search_name" style="left:872px; top:9px; width:86px; height:17px; ">검색부서 :</caption>
- <button id="button1" class="btn1_letter2" navindex="4" style="left:1123; top:7; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetCdEqList();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1108; y1:7px; x2:1108; y2:29; "/>
- <input id="ipt_seaval" ref="/root/init/seaval" class="input_search" navindex="2" style="left:180px; top:8px; width:140px; height:19px; "/>
- <select1 id="combo1" ref="/root/init/seamthdcd" navindex="1" appearance="minimal" style="left:93px; top:8px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>검사코드</label>
- <value>0</value>
- </item>
- <item>
- <label>물품코드</label>
- <value>1</value>
- </item>
- <item>
- <label>장비코드</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <select1 id="cbo_appdeptcd" ref="/root/init/appdeptcd" navindex="3" appearance="minimal" style="left:964px; top:8px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/appdeptcd">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <line id="line12" class="line_1" style="x1:0px; y1:71px; x2:1192px; y2:71px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:113px; height:14px; ">검사별 장비목록</caption>
- <datagrid id="grd_tclseqmtlist" nodeset="/root/main/tclsinfo/tclscdlist" class="datagrid2" scroll="auto" caption="선택^검사코드^^검사명^물품코드^^물품명^장비코드^^장비명^시작일자^종료일자^사용
단위^사용
수량^posdeptcd^dutdeptcd^instcd^existyn" colsep="^" colwidth="40, 80, 20, 150, 70, 20, 220, 70, 20, 150, 90, 90, 60, 70, 0, 0, 0, 0" dataheight="23" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="9" style="left:0px; top:76px; width:1192px; height:666px; ">
- <col ref="choi" type="checkbox"/>
- <col class="text_center" ref="tclscd"/>
- <col class="icon_search" ref="dummy1"/>
- <col ref="tclsnm"/>
- <col class="text_center" ref="goodcd"/>
- <col class="icon_search" ref="dummy2"/>
- <col ref="goodnm"/>
- <col class="text_center" ref="eqmtcd"/>
- <col class="icon_search" ref="dummy3"/>
- <col ref="eqmtnm"/>
- <col ref="fromdd" type="inputdate"/>
- <col ref="todd" type="inputdate"/>
- <col class="text_center" ref="useunit" type="combo">
- <choices>
- <item>
- <label>청구</label>
- <value>0</value>
- </item>
- <item>
- <label>TEST</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col class="text_right" ref="useqty" type="input" format="#,###" mask="exclude" maxlength="4" showmask="true"/>
- <col ref="posdeptcd"/>
- <col ref="dutdeptcd"/>
- <col ref="instcd"/>
- <col ref="existyn"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeGridClick();
- ]]>
- </script>
- </datagrid>
- <button id="btn_insrow" class="btn2_letter3" navindex="6" style="left:1082px; top:51px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeInsertRow();
- ]]>
- </script>
- </button>
- <button id="btn_delrow" class="btn2_letter3" navindex="6" style="left:1138px; top:51px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeDeleteRow();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" navindex="7" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCdEqmtSave();
- ]]>
- </script>
- </button>
- <button id="btn_prntexcel" class="btn3_letter5" navindex="8" style="left:0px; top:3px; width:80; height:22px; ">
- <caption>Excel출력</caption>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|