123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet ype="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:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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>
- <movereq>
- <movereqlist/>
- </movereq>
- <good>
- <gooddetail/>
- </good>
- <dupcheck>
- <dupyn/>
- </dupcheck>
- </main>
- <send>
- <search>
- <instcd/>
- <fromdeptcd/>
- <fromdeptnm/>
- <movefromdd/>
- <movetodd/>
- <movegubun>1</movegubun>
- </search>
- <save>
- <movereqlist/>
- </save>
- </send>
- <init>
- </init>
- <hidden/>
- <temp>
- </temp>
- <jaego>
- <search>
- <instcd/>
- <goodcd/>
- <ymd/>
- <fromdeptcd/>
- </search>
- <value/>
- </jaego>
- <popgood>
- <instcd/>
- <wareflag/>
- <delivedd/>
- <basedd/>
- <selectyn/>
- <goodcd/>
- <goodlist>
- <goodcd/>
- </goodlist>
- </popgood>
- <popdelive>
- <instcd/>
- <delivedd/>
- <delivedeptcd/>
- <delivedeptnm/>
- <opener/>
- </popdelive>
- <popreq>
- <count/>
- </popreq>
- <popsubdata/>
- <magamsearch>
- <instcd/>
- <dd/>
- <deptcd/>
- </magamsearch>
- <distrimagam/>
- <magam/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- misfGridInit(grd_movereqlist);
-
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
-
- model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/search/movefromdd" , getCurrentDate());
- model.setValue("/root/send/search/movetodd" , getCurrentDate());
- model.setValue("/root/send/search/fromdeptcd",getUserInfo("dutunitcd"));
- model.setValue("/root/send/search/fromdeptnm",getUserInfo("dutunitnm"));
- model.refresh();
- ]]>
- </script>
- <submission id="TRRSO22801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/movereq"/>
- <submission id="TXRSO22801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
- <submission id="TRRSO22802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/jaego/search" resultref="/root/jaego/value"/>
- <submission id="TRRSO20104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/popgood" resultref="/root/main/good"/>
- <submission id="TRRSO21003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/magamsearch" resultref="/root/distrimagam"/>
- <submission id="TRRSO21002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/magamsearch" resultref="/root/magam"/>
- </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/numericHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fGetGoodDetail() {
-
- for(var k = 1; k <= instance1.selectNodes("/root/popgood/goodlist").length; k++) {
-
- var bDup = false; //물품코드가 중복되었는지를 확인하기 위한 변수
-
- //popup에서 선택한 물품코드가 이미 grid에 존재하고 있는지를 check하여 이미 존재하면 message를 보여주고 return한다.
- for(var i = 1; i < grd_movereqlist.rows; i++) {
- if( grd_movereqlist.valueMatrix(i, grd_movereqlist.colRef("goodcd")) == model.getValue("/root/popgood/goodlist[" + k + "]/goodcd") ) {
- messageBox("물품코드가 중복되었습니다. [" + grd_movereqlist.valueMatrix(i, grd_movereqlist.colRef("goodcd")) + "] ", "E999", ""); //E: 경고
- bDup = true;
- continue;
- }
- }
-
- if( bDup == false ) {
- // node 삭제
- //model.removenode("/root/main/gooddetail");
-
- //TRRSO20104를 위해 물품코드를 goodcd에 넣는다.
- model.setValue( "/root/popgood/goodcd", model.getValue("/root/popgood/goodlist[" + k + "]/goodcd") );
-
- if( submit("TRRSO20104") ) {
- /* model.setValue(grd_delive.nodeset + "[" + grd_delive.row + "]/instcd", model.getValue("/root/send/search/instcd"));
- model.setValue(grd_delive.nodeset + "[" + grd_delive.row + "]/delivedd", model.getValue("/root/send/search/delivedd"));
- //model.setValue(grd_delive.nodeset + "[" + grd_delive.row + "]/deliveno", model.getValue("/root/send/search/deliveno"));
- //model.setValue(grd_delive.nodeset + "[" + grd_delive.row + "]/deliveseq", model.getValue("/root/send/search/deliveseq"));
- model.setValue(grd_delive.nodeset + "[" + grd_delive.row + "]/wareflag", model.getValue("/root/send/search/wareflag"));
- model.setValue(grd_delive.nodeset + "[" + grd_delive.row + "]/delivedeptcd", model.getValue("/root/send/search/delivedeptcd"));
- */
- //마직막 행에 물품코드가 등록되어 있으면 그 행에 바로 적용하고, 물품코드가 없으면 한 행을 추가한 뒤 적용한다.
- if( grd_movereqlist.valueMatrix(grd_movereqlist.rows-1, grd_movereqlist.colRef("goodcd")) != "" ) {
- btn_add.dispatch("DOMActivate");
- }
-
- model.setValue(grd_movereqlist.nodeset + "[" + (grd_movereqlist.rows-1) + "]/goodcd", model.getValue("/root/main/good/gooddetail/goodcd"));
- model.setValue(grd_movereqlist.nodeset + "[" + (grd_movereqlist.rows-1) + "]/goodhngnm", model.getValue("/root/main/good/gooddetail/goodnm"));
- model.setValue(grd_movereqlist.nodeset + "[" + (grd_movereqlist.rows-1) + "]/goodspec", model.getValue("/root/main/good/gooddetail/goodspec"));
- model.setValue(grd_movereqlist.nodeset + "[" + (grd_movereqlist.rows-1) + "]/moveqty", "0");
-
- if(grd_movereqlist.valueMatrix(grd_movereqlist.row, grd_movereqlist.colRef("goodhngnm")) != ""){
- model.setValue("/root/jaego/search/goodcd", grd_movereqlist.valueMatrix(grd_movereqlist.row, grd_movereqlist.colRef("goodcd")));
- model.setValue("/root/jaego/search/ymd", grd_movereqlist.valueMatrix(grd_movereqlist.row, grd_movereqlist.colRef("movedd")));
- model.setValue("/root/jaego/search/instcd", grd_movereqlist.valueMatrix(grd_movereqlist.row, grd_movereqlist.colRef("instcd")));
- model.setValue("/root/jaego/search/fromdeptcd", grd_movereqlist.valueMatrix(grd_movereqlist.row, grd_movereqlist.colRef("fromdeptcd")));
- submit("TRRSO22802");
-
- var jaego = model.getValue("/root/jaego/value/value/jaegoqty");
- grd_movereqlist.valueMatrix(grd_movereqlist.row, grd_movereqlist.colRef("jaegoqty")) = jaego;
- }
- }
-
- } // if( bDup ...) end
-
- } // for(var k ...) end
-
- grd_movereqlist.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:243px; height:15px; ">물품이동내역(물품보내는부서)</caption>
- </group>
- <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter2" navindex="12" style="left:1138px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i = 1 ; i < grd_movereqlist.rows ; i++){
- var todeptnm = grd_movereqlist.valueMatrix(i, grd_movereqlist.colRef("todeptnm"));
- if(todeptnm == ""){
- messageBox(i+"번째줄 물품받는부서가 없습니다. 확인해주십시오.", "E999", "");
- return;
- }
- }
-
- if(grd_movereqlist.rows != 1){
- var instcd = grd_movereqlist.valueMatrix(1, grd_movereqlist.colRef("instcd"));
- var dd = grd_movereqlist.valueMatrix(1, grd_movereqlist.colRef("movedd"));
- var fromdeptcd = grd_movereqlist.valueMatrix(1, grd_movereqlist.colRef("fromdeptcd"));
- var todeptcd = grd_movereqlist.valueMatrix(1, grd_movereqlist.colRef("todeptcd"));
-
- if(instcd == ""){
- model.setValue("/root/magamsearch/instcd", model.getValue("/root/send/search/instcd"));
- model.setValue("/root/magamsearch/dd", model.getValue("/root/send/search/movefromdd"));
- model.setValue("/root/magamsearch/deptcd", model.getValue("/root/send/search/fromdeptcd"));
- }else{
- model.setValue("/root/magamsearch/instcd", instcd);
- model.setValue("/root/magamsearch/dd", dd);
- model.setValue("/root/magamsearch/deptcd", fromdeptcd);
- }
-
- cap_magam.value = "";
- if(submit("TRRSO21003")){
- var endyn = model.getValue("/root/distrimagam/endyn");
- if(endyn == "Y"){
- cap_magam.value = "물류마감이 되어있습니다.";
- messageBox("물류마감이 되어 저장이 불가능합니다.", "E999", "");
- return;
- }else{
- cap_magam.value = "";
- if(submit("TRRSO21002")){
- var magamyn = model.getValue("/root/magam/magamyn");
- if(magamyn == "Y"){
- cap_magam.value = "물품보내는부서는 현재 마감되어있습니다.";
- messageBox("물품보내는부서가 마감이 되어 저장이 불가능합니다.", "E999", "");
- return;
- }else{
- cap_magam.value = "";
- }
- }else{
- return;
- }//if(submit("TRRSO21002")){
- }//if(endyn == "Y"){
- }else{
- return;
- }//if(submit("TRRSO21003")){
-
- if(instcd == ""){
- model.setValue("/root/magamsearch/instcd", model.getValue("/root/send/search/instcd"));
- model.setValue("/root/magamsearch/dd", model.getValue("/root/send/search/movefromdd"));
- model.setValue("/root/magamsearch/deptcd", model.getValue("/root/send/search/todeptcd"));
- }else{
- model.setValue("/root/magamsearch/instcd", instcd);
- model.setValue("/root/magamsearch/dd", dd);
- model.setValue("/root/magamsearch/deptcd", todeptcd);
- }
-
- cap_magam.value = "";
- if(submit("TRRSO21003")){
- var endyn = model.getValue("/root/distrimagam/endyn");
- if(endyn == "Y"){
- cap_magam.value = "물류마감이 되어있습니다.";
- messageBox("물류마감이 되어 저장이 불가능합니다.", "E999", "");
- return;
- }else{
- cap_magam.value = "";
- if(submit("TRRSO21002")){
- var magamyn = model.getValue("/root/magam/magamyn");
- if(magamyn == "Y"){
- cap_magam.value = "물품받는부서는 현재 마감되어있습니다.";
- messageBox("물품받는부서가 마감이 되어 저장이 불가능합니다.", "E999", "");
- return;
- }else{
- cap_magam.value = "";
- }
- }else{
- return;
- }//if(submit("TRRSO21002")){
- }//if(endyn == "Y"){
- }else{
- return;
- }//if(submit("TRRSO21003")){
- }else{
- return;
- }//if(grd_movereqlist.r
-
- model.setValue("/root/send/save/movereqlist",grd_movereqlist.getUpdateData());
- if(submit("TXRSO22801")){
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="btn_help" class="btn4_letter3" navindex="12" style="left:1070px; top:3px; width:68px; height:22px; ">
- <caption>도움말</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.load("SMRSO22801.xrw", "modeless","", "", "","");
- ]]>
- </script>
- </button>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="grp_search" style="left:0px; top:0px; width:1195px; height:36px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1128px; top:6px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(opt_fromdeptcd.value == "") {
- messageBox("부서가 선택되지 않았습니다. \n\n먼저 부서를 선택하십시요.", "E999", "");
- model.setFocus("ipt_fromdeptcd");
- return;
- };
- if(ipt_movefromdd.value.length < 8) {
- messageBox("이동일자가 선택되지 않았거나 잘못되었습니다. \n\n먼저 이동일자를 선택하십시요.", "E999", "");
- model.setFocus("ipt_movefromdd");
- return;
- };
- if(ipt_movetodd.value.length < 8) {
- messageBox("이동일자가 선택되지 않았거나 잘못되었습니다. \n\n먼저 이동일자를 선택하십시요.", "E999", "");
- model.setFocus("ipt_movetodd");
- return;
- };
-
- misfGridInit(grd_movereqlist);
- if(submit("TRRSO22801")){
- model.setValue("/root/magamsearch/instcd", model.getValue("/root/send/search/instcd"));
- model.setValue("/root/magamsearch/dd", model.getValue("/root/send/search/movefromdd"));
- model.setValue("/root/magamsearch/deptcd", model.getValue("/root/send/search/fromdeptcd"));
-
- cap_magam.visible = "";
- if(submit("TRRSO21003")){
- var endyn = model.getValue("/root/distrimagam/endyn");
- if(endyn == "Y"){
- cap_magam.value = "물류마감이 되어있습니다.";
- }else{
- cap_magam.value = "";
-
- if(submit("TRRSO21002")){
- var magamyn = model.getValue("/root/magam/magamyn");
- if(magamyn == "Y"){
- cap_magam.value = "해당부서는 현재 마감되어있습니다.";
- }else{
- cap_magam.value = "";
- }
- }else{
- return;
- }
- }
- }else{
- return;
- }
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:67px; top:8px; width:136px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/init">
- <label ref="cnstnm"/>
- <value ref="cnstcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" style="left:13px; top:9px; width:86px; height:17px; ">기관:</caption>
- <input id="ipt_movefromdd" ref="/root/send/search/movefromdd" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:695px; top:8px; width:85px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption20" class="search_name" style="left:235px; top:9px; width:81px; height:17px; vertical-align:middle; ">부서:</caption>
- <line id="line30" class="line_4" style="x1:1115px; y1:5px; x2:1115px; y2:30px; "/>
- <button id="btn_delivedeptcd" class="icon_search" navindex="5" style="left:397px; top:8px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_fromdeptcd,"", "fromdeptcd,fromdeptnm");
- ipt_fromdeptcd.refresh();
- opt_fromdeptcd.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_fromdeptcd" ref="/root/send/search/fromdeptcd" class="input_default" navindex="4" style="left:290px; top:8px; width:105px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "fromdeptcd,fromdeptnm" );
- ipt_fromdeptcd.refresh();
- opt_fromdeptcd.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //2012.04.05 박준범 추가
- inputEnterKey("ipt_fromdeptcd", "xforms-value-changed");
- ]]>
- </script>
- </input>
- <output id="opt_fromdeptcd" ref="/root/send/search/fromdeptnm" class="output_fix" appearance="output" style="left:415px; top:8px; width:156px; height:19px; "/>
- <caption id="caption9" class="search_name" style="left:614px; top:9px; width:86px; height:17px; ">이동일자:</caption>
- <input id="ipt_movetodd" ref="/root/send/search/movetodd" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:800px; top:8px; width:85px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <caption id="caption2" style="left:785px; top:9px; width:20px; height:20px; ">~</caption>
- </group>
- <button id="btn_del" class="btn2_letter3" navindex="11" style="left:1137px; top:39px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_movereqlist, "D");
- ]]>
- </script>
- </button>
- <caption id="caption4" class="tit_2" style="left:0px; top:45px; width:215px; height:13px; ">이동요청내역(물품보내는부서)</caption>
- <button id="btn_add" class="btn2_letter3" navindex="10" style="left:1083px; top:39px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_movereqlist, "A");
- grd_movereqlist.valueMatrix(grd_movereqlist.row, grd_movereqlist.colRef("instcd")) = cmb_instcd.value;
- grd_movereqlist.valueMatrix(grd_movereqlist.row, grd_movereqlist.colRef("movedd")) = ipt_movefromdd.value;
- grd_movereqlist.valueMatrix(grd_movereqlist.row, grd_movereqlist.colRef("fromdeptcd")) = ipt_fromdeptcd.value;
- grd_movereqlist.valueMatrix(grd_movereqlist.row, grd_movereqlist.colRef("fromdeptnm")) = opt_fromdeptcd.value;
- grd_movereqlist.valueMatrix(grd_movereqlist.row, grd_movereqlist.colRef("movegubun")) = "1";
- ]]>
- </script>
- </button>
- <line id="line3" class="line_1" style="x1:0px; y1:60px; x2:1195px; y2:60px; "/>
- <datagrid id="grd_movereqlist" nodeset="/root/main/movereq/movereqlist" class="datagrid2" caption="이동일자^물품코드^물품명^규격^현재고량^이동수량^물품보내는부서^물품받는부서^이동요청^caption1^caption2" colsep="^" colwidth="103, 125, 206, 201, 60, 60, 170, 170, 60, 1, 1, 1, 0, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="9" style="left:0px; top:65px; width:1195px; height:650px; ">
- <col disabled="true" ref="movedd" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="goodcd" type="inputbutton"/>
- <col ref="goodhngnm"/>
- <col ref="goodspec"/>
- <col ref="jaegoqty" style="text-align:center; "/>
- <col ref="moveqty" type="input" style="text-align:center; "/>
- <col disabled="true" ref="fromdeptnm" type="inputbutton"/>
- <col disabled="true" ref="todeptnm" type="inputbutton"/>
- <col ref="movegubun" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>1</value>
- </item>
- <item>
- <label>N</label>
- <value>0</value>
- </item>
- </choices>
- </col>
- <col ref="instcd" visibility="hidden"/>
- <col ref="moveno" visibility="hidden"/>
- <col ref="fromdeptcd" visibility="hidden"/>
- <col ref="todeptcd" visibility="hidden"/>
- <col ref="allsizespecid" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_movereqlist.colAttribute(grd_movereqlist.col,"ref") == "goodcd"){
-
- //popup 에 전달할 parameter를 setting한다.
- model.setValue("/root/popgood/instcd", cmb_instcd.value);
- model.setValue("/root/popgood/delivedd", ipt_movefromdd.value ); //향후 시점재고 조회를 위해 출고일자를 set
- //2012.09.17 박준범 - SPRSO20700.xrw 에서 사용하기 위해 basedd를 추가 함
- model.setValue("/root/popgood/basedd", ipt_movefromdd.value ); //물품코드 popup 에서 출고일자 기준으로 물품 Master 조회하기 위해서
-
- //selectyn(popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값) 을 초기화함
- model.setValue("/root/popgood/selectyn", "");
-
- //popup 프로그램 호출
- //window.load("SPRSO20300.xrw", "modal","", "", "/root/popgood","/root/popdata"); //단일선택창
- window.load("SPRSO20700.xrw", "modal","", "", "/root/popgood","/root/popdata"); //다중선택창
-
- //popup에서 특정 물품코드를 선택한 경우, 해당 물품코드에 대한 상세 사항을 조회해서 그리드에 보여준다.
- if(model.getValue("/root/popgood/selectyn") == "Y") { //popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값
- fGetGoodDetail(); //물품코드의 상세내역과 현재고를 조회하여 Grid에 보여줌
-
- //출고량을 입력하도록 focus이동
- grd_movereqlist.col = grd_movereqlist.colRef("moveqty");
-
- }
-
-
- }else if(grd_movereqlist.colAttribute(grd_movereqlist.col,"ref") == "fromdeptnm"){
- misfOpenPopUpList("02", grd_movereqlist,"", "fromdeptcd,fromdeptnm") ;
- }else if(grd_movereqlist.colAttribute(grd_movereqlist.col,"ref") == "todeptnm"){
- misfOpenPopUpList("02", grd_movereqlist,"", "todeptcd,todeptnm") ;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_movereqlist.colAttribute(grd_movereqlist.col,"ref") == "moveqty"){
- var jaegoqty = grd_movereqlist.valueMatrix(grd_movereqlist.row, grd_movereqlist.colRef("jaegoqty"));
- var moveqty = grd_movereqlist.valueMatrix(grd_movereqlist.row, grd_movereqlist.colRef("moveqty"));
- if(parseFloat(jaegoqty) < parseFloat(moveqty)){
- messageBox("이동수량이 현재고량보다 많을 수는 없습니다.", "I999", "");
- grd_movereqlist.valueMatrix(grd_movereqlist.row, grd_movereqlist.colRef("moveqty")) = "0";
- }
- grd_movereqlist.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_jaego" class="btn2_letter4" navindex="10" visibility="visible" style="left:1018px; top:39px; width:64px; height:19px; ">
- <caption>부서재고</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_fromdeptcd.value == "") {
- messageBox("부서가 선택되지 않았습니다. \n\n먼저 부서를 선택하십시요.", "E999", "");
- model.setFocus("ipt_fromdeptcd");
- return;
- };
- //popup 에 전달할 parameter를 setting한다.
- model.setValue("/root/popdelive/instcd", cmb_instcd.value);
- model.setValue("/root/popdelive/delivedd", ipt_movefromdd.value);
- model.setValue("/root/popdelive/delivedeptcd", ipt_fromdeptcd.value);
- model.setValue("/root/popdelive/delivedeptnm", opt_fromdeptcd.value);
- model.setValue("/root/popdelive/opener", "jaego");
-
- //갯수초기화
- model.setValue("/root/popreq/count", 0);
-
- //popup 프로그램 호출
- window.load("SMRSO21450.xrw", "modal","", "", "/root/popdelive","/root/popdata");
-
- var cnt = model.getValue("/root/popreq/count");
- var mrows = grd_movereqlist.rows;
- var mcnt = parseInt(mrows)+parseInt(cnt);
- var j = 1;
- for(i = mrows ; i <= mcnt-1 ; i++){
- misfGridIUD(grd_movereqlist, "A");
-
- model.setValue("/root/main/movereq/movereqlist["+i+"]/goodcd", model.getValue("/root/popsubdata/stocklist["+j+"]/goodcd")); //물품코드
- model.setValue("/root/main/movereq/movereqlist["+i+"]/goodhngnm", model.getValue("/root/popsubdata/stocklist["+j+"]/goodnm")); //물품명
- model.setValue("/root/main/movereq/movereqlist["+i+"]/goodspec", model.getValue("/root/popsubdata/stocklist["+j+"]/goodspec")); //규격
- model.setValue("/root/main/movereq/movereqlist["+i+"]/moveqty", "0"); //현재고수량
- //model.setValue("/root/main/movereq/movereqlist["+i+"]/deliveunit", model.getValue("/root/popsubdata/stocklist["+j+"]/purcunit")); //단위
- //model.setValue("/root/main/list/deptoutinfo/deptoutlist["+i+"]/winunitcost", model.getValue("/root/popsubdata/delivedtllist["+j+"]/goodunitcost")); //입고단가
- //model.setValue("/root/main/list/deptoutinfo/deptoutlist["+i+"]/wareflag", model.getValue("/root/popsubdata/delivedtllist["+j+"]/wareflag")); //창고구분
-
-
- model.setValue("/root/main/movereq/movereqlist["+i+"]/instcd", cmb_instcd.value);
- model.setValue("/root/main/movereq/movereqlist["+i+"]/movedd", ipt_movefromdd.value);
- model.setValue("/root/main/movereq/movereqlist["+i+"]/fromdeptcd", ipt_fromdeptcd.value);
- model.setValue("/root/main/movereq/movereqlist["+i+"]/fromdeptnm", opt_fromdeptcd.value);
- model.setValue("/root/main/movereq/movereqlist["+i+"]/movegubun", "1");
-
- model.setValue("/root/jaego/search/goodcd", model.getValue("/root/popsubdata/stocklist["+j+"]/goodcd"));
- model.setValue("/root/jaego/search/ymd", ipt_movefromdd.value);
- model.setValue("/root/jaego/search/instcd", cmb_instcd.value);
- model.setValue("/root/jaego/search/fromdeptcd", ipt_fromdeptcd.value);
-
- submit("TRRSO22802");
-
- var jaego = model.getValue("/root/jaego/value/value/jaegoqty");
- model.setValue("/root/main/movereq/movereqlist["+i+"]/jaegoqty", jaego);
- j++;
- }
- grd_movereqlist.refresh();
- ]]>
- </script>
- </button>
- <caption id="cap_magam" style="left:240px; top:38px; width:395px; height:20px; font-size:12pt; font-weight:bold; color:#ff0000; text-align:center; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|