123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>구매관련 출력 조회조건</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- </main>
- <send>
- <req>
- <instcd/>
- <goodflag/>
- <fixtrseqmtflag/>
- <possnddfr/>
- <possnddto/>
- <deptcd/>
- <deptnm/>
- <possnamt/>
- <acntcd/>
- <acntnm/>
- <repayyy/>
- <deptflag>U</deptflag>
- <rpiryn>N</rpiryn>
- <reqdd1/>
- <reqdd2/>
- <acsrssrchyn>Y</acsrssrchyn>
- </req>
- </send>
- <init/>
- <hidden/>
- <temp/>
- </root>
- </instance>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //사용자 권한
- fCheckAuth();
-
- if (isPopup())
- {
- cap_title.text = opener.window.javascript.getParameter("SPRSG10200_title");
-
- model.makeValue("/root/temp/reqlist", opener.window.javascript.getParameter("SPRSG10200_reqlist"));
- model.makeValue("/root/temp/essnlist", opener.window.javascript.getParameter("SPRSG10200_essnlist"));
- model.makeValue("/root/temp/sendlist", opener.window.javascript.getParameter("SPRSG10200_sendlist"));
-
- model.makeValue("/root/temp/valupath", opener.window.javascript.getParameter("SPRSG10200_valupath"));
- model.makeValue("/root/temp/ipflaglist", opener.window.javascript.getParameter("SPRSG10200_irflaglist"));
- }
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd")); // 기관 설정
- rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
- rszfGoodFlagListByPgmGubn(cmb_fixtrseqmtflag,"2","N");
- //cap_title.text = "aaa";
- //model.makeValue("/root/temp/reqlist", "yy,emplno,deptcd,instcd,supinfqurtyyflag,apprtcdrflag");
- //model.makeValue("/root/temp/reqlist", "yy,emplno,deptcd,instcd,supinfqurtyyflag,apprtcdrflag,dentyn,trngflag13");
- //model.makeValue("/root/temp/essnlist", "deptcd");
-
- if (model.getValue("/root/temp/reqlist") == "")
- {
- btn_prn.disabled = true;
- return;
- }
-
- var today = getCurrentDate();
- var cur_yy = parseInt(today.substring(0, 4));
- var cur_mm = today.substring(4,6);
-
- // 연도 default 값은 금년이 되도록 수정 (2008.08.19 정성욱 수정)
- /*if (opener.window.javascript.getParameter("SPRSG10200_yydiff") != "")
- {
- cur_yy += parseInt(opener.window.javascript.getParameter("SPRSG10200_yydiff"));
- }
- */
-
- var reqArr = fGetStrToArr(model.getValue("/root/temp/reqlist"));
-
- var ctrl;
- var pos_col1left = 10;
- var pos_col2left = 310;
-
- var pos_left = pos_col1left;
- var pos_top = 10;
-
- for (var i=0; i<reqArr.length; i++)
- {
- if (reqArr[i] == "possnddfr" || reqArr[i] == "possnddto")
- {
- ctrl = document.controls("grup_possnddterm");
- }
- else if (reqArr[i] == "reqdd1" || reqArr[i] == "reqdd2")
- {
- ctrl = document.controls("grup_reqddterm");
- }
- else
- {
- ctrl = document.controls("grup_" + reqArr[i]);
- }
-
- if (ctrl.attribute("visibility") == "hidden")
- {
- ctrl.attribute("left") = pos_left;
- ctrl.attribute("top") = pos_top;
-
- pos_top += parseInt(ctrl.attribute("height"));
-
- ctrl.attribute("visibility") = "visible";
- }
-
- /*if (reqArr[i] == "yy") {
- model.makeValue("/root/send/req/yy", cur_yy);
- } else if (reqArr[i] == "fromdd" || reqArr[i] == "todd") {
- model.makeValue("/root/send/req/" + reqArr[i], today);
- // } else if (reqArr[i] == "mm2") {
- // model.makeValue("/root/send/req/mm" , "");
- } else {
- model.makeValue("/root/send/req/" + reqArr[i], "");
- }*/
-
- if (reqArr[i] == "instcd") {
- rszfGetLabelControlComboList("Z0007", "cmb_instcd", "detldesc");
- addComboItem( "cmb_instcd", "전체", "", "above");
- }
- /*else if (reqArr[i] == "deptcd") {
- submit("TRRTS00602");
- }
- else if (reqArr[i] == "supinfqurtyyflag") {
- fAddComCdList("R0237", "rdo_supinfqurtyyflag");
- }*/
-
- }
-
- pos_top += 5;
- roundrect1.attribute("height") = pos_top;
-
- pos_top += 5;
- btn_prn.attribute("top") = pos_top;
-
- /*pos_top += 15 + parseInt(btn_prn.attribute("height"));
- group2.attribute("height") = pos_top;
-
- pos_top += 5;
- window.height = pos_top;*/
- /*
- if (g_comcd_grupids != "")
- {
- misfComboComCdListMulti(g_comcd_grupids, g_comcd_ctrls);
-
- var sCtrls = g_comcd_ctrls.split(",")
-
- for(var i = 0 ; i < sCtrls.length ; i++)
- {
- if(sCtrls[i] == "rdo_supinfqurtyyflag"){
- addComboItem( "rdo_supinfqurtyyflag", "전체", "", "above");
- }
- else if(sCtrls[i] == "cmb_deptcd"){
- addComboItem( "cmb_deptcd", "전체", "", "above");
- }
- else if(sCtrls[i] == "cmb_mm" ){
- addComboItem( "cmb_mm", "전체", "", "above");
- }
- // else if(sCtrls[i] == "cmb_mm2"){
- // addComboItem( "cmb_mm2", "전체", "", "above");
- // }
- }
- }*/
- // alert(cmb_mm.choices.itemset.attribute("nodeset"));
- // alert(cmb_mm.choices.itemset.label.attribute("ref"));
- // alert(cmb_mm.choices.itemset.value.attribute("ref"));
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var g_comcd_grupids = "";
- var g_comcd_ctrls = "";
-
- function fAddComCdList(grupid, ctrlid)
- {
- if (g_comcd_grupids != "")
- g_comcd_grupids += ",";
-
- g_comcd_grupids += grupid;
-
- if (g_comcd_ctrls != "")
- g_comcd_ctrls += ",";
-
- g_comcd_ctrls += ctrlid;
- }
- //========================================================================================
- //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
- //========================================================================================
- function fCheckAuth() {
- btn_prn.disabled = !checkAuth("P") ;
- }
-
- function fGetStrToArr(str)
- {
- return str.split(",");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="440" pageheight="525">
- <group id="group1" style="left:5px; top:0px; width:327px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:295px; height:14px; ">구매관련 출력 조회조건</caption>
- </group>
- <group id="group2" scroll="auto" style="left:5px; top:19px; width:425px; height:476px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:5px; width:415px; height:425px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_prn" class="btn6_letter2" style="left:345px; top:392px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/temp/essnlist") != "")
- {
- var arr = fGetStrToArr(model.getValue("/root/temp/essnlist"));
-
- var ctrl;
- for (var i=0; i<arr.length; i++)
- {
- var valu = model.getValue("/root/send/req/" + arr[i]);
- var ctrl = document.controls("cap_" + arr[i]);
- if (valu == "")
- {
- messageBox(ctrl.text + " 필수입력입니다.", "I", "");
- return;
- }
- }
- }
-
- /*if (model.getValue("/root/send/req/mm") != "")
- {
- model.setValue("/root/send/req/mm", model.getValue("/root/send/req/mm").getLeftPad(2, "0"));
- model.refresh();
- }*/
-
- var path = model.getValue("/root/temp/valupath");
- if (path == "")
- {
- path = "/root/send/req";
- }
- path += "/";
-
- var arr = ""
- var sendlist = model.getValue("/root/temp/sendlist").getTrim();
-
- if (sendlist == ""){
- arr = fGetStrToArr(model.getValue("/root/temp/reqlist"));
- }else{
- arr = fGetStrToArr(model.getValue("/root/temp/sendlist"));
- }
-
- for (var i=0; i<arr.length; i++)
- {
- opener.model.makeValue(path+arr[i], model.getValue("/root/send/req/"+arr[i]));
- }
- model.close();
- ]]>
- </script>
- </button>
- <group id="grup_instcd" visibility="hidden" style="left:10px; top:10px; width:400px; height:30px; ">
- <caption id="cap_instcd" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">기관코드</caption>
- <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_search" appearance="minimal" style="left:130px; top:5px; width:150px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grup_goodflag" visibility="hidden" style="left:10px; top:40px; width:400px; height:30px; ">
- <caption id="cap_goodflag" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">물품구분</caption>
- <select1 id="cmb_goodflag" ref="/root/send/req/goodflag" class="combo_search" appearance="minimal" style="left:130px; top:5px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grup_deptflag" visibility="hidden" style="left:10px; top:130px; width:400px; height:30px; ">
- <caption id="caption2" class="search_name" style="left:10px; top:5px; width:100px; height:17px; ">부서구분</caption>
- <select1 id="rdo_deptflag" ref="/root/send/req/deptflag" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:130px; top:5px; width:205px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>관리부서</label>
- <value>M</value>
- </item>
- <item>
- <label>사용부서</label>
- <value>U</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="grup_repayyy" visibility="hidden" style="left:10px; top:250px; width:400px; height:30px; ">
- <caption id="cap_repayyy" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">상각년도</caption>
- <input id="cal_repayyy" ref="/root/send/req/repayyy" class="input_search" inputtype="date" style="left:130px; top:5px; width:120px; height:19px; "/>
- </group>
- <group id="grup_possnamt" visibility="hidden" style="left:10px; top:190px; width:400px; height:30px; ">
- <caption id="cap_possnamt" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">금 액</caption>
- <input id="ipt_possnamt" ref="/root/send/req/possnamt" class="input_default" visibility="visible" format="#,###" appearance="input" style="left:130px; top:5px; width:150px; height:19px; text-align:right; "/>
- </group>
- <group id="grup_deptcd" visibility="hidden" style="left:10px; top:160px; width:400px; height:30px; ">
- <caption id="cap_deptcd" class="search_name" style="left:10px; top:5px; width:105px; height:17px; ">부 서</caption>
- <input id="ipt_deptnm" ref="/root/send/req/deptnm" class="input_fix" appearance="input" style="left:233px; top:5px; width:159px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_deptnm.value.length == 0)
- ipt_deptcd.value = "";
- else
- rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
- "deptnm," + ipt_deptnm.value, "", "deptcd,deptnm",
- ipt_deptnm, "SPRPZ00200", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_deptcd" class="icon_search" style="left:213px; top:5px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_deptcd,"", "deptcd,deptnm", model.getValue(cmb_instcd.attribute("ref")),"instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_deptcd" ref="/root/send/req/deptcd" class="input_default" appearance="input" style="left:130px; top:5px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_deptcd.value.length == 0)
- ipt_deptnm.value = "";
- else
- rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
- "deptcd," + ipt_deptcd.value, "", "deptcd,deptnm",
- ipt_deptcd, "SPRPZ00200", "","");
- model.refresh();
- ]]>
- </script>
- </input>
- </group>
- <group id="grup_acntcd" visibility="hidden" style="left:10px; top:220px; width:400px; height:30px; ">
- <caption id="cap_acntcd" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">계정과목</caption>
- <input id="ipt_acntnm" ref="/root/send/req/acntnm" class="input_fix" appearance="input" style="left:232px; top:5px; width:159px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_acntnm.value.length == 0)
- ipt_acntcd.value = "";
- else
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
- ",Y,2," + ipt_acntnm.value, "", "acntcd,acntnm",
- ipt_acntnm, "PPRAC00100_계정코드HELP", "useyn,acntcd","Y,ipt_acntcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_acntcd" ref="/root/send/req/acntcd" class="input_default" appearance="input" style="left:131px; top:5px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_acntcd.value.length == 0)
- ipt_acntnm.value = "";
- else
- rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
- ",Y,2," + ipt_acntcd.value, "", "acntcd,acntnm",
- ipt_acntcd, "PPRAC00100_계정코드HELP", "useyn,acntcd","Y,ipt_acntcd");
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_acntcd" class="icon_search" style="left:214px; top:5px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rszfOpenPopUpListByWndName(ipt_acntcd,"","acntcd,acntnm","PPRAC00100_계정코드HELP","","");
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="grup_fixtrseqmtflag" visibility="hidden" style="left:10px; top:70px; width:400px; height:30px; ">
- <caption id="cap_fixtrseqmtflag" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">물품구분</caption>
- <select1 id="cmb_fixtrseqmtflag" ref="/root/send/req/fixtrseqmtflag" class="combo_search" appearance="minimal" style="left:130px; top:5px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <group id="grup_possnddterm" visibility="hidden" style="left:10px; top:100px; width:400px; height:30px; ">
- <caption id="cap_possnddterm" class="search_name" style="left:10px; top:5px; width:100px; height:17px; ">기 간</caption>
- <input id="ipt_possnddfr" ref="/root/send/req/possnddfr" class="input_search" inputtype="date" style="left:130px; top:5px; width:120px; height:19px; "/>
- <input id="ipt_possnddto" ref="/root/send/req/possnddto" class="input_search" inputtype="date" style="left:272px; top:5px; width:120px; height:19px; "/>
- <caption id="caption23" style="left:254px; top:6px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
- </group>
- <group id="grup_rpiryn" visibility="hidden" style="left:10px; top:280px; width:400px; height:30px; ">
- <caption id="cap_rpiryn" class="search_name" style="left:10px; top:5px; width:100px; height:17px; ">수리여부</caption>
- <select1 id="rdo_rpiryn" ref="/root/send/req/rpiryn" disabled="true" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:130px; top:5px; width:205px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>미수리</label>
- <value>N</value>
- </item>
- <item>
- <label>수리</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- </group>
- <group id="grup_reqddterm" visibility="hidden" style="left:10px; top:310px; width:400px; height:30px; ">
- <caption id="cap_reqddterm" class="search_name" style="left:10px; top:5px; width:100px; height:17px; ">기 간</caption>
- <input id="ipt_reqdd1" ref="/root/send/req/reqdd1" class="input_search" inputtype="date" style="left:130px; top:5px; width:120px; height:19px; "/>
- <input id="ipt_reqdd2" ref="/root/send/req/reqdd2" class="input_search" inputtype="date" style="left:272px; top:5px; width:120px; height:19px; "/>
- <caption id="caption3" style="left:254px; top:6px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
- </group>
- <group id="grup_acsrssrchyn" visibility="hidden" style="left:10px; top:340px; width:400px; height:30px; ">
- <caption id="cap_acsrssrchyn" class="search_name" style="left:10px; top:5px; width:100px; height:17px; ">부품조회</caption>
- <select1 id="rdo_acsrssrchyn" ref="/root/send/req/acsrssrchyn" disabled="true" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:130px; top:5px; width:205px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>Yes</label>
- <value>Y</value>
- </item>
- <item>
- <label>No</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|