SMMNE09500_NEDIS재검토확인.xfdl 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE09500" position="absolute 0 0 932 778" titletext="NEDIS, 외상등록체계 재검토 내역 관리" oninit="SMMNE09500_oninit" onload="SMMNE09500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="NEDIS, 외상등록체계 재검토 내역 관리" class="tit_1" position="absolute 0 0 264 25"/>
  8. <Grid id="grd_patlist" class="datagrid2" taborder="1" binddataset="ds_main_patlist" useinputpanel="false" autofittype="col" position="absolute 0 74 930 774" anchor="all" oncelldblclick="grd_patlist_oncelldblclick" oncellclick="grd_patlist_oncellclick" oncloseup="grd_patlist_oncloseup" onlbuttonup="grd_patlist_onlbuttonup" autoenter="key">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="30"/>
  13. <Column size="65"/>
  14. <Column size="97"/>
  15. <Column size="80"/>
  16. <Column size="45"/>
  17. <Column size="130"/>
  18. <Column size="80"/>
  19. <Column size="45"/>
  20. <Column size="220"/>
  21. <Column size="80"/>
  22. <Column size="45"/>
  23. <Column size="100"/>
  24. </Columns>
  25. <Rows>
  26. <Row size="24" band="head"/>
  27. <Row size="24"/>
  28. </Rows>
  29. <Band id="head">
  30. <Cell/>
  31. <Cell col="1" text="환자번호"/>
  32. <Cell col="2" text="환자명"/>
  33. <Cell col="3" colspan="2" text="내원일시" taborder="undefined"/>
  34. <Cell col="5" text="전송상태"/>
  35. <Cell col="6" colspan="2" text="퇴실일시" taborder="undefined"/>
  36. <Cell col="8" text="응급진료결과"/>
  37. <Cell col="9" colspan="2" text="퇴원일시" taborder="undefined"/>
  38. <Cell col="11" text="퇴원결과"/>
  39. </Band>
  40. <Band id="body">
  41. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  42. <Cell col="1" style="padding:0 0 0 5;" text="bind:ptmiidno"/>
  43. <Cell col="2" text="bind:ptminame"/>
  44. <Cell col="3" displaytype="expr:utlf_isNull(ptmiindt) ? 'normal' : 'date'" text="bind:ptmiindt"/>
  45. <Cell col="4" text="bind:ptmiintm" mask="99:99" maskchar=" "/>
  46. <Cell col="5" displaytype="combo" edittype="combo" style="padding:0 0 0 5;" text="bind:ptmistat" combodataset="ds_init_ptmistat" combocodecol="cdid" combodatacol="cdnm"/>
  47. <Cell col="6" displaytype="expr:utlf_isNull(ptmiotdt) ? 'normal' : 'date'" text="bind:ptmiotdt"/>
  48. <Cell col="7" text="bind:ptmiottm" mask="99:99" maskchar=" "/>
  49. <Cell col="8" displaytype="combo" edittype="combo" style="padding:0 0 0 5;" text="bind:ptmiemrt" combodataset="ds_init_ptmiemrt" combocodecol="cdid" combodatacol="cdnm"/>
  50. <Cell col="9" displaytype="expr:utlf_isNull(ptmidcdt) ? 'normal' : 'date'" text="bind:ptmidcdt" maskchar=" " calendardisplaynulltype="default"/>
  51. <Cell col="10" text="bind:ptmidctm" mask="99:99" maskchar=" "/>
  52. <Cell col="11" displaytype="combo" edittype="combo" style="padding:0 0 0 5;" text="bind:ptmidcrt" combodataset="ds_init_ptmidcrt" combocodecol="cdid" combodatacol="cdnm"/>
  53. </Band>
  54. </Format>
  55. </Formats>
  56. </Grid>
  57. <Div id="group3" taborder="2" class="div_SA" position="absolute 0 25 930 65" anchor="left top right">
  58. <Layouts>
  59. <Layout>
  60. <Button id="btn_srchindxcd" taborder="0" text="조회" class="btn1" position="absolute 696 10 752 32" anchor="top right" onclick="group3_btn_srchindxcd_onclick"/>
  61. <Shape id="line27" linetype="vertical" class="line_4" position="absolute 680 10 686 32" anchor="top right"/>
  62. <Static id="caption1" text="기 간 :" class="search_name" position="absolute 19 13 74 30" anchor="default"/>
  63. <Calendar id="input1" taborder="1" class="input_s_essential" position="absolute 81 10 186 32" anchor="default" dateformat="yyyy-MM-dd" value="null" tabstop="true" autoselect="true" autoskip="true"/>
  64. <Button id="btn_save" taborder="3" text="수정 없는 재검토 확인" class="btn2" position="absolute 758 10 916 32" anchor="top right" onclick="group3_btn_save_onclick"/>
  65. <Calendar id="input2" taborder="2" class="input_s_essential" position="absolute 211 10 316 32" anchor="default" dateformat="yyyy-MM-dd" autoselect="true"/>
  66. <Static id="caption3" text="~" position="absolute 193 11 206 31" anchor="default"/>
  67. <Radio id="Radio00" taborder="4" columncount="2" rowcount="0" position="absolute 345 12 529 34" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group3_Radio00_onitemchanged">
  68. <Dataset id="innerdataset">
  69. <ColumnInfo>
  70. <Column id="codecolumn" size="256"/>
  71. <Column id="datacolumn" size="256"/>
  72. </ColumnInfo>
  73. <Rows>
  74. <Row>
  75. <Col id="codecolumn">PTMI</Col>
  76. <Col id="datacolumn">네디스</Col>
  77. </Row>
  78. <Row>
  79. <Col id="codecolumn">TRMS</Col>
  80. <Col id="datacolumn">외상등록체계</Col>
  81. </Row>
  82. </Rows>
  83. </Dataset>
  84. </Radio>
  85. </Layout>
  86. </Layouts>
  87. </Div>
  88. <Shape id="line13" class="line_10" position="absolute 0 69 930 75" anchor="left top right"/>
  89. </Layout>
  90. </Layouts>
  91. <Objects>
  92. <Dataset id="ds_main_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  93. <ColumnInfo>
  94. <Column id="chk" type="STRING"/>
  95. <Column id="ptmiidno" type="STRING"/>
  96. <Column id="ptmiindt" type="STRING"/>
  97. <Column id="ptmiintm" type="STRING"/>
  98. <Column id="ptmistat" type="STRING"/>
  99. <Column id="ptmiotdt" type="STRING"/>
  100. <Column id="ptmiottm" type="STRING"/>
  101. <Column id="ptmiemrt" type="STRING"/>
  102. <Column id="ptmidcdt" type="STRING"/>
  103. <Column id="ptmidctm" type="STRING"/>
  104. <Column id="ptmidcrt" type="STRING"/>
  105. </ColumnInfo>
  106. </Dataset>
  107. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  108. <ColumnInfo>
  109. <Column id="sdate" type="STRING" size="256"/>
  110. <Column id="edate" type="STRING" size="256"/>
  111. <Column id="flag" type="STRING" size="256"/>
  112. </ColumnInfo>
  113. <Rows>
  114. <Row/>
  115. </Rows>
  116. </Dataset>
  117. <Dataset id="ds_init_ptmistat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  118. <ColumnInfo>
  119. <Column id="cdid" type="STRING" size="256"/>
  120. <Column id="cdnm" type="STRING" size="256"/>
  121. </ColumnInfo>
  122. <Rows>
  123. <Row>
  124. <Col id="cdnm">재검토필요(퇴실후)</Col>
  125. <Col id="cdid">B</Col>
  126. </Row>
  127. <Row>
  128. <Col id="cdnm">재검토필요(퇴원후)</Col>
  129. <Col id="cdid">N</Col>
  130. </Row>
  131. </Rows>
  132. </Dataset>
  133. <Dataset id="ds_init_ptmiemrt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  134. <ColumnInfo>
  135. <Column id="cdnm" type="STRING" size="256"/>
  136. <Column id="cdid" type="STRING" size="256"/>
  137. </ColumnInfo>
  138. <Rows>
  139. <Row>
  140. <Col id="cdnm">증상이 호전되어 귀가</Col>
  141. <Col id="cdid">11</Col>
  142. </Row>
  143. <Row>
  144. <Col id="cdnm">말기질환으로 귀가(가정간호 등)</Col>
  145. <Col id="cdid">12</Col>
  146. </Row>
  147. <Row>
  148. <Col id="cdnm">가망 없는 퇴원(hopeless discharge)</Col>
  149. <Col id="cdid">13</Col>
  150. </Row>
  151. <Row>
  152. <Col id="cdnm">자의 퇴원</Col>
  153. <Col id="cdid">14</Col>
  154. </Row>
  155. <Row>
  156. <Col id="cdnm">외래방문 후 귀가</Col>
  157. <Col id="cdid">15</Col>
  158. </Row>
  159. <Row>
  160. <Col id="cdnm">기타 다른 상태로 귀가</Col>
  161. <Col id="cdid">18</Col>
  162. </Row>
  163. <Row>
  164. <Col id="cdnm">병실부족 전원</Col>
  165. <Col id="cdid">21</Col>
  166. </Row>
  167. <Row>
  168. <Col id="cdnm">중환자실 부족 전원</Col>
  169. <Col id="cdid">22</Col>
  170. </Row>
  171. <Row>
  172. <Col id="cdnm">당장 응급 수술/처치 불가 전원</Col>
  173. <Col id="cdid">23</Col>
  174. </Row>
  175. <Row>
  176. <Col id="cdnm">전문 응급의료를 요하여 상급병원 전원</Col>
  177. <Col id="cdid">24</Col>
  178. </Row>
  179. <Row>
  180. <Col id="cdnm">경증으로 1,2차 의료기관 전원</Col>
  181. <Col id="cdid">25</Col>
  182. </Row>
  183. <Row>
  184. <Col id="cdnm">장기 시설로 전원</Col>
  185. <Col id="cdid">26</Col>
  186. </Row>
  187. <Row>
  188. <Col id="cdnm">환자 사정으로 전원</Col>
  189. <Col id="cdid">27</Col>
  190. </Row>
  191. <Row>
  192. <Col id="cdnm">기타 다른 사유로 전원</Col>
  193. <Col id="cdid">28</Col>
  194. </Row>
  195. <Row>
  196. <Col id="cdnm">일반병실로 입원</Col>
  197. <Col id="cdid">31</Col>
  198. </Row>
  199. <Row>
  200. <Col id="cdnm">중환자실로 입원</Col>
  201. <Col id="cdid">32</Col>
  202. </Row>
  203. <Row>
  204. <Col id="cdnm">수술실로 간 후 병실로 입원</Col>
  205. <Col id="cdid">33</Col>
  206. </Row>
  207. <Row>
  208. <Col id="cdnm">수술실로 간 후 중환자실로 입원</Col>
  209. <Col id="cdid">34</Col>
  210. </Row>
  211. <Row>
  212. <Col id="cdnm">기타 다른 사유로 입원</Col>
  213. <Col id="cdid">38</Col>
  214. </Row>
  215. <Row>
  216. <Col id="cdnm">내원 시 이미 사망한 상태(DOA)</Col>
  217. <Col id="cdid">41</Col>
  218. </Row>
  219. <Row>
  220. <Col id="cdnm">응급실에서 DNR로 사망</Col>
  221. <Col id="cdid">42</Col>
  222. </Row>
  223. <Row>
  224. <Col id="cdnm">응급실에서 CPR 후 사망</Col>
  225. <Col id="cdid">43</Col>
  226. </Row>
  227. <Row>
  228. <Col id="cdnm">기타 다른 사유로 사망</Col>
  229. <Col id="cdid">48</Col>
  230. </Row>
  231. <Row>
  232. <Col id="cdnm">기타</Col>
  233. <Col id="cdid">88</Col>
  234. </Row>
  235. <Row>
  236. <Col id="cdnm">미상</Col>
  237. <Col id="cdid">99</Col>
  238. </Row>
  239. </Rows>
  240. </Dataset>
  241. <Dataset id="ds_init_ptmidcrt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  242. <ColumnInfo>
  243. <Column id="cdnm" type="STRING" size="256"/>
  244. <Column id="cdid" type="STRING" size="256"/>
  245. </ColumnInfo>
  246. <Rows>
  247. <Row>
  248. <Col id="cdnm">정상퇴원</Col>
  249. <Col id="cdid">1</Col>
  250. </Row>
  251. <Row>
  252. <Col id="cdnm">자의퇴원</Col>
  253. <Col id="cdid">2</Col>
  254. </Row>
  255. <Row>
  256. <Col id="cdnm">전원</Col>
  257. <Col id="cdid">3</Col>
  258. </Row>
  259. <Row>
  260. <Col id="cdnm">사망</Col>
  261. <Col id="cdid">4</Col>
  262. </Row>
  263. <Row>
  264. <Col id="cdnm">탈원</Col>
  265. <Col id="cdid">5</Col>
  266. </Row>
  267. <Row>
  268. <Col id="cdnm">가망없는 퇴원</Col>
  269. <Col id="cdid">6</Col>
  270. </Row>
  271. <Row>
  272. <Col id="cdnm">기타</Col>
  273. <Col id="cdid">8</Col>
  274. </Row>
  275. </Rows>
  276. </Dataset>
  277. <Dataset id="ds_cond_emcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  278. <Dataset id="ds_send_srchdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  279. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  280. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  281. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  282. <Dataset id="ds_temp_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  283. </Objects>
  284. <Bind>
  285. <BindItem id="item0" compid="group3.input1" propid="value" datasetid="ds_cond" columnid="sdate"/>
  286. <BindItem id="item1" compid="group3.input2" propid="value" datasetid="ds_cond" columnid="edate"/>
  287. <BindItem id="item2" compid="group3.Radio00" propid="value" datasetid="ds_cond" columnid="flag"/>
  288. </Bind>
  289. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  290. * System Name :
  291. * Job Name :
  292. * Creator :
  293. * Make Date : 2015-11-13
  294. * Description :
  295. *---------------------------------------------------------------------------------------
  296. * Modify Date Modifier Modify Description
  297. *---------------------------------------------------------------------------------------
  298. * 2015-11-13 Live Converter TF->XP
  299. *
  300. *---------------------------------------------------------------------------------------
  301. ****************************************************************************************/
  302. include "com_commonxp::comm_main.xjs";
  303. var arErrorCode = new HashArray();
  304. /******************************************************************
  305. * Argument :
  306. * Description : 초기화
  307. ******************************************************************/
  308. function SMMNE09500_oninit(obj:Form, e:InitEventInfo)
  309. {
  310. frmf_initForm(obj);
  311. }
  312. function SMMNE09500_onload(obj:Form, e:LoadEventInfo)
  313. {
  314. ds_cond.setColumn(0, "flag", "PTMI");
  315. var workdd = utlf_getCurrentDate();
  316. ds_cond.setColumn(0, "sdate", workdd);
  317. ds_cond.setColumn(0, "edate", workdd);
  318. var oParam = {};
  319. oParam.id = "TRMNE09502";
  320. oParam.service = "ercareapp.ERPatMngt";
  321. oParam.method = "regGetEmcdForNedis";
  322. oParam.inds = "";
  323. oParam.outds = "ds_cond_emcdinfo=emcdinfo";
  324. oParam.async = false;
  325. //oParam.callback = "cf_TRMNE09502";
  326. tranf_submit(oParam);
  327. }
  328. /******************************************************************
  329. * Argument :
  330. * Description : 조회 button event
  331. ******************************************************************/
  332. function group3_btn_srchindxcd_onclick(obj:Button, e:ClickEventInfo)
  333. {
  334. ds_send_srchdata.clear();
  335. ds_send_srchdata.copyData(ds_cond);
  336. ds_send_srchdata.addColumn("emcd", "string", 256);
  337. ds_send_srchdata.setColumn(0, "emcd", ds_cond_emcdinfo.getColumn(0, "emcd"));
  338. // 20200211 김현석, 재검토 내역 중 외상등록체계도 추가. 요청번호:20200206038
  339. if ( ds_cond.getColumn(0, "flag") == "PTMI")
  340. {
  341. var oParam = {};
  342. oParam.id = "TRMNE09501";
  343. oParam.service = "ercareapp.ERPatMngt";
  344. oParam.method = "reqGetNedisReviewPlist";
  345. oParam.inds = "req=ds_send_srchdata";
  346. oParam.outds = "ds_main_patlist=patlist";
  347. oParam.async = false;
  348. //oParam.callback = "cf_TRMNE09501";
  349. } else if ( ds_cond.getColumn(0, "flag") == "TRMS")
  350. {
  351. var oParam = {};
  352. oParam.id = "TRMNE09504";
  353. oParam.service = "ercareapp.ERPatMngt";
  354. oParam.method = "reqGetTrReviewPlist";
  355. oParam.inds = "req=ds_send_srchdata";
  356. oParam.outds = "ds_main_patlist=patlist";
  357. oParam.async = false;
  358. //oParam.callback = "cf_TRMNE09501";
  359. }
  360. tranf_submit(oParam);
  361. }
  362. /******************************************************************
  363. * Argument :
  364. * Description : 수정 없는 재검토 확인 button event
  365. ******************************************************************/
  366. function group3_btn_save_onclick(obj:Button, e:ClickEventInfo)
  367. {
  368. ds_send_savedata.clear();
  369. ds_send_savedata.addColumn("ptmiemcd", "string", 256);
  370. ds_send_savedata.addColumn("ptmiidno", "string", 256);
  371. ds_send_savedata.addColumn("ptmiindt", "string", 256);
  372. ds_send_savedata.addColumn("ptmiintm", "string", 256);
  373. ds_send_savedata.addColumn("ptmistat", "string", 256);
  374. ds_send_savedata.addColumn("sendstat", "string", 256);
  375. var cnt = ds_main_patlist.rowcount;
  376. var sData = "";
  377. var ptmiemcd = ds_cond_emcdinfo.getColumn(0, "emcd");
  378. var ptmiidno, ptmiindt, ptmiintm, ptmistat, sendstat;
  379. for( var i = 0; i < cnt; i++ ) {
  380. if( ds_main_patlist.getColumn(i, "chk") == "1" ) {
  381. var iRow = ds_send_savedata.addRow();
  382. ds_send_savedata.setColumn(iRow, "ptmiemcd", ptmiemcd);
  383. ds_send_savedata.setColumn(iRow, "ptmiidno", ds_main_patlist.getColumn(i, "ptmiidno"));
  384. ds_send_savedata.setColumn(iRow, "ptmiindt", ds_main_patlist.getColumn(i, "ptmiindt"));
  385. ds_send_savedata.setColumn(iRow, "ptmiintm", ds_main_patlist.getColumn(i, "ptmiintm"));
  386. ds_send_savedata.setColumn(iRow, "ptmistat", ds_main_patlist.getColumn(i, "ptmistat"));
  387. ds_send_savedata.setColumn(iRow, "sendstat", "O");
  388. }
  389. }
  390. // 20200211 김현석, 재검토 내역 중 외상등록체계도 추가. 요청번호:20200206038
  391. if ( ds_cond.getColumn(0, "flag") == "PTMI")
  392. {
  393. var oParam = {};
  394. oParam.id = "TXMNE09501";
  395. oParam.service = "ercareapp.ERPatMngt";
  396. oParam.method = "reqSetNedisReviewPlist";
  397. oParam.inds = "savedata=ds_send_savedata";
  398. oParam.outds = "ds_temp=item";
  399. oParam.async = false;
  400. oParam.callback = "cf_TXMNE09501";
  401. } else if ( ds_cond.getColumn(0, "flag") == "TRMS")
  402. {
  403. var oParam = {};
  404. oParam.id = "TXMNE09501";
  405. oParam.service = "ercareapp.ERPatMngt";
  406. oParam.method = "reqSetTrReviewPlist";
  407. oParam.inds = "savedata=ds_send_savedata";
  408. oParam.outds = "ds_temp=item";
  409. oParam.async = false;
  410. oParam.callback = "cf_TXMNE09501";
  411. }
  412. tranf_submit(oParam);
  413. if( arErrorCode.pop("TXMNE09501") > -1 ) {
  414. frmf_inputEnterKey("group3.btn_srchindxcd", "onclick", new ClickEventInfo);
  415. } else {
  416. sysf_messageBox("전송에 실패하였습니다", "E999");
  417. }
  418. }
  419. function cf_TXMNE09501(sSvcId, nErrorCode, sErrorMsg) {
  420. arErrorCode.push(sSvcId, nErrorCode);
  421. }
  422. /******************************************************************
  423. * Argument :
  424. * Description : list 상세조회 event
  425. ******************************************************************/
  426. function grd_patlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  427. {
  428. var cRow = ds_main_patlist.rowposition;
  429. if( cRow < 0 ){
  430. return;
  431. }
  432. var pid = ds_main_patlist.getColumn(cRow, "ptmiidno");
  433. var orddd = ds_main_patlist.getColumn(cRow, "ptmiindt");
  434. ds_send_reqdata.clear();
  435. ds_send_reqdata.addColumn("pid", "string", 256);
  436. ds_send_reqdata.addColumn("orddd", "string", 256);
  437. var iRow = ds_send_reqdata.addRow();
  438. ds_send_reqdata.setColumn(iRow, "pid", pid);
  439. ds_send_reqdata.setColumn(iRow, "orddd", orddd);
  440. var oParam = {};
  441. oParam.id = "TRMNE09503";
  442. oParam.service = "ercareapp.ERPatMngt";
  443. oParam.method = "regGetPatinfoForTriage";
  444. oParam.inds = "req=ds_send_reqdata";
  445. oParam.outds = "ds_temp_patinfo=patinfo";
  446. oParam.async = false;
  447. //oParam.callback = "cf_TRMNE09503";
  448. tranf_submit(oParam);
  449. if( ds_temp_patinfo.rowcount > 0 ){
  450. var paramstr = ds_temp_patinfo.getColumn(0, "pid") + "▦" +
  451. ds_temp_patinfo.getColumn(0, "orddd") + "▦" +
  452. ds_temp_patinfo.getColumn(0, "cretno") + "▦" +
  453. ds_temp_patinfo.getColumn(0, "sex") + "▦" +
  454. ds_temp_patinfo.getColumn(0, "age") + "▦" +
  455. "▦" +
  456. ds_temp_patinfo.getColumn(0, "patnm") + "▦" +
  457. ds_temp_patinfo.getColumn(0, "orddeptcd") + "▦" +
  458. ds_temp_patinfo.getColumn(0, "orddeptnm") + "▦" +
  459. ds_temp_patinfo.getColumn(0, "orddrid") ;
  460. frmf_setParameter("SPMNE04400_param", paramstr);
  461. frmf_modal("SPMNE04400", "SPMNE04400", null, null, null, null, null, null, null, null, null, null, "M");
  462. frmf_setParameter("SPMNE04400_param", "");
  463. }
  464. }
  465. var lastrow1 = -1;
  466. var lastcol1 = -1;
  467. var bDrop1 = false;
  468. function grd_patlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  469. {
  470. lastrow1 = -1;
  471. lastcol1 = -1;
  472. }
  473. function grd_patlist_oncloseup(obj:Grid, e:GridEditEventInfo)
  474. {
  475. var dsGridBind = eval(obj.binddataset);
  476. var preVal = utlf_transNullToEmpty(dsGridBind.getColumn(e.row, e.col));
  477. var posVal = utlf_transNullToEmpty(e.value);
  478. if( bDrop1 == true && (!utlf_isNull(posVal) || preVal != posVal) ){
  479. obj.showEditor(false);
  480. }
  481. bDrop1 = false;
  482. lastrow1 = e.row;
  483. lastcol1 = e.col;
  484. }
  485. function grd_patlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  486. {
  487. grdf_setSelectedCell(obj, e);
  488. var dsGridBind = eval(obj.binddataset);
  489. // Combo DropDown Click 처리
  490. obj.autoenter = "key";
  491. if( e.fromreferenceobject.name == "dropbutton" ){
  492. bDrop1 = true;
  493. }
  494. if( e.row > -1 && obj.getCellProperty("body", e.col, "edittype") == "combo" ){
  495. // Combo 선택시 활성화 및 combodatacol 변경
  496. if( grdf_getSelectedCols(obj).length == 0 && grdf_getSelectedRows(obj).length == 0 && obj.getEditText() == undefined ){
  497. obj.showEditor(true);
  498. }else{
  499. if(!obj.isDropdownCombo() && (lastrow1 != e.row || lastcol1 != e.col)) {
  500. obj.setCellPos(e.col);
  501. dsGridBind.rowposition = e.row;
  502. obj.showEditor(true);
  503. if(bDrop1) {
  504. obj.dropdownCombo();
  505. }
  506. }
  507. }
  508. }else{
  509. obj.autoenter = "key";
  510. }
  511. }
  512. function group3_Radio00_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  513. {
  514. group3_btn_srchindxcd_onclick(null, null);
  515. }
  516. ]]></Script>
  517. </Form>
  518. </FDL>