123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- <?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>
- <data>
- <valuitemcd/>
- <h_valuitemcd/>
- <dngrstatcd/>
- <h_dngrstatcd/>
- <minval/>
- <maxval/>
- </data>
- </main>
- <send>
- <searchitem>
- <valuitemcd/>
- </searchitem>
- <data>
- <griddata/>
- </data>
- </send>
- <hidden>
- <ret>
- <count/>
- </ret>
- </hidden>
- <init>
- <basecode>
- <dngrstat>
- <A0058>
- <cdid/>
- <cdnm/>
- </A0058>
- </dngrstat>
- </basecode>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- finit();
- btn_search.disabled = !checkAuth("R");
- btn_save.disabled = !checkAuth("X");
- btn_excel.disabled = !checkAuth("P");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function finit() {
- // 화면open시 공통코드 setting
- zbcfGetCodeList( new Array( "A0058" ), new Array( "/root/init/basecode/dngrstat" ) );
- model.setValue("/root/send/searchitem/valuitemcd", "1");
- model.resetInstanceNode("/root/send/data");
- //model.removeNodeset("/root/main/data");
- submit("TRANB00601");
- }
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRANB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem" resultref="/root/main"/>
- <submission id="TXANB00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/hidden/ret"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,747;" 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:189px; height:14px; ">영양검색조건관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:8px; width:86px; height:17px; ">평가항목 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1122px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- submit("TRANB00601");
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:1106px; y1:7px; x2:1106px; y2:29px; "/>
- <select1 id="cmb_valuitem" ref="/root/send/searchitem/valuitemcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:7px; width:125px; height:19px; ">
- <choices>
- <item>
- <label>PIBW</label>
- <value>1</value>
- </item>
- <item>
- <label>Albumin</label>
- <value>2</value>
- </item>
- <item>
- <label>TLC</label>
- <value>3</value>
- </item>
- <item>
- <label>인증평가기준(초기)</label>
- <value>4</value>
- </item>
- <item>
- <label>인증평가기준(재검색)</label>
- <value>5</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRANB00601");
- ]]>
- </script>
- </select1>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <button id="btn_excel" class="btn2_letter4" style="left:1123px; top:49px; width:90px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save", ",", false, "NutrSrchCond_list", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (filename != "") {
- grd_data.saveExcel(filename, "grd_data", true, false, "", "", "");
- }
- ]]>
- </script>
- </button>
- <button id="btn_rowadd" class="btn2_letter3" style="left:1010px; top:49px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_data.addrow();
- var valuitem = model.getValue("/root/send/searchitem/valuitemcd");
- if ( valuitem == "1" ) { // PIBW 선택시
- grd_data.addRow();
- model.setValue("/root/main/data["+ grd_data.row +"]/valuitemcd", '1');
- }
- else if ( valuitem == "2" ) { // Alb 선택시
- grd_data.addRow();
- model.setValue("/root/main/data["+ grd_data.row +"]/valuitemcd", '2');
- }
- else if ( valuitem == "3" ) { // TLC 선택시
- grd_data.addRow();
- model.setValue("/root/main/data["+ grd_data.row +"]/valuitemcd", '3');
- }
- else if ( valuitem == "4" ) { // TJCI 검색 평가기준
- grd_data.addRow();
- model.setValue("/root/main/data["+ grd_data.row +"]/valuitemcd", '4');
- }
- ]]>
- </script>
- </button>
- <button id="btn_rowdel" class="btn2_letter3" style="left:1066px; top:49px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_data.deleterow(grd_data.row);
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("", "Q002") == 6 ) {
- var update = getGridUpdateData(grd_data);
- if (update == "") {
- messageBox("저장할", "E013");
- return;
- } else {
- //필수입력항목 체크
- for ( j = 1; j < grd_data.rows; j++ ) {
- var dngrstatcd = model.getValue("/root/main/data["+ j +"]/dngrstatcd");
- if ( dngrstatcd == "" ) {
- messageBox("위험수준 항목은", "I003");
- return;
- }
- }
- model.setValue("/root/send/data/griddata", update);
- submit("TXANB00601");
- submit("TRANB00601"); //저장 후 재조회
- }
- } else { return; }
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_data" nodeset="/root/main/data" caption="평가항목^h_평가항목^위험수준^h_위험수준^범위^범위" colsep="^" colwidth="381, 10, 537, 10, 110, 110" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:88px; width:1194px; height:659px; ">
- <col ref="valuitemcd" type="combo">
- <choices>
- <item>
- <label>PIBW</label>
- <value>1</value>
- </item>
- <item>
- <label>Alb</label>
- <value>2</value>
- </item>
- <item>
- <label>TLC</label>
- <value>3</value>
- </item>
- <item>
- <label>위험도 판정기준(초기)</label>
- <value>4</value>
- </item>
- <item>
- <label>위험도 판정기준(재검색)</label>
- <value>5</value>
- </item>
- </choices>
- </col>
- <col ref="h_valuitemcd" visibility="hidden"/>
- <col ref="dngrstatcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/basecode/dngrstat/A0058">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="h_dngrstatcd" visibility="hidden"/>
- <col ref="minval" type="input" style="text-align:center; "/>
- <col ref="maxval" type="input" style="text-align:center; "/>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|