SMMMD05200_Medical Reference.xfdl 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMMD05200" position="absolute 0 0 1256 776" titletext="Medical Reference" onload="SMMMD05200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="ivw_indxmngt" position="absolute 0 97 350 762" anchor="default" positiontype="position" asyncmode="false" url="emr_cpcdssxp::SMMMD05300_MR색인관리.xfdl">
  8. <Layouts/>
  9. </Div>
  10. <Button id="brn_srchtree" class="btn2" visible="true" position="absolute 301 74 345 94" anchor="default" positiontype="position" text="신규" onlbuttonup="brn_srchtree_onlbuttonup" onclick="brn_srchtree_onclick"/>
  11. <Static id="cap_outlineinfo" class="tit_2" position="absolute 360 77 513 97" anchor="default" positiontype="position" text="색인 내용(PDF)"/>
  12. <Static id="caption1" class="tit_2" position="absolute 0 77 98 97" anchor="default" positiontype="position" text="색인"/>
  13. <Static id="caption6" class="tit_1" position="absolute 0 1 168 26" anchor="default" positiontype="position" text="Medical reference"/>
  14. <Div id="group5" taborder="6" style="align:center top;" class="div_SA" position="absolute 0 30 1256 72" anchor="left top right">
  15. <Layouts>
  16. <Layout>
  17. <Edit id="ipt_indxnm" taborder="1" class="input_search" position="absolute 68 10 327 30" anchor="default" imemode="hangul" onkeydown="group5_ipt_indxnm_onkeydown" positiontype="position"/>
  18. <Static id="caption00" text="진료과" class="search_name" position="absolute 351 10 417 30" anchor="default"/>
  19. <Combo id="cmb_orddept" taborder="2" position="absolute 413 10 583 30" anchor="default" positiontype="position"/>
  20. <Button id="btn_srchindxcd" taborder="3" text="조회" onlbuttonup="btn_srchindxcd_onlbuttonup" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onclick="btn_srchindxcd_onclick" positiontype="position"/>
  21. <Combo id="cbm_dept" taborder="4" position="absolute 413 10 583 30" index="-1" innerdataset="@ds_cond_instcd" codecolumn="deptcd" datacolumn="depthngnm" onitemchanged="group5_cbm_dept_onitemchanged" anchor="default"/>
  22. <Static id="caption01" text="색인명" class="search_name" position="absolute 9 10 75 30" anchor="default"/>
  23. </Layout>
  24. </Layouts>
  25. </Div>
  26. <WebBrowser id="WebBrowser00" text="WebBrowser00" position="absolute 358 97 1245 760" anchor="default" taborder="9"/>
  27. </Layout>
  28. </Layouts>
  29. <Objects>
  30. <Dataset id="ds_grid_grd_drugdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  31. <ColumnInfo>
  32. <Column id="deptcd" type="STRING"/>
  33. <Column id="depthngnm" type="STRING"/>
  34. </ColumnInfo>
  35. </Dataset>
  36. <Dataset id="ds_cond_instcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  37. <ColumnInfo>
  38. <Column id="deptcd" type="STRING" size="256"/>
  39. <Column id="depthngnm" type="STRING" size="256"/>
  40. <Column id="deptengabbr" type="STRING" size="256"/>
  41. </ColumnInfo>
  42. </Dataset>
  43. </Objects>
  44. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  45. * System Name :
  46. * Job Name :
  47. * File Name : SMMMD05200_Medical Reference.xfdl
  48. * Creator :
  49. * Make Date :
  50. *
  51. * Description :
  52. *---------------------------------------------------------------------------------------
  53. * Modify Date Modifier Modify Description
  54. *---------------------------------------------------------------------------------------
  55. *
  56. *---------------------------------------------------------------------------------------
  57. ****************************************************************************************/
  58. //=======================================================================================
  59. // xjs Include
  60. //---------------------------------------------------------------------------------------
  61. include "com_commonxp::comm_main.xjs";
  62. include "emr_prcpmngtxp::MMO001.xjs";
  63. include "com_departmentcodexp::ZSD001.xjs";
  64. include "emr_prcpmngtxp::SMMMO00100.xjs";
  65. //=======================================================================================
  66. // Function
  67. //---------------------------------------------------------------------------------------
  68. //******************************************************************
  69. // 전역변수
  70. //******************************************************************
  71. var loadflag = "Y";
  72. //=======================================================================================
  73. // Event
  74. //---------------------------------------------------------------------------------------
  75. /****************************************************************************************
  76. * Components :
  77. * Components ID : SMMMD05200
  78. * Event : onload
  79. * Argument : 01.obj : Object Event has occurred
  80. * : 02.e : Event Object
  81. * Description :
  82. ****************************************************************************************/
  83. function SMMMD05200_onload(obj:Form, e:LoadEventInfo)
  84. {
  85. frmf_initForm(obj); // 화면공통
  86. //진료과 데이터 가지고 오기
  87. lf_mmbfGetDeptCodeComboList(ds_cond_instcd,"A");
  88. // 소속부서 매핑
  89. var depthRows = ds_cond_instcd.rowcount;
  90. var deptcd = "";
  91. var deptYn = "N";
  92. for( var i=0; i<depthRows; i++){
  93. deptcd = ds_cond_instcd.getColumn(i,"deptcd");
  94. if( deptcd == sysf_getUserInfo("dutplcecd") ){
  95. group5.cbm_dept.value = deptcd;
  96. deptYn = "Y";
  97. ivw_indxmngt.lf_GetIndxList("A");
  98. break;
  99. }
  100. }
  101. // 매핑되는 소속 부서가 없는 경우 첫번째 콤보 부서로 선택처리
  102. if ( deptYn == "N" ) group5.cbm_dept.value = ds_cond_instcd.getColumn(0,"deptcd");
  103. }
  104. /****************************************************************************************
  105. * Components : Button
  106. * Components ID : btn_srchindxcd
  107. * Event : onclick
  108. * Argument : 01.obj : Button
  109. * : 02.e : ClickEventInfo
  110. * Description : 색인 조회 버튼
  111. ****************************************************************************************/
  112. function btn_srchindxcd_onclick(obj:Button, e:ClickEventInfo)
  113. {
  114. if ( loadflag == "Y" ) {
  115. loadflag = "N";
  116. }
  117. else {
  118. //SMMMD05300_MR색인관리의 함수
  119. ivw_indxmngt.lf_GetIndxList("A");
  120. }
  121. }
  122. /****************************************************************************************
  123. * Components : Button
  124. * Components ID : brn_srchtree
  125. * Event : onclick
  126. * Argument : 01.obj : Button
  127. * : 02.e : ClickEventInfo
  128. * Description : 신규(새폴더)함수
  129. ****************************************************************************************/
  130. function brn_srchtree_onclick(obj:Button, e:ClickEventInfo)
  131. {
  132. //SMMMD05300_MR색인관리의 함수
  133. ivw_indxmngt.lf_NewFolder();
  134. }
  135. /****************************************************************************************
  136. * Components : Combo
  137. * Components ID : group5_cbm_dept
  138. * Event : onitemchanged
  139. * Argument : 01.obj : Combo
  140. * : 02.e : ItemChangeEventInfo
  141. * Description : 진료과 변경시 재조회
  142. ****************************************************************************************/
  143. function group5_cbm_dept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  144. {
  145. //SMMMD05300_MR색인관리의 함수
  146. ivw_indxmngt.lf_GetIndxList("A");
  147. }
  148. /****************************************************************************************
  149. * Components : Edit
  150. * Components ID : group5_ipt_indxnm
  151. * Event : onkeydown
  152. * Argument : 01.obj : Edit
  153. * : 02.e : KeyEventInfo
  154. * Description : 색인명 입력하고 엔터키 누르면 조회
  155. ****************************************************************************************/
  156. function group5_ipt_indxnm_onkeydown(obj:Edit, e:KeyEventInfo)
  157. {
  158. if(e.keycode == "13")
  159. {
  160. ivw_indxmngt.lf_GetIndxList("A");
  161. }
  162. }
  163. ]]></Script>
  164. </Form>
  165. </FDL>