SMMNR04600_수혈현황조회.xfdl 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNR04600" position="absolute 0 0 1195 789" titletext="수혈기록 현황조회" oninit="SMMNR04600_oninit" onload="SMMNR04600_onload" ontimer="SMMNR04600_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_sea" taborder="1" class="div_SA" position="absolute 0 25 1192 105">
  8. <Layouts>
  9. <Layout>
  10. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1034 30 1090 52" anchor="default" onclick="grp_sea_btn_search_onclick"/>
  11. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1017 11 1023 70" anchor="default"/>
  12. <Static id="caption2" text="병동 :" class="search_name" position="absolute 505 10 575 27" anchor="default"/>
  13. <Combo id="cmb_dateflag" taborder="2" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 96 7 179 28" anchor="default">
  14. <Dataset id="innerdataset">
  15. <ColumnInfo>
  16. <Column id="codecolumn"/>
  17. <Column id="datacolumn"/>
  18. </ColumnInfo>
  19. <Rows>
  20. <Row>
  21. <Col id="codecolumn">prcpddselect</Col>
  22. <Col id="datacolumn">처방일</Col>
  23. </Row>
  24. <Row>
  25. <Col id="codecolumn">deliveselect</Col>
  26. <Col id="datacolumn">불출일</Col>
  27. </Row>
  28. </Rows>
  29. </Dataset>
  30. </Combo>
  31. <Static id="caption1" text="~" position="absolute 273 8 288 28" anchor="default"/>
  32. <Radio id="rdo_wardpatientflag" taborder="3" columncount="0" rowcount="3" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 409 6 488 75" anchor="default" onitemchanged="grp_sea_rdo_wardpatientflag_onitemchanged">
  33. <Dataset id="innerdataset">
  34. <ColumnInfo>
  35. <Column id="codecolumn"/>
  36. <Column id="datacolumn"/>
  37. </ColumnInfo>
  38. <Rows>
  39. <Row>
  40. <Col id="codecolumn">ward</Col>
  41. <Col id="datacolumn">병동별</Col>
  42. </Row>
  43. <Row>
  44. <Col id="codecolumn">patient</Col>
  45. <Col id="datacolumn">환자별</Col>
  46. </Row>
  47. <Row>
  48. <Col id="codecolumn">dept</Col>
  49. <Col id="datacolumn">기록부서별</Col>
  50. </Row>
  51. </Rows>
  52. </Dataset>
  53. </Radio>
  54. <Static id="caption4" text="병실 :" class="search_name" position="absolute 715 11 760 28" anchor="default"/>
  55. <Static id="caption3" text="성명 :" class="search_name" position="absolute 715 33 760 50" anchor="default"/>
  56. <Static id="caption5" text="S/A :" class="search_name" position="absolute 901 32 945 49" anchor="default"/>
  57. <Static id="caption7" text="등록번호 :" class="search_name" position="absolute 504 33 575 50" anchor="default"/>
  58. <Calendar id="ipt_prcpddfrom" taborder="4" class="input_default" position="absolute 183 7 270 28" anchor="default" autoselect="true" autoskip="true"/>
  59. <Calendar id="ipt_prcdddto" taborder="5" class="input_default" position="absolute 289 7 376 28" anchor="default" autoselect="true"/>
  60. <Combo id="cmb_wardcd" taborder="6" innerdataset="@ds_main_cond_wardcdgrup" codecolumn="wardcd" datacolumn="wardnm" class="combo_s_essential" position="absolute 578 7 668 28" anchor="default" onitemchanged="grp_sea_cmb_wardcd_onitemchanged"/>
  61. <Combo id="cmb_roomcd" taborder="7" innerdataset="@ds_main_cond_roomcdgrup" codecolumn="roomcd" datacolumn="roomnm" class="combo_search" position="absolute 764 8 849 29" anchor="default" onitemchanged="grp_sea_cmb_roomcd_onitemchanged"/>
  62. <Edit id="opt_sexage" taborder="8" readonly="true" class="output" position="absolute 948 29 1005 50" anchor="default"/>
  63. <Edit id="ipt_pid" taborder="9" class="input_search" position="absolute 578 30 668 51" anchor="default" onkeyup="grp_sea_ipt_pid_onkeyup" autoselect="true"/>
  64. <Static id="caption9" text="조회기준 :" class="search_name" position="absolute 22 10 93 27" anchor="default"/>
  65. <Button id="btn_excel" taborder="10" text="엑셀저장" class="btn7" position="absolute 1098 30 1178 52" anchor="default" onclick="grp_sea_btn_excel_onclick"/>
  66. <Static id="caption8" text="( )" position="absolute 507 53 679 73" anchor="default"/>
  67. <Radio id="rdo_recdeptflag" taborder="11" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 519 54 659 71" anchor="default" onitemchanged="grp_sea_rdo_recdeptflag_onitemchanged">
  68. <Dataset id="innerdataset">
  69. <ColumnInfo>
  70. <Column id="codecolumn"/>
  71. <Column id="datacolumn"/>
  72. </ColumnInfo>
  73. <Rows>
  74. <Row>
  75. <Col id="codecolumn">S</Col>
  76. <Col id="datacolumn">시작부서</Col>
  77. </Row>
  78. <Row>
  79. <Col id="codecolumn">E</Col>
  80. <Col id="datacolumn">종료부서</Col>
  81. </Row>
  82. </Rows>
  83. </Dataset>
  84. </Radio>
  85. <Static id="caption10" text="부서 :" class="search_name" position="absolute 715 56 760 73" anchor="default"/>
  86. <Combo id="cmb_recdeptcd" taborder="12" innerdataset="@ds_main_cond_wardcdgrup" codecolumn="wardcd" datacolumn="wardnm" class="combo_s_essential" position="absolute 764 54 929 75" anchor="default"/>
  87. <Combo id="cmb_pid" taborder="13" innerdataset="@ds_main_cond_patientgrup" codecolumn="pid" datacolumn="patientnm" class="combo_search" position="absolute 764 31 849 52" anchor="default" onitemchanged="grp_sea_cmb_pid_onitemchanged"/>
  88. <Edit id="opt_patientnm" taborder="14" readonly="true" class="output" visible="false" position="absolute 764 31 849 52" anchor="default"/>
  89. </Layout>
  90. </Layouts>
  91. </Div>
  92. <Shape id="line1" class="line_10" position="absolute 0 140 1192 146"/>
  93. <Static id="caption26" text="수혈기록내역" class="tit_2" position="absolute 0 122 126 139"/>
  94. <Grid id="grd_execdetlgruplist" class="datagrid2" taborder="2" binddataset="ds_main_cond_execdetlgrup" useinputpanel="false" position="absolute 0 143 1192 758" cellsizingtype="col" oncelldblclick="grd_execdetlgruplist_oncelldblclick">
  95. <Formats>
  96. <Format id="default">
  97. <Columns>
  98. <Column size="28" band="left"/>
  99. <Column size="53" band="left"/>
  100. <Column size="80" band="left"/>
  101. <Column size="60" band="left"/>
  102. <Column size="45" band="left"/>
  103. <Column size="61" band="left"/>
  104. <Column size="60" band="left"/>
  105. <Column size="60" band="left"/>
  106. <Column size="90" band="left"/>
  107. <Column size="180" band="left"/>
  108. <Column size="85"/>
  109. <Column size="115"/>
  110. <Column size="115"/>
  111. <Column size="115"/>
  112. <Column size="95"/>
  113. <Column size="100"/>
  114. <Column size="115"/>
  115. <Column size="95"/>
  116. <Column size="100"/>
  117. <Column size="95"/>
  118. </Columns>
  119. <Rows>
  120. <Row size="24" band="head"/>
  121. <Row size="24"/>
  122. </Rows>
  123. <Band id="head">
  124. <Cell/>
  125. <Cell col="1" text="병실"/>
  126. <Cell col="2" text="등록번호"/>
  127. <Cell col="3" text="성명"/>
  128. <Cell col="4" text="S/A"/>
  129. <Cell col="5" text="ABO RH"/>
  130. <Cell col="6" text="상태"/>
  131. <Cell col="7" text="처방구분"/>
  132. <Cell col="8" text="처방코드"/>
  133. <Cell col="9" text="처방명"/>
  134. <Cell col="10" text="혈액번호"/>
  135. <Cell col="11" text="처방일시"/>
  136. <Cell col="12" text="불출일시"/>
  137. <Cell col="13" text="수혈시작일시"/>
  138. <Cell col="14" text="수혈시작간호사"/>
  139. <Cell col="15" text="수혈시작부서"/>
  140. <Cell col="16" text="수혈종료일시"/>
  141. <Cell col="17" text="수혈종료간호사"/>
  142. <Cell col="18" text="수혈종료부서"/>
  143. <Cell col="19" text="검사자"/>
  144. </Band>
  145. <Band id="body">
  146. <Cell celltype="head" expr="currow + 1"/>
  147. <Cell col="1" text="bind:roomcd"/>
  148. <Cell col="2" text="bind:pid"/>
  149. <Cell col="3" text="bind:patnm"/>
  150. <Cell col="4" style="align:left;" text="bind:grdrage"/>
  151. <Cell col="5" text="bind:aborh"/>
  152. <Cell col="6" text="bind:prcpstat"/>
  153. <Cell col="7" text="bind:prcppreptfflag"/>
  154. <Cell col="8" text="bind:prcpcd"/>
  155. <Cell col="9" style="align:left middle;" text="bind:prcpnm"/>
  156. <Cell col="10" text="bind:blodno"/>
  157. <Cell col="11" displaytype="normal" text="bind:rgstdt" mask="expr:utlf_isNull(rgstdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  158. <Cell col="12" displaytype="normal" text="bind:deliveexecdt" mask="expr:utlf_isNull(deliveexecdt) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  159. <Cell col="13" displaytype="normal" text="bind:tnsstrddtm" mask="expr:utlf_isNull(tnsstrddtm) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  160. <Cell col="14" text="bind:tnsstrnursenm"/>
  161. <Cell col="15" text="bind:tnsstrnursedeptnm"/>
  162. <Cell col="16" text="bind:tnsendddtm" mask="expr:utlf_isNull(tnsendddtm) ? &quot;&quot; : &quot;####-##-## ##:##&quot;"/>
  163. <Cell col="17" text="bind:tnsendnursenm"/>
  164. <Cell col="18" text="bind:tnsendnursedeptnm"/>
  165. <Cell col="19" text="bind:testexecnm"/>
  166. </Band>
  167. </Format>
  168. </Formats>
  169. </Grid>
  170. <Static id="caption6" text="수혈기록 현황조회" class="tit_1" position="absolute 0 0 143 25"/>
  171. <Static id="caption11" text="[표]" position="absolute 1163 763 1188 783"/>
  172. </Layout>
  173. </Layouts>
  174. <Objects>
  175. <Dataset id="ds_main_cond_execdetlgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  176. <ColumnInfo>
  177. <Column id="roomcd" type="STRING"/>
  178. <Column id="pid" type="STRING"/>
  179. <Column id="patnm" type="STRING"/>
  180. <Column id="grdrage" type="STRING"/>
  181. <Column id="aborh" type="STRING"/>
  182. <Column id="prcpstat" type="STRING"/>
  183. <Column id="prcppreptfflag" type="STRING"/>
  184. <Column id="prcpcd" type="STRING"/>
  185. <Column id="prcpnm" type="STRING"/>
  186. <Column id="blodno" type="STRING"/>
  187. <Column id="rgstdt" type="STRING"/>
  188. <Column id="deliveexecdt" type="STRING"/>
  189. <Column id="tnsstrddtm" type="STRING"/>
  190. <Column id="tnsstrnursenm" type="STRING"/>
  191. <Column id="tnsstrnursedeptnm" type="STRING"/>
  192. <Column id="tnsendddtm" type="STRING"/>
  193. <Column id="tnsendnursenm" type="STRING"/>
  194. <Column id="tnsendnursedeptnm" type="STRING"/>
  195. <Column id="testexecnm" type="STRING"/>
  196. </ColumnInfo>
  197. </Dataset>
  198. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  199. <ColumnInfo>
  200. <Column id="dateflag" type="STRING" size="256"/>
  201. <Column id="prcpddfrom" type="STRING" size="256"/>
  202. <Column id="prcdddto" type="STRING" size="256"/>
  203. <Column id="wardpatientflag" type="STRING" size="256"/>
  204. <Column id="recdeptflag" type="STRING" size="256"/>
  205. <Column id="recdeptcd" type="STRING" size="256"/>
  206. <Column id="wardcd" type="STRING" size="256"/>
  207. <Column id="roomcd" type="STRING" size="256"/>
  208. <Column id="hngnm" type="STRING" size="256"/>
  209. <Column id="pid" type="STRING" size="256"/>
  210. <Column id="deliveflag" type="STRING" size="256"/>
  211. </ColumnInfo>
  212. <Rows>
  213. <Row>
  214. <Col id="dateflag">deliveselect</Col>
  215. <Col id="wardpatientflag">patient</Col>
  216. <Col id="deliveflag">1</Col>
  217. </Row>
  218. </Rows>
  219. </Dataset>
  220. <Dataset id="ds_main_cond_patientgrupInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  221. <ColumnInfo>
  222. <Column id="patientnm" type="STRING" size="256"/>
  223. <Column id="pid" type="STRING" size="256"/>
  224. <Column id="sexage" type="STRING" size="256"/>
  225. <Column id="abo" type="STRING" size="256"/>
  226. <Column id="rhname" type="STRING" size="256"/>
  227. <Column id="rh" type="STRING" size="256"/>
  228. <Column id="btype" type="STRING" size="256"/>
  229. <Column id="reptrslt" type="STRING" size="256"/>
  230. </ColumnInfo>
  231. <Rows>
  232. <Row>
  233. <Col id="patientnm"/>
  234. <Col id="pid"/>
  235. <Col id="sexage"/>
  236. <Col id="abo"/>
  237. <Col id="rhname"/>
  238. <Col id="rh"/>
  239. <Col id="btype"/>
  240. <Col id="reptrslt"/>
  241. </Row>
  242. </Rows>
  243. </Dataset>
  244. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  245. <Dataset id="ds_main_cond_wardcdgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  246. <ColumnInfo>
  247. <Column id="wardnm" type="STRING" size="256"/>
  248. <Column id="wardcd" type="STRING" size="256"/>
  249. </ColumnInfo>
  250. <Rows>
  251. <Row/>
  252. </Rows>
  253. </Dataset>
  254. <Dataset id="ds_main_cond_roomcdgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  255. <Dataset id="ds_main_cond_patientgrup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  256. <ColumnInfo>
  257. <Column id="patientnm" type="STRING" size="256"/>
  258. <Column id="pid" type="STRING" size="256"/>
  259. </ColumnInfo>
  260. <Rows>
  261. <Row/>
  262. </Rows>
  263. </Dataset>
  264. <Dataset id="ds_main_cond_deptcdgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  265. </Objects>
  266. <Bind>
  267. <BindItem id="item0" compid="grp_sea.cmb_dateflag" propid="value" datasetid="ds_main_cond" columnid="dateflag"/>
  268. <BindItem id="item1" compid="grp_sea.ipt_prcpddfrom" propid="value" datasetid="ds_main_cond" columnid="prcpddfrom"/>
  269. <BindItem id="item2" compid="grp_sea.ipt_prcdddto" propid="value" datasetid="ds_main_cond" columnid="prcdddto"/>
  270. <BindItem id="item3" compid="grp_sea.rdo_wardpatientflag" propid="value" datasetid="ds_main_cond" columnid="wardpatientflag"/>
  271. <BindItem id="item4" compid="grp_sea.rdo_recdeptflag" propid="value" datasetid="ds_main_cond" columnid="recdeptflag"/>
  272. <BindItem id="item5" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_main_cond_patientgrupInfo" columnid="pid"/>
  273. <BindItem id="item6" compid="grp_sea.opt_patientnm" propid="value" datasetid="ds_main_cond_patientgrupInfo" columnid="patientnm"/>
  274. <BindItem id="item7" compid="grp_sea.cmb_recdeptcd" propid="value" datasetid="ds_main_cond" columnid="recdeptcd"/>
  275. <BindItem id="item8" compid="grp_sea.opt_sexage" propid="value" datasetid="ds_main_cond_patientgrupInfo" columnid="sexage"/>
  276. <BindItem id="item9" compid="grp_sea.cmb_wardcd" propid="value" datasetid="ds_main_cond" columnid="wardcd"/>
  277. <BindItem id="item10" compid="grp_sea.cmb_roomcd" propid="value" datasetid="ds_main_cond" columnid="roomcd"/>
  278. </Bind>
  279. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  280. * System Name :
  281. * Job Name :
  282. * Creator :
  283. * Make Date : 2015-11-13
  284. * Description :
  285. *---------------------------------------------------------------------------------------
  286. * Modify Date Modifier Modify Description
  287. *---------------------------------------------------------------------------------------
  288. * 2015-11-13 Live Converter TF->XP
  289. *
  290. *---------------------------------------------------------------------------------------
  291. ****************************************************************************************/
  292. include "com_commonxp::comm_main.xjs";
  293. var arErrorCode = new HashArray();
  294. /******************************************************************
  295. * Argument :
  296. * Description : Ready
  297. ******************************************************************/
  298. function SMMNR04600_oninit(obj:Form, e:InitEventInfo)
  299. {
  300. frmf_initForm(obj);
  301. }
  302. function SMMNR04600_onload(obj:Form, e:LoadEventInfo)
  303. {
  304. grdf_setGridSort(grd_execdetlgruplist);
  305. ds_main_cond_execdetlgrup.clearData();
  306. // 기준일에 현재날짜(디폴트)
  307. ds_main_cond.setColumn(0, "prcpddfrom", utlf_getCurrentDate());
  308. var addDy = ds_main_cond.getColumn(0, "prcpddfrom");
  309. addDy = addDy.toDate().getAddDate(-3,"D");
  310. addDy = addDy.getDateFormat();
  311. // 기준일에 현재날짜(디폴트)
  312. ds_main_cond.setColumn(0, "prcpddfrom", addDy);
  313. ds_main_cond.setColumn(0, "prcdddto", utlf_getCurrentDate());
  314. fGetWardList();// 병동코드 리스트
  315. //frmf_inputEnterKey("grp_sea.rdo_wardpatientflag", "onitemchanged", new ItemChangeEventInfo);
  316. this.setTimer(0, 100);
  317. }
  318. /**
  319. * @group :
  320. * @ver : 2007.06.18
  321. * @by : 정찬성
  322. * @---------------------------------------------------
  323. * @type : function
  324. * @access : public
  325. * @desc : 병동 조회
  326. * @param :
  327. * @return :
  328. * @---------------------------------------------------
  329. */
  330. function fGetWardList(){
  331. ds_send.clear();
  332. ds_send.addColumn("wardcd", "string", 256);
  333. ds_send.addColumn("deptsearchyn", "string", 256);
  334. var iRow = ds_send.addRow();
  335. ds_send.setColumn(iRow, "wardcd", ds_main_cond_wardcdgrup.getColumn(0, "wardcd"));
  336. ds_send.setColumn(iRow, "deptsearchyn", "Y");
  337. var oParam = {};
  338. oParam.id = "TRMNR07602";
  339. oParam.service = "carerecapp.TnsCareRec";
  340. oParam.method = "reqGetWardList";
  341. oParam.inds = "refCond=ds_send";
  342. oParam.outds = "ds_main_cond_wardcdgrup=wardcdgruplist";
  343. oParam.async = false;
  344. oParam.callback = "cf_TRMNR07602";
  345. tranf_submit(oParam);
  346. if( arErrorCode.pop("TRMNR07602") > -1 ){
  347. if( ds_main_cond.getColumn(0, "wardpatientflag") == "ward" ){
  348. grp_sea.cmb_wardcd.setFocus();
  349. }else{
  350. grp_sea.ipt_pid.setFocus();
  351. }
  352. }
  353. }
  354. function cf_TRMNR07602(sSvcId, nErrorCode, sErrorMsg) {
  355. arErrorCode.push(sSvcId, nErrorCode);
  356. ds_main_cond_wardcdgrup.updateColID("depthngnm", "wardnm");
  357. ds_main_cond_wardcdgrup.updateColID("deptcd", "wardcd");
  358. }
  359. /******************************************************************
  360. * Argument :
  361. * Description : 병동별/환자별/기록부서별 radio event
  362. ******************************************************************/
  363. function grp_sea_rdo_wardpatientflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  364. {
  365. var wardpatientflag = ds_main_cond.getColumn(0, "wardpatientflag");
  366. if( wardpatientflag == 'ward') {
  367. grp_sea.cmb_wardcd.enable = true ;
  368. grp_sea.cmb_roomcd.enable = false ;
  369. grp_sea.cmb_pid.enable = false ;
  370. grp_sea.ipt_pid.enable = false ;
  371. grp_sea.rdo_recdeptflag.enable = false;
  372. grp_sea.cmb_recdeptcd.enable = false;
  373. grp_sea.opt_patientnm.visible = false;
  374. grp_sea.cmb_roomcd.value = "" ;
  375. grp_sea.cmb_pid.value = "" ;
  376. grp_sea.ipt_pid.value = "" ;
  377. grp_sea.opt_sexage.value = "" ;
  378. grp_sea.opt_patientnm.value = "" ;
  379. grp_sea.rdo_recdeptflag.value="";
  380. grp_sea.cmb_recdeptcd.value="";
  381. grp_sea.cmb_wardcd.setFocus();
  382. } else if ( wardpatientflag == 'patient' ){
  383. grp_sea.cmb_wardcd.enable = true ;
  384. grp_sea.cmb_roomcd.enable = true ;
  385. grp_sea.cmb_pid.enable = true ;
  386. grp_sea.ipt_pid.enable = true ;
  387. grp_sea.rdo_recdeptflag.enable = false;
  388. grp_sea.cmb_recdeptcd.enable = false;
  389. grp_sea.opt_patientnm.visible = true;
  390. grp_sea.cmb_roomcd.value = "" ;
  391. grp_sea.cmb_pid.value = "" ;
  392. grp_sea.ipt_pid.value = "" ;
  393. grp_sea.opt_sexage.value = "" ;
  394. grp_sea.opt_patientnm.value = "" ;
  395. grp_sea.cmb_wardcd.value = "";
  396. grp_sea.rdo_recdeptflag.value="";
  397. grp_sea.cmb_recdeptcd.value="";
  398. grp_sea.ipt_pid.setFocus();
  399. } else {
  400. grp_sea.cmb_wardcd.enable = false ;
  401. grp_sea.cmb_roomcd.enable = false ;
  402. grp_sea.cmb_pid.enable = false ;
  403. grp_sea.ipt_pid.enable = false ;
  404. grp_sea.rdo_recdeptflag.enable = true;
  405. grp_sea.cmb_recdeptcd.enable = true;
  406. grp_sea.opt_patientnm.visible = false;
  407. grp_sea.cmb_roomcd.value = "" ;
  408. grp_sea.cmb_pid.value = "" ;
  409. grp_sea.ipt_pid.value = "" ;
  410. grp_sea.opt_sexage.value = "" ;
  411. grp_sea.opt_patientnm.value = "" ;
  412. grp_sea.cmb_wardcd.value = "";
  413. grp_sea.rdo_recdeptflag.value = "S";
  414. grp_sea.cmb_recdeptcd.value = sysf_getUserInfo("dutplcecd");
  415. grp_sea.cmb_recdeptcd.setFocus();
  416. }
  417. ds_main_cond_execdetlgrup.clearData();
  418. }
  419. /******************************************************************
  420. * Argument :
  421. * Description : 병동 combo event
  422. ******************************************************************/
  423. function grp_sea_cmb_wardcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  424. {
  425. var wardpatientflag = ds_main_cond.getColumn(0, "wardpatientflag");
  426. if( wardpatientflag == 'ward' ) {
  427. fGetTnsPresCondRef();//혈액미불출 리스트 조회버튼
  428. } else {
  429. grp_sea.ipt_pid.value = "" ;
  430. grp_sea.opt_patientnm.value = "" ;
  431. grp_sea.opt_sexage.value = "" ;
  432. grp_sea.opt_patientnm.visible = false;
  433. grp_sea.cmb_pid.value = "";
  434. fGetRoomList();// 병실정보를 가져온다.
  435. }
  436. }
  437. /**
  438. * @group :
  439. * @ver : 2007.06.18
  440. * @by : 정찬성
  441. * @---------------------------------------------------
  442. * @type : function
  443. * @access : public
  444. * @desc : 수혈현황조회
  445. * @param :
  446. * @return :
  447. * @---------------------------------------------------
  448. */
  449. function fGetTnsPresCondRef(){
  450. var wardpatientflag = ds_main_cond.getColumn(0, "wardpatientflag");
  451. if( wardpatientflag == "patient" ) {
  452. var sPid = ds_main_cond_patientgrupInfo.getColumn(0, "pid");
  453. if( utlf_isNull(sPid) ){
  454. sysf_messageBox("등록번호를 ","C001");
  455. grp_sea.ipt_pid.setFocus();
  456. return;
  457. }
  458. } else if( wardpatientflag == "dept" ) {
  459. if( utlf_isNull(ds_main_cond.getColumn(0, "recdeptflag")) || utlf_isNull(ds_main_cond.getColumn(0, "recdeptcd")) ){
  460. sysf_messageBox("기록부서 구분 및 부서명은 ","I003");
  461. grp_sea.cmb_recdeptcd.setFocus();
  462. return;
  463. }
  464. }
  465. ds_send.clear();
  466. ds_send.addColumn("prcpddfrom", "string", 256);
  467. ds_send.addColumn("prcpddto", "string", 256);
  468. ds_send.addColumn("wardcd", "string", 256);
  469. ds_send.addColumn("roomcd", "string", 256);
  470. ds_send.addColumn("hngnm", "string", 256);
  471. ds_send.addColumn("pid", "string", 256);
  472. ds_send.addColumn("dateflag", "string", 256);
  473. ds_send.addColumn("wardpatientflag", "string", 256);
  474. ds_send.addColumn("recdeptflag", "string", 256);
  475. ds_send.addColumn("recdeptcd", "string", 256);
  476. var nRow = ds_send.addRow();
  477. ds_send.setColumn(0, "prcpddfrom", grp_sea.ipt_prcpddfrom.value);
  478. ds_send.setColumn(0, "prcpddto", grp_sea.ipt_prcdddto.value);
  479. ds_send.setColumn(0, "wardcd", grp_sea.cmb_wardcd.value);
  480. ds_send.setColumn(0, "roomcd", grp_sea.cmb_roomcd.value);
  481. ds_send.setColumn(0, "hngnm", grp_sea.cmb_pid.value);
  482. ds_send.setColumn(0, "pid", grp_sea.ipt_pid.value);
  483. ds_send.setColumn(0, "dateflag", grp_sea.cmb_dateflag.value);
  484. ds_send.setColumn(0, "wardpatientflag", grp_sea.rdo_wardpatientflag.value);
  485. ds_send.setColumn(0, "recdeptflag", grp_sea.rdo_recdeptflag.value);
  486. ds_send.setColumn(0, "recdeptcd", grp_sea.cmb_recdeptcd.value);
  487. var oParam = {};
  488. oParam.id = "TRMNR04601";
  489. oParam.service = "carerecapp.TnsCareRec";
  490. oParam.method = "reqGetTnsPresCondRef";
  491. oParam.inds = "refCond=ds_send";
  492. oParam.outds = "ds_main_cond_execdetlgrup=execdetlgruplist";
  493. oParam.async = false;
  494. //oParam.callback = "cf_TRMNR04601";
  495. tranf_submit(oParam);
  496. }
  497. /**
  498. * @group :
  499. * @ver : 2007.06.18
  500. * @by : 정찬성
  501. * @---------------------------------------------------
  502. * @type : function
  503. * @access : public
  504. * @desc : 병실 조회 combo
  505. * @param :
  506. * @return :
  507. * @---------------------------------------------------
  508. */
  509. function fGetRoomList(){
  510. ds_send.clear();
  511. ds_send.addColumn("wardcd", "string", 256);
  512. ds_send.setColumn(ds_send.addRow(), "wardcd", grp_sea.cmb_wardcd.value);
  513. var oParam = {};
  514. oParam.id = "TRMNR07603";
  515. oParam.service = "carerecapp.TnsCareRec";
  516. oParam.method = "reqGetRoomList";
  517. oParam.inds = "refCond=ds_send";
  518. oParam.outds = "ds_main_cond_roomcdgrup=roomcdgruplist";
  519. oParam.async = false;
  520. //oParam.callback = "cf_TRMNR07603";
  521. tranf_submit(oParam);
  522. grp_sea.cmb_roomcd.setFocus();
  523. }
  524. /******************************************************************
  525. * Argument :
  526. * Description : 등록번호 input event
  527. ******************************************************************/
  528. function grp_sea_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
  529. {
  530. if( e.keycode == 13 ){
  531. fGetPatientInfo("entr");
  532. grp_sea.opt_patientnm.visible = true;
  533. ds_main_cond_roomcdgrup.clearData();
  534. frmf_inputEnterKey("grp_sea.btn_search", "onclick", new ClickEventInfo);
  535. }
  536. }
  537. /******************************************************************
  538. * Argument :
  539. * Description : 시작부서/종료부서 radio event
  540. ******************************************************************/
  541. function grp_sea_rdo_recdeptflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  542. {
  543. grp_sea.cmb_recdeptcd.setFocus();
  544. }
  545. /******************************************************************
  546. * Argument :
  547. * Description : 시작부서/종료부서 radio event
  548. ******************************************************************/
  549. function grp_sea_cmb_roomcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  550. {
  551. grp_sea.ipt_pid.value = "";
  552. grp_sea.opt_patientnm.value = "";
  553. grp_sea.opt_sexage.value = "";
  554. fGetPatientList();// 환자리스트 정보를 가져온다.
  555. }
  556. /**
  557. * @group :
  558. * @ver : 2007.06.18
  559. * @by : 정찬성
  560. * @---------------------------------------------------
  561. * @type : function
  562. * @access : public
  563. * @desc : 환자 상세정보 조회 combo
  564. * @param :
  565. * @return :
  566. * @---------------------------------------------------
  567. */
  568. function fGetPatientInfo(pFlag){
  569. ds_send.clear();
  570. if( pFlag == "entr" ){
  571. grp_sea.cmb_wardcd.value = "";
  572. grp_sea.cmb_roomcd.value = "";
  573. grp_sea.cmb_pid.value = "";
  574. ds_send.addColumn("pid", "string", 256);
  575. ds_send.setColumn(ds_send.addRow(), "pid", grp_sea.ipt_pid.value);
  576. }else{
  577. ds_send.addColumn("wardcd", "string", 256);
  578. ds_send.addColumn("roomcd", "string", 256);
  579. var iRow = ds_send.addRow();
  580. ds_send.setColumn(iRow, "wardcd", grp_sea.cmb_wardcd.value);
  581. ds_send.setColumn(iRow, "roomcd", grp_sea.cmb_roomcd.value);
  582. if( !utlf_isNull(grp_sea.ipt_pid.value) ){
  583. ds_send.addColumn("pid", "string", 256);
  584. ds_send.setColumn(iRow, "pid", grp_sea.ipt_pid.value);
  585. }
  586. }
  587. var oParam = {};
  588. oParam.id = "TRMNR07605";
  589. oParam.service = "carerecapp.TnsCareRec";
  590. oParam.method = "reqGetPatientInto";
  591. oParam.inds = "refCond=ds_send";
  592. oParam.outds = "ds_main_cond_patientgrupInfo=patientgrupInfo";
  593. oParam.async = false;
  594. oParam.callback = "cf_TRMNR07605";
  595. tranf_submit(oParam);
  596. if( arErrorCode.pop("TRMNR07605") > -1 ){
  597. if( pFlag == "entr" ){
  598. ds_main_cond_patientgrup.copyData(ds_main_cond_patientgrupInfo);
  599. }
  600. }
  601. frmf_inputEnterKey("grp_sea.btn_search", "onclick", new ClickEventInfo);
  602. }
  603. function cf_TRMNR07605(sSvcId, nErrorCode, sErrorMsg) {
  604. arErrorCode.push(sSvcId, nErrorCode);
  605. }
  606. /**
  607. * @group :
  608. * @ver : 2007.06.18
  609. * @by : 정찬성
  610. * @---------------------------------------------------
  611. * @type : function
  612. * @access : public
  613. * @desc : 환자 정보 조회 combo
  614. * @param :
  615. * @return :
  616. * @---------------------------------------------------
  617. */
  618. function fGetPatientList(){
  619. ds_send.clear();
  620. ds_send.addColumn("wardcd", "string", 256);
  621. ds_send.addColumn("roomcd", "string", 256);
  622. var iRow = ds_send.addRow();
  623. ds_send.setColumn(iRow, "wardcd", grp_sea.cmb_wardcd.value);
  624. ds_send.setColumn(iRow, "roomcd", grp_sea.cmb_roomcd.value);
  625. var oParam = {};
  626. oParam.id = "TRMNR07604";
  627. oParam.service = "carerecapp.TnsCareRec";
  628. oParam.method = "reqGetPatientList";
  629. oParam.inds = "refCond=ds_send";
  630. oParam.outds = "ds_main_cond_patientgrup=patientgruplist";
  631. oParam.async = false;
  632. //oParam.callback = "cf_TRMNR07604";
  633. tranf_submit(oParam);
  634. grp_sea.cmb_pid.setFocus();
  635. }
  636. /******************************************************************
  637. * Argument :
  638. * Description : 조회 button event
  639. ******************************************************************/
  640. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  641. {
  642. fGetTnsPresCondRef();//혈액미불출 리스트 조회버튼
  643. }
  644. /******************************************************************
  645. * Argument :
  646. * Description : Excel button event
  647. ******************************************************************/
  648. function grp_sea_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  649. {
  650. if( ds_main_cond_execdetlgrup.rowcount > 1 ){
  651. grdf_exportExcel(grd_execdetlgruplist, "수혈현황조회", "수혈현황조회", false, "", "", false);
  652. } else {
  653. sysf_messageBox("조회된 데이터가 ", "I004");
  654. }
  655. }
  656. /******************************************************************
  657. * Argument :
  658. * Description : 성명 combo event
  659. ******************************************************************/
  660. function grp_sea_cmb_pid_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  661. {
  662. var cRow = ds_main_cond_patientgrup.rowposition;
  663. grp_sea.ipt_pid.value = ds_main_cond_patientgrup.getColumn(cRow, "pid");
  664. grp_sea.opt_patientnm.value = "";
  665. grp_sea.opt_sexage.value = "";
  666. fGetPatientInfo();// 환자 개인정보를 가져온다.
  667. fGetTnsPresCondRef();//혈액미불출 리스트 조회버튼
  668. }
  669. function SMMNR04600_ontimer(obj:Form, e:TimerEventInfo)
  670. {
  671. if( e.timerid == 0 ){
  672. this.killTimer(0);
  673. frmf_inputEnterKey("grp_sea.rdo_wardpatientflag", "onitemchanged", new ItemChangeEventInfo);
  674. }
  675. }
  676. function grd_execdetlgruplist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  677. {
  678. if(ds_main_cond_execdetlgrup.rowcount >= 0) {
  679. var rgstdd = ds_main_cond_execdetlgrup.getColumn(ds_main_cond_execdetlgrup.rowposition, "rgstdt").substring(0,8);
  680. var param = "I▦" + ds_main_cond_execdetlgrup.getColumn(ds_main_cond_execdetlgrup.rowposition, "pid")
  681. + "▦" + ds_main_cond_execdetlgrup.getColumn(ds_main_cond_execdetlgrup.rowposition, "indd")
  682. + "▦" + ds_main_cond_execdetlgrup.getColumn(ds_main_cond_execdetlgrup.rowposition, "cretno")
  683. + "▦" + ds_main_cond_execdetlgrup.getColumn(ds_main_cond_execdetlgrup.rowposition, "instcd")
  684. + "▦" + rgstdd;
  685. appf_initPatientInfo(param);
  686. frmf_setParameter("SMMNR010_Param", "IPRC2");
  687. frmf_setParameter("SMMNR010_RgstddDATA",rgstdd);
  688. frmf_open("SMMNR01000", "SMMNR01000", "", null, "1", "15", "128", null, null, null, null, null, "M");
  689. }
  690. }
  691. ]]></Script>
  692. </Form>
  693. </FDL>