SMPID23200_명세서처방복사.xrw 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * @(#)SMPID23200_명세서처방복사 .xrw
  4. * 수정이력
  5. * - 2010.02.08 / 최초작성 / 김용민
  6. -->
  7. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  8. <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">
  9. <xhtml:head>
  10. <xhtml:title>명세서처방복사</xhtml:title>
  11. <model id="model1">
  12. <instance id="instance1">
  13. <root xmlns="">
  14. <main>
  15. <list1>
  16. <clbs/>
  17. </list1>
  18. <list2>
  19. <cldilist>
  20. <cldi/>
  21. </cldilist>
  22. <clodlist>
  23. <clod/>
  24. </clodlist>
  25. <cloplist>
  26. <clop/>
  27. </cloplist>
  28. </list2>
  29. </main>
  30. <send>
  31. <initparam>
  32. <clamym/>
  33. <clamdg/>
  34. <pid/>
  35. <pidsn/>
  36. <patnm/>
  37. <ioflag/>
  38. <insukind/>
  39. <suppkind/>
  40. <orddeptcd/>
  41. </initparam>
  42. <item1>
  43. <m_clamym/>
  44. <m_clamdg/>
  45. <m_pid/>
  46. <m_pidsn/>
  47. <clamym/>
  48. <clamdg/>
  49. <ioflag/>
  50. <insukind/>
  51. <suppkind/>
  52. <orddeptcd/>
  53. <jobflag/>
  54. <mclspyn/>
  55. <mx999yn/>
  56. <adjtresncd/>
  57. </item1>
  58. <save>
  59. <clbs/>
  60. <cldi/>
  61. <clod/>
  62. <clop/>
  63. </save>
  64. <updatedata>
  65. <clbs/>
  66. <cldi/>
  67. <clod/>
  68. <clop/>
  69. </updatedata>
  70. </send>
  71. <init>
  72. <item1>
  73. <ioflag/>
  74. <clamym/>
  75. <clamdg/>
  76. <pid/>
  77. <pidsn/>
  78. <patnm/>
  79. <insukind/>
  80. <suppkind/>
  81. <orddeptcd/>
  82. </item1>
  83. <!-- 보험유형 -->
  84. <P0008list>
  85. <P0008>
  86. <cdnm/>
  87. <cdid/>
  88. </P0008>
  89. </P0008list>
  90. <!-- 보조유형 -->
  91. <P0010list>
  92. <P0010>
  93. <cdnm/>
  94. <cdid/>
  95. </P0010>
  96. </P0010list>
  97. <!-- 입외구분 -->
  98. <IOFLAGlist>
  99. <ioflag>
  100. <cdnm>외래</cdnm>
  101. <cdid>O</cdid>
  102. </ioflag>
  103. <ioflag>
  104. <cdnm>입원</cdnm>
  105. <cdid>I</cdid>
  106. </ioflag>
  107. </IOFLAGlist>
  108. <!-- 청구구분 -->
  109. <P0155list>
  110. <P0155>
  111. <cdnm/>
  112. <cdid/>
  113. </P0155>
  114. </P0155list>
  115. <!-- 청구완료여무(명세서상태) -->
  116. <P0430list>
  117. <P0430>
  118. <cdnm/>
  119. <cdid/>
  120. </P0430>
  121. </P0430list>
  122. <!-- 심사상태 -->
  123. <P0151list>
  124. <P0151>
  125. <cdnm/>
  126. <cdid/>
  127. </P0151>
  128. </P0151list>
  129. <!-- 심사조정사유 -->
  130. <P0127list>
  131. <P0127>
  132. <cdnm/>
  133. <cdid/>
  134. </P0127>
  135. </P0127list>
  136. <orddeptcd2/>
  137. <orddrid2/>
  138. </init>
  139. <hidden>
  140. <popupmenu>
  141. <gridcldi>
  142. <item>
  143. <name>선택</name>
  144. <func>fSetCldiCheckY</func>
  145. </item>
  146. <item>
  147. <name>취소</name>
  148. <func>fSetCldiCheckN</func>
  149. </item>
  150. </gridcldi>
  151. <gridclop>
  152. <item>
  153. <name>선택</name>
  154. <func>fSetClopCheckY</func>
  155. </item>
  156. <item>
  157. <name>취소</name>
  158. <func>fSetClopCheckN</func>
  159. </item>
  160. </gridclop>
  161. <gridclod>
  162. <item>
  163. <name>선택</name>
  164. <func>fSetClodCheckY</func>
  165. </item>
  166. <item>
  167. <name>취소</name>
  168. <func>fSetClodCheckN</func>
  169. </item>
  170. </gridclod>
  171. </popupmenu>
  172. </hidden>
  173. </root>
  174. </instance>
  175. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  176. <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/init/clamdg"/>
  177. <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/ioflag" resultref="root/hidden/tmp"/>
  178. <submission id="TRPID20603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/main/list1"/>
  179. <submission id="TRPID20604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/initparam" resultref="/root/main/list2"/>
  180. <submission id="TXPID20602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" replace="instance" resultref="/root/hidden/tmp"/>
  181. <script type="javascript" ev:event="xforms-ready">
  182. <![CDATA[
  183. // 테스트용 데이타
  184. /*
  185. model.setValue("/root/send/initparam/clamym","201002");
  186. model.setValue("/root/send/initparam/clamdg","1");
  187. model.setValue("/root/send/initparam/pid","1200667");
  188. model.setValue("/root/send/initparam/pidsn","2");
  189. model.setValue("/root/send/initparam/patnm","전홍덕");
  190. model.setValue("/root/send/initparam/ioflag","O");
  191. model.setValue("/root/send/initparam/insukind","11");
  192. model.setValue("/root/send/initparam/suppkind","00");
  193. model.setValue("/root/send/initparam/orddeptcd","2010300000");
  194. */
  195. // 팝업으로 호출되었으면... 등록번호가 있는경우 조회를 바로한다.
  196. if (model.getValue("/root/init/item1/pid") != "") {
  197. model.setValue("/root/send/initparam/ioflag", model.getValue("/root/init/item1/ioflag"));
  198. model.setValue("/root/send/initparam/clamym", model.getValue("/root/init/item1/clamym"));
  199. model.setValue("/root/send/initparam/clamdg", model.getValue("/root/init/item1/clamdg"));
  200. model.setValue("/root/send/initparam/pid", model.getValue("/root/init/item1/pid"));
  201. model.setValue("/root/send/initparam/pidsn", model.getValue("/root/init/item1/pidsn"));
  202. model.setValue("/root/send/initparam/patnm", model.getValue("/root/init/item1/patnm"));
  203. model.setValue("/root/send/initparam/insukind", model.getValue("/root/init/item1/insukind"));
  204. model.setValue("/root/send/initparam/suppkind", model.getValue("/root/init/item1/suppkind"));
  205. model.setValue("/root/send/initparam/orddeptcd", model.getValue("/root/init/item1/orddeptcd"));
  206. }
  207. // ---------------------------------------------------------------
  208. // 공통코드를 조회한다.
  209. // (ZBC001.js) com.ZBCMCODE 에서 기초코드 값 Get
  210. // ---------------------------------------------------------------
  211. zbcfGetCodeList(
  212. new Array("P0008" // 보험유형
  213. ,"P0010" // 보조유형
  214. ,"P0155" // 청구구분
  215. ,"P0430" // 청구상태
  216. ,"P0151" // 심사상태
  217. ,"P0127" // 심사조정사유
  218. ),
  219. new Array("/root/init/P0008list"
  220. ,"/root/init/P0010list"
  221. ,"/root/init/P0155list"
  222. ,"/root/init/P0430list"
  223. ,"/root/init/P0151list"
  224. ,"/root/init/P0127list"
  225. ) );
  226. // ---------------------------------------------------------------
  227. // 진료과 주치의 초기화
  228. // ---------------------------------------------------------------
  229. submit("TRPID20309", false);
  230. model.copyNode("/root/init/orddeptcd2", "/root/hidden/tmp/orddeptcd2");
  231. model.copyNode("/root/init/orddrid2", "/root/hidden/tmp/orddrid2");
  232. model.removeNodeset("/root/hidden/tmp/orddeptcd");
  233. model.removeNodeset("/root/hidden/tmp/orddeptcd2");
  234. model.removeNodeset("/root/hidden/tmp/orddrid");
  235. model.removeNodeset("/root/hidden/tmp/orddrid2");
  236. fInitialize(); // 초기화
  237. if ( model.getValue("/root/send/initparam/clamym") != "" ) {
  238. // 명세서 리스트 조회
  239. fGetDocuList();
  240. }
  241. ]]>
  242. </script>
  243. </model>
  244. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  245. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  246. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  247. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  248. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  249. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  250. <script type="javascript" src="../../../pam/aftjudgweb/js/SMPID20000.js"/>
  251. <script type="javascript">
  252. <![CDATA[
  253. // -----------------------
  254. // ▶ 화면초기화
  255. // -----------------------
  256. function fInitialize() {
  257. model.setValue("/root/send/item1/jobflag","M"); // 이동/복사 중 이동이 기본
  258. model.setValue("/root/send/item1/mclspyn",""); // 명세서단위 특정내역
  259. model.setValue("/root/send/item1/mx999yn",""); // 청구메모
  260. // 조회조건 기본값 설정
  261. if ( model.getValue("/root/send/initparam/clamym") != "" ) {
  262. model.setValue("/root/send/item1/clamym", model.getValue("/root/send/initparam/clamym"));
  263. model.setValue("/root/send/item1/clamdg", model.getValue("/root/send/initparam/clamdg"));
  264. model.setValue("/root/send/item1/ioflag", model.getValue("/root/send/initparam/ioflag"));
  265. model.setValue("/root/send/item1/insukind", model.getValue("/root/send/initparam/insukind"));
  266. model.setValue("/root/send/item1/suppkind", model.getValue("/root/send/initparam/suppkind"));
  267. model.setValue("/root/send/item1/orddeptcd", model.getValue("/root/send/initparam/orddeptcd"));
  268. pidfGetClamdg();
  269. fGetClodList();
  270. }
  271. // 인스턴스 지우기
  272. model.removeNodeset("/root/main/list1/clbs");
  273. model.refresh();
  274. }
  275. // ----------------------------------------------------------------------
  276. // ▶ 명세서관리 대상조회
  277. // ----------------------------------------------------------------------
  278. function fGetDocuList() {
  279. if (model.getValue("/root/send/initparam/pid") == "") {
  280. messageBox("등록번호는", "I003"); ///I003=등록번호는 필수입력입니다.
  281. return;
  282. }
  283. if (model.getValue("/root/send/item1/clamym") == "") {
  284. messageBox("청구년월은", "I003"); ///I003=청구년월은 필수입력입니다.
  285. return;
  286. }
  287. if (model.getValue("/root/send/item1/clamdg") == "") {
  288. messageBox("청구차수는", "I003"); ///I003=청구차수는 필수입력입니다.
  289. return;
  290. }
  291. model.setValue("/root/send/item1/m_clamym", model.getValue("/root/send/initparam/clamym"));
  292. model.setValue("/root/send/item1/m_clamdg", model.getValue("/root/send/initparam/clamdg"));
  293. model.setValue("/root/send/item1/m_pid", model.getValue("/root/send/initparam/pid"));
  294. model.setValue("/root/send/item1/m_pidsn", model.getValue("/root/send/initparam/pidsn"));
  295. model.removeNodeset("/root/main/list1/clbs");
  296. submit("TRPID20603");
  297. }
  298. function fGetClodList() {
  299. if (model.getValue("/root/send/initparam/pid") == "") {
  300. return;
  301. }
  302. model.removeNodeset("/root/main/list2");
  303. submit("TRPID20604");
  304. }
  305. function fSetGridCheckYN(jgrid,selyn) {
  306. var nodelist;
  307. var nodename;
  308. var i;
  309. if ( jgrid == "CLDI" ) {
  310. nodename = "/root/main/list2/cldilist/cldi";
  311. } else if ( jgrid == "CLOP" ) {
  312. nodename = "/root/main/list2/cloplist/clop";
  313. } else if ( jgrid == "CLOD" ) {
  314. nodename = "/root/main/list2/clodlist/clod";
  315. } else {
  316. return;
  317. }
  318. nodeList = instance1.selectNodes(nodename);
  319. for ( i = 1; i <= nodeList.length; i++ ) {
  320. model.setValue(nodename + "[" + i + "]/fromchk",selyn);
  321. }
  322. model.refreshpart(nodename);
  323. }
  324. function fSetCldiCheckY() {
  325. var selrow = 0;
  326. for ( i=0; i < grd_cldi.selectedRows; i++) {
  327. selrow = grd_cldi.selectedRow(i);
  328. model.setValue("root/main/list2/cldilist/cldi[" + selrow + "]/fromchk","Y");
  329. }
  330. grd_cldi.refresh();
  331. }
  332. function fSetCldiCheckN() {
  333. var selrow = 0;
  334. for ( i=0; i < grd_cldi.selectedRows; i++) {
  335. selrow = grd_cldi.selectedRow(i);
  336. model.setValue("root/main/list2/cldilist/cldi[" + selrow + "]/fromchk","N");
  337. }
  338. grd_cldi.refresh();
  339. }
  340. function fSetClopCheckY() {
  341. var selrow = 0;
  342. for ( i=0; i < grd_clop.selectedRows; i++) {
  343. selrow = grd_clop.selectedRow(i);
  344. model.setValue("root/main/list2/cloplist/clop[" + selrow + "]/fromchk","Y");
  345. }
  346. grd_clop.refresh();
  347. }
  348. function fSetClopCheckN() {
  349. var selrow = 0;
  350. for ( i=0; i < grd_clop.selectedRows; i++) {
  351. selrow = grd_clop.selectedRow(i);
  352. model.setValue("root/main/list2/cloplist/clop[" + selrow + "]/fromchk","N");
  353. }
  354. grd_clop.refresh();
  355. }
  356. function fSetClodCheckY() {
  357. var selrow = 0;
  358. for ( i=0; i < grd_clod.selectedRows; i++) {
  359. selrow = grd_clod.selectedRow(i);
  360. model.setValue("root/main/list2/clodlist/clod[" + selrow + "]/fromchk","Y");
  361. }
  362. grd_clod.refresh();
  363. }
  364. function fSetClodCheckN() {
  365. var selrow = 0;
  366. for ( i=0; i < grd_clod.selectedRows; i++) {
  367. selrow = grd_clod.selectedRow(i);
  368. model.setValue("root/main/list2/clodlist/clod[" + selrow + "]/fromchk","N");
  369. }
  370. grd_clod.refresh();
  371. }
  372. // 저장전 유효성 체크
  373. function fValidcheck() {
  374. var clbs_from_cnt = 0;
  375. var clbs_to_cnt = 0;
  376. var cldi_cnt = 0;
  377. var clop_cnt = 0;
  378. var clod_cnt = 0;
  379. var clbs_mclspyn = "";
  380. var clbs_mx999yn = "";
  381. var i = 0;
  382. var ans = "";
  383. var smsg = "";
  384. var from_pid = "";
  385. var from_clamym = "";
  386. var from_ioflag = "";
  387. var from_insukind = "";
  388. var from_suppkind = "";
  389. var from_orddeptcd = "";
  390. var to_pid = "";
  391. var to_clamym = "";
  392. var to_ioflag = "";
  393. var to_insukind = "";
  394. var to_suppkind = "";
  395. var to_orddeptcd = "";
  396. // 명세서 선택 사항 체크
  397. for ( i = 1; i <= grd_clbsmast.rows; i++) {
  398. if (model.getValue("/root/main/list1/clbs[ " + i + "]/fromchk") == "Y") {
  399. if (model.getValue("/root/main/list1/clbs[ " + i + "]/tochk") == "Y") {
  400. messageBox("송수신명세서를 동시에 선택", "E001"); ///E001=할 수 없습니다.
  401. return false;
  402. }
  403. // 이동시 from 명세서의 송신상태 체크
  404. if ( model.getValue("/root/send/item1/jobflag") == "M" ) {
  405. if (model.getValue("/root/main/list1/clbs[ " + i + "]/lockyn") == "Y") {
  406. messageBox("이동시 잠금설정된 원명세서는 선택", "E001"); ///E001=할 수 없습니다.
  407. return false;
  408. }
  409. if ( model.getValue("/root/main/list1/clbs[ " + i + "]/clamendyn") != "A"
  410. && model.getValue("/root/main/list1/clbs[ " + i + "]/clamendyn") != "M"
  411. ) {
  412. messageBox("이동시 송신된 원명세서는 선택", "E001"); ///E001=할 수 없습니다.
  413. return false;
  414. }
  415. }
  416. clbs_from_cnt++;
  417. from_pid = model.getValue("/root/main/list1/clbs[ " + i + "]/pid");
  418. from_clamym = model.getValue("/root/main/list1/clbs[ " + i + "]/clamym");
  419. from_ioflag = model.getValue("/root/main/list1/clbs[ " + i + "]/ioflag");
  420. from_insukind = model.getValue("/root/main/list1/clbs[ " + i + "]/insukind");
  421. from_suppkind = model.getValue("/root/main/list1/clbs[ " + i + "]/suppkind");
  422. from_orddeptcd = model.getValue("/root/main/list1/clbs[ " + i + "]/orddeptcd");
  423. }
  424. if (model.getValue("/root/main/list1/clbs[ " + i + "]/tochk") == "Y") {
  425. if (model.getValue("/root/main/list1/clbs[ " + i + "]/lockyn") == "Y") {
  426. messageBox("잠금설정된 명세서는 선택", "E001"); ///E001=할 수 없습니다.
  427. return false;
  428. }
  429. if ( model.getValue("/root/main/list1/clbs[ " + i + "]/clamendyn") != "A"
  430. && model.getValue("/root/main/list1/clbs[ " + i + "]/clamendyn") != "M"
  431. ) {
  432. messageBox("송신된 명세서는 선택", "E001"); ///E001=할 수 없습니다.
  433. return false;
  434. }
  435. clbs_to_cnt++;
  436. to_pid = model.getValue("/root/main/list1/clbs[ " + i + "]/pid");
  437. to_clamym = model.getValue("/root/main/list1/clbs[ " + i + "]/clamym");
  438. to_ioflag = model.getValue("/root/main/list1/clbs[ " + i + "]/ioflag");
  439. to_insukind = model.getValue("/root/main/list1/clbs[ " + i + "]/insukind");
  440. to_suppkind = model.getValue("/root/main/list1/clbs[ " + i + "]/suppkind");
  441. to_orddeptcd = model.getValue("/root/main/list1/clbs[ " + i + "]/orddeptcd");
  442. }
  443. }
  444. if ( clbs_from_cnt > 1 ) {
  445. messageBox("송신(FROM)명세서를 동시에 선택", "E001"); ///E001=할 수 없습니다.
  446. return false;
  447. }
  448. if ( clbs_to_cnt > 1 ) {
  449. messageBox("수신(TO)명세서를 동시에 선택", "E001"); ///E001=할 수 없습니다.
  450. return false;
  451. }
  452. if ( clbs_from_cnt == 0 ) {
  453. messageBox("선택된 송신(FROM)명세서가 ", "I004"); ///송신(FROM) 명세서가 없습니다.
  454. return false;
  455. }
  456. if ( clbs_to_cnt == 0 ) {
  457. messageBox("선택된 수신(TO)명세서가 ", "I004"); ///송신(FROM) 명세서가 없습니다.
  458. return false;
  459. }
  460. // 상병 선택 사항 체크
  461. for ( i = 1; i <= grd_cldi.rows; i++) {
  462. if (model.getValue("/root/main/list2/cldilist/cldi[ " + i + "]/fromchk") == "Y") {
  463. cldi_cnt++;
  464. }
  465. }
  466. // 원외처방 선택 사항 체크
  467. for ( i = 1; i <= grd_clop.rows; i++) {
  468. if (model.getValue("/root/main/list2/cloplist/clop[ " + i + "]/fromchk") == "Y") {
  469. clop_cnt++;
  470. }
  471. }
  472. // 처방 선택 사항 체크
  473. for ( i = 1; i <= grd_clod.rows; i++) {
  474. if (model.getValue("/root/main/list2/clodlist/clod[ " + i + "]/fromchk") == "Y") {
  475. clod_cnt++;
  476. }
  477. }
  478. // 명세서단위 특정내역 선택여부
  479. clbs_mclspyn = model.getValue("/root/send/item1/mclspyn");
  480. // 청구메모 선택여부
  481. clbs_mx999yn = model.getValue("/root/send/item1/mx999yn");
  482. if ( cldi_cnt == 0 && clop_cnt == 0 && clod_cnt == 0 && clbs_mclspyn != "Y" && clbs_mx999yn != "Y" ) {
  483. messageBox("이동/복사 대상으로 선택된 처방/상병이 ", "I004"); /// 선택된 처방상병이 없습니다.
  484. return false;
  485. }
  486. if ( ( clod_cnt != 0 || clop_cnt != 0 )
  487. && model.getValue("/root/send/item1/adjtresncd") == ""
  488. ) {
  489. messageBox("선택된 조정사유가", "I004"); /// 선택된 조정사유가 없습니다.
  490. return false;
  491. }
  492. // 혹시 모를 등록번호 체크
  493. if ( from_pid != to_pid ) {
  494. messageBox("등록번호 가 서로 틀립니다", "");
  495. return false;
  496. }
  497. // 청구년월 체크
  498. if ( from_clamym != to_clamym ) {
  499. ans = messageBox("진료과가 서로 틀립니다. 무시하고 작업", "S001");
  500. if (ans != 6) { // 6: yes
  501. return false;
  502. }
  503. }
  504. // 입외구분 체크
  505. if ( from_ioflag != to_ioflag ) {
  506. ans = messageBox("입원,외래 유형이 서로 틀립니다. 무시하고 작업", "S001");
  507. if (ans != 6) { // 6: yes
  508. return false;
  509. }
  510. }
  511. // 보험유형 체크
  512. if ( from_insukind != to_insukind ) {
  513. ans = messageBox("보험유형이 서로 틀립니다. 무시하고 작업", "S001");
  514. if (ans != 6) { // 6: yes
  515. return false;
  516. }
  517. }
  518. // 보조유형 체크
  519. if ( from_suppkind != to_suppkind ) {
  520. ans = messageBox("보조유형이 서로 틀립니다. 무시하고 작업", "S001");
  521. if (ans != 6) { // 6: yes
  522. return false;
  523. }
  524. }
  525. // 진료과 체크
  526. if ( from_orddeptcd != to_orddeptcd ) {
  527. ans = messageBox("진료과가 서로 틀립니다. 무시하고 작업", "S001");
  528. if (ans != 6) { // 6: yes
  529. return false;
  530. }
  531. }
  532. // 사용자 최종확인
  533. if ( model.getValue("/root/send/item1/jobflag") == "M" ) {
  534. smsg = " ** 이동 - 원명세서에서는 삭제됩니다. ** " + "\n\n";
  535. } else if ( model.getValue("/root/send/item1/jobflag") == "C" ) {
  536. smsg = " ** 복사 - 처방이 똑같이 복사합니다. ** " + "\n\n"
  537. } else {
  538. messageBox("error","");
  539. return false;
  540. }
  541. smsg = smsg
  542. + "상병 - " + cldi_cnt + " 건" + "\n"
  543. + "처방 - " + clod_cnt + " 건" + "\n"
  544. + "원외 - " + clop_cnt + " 건" + "\n\n";
  545. if ( model.getValue("/root/send/item1/jobflag") == "M" ) {
  546. smsg = smsg + "선택된 내역을 이동";
  547. } else if ( model.getValue("/root/send/item1/jobflag") == "C" ) {
  548. smsg = smsg + "선택된 내역을 복사";
  549. } else {
  550. messageBox("error","");
  551. return false;
  552. }
  553. ans = messageBox(smsg, "S001");
  554. if (ans != 6) { // 6: yes
  555. return false;
  556. }
  557. return true;
  558. }
  559. // 실제 저장
  560. function fSetDocuMake() {
  561. var row = 0;
  562. model.resetInstanceNode("/root/send/save/clbs");
  563. model.resetInstanceNode("/root/send/save/cldi");
  564. model.resetInstanceNode("/root/send/save/clod");
  565. model.resetInstanceNode("/root/send/save/clop");
  566. model.removenode("/root/send/updatedata/clbs");
  567. model.removenode("/root/send/updatedata/cldi");
  568. model.removenode("/root/send/updatedata/clod");
  569. model.removenode("/root/send/updatedata/clop");
  570. // 작업유형(이동/복사)
  571. model.makeValue("/root/send/save/clbs/jobflag",model.getValue("/root/send/item1/jobflag"));
  572. // 명세서단위 특정내역
  573. model.makeValue("/root/send/save/clbs/mclspyn",model.getValue("/root/send/item1/mclspyn"));
  574. // 청구메모
  575. model.makeValue("/root/send/save/clbs/mx999yn",model.getValue("/root/send/item1/mx999yn"));
  576. // 심사조정사유
  577. model.makeValue("/root/send/save/clbs/adjtresncd",model.getValue("/root/send/item1/adjtresncd"));
  578. // clbs from
  579. model.makeValue("/root/send/save/clbs/f_clamym",model.getValue("/root/send/initparam/clamym"));
  580. model.makeValue("/root/send/save/clbs/f_clamdg",model.getValue("/root/send/initparam/clamdg"));
  581. model.makeValue("/root/send/save/clbs/f_pid",model.getValue("/root/send/initparam/pid"));
  582. model.makeValue("/root/send/save/clbs/f_pidsn",model.getValue("/root/send/initparam/pidsn"));
  583. // clbs to
  584. row = 0;
  585. for ( i = 1; i <= grd_clbsmast.rows; i++) {
  586. if (model.getValue("/root/main/list1/clbs[ " + i + "]/tochk") == "Y") {
  587. row++;
  588. model.makeValue("/root/send/save/clbs/t_clamym",model.getValue("/root/main/list1/clbs[" + i + "]/clamym"));
  589. model.makeValue("/root/send/save/clbs/t_clamdg",model.getValue("/root/main/list1/clbs[" + i + "]/clamdg"));
  590. model.makeValue("/root/send/save/clbs/t_pid",model.getValue("/root/main/list1/clbs[" + i + "]/pid"));
  591. model.makeValue("/root/send/save/clbs/t_pidsn",model.getValue("/root/main/list1/clbs[" + i + "]/pidsn"));
  592. }
  593. }
  594. if ( row > 0 ) {
  595. model.makeNode("/root/send/updatedata/clbs");
  596. model.setValue("/root/send/updatedata/clbs", getNodeListCSV(instance1.selectNodes("/root/send/save/clbs")) );
  597. }
  598. // cldi
  599. row = 0;
  600. for ( i = 1; i <= grd_cldi.rows; i++) {
  601. if (model.getValue("/root/main/list2/cldilist/cldi[ " + i + "]/fromchk") == "Y") {
  602. row++;
  603. model.makeValue("/root/send/save/cldi[" + row + "]/clamym",model.getValue("/root/main/list2/cldilist/cldi[" + i + "]/clamym"));
  604. model.makeValue("/root/send/save/cldi[" + row + "]/clamdg",model.getValue("/root/main/list2/cldilist/cldi[" + i + "]/clamdg"));
  605. model.makeValue("/root/send/save/cldi[" + row + "]/pid",model.getValue("/root/main/list2/cldilist/cldi[" + i + "]/pid"));
  606. model.makeValue("/root/send/save/cldi[" + row + "]/pidsn",model.getValue("/root/main/list2/cldilist/cldi[" + i + "]/pidsn"));
  607. model.makeValue("/root/send/save/cldi[" + row + "]/workflag",model.getValue("/root/main/list2/cldilist/cldi[" + i + "]/workflag"));
  608. model.makeValue("/root/send/save/cldi[" + row + "]/seqno",model.getValue("/root/main/list2/cldilist/cldi[" + i + "]/seqno"));
  609. }
  610. }
  611. if ( row > 0 ) {
  612. model.makeNode("/root/send/updatedata/cldi");
  613. model.setValue("/root/send/updatedata/cldi", getNodeListCSV(instance1.selectNodes("/root/send/save/cldi")) );
  614. }
  615. // clop
  616. row = 0;
  617. for ( i = 1; i <= grd_clop.rows; i++) {
  618. if (model.getValue("/root/main/list2/cloplist/clop[ " + i + "]/fromchk") == "Y") {
  619. row++;
  620. model.makeValue("/root/send/save/clop[" + row + "]/clamym",model.getValue("/root/main/list2/cloplist/clop[" + i + "]/clamym"));
  621. model.makeValue("/root/send/save/clop[" + row + "]/clamdg",model.getValue("/root/main/list2/cloplist/clop[" + i + "]/clamdg"));
  622. model.makeValue("/root/send/save/clop[" + row + "]/pid",model.getValue("/root/main/list2/cloplist/clop[" + i + "]/pid"));
  623. model.makeValue("/root/send/save/clop[" + row + "]/pidsn",model.getValue("/root/main/list2/cloplist/clop[" + i + "]/pidsn"));
  624. model.makeValue("/root/send/save/clop[" + row + "]/workflag",model.getValue("/root/main/list2/cloplist/clop[" + i + "]/workflag"));
  625. model.makeValue("/root/send/save/clop[" + row + "]/seqno",model.getValue("/root/main/list2/cloplist/clop[" + i + "]/seqno"));
  626. }
  627. }
  628. if ( row > 0 ) {
  629. model.makeNode("/root/send/updatedata/clop");
  630. model.setValue("/root/send/updatedata/clop", getNodeListCSV(instance1.selectNodes("/root/send/save/clop")) );
  631. }
  632. // clod
  633. row = 0;
  634. for ( i = 1; i <= grd_clod.rows; i++) {
  635. if (model.getValue("/root/main/list2/clodlist/clod[ " + i + "]/fromchk") == "Y") {
  636. row++;
  637. model.makeValue("/root/send/save/clod[" + row + "]/clamym",model.getValue("/root/main/list2/clodlist/clod[" + i + "]/clamym"));
  638. model.makeValue("/root/send/save/clod[" + row + "]/clamdg",model.getValue("/root/main/list2/clodlist/clod[" + i + "]/clamdg"));
  639. model.makeValue("/root/send/save/clod[" + row + "]/pid",model.getValue("/root/main/list2/clodlist/clod[" + i + "]/pid"));
  640. model.makeValue("/root/send/save/clod[" + row + "]/pidsn",model.getValue("/root/main/list2/clodlist/clod[" + i + "]/pidsn"));
  641. model.makeValue("/root/send/save/clod[" + row + "]/workflag",model.getValue("/root/main/list2/clodlist/clod[" + i + "]/workflag"));
  642. model.makeValue("/root/send/save/clod[" + row + "]/seqno",model.getValue("/root/main/list2/clodlist/clod[" + i + "]/seqno"));
  643. }
  644. }
  645. if ( row > 0 ) {
  646. model.makeNode("/root/send/updatedata/clod");
  647. model.setValue("/root/send/updatedata/clod", getNodeListCSV(instance1.selectNodes("/root/send/save/clod")) );
  648. }
  649. if ( !submit("TXPID20602") ) { return false; }
  650. return true;
  651. }
  652. ]]>
  653. </script>
  654. </xhtml:head>
  655. <xhtml:body pagewidth="1162" pageheight="670" guideline="1,1144;2,727;2,739;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  656. <group id="grp_tle" style="left:0px; top:0px; width:1146px; height:13px; ">
  657. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:195px; height:13px; ">명세서 처방,상병 이동/복사</caption>
  658. </group>
  659. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1146px; height:637px; ">
  660. <caption id="cap_judgtrgtman" class="tit_2" style="left:5px; top:77px; width:230px; height:13px; ">이동/복사 대상 명세서 선택 (TO)</caption>
  661. <line id="line1" class="line_1" style="x1:0px; y1:92px; x2:1145px; y2:92px; "/>
  662. <group id="group1" style="left:0px; top:4px; width:365px; height:58px; vertical-align:top; ">
  663. <shape id="roundrect2" appearance="roundrect" style="left:0px; top:0px; width:365px; height:58px; "/>
  664. <caption id="caption4" class="search_name" style="left:75px; top:7px; width:85px; height:17px; ">청구년월</caption>
  665. <input id="input2" ref="/root/send/initparam/clamym" disabled="true" style="left:155px; top:6px; width:65px; height:19px; text-align:center; "/>
  666. <input id="input3" ref="/root/send/initparam/clamdg" disabled="true" style="left:225px; top:6px; width:40px; height:19px; text-align:center; "/>
  667. <caption id="caption5" class="search_name" style="left:75px; top:32px; width:85px; height:17px; ">등록번호</caption>
  668. <input id="input4" ref="/root/send/initparam/pid" disabled="true" style="left:155px; top:31px; width:80px; height:19px; text-align:center; "/>
  669. <input id="input5" ref="/root/send/initparam/patnm" disabled="true" style="left:270px; top:31px; width:80px; height:19px; text-align:center; "/>
  670. <caption id="caption6" class="tit_2" style="left:10px; top:10px; width:60px; height:13px; ">FROM</caption>
  671. <input id="input6" ref="/root/send/initparam/pidsn" disabled="true" style="left:240px; top:31px; width:25px; height:19px; text-align:center; "/>
  672. </group>
  673. <group id="group2" style="left:372px; top:4px; width:770px; height:58px; vertical-align:top; ">
  674. <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:770px; height:58px; "/>
  675. <caption id="caption30" class="search_name" style="left:60px; top:7px; width:85px; height:17px; ">청구년월</caption>
  676. <input id="ipt_clamym" ref="/root/send/item1/clamym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:141px; top:6px; width:69px; height:19px; text-align:center; ">
  677. <script type="javascript" ev:event="xforms-value-changed">
  678. <![CDATA[
  679. pidfGetClamdg();
  680. ]]>
  681. </script>
  682. </input>
  683. <caption id="caption32" class="search_name" style="left:292px; top:8px; width:86px; height:17px; ">보험유형</caption>
  684. <select1 id="cmb_insukind" ref="/root/send/item1/insukind" class="combo_search" navindex="9" appearance="minimal" style="left:372px; top:7px; width:125px; height:19px; ">
  685. <choices>
  686. <itemset nodeset="/root/init/P0008list/P0008">
  687. <label ref="cdnm"/>
  688. <value ref="cdid"/>
  689. </itemset>
  690. </choices>
  691. </select1>
  692. <!-- 기존 : /root/InitData2/comccodem => P0287 확인해볼 것 -->
  693. <button id="btn_select" class="btn1_letter2" navindex="32" style="left:705px; top:18px; width:56px; height:22px; ">
  694. <caption>조회</caption>
  695. <script type="javascript" ev:event="onclick">
  696. <![CDATA[
  697. fGetDocuList();
  698. ]]>
  699. </script>
  700. </button>
  701. <select1 id="cmb_clamdg" ref="/root/send/item1/clamdg" appearance="minimal" style="left:215px; top:6px; width:51px; height:19px; ">
  702. <choices>
  703. <itemset nodeset="/root/init/clamdg/clamdglist">
  704. <label ref="clamdgnm"/>
  705. <value ref="clamdgcd"/>
  706. </itemset>
  707. </choices>
  708. </select1>
  709. <caption id="caption1" class="search_name" style="left:515px; top:8px; width:80px; height:17px; ">내원형태</caption>
  710. <select1 id="cmb_ioflag" ref="/root/send/item1/ioflag" class="combo_search" navindex="3" appearance="minimal" style="left:596px; top:8px; width:77px; height:19px; ">
  711. <choices>
  712. <itemset nodeset="/root/init/IOFLAGlist/ioflag">
  713. <label ref="cdnm"/>
  714. <value ref="cdid"/>
  715. </itemset>
  716. </choices>
  717. <script type="javascript" ev:event="xforms-value-changed">
  718. <![CDATA[
  719. pidfGetClamdg();
  720. ]]>
  721. </script>
  722. </select1>
  723. <line id="line3" class="line_4" style="x1:695px; y1:5px; x2:695px; y2:51px; "/>
  724. <caption id="caption7" class="tit_2" style="left:10px; top:10px; width:45px; height:13px; ">TO</caption>
  725. <caption id="caption2" class="search_name" style="left:60px; top:35px; width:80px; height:17px; ">진료과</caption>
  726. <select1 id="cmb_orddeptcd" ref="/root/send/item1/orddeptcd" class="combo_search" navindex="3" appearance="minimal" style="left:141px; top:34px; width:125px; height:19px; ">
  727. <choices>
  728. <itemset nodeset="/root/init/orddeptcd2/orddeptcdlist">
  729. <label ref="nm"/>
  730. <value ref="cd"/>
  731. </itemset>
  732. </choices>
  733. </select1>
  734. <caption id="caption8" class="search_name" style="left:292px; top:34px; width:86px; height:17px; ">보조유형</caption>
  735. <select1 id="cmb_suppkind" ref="/root/send/item1/suppkind" class="combo_search" navindex="9" appearance="minimal" style="left:372px; top:33px; width:125px; height:19px; ">
  736. <choices>
  737. <itemset nodeset="/root/init/P0010list/P0010">
  738. <label ref="cdnm"/>
  739. <value ref="cdid"/>
  740. </itemset>
  741. </choices>
  742. </select1>
  743. </group>
  744. <button id="btn_cancel" class="btn4_letter2" style="left:1088px; top:70px; width:56px; height:22px; ">
  745. <caption>종료</caption>
  746. <close ev:event="DOMActivate"/>
  747. </button>
  748. <button id="btn_init" class="btn4_letter3" style="left:1016px; top:70px; width:68px; height:22px; ">
  749. <caption>초기화</caption>
  750. <script type="javascript" ev:event="DOMActivate">
  751. <![CDATA[
  752. fInitialize(); // 초기화
  753. ]]>
  754. </script>
  755. </button>
  756. <button id="btn_copy" class="btn4_letter2" style="left:1087px; top:283px; width:56px; height:22px; ">
  757. <caption>이동</caption>
  758. <script type="javascript" ev:event="onclick">
  759. <![CDATA[
  760. // 작업전 유효성 검사
  761. if ( fValidcheck() == false ) {
  762. return;
  763. }
  764. // 실제저장
  765. if ( fSetDocuMake() == false ) {
  766. messageBox("작업오류","");
  767. return;
  768. }
  769. //저장이 완료되면 처방이동상태 확인위해 처방다시 조회
  770. fGetClodList();
  771. model.refresh();
  772. messageBox("요청 작업이","I001");
  773. ]]>
  774. </script>
  775. </button>
  776. <caption id="caption3" class="tit_2" style="left:5px; top:292px; width:170px; height:13px; ">상병,처방 선택 (FROM)</caption>
  777. <line id="line2" class="line_1" style="x1:0px; y1:307px; x2:1145px; y2:307px; "/>
  778. <datagrid id="grd_clbsmast" nodeset="/root/main/list1/clbs" class="datagrid2" caption="FR&#xA;OM^TO^입외&#xA;구분^명일련^청구년월^차수^청구구분^등록번호^등록번호^환자명^보험&#xA;유형^보조&#xA;유형^진료개시일^진료종료일^진료과^진료의^심사상태^청구상태^잠금" colsep="^" colwidth="31, 30, 45, 52, 68, 36, 95, 69, 26, 69, 30, 31, 74, 77, 117, 68, 80, 87, 35" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:96px; width:1145px; height:184px; ">
  779. <col checkvalue="Y,N" disabled="true" ref="fromchk" type="checkbox"/>
  780. <col checkvalue="Y,N" ref="tochk" type="checkbox"/>
  781. <col disabled="true" ref="ioflag" type="combo" style="left:81px; top:32px; width:35px; height:23px; text-align:center; ">
  782. <choices>
  783. <itemset nodeset="/root/init/IOFLAGlist/ioflag">
  784. <label ref="cdnm"/>
  785. <value ref="cdid"/>
  786. </itemset>
  787. </choices>
  788. </col>
  789. <col ref="docuseqno" style="text-align:center; "/>
  790. <col disabled="true" ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  791. <col disabled="true" ref="clamdg" style="text-align:center; "/>
  792. <col disabled="true" ref="clamflagcd" type="combo" style="text-align:center; ">
  793. <choices>
  794. <itemset nodeset="/root/init/P0155list/P0155">
  795. <label ref="cdnm"/>
  796. <value ref="cdid"/>
  797. </itemset>
  798. </choices>
  799. </col>
  800. <col ref="pid" style="text-align:center; "/>
  801. <col ref="pidsn" style="text-align:center; "/>
  802. <col ref="patnm" style="left:332px; top:32px; width:53px; height:23px; text-align:center; "/>
  803. <col ref="insukind" type="output" style="text-align:center; "/>
  804. <col ref="suppkind" type="output" style="text-align:center; "/>
  805. <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  806. <col ref="ordtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  807. <col disabled="true" ref="orddeptcd" type="combo" style="text-align:center; ">
  808. <choices>
  809. <itemset nodeset="/root/init/orddeptcd2/orddeptcdlist">
  810. <label ref="nm"/>
  811. <value ref="cd"/>
  812. </itemset>
  813. </choices>
  814. </col>
  815. <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
  816. <choices>
  817. <itemset nodeset="/root/init/orddrid2/orddridlist">
  818. <label ref="nm"/>
  819. <value ref="cd"/>
  820. </itemset>
  821. </choices>
  822. </col>
  823. <col disabled="true" ref="judgendyn" type="combo" style="text-align:center; ">
  824. <choices>
  825. <itemset nodeset="/root/init/P0151list/P0151">
  826. <label ref="cdnm"/>
  827. <value ref="cdid"/>
  828. </itemset>
  829. </choices>
  830. </col>
  831. <col disabled="true" ref="clamendyn" type="combo" style="text-align:center; ">
  832. <choices>
  833. <itemset nodeset="/root/init/P0430list/P0430">
  834. <label ref="cdnm"/>
  835. <value ref="cdid"/>
  836. </itemset>
  837. </choices>
  838. </col>
  839. <col ref="lockyn" style="text-align:center; "/>
  840. <script type="javascript" ev:event="xforms-value-changed">
  841. <![CDATA[
  842. var icol = grd_clbsmast.col;
  843. var i;
  844. var itocnt = 0;
  845. if (icol == grd_clbsmast.colRef("tochk")) {
  846. for ( i = 1; i <= grd_clbsmast.rows; i++) {
  847. if (model.getValue("/root/main/list1/clbs[ " + i + "]/tochk") == "Y") {
  848. itocnt++;
  849. if (itocnt > 1) {
  850. messageBox("수신(TO) 명세서를 하나만", "C002"); ///C002=선택하십시오 !
  851. model.setValue("/root/main/list1/clbs[ " + i + "]/tochk", "N");
  852. return;
  853. }
  854. if (model.getValue("/root/main/list1/clbs[ " + i + "]/fromchk") == "Y") {
  855. messageBox("송수신명세서를 동시에 선택", "E001"); ///E001=할 수 없습니다.
  856. model.setValue("/root/main/list1/clbs[ " + i + "]/tochk", "N");
  857. return;
  858. }
  859. if (model.getValue("/root/main/list1/clbs[ " + i + "]/lockyn") == "Y") {
  860. messageBox("잠금설정된 명세서는 선택", "E001"); ///E001=할 수 없습니다.
  861. model.setValue("/root/main/list1/clbs[ " + i + "]/tochk", "N");
  862. return;
  863. }
  864. }
  865. }
  866. }
  867. ]]>
  868. </script>
  869. </datagrid>
  870. <caption id="caption9" class="search_name" style="left:7px; top:312px; width:85px; height:17px; ">상병</caption>
  871. <datagrid id="grd_cldi" nodeset="/root/main/list2/cldilist/cldi" scroll="auto" caption="선택^R/O^순번^상병코드^상병명^진료개시일" colsep="^" colwidth="30, 31, 30, 62, 253, 70, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" frozencols="1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:330px; width:480px; height:134px; ">
  872. <col checkvalue="Y,N" ref="fromchk" type="checkbox"/>
  873. <col ref="diagkindcd" type="combo" style="text-align:center; "/>
  874. <choices>
  875. <item>
  876. <label>R</label>
  877. <value>R</value>
  878. </item>
  879. </choices>
  880. <col ref="diagseq" style="text-align:center; "/>
  881. <col ref="diagcd" style="text-align:center; "/>
  882. <col ref="diagnm"/>
  883. <col ref="ordfromdd" style="text-align:center; "/>
  884. <col ref="clamym" visibility="hidden"/>
  885. <col ref="clamdg" visibility="hidden"/>
  886. <col ref="pid" visibility="hidden"/>
  887. <col ref="pidsn" visibility="hidden"/>
  888. <col ref="workflag" visibility="hidden"/>
  889. <col ref="seqno" visibility="hidden"/>
  890. <script type="javascript" ev:event="DOMFocusOut">
  891. <![CDATA[
  892. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  893. ]]>
  894. </script>
  895. <script type="javascript" ev:event="onmousedown">
  896. <![CDATA[
  897. if (event.button == 3) { // 3 : 오른쪽 버튼
  898. if (grd_cldi.isCell(event.target) && grd_cldi.mouseRow >= grd_cldi.fixedrows) {
  899. setPopupMenu("grd_cldi", false, "/root/hidden/popupmenu/gridcldi/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  900. }
  901. }
  902. ]]>
  903. </script>
  904. </datagrid>
  905. <caption id="caption10" class="search_name" style="left:7px; top:467px; width:85px; height:17px; ">원외처방</caption>
  906. <datagrid id="grd_clop" nodeset="/root/main/list2/cloplist/clop" scroll="auto" caption="선택^투약번호^줄^수가코드^EDI코드^한글명^1회량^횟수^일수" colsep="^" colwidth="30, 94, 27, 76, 68, 149, 44, 37, 37, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" frozencols="3" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:486px; width:480px; height:144px; ">
  907. <col checkvalue="Y,N" ref="fromchk" type="checkbox"/>
  908. <col ref="mpsno" style="text-align:center; "/>
  909. <col ref="edilnno" style="text-align:center; "/>
  910. <col ref="snglcalcscorcd"/>
  911. <col ref="edicd" style="text-align:center; "/>
  912. <col ref="hngnm"/>
  913. <col ref="edidrugqty" style="text-align:center; "/>
  914. <col ref="drugtims" style="text-align:center; "/>
  915. <col ref="edidrugdayno" style="text-align:center; "/>
  916. <col ref="clamym" visibility="hidden"/>
  917. <col ref="clamdg" visibility="hidden"/>
  918. <col ref="pid" visibility="hidden"/>
  919. <col ref="pidsn" visibility="hidden"/>
  920. <col ref="workflag" visibility="hidden"/>
  921. <col ref="seqno" visibility="hidden"/>
  922. <script type="javascript" ev:event="DOMFocusOut">
  923. <![CDATA[
  924. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  925. ]]>
  926. </script>
  927. <script type="javascript" ev:event="onmousedown">
  928. <![CDATA[
  929. if (event.button == 3) { // 3 : 오른쪽 버튼
  930. if (grd_clop.isCell(event.target) && grd_clop.mouseRow >= grd_clop.fixedrows) {
  931. setPopupMenu("grd_clop", false, "/root/hidden/popupmenu/gridclop/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  932. }
  933. }
  934. ]]>
  935. </script>
  936. </datagrid>
  937. <caption id="caption11" class="search_name" style="left:485px; top:313px; width:85px; height:17px; ">처방</caption>
  938. <datagrid id="grd_clod" nodeset="/root/main/list2/clodlist/clod" caption="선택^줄^항^목^G^그룹코드^수가코드^한글명^1회량^횟수^일수^금액^EDI코드^개시일" colsep="^" colwidth="31, 35, 22, 22, 19, 84, 72, 200, 39, 30, 31, 70, 79, 82, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" frozencols="2" mergecellsfixedrows="bycolrec" rowsep="|" style="left:481px; top:330px; width:663px; height:300px; ">
  939. <col checkvalue="Y,N" ref="fromchk" type="checkbox"/>
  940. <col ref="edilnno" style="text-align:center; "/>
  941. <col ref="ediitem1" style="text-align:center; "/>
  942. <col ref="ediitem2" style="text-align:center; "/>
  943. <col ref="groupyn" style="text-align:center; "/>
  944. <col ref="grupcalcscorcd"/>
  945. <col ref="snglcalcscorcd"/>
  946. <col ref="hngnm"/>
  947. <col ref="edidrugqty" style="text-align:center; "/>
  948. <col ref="tims" style="text-align:center; "/>
  949. <col ref="edidayno" style="text-align:center; "/>
  950. <col ref="ediamt" format="#,###" style="text-align:right; "/>
  951. <col ref="edicd"/>
  952. <col ref="ordfromdd" style="text-align:center; "/>
  953. <col ref="clamym" visibility="hidden"/>
  954. <col ref="clamdg" visibility="hidden"/>
  955. <col ref="pid" visibility="hidden"/>
  956. <col ref="pidsn" visibility="hidden"/>
  957. <col ref="workflag" visibility="hidden"/>
  958. <col ref="seqno" visibility="hidden"/>
  959. <script type="javascript" ev:event="DOMFocusOut">
  960. <![CDATA[
  961. initPopupMenu(); // (tfHelper.js) 사용자 팝업 설정 초기화
  962. ]]>
  963. </script>
  964. <script type="javascript" ev:event="onmousedown">
  965. <![CDATA[
  966. if (event.button == 3) { // 3 : 오른쪽 버튼
  967. if (grd_clod.isCell(event.target) && grd_clod.mouseRow >= grd_clod.fixedrows) {
  968. setPopupMenu("grd_clod", false, "/root/hidden/popupmenu/gridclod/item", "name", "func"); // (tfHelper.js) 컨트롤에서 사용자 팝업 설정 함수
  969. }
  970. }
  971. ]]>
  972. </script>
  973. </datagrid>
  974. <shape id="roundrect4" appearance="roundrect" style="left:975px; top:281px; width:108px; height:24px; "/>
  975. <select1 id="rdo_jobflag" ref="/root/send/item1/jobflag" appearance="full" cols="4" _auth="X" overflow="visible" style="left:985px; top:285px; width:90px; height:17px; border-style:none; ">
  976. <choices>
  977. <item>
  978. <label>이동</label>
  979. <value>M</value>
  980. </item>
  981. <item>
  982. <label>복사</label>
  983. <value>C</value>
  984. </item>
  985. </choices>
  986. <script type="javascript" ev:event="xforms-value-changed">
  987. <![CDATA[
  988. if ( model.getValue("/root/send/item1/jobflag") == "M" ) {
  989. btn_copy.value = "이동";
  990. } else {
  991. btn_copy.value = "복사";
  992. }
  993. ]]>
  994. </script>
  995. </select1>
  996. <button id="btn_cldi_check" class="btn2_letter2" _auth="R" style="left:385px; top:311px; width:42px; height:19px; ">
  997. <caption>선택</caption>
  998. <script type="javascript" ev:event="onclick">
  999. <![CDATA[
  1000. fSetGridCheckYN("CLDI","Y");
  1001. ]]>
  1002. </script>
  1003. </button>
  1004. <button id="btn_cldi_nocheck" class="btn2_letter2" _auth="R" style="left:429px; top:311px; width:42px; height:19px; ">
  1005. <caption>취소</caption>
  1006. <script type="javascript" ev:event="onclick">
  1007. <![CDATA[
  1008. fSetGridCheckYN("CLDI","N");
  1009. ]]>
  1010. </script>
  1011. </button>
  1012. <button id="btn_clop_check" class="btn2_letter2" _auth="R" style="left:385px; top:467px; width:42px; height:19px; ">
  1013. <caption>선택</caption>
  1014. <script type="javascript" ev:event="onclick">
  1015. <![CDATA[
  1016. fSetGridCheckYN("CLOP","Y");
  1017. ]]>
  1018. </script>
  1019. </button>
  1020. <button id="btn_clop_nocheck" class="btn2_letter2" _auth="R" style="left:429px; top:467px; width:42px; height:19px; ">
  1021. <caption>취소</caption>
  1022. <script type="javascript" ev:event="onclick">
  1023. <![CDATA[
  1024. fSetGridCheckYN("CLOP","N");
  1025. ]]>
  1026. </script>
  1027. </button>
  1028. <button id="btn_clod_check" class="btn2_letter2" _auth="R" style="left:1050px; top:311px; width:42px; height:19px; ">
  1029. <caption>선택</caption>
  1030. <script type="javascript" ev:event="onclick">
  1031. <![CDATA[
  1032. fSetGridCheckYN("CLOD","Y");
  1033. ]]>
  1034. </script>
  1035. </button>
  1036. <button id="btn_clod_nocheck" class="btn2_letter2" _auth="R" style="left:1094px; top:311px; width:42px; height:19px; ">
  1037. <caption>취소</caption>
  1038. <script type="javascript" ev:event="onclick">
  1039. <![CDATA[
  1040. fSetGridCheckYN("CLOD","N");
  1041. ]]>
  1042. </script>
  1043. </button>
  1044. <caption id="caption14" class="tit_2" style="left:245px; top:76px; width:440px; height:13px; color:#0000ff; ">기본정보가 틀린경우 진료과, 진료개시일의 정보는 변경될수 있습니다.</caption>
  1045. <caption id="caption12" class="tit_2" style="left:65px; top:314px; width:315px; height:13px; color:#0000ff; ">상병은 이동시에도 원데이타가 삭제되지 않습니다.</caption>
  1046. <select id="chk_mclsp" ref="/root/send/item1/mclspyn" overflow="visible" appearance="full" style="left:465px; top:288px; width:160px; height:17px; border-style:none; ">
  1047. <choices>
  1048. <item>
  1049. <label>명세서단위 특정내역 포함</label>
  1050. <value>Y</value>
  1051. </item>
  1052. </choices>
  1053. </select>
  1054. <select id="chk_mx999" ref="/root/send/item1/mx999yn" overflow="visible" appearance="full" style="left:635px; top:288px; width:95px; height:17px; border-style:none; ">
  1055. <choices>
  1056. <item>
  1057. <label>청구메모 포함</label>
  1058. <value>Y</value>
  1059. </item>
  1060. </choices>
  1061. </select>
  1062. <caption id="caption13" class="tit_2" style="left:540px; top:314px; width:315px; height:13px; color:#0000ff; ">처방작업후에는 명세서는 미심으로 변경됩니다.</caption>
  1063. <caption id="caption15" class="tit_2" style="left:190px; top:290px; width:270px; height:13px; color:#0000ff; ">명세서단위 특정내역 중복 제외되지 않음</caption>
  1064. <select1 id="cmb_adjtresncd" ref="/root/send/item1/adjtresncd" class="combo_default" appearance="minimal" showvalue="true" _auth="R" style="left:826px; top:285px; width:134px; height:19px; ">
  1065. <choices>
  1066. <itemset nodeset="/root/init/P0127list/P0127">
  1067. <label ref="cdnm"/>
  1068. <value ref="cdid"/>
  1069. </itemset>
  1070. </choices>
  1071. <hint>
  1072. <![CDATA[심사조정사유]]>
  1073. </hint>
  1074. </select1>
  1075. <caption id="caption16" class="search_name" style="left:745px; top:286px; width:78px; height:17px; ">조정사유</caption>
  1076. </group>
  1077. </xhtml:body>
  1078. </xhtml:html>