SPMMO16600_코드조회.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO16600" position="absolute 0 0 616 344" titletext="코드조회" oninit="SPMMO16600_oninit" onload="SPMMO16600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="코드조회" position="absolute 0 0 82 25" id="cap_title" class="tit_1"/>
  8. <Shape position="absolute 0 80 525 81" linetype="vertical" id="line1" class="line_1"/>
  9. <Static text="코드조회" position="absolute 0 91 115 111" id="cap_subtitle" class="tit_2"/>
  10. <Grid position="absolute 0 109 616 344" id="grd_prcplist" binddataset="ds_infolist" autofittype="col" cellclickbound="cell" anchor="all">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="100"/>
  15. <Column size="254"/>
  16. <Column size="262"/>
  17. </Columns>
  18. <Rows>
  19. <Row size="24" band="head"/>
  20. <Row size="24"/>
  21. </Rows>
  22. <Band id="head">
  23. <Cell text="처방코드"/>
  24. <Cell col="1" text="처방명"/>
  25. <Cell col="2" text="처방한글명"/>
  26. </Band>
  27. <Band id="body">
  28. <Cell style="align:left middle;" text="bind:code"/>
  29. <Cell col="1" style="align:left middle;" text="bind:engnm"/>
  30. <Cell col="2" style="align:left middle;" text="bind:hngnm"/>
  31. </Band>
  32. </Format>
  33. </Formats>
  34. </Grid>
  35. <Div id="Div00" taborder="1" position="absolute 0 25 616 86" class="div_SA" anchor="left top right">
  36. <Layouts>
  37. <Layout>
  38. <Static id="cap_code" class="search_name" position="absolute 10 8 93 28" anchor="default"/>
  39. <Edit id="ipt_code" taborder="1" class="input_essential" position="absolute 108 8 232 28" anchor="default" inputmode="upper" onkeydown="Div00_ipt_code_onkeydown" autoselect="true"/>
  40. <Static id="cap_name" class="search_name" position="absolute 10 33 93 53" anchor="default"/>
  41. <Edit id="ipt_name" taborder="2" class="input_essential" position="absolute 108 33 429 53" anchor="default" onkeydown="Div00_ipt_name_onkeydown" autoselect="true"/>
  42. <Button id="btn_req" taborder="3" text="조회" class="btn1" position="absolute 551 21 607 41" anchor="top right" onclick="Div00_btn_req_onclick"/>
  43. <Shape id="line3" linetype="vertical" position="absolute 532 5 538 58" anchor="top right"/>
  44. </Layout>
  45. </Layouts>
  46. </Div>
  47. </Layout>
  48. </Layouts>
  49. <Objects>
  50. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  51. <ColumnInfo>
  52. <Column id="code" type="STRING" size="256"/>
  53. <Column id="name" type="STRING" size="256"/>
  54. <Column id="fromdd" type="STRING" size="256"/>
  55. <Column id="todd" type="STRING" size="256"/>
  56. </ColumnInfo>
  57. <Rows>
  58. <Row/>
  59. </Rows>
  60. </Dataset>
  61. <Dataset id="ds_infolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  62. <ColumnInfo>
  63. <Column id="code" type="STRING" size="256"/>
  64. <Column id="engnm" type="STRING" size="256"/>
  65. <Column id="hngnm" type="STRING" size="256"/>
  66. </ColumnInfo>
  67. </Dataset>
  68. </Objects>
  69. <Bind>
  70. <BindItem id="item0" compid="Div00.ipt_code" propid="value" datasetid="ds_cond" columnid="code"/>
  71. <BindItem id="item1" compid="Div00.ipt_name" propid="value" datasetid="ds_cond" columnid="name"/>
  72. </Bind>
  73. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  74. * System Name :
  75. * Job Name :
  76. * Creator :
  77. * Make Date : 2014-12-10
  78. * Description :
  79. *---------------------------------------------------------------------------------------
  80. * Modify Date Modifier Modify Description
  81. *---------------------------------------------------------------------------------------
  82. * 2014-12-10 Live Converter TF->XP
  83. *
  84. *---------------------------------------------------------------------------------------
  85. ****************************************************************************************/
  86. include "com_commonxp::comm_main.xjs";
  87. var code = opener.ds_cond.getColumn(0, "code");
  88. var fromdd = opener.ds_cond.getColumn(0, "fromdd");
  89. var todd = opener.ds_cond.getColumn(0, "todd");
  90. function SPMMO16600_oninit(obj:Form, e:InitEventInfo)
  91. {
  92. frmf_initForm(obj);
  93. }
  94. function SPMMO16600_onload(obj:Form, e:LoadEventInfo)
  95. {
  96. fCodeSrchInit();
  97. ds_cond.setColumn(0, "fromdd", fromdd);
  98. ds_cond.setColumn(0, "todd", todd)
  99. Div00.ipt_name.setFocus();
  100. }
  101. function Div00_ipt_code_onkeydown(obj:Edit, e:KeyEventInfo)
  102. {
  103. if(e.keycode == 13)
  104. Div00.btn_req.onclick.fireEvent(Div00.btn_req, new ClickEventInfo());
  105. }
  106. function Div00_ipt_name_onkeydown(obj:Edit, e:KeyEventInfo)
  107. {
  108. if(e.keycode == 13)
  109. Div00.btn_req.onclick.fireEvent(Div00.btn_req, new ClickEventInfo());
  110. }
  111. function Div00_btn_req_onclick(obj:Button, e:ClickEventInfo)
  112. {
  113. fGetData();
  114. }
  115. /*
  116. * @desc : 업무협조문 코드조회 초기화
  117. * @
  118. * @param :
  119. * @return :
  120. * @author : 김영학
  121. * @---------------------------------------------------
  122. */
  123. function fCodeSrchInit() {
  124. ds_infolist.clearData();
  125. if (code == "P") {
  126. Div00.cap_code.text = "처방코드 :";
  127. Div00.cap_name.text = "처 방 명 :"
  128. cap_subtitle.text = "처방코드조회"
  129. grd_prcplist.setCellProperty("head", 0, "text", "처방코드");
  130. grd_prcplist.setCellProperty("head", 1, "text", "처방명");
  131. grd_prcplist.setCellProperty("head", 2, "text", "처방한글명");
  132. } else {
  133. Div00.cap_code.text = "진단코드 :";
  134. Div00.cap_name.text = "진 단 명 :"
  135. cap_subtitle.text = "진단코드조회"
  136. grd_prcplist.setCellProperty("head", 0, "text", "진단코드");
  137. grd_prcplist.setCellProperty("head", 1, "text", "진단명");
  138. grd_prcplist.setCellProperty("head", 2, "text", "진단한글명");
  139. }
  140. }
  141. /**
  142. * @desc : 진단용어코드 검색
  143. * @
  144. * @param :
  145. * @return :
  146. * @author : 오지훈 -- 2008. 12. 08 . 업무협조문에 맞게 내용수정
  147. * @---------------------------------------------------
  148. */
  149. function fSearchDiagTermCD(){
  150. var icd10cd = Div00.ipt_code.text;
  151. var diagengnm = Div00.ipt_name.text;
  152. if(utlf_isNull(icd10cd) && utlf_isNull(diagengnm)){ //아무 값도 입력하지 않는 경우 return
  153. return;
  154. }
  155. if (utlf_isNull(icd10cd)) {
  156. frmf_setParameter("SPMMO00800_cond1", 2);
  157. frmf_setParameter("SPMMO00800_cond2", 4);
  158. frmf_setParameter("SPMMO00800_cond3", utlf_isHangul(diagengnm));
  159. frmf_setParameter("SPMMO00800_cond4", utlf_getCurrentDate());
  160. frmf_setParameter("SPMMO00800_cond5", diagengnm);
  161. } else if (utlf_isNull(diagengnm)) {
  162. frmf_setParameter("SPMMO00800_cond1", 1);
  163. frmf_setParameter("SPMMO00800_cond2", 4);
  164. frmf_setParameter("SPMMO00800_cond3", "E");
  165. frmf_setParameter("SPMMO00800_cond4", utlf_getCurrentDate());
  166. frmf_setParameter("SPMMO00800_cond5", icd10cd);
  167. }
  168. frmf_modal("SPMMO00850", "SPMMO00850", null, null, null, null, null, null, null, null, null, null, "M");
  169. //lyj 수정
  170. //modal("SPMMO00800");
  171. var useyn = frmf_getParameter("SPMMO00800_rtn_useyn");
  172. if(useyn == "Y"){
  173. frmf_setParameter("SPMMO00800_rtn_useyn", "");
  174. fSetDiagTermCD();
  175. } else {
  176. frmf_setParameter("SPMMO00800_rtn_useyn", "");
  177. ds_cond.setColumn(0, "code", "");
  178. ds_cond.setColumn(0, "name", "");
  179. }
  180. }
  181. /**
  182. * @desc : 진단용어코드 설정
  183. * @
  184. * @param :
  185. * @return :
  186. * @author : 오지훈 -- 2008. 12. 08 . 업무협조문에 맞게 내용수정
  187. * @---------------------------------------------------
  188. */
  189. function fSetDiagTermCD(){
  190. var rtnparam = frmf_getParameter("SPMMO00800_rtn");
  191. rtnparam = rtnparam.split("▩");
  192. for(var i = 1; i < rtnparam.length - 1; i++){
  193. var tmpstr = rtnparam[i];
  194. tmpstr = tmpstr.split("▦");
  195. var currow = ds_infolist.addRow();
  196. ds_infolist.setColumn(currow, "code" , tmpstr[3]);
  197. ds_infolist.setColumn(currow, "engnm", tmpstr[6]);
  198. ds_infolist.setColumn(currow, "hngnm", tmpstr[5]);
  199. }
  200. }
  201. /**
  202. * @desc : 처방코드 검색
  203. * @
  204. * @param :
  205. * @return :
  206. * @author : 김영학 (2008.12.10)
  207. * @---------------------------------------------------
  208. */
  209. function fSearchPrcpTermCD(){
  210. var icd10cd = Div00.ipt_code.text;
  211. var diagengnm = Div00.ipt_name.text;
  212. var fromdd = ds_cond.getColumn(0, "fromdd");
  213. var todd = ds_cond.getColumn(0, "todd");
  214. if(utlf_isNull(icd10cd) && utlf_isNull(diagengnm)){ //아무 값도 입력하지 않는 경우 return
  215. return;
  216. }
  217. if (utlf_isNull(icd10cd)) {
  218. frmf_setParameter("SPMMO00800_cond1", 2);
  219. frmf_setParameter("SPMMO00800_cond5", diagengnm);
  220. frmf_setParameter("SPMMO00800_fromdd", fromdd);
  221. frmf_setParameter("SPMMO00800_todd" , todd);
  222. } else if (utlf_isNull(diagengnm)) {
  223. frmf_setParameter("SPMMO00800_cond1", 1);
  224. frmf_setParameter("SPMMO00800_cond5", icd10cd);
  225. frmf_setParameter("SPMMO00800_fromdd", fromdd);
  226. frmf_setParameter("SPMMO00800_todd" , todd);
  227. }
  228. frmf_modal("SPMMO16700", "SPMMO16700", null, null, null, null, null, null, null, null, null, null, "M");
  229. var useyn = frmf_getParameter("SPMMO00800_rtn_useyn");
  230. if(useyn == "Y"){
  231. frmf_setParameter("SPMMO00800_rtn_useyn", "");
  232. fSetPrcpTermCD();
  233. }else{
  234. frmf_setParameter("SPMMO00800_rtn_useyn", "");
  235. ds_cond.getColumn(0, "code", "");
  236. }
  237. }
  238. /**
  239. * @desc : 처방코드 설정
  240. * @
  241. * @param :
  242. * @return :
  243. * @author : 김영학 (2008.12.10)
  244. * @---------------------------------------------------
  245. */
  246. function fSetPrcpTermCD(){
  247. var rtnparam = frmf_getParameter("SPMMO00800_rtn");
  248. rtnparam = rtnparam.split("▩");
  249. for(var i = 1; i < rtnparam.length - 1; i++){
  250. var tmpstr = rtnparam[i];
  251. tmpstr = tmpstr.split("▦");
  252. var currow = ds_infolist.addRow();
  253. ds_infolist.setColumn(currow, "code" , tmpstr[1]);
  254. ds_infolist.setColumn(currow, "engnm", tmpstr[2]);
  255. ds_infolist.setColumn(currow, "hngnm", tmpstr[3]);
  256. }
  257. }
  258. /**
  259. * @desc : 코드조회
  260. * @
  261. * @param :
  262. * @return :
  263. * @author : 김영학 (2008.12.12)
  264. * @---------------------------------------------------
  265. */
  266. function fGetData() {
  267. if (code == "P")
  268. fSearchPrcpTermCD();
  269. else
  270. fSearchDiagTermCD();
  271. var sRtnMsg = sysf_messageBox("추가로 코드를 검색", "S001");
  272. if (sRtnMsg != "6" ) {
  273. var rtn1 = dsf_getDsCSV(ds_infolist);
  274. opener.frmf_setParameter( "SPMMO16300", rtn1 );
  275. close();
  276. }
  277. }]]></Script>
  278. </Form>
  279. </FDL>