SPPIZ00400_상병코드조회.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPIZ00400" position="absolute 0 0 960 530" titletext="상병코드조회" oninit="SPPIZ00400_oninit" onload="SPPIZ00400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="div_search" taborder="2" class="div_SA" position="absolute 1 27 941 69" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption4" text="기준일자 :" class="search_name" position="absolute 8 11 82 34" anchor="default"/>
  11. <Calendar id="ipt_basedd" taborder="4" class="input_search" position="absolute 85 10 175 33" mask="####-##-##" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  12. <Static id="caption2" text="유형 :" class="search_name" position="absolute 200 11 248 34" anchor="default"/>
  13. <Radio id="rdo_diagkind" taborder="3" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 250 10 365 33" anchor="default" onitemchanged="Div00_rdo_diagkind_onitemchanged">
  14. <Dataset id="innerdataset">
  15. <ColumnInfo>
  16. <Column id="codecolumn" size="256"/>
  17. <Column id="datacolumn" size="256"/>
  18. </ColumnInfo>
  19. <Rows>
  20. <Row>
  21. <Col id="codecolumn">1</Col>
  22. <Col id="datacolumn">ICD10</Col>
  23. </Row>
  24. <Row>
  25. <Col id="codecolumn">2</Col>
  26. <Col id="datacolumn">확장</Col>
  27. </Row>
  28. </Rows>
  29. </Dataset>
  30. </Radio>
  31. <Static id="caption5" text="상병코드 :" class="search_name" position="absolute 375 11 449 34" anchor="default"/>
  32. <Static id="caption3" text="~" position="absolute 735 10 747 30" style="align:center;" anchor="default"/>
  33. <Edit id="ipt_diagcd" taborder="0" class="input_essential" position="absolute 450 10 550 33" anchor="default" inputmode="upper" onkeyup="div_search_ipt_diagcd_onkeyup" imemode="alpha" inputtype="numberandenglish" autoselect="true"/>
  34. <Edit id="ipt_diagnm" taborder="2" class="input_essential" position="absolute 635 10 835 33" anchor="default" onkeyup="div_search_ipt_diagnm_onkeyup" imemode="hangul"/>
  35. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 874 10 930 33" anchor="top right" onclick="div_search_btn_search_onclick"/>
  36. <Static id="caption00" text="상병명 :" class="search_name" position="absolute 574 11 634 34" anchor="default"/>
  37. </Layout>
  38. </Layouts>
  39. </Div>
  40. <Grid id="grd_diag" taborder="4" useinputpanel="false" position="absolute 0 93 940 492" autofittype="col" anchor="all" binddataset="ds_diag" cellsizingtype="col" oncelldblclick="grd_diag_oncelldblclick">
  41. <Formats>
  42. <Format id="default">
  43. <Columns>
  44. <Column size="30"/>
  45. <Column size="60"/>
  46. <Column size="90"/>
  47. <Column size="265"/>
  48. <Column size="308"/>
  49. <Column size="92"/>
  50. <Column size="0"/>
  51. <Column size="0"/>
  52. <Column size="39"/>
  53. </Columns>
  54. <Rows>
  55. <Row size="24" band="head"/>
  56. <Row size="24"/>
  57. </Rows>
  58. <Band id="head">
  59. <Cell/>
  60. <Cell col="1" text="ICD10"/>
  61. <Cell col="2" text="상병코드"/>
  62. <Cell col="3" text="영문명"/>
  63. <Cell col="4" text="한글명"/>
  64. <Cell col="5" text="특정기호"/>
  65. <Cell col="6" text="시작일자"/>
  66. <Cell col="7" text="종료일자"/>
  67. <Cell col="8" text="특례"/>
  68. </Band>
  69. <Band id="body">
  70. <Cell celltype="head" style="align:center;" expr="currow + 1"/>
  71. <Cell col="1" style="align:center middle;" text="bind:diagcd"/>
  72. <Cell col="2" style="align:center middle;" text="bind:termcd"/>
  73. <Cell col="3" style="align:left middle;padding:0 0 0 5;" text="bind:diagengnm"/>
  74. <Cell col="4" style="align:left middle;padding:0 0 0 5;" text="bind:diaghngnm"/>
  75. <Cell col="5" style="align:center middle;" text="bind:spclcd"/>
  76. <Cell col="6" displaytype="date" style="align:center;" text="bind:diagfromdd" mask="####-##-##" calendardisplaynulltype="nulltext"/>
  77. <Cell col="7" displaytype="date" style="align:center;" text="bind:diagtodd" mask="####-##-##" calendardisplaynulltype="nulltext"/>
  78. <Cell col="8" text="bind:estmexptyn"/>
  79. </Band>
  80. </Format>
  81. </Formats>
  82. </Grid>
  83. <Static id="caption1" text="상병 목록" class="tit_2" position="absolute 1 76 101 96"/>
  84. <Button id="btn_init" taborder="6" text="초기화" class="btn4" position="absolute 814 494 882 519" anchor="right bottom" onclick="btn_init_onclick"/>
  85. <Button id="btn_close" taborder="7" text="확인" class="btn4" position="absolute 884 494 940 519" anchor="right bottom" onclick="btn_close_onclick"/>
  86. <Static id="caption00" text="상병코드조회" class="tit_1" position="absolute 1 0 178 26"/>
  87. </Layout>
  88. </Layouts>
  89. <Objects>
  90. <Dataset id="ds_diag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  91. <ColumnInfo>
  92. <Column id="diagfromdd" type="STRING" size="256"/>
  93. <Column id="diagtodd" type="STRING" size="256"/>
  94. <Column id="diagcd" type="STRING" size="256"/>
  95. <Column id="termcd" type="STRING" size="256"/>
  96. <Column id="diaghngnm" type="STRING" size="256"/>
  97. <Column id="diagengnm" type="STRING" size="256"/>
  98. <Column id="spclcd" type="STRING" size="256"/>
  99. <Column id="estmexptyn" type="STRING" size="256"/>
  100. </ColumnInfo>
  101. <Rows>
  102. <Row>
  103. <Col id="diagfromdd"/>
  104. <Col id="diagtodd"/>
  105. <Col id="diagcd"/>
  106. <Col id="termcd"/>
  107. <Col id="diaghngnm"/>
  108. <Col id="diagengnm"/>
  109. <Col id="spclcd"/>
  110. </Row>
  111. </Rows>
  112. </Dataset>
  113. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  114. <ColumnInfo>
  115. <Column id="basedd" type="STRING" size="256"/>
  116. <Column id="diagcd" type="STRING" size="256"/>
  117. <Column id="diagnm" type="STRING" size="256"/>
  118. <Column id="selectedrdodiagkind" type="STRING" size="256"/>
  119. <Column id="flag" type="STRING" size="256"/>
  120. </ColumnInfo>
  121. <Rows>
  122. <Row>
  123. <Col id="basedd"/>
  124. <Col id="diagcd"/>
  125. <Col id="diagnm"/>
  126. <Col id="selectedrdodiagkind"/>
  127. <Col id="flag"/>
  128. </Row>
  129. </Rows>
  130. </Dataset>
  131. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  132. </Objects>
  133. <Bind>
  134. <BindItem id="item0" compid="div_search.ipt_basedd" propid="value" datasetid="ds_send" columnid="basedd"/>
  135. <BindItem id="item1" compid="div_search.rdo_diagkind" propid="value" datasetid="ds_send" columnid="selectedrdodiagkind"/>
  136. <BindItem id="item2" compid="div_search.ipt_diagcd" propid="value" datasetid="ds_send" columnid="diagcd"/>
  137. <BindItem id="item3" compid="div_search.ipt_diagnm" propid="value" datasetid="ds_send" columnid="diagnm"/>
  138. </Bind>
  139. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  140. var arErrorCode = new HashArray();
  141. function fCheckOpener() {
  142. var dsFlag = true;
  143. try{
  144. ds_send.copyData(arg_ds_diag);
  145. }
  146. catch(e){
  147. dsFlag = false;
  148. }
  149. if (!dsFlag) {
  150. ds_send.setColumn(0, "basedd", utlf_getCurrentDate());
  151. try {
  152. ds_send.setColumn(0, "diagcd", sDiagcd);
  153. } catch(e) {
  154. ds_send.setColumn(0, "diagcd", "");
  155. }
  156. try {
  157. ds_send.setColumn(0, "diagnm", sDiagnm);
  158. } catch(e) {
  159. ds_send.setColumn(0, "diagnm", "");
  160. }
  161. try {
  162. ds_send.setColumn(0, "selectedrdodiagkind", sSelectedrdodiagkind);
  163. } catch(e) {
  164. ds_send.setColumn(0, "selectedrdodiagkind", "");
  165. }
  166. try {
  167. ds_send.setColumn(0, "flag", sSingleFlag);
  168. } catch(e) {
  169. ds_send.setColumn(0, "flag", "");
  170. }
  171. }
  172. if (ds_send.getColumn(0, "selectedrdodiagkind") == "3") {
  173. ds_send.setColumn(0, "selectedrdodiagkind", "1");
  174. }
  175. if (utlf_isNull(ds_send.getColumn(0, "diagcd")) && utlf_isNull(ds_send.getColumn(0, "diagnm"))) {
  176. return;
  177. }
  178. var oParam = {};
  179. oParam.id = "TRPIZ00401";
  180. oParam.service = "insucomapp.SickAndWounded";
  181. oParam.method = "reqGetSickAndWounded";
  182. oParam.inds = "req=ds_send";
  183. oParam.outds = "ds_diag=listdiag";
  184. oParam.async = false;
  185. oParam.callback = "cf_TRPIZ00401";
  186. tranf_submit(oParam);
  187. }
  188. function cf_TRPIZ00401(sSvcId, nErrorCode, sErrorMsg) {
  189. arErrorCode.push(sSvcId, nErrorCode);
  190. }
  191. function fInitialize() {
  192. ds_diag.clearData();
  193. ds_send.clearData();
  194. ds_send.addRow();
  195. ds_send.setColumn(0, "selectedrdodiagkind", "1");
  196. ds_send.setColumn(0, "basedd", utlf_getCurrentDate());
  197. }
  198. function fSearchDiag() {
  199. ds_diag.clearData();
  200. if (utlf_isNull(ds_send.getColumn(0, "diagcd")) && utlf_isNull(ds_send.getColumn(0, "diagnm"))) {
  201. sysf_messageBox("상병코드 또는 상병명은", "I003"); // 상병코드 또는 상병명은 필수입력입니다.
  202. return;
  203. }
  204. if (ds_send.getColumn(0, "selectedrdodiagkind") != "1" && ds_send.getColumn(0, "selectedrdodiagkind") != "2") {
  205. sysf_messageBox("유형은", "I003"); // 유형은 필수입력입니다.
  206. return;
  207. }
  208. var oParam = {};
  209. oParam.id = "TRPIZ00401";
  210. oParam.service = "insucomapp.SickAndWounded";
  211. oParam.method = "reqGetSickAndWounded";
  212. oParam.inds = "req=ds_send";
  213. oParam.outds = "ds_diag=listdiag";
  214. oParam.async = false;
  215. oParam.callback = "cf_TRPIZ00401";
  216. tranf_submit(oParam);
  217. }
  218. function SPPIZ00400_oninit(obj:Form, e:InitEventInfo) {
  219. frmf_initForm(obj);
  220. }
  221. function SPPIZ00400_onload(obj:Form, e:LoadEventInfo) {
  222. grdf_initGrid(grd_diag);
  223. grdf_setToolTipBind(grd_diag);
  224. if (frmf_checkOpener()) {
  225. fCheckOpener();
  226. } else {
  227. fInitialize();
  228. }
  229. }
  230. function div_search_ipt_diagcd_onkeyup(obj:Edit, e:KeyEventInfo) {
  231. if (e.keycode == "13") {
  232. if (div_search.ipt_diagcd.text.length > 0) {
  233. obj.updateToDataset();
  234. fSearchDiag();
  235. }
  236. }
  237. }
  238. function div_search_ipt_diagnm_onkeyup(obj:Edit, e:KeyEventInfo) {
  239. if (e.keycode == "13") {
  240. if (div_search.ipt_diagnm.text.length > 1) {
  241. obj.updateToDataset();
  242. fSearchDiag();
  243. }
  244. }
  245. }
  246. function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  247. fSearchDiag();
  248. }
  249. function grd_diag_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  250. if (!frmf_checkOpener()) {
  251. sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); // 상위화면이 변경되어 데이터를 전달할 수 없습니다.
  252. } else if (ds_send.getColumn(0, "flag") == "M") {
  253. var rtnDs = new Dataset();
  254. rtnDs.copyData(ds_diag);
  255. rtnDs.clearData();
  256. rtnDs.addRow();
  257. rtnDs.copyRow(0, ds_diag, ds_diag.rowposition);
  258. this.close(rtnDs);
  259. } else {
  260. var objArg = new Object();
  261. objArg.sDiagnm = ds_diag.getColumn(e.row, "diaghngnm");
  262. objArg.sDiagcd = ds_diag.getColumn(e.row, "diagcd");
  263. objArg.sTermcd = ds_diag.getColumn(e.row, "termcd");
  264. objArg.sDiagfromdd = ds_diag.getColumn(e.row, "diagfromdd");
  265. objArg.sDiagtodd = ds_diag.getColumn(e.row, "diagtodd");
  266. objArg.sDiagengnm = ds_diag.getColumn(e.row, "diagengnm");
  267. objArg.sSpclcd = ds_diag.getColumn(e.row, "spclcd");
  268. objArg.sSelectedrdodiagkind = ds_send.getColumn(0, "selectedrdodiagkind");
  269. trace(objArg.sDiagcd);
  270. trace(objArg.sDiagnm);
  271. trace(objArg.sTermcd);
  272. trace(objArg.sDiagfromdd);
  273. trace(objArg.sSpclcd);
  274. trace(objArg.sSelectedrdodiagkind);
  275. this.close(objArg);
  276. }
  277. }
  278. function btn_init_onclick(obj:Button, e:ClickEventInfo) {
  279. fInitialize();
  280. }
  281. function btn_close_onclick(obj:Button, e:ClickEventInfo) {
  282. this.close();
  283. }
  284. ]]></Script>
  285. </Form>
  286. </FDL>