SMMMO06001_응급실접수취소환자리스트.xfdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMMO06001" position="absolute 0 0 1198 784" titletext="응급실 접수취소 환자리스트" oninit="SMMMO06001_oninit" onload="SMMMO06001_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="응급실 접수취소 환자리스트" position="absolute 0 0 399 20" id="caption6" class="tit_1"/>
  8. <Div position="absolute 0 21 1194 56" align="align:center top;" id="group2">
  9. <Layouts>
  10. <Layout>
  11. <Shape position="absolute 0 0 1194 35" id="roundrect1" type="roundrectangle"/>
  12. <Button position="absolute 1002 7 1058 27" id="btn_search" class="btn1" text="조회" onclick="group2_btn_search_onclick"/>
  13. <Shape position="absolute 989 7 995 27" linetype="vertical" id="line13"/>
  14. <Static text="조회일자 :" position="absolute 18 7 109 27" id="caption2" class="search_name"/>
  15. <Calendar position="absolute 107 7 207 27" id="ipt_fromdd" class="input_s_essential" onchanged="group2_ipt_fromdd_onchanged"/>
  16. <Static text="~" position="absolute 209 7 224 27" id="caption5"/>
  17. <Calendar position="absolute 223 7 323 27" id="ipt_todd" class="input_s_essential" onchanged="group2_ipt_todd_onchanged"/>
  18. <Button position="absolute 1124 7 1180 27" id="btn_excel" class="btn6" text="엑셀" onclick="group2_btn_excel_onclick"/>
  19. <Static text="등록번호 :" position="absolute 340 7 431 27" id="caption1" class="search_name"/>
  20. <Static text="성명 :" position="absolute 520 7 586 27" id="caption3" class="search_name"/>
  21. <Edit position="absolute 421 7 499 27" id="ipt_pid" onkeydown="group2_ipt_pid_onkeydown"/>
  22. <Edit position="absolute 585 7 661 27" id="ipt_hngnm" onkeydown="group2_ipt_hngnm_onkeydown"/>
  23. <Button position="absolute 667 7 683 27" id="button61" class="icon_search" text="" onclick="group2_button61_onclick"/>
  24. <Button position="absolute 1064 7 1120 27" id="button1" class="btn6" text="삭제" onclick="group2_button1_onclick"/>
  25. </Layout>
  26. </Layouts>
  27. </Div>
  28. <Grid position="absolute 0 76 1195 746" id="grd_patlist" class="datagrid4" binddataset="ds_main_acptcncllist" oncelldblclick="grd_patlist_oncelldblclick">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="30"/>
  33. <Column size="70"/>
  34. <Column size="80"/>
  35. <Column size="0"/>
  36. <Column size="37"/>
  37. <Column size="52"/>
  38. <Column size="104"/>
  39. <Column size="119"/>
  40. <Column size="127"/>
  41. <Column size="70"/>
  42. <Column size="70"/>
  43. <Column size="52"/>
  44. <Column size="54"/>
  45. <Column size="46"/>
  46. <Column size="90"/>
  47. <Column size="80"/>
  48. <Column size="80"/>
  49. <Column size="80"/>
  50. <Column size="0"/>
  51. </Columns>
  52. <Rows>
  53. <Row size="24" band="head"/>
  54. <Row size="24"/>
  55. </Rows>
  56. <Band id="head">
  57. <Cell displaytype="normal"/>
  58. <Cell col="1" displaytype="normal" text="등록번호"/>
  59. <Cell col="2" displaytype="normal" text="환자명"/>
  60. <Cell col="3" displaytype="normal" text="cretno"/>
  61. <Cell col="4" displaytype="normal" text="나이"/>
  62. <Cell col="5" displaytype="normal" text="성별"/>
  63. <Cell col="6" displaytype="normal" text="내원일시"/>
  64. <Cell col="7" displaytype="normal" text="주증상"/>
  65. <Cell col="8" displaytype="normal" text="접수취소사유"/>
  66. <Cell col="9" displaytype="normal" text="수축기혈압"/>
  67. <Cell col="10" displaytype="normal" text="이완기혈압"/>
  68. <Cell col="11" displaytype="normal" text="맥박수"/>
  69. <Cell col="12" displaytype="normal" text="호흡수"/>
  70. <Cell col="13" displaytype="normal" text="체온"/>
  71. <Cell col="14" displaytype="normal" text="산소포화도(%)"/>
  72. <Cell col="15" displaytype="normal" text="담당교수"/>
  73. <Cell col="16" displaytype="normal" text="인턴"/>
  74. <Cell col="17" displaytype="normal" text="코디네이터"/>
  75. <Cell col="18" displaytype="normal" text="status"/>
  76. </Band>
  77. <Band id="body">
  78. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:(chk == &quot;Y&quot; || chk == 1) ? 1 : 0"/>
  79. <Cell col="1" displaytype="normal" text="bind:pid"/>
  80. <Cell col="2" displaytype="normal" text="bind:hngnm"/>
  81. <Cell col="3" displaytype="normal" text="bind:cretno"/>
  82. <Cell col="4" displaytype="normal" text="bind:age"/>
  83. <Cell col="5" displaytype="normal" text="bind:sex"/>
  84. <Cell col="6" displaytype="date" text="bind:indd" mask="yyyy-MM-dd hh:mm"/>
  85. <Cell col="7" displaytype="normal" text="bind:mainsymp"/>
  86. <Cell col="8" displaytype="combo" edittype="combo" text="bind:cancelrsn" combodataset="ds_codelist" combocodecol="cdid" combodatacol="cdnm"/>
  87. <Cell col="9" displaytype="normal" text="bind:highbp"/>
  88. <Cell col="10" displaytype="normal" text="bind:lowbp"/>
  89. <Cell col="11" displaytype="normal" text="bind:mntpulsecnt"/>
  90. <Cell col="12" displaytype="normal" text="bind:mntbrethcnt"/>
  91. <Cell col="13" displaytype="normal" text="bind:chosbdtp"/>
  92. <Cell col="14" displaytype="normal" text="bind:oxyconcen"/>
  93. <Cell col="15" displaytype="normal" text="bind:medispcl"/>
  94. <Cell col="16" displaytype="normal" text="bind:intern"/>
  95. <Cell col="17" displaytype="normal" text="bind:codi"/>
  96. <Cell col="18" displaytype="normal" text="bind:status"/>
  97. </Band>
  98. </Format>
  99. </Formats>
  100. </Grid>
  101. <Shape position="absolute 0 750 1195 780" id="roundrect2" class="roundrect_example" type="roundrectangle"/>
  102. <Static text="등록번호 미발생환자의 경우 이름, 등록번호 검색이 되지 않습니다." position="absolute 10 753 1190 775" align="align:center middle;" id="caption26" class="hand"/>
  103. <Button position="absolute 1010 754 1186 776" id="button2" class="btn3" text="응급실접수취소 신규입력" onclick="button2_onclick"/>
  104. </Layout>
  105. </Layouts>
  106. <Objects>
  107. <Dataset id="ds_grd_patlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  108. <ColumnInfo>
  109. <Column id="chk" type="STRING"/>
  110. <Column id="pid" type="STRING"/>
  111. <Column id="hngnm" type="STRING"/>
  112. <Column id="cretno" type="STRING"/>
  113. <Column id="age" type="STRING"/>
  114. <Column id="sex" type="STRING"/>
  115. <Column id="indd" type="STRING"/>
  116. <Column id="mainsymp" type="STRING"/>
  117. <Column id="cancelrsn" type="STRING"/>
  118. <Column id="highbp" type="STRING"/>
  119. <Column id="lowbp" type="STRING"/>
  120. <Column id="mntpulsecnt" type="STRING"/>
  121. <Column id="mntbrethcnt" type="STRING"/>
  122. <Column id="chosbdtp" type="STRING"/>
  123. <Column id="oxyconcen" type="STRING"/>
  124. <Column id="medispcl" type="STRING"/>
  125. <Column id="intern" type="STRING"/>
  126. <Column id="codi" type="STRING"/>
  127. </ColumnInfo>
  128. </Dataset>
  129. <Dataset id="ds_main_acptcncllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_acptcncllist_oncolumnchanged">
  130. <ColumnInfo>
  131. <Column id="chk" type="STRING" size="256"/>
  132. <Column id="pid" type="STRING" size="256"/>
  133. <Column id="hngnm" type="STRING" size="256"/>
  134. <Column id="cretno" type="STRING" size="256"/>
  135. <Column id="age" type="STRING" size="256"/>
  136. <Column id="sex" type="STRING" size="256"/>
  137. <Column id="indd" type="STRING" size="256"/>
  138. <Column id="mainsymp" type="STRING" size="256"/>
  139. <Column id="cancelrsn" type="STRING" size="256"/>
  140. <Column id="highbp" type="STRING" size="256"/>
  141. <Column id="lowbp" type="STRING" size="256"/>
  142. <Column id="mntpulsecnt" type="STRING" size="256"/>
  143. <Column id="mntbrethcnt" type="STRING" size="256"/>
  144. <Column id="chosbdtp" type="STRING" size="256"/>
  145. <Column id="oxyconcen" type="STRING" size="256"/>
  146. <Column id="medispcl" type="STRING" size="256"/>
  147. <Column id="intern" type="STRING" size="256"/>
  148. <Column id="codi" type="STRING" size="256"/>
  149. <Column id="status" type="STRING" size="256"/>
  150. </ColumnInfo>
  151. </Dataset>
  152. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  153. <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  154. <ColumnInfo>
  155. <Column id="srchcond" type="STRING" size="256"/>
  156. <Column id="pid" type="STRING" size="256"/>
  157. </ColumnInfo>
  158. <Rows>
  159. <Row>
  160. <Col id="srchcond"/>
  161. <Col id="pid"/>
  162. </Row>
  163. </Rows>
  164. </Dataset>
  165. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  166. <ColumnInfo>
  167. <Column id="fromdd" type="STRING" size="256"/>
  168. <Column id="todd" type="STRING" size="256"/>
  169. <Column id="pid" type="STRING" size="256"/>
  170. <Column id="hngnm" type="STRING" size="256"/>
  171. </ColumnInfo>
  172. <Rows>
  173. <Row>
  174. <Col id="fromdd"/>
  175. <Col id="todd"/>
  176. <Col id="pid"/>
  177. <Col id="hngnm"/>
  178. </Row>
  179. </Rows>
  180. </Dataset>
  181. <Dataset id="ds_main_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  182. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  183. <Dataset id="ds_send_acptcncllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  184. <Dataset id="Dataset07" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  185. <Dataset id="Dataset08" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  186. <Dataset id="Dataset09" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  187. <Dataset id="ds_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  188. <ColumnInfo>
  189. <Column id="cdnm" type="STRING"/>
  190. <Column id="cdid" type="STRING"/>
  191. </ColumnInfo>
  192. </Dataset>
  193. </Objects>
  194. <Bind>
  195. <BindItem id="item0" compid="group2.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  196. <BindItem id="item1" compid="group2.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  197. <BindItem id="item2" compid="group2.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
  198. <BindItem id="item3" compid="group2.ipt_hngnm" propid="value" datasetid="ds_send" columnid="hngnm"/>
  199. </Bind>
  200. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  201. * System Name :
  202. * Job Name :
  203. * Creator :
  204. * Make Date : 2015-06-24
  205. * Description :
  206. *---------------------------------------------------------------------------------------
  207. * Modify Date Modifier Modify Description
  208. *---------------------------------------------------------------------------------------
  209. * 2015-06-24 Live Converter TF->XP
  210. *
  211. *---------------------------------------------------------------------------------------
  212. ****************************************************************************************/
  213. include "com_commonxp::comm_main.xjs";
  214. include "emr_prcpmngtxp::MMO001.xjs";
  215. include "emr_carecomxp::CareCom.xjs";
  216. function SMMMO06001_oninit(obj:Form, e:InitEventInfo)
  217. {
  218. frmf_initForm(obj);
  219. }
  220. function SMMMO06001_onload(obj:Form, e:LoadEventInfo)
  221. {
  222. grdf_initGrid(grd_patlist); //grd_patlist.fixedcellcheckbox(0, grd_patlist.colRef("chk")) = true;
  223. dsf_copyDs(ds_temp, ds_send, "replace"); //model.copyNode("/root/temp","/root/send");
  224. fGetNursHardCdInfo("'227'", utlf_getCurrentDate());
  225. dsf_copyDs(ds_send, ds_temp, "replace"); //model.copyNode("/root/send","/root/temp");
  226. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate()); // model.setValue("/root/send/fromdd", getCurrentDate());
  227. ds_send.setColumn(0, "todd", utlf_getCurrentDate()); // model.setValue("/root/send/todd", getCurrentDate());
  228. // model.removeNodeset("/root/main/acptcncllist/acptcncllist");
  229. //
  230. // model.refresh();
  231. }
  232. function ChkDate(){
  233. var fromdd = ds_send.getColumn(0, "fromdd");
  234. var todd = ds_send.getColumn(0, "todd");
  235. if( fromdd > todd ){
  236. sysf_messageBox("시작일자가 종료일자보다 클 수","I004"); //없습니다.
  237. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  238. ds_send.setColumn(0, "todd", utlf_getCurrentDate()); // model.setValue("/root/send/todd", getCurrentDate());
  239. return false;
  240. }else if( todd > utlf_getCurrentDate() ){
  241. sysf_messageBox("종료일자가 현재일자("+utlf_getCurrentDate()+")보다 클 수","I004");//없습니다.
  242. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate()); // model.setValue("/root/send/fromdd", getCurrentDate());
  243. ds_send.setColumn(0, "todd", utlf_getCurrentDate()); // model.setValue("/root/send/todd", getCurrentDate());
  244. return false;
  245. }
  246. return true;
  247. }
  248. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  249. {
  250. var rtn = ChkDate();
  251. if( rtn == true ){
  252. // ??
  253. // model.setValue("/root/send/fromdd", model.getValue("/root/send/fromdd"));
  254. // model.setValue("/root/send/todd", model.getValue("/root/send/todd"));
  255. // model.setValue("/root/send/pid", model.getValue("/root/send/pid"));
  256. // model.setValue("/root/send/hngnm", model.getValue("/root/send/hngnm"));
  257. var oParam = {};
  258. oParam.id = "TRMMO06000";
  259. oParam.service = "prcpmngtapp.ErMngt";
  260. oParam.method = "reqGetERAcptcncllist";
  261. oParam.inds = "req=ds_send";
  262. oParam.outds = "ds_main_acptcncllist=acptcncllist";
  263. oParam.async = false;
  264. oParam.callback = "cf_TRMMO06000";
  265. tranf_submit(oParam);
  266. } else {
  267. return;
  268. }
  269. }
  270. function cf_TRMMO06000(sSvcId, nErrorCode, sErrorMsg) {
  271. if(nErrorCode < 0) {
  272. sysf_messageBox("조회를","E009");
  273. return;
  274. } else {
  275. var col = grd_patlist.getBindCellIndex("body", "cancelrsn");
  276. grd_patlist.setCellProperty("body", col, "edittype", "none");
  277. //grd_a2_prcplist.colDisabled(grd_a2_prcplist.colref("prnprcpflag")) = true;
  278. }
  279. }
  280. function group2_ipt_fromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  281. {
  282. ChkDate();
  283. }
  284. function group2_ipt_todd_onchanged(obj:Calendar, e:ChangeEventInfo)
  285. {
  286. ChkDate();
  287. }
  288. function group2_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  289. {
  290. if(e.keycode == 13) {
  291. ds_source.setColumn(0, "srchcond", "1"); // model.setValue("/root/source/srchcond", "1");
  292. ds_source.setColumn(0, "pid", group2.ipt_pid.value); // model.setValue("/root/source/pid", ipt_pid.currentText);
  293. var objArg = new Object();
  294. objArg.arg_ds_send = ds_source;
  295. frmf_modal("SPPMC02500", "SPPMC02500", objArg, null, 1, 150, 150, null, null, null, null, null, "M");
  296. // modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  297. /* SPPMC02500_환자조회 - group1_btn_confirm_onclick() 에서 popupendflag 설정부분이 주석처리 되어있음... 확인 후 수정이 필요하면 수정*/
  298. // var popupendflag = model.getValue("/root/main/popupendflag");
  299. // if (popupendflag == "ok"){
  300. ds_send.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid")); // model.makeValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  301. ds_send.setColumn(0, "hngnm", ds_patinfolist.getColumn(0, "hngnm")); // model.makeValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  302. // }
  303. // ipt_hngnm.refresh();
  304. // ipt_pid.refresh();
  305. }
  306. }
  307. function group2_ipt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo)
  308. {
  309. if(e.keycode == 13) {
  310. ds_source.setColumn(0, "srchcond", "2");
  311. ds_source.setColumn(0, "hngnm", group2.ipt_hngnm.value);
  312. var objArg = new Object();
  313. objArg.arg_ds_send = ds_source;
  314. frmf_modal("SPPMC02500", "SPPMC02500", objArg, null, 1, 150, 150, null, null, null, null, null, "M");
  315. //modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  316. /* SPPMC02500_환자조회 - group1_btn_confirm_onclick() 에서 popupendflag 설정부분이 주석처리 되어있음... 확인 후 수정이 필요하면 수정*/
  317. // var popupendflag = model.getValue("/root/main/popupendflag");
  318. // if (popupendflag == "ok"){
  319. ds_send.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid")); // model.makeValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  320. ds_send.setColumn(0, "hngnm", ds_patinfolist.getColumn(0, "hngnm")); // model.makeValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  321. // }
  322. // ipt_hngnm.refresh();
  323. // ipt_pid.refresh();
  324. }
  325. }
  326. function group2_button61_onclick(obj:Button, e:ClickEventInfo)
  327. {
  328. if( ds_send.getColumn(0, "pid") != "" ){
  329. ds_source.setColumn(0, "srchcond", "1");
  330. ds_source.setColumn(0, "pid", group2.ipt_pid.value);
  331. }else if( ds_send.getColumn(0, "hngnm") != "" ){
  332. ds_source.setColumn(0, "srchcond", "2");
  333. ds_source.setColumn(0, "hngnm", group2.ipt_hngnm.value);
  334. }else{
  335. ds_source.setColumn(0, "srchcond", "2");
  336. }
  337. var objArg = new Object();
  338. objArg.arg_ds_send = ds_source;
  339. frmf_modal("SPPMC02500", "SPPMC02500", objArg, null, 1, 150, 150, null, null, null, null, null, "M");
  340. //modal("../../../pam/commonweb/xrw/SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
  341. /* SPPMC02500_환자조회 - group1_btn_confirm_onclick() 에서 popupendflag 설정부분이 주석처리 되어있음... 확인 후 수정이 필요하면 수정*/
  342. // var popupendflag = model.getValue("/root/main/popupendflag");
  343. // if (popupendflag == "ok"){
  344. ds_send.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid")); // model.makeValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
  345. ds_send.setColumn(0, "hngnm", ds_patinfolist.getColumn(0, "hngnm")); // model.makeValue("/root/send/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  346. // ipt_hngnm.refresh();
  347. // ipt_pid.refresh();
  348. // }
  349. }
  350. function group2_button1_onclick(obj:Button, e:ClickEventInfo)
  351. {
  352. if( ds_main_acptcncllist.findRow("chk", "Y") != -1 ){ // grd_patlist.findRow("Y",1, grd_patlist.colRef("chk")) != -1
  353. dsf_copyDs(ds_send_acptcncllist, grdf_getGridUpdateData(grd_patlist), "replace"); //model.setValue("/root/send/acptcncllist", grd_patlist.getUpdateData("update", "status"));
  354. var oParam = {};
  355. oParam.id = "TXMMO06001";
  356. oParam.service = "prcpmngtapp.ErMngt";
  357. oParam.method = "reqDelERAcptcncl";
  358. oParam.inds = "req=ds_send_acptcncllist";
  359. oParam.outds = "ds_main_acptcncllist=acptcnclinfo";
  360. oParam.async = false;
  361. oParam.callback = "cf_TXMMO06001";
  362. tranf_submit(oParam);
  363. }else{
  364. sysf_messageBox("삭제 할 데이터가", "I004");//없습니다.
  365. return;
  366. }
  367. }
  368. function cf_TXMMO06001(sSvcId, nErrorCode, sErrorMsg) {
  369. if(nErrorCode < 0) {
  370. sysf_messageBox("삭제를","E009"); //실패하였습니다.
  371. return;
  372. }
  373. }
  374. function grd_patlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  375. {
  376. if( e.col > -1 && e.row > -1 ){ // grd_patlist.isCell(event.target) && grd_patlist.mouseRow > 0
  377. var Param = ds_main_acptcncllist.getColumn(ds_main_acptcncllist.rowposition, "pid") + "▦"
  378. + ds_main_acptcncllist.getColumn(ds_main_acptcncllist.rowposition, "hngnm") + "▦"
  379. + ds_main_acptcncllist.getColumn(ds_main_acptcncllist.rowposition, "indd") + "▦"
  380. + ds_main_acptcncllist.getColumn(ds_main_acptcncllist.rowposition, "cretno") + "▦"
  381. + ds_main_acptcncllist.getColumn(ds_main_acptcncllist.rowposition, "sex") + "▦"
  382. + ds_main_acptcncllist.getColumn(ds_main_acptcncllist.rowposition, "age") + "▩"
  383. frmf_setParameter("SMMMO06000_Param", Param);
  384. frmf_modal("SMMMO06000", "SMMMO06000", "", "", 1, 0, 0, "", "", "", "", "", "M");
  385. // var Param = model.getValue("/root/main/acptcncllist/acptcncllist[" + grd_patlist.row + "]/pid")+"▦"
  386. // + model.getValue("/root/main/acptcncllist/acptcncllist[" + grd_patlist.row + "]/hngnm")+"▦"
  387. // + model.getValue("/root/main/acptcncllist/acptcncllist[" + grd_patlist.row + "]/indd")+"▦"
  388. // + model.getValue("/root/main/acptcncllist/acptcncllist[" + grd_patlist.row + "]/cretno")+"▦"
  389. // + model.getValue("/root/main/acptcncllist/acptcncllist[" + grd_patlist.row + "]/sex")+"▦"
  390. // + model.getValue("/root/main/acptcncllist/acptcncllist[" + grd_patlist.row + "]/age")+"▩";
  391. // setParameter("SMMMO06000_Param", Param);
  392. // modal("SMMMO06000");
  393. }
  394. }
  395. function button2_onclick(obj:Button, e:ClickEventInfo)
  396. {
  397. frmf_setParameter("SMMMO06000_Param", "");
  398. frmf_modal("SMMMO06000", "SMMMO06000", "", "", 1, 0, 0, "", "", "", "", "", "M"); //응급실접수취소
  399. }
  400. function group2_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  401. {
  402. var fromdd = ds_send.getColumn(0, "fromdd"); ///model.getValue("/root/send/fromdd");
  403. var todd = ds_send.getColumn(0, "todd") //model.getValue("/root/send/todd");
  404. var dt = "";
  405. if(fromdd == todd) {
  406. dt = fromdd;
  407. } else {
  408. dt = fromdd + "~" + todd;
  409. }
  410. grdf_exportExcel(grd_patlist, "응급실접수취소", "SheetName", true, null, false);
  411. //
  412. // var fileName = window.fileDialog("save", ",", false, "응급실접수취소", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  413. // grd_patlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  414. }
  415. function ds_main_acptcncllist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  416. {
  417. if ( e.columnid == "chk" ) { // grd_prcplist.col == grd_prcplist.colref("choiordflag")
  418. var currow = e.row;
  419. obj.setColumn(currow, e.columnid, (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  420. }
  421. }
  422. ]]></Script>
  423. </Form>
  424. </FDL>