123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <csrdeptlist/>
- <csrreqdeptnm>
- <csrreqdeptnm/>
- </csrreqdeptnm>
- <csrbipumlist>
- <rgstflag/>
- <deptcd/>
- <deptnm/>
- <goodcd/>
- <goodnm/>
- <goodspec/>
- <goodmodel/>
- <deliveunit/>
- <safestocqty/>
- <chngsafestocqty/>
- <goodmngtflag/>
- <cmt/>
- <certyn/>
- <lastupdtrid/>
- <lastupdtrnm/>
- <lastupdtdt/>
- <fstrgstdt/>
- <reqflag/>
- <instcd/>
- <goodflag/>
- <purcunit/>
- <minexch/>
- <ddavguseqty/>
- <lrgcd/>
- <lrgnm/>
- <mdlcd/>
- <mdlnm/>
- <smlcd/>
- <smlnm/>
- </csrbipumlist>
- </main>
- <send>
- <goodcd/>
- <deptcd/>
- <instcd/>
- <goodflag>T</goodflag>
- <csrreqdeptcd/>
- <goodnm/>
- <certyn>N</certyn>
- <srchfromdd/>
- <srchtodd/>
- <chnginsp/>
- </send>
- <init>
- <mlist/>
- </init>
- <hidden>
- <common>
- <instcdinfo/>
- <rgstflaginfo/>
- <dinfdivsinfo/>
- </common>
- </hidden>
- <temp/>
- <copynode/>
- <cond>
- <checkallitem/>
- </cond>
- </root>
- </instance>
- <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="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRMNG01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/senddata" resultref="/root/main/csrbipumlist"/>
- <submission id="TXMNG00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
- <submission id="TRMNG00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/csrreqdeptlist"/>
- <submission id="TRMNG00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/csrdeptlist"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fInitialize()
- {
- /*
- var oprnerId = opener.window.javascript.getScreenID();
- if(oprnerId =="SMRSS00101"){
- var getDeptcd = opener.javascript.getParameter("deptcd");
- var getDeptnm = opener.javascript.getParameter("deptnm");
- if((getDeptcd !="")||(getDeptnm !="")){
- model.setValue("/root/send/deptcd",getDeptcd);
- model.setValue("/root/send/deptnm",getDeptnm);
- }
- }*/
- //기관코드, 물품구분 공통 코드를 가져온다.
- zbcfGetCodeList (new Array("Z0007","M0588","M0585")
- ,new Array("/root/hidden/common/instcdinfo","/root/hidden/common/rgstflaginfo"
- ,"/root/hidden/common/dinfdivsinfo"
- ),true);
-
- var dutplcecd = getUserInfo("dutplcecd");
- var jobrespcd = getUserInfo("jobrespcd");
- //---------(20101204) 경북대
- //추가
- var sjobposcd = getUserInfo("jobposcd"); // 직위
- var ssflag = "";
- if(getUserInfo("dutplceinstcd") != '032' && getUserInfo("dutplceinstcd") != '031') {
- //경북대가 아니면
- if( jobrespcd == "1901"){
- ssflag = "Y";
- }else{
- ssflag = "N";
- }
- } else if(getUserInfo("dutplceinstcd") == '032' || getUserInfo("dutplceinstcd") == '031') {
- //경북대이면
- if( sjobposcd == "75"){ //수간호사
- ssflag = "Y";
- }else{
- ssflag = "N";
- }
- }
- //---------(20101204) 경북대
- if((dutplcecd == "3080000000") || (dutplcecd == "3081300000")) {
- //---------(20101204) 경북대
- //if(jobrespcd == "1901") {
- if(ssflag == "Y") {
- //---------(20101204) 경북대
- btn_cert.disabled = false;
- }
- } else {
- //---------(20101204) 경북대
- //if(jobrespcd == "1901") {
- if(ssflag == "Y") {
- //---------(20101204) 경북대
- btn_cert.disabled = true;
- }else{
- btn_cert.disabled = true;
- }
- }
-
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/instcd", cmb_instcd.value);
- model.makeValue("/root/send/reqdata/useyn", "Y");
-
- submit("TRMNG00401");
- addComboItem("cmb_csrreqdeptcd", "전체", "", "above");
-
- model.removeNodeset("/root/send/reqdata");
- model.removeNodeset(grd_csrbipumlist.nodeset);
-
- var fromdd = ((getCurrentDate()).toDate()).getAddDate(-3, "M");
- model.setValue("/root/send/srchfromdd", fromdd.getDateFormat());
- model.setValue("/root/send/srchtodd",getCurrentDate());
-
- /*
- if(getUserInfo("dutplcecd") != "3080000000") {
-
- model.setValue(ipt_reqdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
- model.setValue(ipt_reqdeptnm.attribute("ref"), getUserInfo("dutplcenm"));
-
- } else {
- model.setValue(rdo_certyn.attribute("ref"), "N");
-
- rdo_certyn.refresh();
- }
- */
- //grd_csrbipumlist.fixedcellcheckbox(0,grd_csrbipumlist.colRef("certyn"),false) = true;
- fSearch();
- model.refresh();
-
- }
-
- function fSearch() {
-
- //grd_csrbipumlist.fixedcellischeck(0, grd_csrbipumlist.colRef("certyn")) = false;
- model.makeValue("/root/send/senddata/instcd" , getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/senddata/deptcd" , model.getValue(ipt_reqdeptcd.attribute("ref")));
- //model.makeValue("/root/send/senddata/goodcd" , model.getValue(ipt_goodcd.attribute("ref")));
- model.makeValue("/root/send/senddata/srchfromdd" , model.getValue("/root/send/srchfromdd"));
- model.makeValue("/root/send/senddata/srchtodd" , model.getValue("/root/send/srchtodd"));
- model.makeValue("/root/send/senddata/certyn" , model.getValue(rdo_certyn.attribute("ref")));
- model.makeValue("/root/send/senddata/chnginsp" , model.getValue("/root/send/chnginsp"));
- model.makeValue("/root/send/senddata/csrreqdeptcd", model.getValue("/root/send/csrreqdeptcd"));
- submit("TRMNG01001");
-
- for(var i =1; i < grd_csrbipumlist.rows ; i++){
- var certyn = grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("certyn"));
- if(certyn =="Y"){
- grd_csrbipumlist.isReadOnly(i,grd_csrbipumlist.colRef("certyn")) = true;
- }else{
- grd_csrbipumlist.isReadOnly(i,grd_csrbipumlist.colRef("certyn")) = false;
- }
- }
- model.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:178px; height:14px; ">미확정조회</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:43px; width:1195px; height:725px; ">
- <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:60px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9; width:89px; height:17px; ">기관코드 :</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:105px; top:9px; width:125px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:685px; top:10px; width:88px; height:17px; ">부 서 명 :</caption>
- <button id="btn_reqdept" class="icon_search" visibility="hidden" style="left:883px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- modal("SPRSS01203");
-
- model.setValue(ipt_reqdeptcd.attribute("ref"), model.property("deptcd"));
- model.setValue(ipt_reqdeptnm.attribute("ref"), model.property("deptnm"));
-
-
- ipt_reqdeptcd.refresh();
- ipt_reqdeptnm.refresh();
-
- fSearch();
- //
- // if(cmb_csrreqdeptcd.value != "") {
- // if(isRequiredControls("cmb_csrreqdeptcd")) {
- // grd_csrreqdeptnm.valueMatrix(1, grd_csrreqdeptnm.colRef("csrreqdeptnm")) = cmb_csrreqdeptcd.label;
- // fSearch2();
- //
- // for(var i = 1; i <= grd_deptlist.rows; i++) {
- //
- // if( grd_deptlist.valueMatrix(i, grd_deptlist.colRef("deptcd")) == ipt_reqdeptcd.value ) {
- // grd_deptlist.row = i;
- // curRow = grd_deptlist.row;
- // fSearch();
- // break;
- // }
- // }
- // }
- // }
-
-
- ]]>
- </script>
- </button>
- <input id="ipt_reqdeptnm" ref="/root/send/deptnm" class="input_search" visibility="hidden" style="left:905px; top:10px; width:102px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm");
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_reqdeptcd" ref="/root/oldsend/deptcd" class="input_default" visibility="hidden" maxlength="10" style="left:775px; top:9px; width:100px; height:19px; "/>
- <line id="line3" class="line_4" style="x1:1100px; y1:15px; x2:1100px; y2:41px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1115px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:360px; top:35px; width:89px; height:17px; ">확정구분 :</caption>
- <select1 id="rdo_certyn" ref="/root/send/certyn" appearance="full" cols="3" overflow="visible" style="left:450px; top:37px; width:110px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>확정</label>
- <value>Y</value>
- </item>
- <item>
- <label>미확정</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var certyn = model.getValue("/root/send/certyn");
-
- if(certyn =="Y"){
- btn_cert.disabled = true;
- chk_chkall.disabled = true;
- }else{
- btn_cert.disabled = false;
- chk_chkall.disabled = false;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:15px; top:35px; width:91px; height:17px; ">조회일자 :</caption>
- <input id="ipt_reqfrdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:105px; top:35px; width:100px; height:19px; text-align:center; "/>
- <caption id="caption11" class="search_no_b" style="left:215px; top:35px; width:12px; height:17px; ">~</caption>
- <input id="input3" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:240px; top:35px; width:100px; height:19px; text-align:center; "/>
- <select1 id="rdo_chnginsp" ref="/root/send/chnginsp" appearance="full" cols="6" overflow="visible" style="left:690px; top:35px; width:300px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>등록</label>
- <value>1</value>
- </item>
- <item>
- <label>변경</label>
- <value>2</value>
- </item>
- <item>
- <label>분실</label>
- <value>5</value>
- </item>
- <item>
- <label>파손</label>
- <value>6</value>
- </item>
- <item>
- <label>실사</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:595px; top:35px; width:89px; height:17px; ">상태구분 :</caption>
- <select1 id="cmb_deptcd" ref="/root/send/deptcd" class="combo_s_essential" appearance="minimal" style="left:539px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/csrdeptlist">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:450px; top:10px; width:89px; height:17px; ">부 서 명 :</caption>
- <caption id="cap_csrreqdeptcd" class="search_name" style="left:240px; top:10px; width:89px; height:17px; ">부서구분 :</caption>
- <select1 id="cmb_csrreqdeptcd" ref="/root/send/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:334px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/csrreqdeptlist">
- <label ref="csrreqdeptnm"/>
- <value ref="csrreqdeptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_csrreqdeptcd.value);
- model.makeValue("/root/send/reqdata/useyn","Y");
- submit("TRMNG00402");
- addComboItem("cmb_deptcd", "전체", "", "above");
- cmb_deptcd.refresh();
- fSearch();
- ]]>
- </script>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1193px; y2:95px; "/>
- <caption id="caption4" class="tit_2" style="left:0px; top:79px; width:171px; height:13px; ">CSR 미확정 물품정보</caption>
- <datagrid id="grd_csrbipumlist" nodeset="/root/main/csrbipumlist" class="datagrid2" caption="확정^상태^요청일시^요청자^부서코드^부서명^물품코드^물품명^규격^모델^단위^멸균구분^재고
수량^처음
재고^비품수량^청구수량^반납수량^파손수량^분실수량^분실상세^실사량^비고^확정일시^확정자^수정자ID^수정자^수정일자^최초
등록일자^청구구분^instcd^goodflag^purcunit^minexch^ddavguseqty^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^reqflag" colsep="^" colwidth="34, 47, 116, 84, 0, 100, 100, 167, 62, 70, 40, 88, 50, 0, 34, 36, 34, 31, 36, 86, 60, 100, 118, 100, 70, 70, 80, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" frozencols="13" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:100px; width:1194px; height:620px; ">
- <col checkvalue="Y,N" ref="certyn" type="checkbox"/>
- <col disabled="true" ref="rgstflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/common/rgstflaginfo/M0588">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="lastupdtrnm" style="text-align:center; "/>
- <col class="input_essential" ref="deptcd" visibility="hidden" _key="true"/>
- <col ref="deptnm" style="text-align:center; "/>
- <col class="input_essential" disabled="true" ref="goodcd" _key="true"/>
- <col ref="goodnm"/>
- <col ref="goodspec"/>
- <col ref="goodmodel"/>
- <col ref="deliveunit"/>
- <col disabled="true" ref="dinfdivs" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/hidden/common/dinfdivsinfo/M0585">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="realqty" visibility="hidden" style="text-align:right; "/>
- <col ref="minexch"/>
- <!-- 처음재고수량(처음 안전재고를 입력시에 처음 가질 재고량) -->
- <col disabled="true" ref="safestocqty" format="(-)#,###.##" style="text-align:right; "/>
- <col disabled="true" ref="chngsafestocqty" format="(-)#,###.##" style="text-align:right; "/>
- <col disabled="true" ref="reqlmtqty" format="(-)#,###.##" style="text-align:right; "/>
- <col disabled="true" ref="hdrncqty" style="text-align:right; "/>
- <col disabled="true" ref="missqty" style="text-align:right; "/>
- <col class="input_essential" disabled="true" ref="missflag" type="combo" _key="true">
- <choices>
- <item>
- <label>비품수량 변경없이청구</label>
- <value>1</value>
- </item>
- <item>
- <label>비품수량감소</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="orginspqty" style="text-align:right; "/>
- <col ref="cmt"/>
- <col ref="certdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="certnm" style="text-align:center; "/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastupdtrnm" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="fstrgstdt" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="reqflag" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="goodflag" visibility="hidden"/>
- <col ref="purcunit" visibility="hidden"/>
- <col ref="minexch" visibility="hidden"/>
- <col ref="ddavguseqty" visibility="hidden"/>
- <col ref="lrgcd" visibility="hidden"/>
- <col ref="lrgnm" visibility="hidden"/>
- <col ref="mdlcd" visibility="hidden"/>
- <col ref="mdlnm" visibility="hidden"/>
- <col ref="smlcd" visibility="hidden"/>
- <col ref="smlnm" visibility="hidden"/>
- <col ref="reqflag" visibility="hidden"/>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == 9) {
-
- grd_csrbipumlist.editCell();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_csrbipumlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_csrbipumlist.isCell(event.target)) {
- for(var i = 1; i < grd_csrbipumlist.rows; i++) {
- var certyn = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("certyn"));
- if(certyn =="Y"){
- grd_csrbipumlist.rowStatus(i) = "2";
- }else{
- grd_csrbipumlist.rowStatus(i) = "0";
- }
-
- }
- }
- grd_csrbipumlist.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="btn_cert" class="btn5_letter2" style="left:1150px; top:74px; width:42px; height:19px; ">
- <caption>확정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = grd_csrbipumlist.fixedRows; i < grd_csrbipumlist.rows; i++) {
- if(grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("certyn")) == "Y") {
- grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("goodmngtflag")) = "-";
- if( grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("rgstflag")) == "3"
- && ( grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("orginspqty")) != ""
- && grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("orginspqty")) != "0" ) ) {
- grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("realqty")) = grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("orginspqty"));
- }
- }
- }
-
- var csrbipumlist = getGridUpdateData(grd_csrbipumlist);
-
- model.makeValue("/root/send/savedata/csrbipumlist", csrbipumlist);
-
-
- submit("TXMNG00902");
- fSearch();
-
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/send/goodnm" class="input_search" visibility="hidden" appearance="input" style="left:705px; top:70px; width:147px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodnm.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd,goodnm",
- "goodnm" + "," + model.getValue(cmb_instcd.attribute("ref")) + "," + ipt_goodflag.value + ",," + ipt_goodnm.value,
- "", "goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- }else{
- ipt_goodcd.value = "";
- }
- model.refresh();
-
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" visibility="hidden" style="left:507px; top:71px; width:91px; height:17px; ">물품코드 :</caption>
- <button id="button1" class="icon_search" visibility="hidden" style="left:686px; top:71px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- modal("SMRSS00130");
-
- model.setValue(ipt_goodcd.attribute("ref"), model.property("goodcd"));
- model.setValue(ipt_goodnm.attribute("ref"), model.property("goodnm"));
-
-
- ipt_goodcd.refresh();
- ipt_goodnm.refresh();
- //btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <input id="input2" ref="/root/send/goodcd" class="input_fix" visibility="hidden" maxlength="10" style="left:597px; top:70px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_goodcd.value != "")
- {
- rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd",
- "goodcd" + "," + model.getValue(cmb_instcd.attribute("ref")) + "," + ipt_goodflag.value + "," + ipt_goodcd.value, "",
- "goodcd,goodnm",
- ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
- }else{
- ipt_goodnm.value = "";
- }
- model.refresh();
-
- ]]>
- </script>
- </input>
- <select id="chk_chkall" ref="/root/cond/checkallitem" overflow="visible" appearance="full" style="left:155px; top:76px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>ALL CHECK</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var allCheck = model.getValue("/root/cond/checkallitem");
- if(allCheck =="Y"){
- for(var i=1; i< grd_csrbipumlist.rows;i++){
- var CertYn = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("certyn"));
- var GoodCD = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("goodcd"));
- if((CertYn=="N")||(CertYn=="")){
- model.setValue("/root/main/csrbipumlist["+i+"]/certyn","Y");
- if(GoodCD!=""){
- grd_csrbipumlist.rowStatus(i)="2";
- }
- }
- }
- }else{
- for(var i=1; i< grd_csrbipumlist.rows;i++){
- var readOnly = grd_csrbipumlist.isReadOnly(i,grd_csrbipumlist.colRef("certyn"));
- var GoodCD = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("goodcd"));
- if(readOnly =="0"){
- model.setValue("/root/main/csrbipumlist["+i+"]/certyn","N");
- if(GoodCD !=""){
- grd_csrbipumlist.rowStatus(i)="0";
- }
-
- }
- }
- }
- grd_csrbipumlist.refresh();
- ]]>
- </script>
- </select>
- </group>
- </xhtml:body>
- </xhtml:html>
|