SPAHR00410_통합건진소견.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAHR00410" position="absolute 0 0 537 495" titletext="통합판정소견예문" oninit="SPAHR00410_oninit" onload="SPAHR00410_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 536 460" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 535 40" align="align:center top;" id="group2" class="div_SA2" anchor="default">
  11. <Layouts>
  12. <Layout>
  13. <Edit position="absolute 230 11 420 30" id="ipt_rsltexmpnm" class="input_search" onkeydown="group3_group2_ipt_rsltexmpnm_onkeydown" anchor="default"/>
  14. <Edit position="absolute 65 11 155 30" id="ipt_rsltexmpcd" class="input_search" onkeydown="group3_group2_ipt_rsltexmpcd_onkeydown" anchor="default"/>
  15. <Shape position="absolute 442 9 448 31" linetype="vertical" id="line13" anchor="default"/>
  16. <Static text="내용 :" position="absolute 170 12 235 29" id="caption1" class="search_name" anchor="default"/>
  17. <Static text="코드 :" position="absolute 6 12 70 29" id="caption2" class="search_name" anchor="default"/>
  18. <Button position="absolute 461 9 517 31" id="btn_search" class="btn1" text="조회" onclick="group3_group2_btn_search_onclick" anchor="default"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Shape position="absolute 0 40 535 46" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  23. <Grid position="absolute 0 45 535 455" id="grd_judgexmp" binddataset="ds_main_judgexmpcdlst_item" oncelldblclick="group3_grd_judgexmp_oncelldblclick" anchor="default">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="24"/>
  28. <Column size="28"/>
  29. <Column size="65"/>
  30. <Column size="150"/>
  31. <Column size="248"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell/>
  39. <Cell col="1" text="V"/>
  40. <Cell col="2" text="소견코드"/>
  41. <Cell col="3" text="한글소견"/>
  42. <Cell col="4" text="한글판정소견"/>
  43. </Band>
  44. <Band id="body">
  45. <Cell celltype="head" expr="currow + 1"/>
  46. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:sel == 'Y' || sel == '1' ? '1' : '0'"/>
  47. <Cell col="2" text="bind:judgexmpcd"/>
  48. <Cell col="3" style="align:left top;padding:5 2 1 2;" text="bind:judghangshrtcnts" wordwrap="word"/>
  49. <Cell col="4" style="align:left top;padding:5 2 1 2;" text="bind:judghangcnts" wordwrap="word"/>
  50. </Band>
  51. </Format>
  52. </Formats>
  53. </Grid>
  54. </Layout>
  55. </Layouts>
  56. </Div>
  57. <Div position="absolute 0 461 535 488" id="grp_btn" scrollbars="autoboth">
  58. <Layouts>
  59. <Layout>
  60. <Button position="absolute 418 5 474 27" id="btn_confirm" class="btn4" text="확인" onclick="grp_btn_btn_confirm_onclick"/>
  61. <Button position="absolute 477 5 533 27" id="btn_cancel" class="btn4" text="취소" onclick="grp_btn_btn_cancel_onclick"/>
  62. </Layout>
  63. </Layouts>
  64. </Div>
  65. </Layout>
  66. </Layouts>
  67. <Objects>
  68. <Dataset id="ds_main_judgexmpcdlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_judgexmpcdlst_item_oncolumnchanged">
  69. <ColumnInfo>
  70. <Column id="sel" type="STRING" size="256"/>
  71. <Column id="judgexmpcd" type="STRING" size="256"/>
  72. <Column id="judghangshrtcnts" type="STRING" size="256"/>
  73. <Column id="judghangcnts" type="STRING" size="256"/>
  74. </ColumnInfo>
  75. <Rows>
  76. <Row>
  77. <Col id="sel"/>
  78. <Col id="judgexmpcd"/>
  79. <Col id="judghangshrtcnts"/>
  80. <Col id="judghangcnts"/>
  81. </Row>
  82. </Rows>
  83. </Dataset>
  84. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  85. <ColumnInfo>
  86. <Column id="srchjudgexmpcd" type="STRING" size="256"/>
  87. <Column id="srchjudgexmpcnts" type="STRING" size="256"/>
  88. <Column id="srchinstcd" type="STRING" size="256"/>
  89. <Column id="srchhealexamflag" type="STRING" size="256"/>
  90. <Column id="srchhealexamdetlflag" type="STRING" size="256"/>
  91. <Column id="srchjudgeexmpcd" type="STRING" size="256"/>
  92. </ColumnInfo>
  93. <Rows>
  94. <Row>
  95. <Col id="srchjudgexmpcd"/>
  96. <Col id="srchjudgexmpcnts"/>
  97. <Col id="srchinstcd"/>
  98. <Col id="srchhealexamflag"/>
  99. <Col id="srchhealexamdetlflag"/>
  100. <Col id="srchjudgeexmpcd"/>
  101. </Row>
  102. </Rows>
  103. </Dataset>
  104. </Objects>
  105. <Bind>
  106. <BindItem id="item0" compid="group3.group2.ipt_rsltexmpcd" propid="value" datasetid="ds_send" columnid="srchjudgexmpcd"/>
  107. <BindItem id="item1" compid="group3.group2.ipt_rsltexmpnm" propid="value" datasetid="ds_send" columnid="srchjudgexmpcnts"/>
  108. </Bind>
  109. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  110. * System Name :
  111. * Job Name :
  112. * Creator :
  113. * Make Date : 2015-11-13
  114. * Description :
  115. *---------------------------------------------------------------------------------------
  116. * Modify Date Modifier Modify Description
  117. *---------------------------------------------------------------------------------------
  118. * 2015-11-13 Live Converter TF->XP
  119. *
  120. *---------------------------------------------------------------------------------------
  121. ****************************************************************************************/
  122. include "com_commonxp::comm_main.xjs";
  123. include "ast_healexamxp::AHA001.xjs";
  124. include "pam_pamcomnxp::PAM.xjs";
  125. include "ast_healthexambasexp::healcombolist.xjs";
  126. include "ast_healthexamrsrvacptxp::AHA.xjs"
  127. var arErrorCode = new HashArray();
  128. function SPAHR00410_oninit(obj:Form, e:InitEventInfo)
  129. {
  130. frmf_initForm(obj); //폼 초기화
  131. }
  132. function SPAHR00410_onload(obj:Form, e:LoadEventInfo)
  133. {
  134. fInit();
  135. }
  136. function fInit(){
  137. ds_main_judgexmpcdlst_item.clearData();
  138. if( frmf_checkOpener() ){
  139. ds_send.setColumn(0, "srchhealexamdetlflag" , opener.frmf_getParameter("SPAHR00400_PARAM8"));
  140. ds_send.setColumn(0, "srchjudgexmpcd" , opener.frmf_getParameter("SPAHR00410_PARAM5"));
  141. ds_send.setColumn(0, "srchjudgexmpcnts" , opener.frmf_getParameter("SPAHR00410_PARAM6"));
  142. ds_send.setColumn(0, "srchhealexamflag" , opener.frmf_getParameter("SPAHR00410_PARAM7"));
  143. ds_send.setColumn(0, "srchjudgeexmpcd" , opener.frmf_getParameter("SPAHR00410_PARAM9"));
  144. }
  145. fGetRsltExmpList();
  146. }
  147. /**
  148. * 결과예문(소견) 조회
  149. */
  150. function fGetRsltExmpList(){
  151. ds_main_judgexmpcdlst_item.clearData();
  152. ds_send.setColumn(0, "srchinstcd", sysf_getUserInfo("dutplceinstcd"));
  153. var oParam = {};
  154. oParam.id = "TRAHB00806";
  155. oParam.service = "healexambaseapp.CmtCode";
  156. oParam.method = "reqGetNewCmtCdList";
  157. oParam.inds = "req=ds_send";
  158. oParam.outds = "ds_main_judgexmpcdlst_item=item";
  159. oParam.async = false;
  160. tranf_submit(oParam);
  161. if(utlf_isNull(ds_main_judgexmpcdlst_item.getColumnInfo("sel"))){
  162. ds_main_judgexmpcdlst_item.addColumn("sel", "string");
  163. }
  164. }
  165. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  166. {
  167. fGetRsltExmpList();
  168. }
  169. function group3_group2_ipt_rsltexmpnm_onkeydown(obj:Edit, e:KeyEventInfo)
  170. {
  171. if(e.keycode == 13){
  172. obj.updateToDataset();
  173. group3.group2.btn_search.click();
  174. }
  175. }
  176. function group3_group2_ipt_rsltexmpcd_onkeydown(obj:Edit, e:KeyEventInfo)
  177. {
  178. if(e.keycode == 13){
  179. obj.updateToDataset();
  180. group3.group2.btn_search.click();
  181. }
  182. }
  183. function group3_grd_judgexmp_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  184. {
  185. //그리드의 셀 이외의 곳을 클릭하면 종료한다.
  186. if(e.row < 0 || e.row < 0) return false;
  187. // 그리드의 헤더부분을 클릭하면 종료한다.
  188. var vMulti = opener.frmf_getParameter("SPAHR00410_PARAM1");// 다중선택여부(Y/N)
  189. if( vMulti == "N" ){
  190. fSetData();
  191. this.close();
  192. }else {
  193. var sel = ds_main_judgexmpcdlst_item.getColumn(ds_main_judgexmpcdlst_item.rowposition, "sel");
  194. if(sel == "Y") {
  195. ds_main_judgexmpcdlst_item.enableevent = false;
  196. ds_main_judgexmpcdlst_item.updatecontrol = false;
  197. ds_main_judgexmpcdlst_item.setColumn(ds_main_judgexmpcdlst_item.rowposition, "sel", "N");
  198. ds_main_judgexmpcdlst_item.updatecontrol = true;
  199. ds_main_judgexmpcdlst_item.enableevent = true;
  200. } else {
  201. ds_main_judgexmpcdlst_item.enableevent = false;
  202. ds_main_judgexmpcdlst_item.updatecontrol = false;
  203. ds_main_judgexmpcdlst_item.setColumn(ds_main_judgexmpcdlst_item.rowposition, "sel", "Y");
  204. ds_main_judgexmpcdlst_item.updatecontrol = true;
  205. ds_main_judgexmpcdlst_item.enableevent = true;
  206. fSetData();
  207. this.close();
  208. }
  209. }
  210. }
  211. /**
  212. * 선택 결과문구 set
  213. */
  214. function fSetData(){
  215. if(frmf_checkOpener()){
  216. var vDestNodeSet:Dataset;
  217. vDestNodeSet = eval("opener." + opener.frmf_getParameter("SPAHR00410_PARAM2")); //목적노드Set
  218. var vDestNodeCd = opener.frmf_getParameter("SPAHR00410_PARAM3"); //코드 목적노드
  219. var vDestNodeNm = opener.frmf_getParameter("SPAHR00410_PARAM4"); //내용 목적노드
  220. var vMulti = opener.frmf_getParameter("SPAHR00410_PARAM1");// 다중선택여부(Y/N)
  221. if( vMulti == "N" ){
  222. var idx = ds_main_judgexmpcdlst_item.rowposition;
  223. if( idx < 0) return ;
  224. vDestNodeSet.setColumn(0, vDestNodeCd , ds_main_judgexmpcdlst_item.getColumn(idx, "judgexmpcd"));
  225. vDestNodeSet.setColumn(0, vDestNodeNm , ds_main_judgexmpcdlst_item.getColumn(idx, "judghangcnts"));
  226. }
  227. else {
  228. ds_main_judgexmpcdlst_item.filter("sel == 'Y'");
  229. vDestNodeSet.copyData(ds_main_judgexmpcdlst_item, true);
  230. ds_main_judgexmpcdlst_item.filter("");
  231. }
  232. var FormId = opener.frmf_getMainFormScreenID();// 호출한 DIV 중 최상위 DIV ID
  233. if(FormId == "SMAHR02405"){
  234. var mainObj = frmf_getMainViewer();
  235. dsf_makeValue(mainObj.ds_temp, "okflag", "string", "ok");
  236. }else{
  237. dsf_makeValue(opener.ds_temp, "okflag", "string", "ok");
  238. }
  239. }
  240. }
  241. function ds_main_judgexmpcdlst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  242. {
  243. if(group3.grd_judgexmp.currentcol == group3.grd_judgexmp.getBindCellIndex("body", "sel")){
  244. if(ds_main_judgexmpcdlst_item.getColumn(ds_main_judgexmpcdlst_item.rowposition, "sel") == "Y"
  245. || ds_main_judgexmpcdlst_item.getColumn(ds_main_judgexmpcdlst_item.rowposition, "sel") == "1"){
  246. ds_main_judgexmpcdlst_item.setColumn(ds_main_judgexmpcdlst_item.rowposition, "sel", "Y");
  247. }else{
  248. ds_main_judgexmpcdlst_item.setColumn(ds_main_judgexmpcdlst_item.rowposition, "sel", "N");
  249. }
  250. }
  251. }
  252. function grp_btn_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  253. {
  254. fSetData();
  255. this.close();
  256. }
  257. function grp_btn_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  258. {
  259. this.close();
  260. }
  261. ]]></Script>
  262. </Form>
  263. </FDL>