SMADB00500_효능분류관리.xrw 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>효능분류관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list1>
  11. <item>
  12. <efcycd/>
  13. <efcynm/>
  14. <efcylevel/>
  15. <dispno/>
  16. </item>
  17. </list1>
  18. </main>
  19. <send>
  20. <srchcomcd/>
  21. <srchcomnm/>
  22. <data1/>
  23. </send>
  24. <init/>
  25. <hidden>
  26. <item/>
  27. </hidden>
  28. <temp>
  29. <item>
  30. <count/>
  31. </item>
  32. </temp>
  33. </root>
  34. </instance>
  35. <submission id="TRADB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list1"/>
  36. <submission id="TXADB00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp"/>
  37. <script type="javascript">
  38. <![CDATA[
  39. function rownullchk(){
  40. for(var i = 1; i < grd_efficacylist1.rows; i++){
  41. if(grd_efficacylist1.rowStatus(i) !=0 && grd_efficacylist1.rowStatus(i) !=5){
  42. if(model.getValue("/root/main/list1/item["+i+"]/efcycd").getTrim() == "") {
  43. messageBox("코드는","I003");
  44. return false;
  45. }
  46. }
  47. }
  48. return true;
  49. }
  50. ]]>
  51. </script>
  52. </model>
  53. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  57. <script type="javascript" ev:event="xforms-ready">
  58. <![CDATA[
  59. // 권한 관리
  60. btn_save.disabled =! checkAuth("X"); // 저장
  61. ]]>
  62. </script>
  63. </xhtml:head>
  64. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  65. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  66. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:15px; ">효능분류관리</caption>
  67. </group>
  68. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  69. <button id="button49" class="btn2_letter3" style="left:1139px; top:50px; width:53px; height:19px; letter-spacing:1; ">
  70. <caption>행삭제</caption>
  71. <script type="javascript" ev:event="onclick">
  72. <![CDATA[
  73. grd_efficacylist1.addStatus(grd_efficacylist1.row,"delete");
  74. ]]>
  75. </script>
  76. </button>
  77. <button id="button2" class="btn2_letter3" style="left:1029px; top:50px; width:53px; height:19px; letter-spacing:1; ">
  78. <caption>행추가</caption>
  79. <script type="javascript" ev:event="DOMActivate">
  80. <![CDATA[
  81. grd_efficacylist1.insertItem(grd_efficacylist1.row,"below");
  82. ]]>
  83. </script>
  84. </button>
  85. <group id="group2" style="left:0px; top:10px; width:1194px; height:30px; ">
  86. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
  87. <caption id="caption1" class="search_name" style="left:230px; top:5px; width:60px; height:17px; ">명칭 :</caption>
  88. <line id="line13" class="line_4" style="x1:1125px; y1:5px; x2:1125px; y2:27px; border-color:#ffe4bb; border-left-style:solid; "/>
  89. <caption id="caption2" class="search_name" style="left:10px; top:5px; width:60px; height:17px; ">코드 :</caption>
  90. <input id="input1" ref="/root/send/srchcomnm" class="input_search" maxlength="70" style="left:295px; top:5px; width:420px; height:19px; "/>
  91. <input id="input2" ref="/root/send/srchcomcd" class="input_search" maxlength="11" style="left:75px; top:5px; width:130px; height:19px; "/>
  92. <button id="btn_sea" class="btn1_letter2" style="left:1133px; top:5px; width:56px; height:22px; ">
  93. <caption>조회</caption>
  94. <script type="javascript" ev:event="DOMActivate">
  95. <![CDATA[
  96. submit("TRADB00501");
  97. setTree(grd_efficacylist1, grd_efficacylist1.colRef("efcylevel"),grd_efficacylist1.colRef("efcycd"), false );
  98. ]]>
  99. </script>
  100. </button>
  101. </group>
  102. <button id="button50" class="btn2_letter3" style="left:1084px; top:50px; width:53px; height:19px; letter-spacing:1; ">
  103. <caption>행복사</caption>
  104. <script type="javascript" ev:event="DOMActivate">
  105. <![CDATA[
  106. var grdrow = grd_efficacylist1.row;
  107. model.copyNode("/root/hidden/item","/root/main/list1/item["+ grdrow +"]");
  108. grd_efficacylist1.insertItem(grdrow, "below");
  109. model.copyNode("/root/main/list1/item["+ (grdrow+1) +"]","/root/hidden/item");
  110. model.refresh();
  111. ]]>
  112. </script>
  113. </button>
  114. <datagrid id="grd_efficacylist1" nodeset="/root/main/list1/item" allowselection="true" backcoloralternate="#f0f0f0" caption="코드^효능분류명^레벨^조회순서" colsep="^" colwidth="194, 776, 82, 96" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="free" style="left:0px; top:75px; width:1194px; height:660px; ">
  115. <col autonext="false" key="true" ref="efcycd" type="input" maxlength="11"/>
  116. <col autonext="false" ref="efcynm" type="input" maxlength="49"/>
  117. <col autonext="false" ref="efcylevel" type="input" maxlength="5"/>
  118. <col ref="dispno" type="input" style="text-align:right; "/>
  119. </datagrid>
  120. </group>
  121. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  122. <button id="btn_save" class="btn4_letter2" style="left:1132px; top:5px; width:56px; height:22px; ">
  123. <caption>저장</caption>
  124. <script type="javascript" ev:event="DOMActivate">
  125. <![CDATA[
  126. if(rownullchk()){
  127. model.setValue("/root/send/data1",grd_efficacylist1.getUpdateData());
  128. submit("TXADB00501");
  129. submit("TRADB00501");
  130. setTree(grd_efficacylist1, grd_efficacylist1.colRef("efcylevel"),grd_efficacylist1.colRef("efcycd"), false );
  131. }
  132. ]]>
  133. </script>
  134. </button>
  135. </group>
  136. </xhtml:body>
  137. </xhtml:html>