SMPMC01700_장애인환자관리.xfdl 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMC01700" position="absolute 0 0 1195 800" titletext="장애인환자관리" onload="SMPMC01700_onload" onclose="SMPMC01700_onclose">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 13 1195 757" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout/>
  10. </Layouts>
  11. </Div>
  12. <Static id="caption6" text="장애인환자관리" class="tit_1" position="absolute 0 0 140 25"/>
  13. <Button id="button10" taborder="1" text="초기화" class="btn4" position="absolute 1126 774 1194 796" onclick="button10_onclick"/>
  14. <Shape id="line32" class="line_6" position="absolute 0 768 1194 774" anchor="left right bottom"/>
  15. <Static id="caption2" text="* 2015년 10월 1일자로 차상위2종 / 의료급여2종에 대한 장애인여부만 자격조회를 통해 조회가능합니다. 세부내용 장애인 등록증 확인 필요!!!" position="absolute 180 240 940 260" style="color:red;"/>
  16. <Button id="button16" taborder="2" text="장애인내역저장" class="btn5" position="absolute 1092 237 1194 259" onclick="button16_onclick" anchor="top right"/>
  17. <Button id="button14" taborder="3" text="행삭제" class="btn5" position="absolute 1037 237 1090 259" onclick="button14_onclick" anchor="top right"/>
  18. <Button id="button8" taborder="4" text="행추가" class="btn2" position="absolute 982 237 1035 259" onclick="button8_onclick" anchor="top right"/>
  19. <Shape id="line18" linetype="horizontal" class="line_1" position="absolute 0 259 1194 265" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  20. <Static id="caption46" text="장애인환자내역 리스트" class="tit_2" position="absolute 0 243 156 260"/>
  21. <Grid id="grd_handcappat" taborder="5" binddataset="ds_main_handcappatlist" useinputpanel="false" position="absolute 0 264 1194 769" autoenter="select" cellsizebandtype="allband" cellsizingtype="both" oncloseup="grd_handcappat_oncloseup" anchor="all" oncellclick="grd_handcappat_oncellclick">
  22. <Formats>
  23. <Format id="default">
  24. <Columns>
  25. <Column size="0"/>
  26. <Column size="25"/>
  27. <Column size="90"/>
  28. <Column size="90"/>
  29. <Column size="80"/>
  30. <Column size="150"/>
  31. <Column size="60"/>
  32. <Column size="70"/>
  33. <Column size="120"/>
  34. <Column size="220"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="120"/>
  38. <Column size="60"/>
  39. <Column size="80"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. </Columns>
  45. <Rows>
  46. <Row size="24" band="head"/>
  47. <Row size="24"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell text="구분"/>
  51. <Cell col="1"/>
  52. <Cell col="2" text="취득일자"/>
  53. <Cell col="3" text="종료일자"/>
  54. <Cell col="4" text="장애구분"/>
  55. <Cell col="5" text="장애급수"/>
  56. <Cell col="6" text="관계"/>
  57. <Cell col="7" text="신청자명"/>
  58. <Cell col="8" text="장애인카드번호"/>
  59. <Cell col="9" text="참고사항"/>
  60. <Cell col="10" text="최초등록정보"/>
  61. <Cell col="11" text="최초등록정보"/>
  62. <Cell col="12" colspan="2" text="최종수정일시" taborder="undefined"/>
  63. <Cell col="14" text="기초생활수급"/>
  64. <Cell col="15" text="순번"/>
  65. <Cell col="16" text="환자등록번호"/>
  66. <Cell col="17" text="old장애구분"/>
  67. <Cell col="18" text="old종료일자"/>
  68. </Band>
  69. <Band id="body">
  70. <Cell displaytype="combo" edittype="combo" text="bind:gubun" combodataset="ds_init_gubun" combocodecol="value" combodatacol="label" enable="false"/>
  71. <Cell col="1" celltype="head"/>
  72. <Cell col="2" displaytype="date" edittype="expr:isReadonly(currow) ? 'none' : 'date'" style="align:left middle;" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  73. <Cell col="3" displaytype="date" edittype="expr:isReadonly(currow) ? 'none' : 'date'" style="align:left middle;" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  74. <Cell col="4" displaytype="combo" edittype="expr:isReadonly(currow) ? 'none' : 'combo'" style="align:center middle;" text="bind:handcapflag" combodataset="ds_init_P0307list" combocodecol="cdid" combodatacol="cdnm"/>
  75. <Cell col="5" displaytype="combo" edittype="expr:isReadonly(currow) ? 'none' : 'combo'" style="align:center middle;" text="bind:handcapgrde" combodataset="ds_init_P0308list" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="9"/>
  76. <Cell col="6" displaytype="combo" edittype="expr:isReadonly(currow) ? 'none' : 'combo'" style="align:center middle;" text="bind:rela" combodataset="ds_init_P0016list" combocodecol="cdid" combodatacol="cdnm"/>
  77. <Cell col="7" displaytype="text" edittype="expr:isReadonly(currow) ? 'none' : 'text'" style="align:center middle;" text="bind:apppsnnm"/>
  78. <Cell col="8" displaytype="text" edittype="expr:isReadonly(currow) ? 'none' : 'text'" text="bind:handcapcardno"/>
  79. <Cell col="9" displaytype="text" edittype="expr:isReadonly(currow) ? 'none' : 'text'" text="bind:remfact"/>
  80. <Cell col="10" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm:ss"/>
  81. <Cell col="11" text="bind:fstrgstrnm"/>
  82. <Cell col="12" displaytype="date" text="bind:lastupdtdt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="none"/>
  83. <Cell col="13" displaytype="normal" text="bind:lastupdtrnm" calendardisplaynulltype="none"/>
  84. <Cell col="14" displaytype="combo" edittype="expr:isReadonly(currow) ? 'none' : 'combo'" style="align:center middle;" text="bind:bslvflag" combodataset="ds_init_bslvflag" combocodecol="value" combodatacol="label"/>
  85. <Cell col="15" text="bind:seqno"/>
  86. <Cell col="16" text="bind:pid"/>
  87. <Cell col="17" text="bind:oldhandcapflag"/>
  88. <Cell col="18" text="bind:oldtodd"/>
  89. </Band>
  90. </Format>
  91. </Formats>
  92. </Grid>
  93. <Div id="import1" taborder="6" position="absolute 0 29 1195 242" url="pam_patinfomngtxp::SSPMC00100_인적사항.xfdl" anchor="left top right"/>
  94. </Layout>
  95. </Layouts>
  96. <Objects>
  97. <Dataset id="ds_main_handcappatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" onvaluechanged="ds_main_handcappatlist_onvaluechanged" cancolumnchange="ds_main_handcappatlist_cancolumnchange">
  98. <ColumnInfo>
  99. <Column id="gubun" type="STRING" size="256" sumtext="구분"/>
  100. <Column id="fromdd" type="STRING" size="256" sumtext="취득일자"/>
  101. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  102. <Column id="handcapflag" type="STRING" size="256" sumtext="장애구분"/>
  103. <Column id="handcapgrde" type="STRING" size="256" sumtext="장애급수"/>
  104. <Column id="remfact" type="STRING" size="256" sumtext="참고사항"/>
  105. <Column id="handcapcardno" type="STRING" size="256" sumtext="장애인카드번호"/>
  106. <Column id="fstrgstdt" type="STRING" size="256" sumtext="접수일자"/>
  107. <Column id="fstrgstrid" type="STRING" size="256" sumtext="접수자"/>
  108. <Column id="fstrgstrnm" type="STRING" size="256" sumtext="접수자"/>
  109. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
  110. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자"/>
  111. <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종수정자"/>
  112. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  113. <Column id="apppsnnm" type="STRING" size="256" sumtext="신청자명"/>
  114. <Column id="rela" type="STRING" size="256" sumtext="관계"/>
  115. <Column id="seqno" type="STRING" size="256" sumtext="순서"/>
  116. <Column id="oldtodd" type="STRING" size="256" sumtext="이전종료일자"/>
  117. <Column id="oldhandcapflag" type="STRING" size="256" sumtext="이전장애구분"/>
  118. <Column id="hndc_slflag" type="STRING" size="256" sumtext=""/>
  119. <Column id="bslvflag" type="STRING" size="256" sumtext="기초생활수급여부"/>
  120. </ColumnInfo>
  121. </Dataset>
  122. <Dataset id="ds_init_P0307list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  123. <ColumnInfo>
  124. <Column id="cdid" type="STRING" size="256"/>
  125. <Column id="cdnm" type="STRING" size="256"/>
  126. </ColumnInfo>
  127. </Dataset>
  128. <Dataset id="ds_init_P0308list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  129. <ColumnInfo>
  130. <Column id="cdid" type="STRING" size="256"/>
  131. <Column id="cdnm" type="STRING" size="256"/>
  132. </ColumnInfo>
  133. </Dataset>
  134. <Dataset id="ds_init_P0016list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  135. <ColumnInfo>
  136. <Column id="cdid" type="STRING" size="256"/>
  137. <Column id="cdnm" type="STRING" size="256"/>
  138. </ColumnInfo>
  139. </Dataset>
  140. <Dataset id="ds_init_P6578list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  141. <ColumnInfo>
  142. <Column id="cdid" type="STRING" size="256"/>
  143. <Column id="cdnm" type="STRING" size="256"/>
  144. </ColumnInfo>
  145. </Dataset>
  146. <Dataset id="ds_init_bslvflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  147. <ColumnInfo>
  148. <Column id="value" type="STRING" size="256"/>
  149. <Column id="label" type="STRING" size="256"/>
  150. </ColumnInfo>
  151. <Rows>
  152. <Row>
  153. <Col id="value">Y</Col>
  154. <Col id="label">예</Col>
  155. </Row>
  156. <Row>
  157. <Col id="label">아니요</Col>
  158. <Col id="value">N</Col>
  159. </Row>
  160. </Rows>
  161. </Dataset>
  162. <Dataset id="ds_send_handycap" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  163. <Dataset id="ds_temp_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  164. <Dataset id="ds_init_gubun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  165. <ColumnInfo>
  166. <Column id="label" type="STRING" size="256"/>
  167. <Column id="value" type="STRING" size="256"/>
  168. </ColumnInfo>
  169. <Rows>
  170. <Row>
  171. <Col id="label">차상위</Col>
  172. <Col id="value">1</Col>
  173. </Row>
  174. <Row>
  175. <Col id="label">급여</Col>
  176. <Col id="value">2</Col>
  177. </Row>
  178. <Row>
  179. <Col id="label">기타</Col>
  180. <Col id="value">3</Col>
  181. </Row>
  182. </Rows>
  183. </Dataset>
  184. </Objects>
  185. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  186. * System Name :
  187. * Job Name :
  188. * Creator :
  189. * Make Date : 2016-05-24
  190. * Description :
  191. *---------------------------------------------------------------------------------------
  192. * Modify Date Modifier Modify Description
  193. *---------------------------------------------------------------------------------------
  194. * 2016-05-24 Live Converter TF->XP
  195. *
  196. *---------------------------------------------------------------------------------------
  197. ****************************************************************************************/
  198. //=======================================================================================
  199. // Lib Include
  200. //---------------------------------------------------------------------------------------
  201. include 'com_commonxp::comm_main.xjs';
  202. include 'pam_pamcomnxp::PAM001.xjs';
  203. var arErrorCode = new HashArray();
  204. var m_opener;
  205. var handcapgrde;
  206. //=======================================================================================
  207. // Local methods
  208. //---------------------------------------------------------------------------------------
  209. /****************************************************************************************
  210. * Argument :
  211. * Description : 장애인화자내역 그리드에 한 행을 추가하고 숨긴 컬럼 값을 세팅한다
  212. ****************************************************************************************/
  213. function fAddRow(){
  214. var pid = import1.ds_main_patinfo_patinfolist.getColumn(0, 'pid');
  215. var hngnm = import1.ds_main_patinfo_patinfolist.getColumn(0, 'hngnm');
  216. var idx = ds_main_handcappatlist.addRow();
  217. ds_main_handcappatlist.setColumn(idx, 'pid', pid);
  218. ds_main_handcappatlist.setColumn(idx, 'fromdd', utlf_getCurrentDate());
  219. // 2015/07/15 행추가시 종료일자가 자동으로 2년이 설정되도록 수정
  220. ds_main_handcappatlist.setColumn(idx, 'todd',
  221. utlf_getDateTime(utlf_getCurrentDate().toDate().getAddDate(-1, 'D').getAddDate(2, 'Y'), 'D'));
  222. ds_main_handcappatlist.setColumn(idx, 'appsnnm', hngnm);
  223. ds_main_handcappatlist.setColumn(idx, 'rela', '1');
  224. ds_main_handcappatlist.setColumn(idx, 'bslvflag', 'N');
  225. ds_main_handcappatlist.setColumn(idx, 'apppsnnm', import1.ds_main_patinfo_patinfolist.getColumn(0, 'hngnm'));
  226. return true;
  227. }
  228. /****************************************************************************************
  229. * Argument :
  230. * Description : 장애인환자내역 리스트 submission
  231. ****************************************************************************************/
  232. function fSearch(){
  233. if(import1.ds_main.getColumn(0, 'popupendflag') == 'ok'){
  234. var pid = import1.ds_main_patinfo_patinfolist.getColumn(0, 'pid');
  235. dsf_createDsRow('ds_req', [
  236. { col: 'pid', type: 'string', size: 256, val: pid },
  237. { col: 'hngnm', type: 'string', size: 256, val: '' },
  238. { col: 'rrgstno1', type: 'string', size: 256, val: '' },
  239. { col: 'rrgstno2', type: 'string', size: 256, val: '' },
  240. { col: 'checkflag', type: 'string', size: 256, val: '' },
  241. { col: 'srchbyrrgstno', type: 'string', size: 256, val: '' },
  242. { col: 'insukind', type: 'string', size: 256, val: '' },
  243. { col: 'orddeptcd', type: 'string', size: 256, val: '' },
  244. { col: 'orddd', type: 'string', size: 256, val: '' },
  245. { col: 'cretno', type: 'string', size: 256, val: '' }
  246. ], false);
  247. ds_main_handcappatlist.clearData();
  248. ds_main_handcappatlist.addRow();
  249. var oParam = {};
  250. oParam.id = "TRPMC01701";
  251. oParam.service = "patinfomngtapp.HandcapPat";
  252. oParam.method = "reqGetHandcapPat";
  253. oParam.inds = "req=ds_req";
  254. oParam.outds = "ds_main_handcappatlist=handcappatlist";
  255. oParam.async = false;
  256. //oParam.callback = "cf_TRPMC01701";
  257. tranf_submit(oParam);
  258. if(utlf_isNull(ds_main_handcappatlist.getColumnInfo("gubun"))) {
  259. ds_main_handcappatlist.addColumn("gubun", "string");
  260. }
  261. }
  262. }
  263. /****************************************************************************************
  264. * Argument :
  265. * Description : 차상위2종 장애인정보는 수정불가능하도록 제어 추가
  266. ****************************************************************************************/
  267. function isReadonly(row){
  268. if(ds_main_handcappatlist.getColumn(row, 'gubun') == '1'){
  269. return true;
  270. }
  271. return false;
  272. }
  273. //=======================================================================================
  274. // Events
  275. //---------------------------------------------------------------------------------------
  276. /****************************************************************************************
  277. * Argument :
  278. * Description : onload
  279. ****************************************************************************************/
  280. function SMPMC01700_onload(obj:Form, e:LoadEventInfo){
  281. frmf_initForm(obj);
  282. m_opener = frmf_getoOpener();
  283. grdf_setRowTypeIcon(grd_handcappat, 1);
  284. appf_getCodeList([
  285. { dsNm: 'ds_init_P0307list', cdGrpId: 'P0307' },
  286. { dsNm: 'ds_init_P0308list', cdGrpId: 'P0308' },
  287. { dsNm: 'ds_init_P0016list', cdGrpId: 'P0016' }
  288. ]);
  289. //ds_init_P6578list.addRow();
  290. // 2015/09/14 이정택(과코드 체크하여 행추가, 행삭제, 장애인내역저장 버튼 히든 처리)
  291. pamfGetCodeList([
  292. { dsNm: 'ds_init_P6578list', cdGrpId: 'P6578', showValue: false }
  293. ], false);
  294. var deptcd = sysf_getUserInfo('dutplcecd');
  295. ds_init_P6578list.enableevent = false;
  296. ds_init_P6578list.filter('cdid == "' + deptcd + '" && cdnm == "Y"');
  297. var cnt = ds_init_P6578list.rowcount;
  298. ds_init_P6578list.filter('');
  299. ds_init_P6578list.enableevent = true;
  300. if(cnt > 0){
  301. button8.visible = true; // 행추가
  302. button14.visible = true; // 행삭제
  303. button16.visible = true; // 장애인내역저장
  304. }
  305. else{
  306. button8.visible = false;
  307. button14.visible = false;
  308. button16.visible = false;
  309. }
  310. try {
  311. ds_temp_source.copyData(arg_ds_source);
  312. import1.group5.ipt_pid.value = ds_temp_source.getColumn(0, "pid");
  313. } catch(e) { }
  314. //import1.fSearchPatInfo();
  315. }
  316. /****************************************************************************************
  317. * Argument :
  318. * Description : 행추가 버튼 클릭
  319. ****************************************************************************************/
  320. function button8_onclick(obj:Button, e:ClickEventInfo){
  321. fAddRow();
  322. }
  323. /****************************************************************************************
  324. * Argument :
  325. * Description : 장애인환자내역 그리드 콤보 닫힘 이벤트
  326. ****************************************************************************************/
  327. function grd_handcappat_oncloseup(obj:Grid, e:GridEditEventInfo)
  328. {
  329. if(obj.getCellProperty('body', e.col, 'text') == 'bind:rela'){
  330. obj.updateToDataset();
  331. var strValue = ds_main_handcappatlist.getColumn(e.row, 'rela');
  332. if(strValue == '1'){
  333. ds_main_handcappatlist.setColumn(e.row, 'apppsnnm', import1.ds_main_patinfo_patinfolist.getColumn(0, 'hngnm'));
  334. }
  335. else{
  336. ds_main_handcappatlist.setColumn(e.row, 'apppsnnm', '');
  337. }
  338. }
  339. if(obj.getCellProperty('body', e.col, 'text') == 'bind:handcapgrde'){
  340. if(e.value == "01" || e.value == "02" || e.value == "03" || e.value == "04" || e.value == "05" || e.value == "06"){
  341. sysf_messageBox("1~6급은 사용하지 않는 급수입니다." , "E");
  342. ds_main_handcappatlist.setColumn(e.row, "handcapgrde", handcapgrde);
  343. return;
  344. }
  345. }
  346. }
  347. function grd_handcappat_oncellclick(obj:Grid, e:GridClickEventInfo)
  348. {
  349. if(obj.getCellProperty('body', e.col, 'text') == 'bind:handcapgrde'){
  350. handcapgrde = ds_main_handcappatlist.getColumn(e.row, "handcapgrde");
  351. }
  352. }
  353. /****************************************************************************************
  354. * Argument :
  355. * Description : 행삭제 버튼 클릭
  356. ****************************************************************************************/
  357. function button14_onclick(obj:Button, e:ClickEventInfo){
  358. if(sysf_messageBox('선택한 장애인 내역을', 'Q001') != 6){
  359. return;
  360. }
  361. var currow = ds_main_handcappatlist.rowposition;
  362. // 디비에 저장되지 않은 데이타는 그냥 삭제한다.
  363. if(ds_main_handcappatlist.getRowType(currow) == Dataset.ROWTYPE_INSERT){
  364. ds_main_handcappatlist.deleteRow(currow);
  365. return;
  366. }
  367. // 차상위 2종 장애인의 경우 삭제 불가
  368. if(ds_main_handcappatlist.getColumn(currow, 'gubun') == '1'){
  369. sysf_messageBox('차상위2종 장애인정보는 삭제할 수 없습니다', 'E999');
  370. return;
  371. }
  372. ds_send_handycap.clearData();
  373. grdf_setStatus(grd_handcappat, 'D', [currow]);
  374. var ds_tmp = grdf_getGridUpdateData(grd_handcappat, 'D');
  375. grdf_setStatusColumn(ds_tmp, 'status');
  376. ds_send_handycap.copyData(ds_tmp, true);
  377. dsf_setDefaultVal(ds_send_handycap, "all");
  378. var oParam = {};
  379. oParam.id = "TXPMC01702";
  380. oParam.service = "patinfomngtapp.HandcapPat";
  381. oParam.method = "reqExeHandcapPat";
  382. oParam.inds = "req=ds_send_handycap";
  383. oParam.outds = "";
  384. oParam.async = false;
  385. oParam.callback = "cf_TXPMC01702";
  386. tranf_submit(oParam);
  387. if(arErrorCode.pop("TXPMC01702") < 0){
  388. return;
  389. }
  390. ds_main_handcappatlist.deleteRow(currow);
  391. }
  392. function cf_TXPMC01702(sSvcId, nErrorCode, sErrorMsg) {
  393. arErrorCode.push(sSvcId, nErrorCode);
  394. }
  395. /****************************************************************************************
  396. * Argument :
  397. * Description : 장애인내역 저장 버튼 클릭
  398. ****************************************************************************************/
  399. function button16_onclick(obj:Button, e:ClickEventInfo){
  400. var ds_tmp = grdf_getGridUpdateData(grd_handcappat);
  401. grdf_setStatusColumn(ds_tmp, 'status');
  402. ds_send_handycap.copyData(ds_tmp); //.clearData();
  403. dsf_setDefaultVal(ds_send_handycap, "all");
  404. // dsf_createDsRow("ds_send_handycap", [
  405. // {col:"status", type:"STRING", size:256, val: ds_tmp.getColumn(0, "status")}
  406. // , {col:"gubun", type:"STRING", size:256, val: ds_tmp.getColumn(0, "gubun")}
  407. // , {col:"pid", type:"STRING", size:256, val: ds_tmp.getColumn(0, "pid")}
  408. // , {col:"handcapflag", type:"STRING", size:256, val: ds_tmp.getColumn(0, "handcapflag")}
  409. // , {col:"todd", type:"STRING", size:256, val: ds_tmp.getColumn(0, "todd")}
  410. // , {col:"seqno", type:"INT", size:256, val: ds_tmp.getColumn(0, "seqno")}
  411. // , {col:"instcd", type:"STRING", size:256, val: ds_tmp.getColumn(0, "instcd")}
  412. // , {col:"histstat", type:"STRING", size:256, val: ds_tmp.getColumn(0, "histstat")}
  413. // , {col:"fromdd", type:"STRING", size:256, val: ds_tmp.getColumn(0, "fromdd")}
  414. // , {col:"handcapgrde", type:"STRING", size:256, val: ds_tmp.getColumn(0, "handcapgrde")}
  415. // , {col:"handcapcardno", type:"STRING", size:256, val: ds_tmp.getColumn(0, "handcapcardno")}
  416. // , {col:"apppsnnm", type:"STRING", size:256, val: ds_tmp.getColumn(0, "apppsnnm")}
  417. // , {col:"rela", type:"STRING", size:256, val: ds_tmp.getColumn(0, "rela")}
  418. // , {col:"remfact", type:"STRING", size:256, val: ds_tmp.getColumn(0, "remfact")}
  419. // , {col:"oldtodd", type:"STRING", size:256, val: ds_tmp.getColumn(0, "oldtodd")}
  420. // , {col:"oldhandcapflag", type:"STRING", size:256, val: ds_tmp.getColumn(0, "oldhandcapflag")}
  421. // , {col:"bslvflag", type:"STRING", size:256, val: ds_tmp.getColumn(0, "bslvflag")}
  422. // ]);
  423. // dsf_setTypeFormat(ds_send_handycap, "seqno:INT");
  424. var oParam = {};
  425. oParam.id = "TXPMC01702";
  426. oParam.service = "patinfomngtapp.HandcapPat";
  427. oParam.method = "reqExeHandcapPat";
  428. oParam.inds = "req=ds_send_handycap";
  429. oParam.outds = "";
  430. oParam.async = false;
  431. oParam.callback = "cf_TXPMC01702";
  432. tranf_submit(oParam);
  433. if(arErrorCode.pop("TXPMC01702") < 0){
  434. return;
  435. }
  436. var pid = import1.ds_main_patinfo_patinfolist.getColumn(0, 'pid');
  437. dsf_createDsRow('ds_req', [
  438. { col: 'pid', type: 'string', size: 256, val: pid },
  439. { col: 'hngnm', type: 'string', size: 256, val: '' },
  440. { col: 'rrgstno1', type: 'string', size: 256, val: '' },
  441. { col: 'rrgstno2', type: 'string', size: 256, val: '' },
  442. { col: 'checkflag', type: 'string', size: 256, val: '' },
  443. { col: 'srchbyrrgstno', type: 'string', size: 256, val: '' },
  444. { col: 'insukind', type: 'string', size: 256, val: '' },
  445. { col: 'orddeptcd', type: 'string', size: 256, val: '' },
  446. { col: 'orddd', type: 'string', size: 256, val: '' }
  447. ], false);
  448. ds_main_handcappatlist.clearData();
  449. ds_main_handcappatlist.addRow();
  450. var oParam = {};
  451. oParam.id = "TRPMC01701";
  452. oParam.service = "patinfomngtapp.HandcapPat";
  453. oParam.method = "reqGetHandcapPat";
  454. oParam.inds = "req=ds_req";
  455. oParam.outds = "ds_main_handcappatlist=handcappatlist";
  456. oParam.async = false;
  457. //oParam.callback = "cf_TRPMC01701";
  458. tranf_submit(oParam);
  459. if(utlf_isNull(ds_main_handcappatlist.getColumnInfo("gubun"))) {
  460. ds_main_handcappatlist.addColumn("gubun", "string");
  461. }
  462. }
  463. /****************************************************************************************
  464. * Argument :
  465. * Description : 초기화 버튼 클릭
  466. ****************************************************************************************/
  467. function button10_onclick(obj:Button, e:ClickEventInfo){
  468. ds_main_handcappatlist.clearData();
  469. import1.ds_main_patinfo_patinfolist.clearData();
  470. import1.ds_main_patinfo_patinfolist.addRow();
  471. import1.group5.ipt_pid.setFocus();
  472. }
  473. function SMPMC01700_onclose(obj:Form, e:CloseEventInfo)
  474. {
  475. if(frmf_checkOpener()){
  476. if(arg_ds_source.getColumn(0, "orddd").toDate() >= ds_main_handcappatlist.getColumn(ds_main_handcappatlist.rowcount-1, "fromdd").toDate()
  477. && arg_ds_source.getColumn(0, "orddd").toDate() <= ds_main_handcappatlist.getColumn(ds_main_handcappatlist.rowcount-1, "todd").toDate()){
  478. m_opener.frmf_setParameter("SMPMC01700_handicapotptyn", "Y");
  479. }
  480. else{
  481. m_opener.frmf_setParameter("SMPMC01700_handicapotptyn", "N");
  482. }
  483. }
  484. }]]></Script>
  485. </Form>
  486. </FDL>