SMAVB00200_부위코드관리.xrw 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAVB00200.xrw
  4. * 설 명 : 조직은행 부위코드관리
  5. * 설 계 자 : 손승현
  6. * 작 성 자 : 손승현
  7. * 작 성 일 : 2010.07.05
  8. * 수정이력 : 2010.07.05 손승현 신규
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>부위코드 관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <ptcdlst>
  20. <item>
  21. <partcode/>
  22. <partname/>
  23. <partaname/>
  24. <tissuemcd/>
  25. <tissuedcd/>
  26. <tissuegbmcd/>
  27. <tissuegbdcd/>
  28. <useyn/>
  29. <lastupdtdt/>
  30. </item>
  31. </ptcdlst>
  32. </main>
  33. <send>
  34. <srchpartcode/>
  35. <srchpartname/>
  36. <req>
  37. <savedata/>
  38. </req>
  39. </send>
  40. <init>
  41. <combobscdlst/>
  42. </init>
  43. <hidden>
  44. <item/>
  45. </hidden>
  46. </root>
  47. </instance>
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. fGetPtcdInputInit();
  51. submit("TRAVB00201");
  52. ]]>
  53. </script>
  54. <script type="javascript">
  55. <![CDATA[
  56. /**
  57. * 콤보 초기화
  58. */
  59. function fGetPtcdInputInit(){
  60. tbGetBscdList( new Array("C01", "C05"), new Array("/root/init/combobscdlst") );
  61. }
  62. /**
  63. * 부위코드 리스트 조회
  64. */
  65. function fGetPartCodeList(){
  66. model.removeNodeset("/root/main/ptcdlst/item");
  67. model.refresh();
  68. var ret = submit("TRAVB00201");
  69. return ret;
  70. }
  71. /**
  72. * 부위코드 저장
  73. */
  74. function fSaveExer() {
  75. if( ! getGridUpdateData(grd_ptcdlst) )
  76. {
  77. alert("저장할 내역이 없습니다.");
  78. return ;
  79. }
  80. var rsv_cnt = grd_ptcdlst.rows ;
  81. var sNode = grd_ptcdlst.nodeset+ "[";
  82. for( var i = 1; i < rsv_cnt ; i++){
  83. if( model.getValue(sNode + i + "]/partcode" ) == "") {
  84. alert("부위코드의 코드값이 비어있습니다.");
  85. return ;
  86. }
  87. }
  88. var ret = false;
  89. if ( messageBox("부위코드정보를","Q002")==6 ) {
  90. model.setValue("/root/send/req/savedata", grd_ptcdlst.getUpdateData());
  91. ret = submit("TXAVB00201");
  92. }
  93. return ret;
  94. }
  95. ]]>
  96. </script>
  97. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  99. <script type="javascript" src="../../../ast/tissuebankbaseweb/js/tissuebankcombolist.js"/>
  100. <submission id="TRAVB00001"/>
  101. <submission id="TRAVB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ptcdlst"/>
  102. <submission id="TXAVB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send/req" replace="instance" resultref="root/hidden"/>
  103. </model>
  104. </xhtml:head>
  105. <xhtml:body guideline="1,1195;" ref="tissuemcd" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  106. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  107. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  108. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  109. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  110. <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  111. <caption>조회</caption>
  112. <script type="javascript" ev:event="DOMActivate">
  113. <![CDATA[
  114. fGetPartCodeList();
  115. ]]>
  116. </script>
  117. </button>
  118. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">부위코드 :</caption>
  119. <input id="ipt_partcd" ref="/root/send/srchpartcode" class="input_search" style="left:103px; top:8px; width:70px; height:19px; ">
  120. <script type="javascript" ev:event="onkeydown">
  121. <![CDATA[
  122. inputEnterKey("btn_sea","DOMActivate");
  123. ]]>
  124. </script>
  125. </input>
  126. <caption id="caption3" class="search_name" style="left:195px; top:9px; width:90px; height:17px; ">부 위 명 :</caption>
  127. <input id="ipt_partnm" ref="/root/send/srchpartname" class="input_search" style="left:280px; top:8px; width:200px; height:19px; ">
  128. <script type="javascript" ev:event="onkeydown">
  129. <![CDATA[
  130. inputEnterKey("btn_sea","DOMActivate");
  131. ]]>
  132. </script>
  133. </input>
  134. </group>
  135. <button id="btn_gedadd" class="btn2_letter3" style="left:1084px; top:50px; width:53px; height:19px; ">
  136. <caption>행추가</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. grd_ptcdlst.addRow();
  140. var addRow = grd_ptcdlst.rows -1 ;
  141. //grd_ptcdlst.valueMatrix(addRow , grd_ptcdlst.colRef("tissuedcd")) = model.getValue("/root/init/combobscdlst");
  142. ]]>
  143. </script>
  144. </button>
  145. <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:50px; width:53px; height:19px; ">
  146. <caption>행삭제</caption>
  147. <script type="javascript" ev:event="DOMActivate">
  148. <![CDATA[
  149. deleteSelectedRows(grd_ptcdlst, true);
  150. ]]>
  151. </script>
  152. </button>
  153. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:120px; height:14px; ">부위코드관리</caption>
  154. <line id="line1" class="line_1" style="x1:3px; y1:73px; x2:1194px; y2:74px; "/>
  155. <datagrid id="grd_ptcdlst" nodeset="/root/main/ptcdlst/item" caption="부위코드 ^부위명^부위약어^조직코드M^조직^조직구분M^조직구분^사용여부^수정일자" colsep="^" colwidth="80, 300, 150, 70, 100, 70, 100, 70, 150" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:90px; width:1191px; height:650px; ">
  156. <col ref="partcode" type="input"/>
  157. <col imemode="alpha" ref="partname" type="input" maxlength="100"/>
  158. <col imemode="alpha" ref="partaname" type="input" maxlength="50" _chartype="upper"/>
  159. <col ref="tissuemcd" visibility="hidden"/>
  160. <col ref="tissuedcd" type="combo">
  161. <choices>
  162. <itemset nodeset="/root/init/combobscdlst/C01">
  163. <label ref="cdnm"/>
  164. <value ref="cdid"/>
  165. </itemset>
  166. </choices>
  167. </col>
  168. <col visibility="hidden"/>
  169. <col ref="tissuegbdcd" type="combo">
  170. <choices>
  171. <itemset nodeset="/root/init/combobscdlst/C05">
  172. <label ref="cdnm"/>
  173. <value ref="cdid"/>
  174. </itemset>
  175. </choices>
  176. </col>
  177. <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
  178. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  179. <script type="javascript" ev:event="xforms-value-changed">
  180. <![CDATA[
  181. var col = grd_ptcdlst.col;
  182. var row = grd_ptcdlst.row;
  183. if(col == grd_ptcdlst.colRef("partcode")) {
  184. var count = -1;
  185. var chkRow = 0;
  186. var partCd = grd_ptcdlst.valueMatrix(row,grd_ptcdlst.colRef("partcode"));
  187. //선행검사 중복체크
  188. while(chkRow >= 0) {
  189. chkRow = grd_ptcdlst.findRow(partCd,chkRow+1,grd_ptcdlst.colRef("partcode"),false,true);
  190. count++;
  191. }
  192. if(count >= 2) {
  193. messageBox("부위코드가 ","E006");
  194. model.resetInstanceNode(grd_ptcdlst.nodeset + "[" + row + "]");
  195. return;
  196. }
  197. }
  198. ]]>
  199. </script>
  200. </datagrid>
  201. </group>
  202. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  203. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  204. <caption>저장</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. if( fSaveExer() == true ){
  208. submit("TRAVB00201");
  209. }
  210. ]]>
  211. </script>
  212. </button>
  213. </group>
  214. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  215. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:13px; ">조직은행 부위코드 관리</caption>
  216. </group>
  217. </xhtml:body>
  218. </xhtml:html>