SPLLF10200_통합검사계코드조회.xfdl 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLLF10200" position="absolute 0 0 680 277" titletext="검사시행부서코드관리" onload="SPLLF10200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid id="grd_tsect" taborder="0" useinputpanel="false" position="absolute 1 22 677 251" autofittype="col" binddataset="ds_grid_grd_tsect">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="30"/>
  12. <Column size="20"/>
  13. <Column size="85"/>
  14. <Column size="100"/>
  15. <Column size="100"/>
  16. <Column size="100"/>
  17. <Column size="100"/>
  18. <Column size="100"/>
  19. </Columns>
  20. <Rows>
  21. <Row size="22" band="head"/>
  22. <Row size="20"/>
  23. </Rows>
  24. <Band id="head">
  25. <Cell/>
  26. <Cell col="1"/>
  27. <Cell col="2" text="검사계코드"/>
  28. <Cell col="3" text="검사계명"/>
  29. <Cell col="4" text="검사계명(화면)"/>
  30. <Cell col="5" text="검사계명(약어)"/>
  31. <Cell col="6" text="검사계명(출력)"/>
  32. <Cell col="7" text="검사계명(라벨)"/>
  33. </Band>
  34. <Band id="body">
  35. <Cell celltype="head" expr="currow+1"/>
  36. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  37. <Cell col="2" style="align:left middle;" text="bind:tsectcd"/>
  38. <Cell col="3" style="align:left middle;" text="bind:tsectnm"/>
  39. <Cell col="4" style="align:left middle;" text="bind:tsectscrnnm"/>
  40. <Cell col="5" style="align:left middle;" text="bind:tsectabbrnm"/>
  41. <Cell col="6" style="align:left middle;" text="bind:tsectprntnm"/>
  42. <Cell col="7" style="align:left middle;" text="bind:tsectlblnm"/>
  43. </Band>
  44. </Format>
  45. </Formats>
  46. </Grid>
  47. <Button id="btn_add" taborder="1" text="추가" class="btn2" position="absolute 632 254 676 274" onclick="btn_add_onclick"/>
  48. <Static id="caption1" text="통합검사계코드목록" class="tit_2" position="absolute 1 2 175 22"/>
  49. </Layout>
  50. </Layouts>
  51. <Objects>
  52. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  53. <ColumnInfo>
  54. <Column id="cd" type="STRING"/>
  55. <Column id="nm" type="STRING"/>
  56. </ColumnInfo>
  57. </Dataset>
  58. <Dataset id="ds_grid_grd_tsect" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  59. <ColumnInfo>
  60. <Column id="tsectfromdd" type="STRING"/>
  61. <Column id="tsecttodd" type="STRING"/>
  62. <Column id="sectcd" type="STRING"/>
  63. <Column id="tsectcd" type="STRING"/>
  64. <Column id="tsectscrnnm" type="STRING"/>
  65. <Column id="tsectnm" type="STRING"/>
  66. <Column id="tsectabbrnm" type="STRING"/>
  67. <Column id="tsectprntnm" type="STRING"/>
  68. <Column id="tsectlblnm" type="STRING"/>
  69. <Column id="chk" type="STRING"/>
  70. </ColumnInfo>
  71. </Dataset>
  72. </Objects>
  73. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  74. * System Name :
  75. * Job Name :
  76. * Creator :
  77. * Make Date : 2015-11-09
  78. * Description :
  79. *---------------------------------------------------------------------------------------
  80. * Modify Date Modifier Modify Description
  81. *---------------------------------------------------------------------------------------
  82. * 2015-11-09 Live Converter TF->XP
  83. *
  84. *---------------------------------------------------------------------------------------
  85. ****************************************************************************************/
  86. include "com_commonxp::comm_main.xjs";
  87. include "lis_commonxp::LLZ001.xjs";
  88. function SPLLF10200_onload(obj:Form, e:LoadEventInfo)
  89. {
  90. //폼 초기화 함수
  91. frmf_initForm(obj);
  92. // 초기정보 조회
  93. lf_initDataSet();
  94. lf_setInit();
  95. lf_getTsecTsect();
  96. }
  97. // 초기화 버튼
  98. function lf_setInit() {
  99. ds_grid_grd_tsect.clearData();
  100. }
  101. // 계리스트 조회
  102. function lf_getTsecTsect(){
  103. var sInDsName = dsf_createDsRow("ds_temp_search"
  104. , [{col: "refgbn", val: "1"}
  105. , {col: "cd", val: sVal01}
  106. , {col: "deptflag", val: lgv_sUserdeptflagcd}]);
  107. var oParam = {};
  108. oParam.id = "TRLLF00102";
  109. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  110. oParam.method = "reqGetUnityTsectList";
  111. oParam.inds = "cond="+sInDsName;
  112. oParam.outds = "ds_grid_grd_tsect=getUnityTsectList";
  113. oParam.async = false;
  114. oParam.callback = "cbf_SPLLF10200";
  115. tranf_submit(oParam);
  116. }
  117. function lf_addRow(){
  118. var strXML = ds_grid_grd_tsect.saveXML("ds_grid_grd_tsect","u");
  119. opener.ds_grid_grd_addlist.loadXML(strXML);
  120. close();
  121. }
  122. //초기화 데이타셋 조회
  123. function lf_initDataSet(){
  124. lf_getDbDeptcd("0000|","cbf_SPLLF10200");
  125. }
  126. //콜백함수
  127. function cbf_SPLLF10200(strSvcID, nErrorCode, strErrorMag){
  128. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  129. }
  130. //통합검사계코드 중 등록된 코드 검색
  131. function lf_checkTsectcd(nRow){
  132. var nFindRow=0;
  133. nFindRow=opener.ds_grid_grd_tsect.findRow("tsectcd",ds_grid_grd_tsect.getColumn(nRow,"tsectcd"));
  134. return nFindRow;
  135. }
  136. function btn_add_onclick(obj:Button, e:ClickEventInfo){
  137. lf_addRow()
  138. }
  139. function btn_cose_onclick(obj:Button, e:ClickEventInfo){
  140. close();
  141. }
  142. ]]></Script>
  143. </Form>
  144. </FDL>