SPARC00210_수술검색.xfdl 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPARC00210" classname="SPARC00200_처방검색" inheritanceid="" position="absolute 0 0 670 275" titletext="수술검색" oninit="SPARC00210_oninit" onload="SPARC00210_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="수술정보" class="tit_2" position="absolute 0 7 74 23"/>
  8. <Button id="button13" taborder="4" text="선택" onclick="button13_onclick" class="btn2" position="absolute 626 4 670 23"/>
  9. <Grid id="grd_opinfo" taborder="5" binddataset="ds_grd_opinfo" useinputpanel="false" position="absolute 0 25 670 275" cellclickbound="cell" cellsizingtype="col" autofittype="col">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="35"/>
  14. <Column size="80"/>
  15. <Column size="300"/>
  16. <Column size="100"/>
  17. </Columns>
  18. <Rows>
  19. <Row size="26" band="head"/>
  20. <Row size="24"/>
  21. </Rows>
  22. <Band id="head">
  23. <Cell displaytype="checkbox" edittype="checkbox"/>
  24. <Cell col="1" text="수술일"/>
  25. <Cell col="2" text="수술명"/>
  26. <Cell col="3" text="수술코드"/>
  27. </Band>
  28. <Band id="body">
  29. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  30. <Cell col="1" text="bind:opdd" mask="####-##-##"/>
  31. <Cell col="2" displaytype="text" text="bind:opnm"/>
  32. <Cell col="3" text="bind:opcd"/>
  33. </Band>
  34. </Format>
  35. </Formats>
  36. </Grid>
  37. </Layout>
  38. </Layouts>
  39. <Bind/>
  40. <Objects>
  41. <Dataset id="ds_grd_opinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  42. <ColumnInfo>
  43. <Column id="chk" type="STRING"/>
  44. <Column id="opdd" type="STRING"/>
  45. <Column id="opnm" type="STRING"/>
  46. <Column id="opcd" type="STRING" size="256"/>
  47. </ColumnInfo>
  48. </Dataset>
  49. <Dataset id="ds_send_opcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  50. <ColumnInfo>
  51. <Column id="pid" type="STRING" size="256"/>
  52. <Column id="instcd" type="STRING" size="256"/>
  53. </ColumnInfo>
  54. <Rows>
  55. <Row>
  56. <Col id="pid"/>
  57. <Col id="instcd"/>
  58. </Row>
  59. </Rows>
  60. </Dataset>
  61. </Objects>
  62. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  63. * System Name :
  64. * Job Name :
  65. * Creator :
  66. * Make Date : 2017-08-10
  67. * Description :
  68. *---------------------------------------------------------------------------------------
  69. * Modify Date Modifier Modify Description
  70. *---------------------------------------------------------------------------------------
  71. * 2018-04-23 New 전원소견서 수술정보 설정부분
  72. *
  73. *---------------------------------------------------------------------------------------
  74. ****************************************************************************************/
  75. //=======================================================================================
  76. // Lib Include
  77. //---------------------------------------------------------------------------------------
  78. include "com_commonxp::comm_main.xjs";
  79. //=======================================================================================
  80. // Global Form Variable
  81. //---------------------------------------------------------------------------------------
  82. var gPID = "";
  83. var gORDDEPTCD = "";
  84. var gORDDD = "";
  85. var gIOFLAG = "";
  86. //=======================================================================================
  87. // Function
  88. //---------------------------------------------------------------------------------------
  89. /****************************************************************************************
  90. * Argument : N/A
  91. * Description :
  92. ****************************************************************************************/
  93. function lf_(){
  94. }
  95. //=======================================================================================
  96. // Transaction Callback
  97. //---------------------------------------------------------------------------------------
  98. /****************************************************************************************
  99. * Argument : 01.sSvcId : 서비스 ID
  100. * : 02.nErrorCode : 에러코드
  101. * : 03.sErrorMsg : 에러메시지
  102. * Description : cf_의 콜백함수
  103. ****************************************************************************************/
  104. function cf_(sSvcId, nErrorCode, sErrorMsg) {
  105. arErrorCode.push(sSvcId, nErrorCode);
  106. if(nErrorCode < 0) return;
  107. }
  108. //=======================================================================================
  109. // Event
  110. //---------------------------------------------------------------------------------------
  111. /****************************************************************************************
  112. * Components : Form
  113. * Components ID : SPARC00210
  114. * Event : oninit
  115. * Argument : 01.obj : Object Event has occurred
  116. * : 02.e : Event Object
  117. * Description : 화면 초기화
  118. ****************************************************************************************/
  119. function SPARC00210_oninit(obj:Form, e:InitEventInfo)
  120. {
  121. frmf_initForm(obj);
  122. }
  123. /****************************************************************************************
  124. * Components : Form
  125. * Components ID : SPARC00210
  126. * Event : onload
  127. * Argument : 01.obj : Object Event has occurred
  128. * : 02.e : Event Object
  129. * Description : 화면 초기화
  130. ****************************************************************************************/
  131. function SPARC00210_onload(obj:Form, e:LoadEventInfo)
  132. {
  133. //Grid Setting
  134. grdf_initGrid(grd_opinfo);
  135. var patinfo = opener.frmf_getParameter("SPARC00210_patinfo");
  136. if(!utlf_isNull(patinfo) && patinfo.length > 0){
  137. patinfo = patinfo.split("▦");
  138. gPID = patinfo[0];
  139. gORDDEPTCD = patinfo[1];
  140. gORDDD = patinfo[2];
  141. gIOFLAG = patinfo[3];
  142. ds_send_opcond.setColumn(0,"pid", gPID);
  143. ds_send_opcond.setColumn(0,"instcd", sysf_getUserInfo("dutplceinstcd"));
  144. fOpSearch();
  145. }
  146. }
  147. /****************************************************************************************
  148. * Argument : N/A
  149. * Description : 처방정보 조회
  150. ****************************************************************************************/
  151. function fOpSearch()
  152. {
  153. var oParam = {};
  154. oParam.id = "TRARC00210";
  155. oParam.service = "healcarecoopapp.ReqMngt";
  156. oParam.method = "reqGetOpSrch";
  157. oParam.inds = "req=ds_send_opcond";
  158. oParam.outds = "ds_grd_opinfo=oplist";
  159. oParam.async = false;
  160. oParam.callback = "cf_TRARC00210";
  161. tranf_submit(oParam);
  162. }
  163. /****************************************************************************************
  164. * Argument : 01.sSvcId : 서비스 ID
  165. * : 02.nErrorCode : 에러코드
  166. * : 03.sErrorMsg : 에러메시지
  167. * Description : cf_의 콜백함수
  168. ****************************************************************************************/
  169. function cf_TRARC00210(sSvcId, nErrorCode, sErrorMsg) {
  170. if(nErrorCode < 0) return;
  171. ds_grd_opinfo.addColumn("chk","string");
  172. }
  173. function button13_onclick(obj:Button, e:ClickEventInfo)
  174. {
  175. var rtn1 = dsf_getDsCSV(ds_grd_opinfo, null, "N", "chk:1", "Y");
  176. if ( rtn1 == "N" ) {
  177. sysf_messageBox ( "선택된 수술정보가", "I004" );
  178. } else {
  179. opener.frmf_setParameter( "SPARC00210_rtn", rtn1 );
  180. opener.frmf_setParameter( "SPARC00210_rtn_useyn", "Y");
  181. close();
  182. }
  183. }
  184. ]]></Script>
  185. </Form>
  186. </FDL>