SPLLF10400_통합검사중분류조회.xfdl 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLLF10400" position="absolute 0 0 679 275" titletext="검사시행부서코드관리" onload="SPLLF10400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="button1" taborder="0" text="추가" onclick="button1_onclick" class="btn2" position="absolute 633 253 677 273" positiontype="position"/>
  8. <Grid id="grd_testmdl" taborder="1" useinputpanel="false" position="absolute 1 21 677 250" binddataset="ds_grid_grd_testmdl" positiontype="position">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="30"/>
  13. <Column size="30"/>
  14. <Column size="20"/>
  15. <Column size="85"/>
  16. <Column size="100"/>
  17. <Column size="100"/>
  18. <Column size="100"/>
  19. <Column size="100"/>
  20. <Column size="100"/>
  21. <Column size="100"/>
  22. </Columns>
  23. <Rows>
  24. <Row size="22" band="head"/>
  25. <Row size="20"/>
  26. </Rows>
  27. <Band id="head">
  28. <Cell/>
  29. <Cell col="1"/>
  30. <Cell col="2"/>
  31. <Cell col="3" text="대분류"/>
  32. <Cell col="4" text="중분류"/>
  33. <Cell col="5" text="중분류명"/>
  34. <Cell col="6" text="중분류명(화면)"/>
  35. <Cell col="7" text="중분류명(약어)"/>
  36. <Cell col="8" text="중분류명(출력)"/>
  37. <Cell col="9" text="중분류명(라벨)"/>
  38. </Band>
  39. <Band id="body">
  40. <Cell celltype="head" expr="expr:currow+1"/>
  41. <Cell col="1" displaytype="image" expr="expr: getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
  42. <Cell col="2" displaytype="expr:lf_CheckBaccd(currow) == -1 ? 'checkbox': 'normal '" edittype="expr:lf_CheckBaccd(currow) == -1 ? 'checkbox': 'none '" text="bind:chk"/>
  43. <Cell col="3" displaytype="normal" edittype="none" style="align:center middle;" text="bind:testlrgcd"/>
  44. <Cell col="4" displaytype="normal" edittype="none" style="align:center middle;" text="bind:testmdlcd"/>
  45. <Cell col="5" displaytype="normal" edittype="none" style="align:left;" text="bind:testmdlnm"/>
  46. <Cell col="6" displaytype="normal" edittype="none" style="align:left;" text="bind:testmdlscrnnm"/>
  47. <Cell col="7" displaytype="normal" edittype="none" style="align:left;" text="bind:testmdlabbrnm"/>
  48. <Cell col="8" displaytype="normal" edittype="none" style="align:left;" text="bind:testmdlprntnm"/>
  49. <Cell col="9" displaytype="normal" edittype="none" style="align:left;" text="bind:testmdllblnm"/>
  50. </Band>
  51. </Format>
  52. </Formats>
  53. </Grid>
  54. <Static id="caption1" text="통합검사중분류코드목록" class="tit_2" position="absolute 1 1 175 21" positiontype="position"/>
  55. </Layout>
  56. </Layouts>
  57. <Objects>
  58. <Dataset id="ds_grid_grd_testmdl" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  59. <ColumnInfo>
  60. <Column id="chk" type="STRING"/>
  61. <Column id="testlrgcd" type="STRING"/>
  62. <Column id="testmdlcd" type="STRING"/>
  63. <Column id="testmdlnm" type="STRING"/>
  64. <Column id="testmdlscrnnm" type="STRING"/>
  65. <Column id="testmdlabbrnm" type="STRING"/>
  66. <Column id="testmdlprntnm" type="STRING"/>
  67. <Column id="testmdllblnm" type="STRING"/>
  68. </ColumnInfo>
  69. </Dataset>
  70. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  71. <ColumnInfo>
  72. <Column id="cd" type="STRING" size="256"/>
  73. <Column id="nm" type="STRING" size="256"/>
  74. </ColumnInfo>
  75. </Dataset>
  76. </Objects>
  77. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  78. * System Name :
  79. * Job Name :
  80. * Creator :
  81. * Make Date : 2015-11-09
  82. * Description :
  83. *---------------------------------------------------------------------------------------
  84. * Modify Date Modifier Modify Description
  85. *---------------------------------------------------------------------------------------
  86. * 2015-11-09 Live Converter TF->XP
  87. *
  88. *---------------------------------------------------------------------------------------
  89. ****************************************************************************************/
  90. include "com_commonxp::comm_main.xjs";
  91. include "lis_commonxp::LLZ001.xjs";
  92. function SPLLF10400_onload(obj:Form, e:LoadEventInfo)
  93. {
  94. frmf_initForm(obj); // 화면공통
  95. lf_setInit();
  96. lf_getTmdlList();
  97. }
  98. // 초기화 버튼
  99. function lf_setInit() {
  100. lf_getDbDeptcd("0000|");
  101. }
  102. // 계리스트 조회
  103. function lf_getTmdlList(){
  104. var sInDsName = dsf_createDsRow("ds_temp_search"
  105. , [{col: "testlrgcd", val: opener.ds_grid_grd_testlrg.getColumn(opener.ds_grid_grd_testlrg.rowposition,"testlrgcd")} //대분류코드
  106. , {col: "refgbn", val: "1"}
  107. , {col: "deptflag", val: lgv_sUserdeptflagcd}]);
  108. var oParam = {};
  109. oParam.id = "TRLLF00202";
  110. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  111. oParam.method = "reqGetUnityTestMdlList";
  112. oParam.inds = "cond="+sInDsName;
  113. oParam.outds = "ds_grid_grd_testmdl=getUnityTestMdlList";
  114. oParam.async = false;
  115. tranf_submit(oParam);
  116. }
  117. function lf_addRow(){
  118. var strXML = ds_grid_grd_testmdl.saveXML("ds_grid_grd_testmdl","u");
  119. opener.ds_grid_grd_select.loadXML(strXML);
  120. close();
  121. }
  122. //등록된 검체 검색
  123. function lf_CheckBaccd(nRow){
  124. var nFindRow=0;
  125. nFindRow=opener.ds_grid_grd_testmdl.findRow("testmdlcd",ds_grid_grd_testmdl.getColumn(nRow,"testmdlcd"));
  126. return nFindRow;
  127. }
  128. function Button00_onclick(obj:Button, e:ClickEventInfo)
  129. {
  130. close();
  131. }
  132. function button1_onclick(obj:Button, e:ClickEventInfo)
  133. {
  134. lf_addRow();
  135. }
  136. ]]></Script>
  137. </Form>
  138. </FDL>