SMMNE04100_응급진료정보전송.xfdl 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE04100" position="absolute 0 0 1196 783" titletext="응급진료정보 미전송내역" oninit="SMMNE04100_oninit" onload="SMMNE04100_onload" ontimer="SMMNE04100_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group6" taborder="0" position="absolute 0 25 1194 65" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption15" class="search_name" position="absolute 6 11 12 28" anchor="default"/>
  11. <Combo id="combo3" taborder="1" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 17 9 102 30" anchor="default">
  12. <Dataset id="innerdataset">
  13. <ColumnInfo>
  14. <Column id="codecolumn"/>
  15. <Column id="datacolumn"/>
  16. </ColumnInfo>
  17. <Rows>
  18. <Row>
  19. <Col id="codecolumn">1</Col>
  20. <Col id="datacolumn">퇴원일</Col>
  21. </Row>
  22. <Row>
  23. <Col id="codecolumn">2</Col>
  24. <Col id="datacolumn">내원일</Col>
  25. </Row>
  26. </Rows>
  27. </Dataset>
  28. </Combo>
  29. <Calendar id="input1" taborder="2" class="input_s_essential" position="absolute 109 9 204 30" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true"/>
  30. <Static id="caption16" text="~" position="absolute 208 14 216 27" anchor="default"/>
  31. <Calendar id="input2" taborder="3" class="input_s_essential" position="absolute 220 9 315 30" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  32. <Radio id="radio2" taborder="4" columncount="4" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 394 10 662 30" anchor="default" visible="false">
  33. <Dataset id="innerdataset">
  34. <ColumnInfo>
  35. <Column id="codecolumn"/>
  36. <Column id="datacolumn"/>
  37. </ColumnInfo>
  38. <Rows>
  39. <Row>
  40. <Col id="codecolumn">A</Col>
  41. <Col id="datacolumn">전체</Col>
  42. </Row>
  43. <Row>
  44. <Col id="codecolumn">E</Col>
  45. <Col id="datacolumn">전송실패</Col>
  46. </Row>
  47. <Row>
  48. <Col id="codecolumn">Y</Col>
  49. <Col id="datacolumn">전송대기</Col>
  50. </Row>
  51. <Row>
  52. <Col id="codecolumn">T</Col>
  53. <Col id="datacolumn">전송완료</Col>
  54. </Row>
  55. </Rows>
  56. </Dataset>
  57. </Radio>
  58. <Edit id="ipt_pid" taborder="5" position="absolute 391 8 471 30" anchor="default" onkeyup="group6_ipt_pid_onkeyup" autoselect="true"/>
  59. <Button id="button2" taborder="6" text="조회" class="btn1" position="absolute 848 10 904 32" anchor="top right" onclick="group6_button2_onclick"/>
  60. <Button id="button7" taborder="7" text="출력" class="btn6" position="absolute 1049 10 1105 32" anchor="top right" onclick="group6_button7_onclick"/>
  61. <Button id="button8" taborder="8" text="엑셀저장" class="btn7" position="absolute 1108 10 1188 32" anchor="top right" onclick="group6_button8_onclick"/>
  62. <Shape id="line5" linetype="vertical" class="line_4" position="absolute 838 10 844 32" anchor="top right"/>
  63. <Button id="button6" taborder="9" text="전송준비" class="btn2" position="absolute 907 10 987 32" anchor="top right" onclick="group6_button6_onclick"/>
  64. <Button id="btn_send" taborder="10" text="전송" class="btn5" enable="false" position="absolute 990 10 1046 32" anchor="top right" onclick="group6_btn_send_onclick"/>
  65. <Static id="caption17" text="검색조건 :" class="search_name" position="absolute 319 12 390 29" anchor="default" visible="false"/>
  66. <Static id="caption20" text="환자번호 :" class="search_name" position="absolute 319 11 390 29" anchor="default"/>
  67. </Layout>
  68. </Layouts>
  69. </Div>
  70. <Shape id="line6" linetype="horizontal" class="line_1" position="absolute 0 93 1194 99" anchor="left top right"/>
  71. <Grid id="grd_datagrid3" taborder="1" binddataset="ds_main_trsmlistinfo" useinputpanel="false" position="absolute 0 99 1194 769" autofittype="col" anchor="all" oncelldblclick="grd_datagrid3_oncelldblclick" cellsizingtype="col">
  72. <Formats>
  73. <Format id="default">
  74. <Columns>
  75. <Column size="20"/>
  76. <Column size="46"/>
  77. <Column size="80"/>
  78. <Column size="100"/>
  79. <Column size="90"/>
  80. <Column size="60"/>
  81. <Column size="100"/>
  82. <Column size="100"/>
  83. <Column size="60"/>
  84. <Column size="275"/>
  85. <Column size="85"/>
  86. <Column size="85"/>
  87. <Column size="85"/>
  88. <Column size="0"/>
  89. <Column size="0"/>
  90. <Column size="0"/>
  91. </Columns>
  92. <Rows>
  93. <Row size="24" band="head"/>
  94. <Row size="24"/>
  95. </Rows>
  96. <Band id="head">
  97. <Cell/>
  98. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  99. <Cell col="2" text="전송상태"/>
  100. <Cell col="3" text="NEDIS상태"/>
  101. <Cell col="4" text="내원일자"/>
  102. <Cell col="5" text="내원시간"/>
  103. <Cell col="6" text="등록번호"/>
  104. <Cell col="7" text="환자명"/>
  105. <Cell col="8" text="S/A"/>
  106. <Cell col="9" text="전송상세내역"/>
  107. <Cell col="10" text="수정일자"/>
  108. <Cell col="11" text="퇴실일자"/>
  109. <Cell col="12" text="퇴원일자"/>
  110. <Cell col="13" text="생성번호"/>
  111. <Cell col="14" text="입실일자"/>
  112. <Cell col="15"/>
  113. </Band>
  114. <Band id="body">
  115. <Cell celltype="head" expr="expr:currow + 1"/>
  116. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:boolflag" expr="expr:boolflag == 'Y' || boolflag == '1' ? '1' : '0'"/>
  117. <Cell col="2" displaytype="combo" style="align:center middle;color:EXPR(eragstat == 'E' ? '#ff0000' : eragstat == 'T' ? '#0000ff' : '');color2:EXPR(eragstat == 'E' ? '#ff0000' : eragstat == 'T' ? '#0000ff' : '');" text="bind:eragstat" combodataset="ds_hidden_trsmitem" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  118. <Cell col="3" displaytype="combo" style="align:center;" text="bind:ptmistat" combodataset="ds_ptmistat" combocodecol="value" combodatacol="label" combodisplayrowcount="20"/>
  119. <Cell col="4" displaytype="expr:utlf_isNull(eragindt) ? '' : 'date'" text="bind:eragindt"/>
  120. <Cell col="5" displaytype="text" style="align:center middle;" text="bind:eragintm" mask="expr:utlf_isNull(eragintm) ? '' : '99:99'"/>
  121. <Cell col="6" text="bind:eragidno"/>
  122. <Cell col="7" text="bind:patnm"/>
  123. <Cell col="8" text="bind:grdrage"/>
  124. <Cell col="9" style="align:left middle;padding:0 0 0 5;" text="bind:eragcmmt"/>
  125. <Cell col="10" displaytype="expr:utlf_isNull(eragupdt) ? '' : 'date'" text="bind:eragupdt"/>
  126. <Cell col="11" displaytype="expr:utlf_isNull(eroutdt) ? '' : 'date'" text="bind:eroutdt"/>
  127. <Cell col="12" displaytype="expr:utlf_isNull(eragoudd) ? '' : 'date'" text="bind:eragoudd"/>
  128. <Cell col="13" text="bind:cretno"/>
  129. <Cell col="14" text="bind:indd"/>
  130. <Cell col="15" text="bind:ordtype"/>
  131. </Band>
  132. </Format>
  133. </Formats>
  134. </Grid>
  135. <Static id="caption18" text="응급진료정보 전송내역&#13;&#10; if(button5.attribute(&quot;visibility&quot;) == &quot;hidden&quot; ){&#13;&#10; button5.attribute(&quot;visibility&quot;) = &quot;visible&quot;; &#13;&#10; }else{&#13;&#10; button5.attribute(&quot;visibility&quot;) = &quot;hidden&quot;; &#13;&#10; } &#13;&#10; " class="tit_2" position="absolute 0 78 155 96"/>
  136. <Button id="button10" taborder="2" text="WEB LINK" class="btn2" position="absolute 1119 72 1194 94" anchor="top right" onclick="button10_onclick"/>
  137. <Static id="caption19" text="국가 응급환자 진료정보망(NEDIS)&#13;&#10; if(button5.attribute(&quot;visibility&quot;) == &quot;hidden&quot; ){&#13;&#10; button5.attribute(&quot;visibility&quot;) = &quot;visible&quot;; &#13;&#10; }else{&#13;&#10; button5.attribute(&quot;visibility&quot;) = &quot;hidden&quot;; &#13;&#10; } &#13;&#10; " class="tit_2" position="absolute 888 78 1114 94" anchor="top right"/>
  138. <Button id="button5" taborder="3" text="검색내역 재전송준비" class="btn2" visible="false" position="absolute 165 72 293 94" onclick="button5_onclick"/>
  139. <Static id="caption1" text="[표]" position="absolute 1171 771 1196 783" anchor="right bottom"/>
  140. <Static id="caption6" text="응급진료정보 미전송내역" class="tit_1" position="absolute 0 0 189 25"/>
  141. <Shape id="line00" class="line_10" position="absolute 0 94 1194 100" anchor="left top right"/>
  142. <Button id="btn_text" taborder="4" text="Button00" position="absolute 890 77 1110 92" style="background:transparent;border:1 none transparent transparent;color:transparent;gradation:none 0,0 white 100,100 black;" ondblclick="btn_text_ondblclick"/>
  143. </Layout>
  144. </Layouts>
  145. <Objects>
  146. <Dataset id="ds_main_trsmlistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  147. <ColumnInfo>
  148. <Column id="boolflag" type="STRING"/>
  149. <Column id="eragstat" type="STRING"/>
  150. <Column id="eragindt" type="STRING"/>
  151. <Column id="eragintm" type="STRING"/>
  152. <Column id="eragidno" type="STRING"/>
  153. <Column id="patnm" type="STRING"/>
  154. <Column id="grdrage" type="STRING"/>
  155. <Column id="eragcmmt" type="STRING"/>
  156. <Column id="eragupdt" type="STRING"/>
  157. <Column id="eroutdt" type="STRING"/>
  158. <Column id="eragoudd" type="STRING"/>
  159. <Column id="cretno" type="STRING"/>
  160. <Column id="indd" type="STRING"/>
  161. <Column id="ordtype" type="STRING"/>
  162. <Column id="ptmistat" type="STRING"/>
  163. <Column id="ptmiotdt" type="STRING"/>
  164. <Column id="ptmidcdt" type="STRING"/>
  165. </ColumnInfo>
  166. </Dataset>
  167. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  168. <ColumnInfo>
  169. <Column id="fromdd" type="STRING" size="256"/>
  170. <Column id="todd" type="STRING" size="256"/>
  171. <Column id="srchflag" type="STRING" size="256"/>
  172. <Column id="pid" type="STRING" size="256"/>
  173. <Column id="srchkind" type="STRING" size="256"/>
  174. </ColumnInfo>
  175. <Rows>
  176. <Row>
  177. <Col id="srchflag">A</Col>
  178. <Col id="srchkind">2</Col>
  179. </Row>
  180. </Rows>
  181. </Dataset>
  182. <Dataset id="ds_hidden_trsmitem" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  183. <ColumnInfo>
  184. <Column id="cdid" type="STRING" size="256"/>
  185. <Column id="cdnm" type="STRING" size="256"/>
  186. </ColumnInfo>
  187. <Rows>
  188. <Row>
  189. <Col id="cdid">Y</Col>
  190. <Col id="cdnm">전송완료</Col>
  191. </Row>
  192. <Row>
  193. <Col id="cdid">E</Col>
  194. <Col id="cdnm">전송에러</Col>
  195. </Row>
  196. <Row>
  197. <Col id="cdid">N</Col>
  198. <Col id="cdnm">전송대기</Col>
  199. </Row>
  200. <Row>
  201. <Col id="cdid">F</Col>
  202. <Col id="cdnm">전송대기</Col>
  203. </Row>
  204. </Rows>
  205. </Dataset>
  206. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  207. <Dataset id="ds_temp_trsmlistinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  208. <Dataset id="ds_ptmistat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  209. <ColumnInfo>
  210. <Column id="label" type="STRING" size="256"/>
  211. <Column id="value" type="STRING" size="256"/>
  212. </ColumnInfo>
  213. <Rows>
  214. <Row>
  215. <Col id="label">전송오류</Col>
  216. <Col id="value">E</Col>
  217. </Row>
  218. <Row>
  219. <Col id="label">삭제</Col>
  220. <Col id="value">K</Col>
  221. </Row>
  222. <Row>
  223. <Col id="label">실시간전송</Col>
  224. <Col id="value">H</Col>
  225. </Row>
  226. <Row>
  227. <Col id="label">퇴실전송</Col>
  228. <Col id="value">G</Col>
  229. </Row>
  230. <Row>
  231. <Col id="label">재검토필요</Col>
  232. <Col id="value">B</Col>
  233. </Row>
  234. <Row>
  235. <Col id="label">재검토필요</Col>
  236. <Col id="value">Y</Col>
  237. </Row>
  238. <Row>
  239. <Col id="label">퇴원전송</Col>
  240. <Col id="value">S</Col>
  241. </Row>
  242. <Row>
  243. <Col id="label">재검토필요</Col>
  244. <Col id="value">N</Col>
  245. </Row>
  246. <Row>
  247. <Col id="label">재검토필요</Col>
  248. <Col id="value">Z</Col>
  249. </Row>
  250. <Row>
  251. <Col id="label">기타</Col>
  252. <Col id="value">AA</Col>
  253. </Row>
  254. <Row>
  255. <Col id="label"/>
  256. <Col id="value"/>
  257. </Row>
  258. </Rows>
  259. </Dataset>
  260. </Objects>
  261. <Bind>
  262. <BindItem id="item0" compid="group6.combo3" propid="value" datasetid="ds_main_cond" columnid="srchkind"/>
  263. <BindItem id="item1" compid="group6.input1" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  264. <BindItem id="item2" compid="group6.input2" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  265. <BindItem id="item3" compid="group6.radio2" propid="value" datasetid="ds_main_cond" columnid="srchflag"/>
  266. <BindItem id="item4" compid="group6.ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
  267. </Bind>
  268. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  269. * System Name :
  270. * Job Name :
  271. * Creator :
  272. * Make Date : 2015-11-13
  273. * Description :
  274. *---------------------------------------------------------------------------------------
  275. * Modify Date Modifier Modify Description
  276. *---------------------------------------------------------------------------------------
  277. * 2015-11-13 Live Converter TF->XP
  278. *
  279. *---------------------------------------------------------------------------------------
  280. ****************************************************************************************/
  281. include "com_commonxp::comm_main.xjs";
  282. include "emr_carecomxp::CareCom.xjs";
  283. include "emr_prcpmngtxp::MMO001.xjs";
  284. /******************************************************************
  285. * Argument :
  286. * Description : 초기화
  287. ******************************************************************/
  288. function SMMNE04100_oninit(obj:Form, e:InitEventInfo)
  289. {
  290. frmf_initForm(obj);
  291. }
  292. function SMMNE04100_onload(obj:Form, e:LoadEventInfo)
  293. {
  294. var sUserId = sysf_getUserInfo("userid");
  295. if( lf_ContainsHardCD("486", sUserId) ) { // Nedis 전송가능 사용자 버튼 활성화 2015.04.23 엄영만
  296. group6.btn_send.enable = true;
  297. } else {
  298. group6.btn_send.enable = false;
  299. }
  300. //datagrid3.fixedcellcheckbox(0,1) = true;
  301. //model.removeNodeset("/root/main/trsmlistinfo");
  302. var sTodt = utlf_getCurrentDate();
  303. var sFrdt = getDateAddc(utlf_getCurrentDate(), -7);
  304. ds_main_cond.setColumn(0, "fromdd", sFrdt);
  305. ds_main_cond.setColumn(0, "todd" , sTodt);
  306. //속도개선
  307. this.setTimer(0, 100);
  308. //frmf_inputEnterKey("group6.button2", "onclick", new ClickEventInfo);
  309. //grdf_initGrid(grd_datagrid3);
  310. }
  311. /******************************************************************
  312. * Argument :
  313. * Description : 환자번호
  314. ******************************************************************/
  315. function group6_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
  316. {
  317. if( e.keycode == 13 ){
  318. obj.updateToDataset();
  319. frmf_inputEnterKey("group6.button2", "onclick", new ClickEventInfo);
  320. }
  321. }
  322. /******************************************************************
  323. * Argument :
  324. * Description : 조회 button event
  325. ******************************************************************/
  326. function group6_button2_onclick(obj:Button, e:ClickEventInfo)
  327. {
  328. ds_send.clear();
  329. ds_main_trsmlistinfo.clearData();
  330. ds_send.copyData(ds_main_cond);
  331. var oParam = {};
  332. oParam.id = "TRMNE04101";
  333. oParam.service = "ercareapp.ERPatMngt";
  334. oParam.method = "reqGetTrsmList";
  335. oParam.inds = "req=ds_send";
  336. oParam.outds = "ds_main_trsmlistinfo=trsmlist";
  337. oParam.async = true;
  338. //oParam.callback = "cf_TRMNE04101";
  339. tranf_submit(oParam);
  340. }
  341. /******************************************************************
  342. * Argument :
  343. * Description : 전송준비 button event
  344. ******************************************************************/
  345. function group6_button6_onclick(obj:Button, e:ClickEventInfo)
  346. {
  347. ds_temp_trsmlistinfo.clear();
  348. ds_temp_trsmlistinfo.copyData(ds_main_trsmlistinfo);
  349. ds_temp_trsmlistinfo.filter("boolflag == 'Y' || boolflag == '1'");
  350. if( ds_temp_trsmlistinfo.rowcount == 0 ){
  351. sysf_messageBox("선택한 목록이 존재하지 않습니다.", "I");
  352. return;
  353. }
  354. ds_send.clear();
  355. ds_send.addColumn("batchflag", "string");
  356. ds_send.addColumn("sfrdt", "string");
  357. ds_send.addColumn("stodt", "string");
  358. ds_send.addColumn("boolflag", "string");
  359. ds_send.addColumn("eragstat", "string");
  360. ds_send.addColumn("eragindt", "string");
  361. ds_send.addColumn("eragintm", "string");
  362. ds_send.addColumn("eragidno", "string");
  363. ds_send.addColumn("eragoudd", "string");
  364. ds_send.addColumn("cretno", "string");
  365. ds_send.addColumn("indd", "string");
  366. ds_temp_trsmlistinfo.filter("");
  367. for( var i = 0; i < ds_temp_trsmlistinfo.rowcount; i++ ){
  368. if( ds_temp_trsmlistinfo.getColumn(i, "boolflag") == "Y" || ds_temp_trsmlistinfo.getColumn(i, "boolflag") == "1" ){
  369. ds_temp_trsmlistinfo.setColumn(i, "boolflag", "Y");
  370. }else{
  371. ds_temp_trsmlistinfo.setColumn(i, "boolflag", "N");
  372. }
  373. var addRow = ds_send.addRow();
  374. ds_send.setColumn(addRow, "batchflag", "R");
  375. ds_send.setColumn(addRow, "sfrdt", ds_main_cond.getColumn(0, "fromdd"));
  376. ds_send.setColumn(addRow, "stodt", ds_main_cond.getColumn(0, "todd"));
  377. ds_send.setColumn(addRow, "boolflag", ds_temp_trsmlistinfo.getColumn(i, "boolflag"));
  378. ds_send.setColumn(addRow, "eragstat", ds_temp_trsmlistinfo.getColumn(i, "eragstat"));
  379. ds_send.setColumn(addRow, "eragindt", ds_temp_trsmlistinfo.getColumn(i, "eragindt"));
  380. ds_send.setColumn(addRow, "eragintm", ds_temp_trsmlistinfo.getColumn(i, "eragintm"));
  381. ds_send.setColumn(addRow, "eragidno", ds_temp_trsmlistinfo.getColumn(i, "eragidno"));
  382. ds_send.setColumn(addRow, "eragoudd", ds_temp_trsmlistinfo.getColumn(i, "eragoudd"));
  383. ds_send.setColumn(addRow, "cretno", ds_temp_trsmlistinfo.getColumn(i, "cretno"));
  384. ds_send.setColumn(addRow, "indd", ds_temp_trsmlistinfo.getColumn(i, "indd"));
  385. }
  386. var oParam = {};
  387. oParam.id = "TXMNE04102";
  388. oParam.service = "ercareapp.ERPatMngt";
  389. oParam.method = "reqExeReERBatch";
  390. oParam.inds = "req=ds_send";
  391. oParam.outds = "";
  392. oParam.async = false;
  393. //oParam.callback = "cf_TXMNE04102";
  394. tranf_submit(oParam);
  395. }
  396. /******************************************************************
  397. * Argument :
  398. * Description : 전송 button event
  399. ******************************************************************/
  400. function group6_btn_send_onclick(obj:Button, e:ClickEventInfo)
  401. {
  402. if( "6" == sysf_messageBox("전송 하시겠습니까?", "Q") ) {
  403. var oParam = {};
  404. oParam.id = "TXMNE04103";
  405. oParam.service = "ercareapp.ERPatMngt";
  406. oParam.method = "reqExeEdisAgentBatch";
  407. oParam.inds = "req=ds_send";
  408. oParam.outds = "";
  409. oParam.async = false;
  410. //oParam.callback = "cf_TXMNE04103";
  411. tranf_submit(oParam);
  412. alert("전송이 완료되었습니다.");
  413. }
  414. }
  415. /******************************************************************
  416. * Argument :
  417. * Description : 출력 button event
  418. ******************************************************************/
  419. function group6_button7_onclick(obj:Button, e:ClickEventInfo)
  420. {
  421. if( ds_main_trsmlistinfo.rowcount < 1 ){
  422. sysf_messageBox("출력할 데이터가 존재하지 않습니다.", "E");
  423. return;
  424. }
  425. var objDOM = rptf_createDOM(); // DOM 객체 설정
  426. rptf_setNodeListToDOM(objDOM, "/root/send/trsmlistinfo/trsmlist", ds_main_trsmlistinfo); // 데이터셋 1
  427. rptf_setNodeListToDOM(objDOM, "/root/send/cond", ds_main_cond); // 데이터셋 2
  428. //sysf_trace(objDOM.documentElement.source); // XML 내용출력
  429. var objParam = new Object();
  430. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  431. var option = "open=1;save=1;directprint=0;print=1;zoom=0;excel=1;";
  432. rptf_exeReportPreview30(["RPMNE04100"],[objParam], option, null, null);
  433. }
  434. /******************************************************************
  435. * Argument :
  436. * Description : 엑셀저장 button event
  437. ******************************************************************/
  438. function group6_button8_onclick(obj:Button, e:ClickEventInfo)
  439. {
  440. var srchflag = ds_main_cond.getColumn(0, "srchflag");
  441. var Title = "";
  442. if( srchflag == "A" ){
  443. Title = "응급자료전송(전체 리스트)";
  444. } else if( srchflag == "T" ) {
  445. Title = "응급자료전송(전송완료 리스트)";
  446. } else if( srchflag == "E" ) {
  447. Title = "응급자료전송(전송실패 리스트)";
  448. } else if( srchflag == "Y" ) {
  449. Title = "응급자료전송(전송대기 리스트)";
  450. }
  451. if( ds_main_trsmlistinfo.rowcount > 0 ){
  452. grdf_exportExcel(grd_datagrid3, Title, Title, false, "", "user", false);
  453. } else {
  454. sysf_messageBox("조회된 데이터가 ", "I004");
  455. }
  456. }
  457. /******************************************************************
  458. * Argument :
  459. * Description : 검색내역 재전송준비 button event
  460. ******************************************************************/
  461. function button5_onclick(obj:Button, e:ClickEventInfo)
  462. {
  463. ds_send.clear();
  464. ds_send.addColumn("batchflag", "string");
  465. ds_send.addColumn("sfrdt", "string");
  466. ds_send.addColumn("stodt", "string");
  467. ds_send.addColumn("sptno", "string");
  468. var iRow = ds_send.addRow();
  469. ds_send.setColumn(iRow, "batchflag", "T");
  470. ds_send.setColumn(iRow, "sfrdt", ds_main_cond.getColumn(0, "fromdd") );
  471. ds_send.setColumn(iRow, "stodt", ds_main_cond.getColumn(0, "todd") );
  472. ds_send.setColumn(iRow, "sptno", "9999999999");
  473. var oParam = {};
  474. oParam.id = "TXMNE04101";
  475. oParam.service = "ercareapp.ERPatMngt";
  476. oParam.method = "reqExeERBatch";
  477. oParam.inds = "req=ds_send";
  478. oParam.outds = "";
  479. oParam.async = false;
  480. //oParam.callback = "cf_TXMNE04101";
  481. tranf_submit(oParam);
  482. }
  483. /******************************************************************
  484. * Argument :
  485. * Description : WEB LINK button event
  486. ******************************************************************/
  487. function button10_onclick(obj:Button, e:ClickEventInfo)
  488. {
  489. frmf_openHtml("http://portal.nemc.or.kr/");
  490. }
  491. /******************************************************************
  492. * Argument :
  493. * Description : 국가 응급환자 진료정보망(NEDIS) event
  494. ******************************************************************/
  495. function btn_text_ondblclick(obj:Button, e:MouseEventInfo)
  496. {
  497. if( button5.visible == true ){
  498. button5.visible = false;
  499. } else {
  500. button5.visible = true;
  501. }
  502. }
  503. /******************************************************************
  504. * Argument :
  505. * Description : list event
  506. ******************************************************************/
  507. function grd_datagrid3_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  508. {
  509. if( ds_main_trsmlistinfo.rowcount < 1 ){
  510. return;
  511. }
  512. var cRow = ds_main_trsmlistinfo.rowposition;
  513. var sOrdtype = ds_main_trsmlistinfo.getColumn(cRow, "ordtype");
  514. var sPid = ds_main_trsmlistinfo.getColumn(cRow, "eragidno");
  515. var sIndd = ds_main_trsmlistinfo.getColumn(cRow, "indd");
  516. var sCretno = ds_main_trsmlistinfo.getColumn(cRow, "cretno");
  517. var sInstcd = sysf_getUserInfo("posinstcd");
  518. var sSrcdd = ds_main_trsmlistinfo.getColumn(cRow, "eragoudd");
  519. if(sSrcdd == "99991231"){
  520. sSrcdd = utlf_getCurrentDate();
  521. }
  522. var param = sOrdtype + "▦"
  523. + sPid + "▦"
  524. + sIndd + "▦"
  525. + sCretno + "▦"
  526. + sInstcd + "▦"
  527. + sSrcdd + "▦" ;
  528. // frmf_setParameter("condparam", param);
  529. // frmf_modal("SPMMO08900", "SPMMO08900", null, null, null, null, null, null, null, null, null, null, "M");
  530. appf_initPatientInfo(param); //상단정보 셋팅
  531. sPatInfo = ds_main_trsmlistinfo.getColumn(cRow, "eragidno")+"▦"
  532. + ds_main_trsmlistinfo.getColumn(cRow, "indd")+"▦"
  533. + ds_main_trsmlistinfo.getColumn(cRow, "cretno")+"▦"
  534. + ds_main_trsmlistinfo.getColumn(cRow, "eragindt")
  535. + ds_main_trsmlistinfo.getColumn(cRow, "eragintm") +"▩";
  536. frmf_setParameter("SMMNE001_Param",sPatInfo);
  537. frmf_modal("SMMNE00100", "SMMNE00100", null, null, null, null, null, null, null, null, null, null, "M");
  538. }
  539. function SMMNE04100_ontimer(obj:Form, e:TimerEventInfo)
  540. {
  541. if (e.timerid == 0) {
  542. this.killTimer(0);
  543. frmf_inputEnterKey("group6.button2", "onclick", new ClickEventInfo);
  544. grdf_initGrid(grd_datagrid3);
  545. }
  546. }
  547. ]]></Script>
  548. </Form>
  549. </FDL>