SPATR00600_개시모임관리.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  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. <opengthrnginfo>
  11. <seq/>
  12. <fstrgstdt/>
  13. </opengthrnginfo>
  14. <crbaseinfo>
  15. <subjinfo>
  16. <seq/>
  17. <fstrgstdt/>
  18. <fstrgstrid/>
  19. <lastupdtdt/>
  20. <subjno/>
  21. <stdyno/>
  22. <itemnm/>
  23. <stdysubjnm/>
  24. <stdytermfrom/>
  25. <stdytermto/>
  26. <clincflag/>
  27. <subjendyn/>
  28. <subjenddd/>
  29. <reqphos/>
  30. <reqnm/>
  31. <respstdynm/>
  32. <ioflag/>
  33. <subjid/>
  34. <drugenddd/>
  35. <crcnm/>
  36. <crctel/>
  37. <cranm/>
  38. <cratel/>
  39. <crcmpphonno/>
  40. <crcfaxno/>
  41. <crcemail/>
  42. <crampphonno/>
  43. <crafaxno/>
  44. <craemail/>
  45. <conyn/>
  46. <openfromdd/>
  47. <openfromtm/>
  48. <opentodd/>
  49. <opentotm/>
  50. <plcenm/>
  51. <attntrid/>
  52. <execyn>N</execyn>
  53. <trgtsicknm/>
  54. <drugfromdd/>
  55. <drugtodd/>
  56. <drugpridcnts/>
  57. <aspsprcpyn>N</aspsprcpyn>
  58. <detldrugmthd/>
  59. <cstdcondcd/>
  60. <cstdcondcnts/>
  61. <tmedguidyn>N</tmedguidyn>
  62. <tmedguidcnts/>
  63. <ivrsuseyn>1</ivrsuseyn>
  64. <ivrsuseflagcd/>
  65. <ivrsusecnts/>
  66. <fstrgstdt/>
  67. <valitodd>99991231</valitodd>
  68. <status/>
  69. </subjinfo>
  70. </crbaseinfo>
  71. <tempuserinfo/>
  72. </main>
  73. <send>
  74. <data>
  75. <subjdata/>
  76. <stdyempdata/>
  77. <drugdata/>
  78. </data>
  79. <srchdata>
  80. <subjno/>
  81. <subjid/>
  82. <srchflag>1</srchflag>
  83. <srchstdyno/>
  84. <seq/>
  85. </srchdata>
  86. </send>
  87. <init>
  88. <opengthrnginfo>
  89. </opengthrnginfo>
  90. </init>
  91. <hidden>
  92. <newElement/>
  93. <message/>
  94. </hidden>
  95. <temp>
  96. <drugfromtodd/>
  97. <popupmenu>
  98. <item>
  99. <func>fAddRow</func>
  100. <label>약품코드 추가</label>
  101. </item>
  102. <item>
  103. <func>fDelRow</func>
  104. <label>약품코드 삭제</label>
  105. </item>
  106. </popupmenu>
  107. </temp>
  108. </root>
  109. </instance>
  110. <script type="javascript">
  111. <![CDATA[
  112. var subjNo = "";
  113. var subjID = "";
  114. //값 변경에 따른 컨트롤
  115. function fSetupCtrls(){
  116. if( model.getValue("/root/main/crbaseinfo/subjinfo/cstdcondcd") == "9" ){
  117. ipt_cstdcond.disabled = false;
  118. }else{
  119. ipt_cstdcond.disabled = true;
  120. }
  121. if( model.getValue("/root/main/crbaseinfo/subjinfo/tmedguidyn") == "N" ){
  122. ipt_tmedguid.disabled = false;
  123. }else{
  124. ipt_tmedguid.disabled = true;
  125. }
  126. }
  127. //개시모임 저장이력 및 개시모임 상세 정보 조회
  128. function fGetSubject(){
  129. if( !isNull(subjNo) ){
  130. model.setValue("/root/send/srchdata/subjno", subjNo);
  131. model.setValue("/root/send/srchdata/subjid", subjID);
  132. if( submit("TRATR00601", false) ){
  133. if( instance1.selectNodes("/root/init/opengthrnginfo/item").length > 0 ){
  134. model.setValue("/root/main/opengthrnginfo/fstrgstdt", model.getValue("/root/init/opengthrnginfo/item["+1+"]/fstrgstdt"));
  135. model.setValue("/root/main/opengthrnginfo/seq", model.getValue("/root/init/opengthrnginfo/item["+1+"]/seq"));
  136. model.setValue("/root/send/srchdata/seq", model.getValue("/root/init/opengthrnginfo/item["+1+"]/seq"));
  137. cmb_history.refresh();
  138. }
  139. submit("TRATR00602");
  140. //-------------(투여기간일 합침)(20091015)
  141. fGetDrugdd();
  142. //-------------
  143. if( instance1.selectNodes("/root/main/crbaseinfo/druginfo").length > 0 ){
  144. for( var i=1; i<grd_druginfo.rows; i++ ){
  145. if( model.getValue("/root/main/crbaseinfo/druginfo[" + i + " ]/m") == "i" ){
  146. grd_druginfo.rowStatus(i) = 1;
  147. }
  148. }
  149. }else{
  150. grd_druginfo.addRow(true);
  151. model.setValue("/root/main/crbaseinfo/druginfo[" + 1 + " ]/m", "i");
  152. }
  153. fSetupCtrls();
  154. }
  155. }
  156. }
  157. //행추가
  158. function fAddRow(){
  159. grd_druginfo.addRow(true);
  160. //hidden value 생성 (m 값을 i로 셋팅)
  161. model.makeValue("/root/main/crbaseinfo/druginfo[" + (grd_druginfo.rows - grd_druginfo.fixedRows) + "]/m", "i");
  162. }
  163. //행삭제 or 삭제 mark
  164. function fDelRow(){
  165. var iRow = grd_druginfo.row;
  166. if( grd_druginfo.rowStatus(iRow) == 1 ){
  167. //신규 row는 바로 행삭제
  168. grd_druginfo.deleteRow(iRow);
  169. }else if( grd_druginfo.rowStatus(iRow) == 4 ){
  170. //삭제 falg를 갖는 row는 삭제 취소 및 m 값을 -로 셋팅
  171. grd_druginfo.rowStatus(iRow) = 0;
  172. model.setValue("/root/main/crbaseinfo/druginfo[" + iRow + "]/m", "");
  173. }else{
  174. //그 외에는 모두 삭제 flag 처리 및 m 값을 d로 셋팅
  175. grd_druginfo.rowStatus(iRow) = 4;
  176. model.setValue("/root/main/crbaseinfo/druginfo[" + iRow + "]/m", "d");
  177. }
  178. }
  179. //값 변경 시, 수정 mark
  180. function fSetRow(){
  181. var iRow = grd_druginfo.row;
  182. if( model.getValue("/root/main/crbaseinfo/druginfo[" + iRow + "]/m") != "i" ){
  183. //신규 row가 아닌 경우 m 값을 u로 셋팅
  184. grd_druginfo.rowStatus(iRow) = 2;
  185. model.setValue("/root/main/crbaseinfo/druginfo[" + iRow + "]/m", "u");
  186. }
  187. }
  188. // 값 체크 (사용안함)
  189. function fGetCheck(){
  190. if ( model.getValue("/root/main/crbaseinfo/subjinfo/subjid").length > 11 ) {
  191. messageBox("과제ID는 11자 이하로만 입력", "I006");
  192. return false;
  193. }
  194. if ( model.getValue("/root/main/crbaseinfo/subjinfo/subjno").length > 11 ) {
  195. messageBox("과제번호는 13자 이하로만 입력", "I006");
  196. return false;
  197. }
  198. if ( model.getValue("/root/main/crbaseinfo/subjinfo/stdysubjnm").length > 60 ) {
  199. messageBox("과제제목은 330자 이하로만 입력", "I006");
  200. return false;
  201. }
  202. if ( isNaN(model.getValue("/root/main/crbaseinfo/subjinfo/allidxcase"))) {
  203. messageBox("전체증례수는 숫자만 입력", "I006");
  204. return false;
  205. }
  206. if ( isNaN(model.getValue("/root/main/crbaseinfo/subjinfo/judgdg"))) {
  207. messageBox("IRB회차번호는 숫자만 입력", "I006");
  208. return false;
  209. }
  210. return true;
  211. }
  212. //-------------(투여기간일 합침)(20091015)
  213. //투여기간from + 투여기간to -> 합쳐서 보이기
  214. function fGetDrugdd(){
  215. var sdrugfrdd = model.getValue("/root/main/crbaseinfo/subjinfo/drugfromdd");
  216. var sdrugtodd = model.getValue("/root/main/crbaseinfo/subjinfo/drugtodd");
  217. var sdrugdd = "";
  218. if (sdrugfrdd != "") {
  219. sdrugdd = sdrugfrdd;
  220. }
  221. if (sdrugtodd != "") {
  222. sdrugdd = sdrugdd + "~" + sdrugtodd;
  223. }
  224. model.setValue("/root/temp/drugfromtodd", sdrugdd);
  225. model.refresh();
  226. //-------------
  227. }
  228. //합쳐서 보이기 -> 투여기간from + 투여기간to
  229. function fSetDrugdd(){
  230. var sdrugfrdd = "";
  231. var sdrugtodd = "";
  232. var sdrugdd = model.getValue("/root/temp/drugfromtodd");
  233. if (sdrugdd != "") {
  234. sdrugfrdd = sdrugdd.substr(0, 8);
  235. }
  236. if (sdrugdd != "") {
  237. sdrugtodd = sdrugdd.substr(9, 8);
  238. }
  239. model.setValue("/root/main/crbaseinfo/subjinfo/drugfromdd", sdrugfrdd);
  240. model.setValue("/root/main/crbaseinfo/subjinfo/drugtodd", sdrugtodd);
  241. }
  242. //------------
  243. ]]>
  244. </script>
  245. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  246. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  247. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  248. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  249. <script type="javascript" ev:event="xforms-ready">
  250. <![CDATA[
  251. //버튼권한
  252. //btn_save.disabled =! checkAuth("X"); //저장
  253. //btn_del.disabled =! checkAuth("X"); //삭제
  254. //---------------------(20091015)
  255. // model.removeNodeset("/root/main/crbaseinfo/druginfo"); // 첫 row 를 제거한다.
  256. // model.refresh();
  257. //---------------------
  258. //opener 화면에서 파라메터값을 넘겨주면, 해당 조건으로 검색
  259. if( !isNull(getOpenerUID()) ){ //Opener의 UID가 존재하면,
  260. subjNo = opener.javascript.getParameter("param_subjno");
  261. subjID = opener.javascript.getParameter("param_subjid");
  262. fGetSubject();
  263. }
  264. ]]>
  265. </script>
  266. <submission id="TRATR00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/init/opengthrnginfo"/>
  267. <submission id="TRATR00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdata" replace="instance" resultref="/root/main/crbaseinfo"/>
  268. <submission id="TXATR00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/crbaseinfo" resultref="/root/hidden/message"/>
  269. </model>
  270. </xhtml:head>
  271. <xhtml:body pagewidth="992" pageheight="473" guideline="1,1194;1,314;1,579;1,484;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  272. <group id="group1" style="left:0px; top:0px; width:975px; height:13px; ">
  273. <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:135px; height:13px; ">개시모임관리</caption>
  274. </group>
  275. <group id="group5" scroll="auto" style="left:0px; top:13px; width:976px; height:430px; ">
  276. <select1 id="rdo_cstdcond" ref="/root/main/crbaseinfo/subjinfo/cstdcondcd" appearance="full" cols="4" vcellspacing="3" overflow="visible" style="left:579px; top:305px; width:395px; height:40px; border-style:none; ">
  277. <choices>
  278. <item>
  279. <label>실온(1-30도)</label>
  280. <value>1</value>
  281. </item>
  282. <item>
  283. <label>항온(15-25도)</label>
  284. <value>2</value>
  285. </item>
  286. <item>
  287. <label>냉장(2-8도)</label>
  288. <value>3</value>
  289. </item>
  290. <item>
  291. <label>냉동(0도 이하)</label>
  292. <value>4</value>
  293. </item>
  294. <item>
  295. <label>비고</label>
  296. <value>9</value>
  297. </item>
  298. </choices>
  299. <script type="javascript" ev:event="xforms-value-changed">
  300. <![CDATA[
  301. fSetupCtrls();
  302. //20100308 황세원 수정
  303. if( model.getValue("/root/main/crbaseinfo/subjinfo/cstdcondcd") != "9" ){
  304. ipt_cstdcond.value="";
  305. }
  306. ///////
  307. ]]>
  308. </script>
  309. </select1>
  310. <input id="input13" ref="/root/main/crbaseinfo/subjinfo/reqnm" class="input_default" disabled="true" navindex="12" visibility="visible" editable="false" style="left:88px; top:111px; width:143px; height:19px; "/>
  311. <input id="input15" ref="/root/main/crbaseinfo/subjinfo/stdytermfrom" class="input_essential" disabled="true" navindex="13" visibility="hidden" editable="false" inputtype="date" style="left:341px; top:5px; width:40px; height:19px; "/>
  312. <input id="input16" ref="/root/main/crbaseinfo/subjinfo/stdytermto" class="input_default" disabled="true" navindex="14" visibility="hidden" editable="false" inputtype="date" style="left:381px; top:5px; width:40px; height:19px; "/>
  313. <line id="line8" class="line_2" visibility="visible" style="x1:0px; y1:108px; x2:485px; y2:108px; "/>
  314. <line id="line10" class="line_2" visibility="visible" style="x1:0px; y1:84px; x2:485px; y2:84px; "/>
  315. <input id="input19" ref="/root/main/crbaseinfo/subjinfo/openfromdd" class="input_default" navindex="15" inputtype="date" format="yyyy-mm-dd" style="left:88px; top:281px; width:101px; height:19px; text-align:center; "/>
  316. <caption id="caption22" class="cell_1" visibility="visible" style="left:0px; top:110px; width:85px; height:23px; vertical-align:middle; ">의뢰자</caption>
  317. <caption id="caption24" class="tit_2" style="left:0px; top:42px; width:126px; height:13px; ">과제 기본정보</caption>
  318. <caption id="caption25" class="cell_1" visibility="visible" style="left:0px; top:86px; width:85px; height:23px; vertical-align:middle; ">과제제목</caption>
  319. <caption id="caption26" class="cell_1" style="left:0px; top:279px; width:85px; height:23px; vertical-align:middle; ">개시모임일시</caption>
  320. <caption id="caption27" class="cell_1" visibility="hidden" style="left:235px; top:5px; width:50px; height:23px; vertical-align:middle; ">품목명</caption>
  321. <input id="input35" ref="/root/main/crbaseinfo/subjinfo/subjno" class="input_essential" disabled="true" navindex="8" visibility="visible" editable="false" maxlength="13" style="left:318px; top:63px; width:166px; height:19px; "/>
  322. <caption id="caption28" class="cell_1" visibility="visible" style="left:0px; top:62px; width:85px; height:23px; vertical-align:middle; ">연구코드</caption>
  323. <line id="line14" class="line_1" style="x1:0px; y1:57px; x2:485px; y2:57px; "/>
  324. <input id="input36" ref="/root/main/crbaseinfo/subjinfo/stdyno" class="input_essential" disabled="true" navindex="9" visibility="visible" editable="false" style="left:88px; top:63px; width:143px; height:19px; "/>
  325. <caption id="caption29" class="cell_1" visibility="visible" style="left:235px; top:62px; width:80px; height:23px; vertical-align:middle; ">과제번호</caption>
  326. <input id="input37" ref="/root/main/crbaseinfo/subjinfo/itemnm" class="input_essential" disabled="true" navindex="10" visibility="hidden" editable="false" style="left:285px; top:5px; width:56px; height:19px; "/>
  327. <input id="input38" ref="/root/main/crbaseinfo/subjinfo/stdysubjnm" class="input_default" disabled="true" navindex="11" visibility="visible" editable="false" maxlength="330" style="left:87px; top:86px; width:397px; height:19px; "/>
  328. <caption id="caption31" class="cell_1" visibility="hidden" style="left:235px; top:35px; width:79px; height:23px; vertical-align:middle; ">과제ID</caption>
  329. <!--
  330. <input id="input39" ref="/root/main/crbaseinfo/subjinfo/subjid" class="input_essential" disabled="true" navindex="8" visibility="hidden" editable="false" maxlength="11" style="left:190px; top:35px; width:45px; height:19px; "/>
  331. -->
  332. <input id="input39" ref="/root/main/crbaseinfo/subjinfo/subjid" class="input_essential" disabled="true" navindex="8" visibility="hidden" editable="false" maxlength="11" style="left:319px; top:35px; width:165px; height:19px; "/>
  333. <caption id="caption35" class="cell_1" style="left:0px; top:134px; width:85px; height:71px; vertical-align:middle; ">원내CRC</caption>
  334. <caption id="caption36" class="cell_1" style="left:0px; top:206px; width:85px; height:71px; vertical-align:middle; ">의뢰자측</caption>
  335. <caption id="caption37" class="cell_1" style="left:88px; top:134px; width:80px; height:23px; vertical-align:middle; ">이름</caption>
  336. <caption id="caption40" class="cell_1" style="left:88px; top:206px; width:80px; height:23px; vertical-align:middle; ">이름</caption>
  337. <caption id="caption49" class="cell_1" style="left:235px; top:134px; width:80px; height:23px; vertical-align:middle; ">전화번호</caption>
  338. <caption id="caption51" class="cell_1" style="left:235px; top:206px; width:80px; height:23px; vertical-align:middle; ">전화번호</caption>
  339. <input id="input40" ref="/root/main/crbaseinfo/subjinfo/crcnm" class="input_default" disabled="true" navindex="23" style="left:171px; top:136px; width:60px; height:19px; "/>
  340. <input id="input41" ref="/root/main/crbaseinfo/subjinfo/cranm" class="input_default" disabled="true" navindex="23" style="left:170px; top:208px; width:60px; height:19px; "/>
  341. <input id="input42" ref="/root/main/crbaseinfo/subjinfo/cratel" class="input_default" disabled="true" navindex="23" style="left:318px; top:208px; width:166px; height:19px; "/>
  342. <input id="input43" ref="/root/main/crbaseinfo/subjinfo/crctel" class="input_default" disabled="true" navindex="23" style="left:318px; top:136px; width:166px; height:19px; "/>
  343. <caption id="caption56" class="cell_1" style="left:88px; top:158px; width:80px; height:23px; vertical-align:middle; ">핸드폰번호</caption>
  344. <input id="input44" ref="/root/main/crbaseinfo/subjinfo/crcmpphonno" class="input_default" disabled="true" navindex="23" style="left:171px; top:160px; width:142px; height:19px; "/>
  345. <line id="line15" class="line_2" style="x1:0px; y1:204px; x2:485px; y2:204px; "/>
  346. <caption id="caption57" class="cell_1" style="left:316px; top:158px; width:75px; height:23px; vertical-align:middle; ">Fax</caption>
  347. <input id="input45" ref="/root/main/crbaseinfo/subjinfo/crcfaxno" class="input_default" disabled="true" navindex="23" style="left:394px; top:159px; width:90px; height:19px; "/>
  348. <caption id="caption58" class="cell_1" style="left:88px; top:182px; width:80px; height:23px; vertical-align:middle; ">E-mail</caption>
  349. <input id="input46" ref="/root/main/crbaseinfo/subjinfo/crcemail" class="input_default" disabled="true" navindex="23" style="left:171px; top:182px; width:313px; height:19px; "/>
  350. <input id="input47" ref="/root/main/crbaseinfo/subjinfo/craemail" class="input_default" disabled="true" navindex="23" style="left:171px; top:231px; width:313px; height:19px; "/>
  351. <caption id="caption59" class="cell_1" style="left:88px; top:254px; width:80px; height:23px; vertical-align:middle; ">핸드폰번호</caption>
  352. <caption id="caption60" class="cell_1" style="left:316px; top:254px; width:75px; height:23px; vertical-align:middle; ">Fax</caption>
  353. <caption id="caption61" class="cell_1" style="left:88px; top:230px; width:80px; height:23px; vertical-align:middle; ">E-mail</caption>
  354. <input id="input48" ref="/root/main/crbaseinfo/subjinfo/crampphonno" class="input_default" disabled="true" navindex="23" style="left:171px; top:255px; width:142px; height:19px; "/>
  355. <input id="input49" ref="/root/main/crbaseinfo/subjinfo/crafaxno" class="input_default" disabled="true" navindex="23" style="left:394px; top:255px; width:90px; height:19px; "/>
  356. <caption id="caption63" class="cell_1" visibility="visible" style="left:235px; top:110px; width:80px; height:23px; vertical-align:middle; ">시험책임자</caption>
  357. <input id="input50" ref="/root/main/crbaseinfo/subjinfo/respstdynm" class="input_default" disabled="true" navindex="12" visibility="visible" editable="false" style="left:318px; top:111px; width:166px; height:19px; "/>
  358. <input id="ipt_openfromtm" ref="/root/main/crbaseinfo/subjinfo/openfromtm" class="input_default" navindex="15" inputtype="button" format="hh:nn:ss" style="left:193px; top:281px; width:76px; height:19px; text-align:center; ">
  359. <script type="javascript" ev:event="onbuttonclick">
  360. <![CDATA[
  361. model.setValue("/root/main/crbaseinfo/subjinfo/openfromtm", getCurrentTime().substr(0,4));
  362. ipt_openfromtm.refresh();
  363. ]]>
  364. </script>
  365. </input>
  366. <input id="ipt_opentotm" ref="/root/main/crbaseinfo/subjinfo/opentotm" class="input_default" navindex="15" inputtype="button" format="hh:nn:ss" style="left:296px; top:281px; width:76px; height:19px; text-align:center; ">
  367. <script type="javascript" ev:event="onbuttonclick">
  368. <![CDATA[
  369. model.setValue("/root/main/crbaseinfo/subjinfo/opentotm", getCurrentTime().substr(0,4));
  370. ipt_opentotm.refresh();
  371. ]]>
  372. </script>
  373. </input>
  374. <caption id="caption64" class="cell_1" style="left:0px; top:327px; width:85px; height:47px; vertical-align:middle; ">참석자</caption>
  375. <input id="input54" ref="/root/main/crbaseinfo/subjinfo/plcenm" class="input_default" navindex="17" style="left:88px; top:304px; width:396px; height:19px; "/>
  376. <caption id="caption65" class="cell_1" style="left:0px; top:303px; width:85px; height:23px; vertical-align:middle; ">장소</caption>
  377. <caption id="caption66" class="tit_2" style="left:485px; top:40px; width:201px; height:13px; ">개시모임 주요내용 및 논의사항</caption>
  378. <line id="line18" class="line_1" style="x1:490px; y1:57px; x2:975px; y2:57px; "/>
  379. <line id="line21" class="line_2" style="x1:0px; y1:301px; x2:485px; y2:301px; "/>
  380. <caption id="caption67" class="cell_1" style="left:491px; top:62px; width:85px; height:23px; vertical-align:middle; ">대상질환</caption>
  381. <caption id="caption68" class="cell_1" style="left:491px; top:86px; width:85px; height:23px; vertical-align:middle; ">계약완료여부</caption>
  382. <textarea id="textarea2" ref="/root/main/crbaseinfo/subjinfo/attntrid" style="left:88px; top:329px; width:396px; height:41px; "/>
  383. <caption id="caption69" class="cell_1" style="left:491px; top:110px; width:85px; height:23px; vertical-align:middle; ">투여기간</caption>
  384. <input id="input55" ref="/root/main/crbaseinfo/subjinfo/drugtodd" class="input_default" navindex="15" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:825px; top:35px; width:96px; height:19px; "/>
  385. <input id="input56" ref="/root/main/crbaseinfo/subjinfo/drugfromdd" class="input_default" navindex="15" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:707px; top:35px; width:96px; height:19px; "/>
  386. <caption id="caption70" class="cell_1" style="left:866px; top:110px; width:55px; height:23px; vertical-align:middle; ">투여주기</caption>
  387. <caption id="caption71" class="cell_1" style="left:491px; top:134px; width:85px; height:96px; vertical-align:middle; ">임상약정보</caption>
  388. <input id="input57" ref="/root/main/crbaseinfo/subjinfo/trgtsicknm" class="input_default" navindex="17" style="left:579px; top:63px; width:394px; height:19px; "/>
  389. <line id="line19" class="line_2" style="x1:0px; y1:277px; x2:490px; y2:277px; "/>
  390. <line id="line23" class="line_2" style="x1:0px; y1:325px; x2:485px; y2:325px; "/>
  391. <caption id="caption72" class="cell_1" style="left:491px; top:231px; width:85px; height:71px; vertical-align:middle; ">투약방법</caption>
  392. <caption id="caption73" class="cell_1" style="left:579px; top:231px; width:85px; height:23px; vertical-align:middle; ">무균조제여부</caption>
  393. <caption id="caption74" class="cell_1" style="left:579px; top:255px; width:85px; height:47px; vertical-align:middle; ">투여방법</caption>
  394. <textarea id="textarea3" ref="/root/main/crbaseinfo/subjinfo/detldrugmthd" style="left:667px; top:258px; width:306px; height:41px; "/>
  395. <caption id="caption75" class="cell_1" style="left:491px; top:303px; width:85px; height:47px; vertical-align:middle; ">보관조건</caption>
  396. <caption id="caption76" class="cell_1" style="left:491px; top:351px; width:85px; height:23px; vertical-align:middle; ">복약지도여부</caption>
  397. <caption id="caption77" class="cell_1" style="left:491px; top:375px; width:85px; height:47px; vertical-align:middle; ">IVRS사용여부</caption>
  398. <line id="line24" class="line_2" style="x1:493px; y1:84px; x2:973px; y2:84px; "/>
  399. <line id="line25" class="line_2" style="x1:493px; y1:108px; x2:973px; y2:108px; "/>
  400. <line id="line26" class="line_2" style="x1:493px; y1:132px; x2:973px; y2:132px; "/>
  401. <line id="line27" class="line_2" style="x1:493px; y1:229px; x2:973px; y2:229px; "/>
  402. <line id="line28" class="line_2" style="x1:493px; y1:301px; x2:973px; y2:301px; "/>
  403. <line id="line29" class="line_2" style="x1:493px; y1:349px; x2:973px; y2:349px; "/>
  404. <line id="line30" class="line_2" style="x1:493px; y1:373px; x2:973px; y2:373px; "/>
  405. <line id="line31" class="line_2" style="x1:493px; y1:421px; x2:973px; y2:421px; "/>
  406. <select1 id="radio3" ref="/root/main/crbaseinfo/subjinfo/conyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:579px; top:87px; width:100px; height:20px; border-style:none; ">
  407. <choices>
  408. <item>
  409. <label>Y</label>
  410. <value>Y</value>
  411. </item>
  412. <item>
  413. <label>N</label>
  414. <value>N</value>
  415. </item>
  416. </choices>
  417. </select1>
  418. <select1 id="rd_aspsprcpyn" ref="/root/main/crbaseinfo/subjinfo/aspsprcpyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:667px; top:234px; width:100px; height:20px; border-style:none; ">
  419. <choices>
  420. <item>
  421. <label>Y</label>
  422. <value>Y</value>
  423. </item>
  424. <item>
  425. <label>N</label>
  426. <value>N</value>
  427. </item>
  428. </choices>
  429. </select1>
  430. <select1 id="rd_ivrsuseyn" ref="/root/main/crbaseinfo/subjinfo/ivrsuseyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:579px; top:378px; width:100px; height:20px; border-style:none; ">
  431. <choices>
  432. <item>
  433. <label>Y</label>
  434. <value>Y</value>
  435. </item>
  436. <item>
  437. <label>N</label>
  438. <value>N</value>
  439. </item>
  440. </choices>
  441. </select1>
  442. <select1 id="rd_tmedguidyn" ref="/root/main/crbaseinfo/subjinfo/tmedguidyn" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:579px; top:352px; width:100px; height:20px; border-style:none; ">
  443. <choices>
  444. <item>
  445. <label>Y</label>
  446. <value>Y</value>
  447. </item>
  448. <item>
  449. <label>N</label>
  450. <value>N</value>
  451. </item>
  452. </choices>
  453. <script type="javascript" ev:event="xforms-value-changed">
  454. <![CDATA[
  455. fSetupCtrls();
  456. // 20100308 황세원 수정
  457. if( model.getValue("/root/main/crbaseinfo/subjinfo/tmedguidyn") == "Y" ){
  458. ipt_tmedguid.value = "";
  459. }
  460. //////////////////
  461. ]]>
  462. </script>
  463. </select1>
  464. <line id="line1" class="line_3" style="x1:491px; y1:420px; x2:971px; y2:420px; "/>
  465. <input id="ipt_tmedguid" ref="/root/main/crbaseinfo/subjinfo/tmedguidcnts" class="input_default" disabled="true" navindex="17" style="left:680px; top:352px; width:294px; height:19px; "/>
  466. <input id="ipt_cstdcond" ref="/root/main/crbaseinfo/subjinfo/cstdcondcnts" class="input_default" disabled="true" navindex="17" style="left:680px; top:325px; width:294px; height:19px; "/>
  467. <caption id="caption1" style="left:273px; top:283px; width:20px; height:20px; text-align:center; ">~</caption>
  468. <caption id="caption2" visibility="hidden" style="left:805px; top:35px; width:20px; height:20px; text-align:center; ">~</caption>
  469. <input id="input3" ref="/root/main/crbaseinfo/subjinfo/drugpridcnts" class="input_default" navindex="15" style="left:920px; top:112px; width:53px; height:19px; "/>
  470. <caption id="caption3" class="cell_1" style="left:0px; top:375px; width:85px; height:47px; vertical-align:middle; ">
  471. <![CDATA[개시모임
  472. 수행여부]]>
  473. </caption>
  474. <select1 id="rd_execyn" ref="/root/main/crbaseinfo/subjinfo/execyn" appearance="full" vcellspacing="3" overflow="visible" style="left:88px; top:379px; width:142px; height:38px; border-style:none; ">
  475. <choices>
  476. <item>
  477. <label>미수행</label>
  478. <value>N</value>
  479. </item>
  480. <item>
  481. <label>수행</label>
  482. <value>Y</value>
  483. </item>
  484. </choices>
  485. </select1>
  486. <line id="line2" class="line_2" style="x1:0px; y1:373px; x2:490px; y2:373px; "/>
  487. <line id="line3" class="line_3" style="x1:5px; y1:420px; x2:485px; y2:420px; "/>
  488. <line id="line4" class="line_2" visibility="visible" style="x1:0px; y1:132px; x2:485px; y2:132px; "/>
  489. <caption id="caption4" class="cell_2" visibility="hidden" style="left:725px; top:0px; width:85px; height:23px; vertical-align:middle; ">저장 이력</caption>
  490. <datagrid id="grd_druginfo" nodeset="/root/main/crbaseinfo/druginfo" caption="약품코드^성분 및 함량^기타 상세정보^m^orgdrugcd" colsep="^" colwidth="90, 110, 171, 25, 25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:579px; top:135px; width:394px; height:90px; ">
  491. <col ref="drugcd" type="input"/>
  492. <col ref="comcnts" type="input"/>
  493. <col ref="detlinfocnts" type="input"/>
  494. <col ref="m" visibility="hidden"/>
  495. <col ref="orgdrugcd" visibility="hidden"/>
  496. <script type="javascript" ev:event="onmousedown">
  497. <![CDATA[
  498. if( event.button == 3 )
  499. setPopupMenu("grd_druginfo", false, "/root/temp/popupmenu/item", "label", "func");
  500. ]]>
  501. </script>
  502. <script type="javascript" ev:event="DOMFocusOut">
  503. <![CDATA[
  504. initPopupMenu();
  505. ]]>
  506. </script>
  507. <script type="javascript" ev:event="xforms-value-changed">
  508. <![CDATA[
  509. fSetRow();
  510. ]]>
  511. </script>
  512. </datagrid>
  513. <select1 id="cmb_history" ref="/root/main/opengthrnginfo/seq" visibility="hidden" appearance="minimal" style="left:813px; top:2px; width:160px; height:19px; ">
  514. <choices>
  515. <itemset nodeset="/root/init/opengthrnginfo/item">
  516. <label ref="fstrgstdt"/>
  517. <value ref="seq"/>
  518. </itemset>
  519. </choices>
  520. </select1>
  521. <input id="input2" ref="/root/temp/drugfromtodd" class="input_default" navindex="17" style="left:579px; top:112px; width:126px; height:19px; "/>
  522. <caption id="caption5" style="left:704px; top:115px; width:161px; height:14px; ">(YYYYMMDD~YYYYMMDD)</caption>
  523. <select id="checkbox1" ref="/root/main/crbaseinfo/subjinfo/ivrsuseflagcd" overflow="visible" appearance="full" cols="2" sep="|" style="left:680px; top:378px; width:275px; height:35px; border-style:none; ">
  524. <choices>
  525. <item>
  526. <label>입고등록</label>
  527. <value>1</value>
  528. </item>
  529. <item>
  530. <label>환자별 무작위번호 배정</label>
  531. <value>2</value>
  532. </item>
  533. <item>
  534. <label>출고등록</label>
  535. <value>3</value>
  536. </item>
  537. <item>
  538. <label>약품 공급 요청</label>
  539. <value>4</value>
  540. </item>
  541. </choices>
  542. </select>
  543. </group>
  544. <group id="group4" scroll="auto" style="left:0px; top:445px; width:975px; height:27px; ">
  545. <button id="btn_save" class="btn4_letter2" navindex="31" style="left:918px; top:5px; width:56px; height:22px; ">
  546. <caption>저장</caption>
  547. <script type="javascript" ev:event="DOMActivate">
  548. <![CDATA[
  549. var fromTm = model.getValue("/root/main/crbaseinfo/subjinfo/openfromtm");
  550. var toTm = model.getValue("/root/main/crbaseinfo/subjinfo/opentotm");
  551. var seq = model.getValue("/root/main/crbaseinfo/subjinfo/seq");
  552. var validd = model.getValue("/root/main/crbaseinfo/subjinfo/valitodd");
  553. //if( fromTm.getByteLength() < 4 ) model.setValue("/root/main/crbaseinfo/subjinfo/openfromtm", fromTm + "00");
  554. //if( toTm.getByteLength() < 4 ) model.setValue("/root/main/crbaseinfo/subjinfo/opentotm", toTm + "00");
  555. if( isNull(validd) ) model.setValue("/root/main/crbaseinfo/subjinfo/valitodd", "99991231");
  556. else if( validd.getByteLength() < 8 ){
  557. messageBox("유효일자는 8자리", "I009");
  558. return;
  559. }
  560. if( isNull(seq) ){
  561. model.setValue("/root/main/crbaseinfo/subjinfo/status", "I");
  562. }else{
  563. if( getCurrentDate().toDate("YYYYMMDD") >= validd.toDate("YYYYMMDD") )
  564. model.setValue("/root/main/crbaseinfo/subjinfo/status", "D");
  565. else
  566. model.setValue("/root/main/crbaseinfo/subjinfo/status", "U");
  567. }
  568. //---------(20091015)
  569. fSetDrugdd(); //투여기간분리
  570. //필수 항목체크
  571. if ( model.getValue("/root/main/crbaseinfo/subjinfo/execyn") == "") {
  572. messageBox("개시모임수행여부는 필수 입력 사항 입니다..","I9999");
  573. model.setFocus("rd_execyn")
  574. return;
  575. }
  576. if ( model.getValue("/root/main/crbaseinfo/subjinfo/aspsprcpyn") == "") {
  577. messageBox("무균조제여부 필수 입력 사항 입니다..","I9999");
  578. model.setFocus("rd_aspsprcpyn")
  579. return;
  580. }
  581. if ( model.getValue("/root/main/crbaseinfo/subjinfo/tmedguidyn") == "") {
  582. messageBox("복약지도여부 필수 입력 사항 입니다..","I9999");
  583. model.setFocus("rd_tmedguidyn")
  584. return;
  585. }
  586. if ( model.getValue("/root/main/crbaseinfo/subjinfo/ivrsuseyn") == "") {
  587. messageBox("IVRS사용여부 필수 입력 사항 입니다..","I9999");
  588. model.setFocus("rd_ivrsuseyn")
  589. return;
  590. }
  591. // for( var i=1; i<grd_druginfo.rows; i++ ){
  592. // if( model.getValue("/root/main/crbaseinfo/druginfo[" + i + " ]/m") == "i" ){
  593. // grd_druginfo.rowStatus(i) = 1;
  594. // }
  595. // }
  596. if (grd_druginfo.rows > 1 ) {
  597. for( var i=1; i<grd_druginfo.rows; i++ ){
  598. if( model.getValue("/root/main/crbaseinfo/druginfo[" + i + " ]/m") == "i" ){
  599. if (model.getValue("/root/main/crbaseinfo/druginfo[" + i + " ]/drugcd") =="") {
  600. messageBox("임상약정보는 필수입니다.","I9999");
  601. model.setFocus("grd_druginfo")
  602. return;
  603. }
  604. }
  605. }
  606. }
  607. //----------
  608. if( submit("TXATR00601", false) ){
  609. fGetSubject();
  610. }
  611. ]]>
  612. </script>
  613. </button>
  614. <button id="button2" class="btn6_letter2" navindex="31" style="left:0px; top:5px; width:56px; height:22px; ">
  615. <caption>출력</caption>
  616. <script type="javascript" ev:event="DOMActivate">
  617. <![CDATA[
  618. model.makeValue("/root/main/crbaseinfo/subjinfo/cstdcondnm", rdo_cstdcond.label);
  619. exeReportPreview("RPATR00600", "XMLSTR");
  620. ]]>
  621. </script>
  622. </button>
  623. </group>
  624. </xhtml:body>
  625. </xhtml:html>