SMANC00450_환자관리.xrw 57 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266
  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. <data>
  11. <ipatmngt>
  12. <grdlist>
  13. <chkb/>
  14. <sendenryn/>
  15. <pid/>
  16. <room/>
  17. <hngnm/>
  18. <sex/>
  19. <h_brthdd/>
  20. <age/>
  21. <indd/>
  22. <dietcd/>
  23. <dietnm/>
  24. <diagnm/>
  25. <sick/>
  26. <curedietpatyn/>
  27. <dietroundyn/>
  28. <crmyn/>
  29. <educnts/>
  30. <nutrmngt/>
  31. <execcnts/>
  32. <intndieter/>
  33. <execdieter/>
  34. <execdd/>
  35. <exectm/>
  36. <eduprepyn/>
  37. <eduwho/>
  38. <eduway/>
  39. <edurslt/>
  40. <dschdd/>
  41. <rsntdschdd/>
  42. <delyn/>
  43. <educd/>
  44. <edudd/>
  45. <edutm/>
  46. <cretno/>
  47. <orddd/>
  48. <instcd/>
  49. <daydietnms/>
  50. <opdd/>
  51. <opschedd/>
  52. </grdlist>
  53. </ipatmngt>
  54. <ipatmngtrslt>
  55. <grdlist>
  56. <sendenryn/>
  57. <pid/>
  58. <room/>
  59. <hngnm/>
  60. <sex/>
  61. <age/>
  62. <indd/>
  63. <dietnm/>
  64. <diagnm/>
  65. <sick/>
  66. <curedietpatyn/>
  67. <dietroundyn/>
  68. <crmyn/>
  69. <educnts/>
  70. <execcnts/>
  71. <nutrmngt/>
  72. <intndieter/>
  73. <execdieter/>
  74. <execdd/>
  75. <eduprepyn/>
  76. <eduwho/>
  77. <eduway/>
  78. <edurslt/>
  79. </grdlist>
  80. </ipatmngtrslt>
  81. <telnutrcnst>
  82. <grdlist>
  83. <pid/>
  84. <ioflag/>
  85. <inout/>
  86. <hngnm/>
  87. <sex/>
  88. <age/>
  89. <sickcd/>
  90. <hometel/>
  91. <mpphontel/>
  92. <execyn/>
  93. <telexecdd/>
  94. <execdieter/>
  95. <formrecseq/>
  96. <nutrmngtkind/>
  97. <execdd/>
  98. <orddd/>
  99. </grdlist>
  100. </telnutrcnst>
  101. <telnutrcnstcnt>
  102. <cnstcount>
  103. <cnstdd/>
  104. <dieter/>
  105. <glycospatqty/>
  106. <hypetspatqty/>
  107. <cardiacpatqty/>
  108. <pdpatqty/>
  109. <hdpatqty/>
  110. <cncrpatqty/>
  111. <blodtumpatqty/>
  112. <kidnpatqty/>
  113. <liverpatqty/>
  114. <stmcpatqty/>
  115. <etrlfdpatqty/>
  116. <fatpatqty/>
  117. <etcsickpatqty/>
  118. </cnstcount>
  119. </telnutrcnstcnt>
  120. <nonregleduc>
  121. <grdlist>
  122. <educdd/>
  123. <eductm/>
  124. <eductodd/>
  125. <eductotm/>
  126. <educsubj/>
  127. <eductrgt/>
  128. <educpsnno/>
  129. <educplce/>
  130. <educmatr/>
  131. <sickcd/>
  132. <educetc/>
  133. <educdieter/>
  134. </grdlist>
  135. </nonregleduc>
  136. </data>
  137. <patinfo>
  138. <patinfolist/>
  139. </patinfo>
  140. </main>
  141. <send>
  142. <searchitem>
  143. <ipatmngt>
  144. <ward/>
  145. <patflag/>
  146. <inddfrom/>
  147. <inddto/>
  148. <pid/>
  149. <hngnm/>
  150. <dieter/>
  151. </ipatmngt>
  152. <ipatmngtrslt>
  153. <ward/>
  154. <rsltflag/>
  155. <execddfrom/>
  156. <execddto/>
  157. <pid/>
  158. <hngnm/>
  159. <dieter/>
  160. </ipatmngtrslt>
  161. <telnutrcnst>
  162. <educfromdd/>
  163. <eductodd/>
  164. <pid/>
  165. <hngnm/>
  166. <dieter/>
  167. </telnutrcnst>
  168. <telnutrcnstcnt>
  169. <cnstfromdd/>
  170. <cnsttodd/>
  171. <dieter/>
  172. </telnutrcnstcnt>
  173. <nonregleduc>
  174. <fromdd/>
  175. <todd/>
  176. </nonregleduc>
  177. </searchitem>
  178. <data>
  179. <ipatmngt>
  180. <list/>
  181. </ipatmngt>
  182. <telnutrcnst>
  183. <list/>
  184. </telnutrcnst>
  185. <telnutrcnstcnt>
  186. <cnstcount/>
  187. </telnutrcnstcnt>
  188. <nonregleduc>
  189. <list/>
  190. </nonregleduc>
  191. <mrjhedu>
  192. <listdata/>
  193. </mrjhedu>
  194. </data>
  195. <popup>
  196. <flag/>
  197. <pid/>
  198. <hngnm/>
  199. <reqdd/>
  200. <reqpsn/>
  201. <educreqcnts/>
  202. <h_cretno/>
  203. <h_orddeptcd/>
  204. <h_prcpgenrflag/>
  205. <h_orddd/>
  206. <h_formrecseq/>
  207. <execprcpuniqno/>
  208. <nutrmngtkind/>
  209. <execdd/>
  210. </popup>
  211. </send>
  212. <hidden>
  213. <msglist/>
  214. </hidden>
  215. <init>
  216. <basecode>
  217. <sick>
  218. <A0059>
  219. <cdid/>
  220. <cdnm/>
  221. </A0059>
  222. </sick>
  223. <ward>
  224. <dept>
  225. <deptcd/>
  226. <depthngnm/>
  227. </dept>
  228. </ward>
  229. <dieter>
  230. <alldieter>
  231. <cdid/>
  232. <cdnm/>
  233. </alldieter>
  234. <dieter>
  235. <cdid/>
  236. <cdnm/>
  237. </dieter>
  238. <intndieter>
  239. <cdid/>
  240. <cdnm/>
  241. </intndieter>
  242. </dieter>
  243. </basecode>
  244. </init>
  245. <temp/>
  246. </root>
  247. </instance>
  248. <submission id="TRZBC00101"/>
  249. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  250. <submission id="TRANC00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/nonregleduc" replace="instance" resultref="/root/main/data/nonregleduc"/>
  251. <submission id="TXANC00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/nonregleduc" resultref="/root/hidden"/>
  252. <submission id="TXANC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/telnutrcnstcnt" resultref="/root/hidden"/>
  253. <submission id="TRANC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/telnutrcnst" resultref="/root/main/data/telnutrcnst"/>
  254. <submission id="TXANC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/telnutrcnst" resultref="/root/hidden"/>
  255. <submission id="TRANC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/telnutrcnstcnt" resultref="/root/main/data/telnutrcnstcnt"/>
  256. <submission id="TRANC00202" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/basecode/dieter"/>
  257. <script type="javascript" ev:event="xforms-ready">
  258. <![CDATA[
  259. finit();
  260. btn_search1.disabled = !checkAuth("R");
  261. btn_search2.disabled = !checkAuth("R");
  262. btn_search3.disabled = !checkAuth("R");
  263. btn_search4.disabled = !checkAuth("R");
  264. btn_search5.disabled = !checkAuth("R");
  265. btn_save.disabled = !checkAuth("X");
  266. btn_excel.disabled = !checkAuth("P");
  267. //btn_rowadd3.visible = false;
  268. btn_rowdel3.visible = false;
  269. submit("TRANC00202"); //영양사 조회
  270. ]]>
  271. </script>
  272. <script type="javascript">
  273. <![CDATA[
  274. function finit() {
  275. // 화면open시 공통코드 setting
  276. zbcfGetCodeList( new Array( "A0059" ), new Array( "/root/init/basecode/sick" ) );
  277. //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), 'orduseyn', 'W', '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), "", 'after');
  278. zsdfGetWardDeptList(getUserInfo("dutplceinstcd"), '/root/init/basecode/ward', 'depthngnm', 'asc', new Date().getDateFormat("YYYYMMDD"), 'after');
  279. model.removeNodeset("/root/main/data/ipatmngt/grdlist");
  280. model.removeNodeset("/root/main/data/telnutrcnst/grdlist");
  281. model.removeNodeset("/root/main/data/telnutrcnstcnt/cnstcount");
  282. model.removeNodeset("/root/main/data/nonregleduc/grdlist");
  283. model.resetInstanceNode("/root/send");
  284. model.setValue("/root/send/searchitem/ipatmngt/patflag", "1");
  285. model.setValue("/root/send/searchitem/ipatmngt/inddfrom", getCurrentDate());
  286. model.setValue("/root/send/searchitem/ipatmngt/inddto", getCurrentDate());
  287. //model.setValue("/root/send/searchitem/ipatmngt/dieter", getUserInfo("userid"));
  288. model.setValue("/root/send/searchitem/ipatmngtrslt/rsltflag", "-");
  289. model.setValue("/root/send/searchitem/ipatmngtrslt/execddfrom", getCurrentDate());
  290. model.setValue("/root/send/searchitem/ipatmngtrslt/execddto", getCurrentDate());
  291. model.setValue("/root/send/searchitem/ipatmngtrslt/dieter", getUserInfo("userid"));
  292. model.setValue("/root/send/searchitem/telnutrcnst/educfromdd", getCurrentDate());
  293. model.setValue("/root/send/searchitem/telnutrcnst/eductodd", getCurrentDate());
  294. model.setValue("/root/send/searchitem/telnutrcnst/dieter", getUserInfo("userid"));
  295. model.setValue("/root/send/searchitem/telnutrcnstcnt/cnstfromdd", getCurrentDate());
  296. model.setValue("/root/send/searchitem/telnutrcnstcnt/cnsttodd", getCurrentDate());
  297. model.setValue("/root/send/searchitem/telnutrcnstcnt/dieter", getUserInfo("userid"));
  298. model.setValue("/root/send/searchitem/nonregleduc/fromdd", getCurrentDate());
  299. model.setValue("/root/send/searchitem/nonregleduc/todd", getCurrentDate());
  300. grd_ipatmngt.fixedcellcheckbox(0,1)=true; // 타이틀에 전체선택 체크박스 추가
  301. model.refresh();
  302. }
  303. /*
  304. * 다학제간 관련 EMR 데이터 전송
  305. */
  306. function sendEMRData() {
  307. var sendCheck = "N";
  308. var sColSep = "▦";
  309. var sRowSep = "▩";
  310. // 그리드 헤더값 생성
  311. var rCSV = "m▦instcd▦pid▦orddd▦cretno▦histno▦delyn▦educd▦educnts▦eduprepyn▦eduwho▦eduway▦edurslt▦edudd▦edutm▦eduid▦fstrgstrid▦fstrgstdt▦lastupdtrid▦lastupdtdt";
  312. var gridRow = grd_ipatmngt.rows; // 데이터 로우 종 갯수
  313. var fixedRows = grd_ipatmngt.fixedRows; // 고정 데이터 로우 갯수
  314. // 데이터 저장여부 확인
  315. if(messageBox("ENR로 데이터를", "Q014") == 6) {
  316. // 그리드 데이터가 없으면 메서드 종료
  317. if(gridRow <= fixedRows) {
  318. return;
  319. }
  320. } else {
  321. return;
  322. }
  323. // 수행시간을 현재 시간으로 세팅
  324. var curDt = getCurrentDateTime().split(" ");
  325. // 다학제간 관련 전송 데이터 생성
  326. for(var i = 0; i < gridRow; ++i) {
  327. if(grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("chkb")) == "true") {
  328. // 수행시간을 현재 시간으로 세팅
  329. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("exectm")) = curDt[1];
  330. // 필수 데이터 체크
  331. if(grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("educnts")) == "") {
  332. alert(i + fixedRows - 1 + "번째 데이터에 필수 항목인 '교육서식' 을 입력 해주세요");
  333. return;
  334. }
  335. if(grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("execdd")) == "" ||
  336. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("exectm")) == "") {
  337. alert(i + fixedRows - 1 + "번째 데이터에 필수 항목인 '수행일자' 및 '수행시간'을 입력 해주세요");
  338. return;
  339. }
  340. if(grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("edudd")) == "" ||
  341. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("edutm")) == "") {
  342. alert(i + fixedRows - 1 + "번째 데이터에 필수 항목인 '교육일자' 및 '교육시간'을 입력 해주세요");
  343. return;
  344. }
  345. if(grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("eduprepyn")) == "" ||
  346. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("eduwho")) == "" ||
  347. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("eduway")) == "" ||
  348. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("edurslt")) == "") {
  349. alert(i + fixedRows - 1 + "번째 데이터에 필수 항목인 '학습준비도', '교육대상자', '교육방법', '교육결과' 를 입력 해주세요");
  350. return;
  351. }
  352. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("sendenryn")) = "Y";
  353. rCSV +=
  354. sRowSep +
  355. "i" + sColSep +
  356. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("instcd")) + sColSep +
  357. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("pid")) + sColSep +
  358. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("orddd")) + sColSep +
  359. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("cretno")) + sColSep +
  360. "" + sColSep +
  361. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("delyn")) + sColSep +
  362. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("educd")) + sColSep +
  363. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("educnts")) + sColSep +
  364. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("eduprepyn")) + sColSep +
  365. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("eduwho")) + sColSep +
  366. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("eduway")) + sColSep +
  367. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("edurslt")) + sColSep +
  368. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("edudd")) + sColSep +
  369. grd_ipatmngt.valueMatrix(i + fixedRows, grd_ipatmngt.colRef("edutm")) + sColSep +
  370. "" + sColSep +
  371. "" + sColSep +
  372. "" + sColSep +
  373. "" + sColSep +
  374. "";
  375. sendCheck = "Y";
  376. }
  377. }
  378. // EMR로 전송할 선택된 데이터가 없으면 메서드 종료
  379. if(sendCheck == "N") {
  380. return;
  381. }
  382. // 영양 테이블에 데이터 저장
  383. model.setValue("/root/send/data/ipatmngt/list", grd_ipatmngt.getUpdateData());
  384. if (submit("TXANC00451")) {
  385. // 처리내용 없음
  386. } else {
  387. alert("데이터 저장 실패('관리자에게 문의해 주세요')");
  388. return;
  389. }
  390. // 다학제간 관련 전송 데이터 세팅
  391. model.setValue("/root/send/data/mrjhedu/listdata", rCSV);
  392. if(submit("TXANC00456")) {
  393. btn_search1.dispatch("DOMActivate");
  394. alert("다학제간 데이터 ENR로 전송 처리 완료");
  395. } else {
  396. alert("다학제간 전송 처리 오류( 시스템 담당자에게 문의 해주세요 )");
  397. }
  398. }
  399. ]]>
  400. </script>
  401. <submission id="TXANC00451" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/ipatmngt" resultref="/root/hidden"/>
  402. <submission id="TRANC00451" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/ipatmngt" resultref="/root/main/data/ipatmngt"/>
  403. <submission id="TXANC00456" method="post" ref="/root/send/data/mrjhedu" resultref="/root/hidden/msglist"/>
  404. <submission id="TRANC00455" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchitem/ipatmngtrslt" resultref="/root/main/data/ipatmngtrslt"/>
  405. </model>
  406. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  407. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  408. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  409. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  410. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  411. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  412. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  413. </xhtml:head>
  414. <xhtml:body guideline="1,1194;2,734;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  415. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  416. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:216px; height:14px; ">환자관리</caption>
  417. </group>
  418. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  419. <switch id="swt_patmngt" style="left:0px; top:26px; width:1194px; height:718px; ">
  420. <case id="case1" selected="true">
  421. <group id="grp_sea" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  422. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  423. <button id="btn_search1" class="btn1_letter2" style="left:1106px; top:7px; width:56px; height:22px; ">
  424. <caption>조회</caption>
  425. <script type="javascript" ev:event="DOMActivate">
  426. <![CDATA[
  427. var patflag = model.getValue("/root/send/searchitem/ipatmngt/patflag");
  428. var pid = model.getValue("/root/send/searchitem/ipatmngt/pid");
  429. var hngnm = model.getValue("/root/send/searchitem/ipatmngt/hngnm");
  430. var fromdd = model.getValue("/root/send/searchitem/ipatmngt/inddfrom");
  431. var todd = model.getValue("/root/send/searchitem/ipatmngt/inddto");
  432. if ( getDateInterval(fromdd, todd) < 0 ) {
  433. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  434. return;
  435. // 변경요청서 1915 (2009.05.29) - 재원환자 검색기준 변경 (등록번호 or 환자명 입력조건 제외) - 2009.06.05 김귀남
  436. /*
  437. } else if ( patflag == "2" && pid == "" && hngnm == "" ) {
  438. //재원을 선택했을 경우는 등록번호나 환자명이 필수조회조건임.
  439. messageBox("재원환자 조회시 등록번호 또는 환자명을", "C001");
  440. return;
  441. */
  442. } else {
  443. grd_ipatmngt.fixedcellischeck(0,1) = false; //영양검색결과 탭화면 전체선택 체크박스 초기화
  444. submit("TRANC00451");
  445. }
  446. ]]>
  447. </script>
  448. </button>
  449. <line id="line13" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
  450. <caption id="caption33" class="search_name" style="left:16px; top:9px; width:60px; height:17px; ">병동 :</caption>
  451. <select1 id="cmb_ward" ref="/root/send/searchitem/ipatmngt/ward" class="combo_s_essential" appearance="minimal" style="left:80px; top:8px; width:100px; height:19px; ">
  452. <choices>
  453. <itemset nodeset="/root/init/basecode/ward/dept">
  454. <label ref="depthngnm"/>
  455. <value ref="deptcd"/>
  456. </itemset>
  457. </choices>
  458. </select1>
  459. <caption id="caption1" class="search_name" style="left:582px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
  460. <button id="btn_pid" class="icon_search" style="left:737px; top:10px; width:16px; height:16px; ">
  461. <caption/>
  462. <script type="javascript" ev:event="DOMActivate">
  463. <![CDATA[
  464. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  465. model.setValue("/root/send/searchitem/ipatmngt/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  466. model.setValue("/root/send/searchitem/ipatmngt/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  467. model.refresh();
  468. ]]>
  469. </script>
  470. </button>
  471. <input id="ipt_pid1" ref="/root/send/searchitem/ipatmngt/pid" class="input" autonext="false" maxlength="10" format="9999999999" style="left:667px; top:8px; width:65px; height:19px; ">
  472. <script type="javascript" ev:event="onkeydown">
  473. <![CDATA[
  474. inputEnterKey("btn_search1", "DOMActivate");
  475. ]]>
  476. </script>
  477. </input>
  478. <caption id="caption5" class="search_name" style="left:760px; top:10px; width:86px; height:17px; ">환자명 :</caption>
  479. <input id="ipt_hngnm1" ref="/root/send/searchitem/ipatmngt/hngnm" class="input" style="left:835px; top:8px; width:60px; height:19px; ">
  480. <script type="javascript" ev:event="onkeydown">
  481. <![CDATA[
  482. inputEnterKey("btn_search1", "DOMActivate");
  483. ]]>
  484. </script>
  485. </input>
  486. <select1 id="rdo_patflag" ref="/root/send/searchitem/ipatmngt/patflag" class="radio_search" appearance="full" cols="2" rows="1" overflow="visible" style="left:185px; top:9px; width:94px; height:20px; ">
  487. <choices>
  488. <item>
  489. <label>신환</label>
  490. <value>1</value>
  491. </item>
  492. <item>
  493. <label>재원</label>
  494. <value>2</value>
  495. </item>
  496. </choices>
  497. <hint>
  498. <![CDATA[재원-수행일자가 오늘인게 있으면 기록내용 보여줌(없으면 입력 초기상태 모드)]]>
  499. </hint>
  500. </select1>
  501. <button id="btn_patnm" class="icon_search" style="left:900px; top:10px; width:16px; height:16px; ">
  502. <caption/>
  503. <script type="javascript" ev:event="DOMActivate">
  504. <![CDATA[
  505. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  506. model.setValue("/root/send/searchitem/ipatmngt/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  507. model.setValue("/root/send/searchitem/ipatmngt/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  508. model.refresh();
  509. ]]>
  510. </script>
  511. </button>
  512. <caption id="caption10" class="search_name" style="left:925px; top:10px; width:76px; height:17px; ">영양사 :</caption>
  513. <select1 id="cmb_dieter1" ref="/root/send/searchitem/ipatmngt/dieter" class="combo_search" appearance="minimal" style="left:1000px; top:8px; width:75px; height:19px; ">
  514. <choices>
  515. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  516. <label ref="cdnm"/>
  517. <value ref="cdid"/>
  518. </itemset>
  519. </choices>
  520. </select1>
  521. <input id="ipt_inddfrom" ref="/root/send/searchitem/ipatmngt/inddfrom" class="input_search" inputtype="date" style="left:369px; top:8px; width:90px; height:19px; "/>
  522. <caption id="caption19" class="search_n_b" style="left:461px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  523. <caption id="caption4" class="search_name" style="left:280px; top:10px; width:86px; height:17px; ">입원일자 :</caption>
  524. <input id="ipt_inddto" ref="/root/send/searchitem/ipatmngt/inddto" class="input_search" inputtype="date" style="left:474px; top:8px; width:90px; height:19px; "/>
  525. </group>
  526. <line id="line38" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
  527. <datagrid id="grd_ipatmngt" nodeset="/root/main/data/ipatmngt/grdlist" caption="전송^전송유무^등록번호^병실^환자명^성별^h_생년월일^나이^입원일자^식사코드^식사명^진단명^질환구분^치료식환자관리^식사회진관리^CRM^내용^내용^내용^인턴영양사^영양사^수행일자^수행시간^학습준비도^교육대상자^교육방법^교육결과^퇴원일자^최근퇴원일자^식사^수술일^수술예정일^^^^^^^|전송^전송유무^등록번호^병실^환자명^성별^h_생년월일^나이^입원일자^식사코드^식사명^진단명^질환구분^치료식환자관리^식사회진관리^CRM^교육서식^영양관리^비고^인턴영양사^영양사^수행일자^수행시간^학습준비도^교육대상자^교육방법^교육결과^퇴원일자^최근퇴원일자^식사^수술일^수술예정일^^^^^^^" colsep="^" colwidth="46, 57, 65, 70, 60, 40, 10, 40, 80, 0, 150, 150, 90, 95, 85, 56, 100, 100, 145, 77, 70, 90, 82, 100, 100, 100, 100, 90, 90, 300, 90, 90, 15, 16, 15, 14, 17, 16, 18" explorerbar="sortshow" frozencols="5" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:630px; text-align:center; ">
  528. <col ref="chkb" type="checkbox"/>
  529. <col ref="sendenryn"/>
  530. <col ref="pid"/>
  531. <col ref="room"/>
  532. <col ref="hngnm"/>
  533. <col ref="sex"/>
  534. <col ref="h_brthdd" visibility="hidden"/>
  535. <col ref="age"/>
  536. <col ref="indd" format="yyyy-mm-dd"/>
  537. <col ref="dietcd" visibility="hidden"/>
  538. <col ref="dietnm" style="text-align:left; "/>
  539. <col ref="diagnm" style="text-align:left; "/>
  540. <col ref="sick" type="combo" style="text-align:left; ">
  541. <choices>
  542. <itemset nodeset="/root/init/basecode/sick/A0059">
  543. <label ref="cdnm"/>
  544. <value ref="cdid"/>
  545. </itemset>
  546. </choices>
  547. </col>
  548. <col checkvalue="Y,N" ref="curedietpatyn" type="checkbox"/>
  549. <col checkvalue="Y,N" ref="dietroundyn" type="checkbox"/>
  550. <col checkvalue="Y,N" ref="crmyn" type="checkbox"/>
  551. <col ref="educnts"/>
  552. <col ref="nutrmngt" type="input" style="text-align:left; "/>
  553. <col ref="execcnts" type="input" style="text-align:left; "/>
  554. <col ref="intndieter" type="combo">
  555. <choices>
  556. <itemset nodeset="/root/init/basecode/dieter/intndieter">
  557. <label ref="cdnm"/>
  558. <value ref="cdid"/>
  559. </itemset>
  560. </choices>
  561. </col>
  562. <col ref="execdieter" type="combo">
  563. <choices>
  564. <itemset nodeset="/root/init/basecode/dieter/dieter">
  565. <label ref="cdnm"/>
  566. <value ref="cdid"/>
  567. </itemset>
  568. </choices>
  569. </col>
  570. <col ref="execdd" type="inputdate"/>
  571. <col ref="exectm" visibility="hidden"/>
  572. <col ref="eduprepyn"/>
  573. <col ref="eduwho"/>
  574. <col ref="eduway"/>
  575. <col ref="edurslt"/>
  576. <col ref="dschdd" format="yyyy-mm-dd"/>
  577. <col ref="rsntdschdd" format="yyyy-mm-dd"/>
  578. <col ref="daydietnms" style="text-align:left; "/>
  579. <col disabled="true" ref="opdd" type="inputdate"/>
  580. <col disabled="true" ref="opschedd" type="inputdate"/>
  581. <col ref="delyn" visibility="hidden"/>
  582. <col ref="educd" visibility="hidden"/>
  583. <col ref="edudd" visibility="hidden"/>
  584. <col ref="edutm" visibility="hidden"/>
  585. <col ref="cretno" visibility="hidden"/>
  586. <col ref="orddd" visibility="hidden"/>
  587. <col ref="instcd" visibility="hidden"/>
  588. <script type="javascript" ev:event="ondblclick">
  589. <![CDATA[
  590. var mousRow = grd_ipatmngt.mouseRow; // 마우스로 선택된 현재 행의 번호
  591. var mousCol = grd_ipatmngt.mouseCol; // 마우스로 선택된 열의 번호
  592. var fixedRows = grd_ipatmngt.fixedRows; // 고정된 행의 갯수
  593. model.property("SMANC00450_gridrow") = grd_ipatmngt.mouseRow; // 이벤트가 발생한 그리드 row 값
  594. // 교육서식 입력
  595. if( (fixedRows <= mousRow) && (grd_ipatmngt.colRef("educnts") == mousCol) ) {
  596. modal("SPANC00451", "", "270", "230", "SPANC00306", "", "");
  597. return;
  598. } else if( (fixedRows <= mousRow) && (grd_ipatmngt.colRef("eduprepyn") <= mousCol && grd_ipatmngt.colRef("edurslt") >= mousCol)) {
  599. modal("SPANC00452", "", "900", "220", "SPANC00306", "", "");
  600. return;
  601. }
  602. ]]>
  603. </script>
  604. </datagrid>
  605. </case>
  606. <case id="case2">
  607. <group id="group1" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  608. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  609. <button id="btn_search5" class="btn1_letter2" style="left:1106px; top:7px; width:56px; height:22px; ">
  610. <caption>조회</caption>
  611. <script type="javascript" ev:event="DOMActivate">
  612. <![CDATA[
  613. var fromdd = model.getValue("/root/send/searchitem/ipatmngtrslt/execddfrom");
  614. var todd = model.getValue("/root/send/searchitem/ipatmngtrslt/execddto");
  615. if ( getDateInterval(fromdd, todd) < 0 ) {
  616. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  617. return;
  618. } else {
  619. submit("TRANC00455");
  620. }
  621. ]]>
  622. </script>
  623. </button>
  624. <line id="line1" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
  625. <caption id="caption2" class="search_name" style="left:11px; top:9px; width:60px; height:17px; ">병동 :</caption>
  626. <select1 id="cmb_ward1" ref="/root/send/searchitem/ipatmngtrslt/ward" class="combo_s_essential" appearance="minimal" style="left:75px; top:8px; width:100px; height:19px; ">
  627. <choices>
  628. <itemset nodeset="/root/init/basecode/ward/dept">
  629. <label ref="depthngnm"/>
  630. <value ref="deptcd"/>
  631. </itemset>
  632. </choices>
  633. </select1>
  634. <caption id="caption3" class="search_name" style="left:687px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
  635. <caption id="caption8" class="search_n_b" style="left:840px; top:9px; width:12px; height:17px; font-weight:bolder; ">/</caption>
  636. <button id="btn_pid1" class="icon_search" style="left:912px; top:10px; width:16px; height:16px; ">
  637. <caption/>
  638. <script type="javascript" ev:event="DOMActivate">
  639. <![CDATA[
  640. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  641. model.setValue("/root/send/searchitem/ipatmngtrslt/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  642. model.setValue("/root/send/searchitem/ipatmngtrslt/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  643. model.refresh();
  644. ]]>
  645. </script>
  646. </button>
  647. <input id="ipt_pid3" ref="/root/send/searchitem/ipatmngtrslt/pid" class="input_s_essential" autonext="false" maxlength="10" format="9999999999" style="left:772px; top:8px; width:65px; height:19px; ">
  648. <script type="javascript" ev:event="onkeydown">
  649. <![CDATA[
  650. inputEnterKey("btn_search5", "DOMActivate");
  651. ]]>
  652. </script>
  653. </input>
  654. <input id="ipt_hngnm3" ref="/root/send/searchitem/ipatmngtrslt/hngnm" class="input_s_essential" style="left:850px; top:8px; width:60px; height:19px; ">
  655. <script type="javascript" ev:event="onkeydown">
  656. <![CDATA[
  657. inputEnterKey("btn_search5", "DOMActivate");
  658. ]]>
  659. </script>
  660. </input>
  661. <select1 id="rdo_rsltflag" ref="/root/send/searchitem/ipatmngtrslt/rsltflag" class="radio_search" appearance="full" cellspacing="2" cols="4" rows="1" overflow="visible" style="left:180px; top:9px; width:230px; height:20px; ">
  662. <choices>
  663. <item>
  664. <label>전체</label>
  665. <value>-</value>
  666. </item>
  667. <item>
  668. <label>치료식</label>
  669. <value>1</value>
  670. </item>
  671. <item>
  672. <label>식사회진</label>
  673. <value>2</value>
  674. </item>
  675. <item>
  676. <label>CRM</label>
  677. <value>3</value>
  678. </item>
  679. </choices>
  680. <hint>
  681. <![CDATA[전체 - 치료식, 식사회진, CRM 선택된 항목이 대상임]]>
  682. </hint>
  683. </select1>
  684. <caption id="caption7" class="search_name" style="left:940px; top:10px; width:76px; height:17px; ">영양사 :</caption>
  685. <select1 id="cmb_dieter4" ref="/root/send/searchitem/ipatmngtrslt/dieter" class="combo_search" appearance="minimal" style="left:1015px; top:8px; width:65px; height:19px; ">
  686. <choices>
  687. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  688. <label ref="cdnm"/>
  689. <value ref="cdid"/>
  690. </itemset>
  691. </choices>
  692. </select1>
  693. <input id="ipt_execddfrom" ref="/root/send/searchitem/ipatmngtrslt/execddfrom" class="input_search" inputtype="date" style="left:494px; top:8px; width:85px; height:19px; "/>
  694. <caption id="caption9" class="search_n_b" style="left:581px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  695. <caption id="caption11" class="search_name" style="left:410px; top:10px; width:86px; height:17px; ">수행일자 :</caption>
  696. <input id="ipt_execddto" ref="/root/send/searchitem/ipatmngtrslt/execddto" class="input_search" inputtype="date" style="left:594px; top:8px; width:85px; height:19px; "/>
  697. </group>
  698. <line id="line2" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
  699. <datagrid id="grd_ipatmngtrslt" nodeset="/root/main/data/ipatmngtrslt/grdlist" caption="전송유무^등록번호^병실^환자명^성별^나이^입원일자^식사명^진단명^질환구분^치료식환자관리^식사회진관리^CRM^내용^내용^내용^인턴영양사^영양사^수행일자^학습준비도^교육대상자^교육방법^교육결과|전송유무^등록번호^병실^환자명^성별^나이^입원일자^식사명^진단명^질환구분^치료식환자관리^식사회진관리^CRM^교육서식^영양관리^비고^인턴영양사^영양사^수행일자^학습준비도^교육대상자^교육방법^교육결과" colsep="^" colwidth="63, 65, 40, 60, 40, 40, 80, 150, 150, 90, 95, 85, 56, 173, 157, 205, 100, 70, 90, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:630px; text-align:center; ">
  700. <col ref="sendenryn"/>
  701. <col ref="pid"/>
  702. <col ref="room" style="left:85px; top:23px; width:40px; height:23px; "/>
  703. <col ref="hngnm"/>
  704. <col ref="sex"/>
  705. <col ref="age"/>
  706. <col ref="indd" format="yyyy-mm-dd"/>
  707. <col ref="dietnm" style="text-align:left; "/>
  708. <col ref="diagnm" style="text-align:left; "/>
  709. <col disabled="true" ref="sick" type="combo" style="text-align:left; ">
  710. <choices>
  711. <itemset nodeset="/root/init/basecode/sick/A0059">
  712. <label ref="cdnm"/>
  713. <value ref="cdid"/>
  714. </itemset>
  715. </choices>
  716. </col>
  717. <col checkvalue="Y,N" ref="curedietpatyn" type="checkbox"/>
  718. <col checkvalue="Y,N" ref="dietroundyn" type="checkbox"/>
  719. <col checkvalue="Y,N" ref="crmyn" type="checkbox"/>
  720. <col ref="educnts" style="text-align:left; "/>
  721. <col ref="nutrmngt" style="text-align:left; "/>
  722. <col ref="execcnts" style="text-align:left; "/>
  723. <col ref="intndieter" type="combo">
  724. <choices>
  725. <itemset nodeset="/root/init/basecode/dieter/intndieter">
  726. <label ref="cdnm"/>
  727. <value ref="cdid"/>
  728. </itemset>
  729. </choices>
  730. </col>
  731. <col disabled="true" ref="execdieter" type="combo">
  732. <choices>
  733. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  734. <label ref="cdnm"/>
  735. <value ref="cdid"/>
  736. </itemset>
  737. </choices>
  738. </col>
  739. <col ref="execdd" format="yyyy-mm-dd"/>
  740. <col ref="eduprepyn"/>
  741. <col ref="eduwho"/>
  742. <col ref="eduway"/>
  743. <col ref="edurslt"/>
  744. </datagrid>
  745. </case>
  746. <case id="case3">
  747. <group id="group2" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  748. <shape id="shape1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  749. <button id="btn_search2" class="btn1_letter2" style="left:1111px; top:7px; width:56px; height:22px; ">
  750. <caption>조회</caption>
  751. <script type="javascript" ev:event="DOMActivate">
  752. <![CDATA[
  753. var fromdd = model.getValue("/root/send/searchitem/telnutrcnst/educfromdd");
  754. var todd = model.getValue("/root/send/searchitem/telnutrcnst/eductodd");
  755. if ( getDateInterval(fromdd, todd) < 0 ) {
  756. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  757. return;
  758. } else {
  759. submit("TRANC00402");
  760. }
  761. ]]>
  762. </script>
  763. </button>
  764. <line id="line3" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
  765. <caption id="caption12" class="search_name" style="left:560px; top:9px; width:73px; height:17px; ">환자명 :</caption>
  766. <input id="ipt_hngnm2" ref="/root/send/searchitem/telnutrcnst/hngnm" class="input_s_essential" style="left:635px; top:8px; width:95px; height:19px; ">
  767. <script type="javascript" ev:event="onkeydown">
  768. <![CDATA[
  769. inputEnterKey("btn_search2", "DOMActivate");
  770. ]]>
  771. </script>
  772. </input>
  773. <button id="btn_patnm2" class="icon_search" style="left:735px; top:10px; width:16px; height:16px; ">
  774. <caption/>
  775. <script type="javascript" ev:event="DOMActivate">
  776. <![CDATA[
  777. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  778. model.setValue("/root/send/searchitem/telnutrcnst/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  779. model.setValue("/root/send/searchitem/telnutrcnst/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  780. model.refresh();
  781. ]]>
  782. </script>
  783. </button>
  784. <caption id="caption13" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">교육일자 :</caption>
  785. <caption id="caption14" class="search_n_b" style="left:211px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  786. <input id="ipt_educfromdd" ref="/root/send/searchitem/telnutrcnst/educfromdd" class="input_s_essential" inputtype="date" style="left:107px; top:8px; width:100px; height:19px; "/>
  787. <input id="ipt_eductodd" ref="/root/send/searchitem/telnutrcnst/eductodd" class="input_s_essential" inputtype="date" style="left:227px; top:8px; width:100px; height:19px; "/>
  788. <caption id="caption15" class="search_name" style="left:775px; top:9px; width:73px; height:17px; ">영양사 :</caption>
  789. <select1 id="cmb_dieter2" ref="/root/send/searchitem/telnutrcnst/dieter" class="combo_search" appearance="minimal" style="left:850px; top:8px; width:85px; height:19px; ">
  790. <choices>
  791. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  792. <label ref="cdnm"/>
  793. <value ref="cdid"/>
  794. </itemset>
  795. </choices>
  796. </select1>
  797. <button id="btn_pid2" class="icon_search" style="left:527px; top:10px; width:16px; height:16px; ">
  798. <caption/>
  799. <script type="javascript" ev:event="DOMActivate">
  800. <![CDATA[
  801. modal("SPPMC02500", "", "200", "200", "SPPMC02500", "/root/hidden", "/root/main/patinfo/patinfolist");
  802. model.setValue("/root/send/searchitem/telnutrcnst/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  803. model.setValue("/root/send/searchitem/telnutrcnst/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  804. model.refresh();
  805. ]]>
  806. </script>
  807. </button>
  808. <caption id="caption16" class="search_name" style="left:352px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
  809. <input id="ipt_pid2" ref="/root/send/searchitem/telnutrcnst/pid" class="input_s_essential" autonext="false" maxlength="10" format="9999999999" style="left:437px; top:8px; width:85px; height:19px; ">
  810. <script type="javascript" ev:event="onkeydown">
  811. <![CDATA[
  812. inputEnterKey("btn_search2", "DOMActivate");
  813. ]]>
  814. </script>
  815. </input>
  816. </group>
  817. <line id="line4" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
  818. <datagrid id="grd_telnutrcnst" nodeset="/root/main/data/telnutrcnst/grdlist" caption="등록번호^환자구분^입원/외래^환자명^성별^나이^질환구분^집전화^휴대전화^수행여부^수행일자^영양사^서식기록번호^영양관리유형^환자별영양관리수행일자^입원일자" colsep="^" colwidth="100, 30, 70, 80, 60, 60, 157, 95, 95, 65, 88, 74, 30, 30, 30, 30" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:536px; ">
  819. <col ref="pid"/>
  820. <col ref="ioflag" visibility="hidden"/>
  821. <col ref="inout"/>
  822. <col ref="hngnm"/>
  823. <col ref="sex"/>
  824. <col ref="age"/>
  825. <col ref="sickcd" type="combo" style="text-align:left; ">
  826. <choices>
  827. <itemset nodeset="/root/init/basecode/sick/A0059">
  828. <label ref="cdnm"/>
  829. <value ref="cdid"/>
  830. </itemset>
  831. </choices>
  832. </col>
  833. <col ref="hometel"/>
  834. <col ref="mpphontel"/>
  835. <col checkvalue="Y,N" ref="execyn" type="checkbox"/>
  836. <col ref="telexecdd" type="inputdate"/>
  837. <col ref="execdieter" type="combo">
  838. <choices>
  839. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  840. <label ref="cdnm"/>
  841. <value ref="cdid"/>
  842. </itemset>
  843. </choices>
  844. </col>
  845. <col ref="formrecseq" visibility="hidden"/>
  846. <col ref="nutrmngtkind" visibility="hidden"/>
  847. <col ref="execdd" visibility="hidden"/>
  848. <col ref="orddd" visibility="hidden"/>
  849. <script type="javascript" ev:event="ondblclick">
  850. <![CDATA[
  851. if ( grd_telnutrcnst.isCell(event.target) && grd_telnutrcnst.row >= grd_telnutrcnst.fixedRows ) {
  852. // 'T'는 전화영양상담(추구관리) 탭화면임을 뜻하는 구분자임.
  853. model.setValue("/root/send/popup/flag", "T");
  854. model.setValue("/root/send/popup/pid", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/pid"));
  855. model.setValue("/root/send/popup/hngnm", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/hngnm"));
  856. //model.setValue("/root/send/popup/execprcpuniqno", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/h_execprcpuniqno"));
  857. //model.setValue("/root/send/popup/h_cretno", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/h_cretno"));
  858. //model.setValue("/root/send/popup/h_orddeptcd", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/orddept"));
  859. model.setValue("/root/send/popup/h_prcpgenrflag", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/ioflag"));
  860. model.setValue("/root/send/popup/h_orddd", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/orddd"));
  861. //model.setValue("/root/send/popup/h_formrecseq", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/formrecseq"));
  862. model.setValue("/root/send/popup/nutrmngtkind", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/nutrmngtkind"));
  863. model.setValue("/root/send/popup/execdd", model.getValue("/root/main/data/telnutrcnst/grdlist["+grd_telnutrcnst.row+"]/execdd"));
  864. //modal("SMANC00300", "", "", "", "popup", "/root/send/popup", "/root/main/receivedata");
  865. open("SMANC00300", "","","", "SMANC00300", "/root/send/popup", "/root/main/receivedata");
  866. }
  867. ]]>
  868. </script>
  869. </datagrid>
  870. <datagrid id="grd_cnstcount" nodeset="/root/main/data/telnutrcnstcnt/cnstcount" caption="상담일자^영양사^당뇨^고혈압^심장질환^복막투석^혈액투석^암^혈액종양^신장질환^간장질환^위장질환^경장영양^비만^기타질환" colsep="^" colwidth="95, 65, 80, 80, 80, 78, 78, 78, 78, 78, 78, 78, 78, 78, 78" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:640px; width:1183px; height:71px; text-align:center; ">
  871. <col ref="cnstdd" type="inputdate"/>
  872. <col ref="dieter" type="combo">
  873. <choices>
  874. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  875. <label ref="cdnm"/>
  876. <value ref="cdid"/>
  877. </itemset>
  878. </choices>
  879. </col>
  880. <col ref="glycospatqty" type="input"/>
  881. <col ref="hypetspatqty" type="input"/>
  882. <col ref="cardiacpatqty" type="input"/>
  883. <col ref="pdpatqty" type="input"/>
  884. <col ref="hdpatqty" type="input"/>
  885. <col ref="cncrpatqty" type="input"/>
  886. <col ref="blodtumpatqty" type="input"/>
  887. <col ref="kidnpatqty" type="input"/>
  888. <col ref="liverpatqty" type="input"/>
  889. <col ref="stmcpatqty" type="input"/>
  890. <col ref="etrlfdpatqty" type="input"/>
  891. <col ref="fatpatqty" type="input"/>
  892. <col ref="etcsickpatqty" type="input"/>
  893. </datagrid>
  894. <button id="btn_rowadd2" class="btn2_letter3" style="left:1000px; top:615px; width:53px; height:19px; ">
  895. <caption>행추가</caption>
  896. <script type="javascript" ev:event="DOMActivate">
  897. <![CDATA[
  898. grd_cnstcount.addRow();
  899. model.setValue("/root/main/data/telnutrcnstcnt/cnstcount["+ grd_cnstcount.row +"]/dieter", model.getValue("/root/send/searchitem/telnutrcnstcnt/dieter"));
  900. ]]>
  901. </script>
  902. </button>
  903. <button id="btn_rowdel2" class="btn2_letter3" style="left:1055px; top:615px; width:53px; height:19px; ">
  904. <caption>행삭제</caption>
  905. <script type="javascript" ev:event="DOMActivate">
  906. <![CDATA[
  907. grd_cnstcount.deleteRow(grd_cnstcount.row);
  908. ]]>
  909. </script>
  910. </button>
  911. <button id="btn_search4" class="btn1_letter2" style="left:1126px; top:613px; width:56px; height:22px; ">
  912. <caption>조회</caption>
  913. <script type="javascript" ev:event="DOMActivate">
  914. <![CDATA[
  915. var fromdd = model.getValue("/root/send/searchitem/telnutrcnstcnt/cnstfromdd");
  916. var todd = model.getValue("/root/send/searchitem/telnutrcnstcnt/cnsttodd");
  917. if ( getDateInterval(fromdd, todd) < 0 ) {
  918. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  919. return;
  920. } else {
  921. submit("TRANC00404");
  922. }
  923. ]]>
  924. </script>
  925. </button>
  926. <line id="line5" class="line_1" style="x1:5px; y1:635px; x2:1188px; y2:635px; "/>
  927. <caption id="caption20" class="tit_2" style="left:11px; top:618px; width:95px; height:13px; ">전화영양상담</caption>
  928. <caption id="caption17" class="search_name" style="left:315px; top:617px; width:86px; height:17px; ">상담일자 :</caption>
  929. <caption id="caption18" class="search_n_b" style="left:502px; top:618px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  930. <input id="ipt_cnstfromdd" ref="/root/send/searchitem/telnutrcnstcnt/cnstfromdd" class="input_s_essential" inputtype="date" style="left:400px; top:615px; width:100px; height:19px; "/>
  931. <input id="ipt_cnsttodd" ref="/root/send/searchitem/telnutrcnstcnt/cnsttodd" class="input_s_essential" inputtype="date" style="left:515px; top:615px; width:100px; height:19px; "/>
  932. <caption id="caption21" class="search_name" style="left:675px; top:617px; width:73px; height:17px; ">영양사 :</caption>
  933. <select1 id="cmb_dieter3" ref="/root/send/searchitem/telnutrcnstcnt/dieter" class="combo_search" appearance="minimal" style="left:750px; top:615px; width:85px; height:19px; ">
  934. <choices>
  935. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  936. <label ref="cdnm"/>
  937. <value ref="cdid"/>
  938. </itemset>
  939. </choices>
  940. </select1>
  941. </case>
  942. <case id="case4">
  943. <line id="line40" class="line_2" style="x1:5px; y1:687px; x2:1188px; y2:687px; "/>
  944. <line id="line6" class="line_1" style="x1:5px; y1:69px; x2:1188px; y2:69px; "/>
  945. <datagrid id="grd_nonregleduc" nodeset="/root/main/data/nonregleduc/grdlist" caption="일자^시작시간^종료일^종료시간^주제^대상^교육인원^장소^교육자료^질환구분^기타^영양사" colsep="^" colwidth="90, 60, 90, 60, 204, 120, 70, 133, 100, 100, 180, 83" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:74px; width:1183px; height:627px; ">
  946. <col ref="educdd" type="inputdate" format="yyyy-mm-dd" style="left:0px; top:23px; width:100px; height:23px; text-align:center; "/>
  947. <col ref="eductm" type="input" format="hh:nn" style="text-align:center; "/>
  948. <col ref="eductodd" type="inputdate" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  949. <col ref="eductotm" type="input" format="hh:nn" style="text-align:center; "/>
  950. <col ref="educsubj" type="input"/>
  951. <col ref="eductrgt" type="input"/>
  952. <col autonext="false" ref="educpsnno" type="input" format="9999" maxlength="4" style="text-align:right; "/>
  953. <col ref="educplce" type="input"/>
  954. <col ref="educmatr" type="input"/>
  955. <col ref="sickcd" type="combo">
  956. <choices>
  957. <itemset nodeset="/root/init/basecode/sick/A0059">
  958. <label ref="cdnm"/>
  959. <value ref="cdid"/>
  960. </itemset>
  961. </choices>
  962. </col>
  963. <col ref="educetc" type="input"/>
  964. <col ref="educdieter" type="combo" style="text-align:center; ">
  965. <choices>
  966. <itemset nodeset="/root/init/basecode/dieter/alldieter">
  967. <label ref="cdnm"/>
  968. <value ref="cdid"/>
  969. </itemset>
  970. </choices>
  971. </col>
  972. <script type="javascript" ev:event="xforms-select">
  973. <![CDATA[
  974. // var target_col = grd_glycosuria.col;
  975. // if ( target_col == "3" ) {
  976. // var exchstndcd = model.getValue("/root/main/data/glycosuria["+(grd_glycosuria.row)+"]/exchstndnm");
  977. // model.setValue("/root/main/data/glycosuria["+(grd_glycosuria.row)+"]/exchstndcd", exchstndcd);
  978. // model.refresh();
  979. // }
  980. ]]>
  981. </script>
  982. <script type="javascript" ev:event="onendedit">
  983. <![CDATA[
  984. var target_col = grd_nonregleduc.col;
  985. if ( target_col == "2" ) {
  986. var eductm = model.getValue("/root/main/data/nonregleduc/grdlist["+grd_nonregleduc.row+"]/eductm");
  987. if ( eductm.length != 4 ) {
  988. messageBox("시간 항목의 형식은 ##:##", "E008");
  989. return;
  990. }
  991. }
  992. ]]>
  993. </script>
  994. </datagrid>
  995. <group id="group3" style="left:5px; top:10px; width:1182px; height:35px; vertical-align:top; ">
  996. <shape id="shape2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1182px; height:35px; background-color:#fffbf2; "/>
  997. <button id="btn_search3" class="btn1_letter2" style="left:1111px; top:7px; width:56px; height:22px; ">
  998. <caption>조회</caption>
  999. <script type="javascript" ev:event="DOMActivate">
  1000. <![CDATA[
  1001. var fromdd = model.getValue("/root/send/searchitem/nonregleduc/fromdd");
  1002. var todd = model.getValue("/root/send/searchitem/nonregleduc/todd");
  1003. if ( getDateInterval(fromdd, todd) < 0 ) {
  1004. messageBox("조회 시작일은 종료일보다 클 수", "I004");
  1005. return;
  1006. } else {
  1007. submit("TRANC00403");
  1008. }
  1009. ]]>
  1010. </script>
  1011. </button>
  1012. <line id="line7" class="line_4" style="x1:1092px; y1:7px; x2:1092px; y2:29px; "/>
  1013. <caption id="caption22" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">교육일자 :</caption>
  1014. <caption id="caption23" class="search_n_b" style="left:211px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  1015. <input id="fromDD" ref="/root/send/searchitem/nonregleduc/fromdd" class="input_default" inputtype="date" style="left:107px; top:8px; width:100px; height:19px; text-align:center; "/>
  1016. <input id="toDD" ref="/root/send/searchitem/nonregleduc/todd" class="input_default" inputtype="date" style="left:227px; top:8px; width:100px; height:19px; text-align:center; "/>
  1017. </group>
  1018. </case>
  1019. </switch>
  1020. <button id="btn_ipatmngt" class="btn_sw" group="tab" selected="true" style="left:0px; top:5px; width:102px; height:22px; ">
  1021. <caption>입원환자관리</caption>
  1022. <script type="javascript" ev:event="DOMActivate">
  1023. <![CDATA[
  1024. btn_rowadd3.visible = true;
  1025. btn_rowdel3.visible = false;
  1026. btn_save.disabled = false;
  1027. btn_saveemr.disabled = false;
  1028. model.toggle("case1");
  1029. ]]>
  1030. </script>
  1031. </button>
  1032. <button id="btn_ipatmngtrslt" class="btn_sw" group="tab" selected="false" style="left:102px; top:5px; width:121px; height:22px; ">
  1033. <caption>환자관리결과조회</caption>
  1034. <script type="javascript" ev:event="DOMActivate">
  1035. <![CDATA[
  1036. btn_rowadd3.visible = false;
  1037. btn_rowdel3.visible = false;
  1038. btn_save.disabled = true;
  1039. btn_saveemr.disabled = true;
  1040. model.toggle("case2");
  1041. ]]>
  1042. </script>
  1043. </button>
  1044. <button id="btn_telnutrcnst" class="btn_sw" group="tab" selected="false" style="left:223px; top:5px; width:155px; height:22px; ">
  1045. <caption>전화영양상담(추구관리)</caption>
  1046. <script type="javascript" ev:event="DOMActivate">
  1047. <![CDATA[
  1048. btn_rowadd3.visible = false;
  1049. btn_rowdel3.visible = false;
  1050. btn_save.disabled = false;
  1051. btn_saveemr.disabled = true;
  1052. model.toggle("case3");
  1053. ]]>
  1054. </script>
  1055. </button>
  1056. <button id="btn_nonregleduc" class="btn_sw" group="tab" selected="false" style="left:377px; top:5px; width:83px; height:22px; ">
  1057. <caption>집단교육</caption>
  1058. <script type="javascript" ev:event="DOMActivate">
  1059. <![CDATA[
  1060. btn_rowadd3.visible = true;
  1061. btn_rowdel3.visible = true;
  1062. btn_save.disabled = false;
  1063. btn_saveemr.disabled = true;
  1064. model.toggle("case4");
  1065. ]]>
  1066. </script>
  1067. </button>
  1068. <button id="btn_rowadd3" class="btn2_letter3" style="left:1025px; top:75px; width:53px; height:19px; ">
  1069. <caption>행추가</caption>
  1070. <script type="javascript" ev:event="DOMActivate">
  1071. <![CDATA[
  1072. //입원환자관리 탭화면일때
  1073. if ( btn_ipatmngt.selected ) {
  1074. var selectRow = grd_ipatmngt.row - 1;
  1075. if ( model.getValue("/root/main/data/ipatmngt/grdlist["+selectRow +"]/pid") == "" ) {
  1076. messageBox("추가할 환자를", "C002");
  1077. return;
  1078. }
  1079. var grdrow = grd_ipatmngt.row;
  1080. model.copyNode("/root/temp", "/root/main/data/ipatmngt/grdlist["+ selectRow +"]");
  1081. grd_ipatmngt.insertrow(grdrow, "below");
  1082. model.copyNode("/root/main/data/ipatmngt/grdlist["+ (grdrow) +"]", "/root/temp");
  1083. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow) +"]/sick", "");
  1084. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow) +"]/curedietpatyn", "");
  1085. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow) +"]/dietroundyn", "");
  1086. //model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow+1) +"]/crmyn", "");
  1087. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow) +"]/execcnts", "");
  1088. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow) +"]/execdieter", getUserInfo("userid"));
  1089. model.setValue("/root/main/data/ipatmngt/grdlist["+ (grdrow) +"]/execdd", getCurrentDate());
  1090. //model.setFocus("/root/main/tab/menuwrite/list["+ (grdrow+1) +"]/dishflag");
  1091. model.refresh();
  1092. }
  1093. //집단교육 탭화면일때
  1094. else if ( btn_nonregleduc.selected ) {
  1095. grd_nonregleduc.addRow();
  1096. }
  1097. ]]>
  1098. </script>
  1099. </button>
  1100. <button id="btn_rowdel3" class="btn2_letter3" style="left:1081px; top:75px; width:53px; height:19px; ">
  1101. <caption>행삭제</caption>
  1102. <script type="javascript" ev:event="DOMActivate">
  1103. <![CDATA[
  1104. //var cur_row = grd_nonregleduc.row;
  1105. //grd_nonregleduc.deleteRow(cur_row);
  1106. grd_nonregleduc.deleteRow(grd_nonregleduc.row);
  1107. ]]>
  1108. </script>
  1109. </button>
  1110. <button id="btn_excel" class="btn2_letter2" style="left:1145px; top:75px; width:42px; height:19px; ">
  1111. <caption>엑셀</caption>
  1112. <script type="javascript" ev:event="DOMActivate">
  1113. <![CDATA[
  1114. if ( btn_ipatmngt.selected ) {
  1115. var filename = window.fileDialog("save", ",", false, "입원환자관리현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1116. if (filename != "") {
  1117. grd_ipatmngt.saveExcel(filename, "grd_ipatmngt", true, false, "", "", "");
  1118. }
  1119. } else if ( btn_ipatmngtrslt.selected ) {
  1120. var filename = window.fileDialog("save", ",", false, "환자관리결과현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1121. if (filename != "") {
  1122. grd_ipatmngtrslt.saveExcel(filename, "grd_ipatmngtrslt", true, false, "", "", "");
  1123. }
  1124. } else if ( btn_telnutrcnst.selected ) {
  1125. var filename = window.fileDialog("save", ",", false, "전화영양상담현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1126. if (filename != "") {
  1127. grd_telnutrcnst.saveExcel(filename, "grd_telnutrcnst", true, false, "", "", "");
  1128. }
  1129. } else if ( btn_nonregleduc.selected ) {
  1130. var filename = window.fileDialog("save", ",", false, "집단교육현황", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1131. if (filename != "") {
  1132. grd_nonregleduc.saveExcel(filename, "grd_nonregleduc", true, false, "", "", "");
  1133. }
  1134. }
  1135. ]]>
  1136. </script>
  1137. </button>
  1138. </group>
  1139. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  1140. <button id="btn_saveemr" class="btn4_letter6" style="left:962px; top:5px; width:104px; height:22px; ">
  1141. <caption>다학제간전송</caption>
  1142. <script type="javascript" ev:event="DOMActivate">
  1143. <![CDATA[
  1144. sendEMRData();
  1145. ]]>
  1146. </script>
  1147. </button>
  1148. <button id="btn_reset" class="btn4_letter3" style="left:1067px; top:5px; width:68px; height:22px; ">
  1149. <caption>초기화</caption>
  1150. <script type="javascript" ev:event="DOMActivate">
  1151. <![CDATA[
  1152. finit();
  1153. ]]>
  1154. </script>
  1155. </button>
  1156. <button id="btn_save" class="btn4_letter2" style="left:1136px; top:5px; width:56px; height:22px; ">
  1157. <caption>저장</caption>
  1158. <script type="javascript" ev:event="DOMActivate">
  1159. <![CDATA[
  1160. if ( messageBox("", "Q002") == 6 ) {
  1161. //입원환자관리 탭화면일때
  1162. if ( btn_ipatmngt.selected ) {
  1163. model.setValue("/root/send/data/ipatmngt/list", grd_ipatmngt.getUpdateData());
  1164. if (submit("TXANC00451")) {
  1165. btn_search1.dispatch("DOMActivate");
  1166. }
  1167. }
  1168. //환자관리결과조회 탭화면일때
  1169. // if ( btn_ipatmngtrslt.selected ) {
  1170. // messageBox("결과조회는 저장", "E001");
  1171. // return;
  1172. // }
  1173. //전화영양상담 탭화면일때
  1174. else if ( btn_telnutrcnst.selected ) {
  1175. //전화영양상담 메인 그리드
  1176. if ( getGridUpdateData(grd_telnutrcnst) != "" ) {
  1177. //필수입력항목 체크
  1178. for ( i=1; i<grd_telnutrcnst.rows; i++) {
  1179. if ( (model.getValue("/root/main/data/telnutrcnst/grdlist[" + i + "]/execyn") == "Y") &&
  1180. ((model.getValue("/root/main/data/telnutrcnst/grdlist[" + i + "]/telexecdd") == "") ||
  1181. (model.getValue("/root/main/data/telnutrcnst/grdlist[" + i + "]/execdieter") == "")) ) {
  1182. messageBox("수행일자, 영양사 항목은", "I003");
  1183. return;
  1184. }
  1185. }
  1186. model.setValue("/root/send/data/telnutrcnst/list", grd_telnutrcnst.getUpdateData());
  1187. if (submit("TXANC00402")) {
  1188. submit("TRANC00402");
  1189. }
  1190. }
  1191. //하단의 전화영양상담건수 그리드
  1192. if ( getGridUpdateData(grd_cnstcount) != "" ) {
  1193. //필수입력항목 체크
  1194. for ( i=1; i<grd_cnstcount.rows; i++) {
  1195. if ( (model.getValue("/root/main/data/telnutrcnstcnt/cnstcount[" + i + "]/cnstdd") == "") ||
  1196. (model.getValue("/root/main/data/telnutrcnstcnt/cnstcount[" + i + "]/dieter") == "") ) {
  1197. messageBox("상담일자, 영양사 항목은", "I003");
  1198. return;
  1199. }
  1200. }
  1201. model.setValue("/root/send/data/telnutrcnstcnt/cnstcount", grd_cnstcount.getUpdateData());
  1202. if (submit("TXANC00404")) {
  1203. submit("TRANC00404");
  1204. }
  1205. }
  1206. }
  1207. //집단교육 탭화면일때
  1208. else if ( btn_nonregleduc.selected ) {
  1209. //필수입력항목 체크
  1210. for ( i=1; i<grd_nonregleduc.rows; i++) {
  1211. if ( (model.getValue("/root/main/data/nonregleduc/grdlist[" + i + "]/educdd") == "") ||
  1212. (model.getValue("/root/main/data/nonregleduc/grdlist[" + i + "]/eductm") == "") ||
  1213. (model.getValue("/root/main/data/nonregleduc/grdlist[" + i + "]/educdieter") == "") ) {
  1214. messageBox("일자, 시간, 영양사 항목은", "I003");
  1215. return;
  1216. }
  1217. }
  1218. model.setValue("/root/send/data/nonregleduc/list", grd_nonregleduc.getUpdateData());
  1219. submit("TXANC00403");
  1220. }
  1221. //model.resetInstanceNode("/root/send/data");
  1222. } else { return; }
  1223. ]]>
  1224. </script>
  1225. </button>
  1226. <button id="btn_listprnt" class="btn6_letter5" disabled="true" style="left:0px; top:5px; width:92px; height:22px; ">
  1227. <caption>리스트출력</caption>
  1228. </button>
  1229. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1230. </group>
  1231. </xhtml:body>
  1232. </xhtml:html>