SMPMB04001_방문객DUR예외관리.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMB04001" classname="SPPID32200_외국인진료비예상금액산정" inheritanceid="" position="absolute 0 0 880 768" titletext="방문객 DUR 예외 관리" onload="SPPID32400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption00" text="방문객 DUR 예외 관리" class="tit_1" position="absolute 0 0 180 25"/>
  8. <Static id="caption18" text="뇌사기증자 리스트" onclick="caption1_onclick" class="tit_2" position="absolute 0 73 182 92" anchor="left top"/>
  9. <Shape id="line01" onclick="grp_tstmemo_line5_onclick" class="line_10" position="absolute 0 89 879 95" anchor="left top right"/>
  10. <Button id="btn_close" taborder="31" text="닫기" class="btn4" position="absolute 823 741 879 763" anchor="right bottom" onclick="btn_close_onclick"/>
  11. <Grid id="datagrid1" taborder="33" binddataset="ds_main_nondurlist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 94 879 736" anchor="all" onexpandup="datagrid1_onexpandup" oncelldblclick="datagrid1_oncelldblclick" onkeyup="datagrid1_onkeyup">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="24"/>
  16. <Column size="80"/>
  17. <Column size="80"/>
  18. <Column size="80"/>
  19. <Column size="120"/>
  20. <Column size="120"/>
  21. <Column size="80"/>
  22. <Column size="100"/>
  23. <Column size="80"/>
  24. <Column size="300"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. </Columns>
  29. <Rows>
  30. <Row size="24" band="head"/>
  31. <Row size="24"/>
  32. </Rows>
  33. <Band id="head">
  34. <Cell/>
  35. <Cell col="1" text="식별번호"/>
  36. <Cell col="2" text="이름"/>
  37. <Cell col="3" text="구분"/>
  38. <Cell col="4" text="주민번호"/>
  39. <Cell col="5" text="여권번호"/>
  40. <Cell col="6" text="외국인구분"/>
  41. <Cell col="7" text="등록일자"/>
  42. <Cell col="8" text="등록자"/>
  43. <Cell col="9" text="비고"/>
  44. <Cell col="10" text="cdgrupid_org"/>
  45. <Cell col="11" text="cdid_org"/>
  46. <Cell col="12" text="todd_org"/>
  47. </Band>
  48. <Band id="body">
  49. <Cell celltype="head"/>
  50. <Cell col="1" edittype="expr:expr:getRowType(currow)==2?'normal':'none'" editfilter="upper,number,nosign" text="bind:issueno" editimemode="alpha" editautoselect="true"/>
  51. <Cell col="2" displaytype="text" style="padding:5 2 3 2;" text="bind:name"/>
  52. <Cell col="3" displaytype="combo" text="bind:gubun" combodataset="ds_init_gubun" combocodecol="cdid" combodatacol="cdnm"/>
  53. <Cell col="4" text="bind:rrgstno" mask="expr:utlf_isNull(rrgstno)?'':'######-#******'" maskchar="*"/>
  54. <Cell col="5" text="bind:psptno"/>
  55. <Cell col="6" text="bind:forgeryn"/>
  56. <Cell col="7" displaytype="date" style="padding:0 0 0 0;" text="bind:rgstdd" editautoselect="true" calendardisplay="expr:expr:getRowType(currow)==2?'display':'edit'"/>
  57. <Cell col="8" text="bind:rgstid"/>
  58. <Cell col="9" displaytype="text" edittype="text" text="bind:bigo" editautoselect="true"/>
  59. <Cell col="10" text="bind:cdgrupid_org"/>
  60. <Cell col="11" text="bind:cdid_org"/>
  61. <Cell col="12" text="bind:todd_org"/>
  62. </Band>
  63. </Format>
  64. </Formats>
  65. </Grid>
  66. <Button id="btn_add" taborder="34" text="행추가" class="btn2" position="absolute 727 67 780 89" anchor="top right" onclick="btn_add_onclick"/>
  67. <Button id="btn_del" taborder="35" text="행삭제" class="btn2" position="absolute 782 67 835 89" anchor="top right" onclick="btn_del_onclick"/>
  68. <Button id="btn_save" taborder="36" text="저장" class="btn2" position="absolute 837 67 879 89" anchor="top right" onclick="btn_save_onclick"/>
  69. <Div id="grp_search" taborder="32" class="div_SA" position="absolute 0 25 879 65">
  70. <Layouts>
  71. <Layout width="1195" height="40">
  72. <Button id="btn_search" taborder="0" text="조회" class="btn1" position="absolute 808 10 864 32" anchor="default" onclick="grp_search_btn_search_onclick"/>
  73. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 792 9 795 32" anchor="default"/>
  74. <Static id="caption1" text="이름 :" class="search_name" position="absolute 8 13 64 30" anchor="default"/>
  75. <Edit id="input2" taborder="3" autoselect="true" position="absolute 65 11 157 31" anchor="default" onkeyup="grp_search_input2_onkeyup" imemode="hangul"/>
  76. <Static id="caption00" text="등록일자 : " class="search_name" position="absolute 215 12 298 29"/>
  77. <Calendar id="cal_srch_fromdd" taborder="4" position="absolute 296 10 404 30"/>
  78. <Static id="Static00" text="~" position="absolute 408 14 420 26"/>
  79. <Calendar id="cal_srch_todd" taborder="5" position="absolute 424 10 532 30"/>
  80. </Layout>
  81. </Layouts>
  82. </Div>
  83. </Layout>
  84. </Layouts>
  85. <Objects>
  86. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  87. <ColumnInfo>
  88. <Column id="issueno" type="STRING" size="256"/>
  89. <Column id="name" type="STRING" size="256"/>
  90. <Column id="fromdd" type="STRING" size="256"/>
  91. <Column id="todd" type="STRING" size="256"/>
  92. </ColumnInfo>
  93. <Rows>
  94. <Row>
  95. <Col id="issueno"/>
  96. <Col id="name"/>
  97. <Col id="fromdd"/>
  98. <Col id="todd"/>
  99. </Row>
  100. </Rows>
  101. </Dataset>
  102. <Dataset id="ds_main_nondurlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  103. <ColumnInfo>
  104. <Column id="instcd" type="STRING" size="256"/>
  105. <Column id="issueno" type="STRING" size="256"/>
  106. <Column id="gubun" type="STRING" size="256"/>
  107. <Column id="name" type="STRING" size="256"/>
  108. <Column id="rrgstno" type="STRING" size="256"/>
  109. <Column id="forgeryn" type="STRING" size="256"/>
  110. <Column id="psptno" type="STRING" size="256"/>
  111. <Column id="rgstdd" type="STRING" size="256"/>
  112. <Column id="rgstid" type="STRING" size="256"/>
  113. <Column id="bigo" type="STRING" size="256"/>
  114. </ColumnInfo>
  115. </Dataset>
  116. <Dataset id="ds_init_gubun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  117. <ColumnInfo>
  118. <Column id="cdid" type="STRING" size="256"/>
  119. <Column id="cdnm" type="STRING" size="256"/>
  120. </ColumnInfo>
  121. <Rows>
  122. <Row>
  123. <Col id="cdid">1</Col>
  124. <Col id="cdnm">환자</Col>
  125. </Row>
  126. <Row>
  127. <Col id="cdid">2</Col>
  128. <Col id="cdnm">직원</Col>
  129. </Row>
  130. <Row>
  131. <Col id="cdid">3</Col>
  132. <Col id="cdnm">외부직원</Col>
  133. </Row>
  134. <Row>
  135. <Col id="cdid">4</Col>
  136. <Col id="cdnm">보호자</Col>
  137. </Row>
  138. <Row>
  139. <Col id="cdid">5</Col>
  140. <Col id="cdnm">기타</Col>
  141. </Row>
  142. </Rows>
  143. </Dataset>
  144. <Dataset id="ds_temp_visitorinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  145. </Objects>
  146. <Bind>
  147. <BindItem id="item1" compid="grp_search.input2" propid="value" datasetid="ds_send" columnid="name"/>
  148. <BindItem id="item0" compid="grp_search.cal_srch_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  149. <BindItem id="item3" compid="grp_search.cal_srch_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  150. </Bind>
  151. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  152. function fInitialize() {
  153. grdf_setRowTypeIcon(datagrid1, 0);
  154. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate().toDate().getAddDate(-1,"Y").getDateFormat());
  155. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  156. try{
  157. if(arg_ds_pmohvist.rowcount > 0) {
  158. var nRow = ds_main_nondurlist.addRow();
  159. ds_main_nondurlist.copyRow(nRow, arg_ds_pmohvist, 0);
  160. ds_main_nondurlist.setColumn(nRow, "rgstdd", utlf_getCurrentDate());
  161. ds_main_nondurlist.setColumn(nRow, "rgstid", sysf_getUserId());
  162. } else fSearch();
  163. }catch(e){}
  164. }
  165. function fSearch() {
  166. var oParam = {};
  167. oParam.id = "getNonDurList";
  168. oParam.service = "pambaseinfomngtapp.Etc";
  169. oParam.method = "reqGetNonDurList";
  170. oParam.inds = "req=ds_send";
  171. oParam.outds = "ds_main_nondurlist=item";
  172. oParam.async = false;
  173. tranf_submit(oParam);
  174. }
  175. function fSave() {
  176. dsf_createDs("ds_send_savedata");
  177. var dsUpdate = grdf_getGridUpdateData(datagrid1, "all");
  178. grdf_setStatusColumn(dsUpdate, "m");
  179. ds_send_savedata.copyData(dsUpdate, true);
  180. var oParam = {};
  181. oParam.id = "exeNonDurList";
  182. oParam.service = "pambaseinfomngtapp.Etc";
  183. oParam.method = "reqExeNonDurList";
  184. oParam.inds = "req=ds_send_savedata";
  185. oParam.async = false;
  186. tranf_submit(oParam);
  187. }
  188. function fSetPmohvistList(issueno) {
  189. if(utlf_isNull(issueno)) return;
  190. if(issueno.substr(0,1) == "Z") { //방문객 마스터조회
  191. fGetVisitorInfo(issueno, "Z");
  192. } else if(issueno.substr(0,1) == "T") { //직원정보조회
  193. issueno = issueno.substr(1,5);
  194. fGetVisitorInfo(issueno, "T");
  195. } else if(issueno.length == 12) { //칠곡직원정보조회 T 없이 12자리
  196. issueno = issueno.substr(0,5);
  197. fGetVisitorInfo(issueno, "T");
  198. } else { //pam.pmcmptbs && 직원정보조회
  199. if(issueno.substr(0,1) == "P") {
  200. issueno = String(Number(issueno.substr(1, 9)));
  201. }
  202. fGetVisitorInfo(issueno, "E");
  203. if(ds_temp_visitorinfo.rowcount > 1) {
  204. dsf_createDs("ds_temp_visitorinfo2");
  205. dsf_copyColInfo(ds_temp_visitorinfo2, ds_temp_visitorinfo);
  206. var cRow = -1;
  207. if(sysf_messageBox("직원 입니까?","Q") == 6) {
  208. cRow = ds_temp_visitorinfo.findRow("gubun", "2");
  209. } else {
  210. cRow = ds_temp_visitorinfo.findRow("gubun", "1");
  211. }
  212. ds_temp_visitorinfo2.copyRow(ds_temp_visitorinfo2.addRow(), ds_temp_visitorinfo, cRow);
  213. ds_temp_visitorinfo.clear();
  214. ds_temp_visitorinfo.copyData(ds_temp_visitorinfo2);
  215. dsf_deleteDs("ds_temp_visitorinfo2");
  216. }
  217. }
  218. ds_main_nondurlist.copyRow(ds_main_nondurlist.rowposition, ds_temp_visitorinfo, 0);
  219. }
  220. function fGetVisitorInfo(issueno, gubun) {
  221. ds_temp_visitorinfo.clearData();
  222. dsf_createDsRow("ds_req", [{col: "issueno", val: issueno}
  223. , {col: "gubun", val : gubun}]);
  224. var oParam = {};
  225. oParam.id = "getVisitorInfo";
  226. oParam.service = "pambaseinfomngtapp.Etc";
  227. oParam.method = "reqGetVisitorInfo";
  228. oParam.inds = "req=ds_req";
  229. oParam.outds = "ds_temp_visitorinfo=item";
  230. oParam.force = true;
  231. oParam.async = false;
  232. tranf_submit(oParam);
  233. }
  234. function SPPID32400_onload(obj:Form, e:LoadEventInfo)
  235. {
  236. frmf_initForm(obj);
  237. fInitialize();
  238. }
  239. function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
  240. {
  241. fSearch();
  242. }
  243. function grp_search_input2_onkeyup(obj:Edit, e:KeyEventInfo)
  244. {
  245. if(e.keycode == 13) {
  246. obj.updateToDataset();
  247. fSearch();
  248. }
  249. }
  250. function btn_add_onclick(obj:Button, e:ClickEventInfo)
  251. {
  252. var nRow = ds_main_nondurlist.addRow();
  253. ds_main_nondurlist.setColumn(nRow, "rgstdd", utlf_getCurrentDate());
  254. ds_main_nondurlist.setColumn(nRow, "rgstid", sysf_getUserId());
  255. }
  256. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  257. {
  258. var selRow = ds_main_nondurlist.rowposition;
  259. if(ds_main_nondurlist.getRowType(selRow) == 2) {
  260. ds_main_nondurlist.deleteRow(selRow);
  261. } else {
  262. grdf_setStatus(datagrid1, "D", [selRow]);
  263. }
  264. }
  265. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  266. {
  267. fSave();
  268. fSearch();
  269. }
  270. function datagrid1_onkeyup(obj:Grid, e:KeyEventInfo)
  271. {
  272. if(e.keycode == 13 && obj.getCellPos() == 1) {
  273. fSetPmohvistList(ds_main_nondurlist.getColumn(ds_main_nondurlist.rowposition, "issueno"));
  274. }
  275. }
  276. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  277. {
  278. this.close();
  279. }]]></Script>
  280. </Form>
  281. </FDL>