123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- <?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>원가 배부기준값 등록 ( w_won0e050 )</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <masterinfo>
- <masterlist/>
- </masterinfo>
- <detailinfo>
- <detaillist/>
- </detailinfo>
- </main>
- <init>
- </init>
- <send>
- <reqdata/>
- <savedata/>
- </send>
- <hidden>
- <commoninfo>
- <perchgrlist1>
- <cmb_data/>
- </perchgrlist1>
- <perchgrlist2>
- <cmb_data/>
- </perchgrlist2>
- <perchgrlist3>
- <cmb_data/>
- </perchgrlist3>
- <perchgrlist4>
- <cmb_data/>
- </perchgrlist4>
- <perchgrlist5>
- <cmb_data/>
- </perchgrlist5>
- <acntlist/>
- <perchgrlist6>
- <cmb_data/>
- </perchgrlist6>
- <perchgrlist7>
- <cmb_data/>
- </perchgrlist7>
- <perchgrlist8>
- <cmb_data/>
- </perchgrlist8>
- </commoninfo>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/main/acntperchgrinfo/acntperchgrlist");
- //misfComboComCdList("030M0006" ,cmb_sanctflag);
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/SQLid", "d_won0e50_header_mis");
- model.makeValue("/root/send/reqdata/table_id", "masterlist");
- if(submit("TRRPB00052")){
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TXRPB00051" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/detailinfo"/>
- <submission id="TRRPB00052" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/masterinfo"/>
- <submission id="TRRPB00053" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/detailinfo"/>
- <submission id="TRRPB01052" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/commoninfo/perchgrlist1"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.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"/>
- </xhtml:head>
- <xhtml:body pagewidth="1200" pageheight="750" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:8px; top:0px; width:1197px; height:730px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:41px; x2:1180px; y2:41px; "/>
- <datagrid id="grd_masterlist" nodeset="/root/main/masterinfo/masterlist" caption="배부코드^배부기준 명칭^비고^기관코드" colsep="^" colwidth="65, 206, 324, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:50px; width:575px; height:650px; ">
- <col ref="baebu_code" type="input" style="text-align:center; "/>
- <col editmode="inputsearch" itemcount="20" ref="baebu_name" type="input" showmask="true" style="text-align:left; "/>
- <col ref="bigo" type="input"/>
- <col ref="instcd" type="input"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
-
- if (getGridUpdateData(grd_detaillist) != "") {
- var save_val = messageBox("변경된 자료가 존재 합니다. ", "Q002");
- if (save_val == "6") {
- btn_save.dispatch("DOMActivate");
- }
- }
- var cur_row = grd_masterlist.row;
- var bbcd = grd_masterlist.valueMatrix(cur_row, grd_masterlist.colRef("baebu_code"));
-
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/baebu_code", bbcd);
- model.makeValue("/root/send/reqdata/SQLid", "d_won0110_mis");
- model.makeValue("/root/send/reqdata/table_id", "detaillist");
- if(submit("TRRPB00053")){
- grd_detaillist.subtotal("sum", 1, 5, "#,##0.0", "background-color:#99ff99", 4, "기준값 합계");
- }
- model.refresh();
-
- if(grd_detaillist.rows>1) {
- grd_detaillist.row=1;
- }
- grd_detaillist.dispatch("onrowchanged");
- model.setFocus("grd_detaillist");
- //grd_masterlist.dispatch("onmouseup");
-
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:0px; width:465px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:255px; height:14px; color:#000000; ">원가 배부기준값 등록 ( w_won0e050 )</caption>
- </group>
- <button id="btn_chrtdeptdel" class="btn2_letter3" style="left:1062px; top:20px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if((grd_detaillist.rowStatus(grd_detaillist.row)=="1")||(grd_detaillist.rowStatus(grd_detaillist.row)=="3")){
- grd_detaillist.deleteRow(grd_detaillist.row);
- }else{
- grd_detaillist.rowStatus(grd_detaillist.row) ="4";
- }
- ]]>
- </script>
- </button>
- <button id="btn_chrtdeptadd" class="btn2_letter3" style="left:1005px; top:20px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_detaillist.rows > 0 ) grd_detaillist.removeRow();
- grd_detaillist.addRow();
- model.setValue("/root/main/detailinfo/detaillist["+grd_detaillist.row+"]/instcd",getUserInfo("dutplceinstcd"));
- var cur_row = grd_masterlist.row;
- var bbcd = grd_masterlist.valueMatrix(cur_row, grd_masterlist.colRef("baebu_code"));
- model.setValue("/root/main/detailinfo/detaillist["+grd_detaillist.row+"]/baebu_code",bbcd);
- model.setValue("/root/main/detailinfo/detaillist["+grd_detaillist.row+"]/dist_value",0);
- model.setValue("/root/main/detailinfo/detaillist["+grd_detaillist.row+"]/dist_value_tot",0);
- grd_detaillist.subtotal("sum", 1, 5, "#,##0.0", "background-color:#99ff99", 4, "기준값 합계");
- model.setFocus("grd_detaillist");
- grd_detaillist.col = grd_detaillist.colRef("bumon_code");
- grd_detaillist.editCell();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1120px; top:15px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ll_dist_value_tot = 0 , i ;
-
- for ( i = 1 ; i < grd_detaillist.rows-1; i++ )
- {
- if(grd_detaillist.rowStatus(i) != 4)
- {
- ll_dist_value_tot = ll_dist_value_tot + parseFloat( grd_detaillist.valueMatrix(i, grd_detaillist.colRef("dist_value") ) ) ;
- }
- }
- for ( i = 1 ; i < grd_detaillist.rows-1; i++ )
- {
- model.setValue("/root/main/detailinfo/detaillist["+ i +"]/dist_value_tot ", ll_dist_value_tot );
- if ( grd_detaillist.rowStatus(i) == 0) grd_detaillist.rowStatus(i) = 2 ;
- }
- model.refresh();
-
- model.makeValue("/root/send/savedata/DataGridList",grd_detaillist.getUpdateData());
- if(submit("TXRPB00051")){
- grd_masterlist.dispatch("onrowchanged");
- }
- ]]>
- </script>
- </button>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:520px; top:15px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/SQLid", "d_won0e50_header_mis");
- model.makeValue("/root/send/reqdata/table_id", "masterlist");
- if(submit("TRRPB00052")){
- model.removeNodeset("/root/send/reqdata");
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_sanctflag" ref="/root/cond/sanctflag" class="combo_s_fix" visibility="hidden" appearance="minimal" style="left:620px; top:15px; width:135px; height:19px; text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/sanctflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="grd_detaillist" nodeset="/root/main/detailinfo/detaillist" caption="배부코드^부문코드^부문코드명^기준값 합계^기준값^기관코드" colsep="^" colwidth="60, 87, 204, 98, 115, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" subtotalposition="below" tooltip="true" style="left:580px; top:45px; width:600px; height:650px; ">
- <col editable="false" ref="baebu_code" type="input" style="text-align:center; "/>
- <col class="input_essential" disabled="true" editmode="inputsearch" itemcount="20" ref="bumon_code" type="input" showmask="true" style="text-align:left; "/>
- <col editable="false" editmode="inputsearch" itemcount="20" ref="bumom_name" type="input"/>
- <col editable="false" editmode="inputsearch" itemcount="20" ref="dist_value_tot" type="input" format="#,##0.0" showmask="true" style="text-align:right; "/>
- <col ref="dist_value" type="input" format="#,##0.0" showmask="true" style="text-align:right; "/>
- <col editable="false" ref="instcd" type="input"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (grd_detaillist.col == 2) {//부문코드가 변경
- var cur_row = grd_detaillist.row;
- var bmcd = grd_detaillist.valueMatrix(cur_row, grd_detaillist.colRef("bumon_code"));
- model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/reqdata/bumon_code", bmcd);
- model.makeValue("/root/send/reqdata/SQLid", "get_bumom_name");
- model.makeValue("/root/send/reqdata/table_id", "cmb_data");
- if(submit("TRRPB01052")){
- model.setValue("/root/main/detailinfo/detaillist["+cur_row+"]/bumom_name",model.getValue("/root/hidden/commoninfo/perchgrlist1/cmb_data[1]/cdnm"));
- }
- }else if(grd_detaillist.col == 5) { //기준값이 변경 되었을 때
- grd_detaillist.removeRow();
- grd_detaillist.subtotal("sum", 1, 5, "#,##0.0", "background-color:#99ff99", 4, "기준값 합계");
- }
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|