SMLBD02200_Apheresis업무.xfdl 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLBD02200" position="absolute 0 0 1200 800" titletext="Apheresis 업무" onload="SMLBD02200_onload" oninit="SMLBD02200_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Tab id="swt_apheresis" taborder="4" tabindex="0" position="absolute 0 27 1200 796" anchor="all" onchanged="swt_apheresis_onchanged">
  8. <Tabpages>
  9. <Tabpage id="case1" text="대상환자">
  10. <Layouts>
  11. <Layout>
  12. <Div id="grp" taborder="1" position="absolute 0 0 1200 35" class="div_SA2" anchor="left top right">
  13. <Layouts>
  14. <Layout width="1182" height="35">
  15. <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 1132 8 1188 28" anchor="default" onclick="swt_apheresis_case1_grp_btn_search_onclick"/>
  16. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1114 7 1120 29" anchor="default"/>
  17. <Static id="caption2" text="처방적용일자 :" class="search_name" position="absolute 14 8 117 28"/>
  18. <Calendar id="input4" taborder="7" autoselect="true" dateformat="yyyy-MM-dd" position="absolute 125 8 210 28"/>
  19. <Static id="caption3" text="~" position="absolute 215 8 230 28"/>
  20. <Calendar id="input3" taborder="8" autoselect="true" dateformat="yyyy-MM-dd" position="absolute 227 8 312 28"/>
  21. <Static id="caption6" text="시술종류:" class="search_name" position="absolute 366 8 445 28"/>
  22. <Combo id="cmb_testkind" taborder="9" position="absolute 455 8 616 28" innerdataset="ds_UC00002" codecolumn="cdid" datacolumn="cdnm" onitemchanged="swt_apheresis_case1_grp_cmb_testkind_onitemchanged"/>
  23. <Static id="caption10" text="등록번호:" class="search_name" position="absolute 662 9 731 29"/>
  24. <Edit id="input1" taborder="10" autoselect="true" position="absolute 743 9 798 29" onkeyup="swt_apheresis_case1_grp_input1_onkeyup"/>
  25. <Edit id="input2" taborder="11" enable="false" position="absolute 800 9 861 29"/>
  26. <Button id="btn_patsrch" taborder="12" class="icon_search" position="absolute 862 9 882 29" onclick="swt_apheresis_case1_grp_btn_patsrch_onclick"/>
  27. <Button id="btn_eraser01" taborder="13" class="icon_eraser" position="absolute 883 6 909 32" tooltiptext="등록번호 초기화" onclick="swt_apheresis_case1_grp_btn_eraser01_onclick"/>
  28. </Layout>
  29. </Layouts>
  30. </Div>
  31. <Button id="btn_excel" taborder="2" text="엑셀" class="btn7" position="absolute 1149 38 1200 58" onclick="swt_apheresis_case1_btn_excel_onclick" anchor="top right"/>
  32. <Shape id="line38" linetype="horizontal" class="line_10" position="absolute 0 59 1200 65" anchor="left top right"/>
  33. <Grid id="grd_trgtlist" taborder="26" useinputpanel="false" treeusecheckbox="false" position="absolute 0 65 1200 735" anchor="all" binddataset="ds_trgtlist" cellsizingtype="col" oncelldblclick="swt_apheresis_case1_grd_trgtlist_oncelldblclick">
  34. <Formats>
  35. <Format id="default">
  36. <Columns>
  37. <Column size="25"/>
  38. <Column size="75"/>
  39. <Column size="110"/>
  40. <Column size="50"/>
  41. <Column size="50"/>
  42. <Column size="60"/>
  43. <Column size="60"/>
  44. <Column size="40"/>
  45. <Column size="200"/>
  46. <Column size="100"/>
  47. <Column size="60"/>
  48. <Column size="60"/>
  49. <Column size="40"/>
  50. <Column size="40"/>
  51. <Column size="70"/>
  52. <Column size="200"/>
  53. <Column size="70"/>
  54. <Column size="120"/>
  55. </Columns>
  56. <Rows>
  57. <Row size="24" band="head"/>
  58. <Row size="24"/>
  59. </Rows>
  60. <Band id="head">
  61. <Cell/>
  62. <Cell col="1" text="처방적용일"/>
  63. <Cell col="2" text="시술종류"/>
  64. <Cell col="3" text="혈액형"/>
  65. <Cell col="4" text="병실"/>
  66. <Cell col="5" text="환자명"/>
  67. <Cell col="6" text="환자번호"/>
  68. <Cell col="7" text="S/A"/>
  69. <Cell col="8" text="진단명"/>
  70. <Cell col="9" text="진료과"/>
  71. <Cell col="10" text="담당교수"/>
  72. <Cell col="11" text="담당의"/>
  73. <Cell col="12" text="키"/>
  74. <Cell col="13" text="몸무게"/>
  75. <Cell col="14" text="처방코드"/>
  76. <Cell col="15" text="처방명"/>
  77. <Cell col="16" text="처방입력자"/>
  78. <Cell col="17" text="처방입력시간"/>
  79. </Band>
  80. <Band id="body">
  81. <Cell celltype="head" text="expr:currow + 1"/>
  82. <Cell col="1" text="bind:prcpdd" mask="expr:utlf_isNull(prcpdd) ? &quot;&quot; : &quot;####-##-##&quot;"/>
  83. <Cell col="2" text="bind:testkindnm"/>
  84. <Cell col="3" text="bind:btype"/>
  85. <Cell col="4" text="bind:roomcd"/>
  86. <Cell col="5" text="bind:hngnm"/>
  87. <Cell col="6" text="bind:pid"/>
  88. <Cell col="7" text="bind:sa"/>
  89. <Cell col="8" style="align:left middle;" text="bind:diagnm"/>
  90. <Cell col="9" displaytype="text" text="bind:orddeptnm"/>
  91. <Cell col="10" text="bind:orddrnm"/>
  92. <Cell col="11" text="bind:atdoctnm"/>
  93. <Cell col="12" text="bind:ht"/>
  94. <Cell col="13" text="bind:wt"/>
  95. <Cell col="14" displaytype="text" text="bind:prcpcd"/>
  96. <Cell col="15" displaytype="normal" edittype="none" style="align:left middle;padding:1 2 1 2;" text="bind:prcpnm" treestartlevel="1" treelevel="bind:execprcplevel"/>
  97. <Cell col="16" text="bind:rgstrnm"/>
  98. <Cell col="17" text="bind:rgstdt" mask="expr:utlf_isNull(rgstdt) ? &quot;&quot; : &quot;####-##-## ##:##:##&quot;"/>
  99. </Band>
  100. </Format>
  101. </Formats>
  102. </Grid>
  103. </Layout>
  104. </Layouts>
  105. </Tabpage>
  106. <Tabpage id="case2" text="실시환자">
  107. <Layouts>
  108. <Layout width="1196" height="700">
  109. <Div id="grp" taborder="1" position="absolute 0 0 1200 35" class="div_SA" anchor="left top right">
  110. <Layouts>
  111. <Layout width="1182" height="35">
  112. <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 1130 8 1186 28" anchor="default" onclick="swt_apheresis_case2_grp_btn_search_onclick"/>
  113. <Shape id="line1" linetype="vertical" class="line_4" position="absolute 1115 6 1121 28" anchor="default"/>
  114. <Static id="caption2" text="시술기록일자 :" class="search_name" position="absolute 14 8 117 28"/>
  115. <Calendar id="input4" taborder="4" autoselect="true" dateformat="yyyy-MM-dd" position="absolute 125 8 210 28"/>
  116. <Static id="caption3" text="~" position="absolute 215 8 230 28"/>
  117. <Calendar id="input3" taborder="5" autoselect="true" dateformat="yyyy-MM-dd" position="absolute 227 8 312 28"/>
  118. <Static id="caption6" text="시술종류:" class="search_name" position="absolute 366 8 445 28"/>
  119. <Combo id="cmb_testkind" taborder="6" innerdataset="ds_UC00002" codecolumn="cdid" datacolumn="cdnm" position="absolute 455 8 616 28" onitemchanged="swt_apheresis_case2_grp_cmb_testkind_onitemchanged"/>
  120. <Static id="caption10" text="등록번호:" class="search_name" position="absolute 662 9 731 29"/>
  121. <Edit id="input1" taborder="7" autoselect="true" position="absolute 743 9 798 29" onkeyup="swt_apheresis_case2_grp_input1_onkeyup"/>
  122. <Edit id="input2" taborder="8" enable="false" position="absolute 800 9 861 29"/>
  123. <Button id="btn_patsrch" taborder="9" class="icon_search" position="absolute 862 9 882 29" onclick="swt_apheresis_case2_grp_btn_patsrch_onclick"/>
  124. <Button id="btn_eraser01" taborder="10" class="icon_eraser" position="absolute 883 6 909 32" tooltiptext="등록번호 초기화" onclick="swt_apheresis_case2_grp_btn_eraser01_onclick"/>
  125. </Layout>
  126. </Layouts>
  127. </Div>
  128. <Button id="btn_excel" taborder="2" text="엑셀" class="btn7" position="absolute 1149 38 1200 58" onclick="swt_apheresis_case2_btn_excel_onclick" anchor="top right"/>
  129. <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 59 1200 65" anchor="left top right"/>
  130. <Grid id="grd_execlist" taborder="3" binddataset="ds_execlist" useinputpanel="false" cellsizingtype="col" treeusecheckbox="false" position="absolute 0 65 1200 735" anchor="all" oncelldblclick="swt_apheresis_case2_grd_execlist_oncelldblclick" autofittype="col">
  131. <Formats>
  132. <Format id="default">
  133. <Columns>
  134. <Column size="25"/>
  135. <Column size="75"/>
  136. <Column size="110"/>
  137. <Column size="50"/>
  138. <Column size="50"/>
  139. <Column size="60"/>
  140. <Column size="60"/>
  141. <Column size="40"/>
  142. <Column size="200"/>
  143. <Column size="100"/>
  144. <Column size="60"/>
  145. <Column size="60"/>
  146. <Column size="40"/>
  147. <Column size="40"/>
  148. <Column size="70"/>
  149. <Column size="120"/>
  150. </Columns>
  151. <Rows>
  152. <Row size="24" band="head"/>
  153. <Row size="24"/>
  154. </Rows>
  155. <Band id="head">
  156. <Cell/>
  157. <Cell col="1" text="시술기록일"/>
  158. <Cell col="2" text="시술종류"/>
  159. <Cell col="3" text="혈액형"/>
  160. <Cell col="4" text="병실"/>
  161. <Cell col="5" text="환자명"/>
  162. <Cell col="6" text="환자번호"/>
  163. <Cell col="7" text="S/A"/>
  164. <Cell col="8" text="진단명"/>
  165. <Cell col="9" text="진료과"/>
  166. <Cell col="10" text="담당교수"/>
  167. <Cell col="11" text="담당의"/>
  168. <Cell col="12" text="키"/>
  169. <Cell col="13" text="몸무게"/>
  170. <Cell col="14" text="기록수정자"/>
  171. <Cell col="15" text="기록수정시간"/>
  172. </Band>
  173. <Band id="body">
  174. <Cell celltype="head" text="expr:currow + 1"/>
  175. <Cell col="1" text="bind:lastformrecdd" mask="expr:utlf_isNull(lastformrecdd) ? &quot;&quot; : &quot;####-##-##&quot;"/>
  176. <Cell col="2" text="bind:testkindnm"/>
  177. <Cell col="3" text="bind:btype"/>
  178. <Cell col="4" text="bind:roomcd"/>
  179. <Cell col="5" text="bind:hngnm"/>
  180. <Cell col="6" text="bind:pid"/>
  181. <Cell col="7" text="bind:sa"/>
  182. <Cell col="8" style="align:left middle;" text="bind:diagnm"/>
  183. <Cell col="9" displaytype="text" text="bind:orddeptnm"/>
  184. <Cell col="10" text="bind:orddrnm"/>
  185. <Cell col="11" text="bind:atdoctnm"/>
  186. <Cell col="12" text="bind:ht"/>
  187. <Cell col="13" text="bind:wt"/>
  188. <Cell col="14" text="bind:lastupdtnm"/>
  189. <Cell col="15" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? &quot;&quot; : &quot;####-##-## ##:##:##&quot;"/>
  190. </Band>
  191. </Format>
  192. </Formats>
  193. </Grid>
  194. </Layout>
  195. </Layouts>
  196. </Tabpage>
  197. </Tabpages>
  198. </Tab>
  199. <Static id="caption6" text="Apheresis 업무" class="tit_1" position="absolute 0 0 136 25"/>
  200. </Layout>
  201. </Layouts>
  202. <Objects>
  203. <Dataset id="ds_cond_trgt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  204. <ColumnInfo>
  205. <Column id="fromdd" type="STRING" size="256"/>
  206. <Column id="todd" type="STRING" size="256"/>
  207. <Column id="testkind" type="STRING" size="256"/>
  208. <Column id="pid" type="STRING" size="256"/>
  209. <Column id="hngnm" type="STRING" size="256"/>
  210. </ColumnInfo>
  211. <Rows>
  212. <Row/>
  213. </Rows>
  214. </Dataset>
  215. <Dataset id="ds_cond_exec" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  216. <ColumnInfo>
  217. <Column id="fromdd" type="STRING" size="256"/>
  218. <Column id="todd" type="STRING" size="256"/>
  219. <Column id="testkind" type="STRING" size="256"/>
  220. <Column id="pid" type="STRING" size="256"/>
  221. <Column id="hngnm" type="STRING" size="256"/>
  222. </ColumnInfo>
  223. <Rows>
  224. <Row/>
  225. </Rows>
  226. </Dataset>
  227. <Dataset id="ds_UC00002" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  228. <Dataset id="ds_trgtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  229. <ColumnInfo>
  230. <Column id="instcd" type="STRING" size="256"/>
  231. <Column id="prcpdd" type="STRING" size="256"/>
  232. <Column id="prcpno" type="STRING" size="256"/>
  233. <Column id="pid" type="STRING" size="256"/>
  234. <Column id="orddd" type="STRING" size="256"/>
  235. <Column id="cretno" type="STRING" size="256"/>
  236. <Column id="testkind" type="STRING" size="256"/>
  237. <Column id="testkindnm" type="STRING" size="256"/>
  238. <Column id="hngnm" type="STRING" size="256"/>
  239. <Column id="sa" type="STRING" size="256"/>
  240. <Column id="sex" type="STRING" size="256"/>
  241. <Column id="age" type="STRING" size="256"/>
  242. <Column id="btype" type="STRING" size="256"/>
  243. <Column id="ht" type="STRING" size="256"/>
  244. <Column id="wt" type="STRING" size="256"/>
  245. <Column id="ordtype" type="STRING" size="256"/>
  246. <Column id="orddeptcd" type="STRING" size="256"/>
  247. <Column id="orddrid" type="STRING" size="256"/>
  248. <Column id="orddeptnm" type="STRING" size="256"/>
  249. <Column id="orddrnm" type="STRING" size="256"/>
  250. <Column id="atdoctnm" type="STRING" size="256"/>
  251. <Column id="diagnm" type="STRING" size="256"/>
  252. <Column id="roomcd" type="STRING" size="256"/>
  253. <Column id="prcpcd" type="STRING" size="256"/>
  254. <Column id="prcpnm" type="STRING" size="256"/>
  255. <Column id="rgstrnm" type="STRING" size="256"/>
  256. <Column id="rgstdt" type="STRING" size="256"/>
  257. <Column id="srchdd" type="STRING" size="256"/>
  258. </ColumnInfo>
  259. <Rows>
  260. <Row/>
  261. </Rows>
  262. </Dataset>
  263. <Dataset id="ds_execlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  264. <ColumnInfo>
  265. <Column id="instcd" type="STRING" size="256"/>
  266. <Column id="lastformrecdd" type="STRING" size="256"/>
  267. <Column id="pid" type="STRING" size="256"/>
  268. <Column id="orddd" type="STRING" size="256"/>
  269. <Column id="cretno" type="STRING" size="256"/>
  270. <Column id="testkind" type="STRING" size="256"/>
  271. <Column id="testkindnm" type="STRING" size="256"/>
  272. <Column id="hngnm" type="STRING" size="256"/>
  273. <Column id="sa" type="STRING" size="256"/>
  274. <Column id="sex" type="STRING" size="256"/>
  275. <Column id="age" type="STRING" size="256"/>
  276. <Column id="btype" type="STRING" size="256"/>
  277. <Column id="ht" type="STRING" size="256"/>
  278. <Column id="wt" type="STRING" size="256"/>
  279. <Column id="ordtype" type="STRING" size="256"/>
  280. <Column id="orddeptcd" type="STRING" size="256"/>
  281. <Column id="orddrid" type="STRING" size="256"/>
  282. <Column id="orddeptnm" type="STRING" size="256"/>
  283. <Column id="orddrnm" type="STRING" size="256"/>
  284. <Column id="atdoctnm" type="STRING" size="256"/>
  285. <Column id="diagnm" type="STRING" size="256"/>
  286. <Column id="roomcd" type="STRING" size="256"/>
  287. <Column id="lastupdtnm" type="STRING" size="256"/>
  288. <Column id="lastupdtdt" type="STRING" size="256"/>
  289. <Column id="srchdd" type="STRING" size="256"/>
  290. </ColumnInfo>
  291. <Rows>
  292. <Row/>
  293. </Rows>
  294. </Dataset>
  295. </Objects>
  296. <Bind>
  297. <BindItem id="item11" compid="swt_apheresis.case1.grp.input4" propid="value" datasetid="ds_cond_trgt" columnid="fromdd"/>
  298. <BindItem id="item12" compid="swt_apheresis.case1.grp.input3" propid="value" datasetid="ds_cond_trgt" columnid="todd"/>
  299. <BindItem id="item0" compid="swt_apheresis.case1.grp.cmb_testkind" propid="value" datasetid="ds_cond_trgt" columnid="testkind"/>
  300. <BindItem id="item13" compid="swt_apheresis.case1.grp.input1" propid="value" datasetid="ds_cond_trgt" columnid="pid"/>
  301. <BindItem id="item14" compid="swt_apheresis.case1.grp.input2" propid="value" datasetid="ds_cond_trgt" columnid="hngnm"/>
  302. <BindItem id="item1" compid="swt_apheresis.case2.grp.input4" propid="value" datasetid="ds_cond_exec" columnid="fromdd"/>
  303. <BindItem id="item2" compid="swt_apheresis.case2.grp.input3" propid="value" datasetid="ds_cond_exec" columnid="todd"/>
  304. <BindItem id="item3" compid="swt_apheresis.case2.grp.cmb_testkind" propid="value" datasetid="ds_cond_exec" columnid="testkind"/>
  305. <BindItem id="item4" compid="swt_apheresis.case2.grp.input1" propid="value" datasetid="ds_cond_exec" columnid="pid"/>
  306. <BindItem id="item5" compid="swt_apheresis.case2.grp.input2" propid="value" datasetid="ds_cond_exec" columnid="hngnm"/>
  307. </Bind>
  308. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  309. * System Name : SMLBD02200_Apheresis업무
  310. * Job Name :
  311. * Creator : 엄영만
  312. * Make Date : 2019-05-10
  313. * Description : 치료적 혈장교환술, 백혈구성분채집술, 조혈모세포수집 관련 업부 처리 화면
  314. *---------------------------------------------------------------------------------------
  315. * Modify Date Modifier Modify Description
  316. *---------------------------------------------------------------------------------------
  317. * 2019-05-10 엄영만 Create
  318. *
  319. *---------------------------------------------------------------------------------------
  320. ****************************************************************************************/
  321. //=======================================================================================
  322. // Lib Include
  323. //---------------------------------------------------------------------------------------
  324. include 'com_commonxp::comm_main.xjs';
  325. include 'com_departmentcodexp::ZSD001.xjs';
  326. //=======================================================================================
  327. // Events
  328. //---------------------------------------------------------------------------------------
  329. function SMLBD02200_oninit(obj:Form, e:InitEventInfo)
  330. {
  331. frmf_initForm(obj);
  332. }
  333. function SMLBD02200_onload(obj:Form, e:LoadEventInfo)
  334. {
  335. grdf_initGrid(swt_apheresis.case1.grd_trgtlist);
  336. grdf_setToolTipBind(swt_apheresis.case1.grd_trgtlist);
  337. grdf_setGridSort(swt_apheresis.case1.grd_trgtlist);
  338. grdf_initGrid(swt_apheresis.case2.grd_execlist);
  339. grdf_setToolTipBind(swt_apheresis.case2.grd_execlist);
  340. grdf_setGridSort(swt_apheresis.case2.grd_execlist);
  341. appf_getUserCodeList([{dsNm: "ds_UC00002", userCd: "00002"}], true);
  342. frmf_addComboItem("swt_apheresis.case1.grp.cmb_testkind"); //전체항목 추가
  343. ds_cond_trgt.setColumn(0, "fromdd" , ((utlf_getCurrentDate().toDate()).getAddDate(-7,"D")).getDateFormat()); // 최근 7일
  344. ds_cond_trgt.setColumn(0, "todd" , utlf_getCurrentDate()); //종료일자는 현재일자
  345. ds_cond_trgt.setColumn(0, "testkind", "-");
  346. ds_cond_exec.setColumn(0, "fromdd" , ((utlf_getCurrentDate().toDate()).getAddDate(-7,"D")).getDateFormat()); // 최근 7일
  347. ds_cond_exec.setColumn(0, "todd" , utlf_getCurrentDate()); //종료일자는 현재일자
  348. ds_cond_exec.setColumn(0, "testkind", "-");
  349. swt_apheresis.enableevent = false;
  350. swt_apheresis.tabindex = 0;
  351. swt_apheresis.enableevent = true;
  352. fGetApheresisTrgtList();
  353. }
  354. /****************************************************************************************
  355. * Argument :
  356. * Description : case1 의 btn_search 버튼 클릭 이벤트
  357. ****************************************************************************************/
  358. function swt_apheresis_case1_grp_btn_search_onclick(obj:Button, e:ClickEventInfo){
  359. fGetApheresisTrgtList();
  360. }
  361. function swt_apheresis_case1_grp_cmb_testkind_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  362. {
  363. fGetApheresisTrgtList();
  364. }
  365. function swt_apheresis_case1_grp_input1_onkeyup(obj:Edit, e:KeyEventInfo)
  366. {
  367. if(e.keycode == 13) {
  368. obj.updateToDataset();
  369. fGetApheresisTrgtList();
  370. }
  371. }
  372. /****************************************************************************************
  373. * Argument :
  374. * Description : case1 의 엑셀 버튼 클릭 이벤트
  375. ****************************************************************************************/
  376. function swt_apheresis_case1_btn_excel_onclick(obj:Button, e:ClickEventInfo){
  377. grdf_exportExcel(swt_apheresis.case1.grd_trgtlist, 'Apheresis대상환자', '대상환자', false, null, "user", true);
  378. }
  379. /****************************************************************************************
  380. * Argument :
  381. * Description : case2 의 조회 버튼 클릭 이벤트
  382. ****************************************************************************************/
  383. function swt_apheresis_case2_grp_btn_search_onclick(obj:Button, e:ClickEventInfo){
  384. fGetApheresisExecList();
  385. }
  386. function swt_apheresis_case2_grp_cmb_testkind_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  387. {
  388. fGetApheresisExecList();
  389. }
  390. function swt_apheresis_case2_grp_input1_onkeyup(obj:Edit, e:KeyEventInfo)
  391. {
  392. if(e.keycode == 13) {
  393. obj.updateToDataset();
  394. fGetApheresisExecList();
  395. }
  396. }
  397. /****************************************************************************************
  398. * Argument :
  399. * Description : case2 의 엑셀 버튼 클릭 이벤트
  400. ****************************************************************************************/
  401. function swt_apheresis_case2_btn_excel_onclick(obj:Button, e:ClickEventInfo){
  402. grdf_exportExcel(swt_apheresis.case2.grd_execlist, 'Apheresis실시환자', '실시환자', false, null, "user", true);
  403. }
  404. function swt_apheresis_case1_grp_btn_patsrch_onclick(obj:Button, e:ClickEventInfo)
  405. {
  406. frmf_modal("SPPMC02500", "SPPMC02500", null, null, null, null, null, null, null, null, null, null, "M");
  407. if(!utlf_isNull(this.objects["ds_patinfolist"])) {
  408. var sPid = ds_patinfolist.getColumn(0, "pid");
  409. var sHngnm = ds_patinfolist.getColumn(0, "hngnm");
  410. ds_cond_trgt.setColumn(0, "pid", sPid);
  411. ds_cond_trgt.setColumn(0, "hngnm", sHngnm);
  412. }
  413. }
  414. function swt_apheresis_case2_grp_btn_patsrch_onclick(obj:Button, e:ClickEventInfo)
  415. {
  416. frmf_modal("SPPMC02500", "SPPMC02500", null, null, null, null, null, null, null, null, null, null, "M");
  417. if(!utlf_isNull(this.objects["ds_patinfolist"])) {
  418. var sPid = ds_patinfolist.getColumn(0, "pid");
  419. var sHngnm = ds_patinfolist.getColumn(0, "hngnm");
  420. ds_cond_exec.setColumn(0, "pid", sPid);
  421. ds_cond_exec.setColumn(0, "hngnm", sHngnm);
  422. }
  423. }
  424. function swt_apheresis_case1_grp_btn_eraser01_onclick(obj:Button, e:ClickEventInfo)
  425. {
  426. ds_cond_trgt.setColumn(0, "pid", "");
  427. ds_cond_trgt.setColumn(0, "hngnm", "");
  428. }
  429. function swt_apheresis_case2_grp_btn_eraser01_onclick(obj:Button, e:ClickEventInfo)
  430. {
  431. ds_cond_exec.setColumn(0, "pid", "");
  432. ds_cond_exec.setColumn(0, "hngnm", "");
  433. }
  434. //=======================================================================================
  435. // Local methods
  436. //---------------------------------------------------------------------------------------
  437. function fGetApheresisTrgtList() {
  438. ds_trgtlist.clearData();
  439. ds_trgtlist.addRow();
  440. var oParam = {};
  441. oParam.id = "TRLBD02201";
  442. oParam.service = "donmngtapp.DonRgst";
  443. oParam.method = "reqGetApheresisTrgtList";
  444. oParam.inds = "req=ds_cond_trgt";
  445. oParam.outds = "ds_trgtlist=trgtlist";
  446. oParam.async = false;
  447. tranf_submit(oParam);
  448. }
  449. function fGetApheresisExecList() {
  450. ds_execlist.clearData();
  451. ds_execlist.addRow();
  452. var oParam = {};
  453. oParam.id = "TRLBD02201";
  454. oParam.service = "donmngtapp.DonRgst";
  455. oParam.method = "reqGetApheresisExecList";
  456. oParam.inds = "req=ds_cond_exec";
  457. oParam.outds = "ds_execlist=execlist";
  458. oParam.async = false;
  459. tranf_submit(oParam);
  460. }
  461. function fSetPatInfos(sInstCd, sOrdType, sPid, sOrdDd, sCretNo, sSrchDd) {
  462. if( sOrdType == "D" ) { // DSC는 입원으로 처리
  463. sOrdType = "I";
  464. }
  465. var param = sOrdType + "▦" + sPid + "▦" + sOrdDd + "▦" +sCretNo + "▦" + sInstCd + "▦" + sSrchDd;
  466. frmf_setParameter("condparam", param);
  467. appf_initPatientInfo(param);
  468. }
  469. // 부서별 기록 확럽
  470. function fPopDeptRec(sPid, sOrdDd, sCretno, sOrdType, sOrdDeptCd, sOrdDrId, sHngNm, sAge, sSex, sTestKind, sTabFlag) {
  471. var sSuppDeptCd = sysf_getUserInfo("dutplcecd");
  472. var sFormDeptCd = "";
  473. var sFormCd = "";
  474. if(sTestKind == "00003") { // 치료적 혈장교환술(TTE)
  475. sFormCd = "1900023402";
  476. } else if(sTestKind == "00004") { // 치료적 백혈구성분채집술(Leukapheresis)
  477. sFormCd = "1900023403";
  478. } else if(sTestKind == "00005") { // 동종 조혈모세포수집(PBSCC)
  479. sFormCd = "1900023942";
  480. } else if(sTestKind == "00010") { // 자가 조혈모세포수집(PBSCC)
  481. sFormCd = "1900023401";
  482. }
  483. frmf_setParameter("SPMMR05400_parm_formcd", sFormCd);
  484. frmf_setParameter("SPMMR05400_tabflag", sTabFlag); // formlist, reclist
  485. frmf_setParameter("SPMMR05400_parm_pinfo", sPid + "▦" + sOrdDd + "▦" + sCretno + "▦" + sOrdType + "▦" + sOrdDeptCd + "▦" + sOrdDrId +"▦"+ sHngNm + "▦" + sAge + "▦" + sSex + "▦" + sSuppDeptCd + "▦" + sFormDeptCd);
  486. frmf_setParameter("SPMMR05400_parm_formrecdd", utlf_getCurrentDate());
  487. var curRecObj = frmf_findPopup("SPMMR05400");
  488. if(!utlf_isNull(curRecObj)){
  489. curRecObj.reload();
  490. } else {
  491. frmf_open("SPMMR05400", "SPMMR05400", null, null, null, null, null, null, null, null, null, null, "M");
  492. }
  493. }
  494. function swt_apheresis_case1_grd_trgtlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  495. {
  496. var nRow = ds_trgtlist.rowposition;
  497. var sInstCd = ds_trgtlist.getColumn(nRow, "instcd");
  498. var sPid = ds_trgtlist.getColumn(nRow, "pid");
  499. var sOrdDd = ds_trgtlist.getColumn(nRow, "orddd");
  500. var sCretno = ds_trgtlist.getColumn(nRow, "cretno");
  501. var sOrdType = ds_trgtlist.getColumn(nRow, "ordtype");
  502. var sSrchDd = ds_trgtlist.getColumn(nRow, "srchdd");
  503. var sOrdDeptCd = ds_trgtlist.getColumn(nRow, "orddeptcd");
  504. var sOrdDrId = ds_trgtlist.getColumn(nRow, "orddrid");
  505. var sHngNm = ds_trgtlist.getColumn(nRow, "hngnm");
  506. var sAge = ds_trgtlist.getColumn(nRow, "age");
  507. var sSex = ds_trgtlist.getColumn(nRow, "sex");
  508. var sTestKind = ds_trgtlist.getColumn(nRow, "testkind");
  509. // 상단정보 설정
  510. fSetPatInfos(sInstCd, sOrdType, sPid, sOrdDd, sCretno, sSrchDd);
  511. // 부서별 기록 화면 팝업
  512. fPopDeptRec(sPid, sOrdDd, sCretno, sOrdType, sOrdDeptCd, sOrdDrId, sHngNm, sAge, sSex, sTestKind, "formlist");
  513. }
  514. function swt_apheresis_case2_grd_execlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  515. {
  516. var nRow = ds_execlist.rowposition;
  517. var sInstCd = ds_execlist.getColumn(nRow, "instcd");
  518. var sPid = ds_execlist.getColumn(nRow, "pid");
  519. var sOrdDd = ds_execlist.getColumn(nRow, "orddd");
  520. var sCretno = ds_execlist.getColumn(nRow, "cretno");
  521. var sOrdType = ds_execlist.getColumn(nRow, "ordtype");
  522. var sSrchDd = ds_execlist.getColumn(nRow, "srchdd");
  523. var sOrdDeptCd = ds_execlist.getColumn(nRow, "orddeptcd");
  524. var sOrdDrId = ds_execlist.getColumn(nRow, "orddrid");
  525. var sHngNm = ds_execlist.getColumn(nRow, "hngnm");
  526. var sAge = ds_execlist.getColumn(nRow, "age");
  527. var sSex = ds_execlist.getColumn(nRow, "sex");
  528. var sTestKind = ds_execlist.getColumn(nRow, "testkind");
  529. // 상단정보 설정
  530. fSetPatInfos(sInstCd, sOrdType, sPid, sOrdDd, sCretno, sSrchDd);
  531. // 부서별 기록 화면 팝업
  532. fPopDeptRec(sPid, sOrdDd, sCretno, sOrdType, sOrdDeptCd, sOrdDrId, sHngNm, sAge, sSex, sTestKind, "reclist");
  533. }
  534. function swt_apheresis_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  535. {
  536. if(e.postindex == 0) {
  537. fGetApheresisTrgtList(); // 대상자조회
  538. } else {
  539. fGetApheresisExecList(); // 실시자조회
  540. }
  541. }
  542. ]]></Script>
  543. </Form>
  544. </FDL>