123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLAF00200_신청물품관리.xrw
- * 설 명 : 사용자의 선택적 물품 목록 저장
- * 설 계 자 : 한음미
- * 작 성 자 : 한음미
- * 작 성 일 : 2007.08.07
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <goodcd>
- <goodcdlist>
- <choi/>
- <goodcd/>
- <goodnm/>
- <goodhngnm/>
- <todd/>
- <fromdd/>
- <fstrgstrid/>
- <lastupdtrid/>
- </goodcdlist>
- </goodcd>
- <choigoodcd>
- <choigoodcdlist>
- <choi/>
- <goodcd/>
- <goodnm/>
- <goodhngnm/>
- <existyn/>
- <todd/>
- <fromdd/>
- <fstrgstrid/>
- <lastupdtrid/>
- </choigoodcdlist>
- </choigoodcd>
- </main>
- <send/>
- <init>
- <seaval/>
- <seamthdcd>0</seamthdcd>
- <useflagcd>0</useflagcd>
- <sysdt>
- <sysdtinfo>
- <sysdd/>
- <systm/>
- </sysdtinfo>
- </sysdt>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
- <submission id="TXLAF00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
- <submission id="TRLAF00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/choigoodcd/choigoodcdlist"/>
- <submission id="TRLAF00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/goodcd/goodcdlist"/>
- <submission id="TXLAF00103" 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">
- <![CDATA[
- /* @group : 신청물품관리
- * @ver : 2007.08.07 (CMCDEV-0001)
- * @by : 한음미
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 로딩시 기본값 Function
- */
- function fExeInitialize() {
-
- model.removeNodeset("/root/send");
- model.removeNodeset("/root/main/choigoodcd/choigoodcdlist");
-
- //-------------
- fGetGoodList(); // 사용자별 물품코드 목록조회
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- submit("TRLAF00107"); // 물품코드 목록 보여주기
-
- //------------------------------------------
- model.makeValue("/root/init/seaval", "");
- model.makeValue("/root/init/seamthdcd", "0");
- model.makeValue("/root/init/useflagcd", "0");
- model.makeValue("/root/send/userid", getUserInfo("userid"));
- model.makeNode("/root/init/sysdt/sysdtinfo");
-
- submit("TRLPZ00102"); // 현재의 time 가져오기
- model.refresh();
- }
-
- /* @group : 신청물품관리
- * @ver : 2007.08.07 (CMCDEV-0001)
- * @by : 한음미
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 사용자별 물품코드 목록 조회 Function
- */
- function fGetGoodList() {
- model.makeValue("/root/send/seaval", model.getValue("/root/init/seaval"));
- model.makeValue("/root/send/seamthdcd", model.getValue("/root/init/seamthdcd"));
- model.makeValue("/root/send/useflagcd", model.getValue("/root/init/useflagcd"));
- submit("TRLAF00106"); // 선택 물품코드목록 조회하기
- }
-
-
- /* @group : 신청물품관리
- * @ver : 2007.08.07 (CMCDEV-0001)
- * @by : 한음미
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택 물품코드 목록에서 불필요한 데이터 삭제 Function
- */
- function fExeDelete() {
- grd_choigoodlist.clearStatus();
- for(var iRow=1;iRow<=getNodesetCount("/root/main/choigoodcd/choigoodcdlist");iRow++) {
- if(model.getValue("/root/main/choigoodcd/choigoodcdlist[" + iRow + "]/choi")=="true") {
- if(model.getValue("/root/main/choigoodcd/choigoodcdlist[" + iRow + "]/existyn")=="Y") {
- grd_choigoodlist.addStatus(iRow,"delete");
- }else {
- grd_choigoodlist.deleteItem(iRow);
- }
- }
- model.setValue("/root/main/goodcd/goodcdlist[" + iRow + "]/choi","false"); // 작업이 끝나고 저장버튼 누름과 동시에 빈 체크박스
- }
- model.makeValue("/root/send/counta",grd_choigoodlist.getUpdateData());
-
- if(submit("TXLAF00103")==true){ // 선택 물품코드 저장 되어있는 데이터 중 불필요한것 삭제
- fGetGoodList();
- }
- }
-
- /* @group : 신청물품관리
- * @ver : 2007.08.07 (CMCDEV-0001)
- * @by : 한음미
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택물품코드목록에서 필요한 데이터 저장 Function
- */
- function fExeSave() {
-
- var sOrgNode = "/root/main/choigoodcd/choigoodcdlist";
-
- //-----------------------------
- grd_choigoodlist.clearStatus();
- for(var iRow=1; iRow <= getNodesetCount(sOrgNode+""); iRow++) {
-
- //-------------------------------------------------------------
- if (model.getValue(sOrgNode+"[" + iRow + "]/existyn") == "Y") { // DB에 데이터가 있고
- if (model.getValue(sOrgNode+"[" + iRow + "]/choi") == "true") { // 체크박스에 체크가 되어있고
- grd_choigoodlist.addStatus(iRow,"delete"); // delete후 insert
- }
- } else { // DB에 데이터가 없고
- if(model.getValue(sOrgNode+"[" + iRow + "]/choi")=="true") {
- grd_choigoodlist.addStatus(iRow, "insert"); // insert 만
- }
- }
-
- //------------------------------------------------------------------------
- model.setValue("/root/main/goodcd/goodcdlist[" + iRow + "]/choi","false"); // 작업이 끝나고 저장버튼 누름과 동시에 빈 체크박스
- }
-
- //--------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/count", grd_choigoodlist.getUpdateData());
-
- //-----------
- setAlertOn();
- if(submit("TXLAF00102")) { // 선택 물품코드 저장 되어있는 데이터 중 필요한것 저장
- fGetGoodList();
- model.setValue("/root/main/goodcd/goodcdlist[*]/choi", "false");
- }
- }
-
- /* @group : 신청물품관리
- * @ver : 2007.08.07 (CMCDEV-0001)
- * @by : 한음미
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 물품코드 목록에서 선택시 선택물품코드 목록으로 이전 Function
- */
- function fExeSelect() {
-
- var iNo = 0;
- var iRowNo = 0;
- var sOrgNode = "/root/main/goodcd/goodcdlist";
- var sDestNode = "/root/main/choigoodcd/choigoodcdlist";
-
- //-----------------------------------------------------------------------
- if (model.getValue(sOrgNode+"["+grd_goodcdlist.row+"]/choi") == "true") {
-
- //---------------------------------------------------------------------------------------------------------
- iNo = grd_choigoodlist.findRow(model.getValue(sOrgNode+"["+grd_goodcdlist.row+"]/goodcd"),1,2,false,false);
- if(iNo < 0) {
- grd_choigoodlist.addRow();
-
- //----------------------------------
- iRowNo = getNodesetCount(sDestNode);
- model.setValue(sDestNode+"["+iRowNo+"]/choi", "true");
- model.setValue(sDestNode+"["+iRowNo+"]/goodcd", model.getValue(sOrgNode+"["+grd_goodcdlist.row+"]/goodcd"));
- model.setValue(sDestNode+"["+iRowNo+"]/goodnm", model.getValue(sOrgNode+"["+grd_goodcdlist.row+"]/goodnm"));
- model.setValue(sDestNode+"["+iRowNo+"]/goodhngnm", model.getValue(sOrgNode+"["+grd_goodcdlist.row+"]/goodhngnm"));
- model.setValue(sDestNode+"["+iRowNo+"]/todd", model.getValue(sOrgNode+"["+grd_goodcdlist.row+"]/todd"));
- model.setValue(sDestNode+"["+iRowNo+"]/fromdd", model.getValue(sOrgNode+"["+grd_goodcdlist.row+"]/fromdd"));
- model.setValue(sDestNode+"["+iRowNo+"]/fstrgstrid", model.getValue(sOrgNode+"["+grd_goodcdlist.row+"]/fstrgstrid"));
- model.setValue(sDestNode+"["+iRowNo+"]/lastupdtrid", model.getValue(sOrgNode+"["+grd_goodcdlist.row+"]/lastupdtrid"));
- } else {
- messageBox("데이터가","E006");
- model.setValue(sOrgNode+"[" + grd_goodcdlist.row + "]/choi", "false");
- }
- }
- }
-
- /* @group : 신청물품관리
- * @ver : 2007.08.07 (CMCDEV-0001)
- * @by : 한음미
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 선택물품코드 목록에서 선택해제시 물품코드 목록으로 이전 Function
- */
- function fExeUnSelect() {
- if(model.getValue("/root/main/choigoodcd/choigoodcdlist["+ grd_choigoodlist.row + "]/choi")=="false"){
- if(model.getValue("/root/main/choigoodcd/choigoodcdlist["+ grd_choigoodlist.row + "]/existyn")!="Y"){
- grd_choigoodlist.deleteItem(grd_choigoodlist.row);
- }
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,-5;1,1193;" 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:86px; height:17px; ">검색값 :</caption>
- <caption id="caption7" class="search_name" style="left:395; top:9px; width:86px; height:17px; ">검색방법 :</caption>
- <line id="line1" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29; "/>
- <input id="ipt_seaval" ref="/root/init/seaval" class="input_search" navindex="1" style="left:95px; top:8px; width:100px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:902px; top:9px; width:86px; height:17px; ">사용구분 :</caption>
- <select1 id="rdo_seamthdcd" ref="/root/init/seamthdcd" navindex="2" overflow="visible" appearance="full" cols="2" style="left:487; top:9; width:123; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>물품코드</label>
- <value>0</value>
- </item>
- <item>
- <label>물품명</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <select1 id="rdo_useflagcd" ref="/root/init/useflagcd" navindex="4" overflow="visible" appearance="full" cols="2" style="left:994px; top:8px; width:97px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>사용</label>
- <value>0</value>
- </item>
- <item>
- <label>미사용</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <button id="btn_sea" class="btn1_letter2" navindex="5" style="left:1125; top:7; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetGoodList();
- ]]>
- </script>
- </button>
- </group>
- <line id="line12" class="line_1" style="x1:0px; y1:70px; x2:595px; y2:70px; "/>
- <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:175px; height:14px; ">선택 물품코드 목록</caption>
- <line id="line2" class="line_1" style="x1:600px; y1:70px; x2:1194px; y2:70px; "/>
- <caption id="caption5" class="tit_2" style="left:605px; top:55px; width:144px; height:14px; ">물품코드 목록</caption>
- <datagrid id="grd_goodcdlist" nodeset="/root/main/goodcd/goodcdlist" autoresize="true" caption="선택^물품코드^물품명^물품명(한글)^종료날짜^시작날짜^최초아이디^종료아아디" colsep="^" colwidth="40, 130, 200, 200, 0, 0, 0, 0" dataheight="23" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:600px; top:75px; width:594; height:667px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodhngnm"/>
- <col ref="todd" visible="hidden"/>
- <col ref="fromdd"/>
- <col ref="fstrgstrid"/>
- <col ref="lastupdtrid"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fExeSelect();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_goodcdlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_choigoodlist" nodeset="/root/main/choigoodcd/choigoodcdlist" autoresize="true" caption="선택^물품코드^물품명^물품명(한글)^종료날짜^시작날짜^최초아이디^종료아아디^데이터" colsep="^" colwidth="40, 130, 200, 200, 0, 0, 0, 0, 0" dataheight="23" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:595px; height:667px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="goodcd"/>
- <col ref="goodnm"/>
- <col ref="goodhngnm"/>
- <col ref="todd" visible="hidden"/>
- <col ref="fromdd"/>
- <col ref="fstrgstrid"/>
- <col ref="lastupdtrid"/>
- <col ref="existyn"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeUnSelect();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_choigoodlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </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_del" class="btn4_letter2" navindex="7" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeDelete();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" navindex="6" style="left:1079; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSave();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|