SMPMI06210_내원외국인환자관리.xfdl 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI06200" position="absolute 0 0 1280 930" titletext="내원외국인환자관리" onload="SMPMI06200_onload" ontimer="SMPMI06200_ontimer">
  5. <Layouts>
  6. <Layout width="1280" height="930">
  7. <Grid id="grd_forepatlist" binddataset="ds_forepatlist" position="absolute 0 90 1256 901" style="align:center;font:굴림,9,bold;" anchor="all" cellsizingtype="col" autofittype="col">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="32"/>
  12. <Column size="88"/>
  13. <Column size="130"/>
  14. <Column size="150"/>
  15. <Column size="232"/>
  16. <Column size="224"/>
  17. <Column size="76"/>
  18. <Column size="76"/>
  19. <Column size="100"/>
  20. <Column size="70"/>
  21. <Column size="150"/>
  22. </Columns>
  23. <Rows>
  24. <Row size="39" band="head"/>
  25. <Row size="100"/>
  26. </Rows>
  27. <Band id="head">
  28. <Cell text="SMS"/>
  29. <Cell col="1" style="font:arial,20;" text="국적"/>
  30. <Cell col="2" style="font:arial,20;" text="등록번호"/>
  31. <Cell col="3" style="font:arial,20;" text="성명"/>
  32. <Cell col="4" style="font:arial,20;" text="연락처"/>
  33. <Cell col="5" style="font:arial,20;" text="진료과"/>
  34. <Cell col="6" style="font:arial,20;" text="구분"/>
  35. <Cell col="7" style="font:arial,20;" text="상태"/>
  36. <Cell col="8" style="font:arial,20;" text="연락처"/>
  37. <Cell col="9" colspan="2" style="font:arial,20;" text="보험유형" taborder="undefined"/>
  38. </Band>
  39. <Band id="body">
  40. <Cell displaytype="checkbox" edittype="checkbox" text="bind:smssendyn" tooltiptext="SMS전송대상"/>
  41. <Cell col="1" style="font:굴림,20;" text="bind:natinm" wordwrap="word"/>
  42. <Cell col="2" style="background:EXPR(fSetPidColor(currow));background2:EXPR(fSetPidColor(currow));font:굴림,20;selectbackground:EXPR(fSetPidColor(currow));" text="bind:pid"/>
  43. <Cell col="3" style="align:center middle;padding:0 0 0 5;font:굴림,20;" text="bind:hngnm" wordwrap="word" autosizecol="default"/>
  44. <Cell col="4" style="font:굴림,20;" text="bind:mpphontel" wordwrap="word"/>
  45. <Cell col="5" style="align:left middle;padding:0 0 0 5;font:굴림,20;" text="bind:orddeptnm"/>
  46. <Cell col="6" style="font:굴림,20;" text="bind:ordflag"/>
  47. <Cell col="7" style="align:center middle;font:굴림,20;" text="bind:status"/>
  48. <Cell col="8" style="align:center middle;font:굴림,20;" text="bind:cntctel"/>
  49. <Cell col="9" displaytype="combo" edittype="combo" style="align:left;padding:0 0 0 5;font:굴림,20;" text="bind:insukind" wordwrap="word" combodataset="ds_init_insukind" combocodecol="cd" combodatacol="nm" tooltiptype="bottom,right" tooltiptext="bind:insukind"/>
  50. <Cell col="10" displaytype="combo" edittype="combo" style="align:center;background:EXPR(fSetSuppkindColor(currow));background2:EXPR(fSetSuppkindColor(currow));font:굴림,20;selectbackground:EXPR(fSetSuppkindColor(currow));" text="bind:suppkind" wordwrap="word" combodataset="ds_init_suppkind" combocodecol="cd" combodatacol="nm" tooltiptype="bottom,right" tooltiptext="bind:suppkind"/>
  51. </Band>
  52. </Format>
  53. </Formats>
  54. </Grid>
  55. <Div id="group_sms" taborder="8" text="Div00" position="absolute 524 489 1256 901" style="background:white;border:1 none #808080ff ;" visible="false" anchor="right bottom">
  56. <Layouts>
  57. <Layout width="733" height="265">
  58. <Shape id="Shape01" position="absolute 0 0 729 409" style="strokepen:1 none #9ebed4ff;background:#ffe4c454;border:1 solid #ff8c0057 ;" anchor="default"/>
  59. <Grid id="grd_smslist" taborder="0" useinputpanel="false" position="absolute 8 30 721 401" anchor="default" binddataset="ds_smsresult" cellsizingtype="both">
  60. <Formats>
  61. <Format id="default">
  62. <Columns>
  63. <Column size="21" band="left"/>
  64. <Column size="80"/>
  65. <Column size="110"/>
  66. <Column size="279"/>
  67. <Column size="140"/>
  68. <Column size="80"/>
  69. </Columns>
  70. <Rows>
  71. <Row size="24" band="head"/>
  72. <Row size="40"/>
  73. </Rows>
  74. <Band id="head">
  75. <Cell/>
  76. <Cell col="1" text="수신인"/>
  77. <Cell col="2" text="수신번호"/>
  78. <Cell col="3" text="메시지"/>
  79. <Cell col="4" text="호출시간"/>
  80. <Cell col="5" text="전송상태"/>
  81. </Band>
  82. <Band id="body">
  83. <Cell celltype="head" text="EXPR(currow + 1)"/>
  84. <Cell col="1" text="bind:recvrnm" autosizerow="default"/>
  85. <Cell col="2" text="bind:recvrtelno" autosizerow="default"/>
  86. <Cell col="3" style="align:left middle;" text="bind:msgcnts" wordwrap="word" autosizerow="default"/>
  87. <Cell col="4" displaytype="date" text="bind:fstrgstdt" mask="yyyy-MM-dd HH:mm" autosizerow="default"/>
  88. <Cell col="5" displaytype="combo" style="align:center;" text="bind:msgstate" combodataset="ds_msgstate" combocodecol="cdid" combodatacol="cdnm" autosizerow="default"/>
  89. </Band>
  90. </Format>
  91. </Formats>
  92. </Grid>
  93. <Static id="Static00" text="SMS 전송내역" position="absolute 8 7 134 27" onclick="Div00_Static00_onclick" anchor="default" class="tit_2"/>
  94. <Static id="Static01" text="전송일자" position="absolute 407 7 474 27" anchor="default" class="search_name"/>
  95. <Button id="Button00" taborder="1" text="조회" position="absolute 588 7 648 27" class="btn1" anchor="default" onclick="group_sms_Button00_onclick"/>
  96. <Calendar id="Calendar00" taborder="3" position="absolute 479 7 579 27" anchor="default"/>
  97. <Button id="Button01" taborder="4" text="excel" onclick="group_sms_Button01_onclick" class="btn7" position="absolute 653 7 714 27"/>
  98. <Static id="Static02" text="전송자ID" position="absolute 271 7 339 27" class="search_name"/>
  99. <Edit id="Edit00" taborder="5" position="absolute 339 7 391 27"/>
  100. </Layout>
  101. </Layouts>
  102. </Div>
  103. <Static id="caption6" class="tit_1" position="absolute 0 0 200 25" style="" text="내원외국인환자관리" onclick="caption6_onclick" anchor="default"/>
  104. <Shape id="roundrect1" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 0 26 1256 61" style="border: solid #ffd799 #ffd799;background:#fffbf2 ;"/>
  105. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1180 33 1183 55" style="border: solid #ffe4bb #ffe4bb;" anchor="default"/>
  106. <Static id="caption39" class="search_name" position="absolute 8 35 120 52" style="" text="진료일자" onclick="caption39_onclick" anchor="default"/>
  107. <Button id="btn_search" class="btn1" taborder="3" position="absolute 1191 33 1247 55" style="align:center;" text="조회" onclick="btn_search_onclick" anchor="default"/>
  108. <Calendar id="input1" taborder="1" position="absolute 90 34 175 53" style="" anchor="default"/>
  109. <CheckBox id="CheckBox00" taborder="5" text="자동조회" position="absolute 1094 34 1171 54" anchor="default" onchanged="CheckBox00_onchanged" value="true" onclick="CheckBox00_onclick"/>
  110. <Static id="caption00" text="진료완료 / 퇴원포함" onclick="caption39_onclick" class="search_name" position="absolute 235 35 389 52" anchor="default"/>
  111. <CheckBox id="CheckBox01" taborder="6" position="absolute 380 34 404 54" onclick="CheckBox01_onclick" anchor="default"/>
  112. <Static id="caption2" class="tit_2" position="absolute 0 67 195 84" style="" text="내원외국인환자리스트" anchor="default" onclick="caption2_onclick"/>
  113. <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 86 1256 90" anchor="left top right"/>
  114. <Button id="button2" class="btn7" position="absolute 1186 65 1251 84" style="" text="excel" anchor="top right" onclick="button2_onclick"/>
  115. <Static id="caption01" text="최근갱신 : " position="absolute 1026 69 1088 82" onclick="caption00_onclick" anchor="top right"/>
  116. <Static id="cap_lastupdate" text="-" onclick="caption00_onclick" position="absolute 1090 69 1170 82" anchor="top right"/>
  117. <Button id="btn_sms" taborder="1" text="SMS전송" position="absolute 1050 906 1139 926" class="btn3" onclick="btn_sms_onclick" anchor="right bottom"/>
  118. <Static id="caption02" text="MOU적용 환자 (S1, S2, S3, S4)" onclick="caption00_onclick" position="absolute 38 914 260 927" anchor="left bottom"/>
  119. <Shape id="Shape00" position="absolute 11 910 28 927" style="strokepen:16 solid #fa50c8ff;border:1 solid black ;" anchor="left bottom"/>
  120. <Static id="caption03" text="내원 외국인 고객만족도 설문용 SMS 문구" onclick="caption00_onclick" position="absolute 808 910 1043 923" anchor="right bottom"/>
  121. <TextArea id="TextArea00" taborder="7" position="absolute 668 744 1254 899" visible="false" style="background:#dcdcdcff URL('theme://images/bg_edit_N.png') stretch 5,5;" anchor="right bottom"/>
  122. <Button id="Button00" taborder="9" text="전송결과확인" position="absolute 1142 906 1256 926" class="btn4" onclick="Button00_onclick" anchor="right bottom"/>
  123. <CheckBox id="CheckBox02" taborder="10" text="비식별조회" value="false" position="absolute 992 34 1083 54"/>
  124. </Layout>
  125. </Layouts>
  126. <Objects>
  127. <Dataset id="ds_forepatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  128. <ColumnInfo>
  129. <Column id="smssendyn" type="STRING" size="256"/>
  130. <Column id="ordflag" type="STRING" size="256"/>
  131. <Column id="natinm" type="STRING" size="256"/>
  132. <Column id="pid" type="STRING" size="256"/>
  133. <Column id="hngnm" type="STRING" size="256"/>
  134. <Column id="orddd" type="STRING" size="256"/>
  135. <Column id="orddeptnm" type="STRING" size="256"/>
  136. <Column id="orddrnm" type="STRING" size="256"/>
  137. <Column id="insukind" type="STRING" size="256"/>
  138. <Column id="suppkind" type="STRING" size="256"/>
  139. <Column id="mpphontel" type="STRING" size="256"/>
  140. <Column id="status" type="STRING" size="256"/>
  141. <Column id="cntctel" type="STRING" size="256"/>
  142. <Column id="fsexamflag" type="STRING" size="256"/>
  143. </ColumnInfo>
  144. <Rows>
  145. <Row>
  146. <Col id="smssendyn"/>
  147. <Col id="ordflag"/>
  148. <Col id="natinm"/>
  149. <Col id="pid"/>
  150. <Col id="hngnm"/>
  151. <Col id="orddd"/>
  152. <Col id="orddeptnm"/>
  153. <Col id="orddrnm"/>
  154. <Col id="insukind"/>
  155. <Col id="suppkind"/>
  156. <Col id="mpphontel"/>
  157. <Col id="cntctel"/>
  158. <Col id="fsexamflag"/>
  159. </Row>
  160. </Rows>
  161. </Dataset>
  162. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  163. <ColumnInfo>
  164. <Column id="orddd" type="STRING" size="256"/>
  165. <Column id="autorefresh" type="STRING" size="256"/>
  166. <Column id="endyn" type="STRING" size="256"/>
  167. <Column id="fstrgstdt" type="STRING" size="30" value="256"/>
  168. <Column id="fstrgstdt_end" type="STRING" size="30" value="256"/>
  169. <Column id="fstrgstrid" type="STRING" size="30" value="256"/>
  170. <Column id="bizabbr" type="STRING" size="30" value=""/>
  171. <Column id="msgstate" type="STRING" size="30" value=""/>
  172. <Column id="recvrtelno" type="STRING" size="30" value=""/>
  173. <Column id="recvrnm" type="STRING" size="30" value=""/>
  174. <Column id="stype" type="STRING" size="30" value=""/>
  175. <Column id="unknown" type="STRING" size="256"/>
  176. </ColumnInfo>
  177. <Rows>
  178. <Row>
  179. <Col id="orddd"/>
  180. <Col id="autorefresh"/>
  181. <Col id="endyn"/>
  182. <Col id="fstrgstdt"/>
  183. <Col id="fstrgstdt_end"/>
  184. <Col id="fstrgstrid"/>
  185. <Col id="bizabbr"/>
  186. <Col id="msgstate"/>
  187. <Col id="recvrtelno"/>
  188. <Col id="recvrnm"/>
  189. <Col id="stype"/>
  190. </Row>
  191. </Rows>
  192. </Dataset>
  193. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  194. <ColumnInfo/>
  195. </Dataset>
  196. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  197. <ColumnInfo>
  198. <Column id="temp" type="STRING" size="256"/>
  199. </ColumnInfo>
  200. <Rows>
  201. <Row>
  202. <Col id="temp"/>
  203. </Row>
  204. </Rows>
  205. </Dataset>
  206. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  207. <ColumnInfo>
  208. <Column id="hidden" type="STRING" size="256"/>
  209. </ColumnInfo>
  210. <Rows>
  211. <Row>
  212. <Col id="hidden"/>
  213. </Row>
  214. </Rows>
  215. </Dataset>
  216. <Dataset id="ds_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  217. <ColumnInfo>
  218. <Column id="nm" type="STRING"/>
  219. <Column id="cd" type="STRING"/>
  220. </ColumnInfo>
  221. </Dataset>
  222. <Dataset id="ds_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  223. <ColumnInfo>
  224. <Column id="nm" type="STRING"/>
  225. <Column id="cd" type="STRING"/>
  226. </ColumnInfo>
  227. </Dataset>
  228. <Dataset id="ds_init_PK222list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  229. <ColumnInfo>
  230. <Column id="cdid" type="STRING" size="256"/>
  231. <Column id="cdnm" type="STRING" size="256"/>
  232. </ColumnInfo>
  233. </Dataset>
  234. <Dataset id="ds_smsresult" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  235. <ColumnInfo>
  236. <Column id="recvrnm" type="STRING" size="30" value="256"/>
  237. <Column id="recvrtelno" type="STRING" size="30" value=""/>
  238. <Column id="msgcnts" type="STRING" size="30" value=""/>
  239. <Column id="fstrgstdt" type="STRING" size="30" value=""/>
  240. <Column id="msgstate" type="STRING" size="30" value=""/>
  241. </ColumnInfo>
  242. </Dataset>
  243. <Dataset id="ds_msgstate" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  244. <ColumnInfo>
  245. <Column id="cdid" type="STRING" size="256"/>
  246. <Column id="cdnm" type="STRING" size="256"/>
  247. </ColumnInfo>
  248. <Rows>
  249. <Row>
  250. <Col id="cdid">ZM00</Col>
  251. <Col id="cdnm">전송대기</Col>
  252. </Row>
  253. <Row>
  254. <Col id="cdid">ZM01</Col>
  255. <Col id="cdnm">전송중</Col>
  256. </Row>
  257. <Row>
  258. <Col id="cdid">ZM02</Col>
  259. <Col id="cdnm">전송실패</Col>
  260. </Row>
  261. <Row>
  262. <Col id="cdid">ZM03</Col>
  263. <Col id="cdnm">전송성공</Col>
  264. </Row>
  265. <Row>
  266. <Col id="cdid">ZM04</Col>
  267. <Col id="cdnm">전송취소</Col>
  268. </Row>
  269. </Rows>
  270. </Dataset>
  271. </Objects>
  272. <Bind>
  273. <BindItem id="item0" compid="input1" propid="value" datasetid="ds_send" columnid="orddd"/>
  274. <BindItem id="item1" compid="CheckBox00" propid="value" datasetid="ds_send" columnid="autorefresh"/>
  275. <BindItem id="item2" compid="CheckBox01" propid="value" datasetid="ds_send" columnid="endyn"/>
  276. <BindItem id="item3" compid="group_sms.Calendar00" propid="value" datasetid="ds_send" columnid="fstrgstdt"/>
  277. <BindItem id="item4" compid="group_sms.Edit00" propid="value" datasetid="ds_send" columnid="fstrgstrid"/>
  278. <BindItem id="item5" compid="CheckBox02" propid="value" datasetid="ds_send" columnid="unknown"/>
  279. </Bind>
  280. <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
  281. include 'pam_pamcomnxp::PAM.xjs';
  282. include 'pam_pamcomnxp::PAM001.xjs';
  283. include 'pam_opatmngtxp::PMOCOM.xjs';
  284. include 'pam_ipatmngtxp::PMI001.xjs';
  285. function SMPMI06200_onload(obj:Form, e:LoadEventInfo) {
  286. frmf_initForm(obj);
  287. ds_send.setColumn(0, "orddd", utlf_getCurrentDate());
  288. ds_send.setColumn(0, "fstrgstdt", utlf_getCurrentDate());
  289. ds_send.setColumn(0, "fstrgstrid", sysf_getUserId());
  290. ds_init_insukind.clearData();
  291. ds_init_insukind.addRow();
  292. ds_init_suppkind.clearData();
  293. ds_init_suppkind.addRow();
  294. // 보험유형 / 보조유형 조회용 서브밋
  295. var oParam = {};
  296. oParam.id = "TRPMI00106";
  297. oParam.service = "pamcomnapp.PamComn";
  298. oParam.method = "reqGetComCD";
  299. oParam.inds = "req=ds_send";
  300. oParam.outds = "ds_init_insukind=insukind ds_init_suppkind=suppkind ";
  301. oParam.async = false;
  302. tranf_submit(oParam);
  303. // 원무공통코드 조회
  304. pamfGetCodeList([
  305. { dsNm: 'ds_init_PK222list', cdGrpId: 'PK222' }
  306. ]);
  307. // 내원 외국인환자 고객만족도 설문용 SMS 문구 표시
  308. for(var i = 0; i < ds_init_PK222list.rowcount; i++) {
  309. if (ds_init_PK222list.getColumn(i, 'cdid') == '1') {
  310. TextArea00.value = ds_init_PK222list.getColumn(i, 'cdnm');
  311. break;
  312. }
  313. }
  314. }
  315. /**
  316. 조회버튼 이벤트
  317. */
  318. function btn_search_onclick(obj:Button, e:ClickEventInfo) {
  319. var orddd = ds_send.getColumn(0, "orddd");
  320. if (utlf_isNull(orddd)) {
  321. sysf_messageBox("진료일자는 반드시 입력해야 합니다.", "E999");
  322. return;
  323. }
  324. // 외국인환자내원리스트 조회
  325. fGetForeignPatList();
  326. }
  327. /**
  328. 내원외국인 엑셀저장 이벤트
  329. */
  330. function button2_onclick(obj:Button, e:ClickEventInfo) {
  331. grdf_exportExcel(grd_forepatlist, "내원외국인목록", "SheetName", true, null, false);
  332. }
  333. /**
  334. 내원외국인환자 조회
  335. */
  336. function fGetForeignPatList () {
  337. var oParam = {};
  338. oParam.id = "TRPMI06210";
  339. oParam.service = "ipatmngtapp.InReport";
  340. oParam.method = "reqGetForePatList";
  341. oParam.inds = "req=ds_send";
  342. oParam.outds = "ds_forepatlist=forepatlist";
  343. oParam.async = false;
  344. //oParam.callback = "cf_TRPMI06210";
  345. tranf_submit(oParam);
  346. var now = new Date();
  347. cap_lastupdate.text = now.toLocaleTimeString();
  348. }
  349. /**
  350. 타이머설정
  351. */
  352. function SMPMI06200_ontimer(obj:Form, e:TimerEventInfo)
  353. {
  354. // 내원외국인환자 조회
  355. if (e.timerid == 0) {
  356. fGetForeignPatList();
  357. }
  358. }
  359. /**
  360. 자동조회 선택 이벤트
  361. */
  362. function CheckBox00_onclick(obj:CheckBox, e:ClickEventInfo)
  363. {
  364. var isAutoRefresh = obj.value;
  365. if (isAutoRefresh && ds_send.getColumn( 0, "orddd") != utlf_getCurrentDate()) {
  366. alert("자동조회는 진료일자가 진료당일만 가능합니다.");
  367. ds_send.setColumn(0, "autorefresh", false);
  368. return;
  369. }
  370. if (isAutoRefresh) {
  371. alert("자동조회를 시작합니다.\r\n10분간격으로 자동조회됩니다.");
  372. // 최초 1회 조회 후 타이머 설정
  373. fGetForeignPatList();
  374. this.setTimer(0, 1000 * 60 * 10); // 10분간격
  375. } else {
  376. alert("자동조회를 중단합니다.");
  377. this.killTimer(0);
  378. }
  379. }
  380. // 그리드 배경색 동적처리_등록번호
  381. function fSetPidColor(row) {
  382. var color = "";
  383. // 과초, 병초, 상초 배경색 처리
  384. if (ds_forepatlist.getColumn(row, "fsexamflag") == "D"
  385. || ds_forepatlist.getColumn(row, "fsexamflag") == "F"
  386. || ds_forepatlist.getColumn(row, "fsexamflag") == "S") {
  387. color = "#8ffc7e";
  388. }
  389. return color;
  390. }
  391. // 그리드 배경색 동적처리_보조유형
  392. function fSetSuppkindColor(row) {
  393. var color = "";
  394. // S1, S2, S3, S4 배경색 처리
  395. if (ds_forepatlist.getColumn(row, "suppkind") == "A6"
  396. || ds_forepatlist.getColumn(row, "suppkind") == "A7"
  397. || ds_forepatlist.getColumn(row, "suppkind") == "A8"
  398. || ds_forepatlist.getColumn(row, "suppkind") == "A9") {
  399. color = "#fa50c8";
  400. }
  401. return color;
  402. }
  403. // 내원 외국인 고객만족도 설문용 SMS 문구 클릭
  404. function caption00_onclick(obj:Static, e:ClickEventInfo)
  405. {
  406. if(TextArea00.visible) {
  407. TextArea00.visible = false;
  408. } else {
  409. TextArea00.visible = true;
  410. }
  411. }
  412. // SMS 전송 이벤트
  413. function btn_sms_onclick(obj:Button, e:ClickEventInfo)
  414. {
  415. if (sysf_messageBox("고객만족도 설문용 SMS를 전송하시겠습니까?.", "Q999") != '6') {
  416. return;
  417. }
  418. var oParam = {};
  419. oParam.id = "TXPMI06211";
  420. oParam.service = "ipatmngtapp.InReport";
  421. oParam.method = "reqSetForePatSMS";
  422. oParam.inds = "forepatlist=ds_forepatlist PK222=ds_init_PK222list ";
  423. oParam.outds = "ds_smsresult=smsresult";
  424. oParam.async = false;
  425. //oParam.callback = "cf_TRPMI06210";
  426. tranf_submit(oParam);
  427. alert("전송신청이 완료되었습니다.");
  428. // 전송결과 조회 클릭 이벤트
  429. group_sms.Button00.click();
  430. }
  431. // 전송결과확인창 처리
  432. function Button00_onclick(obj:Button, e:ClickEventInfo)
  433. {
  434. if (group_sms.visible) {
  435. group_sms.visible = false;
  436. } else {
  437. group_sms.visible = true;
  438. }
  439. }
  440. // SMS 전송결과 조회
  441. function group_sms_Button00_onclick(obj:Button, e:ClickEventInfo)
  442. {
  443. var fstrgstrid;
  444. var fstrgstdt = ds_send.getColumn(0, "fstrgstdt")
  445. if (utlf_isNull(fstrgstdt)) {
  446. sysf_messageBox("전송일자는 반드시 입력해야 합니다.", "E999");
  447. return;
  448. }
  449. ds_send.setColumn(0, "fstrgstdt_end", ds_send.getColumn(0, "fstrgstdt"));
  450. //ds_send.setColumn(0, "fstrgstrid", sysf_getUserId());
  451. ds_send.setColumn(0, "bizabbr", "PAM");
  452. ds_send.setColumn(0, "msgstate", "-");
  453. ds_send.setColumn(0, "recvrtelno", "");
  454. ds_send.setColumn(0, "recvrnm", "");
  455. ds_send.setColumn(0, "stype", "cdate");
  456. var oParam = {};
  457. oParam.id = "TRZMI00108";
  458. oParam.service = "shortmsgapp.ShortMsg";
  459. oParam.method = "reqGetMsgList";
  460. oParam.inds = "req=ds_send";
  461. oParam.outds = "ds_smsresult=msglist";
  462. oParam.async = false;
  463. //oParam.callback = "cf_TRPMI06210";
  464. tranf_submit(oParam);
  465. }
  466. // SMS 전송결과 엑셀저장
  467. function group_sms_Button01_onclick(obj:Button, e:ClickEventInfo)
  468. {
  469. grdf_exportExcel(group_sms.grd_smslist, "내원외국인 SMS전송결과", "SheetName", true, null, false);
  470. }
  471. ]]></Script>
  472. </Form>
  473. </FDL>