SPADB61400_효능조회.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPADB61400" position="absolute 0 0 518 578" titletext="효능조회" oninit="SPADB61400_oninit" onload="SPADB61400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group2" taborder="1" class="div_SA2" position="absolute 0 0 518 35">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="line13" linetype="vertical" position="absolute 426 7 432 29" anchor="default"/>
  11. <Button id="btn_sea" taborder="1" text="조회" class="btn1" position="absolute 445 7 501 29" anchor="default" onclick="group2_btn_sea_onclick"/>
  12. <Static id="caption2" text="명칭 :" class="search_name" position="absolute 168 10 228 27" anchor="default"/>
  13. <Static id="caption3" text="코드 :" class="search_name" position="absolute 8 10 68 27" anchor="default"/>
  14. <Edit id="input1" taborder="2" class="input_search" position="absolute 230 8 420 27" anchor="default" onkeyup="group2_input1_onkeyup"/>
  15. <Edit id="input2" taborder="3" class="input_search" position="absolute 70 8 155 27" anchor="default" onkeyup="group2_input2_onkeyup"/>
  16. </Layout>
  17. </Layouts>
  18. </Div>
  19. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 58 518 64" style="strokepen:3 solid #33bbbbff;"/>
  20. <Grid id="grd_efcylist" taborder="2" binddataset="ds_main_efcylist" useinputpanel="false" position="absolute 0 63 518 545" treeusecheckbox="false" treeuseimage="false" autofittype="col" oncelldblclick="grd_efcylist_oncelldblclick">
  21. <Formats>
  22. <Format id="default">
  23. <Columns>
  24. <Column size="183"/>
  25. <Column size="334"/>
  26. <Column size="0"/>
  27. </Columns>
  28. <Rows>
  29. <Row size="24" band="head"/>
  30. <Row size="24"/>
  31. </Rows>
  32. <Band id="head">
  33. <Cell text="효능코드"/>
  34. <Cell col="1" text="효능명칭"/>
  35. <Cell col="2" text="레벨"/>
  36. </Band>
  37. <Band id="body">
  38. <Cell displaytype="tree" edittype="tree" style="align:left;padding:0 3 0 3;" text="bind:efcycd" treelevel="bind:efcylevel"/>
  39. <Cell col="1" style="align:left;padding:0 3 0 3;" text="bind:efcynm"/>
  40. <Cell col="2" text="bind:efcylevel"/>
  41. </Band>
  42. </Format>
  43. </Formats>
  44. </Grid>
  45. <Static id="caption1" text="효능조회" class="tit_2" position="absolute 2 42 105 59"/>
  46. <Button id="btn_cfm" taborder="3" text="확인" class="btn4" position="absolute 402 551 458 573" onclick="btn_cfm_onclick" visible="false"/>
  47. <Button id="btn_cls" taborder="4" text="닫기" class="btn4" position="absolute 461 551 517 573" onclick="btn_cls_onclick"/>
  48. </Layout>
  49. </Layouts>
  50. <Objects>
  51. <Dataset id="ds_main_efcylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  52. <ColumnInfo>
  53. <Column id="efcycd" type="STRING" size="256"/>
  54. <Column id="efcynm" type="STRING" size="256"/>
  55. <Column id="efcylevel" type="STRING" size="256"/>
  56. </ColumnInfo>
  57. <Rows>
  58. <Row>
  59. <Col id="efcycd"/>
  60. <Col id="efcynm"/>
  61. <Col id="efcylevel"/>
  62. </Row>
  63. </Rows>
  64. </Dataset>
  65. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  66. <ColumnInfo>
  67. <Column id="srchcomcd" type="STRING" size="256"/>
  68. <Column id="srchcomnm" type="STRING" size="256"/>
  69. </ColumnInfo>
  70. <Rows>
  71. <Row/>
  72. </Rows>
  73. </Dataset>
  74. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  75. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  76. <ColumnInfo>
  77. <Column id="receiveefcy" type="STRING" size="256"/>
  78. </ColumnInfo>
  79. <Rows>
  80. <Row/>
  81. </Rows>
  82. </Dataset>
  83. </Objects>
  84. <Bind>
  85. <BindItem id="item0" compid="group2.input2" propid="value" datasetid="ds_send" columnid="srchcomcd"/>
  86. <BindItem id="item1" compid="group2.input1" propid="value" datasetid="ds_send" columnid="srchcomnm"/>
  87. </Bind>
  88. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  89. * System Name :
  90. * Job Name :
  91. * Creator :
  92. * Make Date : 2015-11-13
  93. * Description :
  94. *---------------------------------------------------------------------------------------
  95. * Modify Date Modifier Modify Description
  96. *---------------------------------------------------------------------------------------
  97. * 2015-11-13 Live Converter TF->XP
  98. *
  99. *---------------------------------------------------------------------------------------
  100. ****************************************************************************************/
  101. //=======================================================================================
  102. // Lib Include
  103. //---------------------------------------------------------------------------------------
  104. include "com_commonxp::comm_main.xjs"
  105. include "ast_commonxp::AST.xjs"
  106. include "emr_prcpmngtxp::MMOCommon.xjs"
  107. //=======================================================================================
  108. // Global Form Variable
  109. //---------------------------------------------------------------------------------------
  110. //=======================================================================================
  111. // Function
  112. //---------------------------------------------------------------------------------------
  113. /****************************************************************************************
  114. * Argument : N/A
  115. * Description : 조회 함수
  116. ****************************************************************************************/
  117. function call_TRADB61401() {
  118. var oParam = {};
  119. oParam.id = "TRADB61401";
  120. oParam.service = "pharmacybaseapp.EfficacyCode";
  121. oParam.method = "reqGetEfficacyList";
  122. oParam.inds = "req=ds_send";
  123. oParam.outds = "ds_main_efcylist=item";
  124. oParam.async = false;
  125. oParam.callback = "cf_TRADB61401";
  126. tranf_submit(oParam);
  127. }
  128. function cf_TRADB61401(sSvcId, nErrorCode, sErrorMsg) {
  129. if(nErrorCode < 0) return;
  130. dsf_setTypeFormat(ds_main_efcylist, "efcylevel:INT");
  131. }
  132. //=======================================================================================
  133. // Event
  134. //---------------------------------------------------------------------------------------
  135. /****************************************************************************************
  136. * Components : Form
  137. * Components ID : SPADB61400
  138. * Event : oninit
  139. * Argument : 01.obj : Object Event has occurred
  140. * : 02.e : Event Object
  141. * Description : 화면 처음 초기화시 폼초기화
  142. ****************************************************************************************/
  143. function SPADB61400_oninit(obj:Form, e:InitEventInfo)
  144. {
  145. frmf_initForm(obj); // 폼 초기화
  146. }
  147. /****************************************************************************************
  148. * Components : Form
  149. * Components ID : SPADB61400
  150. * Event : onload
  151. * Argument : 01.obj : Object Event has occurred
  152. * : 02.e : Event Object
  153. * Description : 화면 처음 초기화시 폼초기화
  154. ****************************************************************************************/
  155. function SPADB61400_onload(obj:Form, e:LoadEventInfo)
  156. {
  157. try{
  158. ds_hidden.setColumn(0,"receiveefcy",arg_ds_hidden.getColumn(0,"receiveref"));
  159. }catch(e){}
  160. call_TRADB61401();
  161. // setTree(grd_efcylist, grd_efcylist.colRef("efcylevel"),grd_efcylist.colRef("efcycd"), true );
  162. }
  163. /****************************************************************************************
  164. * Components : Edit
  165. * Components ID : group2.input2
  166. * Event : onkeyup
  167. * Argument : 01.obj : Object Event has occurred
  168. * : 02.e : Event Object
  169. * Description : 코드입력후 엔터로 조회
  170. ****************************************************************************************/
  171. function group2_input2_onkeyup(obj:Edit, e:KeyEventInfo)
  172. {
  173. if(e.keycode == 13) {
  174. frmf_setInputNodeCurPid(obj);
  175. var ev = new ClickEventInfo;
  176. frmf_inputEnterKey("group2.btn_sea", "onclick", ev );
  177. }
  178. }
  179. /****************************************************************************************
  180. * Components : Edit
  181. * Components ID : group2.input1
  182. * Event : onkeyup
  183. * Argument : 01.obj : Object Event has occurred
  184. * : 02.e : Event Object
  185. * Description : 코드명 입력후 엔터로 조회
  186. ****************************************************************************************/
  187. function group2_input1_onkeyup(obj:Edit, e:KeyEventInfo)
  188. {
  189. if(e.keycode == 13) {
  190. frmf_setInputNodeCurPid(obj);
  191. var ev = new ClickEventInfo;
  192. frmf_inputEnterKey("group2.btn_sea", "onclick", ev );
  193. }
  194. }
  195. /****************************************************************************************
  196. * Components : Button
  197. * Components ID : group2.btn_sea
  198. * Event : onclick
  199. * Argument : 01.obj : Object Event has occurred
  200. * : 02.e : Event Object
  201. * Description : 조회버튼 클릭
  202. ****************************************************************************************/
  203. function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  204. {
  205. call_TRADB61401();
  206. // setTree(grd_efcylist, grd_efcylist.colRef("efcylevel"),grd_efcylist.colRef("efcycd"), true );
  207. }
  208. /****************************************************************************************
  209. * Components : Grid
  210. * Components ID : grd_efcylist
  211. * Event : oncelldblclick
  212. * Argument : 01.obj : Object Event has occurred
  213. * : 02.e : Event Object
  214. * Description : 조회리스트 더블클릭으로 모화면 전달
  215. ****************************************************************************************/
  216. function grd_efcylist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  217. {
  218. if ( frmf_checkOpener() ) {
  219. if ( opener.frmf_getParameter("textval") != "Y" ) {
  220. astfInsertGridData(grd_efcylist,opener.group3.switch1.case1.grd_efcy, 1, "", "", "efcycd,efcycd");
  221. } else {
  222. var receiveref = ds_hidden.getColumn(0, "receiveref");
  223. var receiveefcycd = ds_hidden.getColumn(0, "receiveefcycd");
  224. if(utlf_isNull(receiveref)) receiveref = "ds_hidden";
  225. if(utlf_isNull(receiveefcycd)) receiveefcycd = "efcycd";
  226. dsf_makeValue(opener.objects[receiveref], receiveefcycd, "string", ds_main_efcylist.getColumn(e.row,"efcycd"));
  227. }
  228. this.close();
  229. } else {
  230. sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수","I004");
  231. }
  232. }
  233. /****************************************************************************************
  234. * Components : Button
  235. * Components ID : btn_cfm
  236. * Event : onclick
  237. * Argument : 01.obj : Object Event has occurred
  238. * : 02.e : Event Object
  239. * Description : 확인버튼으로 모화면 데이터 전달
  240. ****************************************************************************************/
  241. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  242. {
  243. var ev = new GridClickEventInfo;
  244. frmf_inputEnterKey("grd_efcylist", "oncelldblclick", ev );
  245. }
  246. /****************************************************************************************
  247. * Components : Button
  248. * Components ID : btn_cls
  249. * Event : onclick
  250. * Argument : 01.obj : Object Event has occurred
  251. * : 02.e : Event Object
  252. * Description : 화면 닫기
  253. ****************************************************************************************/
  254. function btn_cls_onclick(obj:Button, e:ClickEventInfo)
  255. {
  256. this.close();
  257. }
  258. ]]></Script>
  259. </Form>
  260. </FDL>