SPLLF10600_통합용기코드조회.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="SPLLF10600" position="absolute 0 0 858 777" titletext="검사시행부서코드관리" oninit="SPLLF10600_oninit" onload="SPLLF10600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group4" taborder="0" class="div_SA2" position="absolute 1 30 857 65">
  8. <Layouts>
  9. <Layout>
  10. <Button id="button4" taborder="7" text="검색" class="btn1" position="absolute 398 7 454 29" anchor="default"/>
  11. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 380 6 386 28" anchor="default"/>
  12. <Combo id="combo1" taborder="8" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 105 8 255 27" anchor="default">
  13. <Dataset id="innerdataset">
  14. <ColumnInfo>
  15. <Column id="codecolumn"/>
  16. <Column id="datacolumn"/>
  17. </ColumnInfo>
  18. <Rows>
  19. <Row>
  20. <Col id="codecolumn">1</Col>
  21. <Col id="datacolumn">검체코드</Col>
  22. </Row>
  23. <Row>
  24. <Col id="codecolumn">2</Col>
  25. <Col id="datacolumn">검체명</Col>
  26. </Row>
  27. </Rows>
  28. </Dataset>
  29. </Combo>
  30. <Static id="caption3" text="검색구분 :" class="search_name" position="absolute 12 9 102 26" anchor="default"/>
  31. <Edit id="input1" taborder="9" class="input_search" position="absolute 258 8 368 27" anchor="default" onkeyup="group4_input1_onkeyup"/>
  32. </Layout>
  33. </Layouts>
  34. </Div>
  35. <Button id="button3" taborder="1" text="닫기" class="btn4" position="absolute 801 5 857 27" onclick="button3_onclick"/>
  36. <Button id="button2" taborder="2" text="추가" class="btn4" position="absolute 742 5 798 27" onclick="button2_onclick"/>
  37. <Grid id="datagrid1" taborder="3" binddataset="ds_datagrid1" useinputpanel="false" position="absolute 1 75 856 775" autofittype="col">
  38. <Formats>
  39. <Format id="default">
  40. <Columns>
  41. <Column size="22"/>
  42. <Column size="20"/>
  43. <Column size="85"/>
  44. <Column size="100"/>
  45. <Column size="100"/>
  46. <Column size="100"/>
  47. <Column size="100"/>
  48. <Column size="100"/>
  49. <Column size="100"/>
  50. <Column size="100"/>
  51. </Columns>
  52. <Rows>
  53. <Row size="24" band="head"/>
  54. <Row size="24"/>
  55. </Rows>
  56. <Band id="head">
  57. <Cell/>
  58. <Cell col="1"/>
  59. <Cell col="2" text="용기코드"/>
  60. <Cell col="3" text="용기명"/>
  61. <Cell col="4" text="용기명(화면)"/>
  62. <Cell col="5" text="용기명(약어)"/>
  63. <Cell col="6" text="용기명(출력)"/>
  64. <Cell col="7" text="용기명(라벨)"/>
  65. <Cell col="8" text="용량"/>
  66. <Cell col="9" text="단위"/>
  67. </Band>
  68. <Band id="body">
  69. <Cell style="background:URL('theme://images/bg_gridHead.png') stretch 3,3;background2:URL('theme://images/bg_gridHead.png') stretch 3,3;" text="expr:currow + 1"/>
  70. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  71. <Cell col="2" displaytype="normal" edittype="text" text="bind:tubecd"/>
  72. <Cell col="3" displaytype="normal" edittype="text" text="bind:tubenm"/>
  73. <Cell col="4" displaytype="normal" edittype="text" text="bind:tubescrnnm"/>
  74. <Cell col="5" displaytype="normal" edittype="text" text="bind:tubeabbrnm"/>
  75. <Cell col="6" displaytype="normal" edittype="text" text="bind:tubeprntnm"/>
  76. <Cell col="7" displaytype="normal" edittype="text" text="bind:tubelblnm"/>
  77. <Cell col="8" displaytype="normal" edittype="text" style="align:right middle;" text="bind:tubevol"/>
  78. <Cell col="9" displaytype="normal" edittype="text" text="bind:tubeunit"/>
  79. </Band>
  80. </Format>
  81. </Formats>
  82. </Grid>
  83. <Shape id="line1" class="line_1" position="absolute 1 71 856 77" style="strokepen:3 solid #33bbbbff;"/>
  84. <Static id="caption2" text="통합용기코드목록" class="tit_2" position="absolute 2 2 162 23"/>
  85. </Layout>
  86. </Layouts>
  87. <Objects>
  88. <Dataset id="ds_grd_tube" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  89. <ColumnInfo>
  90. <Column id="chk" type="STRING"/>
  91. <Column id="tubecd" type="STRING"/>
  92. <Column id="tubenm" type="STRING"/>
  93. <Column id="tubescrnnm" type="STRING"/>
  94. <Column id="tubeabbrnm" type="STRING"/>
  95. <Column id="tubeprntnm" type="STRING"/>
  96. <Column id="tubelblnm" type="STRING"/>
  97. <Column id="tubevol" type="STRING"/>
  98. <Column id="tubeunit" type="STRING"/>
  99. </ColumnInfo>
  100. </Dataset>
  101. <Dataset id="ds_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  102. <ColumnInfo>
  103. <Column id="chk" type="STRING"/>
  104. <Column id="tubecd" type="STRING"/>
  105. <Column id="tubenm" type="STRING"/>
  106. <Column id="tubescrnnm" type="STRING"/>
  107. <Column id="tubeabbrnm" type="STRING"/>
  108. <Column id="tubeprntnm" type="STRING"/>
  109. <Column id="tubelblnm" type="STRING"/>
  110. <Column id="tubevol" type="STRING"/>
  111. <Column id="tubeunit" type="STRING"/>
  112. </ColumnInfo>
  113. </Dataset>
  114. <Dataset id="ds_init_0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  115. <ColumnInfo>
  116. <Column id="cd" type="STRING" size="256" sumtext="코드"/>
  117. <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
  118. <Column id="chk" type="STRING" size="256" sumtext="chk"/>
  119. <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
  120. <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
  121. <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
  122. <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
  123. <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
  124. </ColumnInfo>
  125. </Dataset>
  126. <Dataset id="ds_hidden_ref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  127. <ColumnInfo>
  128. <Column id="refgbn" type="STRING" size="256"/>
  129. <Column id="searchgbn" type="STRING" size="256"/>
  130. <Column id="searchtext" type="STRING" size="256"/>
  131. </ColumnInfo>
  132. <Rows>
  133. <Row>
  134. <Col id="refgbn">1</Col>
  135. <Col id="searchgbn">2</Col>
  136. </Row>
  137. </Rows>
  138. </Dataset>
  139. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  140. <ColumnInfo>
  141. <Column id="refgbn" type="STRING" size="256"/>
  142. <Column id="spcdata" type="STRING" size="256"/>
  143. <Column id="searchgbn" type="STRING" size="256"/>
  144. <Column id="text" type="STRING" size="256"/>
  145. <Column id="deptflag" type="STRING" size="256"/>
  146. <Column id="codeflag" type="STRING" size="256"/>
  147. </ColumnInfo>
  148. <Rows>
  149. <Row/>
  150. </Rows>
  151. </Dataset>
  152. </Objects>
  153. <Bind>
  154. <BindItem id="item0" compid="group4.combo1" propid="value" datasetid="ds_hidden_ref" columnid="searchgbn"/>
  155. <BindItem id="item1" compid="group4.input1" propid="value" datasetid="ds_hidden_ref" columnid="searchtext"/>
  156. </Bind>
  157. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  158. * System Name :
  159. * Job Name :
  160. * Creator :
  161. * Make Date : 2015-11-09
  162. * Description :
  163. *---------------------------------------------------------------------------------------
  164. * Modify Date Modifier Modify Description
  165. *---------------------------------------------------------------------------------------
  166. * 2015-11-09 Live Converter TF->XP
  167. *
  168. *---------------------------------------------------------------------------------------
  169. ****************************************************************************************/
  170. include "com_commonxp::comm_main.xjs";
  171. function SPLLF10600_oninit(obj:Form, e:InitEventInfo)
  172. {
  173. frmf_initForm(obj);
  174. }
  175. function SPLLF10600_onload(obj:Form, e:LoadEventInfo)
  176. {
  177. grdf_initGrid(datagrid1);
  178. ds_send.setColumn(0, "codeflag", "0000|");
  179. var oParam = {};
  180. oParam.id = "TRLZZ00101";
  181. oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
  182. oParam.method = "reqGetInitCodeInfo";
  183. oParam.inds = "cond=ds_send";
  184. oParam.outds = "ds_init_0000=0000";
  185. oParam.async = false;
  186. //oParam.callback = "cf_TRLZZ00101";
  187. tranf_submit(oParam);
  188. fSetInit();
  189. fGetTubeList();
  190. }
  191. // 초기화 버튼
  192. function fSetInit()
  193. {
  194. ds_datagrid1.clearData();
  195. }
  196. function fGetTubeList()
  197. {
  198. ds_send.setColumn(0, "refgbn", ds_hidden_ref.getColumn(0, "refgbn"));
  199. ds_send.setColumn(0, "deptflag", ds_init_0000.getColumn(0, "nm"));
  200. var oParam = {};
  201. oParam.id = "TRLLF10401";
  202. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  203. oParam.method = "reqGetUnityTubeList";
  204. oParam.inds = "cond=ds_send";
  205. oParam.outds = "ds_datagrid1=getUnityTubeList";
  206. oParam.async = false;
  207. //oParam.callback = "cf_TRLLF10401";
  208. tranf_submit(oParam);
  209. }
  210. function group4_input1_onkeyup(obj:Edit, e:KeyEventInfo)
  211. {
  212. if(e.keycode == 13)
  213. {
  214. ds_hidden_ref.setColumn(0, "searchtext", group4.input1.text);
  215. fGetTubeSrch();
  216. }
  217. }
  218. //검색
  219. function fGetTubeSrch()
  220. {
  221. ds_send.setColumn(0, "searchgbn", ds_hidden_ref.getColumn(0, "searchgbn"));
  222. ds_send.setColumn(0, "text", ds_hidden_ref.getColumn(0, "searchtext").toUpperCase());
  223. ds_send.setColumn(0, "deptflag", ds_init_0000.getColumn(0, "nm"));
  224. if( utlf_isNull(ds_hidden_ref.getColumn(0, "searchtext")))
  225. {
  226. fGetTubeList();
  227. }
  228. else
  229. {
  230. var oParam = {};
  231. oParam.id = "TRLLF10402";
  232. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  233. oParam.method = "reqGetUnityTubeListRef";
  234. oParam.inds = "cond=ds_send";
  235. oParam.outds = "ds_grd_tube=getUnityTubeListRef";
  236. oParam.async = false;
  237. //oParam.callback = "cf_TRLLF10402";
  238. tranf_submit(oParam);
  239. ds_datagrid1.copyData(ds_grd_tube);
  240. }
  241. }
  242. //추가버튼
  243. function button2_onclick(obj:Button, e:ClickEventInfo)
  244. {
  245. fAddRow();
  246. }
  247. function fAddRow()
  248. {
  249. var strXML = ds_datagrid1.saveXML("ds_datagrid1","u");
  250. opener.ds_grid_grd_select.loadXML(strXML);
  251. this.close();
  252. }
  253. function button3_onclick(obj:Button, e:ClickEventInfo)
  254. {
  255. this.close();
  256. }
  257. ]]></Script>
  258. </Form>
  259. </FDL>