SMLPS00600_세포조직진단비교.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPS00600_세포조직진단비교.xrw
  4. * 설 명 : 세포조직진단비교 화면
  5. * 설 계 자 : (주)에이씨케이 - 유동철
  6. * 작 성 자 : (주)에이씨케이 - 유동철
  7. * 작 성 일 : 2007.11.05
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  13. <xhtml:head>
  14. <xhtml:title>세포/조직 진단비교</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <statstinfo>
  20. <statsinfolist>
  21. <instcd/>
  22. <pid/>
  23. <patnm/>
  24. <sptno/>
  25. <sdispptno/>
  26. <sdiagcnts/>
  27. <readgrade/>
  28. <jptno/>
  29. <jdispptno/>
  30. <jdiagcnts/>
  31. <mptno/>
  32. <mdispptno/>
  33. <mdiagcnts/>
  34. <sepojudg/>
  35. </statsinfolist>
  36. </statstinfo>
  37. </main>
  38. <send/>
  39. <init>
  40. <sysdt>
  41. <sysdtinfo>
  42. <sysdd/>
  43. <systm/>
  44. </sysdtinfo>
  45. </sysdt>
  46. <ptnocd>
  47. <ptnocdlist>
  48. <instcd/>
  49. <ptnocd/>
  50. <ptnonm/>
  51. </ptnocdlist>
  52. </ptnocd>
  53. <ptnocode/>
  54. <fromyear/>
  55. <fromptno/>
  56. <toyear/>
  57. <toptno/>
  58. <refmthdcd/>
  59. <refval/>
  60. <acptfromdd/>
  61. <acpttodd/>
  62. <statscondcd/>
  63. </init>
  64. <hidden>
  65. <dispcondcd/>
  66. <testflagcd/>
  67. <statsworkflagcd/>
  68. </hidden>
  69. <message/>
  70. </root>
  71. </instance>
  72. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  75. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. fExeInitialize();
  79. ]]>
  80. </script>
  81. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  82. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  83. <submission id="TRLPS00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/statstinfo/statsinfolist"/>
  84. </model>
  85. <script type="javascript">
  86. <![CDATA[
  87. /* @group : 세포조직진단비교 화면
  88. * @ver : 2007.11.05 (CMCDEV-0001)
  89. * @by : 유동철(ACK)
  90. * @-----------------------------------
  91. * @type : function
  92. * @access : public
  93. * @desc : 화면초기화 함수
  94. */
  95. function fExeInitialize() {
  96. var sCurDate = "";
  97. //---------------------------------------------------------
  98. model.removeNodeset("/root/main/statstinfo/statsinfolist");
  99. //----------------
  100. // 시스템일자 조회
  101. model.removeNodeset("/root/send");
  102. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  103. submit("TRLPZ00102", false);
  104. submit("TRLPZ00109");
  105. //------------
  106. // 초기값 설정
  107. sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  108. model.makeValue("/root/init/ptnocode", ""); // 검색값
  109. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
  110. model.makeValue("/root/init/toyear", sCurDate.substr(2,2));
  111. model.makeValue("/root/init/fromptno", "");
  112. model.makeValue("/root/init/toptno", "");
  113. model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(From)
  114. model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd")); // 접수일자(To)
  115. model.makeValue("/root/init/refmthdcd", "1"); // 등록번호
  116. model.makeValue("/root/init/refval", "");
  117. model.makeValue("/root/init/statscondcd", "0");
  118. model.setFocus("ipt_refval");
  119. //--------------
  120. model.refresh();
  121. }
  122. /* @group : 세포조직진단비교 화면
  123. * @ver : 2007.11.05 (CMCDEV-0001)
  124. * @by : 유동철(ACK)
  125. * @-----------------------------------
  126. * @type : function
  127. * @access : public
  128. * @desc : 세포/조직 진단비교 조회 처리 함수
  129. */
  130. function fGetStatsInfoList() {
  131. var sTemp = "";
  132. var sFromDD = model.getValue("/root/init/acptfromdd");
  133. var sToDD = model.getValue("/root/init/acpttodd");
  134. //------------------------------------------------
  135. if (model.getValue("/root/init/ptnocode") != "") {
  136. //------------------------------------------------
  137. if (model.getValue("/root/init/fromyear") == "") {
  138. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  139. } else {
  140. sTemp = model.getValue("/root/init/fromyear");
  141. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  142. }
  143. //----------------------------------------------
  144. if (model.getValue("/root/init/toyear") == "") {
  145. model.makeValue("/root/init/toyear", sToDD.substr(2,2));
  146. } else {
  147. sTemp = model.getValue("/root/init/toyear");
  148. model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
  149. }
  150. //------------------------------------------------
  151. if (model.getValue("/root/init/fromptno") == "") {
  152. model.makeValue("/root/init/fromptno", "000000");
  153. } else {
  154. sTemp = model.getValue("/root/init/fromptno");
  155. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  156. }
  157. //----------------------------------------------
  158. if (model.getValue("/root/init/toptno") == "") {
  159. model.makeValue("/root/init/toptno", "999999");
  160. } else {
  161. sTemp = model.getValue("/root/init/toptno");
  162. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  163. }
  164. }
  165. //--------------------------------------------
  166. sTemp = model.getValue("/root/init/ptnocode");
  167. model.removeNodeset("/root/send");
  168. model.removeNodeset("/root/main/statstinfo/statsinfolist");
  169. //--------------------------------------------------------------------------
  170. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  171. model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/acptfromdd"));
  172. model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd"));
  173. model.makeValue("/root/send/refmthdcd", model.getValue("/root/init/refmthdcd"));
  174. model.makeValue("/root/send/refval", model.getValue("/root/init/refval"));
  175. model.makeValue("/root/send/statscondcd", model.getValue("/root/init/statscondcd"));
  176. model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  177. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  178. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  179. model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
  180. model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  181. //-------------------
  182. submit("TRLPS00601");
  183. }
  184. /* @group : 세포조직진단비교
  185. * @ver : 2007.11.05 (CMCDEV-0001)
  186. * @by : 유동철(ACK)
  187. * @-----------------------------------
  188. * @type : function
  189. * @access : public
  190. * @desc : 세포조직진단비교 Excel저장 처리 Function
  191. */
  192. function fExeSaveToExcel() {
  193. grd_statsinfolist.saveExcel("C:\\SMLPS00600_세포조직진단비교.xls", "세포조직진단비교", false, false);
  194. messageBox("C:\\SMLPS00600_세포조직진단비교.xls 파일 생성이 ", "I002");
  195. }
  196. /* @group : 세포조직진단비교
  197. * @ver : 2007.11.05 (CMCDEV-0001)
  198. * @by : 유동철(ACK)
  199. * @-----------------------------------
  200. * @type : function
  201. * @access : public
  202. * @desc : 등록번호 입력값 처리 Function
  203. */
  204. function fExeRefValKeyPress() {
  205. if (event.keyCode == 13) {
  206. model.makeValue("/root/init/refval", ipt_refval.currentText);
  207. ipt_refval.refresh();
  208. //------------------
  209. fGetStatsInfoList();
  210. }
  211. }
  212. ]]>
  213. </script>
  214. </xhtml:head>
  215. <xhtml:body>
  216. <group id="grp_btn" style="left:0px; top:13; width:1195px; height:27px; ">
  217. <line id="line10" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  218. <button id="btn_excel" class="btn6_letter5" navindex="12" style="left:5px; top:3px; width:92px; height:22px; ">
  219. <caption>EXCEL저장</caption>
  220. <script type="javascript" ev:event="DOMActivate">
  221. <![CDATA[
  222. fExeSaveToExcel();
  223. ]]>
  224. </script>
  225. </button>
  226. </group>
  227. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  228. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:180px; height:14px; ">세포/조직 진단비교</caption>
  229. </group>
  230. <group id="grp_biz" style="left:0; top:40; width:1195; height:744; ">
  231. <caption id="caption4" class="tit_2" style="left:5px; top:55px; width:180px; height:14px; ">접수 검사/진료과 목록</caption>
  232. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  233. <datagrid id="grd_statsinfolist" nodeset="/root/main/statstinfo/statsinfolist" class="datagrid2" autoresize="true" caption="기관코드^등록번호^환자명^sptno^세포 &#xA;병리번호^세포진단^등급^jptno^조직 &#xA;병리번호^조직진단^mptno^분자 &#xA;병리번호^분자진단^판정" colsep="^" colwidth="0, 80, 80, 0, 90, 210, 40, 0, 90, 210, 0, 90, 210, 50" explorerbar="sortshow" rowheader="seq" rowsep="|" navindex="10" style="left:0px; top:75px; width:1194px; height:653px; ">
  234. <col ref="instcd"/>
  235. <col class="text_center" ref="pid"/>
  236. <col class="text_center" ref="patnm"/>
  237. <col class="text_center" ref="sptno"/>
  238. <col class="text_center" ref="sdispptno" format="#,###" mask="exclude" roundmode="round" showmask="true"/>
  239. <col class="text_center" ref="sdiagcnts"/>
  240. <col ref="readgrade"/>
  241. <col ref="jptno"/>
  242. <col class="text_center" ref="jdispptno"/>
  243. <col class="text_center" ref="jdiagcnts"/>
  244. <col ref="mptno"/>
  245. <col class="text_center" ref="mdispptno"/>
  246. <col class="text_center" ref="mdiagcnts"/>
  247. <col ref="sepojudg"/>
  248. <script type="javascript" ev:event="onaftersort">
  249. <![CDATA[
  250. grd_statsinfolist.gridToInstance();
  251. ]]>
  252. </script>
  253. </datagrid>
  254. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  255. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  256. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  257. <button id="btn_sea" class="btn1_letter2" navindex="11" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  258. <caption>조회</caption>
  259. <script type="javascript" ev:event="DOMActivate">
  260. <![CDATA[
  261. fGetStatsInfoList();
  262. ]]>
  263. </script>
  264. </button>
  265. <input id="ipt_cncltodd" ref="/root/init/acpttodd" class="input_s_essential" navindex="10" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:995px; top:8px; width:100px; height:19px; "/>
  266. <input id="ipt_cnclfromdd" ref="/root/init/acptfromdd" class="input_s_essential" navindex="9" inputtype="date" format="yyyy-mm-dd" mask="exclude" showmask="true" style="left:876px; top:8px; width:100px; height:19px; "/>
  267. <caption id="caption2" class="search_name" style="left:787px; top:9px; width:86px; height:17px; ">접수일자 :</caption>
  268. <caption id="caption5" class="search_no_b" style="left:979px; top:8px; width:12px; height:17px; ">~</caption>
  269. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="1" appearance="minimal" style="left:109px; top:7px; width:156px; height:19px; ">
  270. <choices>
  271. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  272. <label ref="ptnonm"/>
  273. <value ref="ptnocd"/>
  274. </itemset>
  275. </choices>
  276. </select1>
  277. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="3" maxlength="6" style="left:298px; top:7px; width:50px; height:19px; "/>
  278. <caption id="caption1" class="search_name" style="left:16px; top:8px; width:94px; height:17px; ">병리번호 :</caption>
  279. <caption id="caption3" class="search_no_b" style="left:351px; top:8px; width:12px; height:17px; ">~</caption>
  280. <input id="input1" ref="/root/init/toptno" class="text_center" navindex="5" maxlength="6" style="left:396px; top:7px; width:50px; height:19px; "/>
  281. <input id="input2" ref="/root/init/toyear" class="text_center" navindex="4" maxlength="2" style="left:366px; top:7px; width:27px; height:19px; "/>
  282. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="2" maxlength="2" style="left:268px; top:7px; width:27px; height:19px; "/>
  283. <input id="ipt_refval" ref="/root/init/refval" navindex="6" maxlength="10" style="left:618px; top:10px; width:95px; height:19px; ">
  284. <script type="javascript" ev:event="onkeypress">
  285. <![CDATA[
  286. fExeRefValKeyPress();
  287. ]]>
  288. </script>
  289. </input>
  290. <caption id="caption7" class="search_name" style="left:526px; top:11px; width:86px; height:17px; ">등록번호 :</caption>
  291. </group>
  292. </group>
  293. </xhtml:body>
  294. </xhtml:html>