SMLPC01000_자문의뢰Case등록.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPC01000_자문의뢰Case등록.xrw
  4. * 설 명 : 자문의뢰Case등록 화면
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2007.05.22
  8. * 수정이력 :
  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/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <cnstreqcasecnts>
  20. <cnstreqcaselist>
  21. <instcd/>
  22. <baseflagcd/>
  23. <resncd/>
  24. <delflagcd/>
  25. <resncnts/>
  26. </cnstreqcaselist>
  27. </cnstreqcasecnts>
  28. </main>
  29. <send>
  30. </send>
  31. <init>
  32. <instcd/>
  33. <fgcd>
  34. <fgcdlist>
  35. <baseflagcd/>
  36. <baseflagnm/>
  37. </fgcdlist>
  38. </fgcd>
  39. <cnstreqcase>J</cnstreqcase>
  40. </init>
  41. <hidden>
  42. <refval/>
  43. </hidden>
  44. </root>
  45. </instance>
  46. <bind id="bind1" ref="/root/main/cnstreqcasecnts/cnstreqcaselist/baseflagcd" readonly="../baseflagcd/@readonly = 'true'"/>
  47. <bind id="bind2" ref="/root/main/cnstreqcasecnts/cnstreqcaselist/resncd" readonly="../resncd/@readonly = 'true'"/>
  48. <!--TEST-->
  49. <!--- END-->
  50. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  51. <script type="javascript" src="../../../com/commonweb/js/datehelper.js"/>
  52. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. fExeInitialize();
  56. ]]>
  57. </script>
  58. <!-- public Script Start -->
  59. <script type="javascript">
  60. <![CDATA[
  61. /* @group : 자문의뢰Case등록 화면
  62. * @ver : 2007.05.22 (CMCDEV-0001)
  63. * @by : 유동철(ACK)
  64. * @-----------------------------------
  65. * @type : function
  66. * @access : public
  67. * @desc : 화면초기화 함수
  68. */
  69. function fExeInitialize(){
  70. model.removeNodeset("/root/main/csltsettingcnts/csltsettinglist");
  71. model.setValue("/root/init/instcd", getUserInfo("dutplceinstcd")); //instcd
  72. //------------------------------------------
  73. // 자문구분 목록 조회
  74. model.removeNodeset("/root/send");
  75. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  76. model.makeValue("/root/send/baseflagcd", model.getValue("/root/init/cnstreqcase"));
  77. submit("TRLPC01001");
  78. var iMaxRow = parseInt(getNodesetCount("/root/init/fgcd/fgcdlist"))+1;
  79. //--------
  80. // 노드생성
  81. model.makeValue("/root/init/fgcd/fgcdlist[" + iMaxRow + "]/baseflagcd", "GG");
  82. model.makeValue("/root/init/fgcd/fgcdlist[" + iMaxRow + "]/baseflagnm", "전 체");
  83. model.setValue("/root/hidden/refval", "GG"); //조회항목
  84. model.refresh();
  85. }
  86. /* @group : 자문의뢰Case등록 화면
  87. * @ver : 2007.05.22 (CMCDEV-0001)
  88. * @by : 유동철(ACK)
  89. * @-----------------------------------
  90. * @type : function
  91. * @access : public
  92. * @desc : 자문설정 Data 조회 함수
  93. */
  94. function fGetRefData(){
  95. model.removeNodeset("/root/main/cnstreqcasecnts/cnstreqcaselist");
  96. model.removeNodeset("/root/send");
  97. model.makeValue("/root/send/instcd", model.getValue("/root/init/instcd")); //병원코드
  98. model.makeValue("/root/send/baseflagcd", model.getValue("/root/init/cnstreqcase")); //기초구분코드(자문의뢰Case='J%')
  99. model.makeValue("/root/send/refval", model.getValue("/root/hidden/refval")); //조회항목
  100. submit("TRLPC01002");
  101. model.refresh();
  102. }
  103. /* @group : 자문의뢰Case등록 화면
  104. * @ver : 2007.05.22 (CMCDEV-0001)
  105. * @by : 유동철(ACK)
  106. * @-----------------------------------
  107. * @type : function
  108. * @access : public
  109. * @desc : 조회내역 행추가 함수
  110. */
  111. function fGetAddRow(){
  112. grd_cnstreqcaselist.addItem();
  113. var curRow = grd_cnstreqcaselist.row;
  114. var strNode = "/root/main/cnstreqcasecnts/cnstreqcaselist";
  115. model.setValue(strNode + "[" + curRow + "]/instcd", model.getValue("/root/init/instcd")); //기관코드
  116. }
  117. /* @group : 자문의뢰Case등록 화면
  118. * @ver : 2007.05.22 (CMCDEV-0001)
  119. * @by : 유동철(ACK)
  120. * @-----------------------------------
  121. * @type : function
  122. * @access : public
  123. * @desc : 조회내역 행삭제 함수
  124. */
  125. function fGetDelRow(){
  126. var curRow = grd_cnstreqcaselist.row;
  127. var curCol = grd_cnstreqcaselist.col;
  128. var vStatus = grd_cnstreqcaselist.rowStatus(curRow)
  129. var strNode = "/root/main/cnstreqcasecnts/cnstreqcaselist";
  130. var vDelFlagCd = "";
  131. if(vStatus == "1" || vStatus == "3") { // New or New&Insert?
  132. grd_cnstreqcaselist.deleteItem(curRow);
  133. }
  134. else {
  135. vDelFlagCd = model.getValue(strNode + "[" + curRow + "]/delflagcd"); //사용여부
  136. if(vDelFlagCd == 0) {
  137. grd_cnstreqcaselist.rowstatus(curRow) =2; // Update
  138. }
  139. else {
  140. grd_cnstreqcaselist.rowstatus(curRow) =4; // Delete
  141. }
  142. }
  143. }
  144. /* @group : 자문의뢰Case등록 화면
  145. * @ver : 2007.05.22 (CMCDEV-0001)
  146. * @by : 유동철(ACK)
  147. * @-----------------------------------
  148. * @type : function
  149. * @access : public
  150. * @desc : 저장함수
  151. */
  152. function fSetUpdtData(){
  153. var strNode = "/root/main/cnstreqcasecnts/cnstreqcaselist";
  154. for(var iRowNo = 1; iRowNo < grd_cnstreqcaselist.rows; iRowNo++){
  155. var vBaseFlagCd = model.getValue(strNode + "[" + iRowNo + "]/baseflagcd");
  156. var vResnCd = model.getValue(strNode + "[" + iRowNo + "]/resncd");
  157. var vDelFlagCd = model.getValue(strNode + "[" + iRowNo + "]/delflagcd");
  158. var vResnCnts = model.getValue(strNode + "[" + iRowNo + "]/resncnts");
  159. if( vBaseFlagCd == "") {
  160. messageBox("자문구분을", "C002");
  161. return;
  162. }
  163. if( vResnCd == "") {
  164. messageBox("코드를", "C001");
  165. return;
  166. }
  167. if( vDelFlagCd == "") {
  168. messageBox("사용여부를", "C002");
  169. return;
  170. }
  171. if( vResnCnts == "") {
  172. messageBox("내용을", "C001");
  173. return;
  174. }
  175. }
  176. //-------------------------------------------
  177. model.removeNodeset("/root/send");
  178. model.makeValue("/root/send/cnstreqcaselist", grd_cnstreqcaselist.getUpdateData());
  179. if (submit("TXLPC01001")) {
  180. messageBox("자문의뢰Case 처리가", "I002");
  181. } else {
  182. messageBox("자문의뢰Case 처리가 ", "E009");
  183. return false;
  184. }
  185. //--------------
  186. model.refresh();
  187. fGetRefData();
  188. }
  189. ]]>
  190. </script>
  191. <!-- public Script end -->
  192. <submission id="TRLPC01001" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/fgcd/fgcdlist"/>
  193. <submission id="TRLPC01002" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/cnstreqcasecnts/cnstreqcaselist"/>
  194. <submission id="TXLPC01001" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/msg"/>
  195. </model>
  196. </xhtml:head>
  197. <xhtml:body guideline="1,1194;" style="font-family:돋움, Arial; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  198. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  199. <group id="grp_biz" style="left:0px; top:0px; width:1195px; height:744; ">
  200. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  201. <button id="btn_grdadd" class="btn2_letter3" style="left:1141px; top:50px; width:53px; height:19px; ">
  202. <caption>행삭제</caption>
  203. <script type="javascript" ev:event="onclick">
  204. <![CDATA[
  205. fGetDelRow();
  206. ]]>
  207. </script>
  208. </button>
  209. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:134px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">자문의뢰Case 목록</caption>
  210. <group id="grp_sea" style="left:0px; top:10; width:1194px; height:35px; ">
  211. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  212. <line id="line14" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  213. <caption id="caption23" class="search_name" style="left:15px; top:9px; width:86px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회항목 :</caption>
  214. <select1 id="cmb_refitem" ref="/root/hidden/refval" class="combo_search" appearance="minimal" style="left:104px; top:9px; width:170px; height:19px; ">
  215. <choices>
  216. <itemset nodeset="/root/init/fgcd/fgcdlist">
  217. <label ref="baseflagnm"/>
  218. <value ref="baseflagcd"/>
  219. </itemset>
  220. </choices>
  221. </select1>
  222. <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  223. <caption>조회</caption>
  224. <script type="javascript" ev:event="onclick">
  225. <![CDATA[
  226. fGetRefData();
  227. ]]>
  228. </script>
  229. </button>
  230. </group>
  231. <button id="button1" class="btn2_letter3" style="left:1082px; top:50px; width:53px; height:19px; ">
  232. <caption>행추가</caption>
  233. <script type="javascript" ev:event="onclick">
  234. <![CDATA[
  235. fGetAddRow();
  236. ]]>
  237. </script>
  238. </button>
  239. <datagrid id="grd_cnstreqcaselist" nodeset="/root/main/cnstreqcasecnts/cnstreqcaselist" caption="기관코드^자문구분^코 드^사용여부^내 용" colwidth="0, 170, 100, 100, 947" dataheight="23" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:75px; width:1195px; height:667; ">
  240. <col ref="instcd"/>
  241. <col ref="baseflagcd" type="combo">
  242. <choices>
  243. <itemset nodeset="/root/init/fgcd/fgcdlist[baseflagcd!='GG']">
  244. <label ref="baseflagnm"/>
  245. <value ref="baseflagcd"/>
  246. </itemset>
  247. </choices>
  248. </col>
  249. <col ref="resncd" type="input"/>
  250. <col ref="delflagcd" type="combo">
  251. <choices>
  252. <item>
  253. <label>사용</label>
  254. <value>0</value>
  255. </item>
  256. <item>
  257. <label>미사용</label>
  258. <value>1</value>
  259. </item>
  260. </choices>
  261. </col>
  262. <col ref="resncnts" type="input" style="left:225px; top:23px; width:947px; height:23px; "/>
  263. </datagrid>
  264. </group>
  265. </group>
  266. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  267. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">자문의뢰Case 등록</caption>
  268. </group>
  269. <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  270. <button id="button11" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  271. <caption>저장</caption>
  272. <script type="javascript" ev:event="onclick">
  273. <![CDATA[
  274. fSetUpdtData();
  275. ]]>
  276. </script>
  277. </button>
  278. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  279. </group>
  280. </xhtml:body>
  281. </xhtml:html>