SPMNP01500_수술명조회.xfdl 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNP01500" position="absolute 0 0 439 610" titletext="수술명조회" onload="SPMNP01500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 13 439 607" id="group5" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Grid position="absolute 4 15 434 594" treeusecheckbox="false" autofit="col" id="trv_opcode" anchor="default" binddataset="ds_main_optreelists_optreelist" oncelldblclick="group5_trv_opcode_oncelldblclick">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="122"/>
  15. </Columns>
  16. <Rows>
  17. <Row size="24"/>
  18. <Row size="24"/>
  19. </Rows>
  20. <Band id="body">
  21. <Cell displaytype="tree" edittype="tree" text="bind:opgname" treelevel="bind:depth"/>
  22. </Band>
  23. </Format>
  24. </Formats>
  25. </Grid>
  26. <Shape position="absolute 3 10 435 16" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
  27. </Layout>
  28. </Layouts>
  29. </Div>
  30. <Static text="수술명조회" position="absolute 0 0 107 23" id="caption6" class="tit_1"/>
  31. </Layout>
  32. </Layouts>
  33. <Objects>
  34. <Dataset id="ds_main_optreelists_optreelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  35. <ColumnInfo>
  36. <Column id="depth" type="STRING" size="256"/>
  37. <Column id="opgrp1" type="STRING" size="256"/>
  38. <Column id="opgrp2" type="STRING" size="256"/>
  39. <Column id="opgrp3" type="STRING" size="256"/>
  40. <Column id="opgrp4" type="STRING" size="256"/>
  41. <Column id="opcode" type="STRING" size="256"/>
  42. <Column id="instcd" type="STRING" size="256"/>
  43. <Column id="opgname" type="STRING" size="256"/>
  44. </ColumnInfo>
  45. <Rows>
  46. <Row>
  47. <Col id="depth"/>
  48. <Col id="opgrp1"/>
  49. <Col id="opgrp2"/>
  50. <Col id="opgrp3"/>
  51. <Col id="opgrp4"/>
  52. <Col id="opcode"/>
  53. <Col id="instcd"/>
  54. <Col id="opgname"/>
  55. </Row>
  56. </Rows>
  57. </Dataset>
  58. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  59. <ColumnInfo>
  60. <Column id="treeflag" type="STRING" size="256"/>
  61. <Column id="instcd" type="STRING" size="256"/>
  62. </ColumnInfo>
  63. <Rows>
  64. <Row>
  65. <Col id="treeflag">N</Col>
  66. <Col id="instcd">012</Col>
  67. </Row>
  68. </Rows>
  69. </Dataset>
  70. <Dataset id="ds_Cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  71. <ColumnInfo>
  72. <Column id="opcode" type="STRING" size="256"/>
  73. <Column id="opname" type="STRING" size="256"/>
  74. <Column id="oplist" type="STRING" size="256"/>
  75. </ColumnInfo>
  76. <Rows>
  77. <Row>
  78. <Col id="opcode"/>
  79. <Col id="opname"/>
  80. <Col id="oplist"/>
  81. </Row>
  82. </Rows>
  83. </Dataset>
  84. <Dataset id="ds_send_result_indxcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  85. <ColumnInfo>
  86. <Column id="levl" type="STRING" size="256" sumtext="레벨"/>
  87. <Column id="indxcd" type="STRING" size="256" sumtext="index코드"/>
  88. <Column id="upindxcd" type="STRING" size="256" sumtext="상위index코드"/>
  89. <Column id="hngnm" type="STRING" size="256" sumtext="index한글명"/>
  90. <Column id="engnm" type="STRING" size="256" sumtext="index영문명"/>
  91. </ColumnInfo>
  92. <Rows>
  93. <Row/>
  94. </Rows>
  95. </Dataset>
  96. </Objects>
  97. <Bind/>
  98. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  99. * System Name :
  100. * Job Name :
  101. * Creator :
  102. * Make Date : 2015-11-13
  103. * Description :
  104. *---------------------------------------------------------------------------------------
  105. * Modify Date Modifier Modify Description
  106. *---------------------------------------------------------------------------------------
  107. * 2015-11-13 Live Converter TF->XP
  108. *
  109. *---------------------------------------------------------------------------------------
  110. ****************************************************************************************/
  111. include "com_commonxp::comm_main.xjs"
  112. /*
  113. 버튼 컨트롤들을 클릭했을때 공통으로 타는 함수입니다.
  114. control : "search" 는 조회 버튼 클릭
  115. "init"은 신규 버튼 클릭
  116. "save"는 저장 버튼 클릭
  117. grid : 그리드 컨트롤을 넘겨줍니다.
  118. param : 기타 param을 넘겨줍니다.
  119. */
  120. function fClicked(control, grid, param){
  121. if ("search" == control){
  122. fSearchClick(grid, param);
  123. ds_send.clearData(); ds_send.addRow();
  124. } else if ("init" == control){
  125. //model.reset();
  126. } else {
  127. sysf_messageBox("처리를 수행","E002");
  128. }
  129. //model.refresh();
  130. }
  131. /*
  132. 조회버튼 클릭 타는 함수입니다.
  133. grid.explorerbar = "sortshow" sort설정합니다.
  134. ipt_usercdnm_flag는 검색조건의 사용자코드 or 사용자명입니다.
  135. radio1은 사용자코드 or 사용자명 선택 라디오 버튼입니다.
  136. submit을 날립니다.
  137. .
  138. */
  139. function fSearchClick(grid,param){
  140. ds_send.clearData();
  141. dsf_makeValue( ds_send, "instcd", "string", ,"012");
  142. dsf_makeValue( ds_send, "treeflag", "string", "N");
  143. //submit("TRMNP01502");
  144. var oParam = {};
  145. oParam.id = "TRMNP01502";
  146. oParam.service = "opanstapp.OpAnstStocMngt";
  147. oParam.method = "reqGetIndxList";
  148. oParam.inds = "reqdata=ds_send";
  149. oParam.outds = "ds_send_result_indxcdlist=indxcdlist";
  150. oParam.async = false;
  151. oParam.callback = "cf_TRMNP01502";
  152. tranf_submit(oParam);
  153. }
  154. function fResetNode(node, destinationelement){
  155. // model.setValue(node + "/" + destinationelement, "");
  156. alert(model.elementName("_root_main_item"));
  157. }
  158. /*
  159. model.getValue(); 를 함수로 만들었습니다.
  160. param1 : node는 grid의 xPath입니다.
  161. param2 : row는 grid에서 선택한 row값입니다.
  162. param3 : element는 getvalue할 해당 element 명입니다.
  163. 해당 getvalue값을 return 해줍니다.
  164. return 하지 않으면 해당값을 가져올 수 없습니다.
  165. */
  166. function fGetValue(node, row, element) {
  167. var rtnValue = eval(node).getColumn( row, element);
  168. return rtnValue;
  169. }
  170. /*
  171. model.setValue();를 함수로 만들었습니다.
  172. param1 : node는 setvalue할 컨트롤의 xPath입니다.
  173. param2 : destinationelement는 setvalue할 element명 입니다.
  174. param3 : sourceelement는 setvalue할 값입니다.
  175. */
  176. function fSetValue(node, destinationelement, sourceelement) {
  177. eval(node).setColumn( 0, destinationelement, sourceelement);
  178. }
  179. function fDblclick(pIdx) {
  180. var xPath ="ds_main_optreelists_optreelist";
  181. var Idx = pIdx; // pIdx + 1;
  182. var sDepth = eval(xPath).getColumn( Idx, "depth");
  183. if (sDepth != "3" ) {
  184. return;
  185. }
  186. //var clscd = ds_main_cond.getColumn(0, "clscd");
  187. //ds_main_cond.setColumn( 0, "clsnm", ds_main_educclslist_educclslistinfo.lookupExpr(clscd == '" + clscd + "'", "clsnm"));
  188. var iParam_code = fGetValue(xPath, Idx, "opcode" );
  189. var iParam_name = fGetValue(xPath, Idx, "opgname");
  190. var iParam = iParam_code + "|" + iParam_name;
  191. // alert(iParam);
  192. opener.frmf_setParameter("SendData", iParam);
  193. this.close();
  194. }
  195. function SPMNP01500_onload(obj:Form, e:LoadEventInfo)
  196. {
  197. frmf_initForm(obj); //폼 초기화
  198. grdf_initGrid(this.group5.trv_opcode);
  199. fSearchClick();
  200. }
  201. function group5_trv_opcode_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  202. {
  203. fDblclick(group5.trv_opcode.currentrow);
  204. }]]></Script>
  205. </Form>
  206. </FDL>