SMCFA00600_일반건진예약현황.xfdl 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMCFA00600" position="absolute 0 0 1203 782" titletext="일반건진 예약현황" oninit="SMCFA00600_oninit" onload="SMCFA00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 24 1195 84" align="align:center top;" id="group2" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static text="예약일자 :" position="absolute 16 9 102 26" id="caption3" class="search_name" anchor="default"/>
  11. <Calendar position="absolute 108 8 228 27" id="ipt_ordfromdd" class="input_search" anchor="default" autoselect="true" autoskip="true"/>
  12. <Static text="~" position="absolute 233 9 245 26" id="caption4" class="search_no_b" anchor="default"/>
  13. <Calendar position="absolute 248 8 368 27" id="ipt_ordtodd" class="input_search" anchor="default"/>
  14. <Static text="사업체 :" position="absolute 406 9 492 26" id="caption5" class="search_name" anchor="default"/>
  15. <Edit position="absolute 485 8 585 27" id="ipt_cmpycd" class="input_search" anchor="default" autoselect="true" maxlength="50"/>
  16. <Button position="absolute 590 9 606 25" id="btn_cmpy_srch" class="icon_search" text="" anchor="default" onclick="group2_btn_cmpy_srch_onclick"/>
  17. <Static text="패키지 :" position="absolute 641 9 727 26" id="caption6" class="search_name" anchor="default"/>
  18. <Edit position="absolute 720 8 820 27" id="ipt_pkgcd" class="input_search" anchor="default" maxlength="50" autoselect="true"/>
  19. <Button position="absolute 825 9 841 25" id="btn_pkg_srch" class="icon_search" text="" anchor="default" onclick="group2_btn_pkg_srch_onclick"/>
  20. <Static text="건진분류 :" position="absolute 875 10 961 27" id="caption7" class="search_name" anchor="default"/>
  21. <Combo position="absolute 965 8 1075 27" id="cmb_rsrvflag" class="combo_search" innerdataset="@ds_init_comncdlist_A0070list_A0070" datacolumn="cdnm" codecolumn="cdid" anchor="default"/>
  22. <Static text="등록번호 :" position="absolute 16 33 102 50" id="caption8" class="search_name" anchor="default"/>
  23. <Edit position="absolute 108 32 228 51" id="ipt_pid" class="input_search" anchor="default"/>
  24. <Button position="absolute 233 33 249 49" id="btn_pid_srch" class="icon_search" text="" anchor="default" onclick="group2_btn_pid_srch_onclick"/>
  25. <Static text="주민등록번호 :" position="absolute 296 33 410 50" id="caption9" class="search_name" anchor="default"/>
  26. <MaskEdit position="absolute 415 32 485 51" id="ipt_rrgst1" class="input_search" mask="######" anchor="default" maskchar=" " type="string" trimtype="both" autoselect="true" autoskip="true" style="align:center middle;"/>
  27. <Static text="-" position="absolute 490 33 502 50" id="caption10" class="search_no_b" anchor="default"/>
  28. <MaskEdit position="absolute 505 32 585 51" id="ipt_rrgst2" class="input_search" mask="#######" anchor="default" maskchar=" " autoselect="true" type="string" trimtype="both" style="align:center middle;"/>
  29. <Static text="환자명 :" position="absolute 641 33 727 50" id="caption11" class="search_name" anchor="default"/>
  30. <Edit position="absolute 720 32 820 51" id="ipt_patnm" class="input_search" anchor="default" maxlength="50" autoselect="true"/>
  31. <Static text="전송상태 :" position="absolute 875 33 961 50" id="caption12" class="search_name" anchor="default"/>
  32. <Combo position="absolute 965 32 1075 51" id="cmb_trsmstat" class="combo_search" innerdataset="@ds_init_comncdlist_C0019list_C0019" datacolumn="cdnm" codecolumn="cdid" anchor="default"/>
  33. <Shape position="absolute 1103 7 1109 53" linetype="vertical" id="line1" class="line_4" anchor="top right"/>
  34. <Button position="absolute 1122 19 1178 41" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="group2_btn_search_onclick"/>
  35. </Layout>
  36. </Layouts>
  37. </Div>
  38. <Static id="caption1" text="일반건진예약 전송관리" class="tit_1" position="absolute 0 0 189 24"/>
  39. <Grid id="grd_rsrvlist" class="text_center" taborder="1" binddataset="ds_main_list_rsrvlist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 118 1195 748" anchor="all">
  40. <Formats>
  41. <Format id="default">
  42. <Columns>
  43. <Column size="31" band="left"/>
  44. <Column size="25" band="left"/>
  45. <Column size="100" band="left"/>
  46. <Column size="100" band="left"/>
  47. <Column size="55" band="left"/>
  48. <Column size="90" band="left"/>
  49. <Column size="120" band="left"/>
  50. <Column size="110"/>
  51. <Column size="110"/>
  52. <Column size="110"/>
  53. <Column size="80"/>
  54. <Column size="80"/>
  55. <Column size="70"/>
  56. <Column size="110"/>
  57. <Column size="110"/>
  58. <Column size="450"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. </Columns>
  65. <Rows>
  66. <Row size="24" band="head"/>
  67. <Row size="24"/>
  68. </Rows>
  69. <Band id="head">
  70. <Cell/>
  71. <Cell col="1"/>
  72. <Cell col="2" text="전송상태"/>
  73. <Cell col="3" text="예약일자"/>
  74. <Cell col="4" text="시간"/>
  75. <Cell col="5" text="등록번호"/>
  76. <Cell col="6" text="환자명"/>
  77. <Cell col="7" text="주민등록번호"/>
  78. <Cell col="8" text="휴대전화번호"/>
  79. <Cell col="9" text="패키지"/>
  80. <Cell col="10" text="예약상태"/>
  81. <Cell col="11" text="고객등급"/>
  82. <Cell col="12" text="단체"/>
  83. <Cell col="13" text="사업체"/>
  84. <Cell col="14" text="건진분류"/>
  85. <Cell col="15" text="예약 메시지"/>
  86. <Cell col="16"/>
  87. <Cell col="17"/>
  88. <Cell col="18"/>
  89. <Cell col="19"/>
  90. <Cell col="20"/>
  91. </Band>
  92. <Band id="body">
  93. <Cell celltype="head" expr="currow+1"/>
  94. <Cell col="1" class="update_n" text="bind:update"/>
  95. <Cell col="2" displaytype="combo" style="align:center middle;" text="bind:trsmstat" combodataset="ds_init_comncdlist_C0019list_C0019" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  96. <Cell col="3" displaytype="date" style="align:center middle;" text="bind:hopedd" calendardisplaynulltype="nulltext"/>
  97. <Cell col="4" style="align:center middle;" text="bind:rsrvtm" mask="##:##" maskchar=" "/>
  98. <Cell col="5" style="align:center middle;" text="bind:pid"/>
  99. <Cell col="6" style="align:center middle;" text="bind:hngnm"/>
  100. <Cell col="7" style="align:center middle;" text="bind:rrgstno" mask="######-#{******}" maskchar="*"/>
  101. <Cell col="8" style="align:center middle;" text="bind:mpphontel"/>
  102. <Cell col="9" style="align:center middle;" text="bind:pkgcd"/>
  103. <Cell col="10" displaytype="combo" style="align:center middle;" text="bind:statflag" combodataset="ds_init_comncdlist_A0107list_A0107" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  104. <Cell col="11" displaytype="combo" style="align:center middle;" text="bind:clntgrde" combodataset="ds_init_comncdlist_A0118list _A0118" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  105. <Cell col="12" style="align:center middle;" text="bind:cmpyflag"/>
  106. <Cell col="13" style="align:center middle;" text="bind:cmpycd"/>
  107. <Cell col="14" displaytype="combo" style="align:center middle;" text="bind:healexamdetlflag" combodataset="ds_init_comncdlist_A0070list_A0070" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  108. <Cell col="15" style="align:left middle;padding:0 0 0 3;" text="bind:smsmsg"/>
  109. <Cell col="16" text="bind:healexamflag"/>
  110. <Cell col="17" text="bind:rsrvdd"/>
  111. <Cell col="18" text="bind:rsrvno"/>
  112. <Cell col="19" text="bind:email"/>
  113. <Cell col="20" text="bind:lastchosdt"/>
  114. </Band>
  115. </Format>
  116. </Formats>
  117. </Grid>
  118. <Shape id="line2" class="line_10" position="absolute 0 113 1195 119" anchor="left top right"/>
  119. <Button id="btn_trsmstat" taborder="2" text="전송제외" class="btn2" position="absolute 1050 94 1114 113" anchor="top right" onclick="btn_trsmstat_onclick"/>
  120. <Button id="btn_saveexcel" taborder="3" text="엑셀저장" class="btn7" position="absolute 1115 94 1195 113" anchor="top right" onclick="btn_saveexcel_onclick"/>
  121. <Static id="caption2" text="예약 전송 목록" class="tit_2" position="absolute 0 97 129 119"/>
  122. <Button id="btn_sms" taborder="4" text="SMS전송" class="btn3" position="absolute 0 752 84 774" onclick="btn_sms_onclick" anchor="left bottom"/>
  123. <Button id="btn_email" taborder="5" text="이메일발송" class="btn3" position="absolute 86 752 178 774" onclick="btn_email_onclick" anchor="left bottom"/>
  124. <Button id="btn_save" taborder="6" text="저장" class="btn4" position="absolute 1068 752 1124 774" onclick="btn_save_onclick" anchor="right bottom"/>
  125. <Button id="btn_init" taborder="7" text="초기화" class="btn4" position="absolute 1127 752 1195 774" onclick="btn_init_onclick" anchor="right bottom"/>
  126. </Layout>
  127. </Layouts>
  128. <Objects>
  129. <Dataset id="ds_send_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  130. <ColumnInfo>
  131. <Column id="rsrvfromdd" type="STRING" size="256"/>
  132. <Column id="rsrvtodd" type="STRING" size="256"/>
  133. <Column id="cmpynm" type="STRING" size="256"/>
  134. <Column id="cmpycd" type="STRING" size="256"/>
  135. <Column id="pkgnm" type="STRING" size="256"/>
  136. <Column id="pkgcd" type="STRING" size="256"/>
  137. <Column id="healexamdetlflag" type="STRING" size="256"/>
  138. <Column id="pid" type="STRING" size="256"/>
  139. <Column id="rrgstno1" type="STRING" size="256"/>
  140. <Column id="rrgstno2" type="STRING" size="256"/>
  141. <Column id="patnm" type="STRING" size="256"/>
  142. <Column id="trsmstat" type="STRING" size="256"/>
  143. <Column id="healexamflag" type="STRING" size="256"/>
  144. </ColumnInfo>
  145. <Rows>
  146. <Row>
  147. <Col id="rsrvfromdd"/>
  148. <Col id="rsrvtodd"/>
  149. <Col id="cmpynm"/>
  150. <Col id="cmpycd"/>
  151. <Col id="pkgnm"/>
  152. <Col id="pkgcd"/>
  153. <Col id="healexamdetlflag"/>
  154. <Col id="pid"/>
  155. <Col id="rrgstno1"/>
  156. <Col id="rrgstno2"/>
  157. <Col id="patnm"/>
  158. <Col id="trsmstat"/>
  159. <Col id="healexamflag">G</Col>
  160. </Row>
  161. </Rows>
  162. </Dataset>
  163. <Dataset id="ds_main_list_rsrvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  164. <ColumnInfo>
  165. <Column id="hopedd" type="STRING" size="256" sumtext="예약희망일자"/>
  166. <Column id="rsrvtm" type="STRING" size="256" sumtext="예약시간"/>
  167. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  168. <Column id="hngnm" type="STRING" size="256" sumtext="환자이름"/>
  169. <Column id="rrgstno" type="STRING" size="256" sumtext="주민등록번호"/>
  170. <Column id="clntgrde" type="STRING" size="256" sumtext="고객등급"/>
  171. <Column id="cmpyflag" type="STRING" size="256" sumtext="단체여부"/>
  172. <Column id="cmpycd" type="STRING" size="256" sumtext="사업체"/>
  173. <Column id="pkgcd" type="STRING" size="256" sumtext="패키지"/>
  174. <Column id="healexamdetlflag" type="STRING" size="256" sumtext="건진상세분류"/>
  175. <Column id="statflag" type="STRING" size="256" sumtext="예약상태"/>
  176. <Column id="trsmstat" type="INT" size="256" sumtext="전송여부"/>
  177. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
  178. <Column id="smsmsg" type="STRING" size="256" sumtext="문자메시지"/>
  179. <Column id="healexamflag" type="STRING" size="256" sumtext="건진분류(키)"/>
  180. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약일자(키)"/>
  181. <Column id="rsrvno" type="INT" size="256" sumtext="예약번호(키)"/>
  182. <Column id="email" type="STRING" size="256" sumtext="이메일"/>
  183. <Column id="lastchosdt" type="STRING" size="256" sumtext="최종내원일시"/>
  184. </ColumnInfo>
  185. </Dataset>
  186. <Dataset id="ds_init_comncdlist_C0019list_C0019" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  187. <Dataset id="ds_init_comncdlist_A0107list_A0107" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  188. <Dataset id="ds_init_comncdlist_A0070list_A0070" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  189. <Dataset id="ds_init_comncdlist_A0118list_A0118" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  190. <Dataset id="ds_init_rsrvrule" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  191. <Dataset id="ds_send_rsrvrule" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  192. <ColumnInfo>
  193. <Column id="rsrvflag" type="STRING" size="256"/>
  194. </ColumnInfo>
  195. <Rows>
  196. <Row>
  197. <Col id="rsrvflag">4</Col>
  198. </Row>
  199. </Rows>
  200. </Dataset>
  201. <Dataset id="ds_send_rsrvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  202. </Objects>
  203. <Bind>
  204. <BindItem id="item0" compid="group2.ipt_ordfromdd" propid="value" datasetid="ds_send_srch" columnid="rsrvfromdd"/>
  205. <BindItem id="item1" compid="group2.ipt_ordtodd" propid="value" datasetid="ds_send_srch" columnid="rsrvtodd"/>
  206. <BindItem id="item2" compid="group2.ipt_pid" propid="value" datasetid="ds_send_srch" columnid=""/>
  207. <BindItem id="item3" compid="group2.ipt_rrgst2" propid="value" datasetid="ds_send_srch" columnid="rrgstno2"/>
  208. <BindItem id="item4" compid="group2.ipt_rrgst1" propid="value" datasetid="ds_send_srch" columnid="rrgstno1"/>
  209. <BindItem id="item5" compid="group2.ipt_cmpycd" propid="value" datasetid="ds_send_srch" columnid="cmpynm"/>
  210. <BindItem id="item6" compid="group2.ipt_pkgcd" propid="value" datasetid="ds_send_srch" columnid="pkgnm"/>
  211. <BindItem id="item7" compid="group2.ipt_patnm" propid="value" datasetid="ds_send_srch" columnid="patnm"/>
  212. <BindItem id="item8" compid="group2.cmb_trsmstat" propid="value" datasetid="ds_send_srch" columnid="trsmstat"/>
  213. <BindItem id="item9" compid="group2.cmb_rsrvflag" propid="value" datasetid="ds_send_srch" columnid="healexamdetlflag"/>
  214. </Bind>
  215. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  216. * System Name :
  217. * Job Name :
  218. * Creator :
  219. * Make Date : 2016-05-24
  220. * Description :
  221. *---------------------------------------------------------------------------------------
  222. * Modify Date Modifier Modify Description
  223. *---------------------------------------------------------------------------------------
  224. * 2016-05-24 Live Converter TF->XP
  225. *
  226. *---------------------------------------------------------------------------------------
  227. ****************************************************************************************/
  228. include "com_commonxp::comm_main.xjs";
  229. include "crm_crmxp::CCZ001.xjs";
  230. include "crm_reservexp::CFZ001.xjs";
  231. function SMCFA00600_oninit(obj:Form, e:InitEventInfo)
  232. {
  233. frmf_initForm(obj);
  234. }
  235. function SMCFA00600_onload(obj:Form, e:LoadEventInfo)
  236. {
  237. grdf_initGrid(grd_rsrvlist);
  238. grdf_setRowTypeIcon(grd_rsrvlist, 1);
  239. grdf_setToolTipBind(grd_rsrvlist);
  240. // A0068: 건진구분1, A0069: 건진구분2, A0070: 건진구분3, A0107: 건진상태구분, A0118: 종합건진고객등급, C0019: 전송상태
  241. var arrParam = [{dsNm: "ds_init_comncdlist_A0070list_A0070", cdGrpId: "A0070"}
  242. ,{dsNm: "ds_init_comncdlist_A0107list_A0107", cdGrpId: "A0107"}
  243. ,{dsNm: "ds_init_comncdlist_A0118list_A0118", cdGrpId: "A0118"}
  244. ,{dsNm: "ds_init_comncdlist_C0019list_C0019", cdGrpId: "C0019"}]
  245. appf_getCodeList(arrParam);
  246. var oParam = {};
  247. oParam.id = "TRCFA00102";
  248. oParam.service = "rsrvinfoapp.RsrvInfo";
  249. oParam.method = "reqGetRsrvRule";
  250. oParam.inds = "req=ds_send_rsrvrule";
  251. oParam.outds = "ds_init_rsrvrule=rsrvrule";
  252. oParam.async = false;
  253. //oParam.callback = "cf_TRCFA00102";
  254. tranf_submit(oParam); // 예약주기관리(발송일, 발송 메시지)
  255. var delive_dd = ds_init_rsrvrule.getColumn(0, "delivedd");
  256. var rsrv_dd = utlf_getCurrentDate().toDate().getAddDate(parseInt(delive_dd), "D").getDateFormat("YYYYMMDD");
  257. ds_send_srch.setColumn(0, "rsrvfromdd", rsrv_dd);
  258. ds_send_srch.setColumn(0, "rsrvtodd", rsrv_dd);
  259. var comboIDs = "group2.cmb_trsmstat|group2.cmb_rsrvflag";
  260. frmf_addComboItemAll( comboIDs, "- 전 체 -", "all");
  261. group2.cmb_trsmstat.index = 0;
  262. group2.cmb_rsrvflag.index = 0;
  263. fCheckAuth();
  264. fInitRsrvList();
  265. }
  266. function fCheckAuth()
  267. {
  268. // 권한체크
  269. if (!frmf_checkAuth("r"))
  270. {
  271. group2.btn_search.enable = false;
  272. }
  273. if (!frmf_checkAuth("x"))
  274. {
  275. btn_save.enable = false;
  276. btn_trsmstat.enable = false;
  277. btn_sms.enable = false;
  278. btn_email.enable = false;
  279. }
  280. if (!frmf_checkAuth("p"))
  281. {
  282. btn_saveexcel.enable = false;
  283. }
  284. }
  285. function fInitRsrvList()
  286. {
  287. // 그리드 초기화
  288. ds_main_list_rsrvlist.clearData();
  289. }
  290. function group2_btn_pid_srch_onclick(obj:Button, e:ClickEventInfo)
  291. {
  292. var search_condition = "pid";
  293. var search_term = ds_send_srch.getColumn(0, "pid");
  294. var rtn = cczfOpenSelectClnt2(search_condition, search_term);
  295. ds_send_srch.setColumn(0, "pid", rtn.pid);
  296. ds_send_srch.setColumn(0, "patnm", rtn.hngnm);
  297. }
  298. function group2_btn_cmpy_srch_onclick(obj:Button, e:ClickEventInfo)
  299. {
  300. fCmpyCodeList();
  301. }
  302. function fCmpyCodeList(receive_cmpycd_path, receive_cmpynm_path)
  303. {
  304. // 사업장검색 팝업창 호출
  305. var rtn = frmf_modal("SPCHI00200", "SPCHI00200", "", "", "", "", "", "", "", "", "", "", "M");
  306. ds_send_srch.setColumn(0, "cmpynm", rtn.cmpynm);
  307. ds_send_srch.setColumn(0, "cmpycd", rtn.cmpycd);
  308. }
  309. function group2_btn_pkg_srch_onclick(obj:Button, e:ClickEventInfo)
  310. {
  311. fPkgCodeList();
  312. }
  313. function fPkgCodeList(receive_pkgcd_path, receive_pkgnm_path)
  314. {
  315. // 패키지검색 팝업창 호출
  316. var rtn = frmf_modal("SPCHI00700", "SPCHI00700", "", "", "", "", "", "", "", "", "", "", "M");
  317. ds_send_srch.setColumn(0, "pkgnm", rtn.pkgnm);
  318. ds_send_srch.setColumn(0, "pkgcd", rtn.pkgcd);
  319. }
  320. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  321. {
  322. var oParam = {};
  323. oParam.id = "TRCFA00401";
  324. oParam.service = "rsrvinfoapp.RsrvInfo";
  325. oParam.method = "reqGetHealRsrv";
  326. oParam.inds = "req=ds_send_srch";
  327. oParam.outds = "ds_main_list_rsrvlist=rsrvlist";
  328. oParam.async = false;
  329. //oParam.callback = "cf_TRCFA00401";
  330. tranf_submit(oParam);
  331. }
  332. function btn_trsmstat_onclick(obj:Button, e:ClickEventInfo)
  333. {
  334. // 전송상태(trsmstat)를 '전송대기(0)'인 데이터만 '전송제외(2)'로 변경
  335. var grid = grd_rsrvlist;
  336. var trsmstat_col = "trsmstat";
  337. cfzfChangeTrsmStat(grid, trsmstat_col);
  338. }
  339. function btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
  340. {
  341. grdf_exportExcel(grd_rsrvlist, "excel", "SheetName", "true", "", "");
  342. }
  343. function btn_sms_onclick(obj:Button, e:ClickEventInfo)
  344. {
  345. cczfSMSTrsmOpen("grid",grd_rsrvlist,"hngnm","mpphontel","","");
  346. }
  347. function btn_email_onclick(obj:Button, e:ClickEventInfo)
  348. {
  349. cczfEmailTrsmOpen("grid",grd_rsrvlist,"email","");
  350. }
  351. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  352. {
  353. fSaveRsrvList();
  354. }
  355. function fSaveRsrvList()
  356. {
  357. // 예약메시지 전송에서 제외한 목록 저장
  358. var grid = grd_rsrvlist;
  359. var updt_list = grdf_getGridUpdateData(grid);
  360. if (updt_list.rowcount != 0)
  361. {
  362. grdf_setStatusColumn(updt_list, "status");
  363. ds_send_rsrvlist.copyData(updt_list, true);
  364. }
  365. var oParam = {};
  366. oParam.id = "TXCFA00401";
  367. oParam.service = "rsrvinfoapp.RsrvInfo";
  368. oParam.method = "reqExeHealRsrv";
  369. oParam.inds = "rsrvlist=ds_send_rsrvlist";
  370. oParam.outds = "";
  371. oParam.async = false;
  372. oParam.callback = "cf_TXCFA00401";
  373. tranf_submit(oParam);
  374. }
  375. function cf_TXCFA00401(sSvcId, nErrorCode, sErrorMsg)
  376. {
  377. if(nErrorCode < 0) return;
  378. else
  379. {
  380. ds_main_list_rsrvlist.applyChange();
  381. ds_send_rsrvlist.clearData();
  382. sysf_messageBox("전송상태 저장이","I002");
  383. }
  384. }
  385. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  386. {
  387. fInitRsrvList();
  388. }
  389. ]]></Script>
  390. </Form>
  391. </FDL>