SMAHA03160_문진코드관리.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHB00100.xrw
  4. * 설 명 : 검사코드관리
  5. * 설 계 자 : 손주연
  6. * 작 성 자 : 박원희
  7. * 작 성 일 : 2007.03.13
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <inqrlst>
  20. <item>
  21. <inqrcd/>
  22. <inqrnm/>
  23. <answflag/>
  24. <answcnt/>
  25. <useyn/>
  26. <defltval/>
  27. <inqrdipseq/>
  28. <inqretcflag1/>
  29. <inqretcflag2/>
  30. <lastupdtrid/>
  31. <lastupdtdt/>
  32. </item>
  33. </inqrlst>
  34. <anslst>
  35. <item>
  36. <answcd/>
  37. <answcnts/>
  38. <reminptyn/>
  39. <lastupdtrid/>
  40. <lastupdtdt/>
  41. </item>
  42. </anslst>
  43. </main>
  44. <send>
  45. <srchinqrflag/>
  46. <srchinqrcd/>
  47. <srchinqrcnts/>
  48. <srchinstcd/>
  49. <save>
  50. <saveinqrcd/>
  51. <instcd/>
  52. <inqrflag/>
  53. <userid/>
  54. <saveinqrans/>
  55. <inqrcd/>
  56. </save>
  57. <ansinqrcd/>
  58. </send>
  59. <init>
  60. <baseinfo>
  61. <inqrflaglst/>
  62. <answflaglst/>
  63. </baseinfo>
  64. </init>
  65. <hidden/>
  66. </root>
  67. </instance>
  68. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  69. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  71. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  72. <submission id="TRAHA03161" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/inqrlst"/>
  73. <submission id="TRAHA03162" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/anslst"/>
  74. <submission id="TXAHA03161" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  75. <submission id="TRZBC00101"/>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. btn_search. disabled = ! checkAuth("R") ;
  79. btn_save. disabled = ! checkAuth("X") ;
  80. btn_print. disabled = ! checkAuth("P") ;
  81. fGetInqrFlag();
  82. ]]>
  83. </script>
  84. </model>
  85. <script type="javascript">
  86. <![CDATA[
  87. function fGetInqrlst(){
  88. var tmp = model.getvalue("root/send/srchinqrflag");
  89. var selRow = grd_inqrlst.row;
  90. //var tmp = cmb_inqrflag.value ;
  91. if ( tmp == ""){
  92. messageBox("문진분류를 ", "C001")
  93. return;
  94. }
  95. model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
  96. if(submit("TRAHA03161")) {
  97. if(selRow > 0) {
  98. fGetInqrAns();
  99. }
  100. }
  101. }
  102. /**
  103. * 문진 답안내역 가져오기
  104. */
  105. function fGetInqrAns(){
  106. var tmpinqrflag = model.getvalue("root/send/srchinqrflag");
  107. model.setValue("/root/send/srchinstcd", getUserInfo("posinstcd") );
  108. model.setValue("/root/send/srchinqrflag" , tmpinqrflag);
  109. model.setValue("/root/send/ansinqrcd" , grd_inqrlst.valueMatrix(grd_inqrlst.row, 1) );
  110. //var tmp = model.getValue("/root/send/inqrcd" );
  111. //alert(tmp );
  112. submit("TRAHA03162");
  113. }
  114. /**
  115. * 문진분류 가져오기
  116. */
  117. function fGetInqrFlag(){
  118. model.removeNodeset("/root/init/baseinfo/inqrflaglst/A0106");
  119. zbcfGetCodeList( new Array("A0106","A0066" ),
  120. new Array("/root/init/baseinfo/inqrflaglst"
  121. ,"/root/init/baseinfo/answflaglst" ) );
  122. submit("TRZBC00101");
  123. }
  124. /**
  125. * 초기화
  126. */
  127. function fInitInqrLst(){
  128. model.removeNodeset("/root/main/inqrlst/item");
  129. model.removeNodeset("/root/main/anslst/item");
  130. //model.reset();
  131. //. model.resetInstanceNode("/root/send/srchinqrflag");
  132. model.refresh();
  133. }
  134. /**
  135. * Save function,문진코드
  136. */
  137. function fSaveInqrCd() {
  138. var ret = false;
  139. if( messageBox("문진코드정보를","Q002") == 6){
  140. var inqrfg = model.getvalue("root/send/srchinqrflag");
  141. if( inqrfg == "") return ;
  142. // var idx = grd_answlst.row;
  143. // if( idx < 1) return ;
  144. model.setValue("/root/send/save/inqrflag" , cmb_inqrflag.value);
  145. //alert("inqrfg: "+inqrfg);
  146. //alert(getUserInfo("posinstcd"));
  147. //alert(getUserInfo("posuserid"));
  148. model.setValue("/root/send/save/instcd" , getUserInfo("posinstcd"));
  149. model.setValue("/root/send/save/userid" , getUserInfo("userid"));
  150. model.setValue("/root/send/save/saveinqrcd", grd_inqrlst.getUpdateData());
  151. model.setValue("/root/send/save/inqrcd", grd_inqrlst.valueMatrix(grd_inqrlst.row, 1) );
  152. //var tmp = model.getValue("/root/send/save/inqrcode" );
  153. //alert(tmp );
  154. model.setValue("/root/send/save/saveinqrans", grd_answlst.getUpdateData());
  155. ret = submit("TXAHA03161");
  156. return ret;
  157. }
  158. return ret;
  159. }
  160. ]]>
  161. </script>
  162. </xhtml:head>
  163. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  164. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  165. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:119px; height:14px; ">문진코드관리</caption>
  166. </group>
  167. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  168. <datagrid id="grd_answlst" nodeset="/root/main/anslst/item" caption="코드^답안^비고필수^최종수정자^최종수정일시" colsep="^" colwidth="100, 421, 55, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:594px; top:75px; width:600px; height:660px; ">
  169. <col ref="answcd" type="input" style="left:0px; top:23px; width:100px; height:23px; "/>
  170. <col ref="answcnts" type="input" style="left:100px; top:23px; width:441px; height:23px; "/>
  171. <col checkvalue="Y,N" ref="reminptyn" type="checkbox" style="left:541px; top:23px; width:53px; height:23px; "/>
  172. <col ref="lastupdtrid"/>
  173. <col ref="lastupdtdt"/>
  174. </datagrid>
  175. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  176. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  177. <caption id="caption2" class="search_name" style="left:16px; top:9px; width:87px; height:17px; ">문진분류 :</caption>
  178. <caption id="caption3" class="search_name" style="left:361px; top:9px; width:112px; height:17px; ">문진코드 :</caption>
  179. <input id="ipt_inqrcnts" ref="/root/send/srchinqrcnts" class="input_search" style="left:755px; top:8px; width:340px; height:19px; "/>
  180. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  181. <caption>조회</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. model.removenode("/root/main/anslst");
  185. model.removenode("/root/main/inqrlst");
  186. fGetInqrlst();
  187. ]]>
  188. </script>
  189. </button>
  190. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  191. <caption id="caption5" class="search_name" style="left:666px; top:9px; width:87px; height:17px; ">문진내역 :</caption>
  192. <input id="ipt_inqrcd" ref="/root/send/srchinqrcd" class="input_search" style="left:450px; top:8px; width:160px; height:19px; "/>
  193. <select1 id="cmb_inqrflag" ref="/root/send/srchinqrflag" class="combo_s_essential" appearance="minimal" style="left:105px; top:8px; width:160px; height:19px; ">
  194. <choices>
  195. <itemset nodeset="/root/init/baseinfo/inqrflaglst/A0106">
  196. <label ref="cdnm"/>
  197. <value ref="cdid"/>
  198. </itemset>
  199. </choices>
  200. <script type="javascript" ev:event="xforms-value-changed">
  201. <![CDATA[
  202. btn_search.dispatch("DOMActivate");
  203. ]]>
  204. </script>
  205. </select1>
  206. </group>
  207. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:78px; height:14px; ">문진코드</caption>
  208. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:590px; y2:70px; "/>
  209. <datagrid id="grd_inqrlst" nodeset="/root/main/inqrlst/item" caption="코드^문진내역^문진답안구분^답안선택수^사용여부^기본값^출력순서^기타구분1^기타구분2^최종수정자^최종수정일시" colsep="^" colwidth="70, 260, 80, 80, 50, 80, 60, 80, 80, 100, 100" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:75px; width:590px; height:660px; ">
  210. <col ref="inqrcd" type="input"/>
  211. <col ref="inqrnm" type="input"/>
  212. <col ref="answflag" type="combo">
  213. <choices>
  214. <itemset nodeset="/root/init/baseinfo/answflaglst/A0066">
  215. <label ref="cdnm"/>
  216. <value ref="cdid"/>
  217. </itemset>
  218. </choices>
  219. </col>
  220. <col ref="answcnt" type="input"/>
  221. <col checkvalue="Y,N" ref="useyn" type="checkbox"/>
  222. <col ref="defltval" type="input"/>
  223. <col ref="inqrdipseq" type="input"/>
  224. <col ref="inqretcflag1" type="input"/>
  225. <col ref="inqretcflag2" type="input"/>
  226. <col ref="lastupdtrid"/>
  227. <col ref="lastupdtdt" type="input"/>
  228. <script type="javascript" ev:event="ondbclick">
  229. <![CDATA[
  230. //fGetInqrAns();
  231. alert(grd_inqrlst.valueMatrix(grd_inqrlst.row, grd_inqrlst.col));
  232. ]]>
  233. </script>
  234. <script type="javascript" ev:event="onclick">
  235. <![CDATA[
  236. if(isDataCell()) {
  237. var colType = grd_inqrlst.colType(grd_inqrlst.col);
  238. if(colType == "input") {
  239. grd_inqrlst.editCell();
  240. }
  241. fGetInqrAns();
  242. }
  243. ]]>
  244. </script>
  245. </datagrid>
  246. <caption id="caption4" class="tit_2" style="left:599px; top:55px; width:107px; height:14px; ">선택형답안</caption>
  247. <line id="line2" class="line_1" style="x1:594px; y1:70px; x2:1194px; y2:70px; "/>
  248. <button id="btn_grddel" class="btn2_letter3" style="left:537px; top:50px; width:53px; height:19px; ">
  249. <caption>행삭제</caption>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. //grd_inqrlst.addStatus(grd_inqrlst.row,"delete");
  253. deleteSelectedRows(grd_inqrlst,true);
  254. ]]>
  255. </script>
  256. </button>
  257. <button id="btn_grdadd" class="btn2_letter3" style="left:482px; top:50px; width:53px; height:19px; ">
  258. <caption>행추가</caption>
  259. <script type="javascript" ev:event="DOMActivate">
  260. <![CDATA[
  261. grd_inqrlst.addRow();
  262. ]]>
  263. </script>
  264. </button>
  265. <button id="btn_ansadd" class="btn2_letter3" style="left:1085px; top:50px; width:53px; height:19px; ">
  266. <caption>행추가</caption>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. grd_answlst.addRow();
  270. ]]>
  271. </script>
  272. </button>
  273. <button id="btn_ansdel" class="btn2_letter3" style="left:1139px; top:50px; width:53px; height:19px; ">
  274. <caption>행삭제</caption>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. //grd_answlst.addStatus(grd_answlst.row,"delete");
  278. deleteSelectedRows(grd_answlst,true);
  279. ]]>
  280. </script>
  281. </button>
  282. </group>
  283. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  284. <button id="btn_print" class="btn6_letter2" style="left:0px; top:5px; width:56px; height:22px; ">
  285. <caption>출력</caption>
  286. </button>
  287. <button id="btn_init" class="btn4_letter3" style="left:1067px; top:5px; width:68px; height:22px; ">
  288. <caption>초기화</caption>
  289. <script type="javascript" ev:event="DOMActivate">
  290. <![CDATA[
  291. fInitInqrLst();
  292. ]]>
  293. </script>
  294. </button>
  295. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  296. <caption>저장</caption>
  297. <script type="javascript" ev:event="DOMActivate">
  298. <![CDATA[
  299. if(fSaveInqrCd()) {
  300. fGetInqrlst();
  301. }
  302. ]]>
  303. </script>
  304. </button>
  305. </group>
  306. </xhtml:body>
  307. </xhtml:html>