SMABC01300_조혈모세포실세포폐기현황.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <cellabnprescond>
  11. <cellabnprescondlist>
  12. <abndd/>
  13. <scs/>
  14. <hngnm/>
  15. <pid/>
  16. <depthngnm/>
  17. <atdoctid/>
  18. <abnresn/>
  19. <abnid/>
  20. <cellbcno/>
  21. <keepdd/>
  22. </cellabnprescondlist>
  23. </cellabnprescond>
  24. </main>
  25. <send>
  26. <baseinfo>
  27. <prcpfromdd/>
  28. <prcptodd/>
  29. <orddeptcd/>
  30. <atdoctid/>
  31. <abnresn/>
  32. <scs/>
  33. <pid/>
  34. </baseinfo>
  35. <globalinstance>
  36. <instance1/>
  37. </globalinstance>
  38. </send>
  39. <init>
  40. <stemcellsource>
  41. <A0159>
  42. <cdid/>
  43. <cdnm/>
  44. </A0159>
  45. </stemcellsource>
  46. <abnresn>
  47. <A0155>
  48. <cdid/>
  49. <cdnm/>
  50. </A0155>
  51. </abnresn>
  52. </init>
  53. <hidden>
  54. <orddeptlist>
  55. <dept>
  56. <deptcd/>
  57. <depthngnm/>
  58. </dept>
  59. </orddeptlist>
  60. <userlist>
  61. <usercombo>
  62. <userid/>
  63. <usernm/>
  64. </usercombo>
  65. </userlist>
  66. </hidden>
  67. </root>
  68. </instance>
  69. <submission id="TRZBC00101"/>
  70. <submission id="TRABC01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/baseinfo" replace="instance" resultref="/root/main/cellabnprescond"/>
  71. <script type="javascript" ev:event="xforms-ready">
  72. <![CDATA[
  73. aezfSetSuppDeptcd();
  74. var instcd = "012";//getUserInfo("dutplceinstcd");
  75. var standard_yn = "orduseyn";
  76. var ord_deptflag = 'D';
  77. var rslt_ref = "/root/hidden/orddeptlist";
  78. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  79. zbcfGetCodeList( new Array("A0155", "A0159"),
  80. new Array("/root/init/abnresn", "/root/init/stemcellsource"));
  81. submit("TRABC01301", false);
  82. model.removeNodeset("/root/main/cellabnprescond/cellabnprescondlist");
  83. model.setValue("/root/send/baseinfo/prcpfromdd", getCurrentDate());
  84. model.setValue("/root/send/baseinfo/prcptodd", ipt_prcpfromdd.value);
  85. ipt_prcpfromdd.value = ipt_prcpfromdd.value.toDate().getAddDate(-7,"D").getDateFormat("YYYYMMDD") ;
  86. model.refresh();
  87. ]]>
  88. </script>
  89. <script type="javascript">
  90. <![CDATA[
  91. function readfunc(){
  92. if (datacheck() == false){
  93. return;
  94. }
  95. model.removeNodeset("/root/main/cellabnprescond/cellabnprescondlist");
  96. submit("TRABC01301");
  97. if (model.getValue("/root/main/cellabnprescond/cellabnprescondlist[" + 1 + "]/hngnm") == ""){
  98. model.removeNodeset("/root/main/cellabnprescond/cellabnprescondlist");
  99. }
  100. model.refresh();
  101. }
  102. function datacheck(){
  103. if (isDate(model.getValue("/root/send/baseinfo/prcpfromdd")) == false){
  104. messageBox("적용 시작일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  105. return false;
  106. }
  107. if (model.getValue("/root/send/baseinfo/prcpfromdd") == ""){
  108. messageBox("적용 시작일은 필수 입력 또는 선택 항목입니다.", "E999", "");
  109. return false;
  110. }
  111. if (isDate(model.getValue("/root/send/baseinfo/prcptodd")) == false){
  112. messageBox("적용 종료일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
  113. return false;
  114. }
  115. if (model.getValue("/root/send/baseinfo/prcptodd") == ""){
  116. messageBox("적용 종료일은 필수 입력 또는 선택 항목입니다.", "E999", "");
  117. return false;
  118. }
  119. if (model.getValue("/root/send/baseinfo/prcpfromdd") > model.getValue("/root/send/baseinfo/prcptodd")){
  120. messageBox("적용 기간일이 잘못 입력되었습니다.", "E999", "");
  121. return false;
  122. }
  123. return true;
  124. }
  125. function isDate(str) { // 날짜 형식에 대한 적합여부 체크
  126. if (str == "") return true; // 빈건 체크안함
  127. if (trim(str) == "") return true; // 빈건 체크안함
  128. if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
  129. if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
  130. var yy = new Number(str.substring(0, 4));
  131. var mm = new Number(str.substring(4, 6)) - 1;
  132. var dd = new Number(str.substring(6, 8));
  133. var date = new Date(yy, mm, dd);
  134. //alert(date.getFullYear() +"-" + (date.getMonth()+1) + "-" + date.getDate());
  135. if (yy != date.getFullYear() ||
  136. mm != date.getMonth() ||
  137. dd != date.getDate()) {
  138. return false; // 존재하지 않는 날짜
  139. }
  140. return true; // 존재하는 날짜
  141. }
  142. function trim(data){ // 문자에 대한 TRIM 작업
  143. return data.replace(/(^\s*)|(\s*$)/g, "");
  144. }
  145. ]]>
  146. </script>
  147. <submission id="TRZSU10105"/>
  148. <submission id="TRZSD00109"/>
  149. </model>
  150. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  153. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  154. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  155. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  156. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  157. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  158. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  159. </xhtml:head>
  160. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  161. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  162. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">조혈모세포폐기현황조회</caption>
  163. </group>
  164. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  165. <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:210px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">조혈모세포폐기현황</caption>
  166. <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1194px; y2:96px; "/>
  167. <datagrid id="grd_cellabnprescondlist" nodeset="/root/main/cellabnprescond/cellabnprescondlist" caption="폐기일자^Stem Cell Source^환자명^등록번호^진료과명^주치의^폐기사유^폐기자^바코드번호^보관일자^^7)^8)" colsep="^" colwidth="105, 144, 108, 100, 100, 100, 219, 108, 105, 100" dataheight="23" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:101px; width:1194px; height:600px; text-align:center; ">
  168. <col ref="abndd" format="yyyy-mm-dd"/>
  169. <col disabled="true" ref="scs" type="combo">
  170. <choices>
  171. <itemset nodeset="/root/init/stemcellsource/A0159">
  172. <label ref="cdnm"/>
  173. <value ref="cdid"/>
  174. </itemset>
  175. </choices>
  176. </col>
  177. <col ref="hngnm" type="output"/>
  178. <col ref="pid"/>
  179. <col ref="depthngnm"/>
  180. <col ref="atdoctid"/>
  181. <col disabled="true" ref="abnresn" type="combo">
  182. <choices>
  183. <itemset nodeset="/root/init/abnresn/A0155">
  184. <label ref="cdnm"/>
  185. <value ref="cdid"/>
  186. </itemset>
  187. </choices>
  188. </col>
  189. <col ref="abnid"/>
  190. <col ref="cellbcno"/>
  191. <col ref="keepdd" format="yyyy-mm-dd"/>
  192. <script type="javascript" ev:event="onaftersort">
  193. <![CDATA[
  194. grd_cellabnprescondlist.gridToInstance();
  195. ]]>
  196. </script>
  197. </datagrid>
  198. <button id="button2" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1130px; top:76px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  199. <caption>엑셀저장</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. var fileName = window.fileDialog("save", ",", false, "조혈모세포폐기현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  203. if (fileName != "")
  204. {
  205. grd_cellabnprescondlist.saveExcel(fileName);
  206. }
  207. ]]>
  208. </script>
  209. </button>
  210. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:61px; vertical-align:top; ">
  211. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  212. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:112px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">폐기일자 :</caption>
  213. <caption id="caption5" class="search_no_b" style="left:213px; top:10px; width:12px; height:17px; ">~</caption>
  214. <line id="line13" class="line_4" style="x1:1107px; y1:5px; x2:1107px; y2:51px; "/>
  215. <input id="input25" ref="/root/send/baseinfo/prcptodd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:228px; top:9px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  216. <caption id="caption3" class="search_name" style="left:363px; top:9px; width:73px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">진료과 :</caption>
  217. <select1 id="combo1" ref="/root/send/baseinfo/orddeptcd" class="combo_search" appearance="minimal" style="left:439px; top:8px; width:130px; height:19px; ">
  218. <choices>
  219. <itemset nodeset="/root/hidden/orddeptlist/dept">
  220. <label ref="depthngnm"/>
  221. <value ref="deptcd"/>
  222. </itemset>
  223. </choices>
  224. <script type="javascript" ev:event="xforms-value-changed">
  225. <![CDATA[
  226. var deptcd = model.getValue("/root/send/baseinfo/orddeptcd");
  227. var zsuResultRef = "/root/hidden/zsu/userlist";
  228. model.removenode(zsuResultRef);
  229. model.makenode(zsuResultRef);
  230. setParameter("deptcd", deptcd);
  231. setParameter("flag", "_D");
  232. submit("TRZSU10105", "false", getParameterPath(), zsuResultRef);
  233. model.copyNode("/root/hidden/userlist", "/root/hidden/zsu/userlist");
  234. model.refresh();
  235. ]]>
  236. </script>
  237. </select1>
  238. <select1 id="combo2" ref="/root/send/baseinfo/abnresn" class="combo_search" appearance="minimal" style="left:751px; top:8px; width:150px; height:19px; ">
  239. <choices>
  240. <itemset nodeset="/root/init/abnresn/A0155">
  241. <label ref="cdnm"/>
  242. <value ref="cdid"/>
  243. </itemset>
  244. </choices>
  245. </select1>
  246. <caption id="caption4" class="search_name" style="left:597px; top:9px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">폐기사유 :</caption>
  247. <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:20px; width:20px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  248. <caption>조회</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. readfunc() ;
  252. ]]>
  253. </script>
  254. </button>
  255. <select1 id="combo3" ref="/root/send/baseinfo/atdoctid" class="combo_search" appearance="minimal" style="left:439px; top:34px; width:130px; height:19px; ">
  256. <choices>
  257. <itemset nodeset="/root/hidden/userlist/usercombo">
  258. <label ref="usernm"/>
  259. <value ref="userid"/>
  260. </itemset>
  261. </choices>
  262. </select1>
  263. <caption id="caption7" class="search_name" style="left:363px; top:35px; width:73px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">주치의 :</caption>
  264. <caption id="caption9" class="search_name" style="left:597px; top:35px; width:151px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">Stem Cell Source :</caption>
  265. <select1 id="combo5" ref="/root/send/baseinfo/scs" class="combo_search" appearance="minimal" style="left:751px; top:35px; width:150px; height:19px; ">
  266. <choices>
  267. <itemset nodeset="/root/init/stemcellsource/A0159">
  268. <label ref="cdnm"/>
  269. <value ref="cdid"/>
  270. </itemset>
  271. </choices>
  272. </select1>
  273. <input id="ipt_prcpfromdd" ref="/root/send/baseinfo/prcpfromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:110px; top:9px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
  274. <caption id="caption16" class="search_name" style="left:15px; top:35px; width:101px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
  275. <input id="input6" ref="/root/send/baseinfo/pid" class="input_search" style="left:110px; top:34px; width:100px; height:19px; "/>
  276. </group>
  277. </group>
  278. <group id="grp_btn" style="left:0px; top:20px; width:1195px; height:27px; "/>
  279. </xhtml:body>
  280. </xhtml:html>