SPAHR00600_결과치출력항목선택.xfdl 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAHR00600" position="absolute 0 0 524 453" titletext="결과치출력항목선택" oninit="SPAHR00600_oninit" onload="SPAHR00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="line1" linetype="vertical" class="line_1" position="absolute 0 0 517 6"/>
  8. <Grid id="grd_testlst" taborder="1" binddataset="ds_main_resultcheck_item" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 0 0 517 425">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="22"/>
  13. <Column size="31"/>
  14. <Column size="91"/>
  15. <Column size="182"/>
  16. <Column size="189"/>
  17. <Column size="0"/>
  18. <Column size="0"/>
  19. </Columns>
  20. <Rows>
  21. <Row size="24" band="head"/>
  22. <Row size="24"/>
  23. </Rows>
  24. <Band id="head">
  25. <Cell/>
  26. <Cell col="1" text="선택"/>
  27. <Cell col="2" text="테스트코드"/>
  28. <Cell col="3" text="테스트명(한)"/>
  29. <Cell col="4" text="테스트명(영)"/>
  30. <Cell col="5"/>
  31. <Cell col="6"/>
  32. </Band>
  33. <Band id="body">
  34. <Cell celltype="head" expr="currow+1"/>
  35. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:sel == 'Y' ? 1 : 0"/>
  36. <Cell col="2" text="bind:testcd"/>
  37. <Cell col="3" text="bind:testhannm"/>
  38. <Cell col="4" text="bind:testengnm"/>
  39. <Cell col="5" text="bind:todd"/>
  40. <Cell col="6" text="bind:instcd"/>
  41. </Band>
  42. </Format>
  43. </Formats>
  44. </Grid>
  45. <Button id="btn_confirm" taborder="2" text="확인" class="btn4" position="absolute 403 427 459 449" onclick="btn_confirm_onclick"/>
  46. <Button id="btn_cancel" taborder="3" text="취소" class="btn4" position="absolute 461 427 517 449" onclick="btn_cancel_onclick"/>
  47. </Layout>
  48. </Layouts>
  49. <Objects>
  50. <Dataset id="ds_main_resultcheck_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_resultcheck_item_oncolumnchanged"/>
  51. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  52. <ColumnInfo>
  53. <Column id="srchinstcd" type="STRING" size="256"/>
  54. </ColumnInfo>
  55. <Rows>
  56. <Row/>
  57. </Rows>
  58. </Dataset>
  59. <Dataset id="ds_main_resultcheck_judginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  60. <ColumnInfo>
  61. <Column id="healexamflag" type="STRING" size="256" sumtext="건진구분"/>
  62. <Column id="healexamdetlflag" type="STRING" size="256" sumtext="건진상세구분"/>
  63. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약등록일자"/>
  64. <Column id="rsrvno" type="INT" size="256" sumtext="예약번호"/>
  65. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  66. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  67. <Column id="cretno" type="INT" size="256" sumtext="생성번호"/>
  68. <Column id="judgdd" type="STRING" size="256" sumtext="판정일자"/>
  69. <Column id="judgtm" type="STRING" size="256" sumtext="판정시간"/>
  70. <Column id="judgdrid" type="STRING" size="256" sumtext="판정의id"/>
  71. <Column id="pkgcd" type="STRING" size="256" sumtext="Pkg코드"/>
  72. <Column id="shrthngjudgcnts" type="STRING" size="256" sumtext="판정단문내용(한글)"/>
  73. <Column id="shrtengjudgcnts" type="STRING" size="256" sumtext="판정단문내용(영문)"/>
  74. <Column id="hngjudgcnts" type="STRING" size="256" sumtext="판정장문내용(한글)"/>
  75. <Column id="engjudgcnts" type="STRING" size="256" sumtext="판정장문내용(영문)"/>
  76. <Column id="prntyn" type="STRING" size="256" sumtext="전체종합판정결과지출력여부"/>
  77. <Column id="rsltcnstdrid" type="STRING" size="256" sumtext="상담의사"/>
  78. <Column id="afhngjudgcnts" type="STRING" size="256" sumtext="추후관리 판정장문내용(한글)"/>
  79. </ColumnInfo>
  80. </Dataset>
  81. <Dataset id="ds_main_resultcheck_afexamlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  82. <ColumnInfo>
  83. <Column id="healexamflag" type="STRING" size="256" sumtext="건진구분"/>
  84. <Column id="rsrvdd" type="STRING" size="256" sumtext="예약등록일자"/>
  85. <Column id="rsrvno" type="INT" size="256" sumtext="예약번호"/>
  86. <Column id="seq" type="STRING" size="256" sumtext="seq"/>
  87. <Column id="healexamdetlflag" type="STRING" size="256" sumtext="건진상세구분"/>
  88. <Column id="afnotiyn" type="STRING" size="256" sumtext="통보여부"/>
  89. <Column id="aftype" type="STRING" size="256" sumtext="추후검사구분"/>
  90. <Column id="testcd" type="STRING" size="256" sumtext="검사코드"/>
  91. <Column id="testnm" type="STRING" size="256" sumtext="검사명"/>
  92. <Column id="monthgb" type="STRING" size="256" sumtext="월구분"/>
  93. <Column id="afdeptcd" type="STRING" size="256" sumtext="의뢰진료과"/>
  94. <Column id="afdrnm" type="STRING" size="256" sumtext="의뢰의사명"/>
  95. <Column id="aforddd" type="STRING" size="256" sumtext="의뢰진료일자"/>
  96. <Column id="berslt" type="STRING" size="256" sumtext="이전결과"/>
  97. <Column id="afrslt" type="STRING" size="256" sumtext="이후결과"/>
  98. <Column id="remcnts" type="STRING" size="256" sumtext="비고"/>
  99. <Column id="cnstdd" type="STRING" size="256" sumtext="상담일자"/>
  100. </ColumnInfo>
  101. </Dataset>
  102. <Dataset id="ds_main_resultcheck_itemsick" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  103. <ColumnInfo>
  104. <Column id="sickcd" type="STRING" size="256" sumtext="질환코드"/>
  105. <Column id="sicknm" type="STRING" size="256" sumtext="질환명"/>
  106. <Column id="judgcd" type="STRING" size="256" sumtext="판정코드"/>
  107. <Column id="cmpycd" type="STRING" size="256" sumtext="업체코드"/>
  108. </ColumnInfo>
  109. </Dataset>
  110. <Dataset id="ds_send_save_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  111. </Objects>
  112. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  113. * System Name :
  114. * Job Name :
  115. * Creator :
  116. * Make Date : 2015-11-13
  117. * Description :
  118. *---------------------------------------------------------------------------------------
  119. * Modify Date Modifier Modify Description
  120. *---------------------------------------------------------------------------------------
  121. * 2015-11-13 Live Converter TF->XP
  122. *
  123. *---------------------------------------------------------------------------------------
  124. ****************************************************************************************/
  125. include "com_commonxp::comm_main.xjs";
  126. function SPAHR00600_oninit(obj:Form, e:InitEventInfo)
  127. {
  128. frmf_initForm(obj);
  129. }
  130. function SPAHR00600_onload(obj:Form, e:LoadEventInfo)
  131. {
  132. grdf_initGrid(grd_testlst);
  133. fInit();
  134. }
  135. function fInit()
  136. {
  137. if( frmf_checkOpener() )
  138. {
  139. ds_main_resultcheck_item.clearData();
  140. ds_send.setColumn(0, "srchinstcd", sysf_getUserInfo("dutplceinstcd"));
  141. var oParam = {};
  142. oParam.id = "TRAHR00600";
  143. oParam.service = "healexamrsltjudgapp.ColgJudgInpt";
  144. oParam.method = "reqGetAfterColgJudgInfo";
  145. oParam.inds = "req=ds_send";
  146. oParam.outds = "ds_main_resultcheck_judginfo=judginfo ds_main_resultcheck_afexamlist=afexamlist ds_main_resultcheck_itemsick=itemsick";
  147. oParam.async = false;
  148. //oParam.callback = "cf_TRAHR00600";
  149. tranf_submit(oParam);
  150. }
  151. }
  152. function ds_main_resultcheck_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  153. {
  154. if(e.columnid == "sel")
  155. {
  156. obj.setColumn(e.row, "sel", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  157. }
  158. }
  159. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  160. {
  161. this.close();
  162. }
  163. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  164. {
  165. fSetData();
  166. this.close();
  167. }
  168. function fSetData()
  169. {
  170. ds_send_save_req.copyData(ds_main_resultcheck_item);
  171. ds_send_save_req.clearData();
  172. for( var i = 0 ; i < ds_main_resultcheck_item.rowcount; i++)
  173. {
  174. if(ds_main_resultcheck_item.getColumn(i, "sel") == "Y")
  175. {
  176. ds_send_save_req.copyRow(ds_send_save_req.addRow(), ds_main_resultcheck_item, i);
  177. }
  178. }
  179. var oParam = {};
  180. oParam.id = "TXAHR00600";
  181. oParam.service = "healexamrsltjudgapp.RsltRef";
  182. oParam.method = "reqExePrntCheckYN";
  183. oParam.inds = "item=ds_send_save_req";
  184. oParam.outds = "ds_=item";
  185. oParam.async = false;
  186. //oParam.callback = "cf_TXAHR00600";
  187. tranf_submit(oParam);
  188. }
  189. ]]></Script>
  190. </Form>
  191. </FDL>