SPAVT00110_수술환자조회.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAVT00110" position="absolute 0 0 820 380" titletext="수술환자조회" onload="SPAVT00110_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="수술환자조회" position="absolute 0 2 102 18" align="align:center middle;" id="caption2" class="tit_2"/>
  8. <Shape position="absolute 7 61 798 67" linetype="horizontal" id="line3" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
  9. <Button position="absolute 678 351 734 373" id="btn_cfm" class="btn4" text="확인" onclick="btn_cfm_onclick"/>
  10. <Button position="absolute 735 351 791 373" id="btn_can" class="btn4" text="취소" onclick="btn_can_onclick"/>
  11. <Grid position="absolute 7 65 798 344" id="grd_srchlist" binddataset="ds_main_oplist_item" oncelldblclick="grd_srchlist_oncelldblclick">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="70"/>
  16. <Column size="80"/>
  17. <Column size="80"/>
  18. <Column size="230"/>
  19. <Column size="230"/>
  20. <Column size="70"/>
  21. </Columns>
  22. <Rows>
  23. <Row size="24" band="head"/>
  24. <Row size="24"/>
  25. </Rows>
  26. <Band id="head">
  27. <Cell text="등록번호"/>
  28. <Cell col="1" text="성 명"/>
  29. <Cell col="2" text="수술일자"/>
  30. <Cell col="3" text="진단명"/>
  31. <Cell col="4" text="수술명"/>
  32. <Cell col="5" text="수술방"/>
  33. </Band>
  34. <Band id="body">
  35. <Cell style="align:center middle;" text="bind:pid"/>
  36. <Cell col="1" style="align:center middle;" text="bind:hngnm"/>
  37. <Cell col="2" displaytype="date" style="align:center middle;" text="bind:opdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  38. <Cell col="3" style="align:left middle;" text="bind:diagengnm"/>
  39. <Cell col="4" style="align:left middle;" text="bind:opengnm"/>
  40. <Cell col="5" style="align:center middle;" text="bind:oproomnm"/>
  41. </Band>
  42. </Format>
  43. </Formats>
  44. </Grid>
  45. <Div id="grp" taborder="1" position="absolute 5 21 800 56" class="div_SA2">
  46. <Layouts>
  47. <Layout>
  48. <Static id="caption3" text="등록번호 :" class="search_name" position="absolute 341 9 417 26" anchor="default"/>
  49. <Shape id="line1" linetype="vertical" position="absolute 712 7 718 29" anchor="default"/>
  50. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 727 7 783 29" anchor="default" onclick="grp_btn_search_onclick"/>
  51. <Static id="caption1" text="기 간 :" class="search_name" position="absolute 16 9 92 26" anchor="default"/>
  52. <Edit id="ipt_srchpid" taborder="2" class="input_search" position="absolute 422 8 528 27" anchor="default" onkeydown="grp_ipt_srchpid_onkeydown"/>
  53. <Calendar id="ipt_srchfromdd" taborder="3" class="input_essential" position="absolute 93 8 193 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  54. <Static id="lbl_~" text="~" class="search_no_b" position="absolute 198 9 208 26" anchor="default"/>
  55. <Calendar id="ipt_srchtodd" taborder="4" class="input_essential" position="absolute 213 8 313 27" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
  56. <Edit id="input1" taborder="5" class="input_search" position="absolute 530 8 636 27" anchor="default" onkeydown="grp_input1_onkeydown"/>
  57. </Layout>
  58. </Layouts>
  59. </Div>
  60. </Layout>
  61. </Layouts>
  62. <Objects>
  63. <Dataset id="ds_send_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  64. <ColumnInfo>
  65. <Column id="srchfromdd" type="STRING" size="256"/>
  66. <Column id="srchtodd" type="STRING" size="256"/>
  67. <Column id="srchpid" type="STRING" size="256"/>
  68. <Column id="srchhngnm" type="STRING" size="256"/>
  69. </ColumnInfo>
  70. <Rows>
  71. <Row>
  72. <Col id="srchfromdd"/>
  73. <Col id="srchtodd"/>
  74. <Col id="srchpid"/>
  75. <Col id="srchhngnm"/>
  76. </Row>
  77. </Rows>
  78. </Dataset>
  79. <Dataset id="ds_main_oplist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  80. <ColumnInfo>
  81. <Column id="pid" type="STRING" size="256" sumtext="등록정보"/>
  82. <Column id="hngnm" type="STRING" size="256" sumtext="성명"/>
  83. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
  84. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호1"/>
  85. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  86. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  87. <Column id="telno" type="STRING" size="256" sumtext="전화번호"/>
  88. <Column id="abo" type="STRING" size="256" sumtext="혈액형 ABO"/>
  89. <Column id="rh" type="STRING" size="256" sumtext="혈액형 RH"/>
  90. <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호1"/>
  91. <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호2"/>
  92. <Column id="zipcdseq" type="STRING" size="256" sumtext="우편번호 SEQ"/>
  93. <Column id="addr" type="STRING" size="256" sumtext="주소1"/>
  94. <Column id="address" type="STRING" size="256" sumtext="주소2"/>
  95. <Column id="opdd" type="STRING" size="256" sumtext="수술일자"/>
  96. <Column id="diagcd" type="STRING" size="256" sumtext="진단코드"/>
  97. <Column id="diaghngnm" type="STRING" size="256" sumtext="진단한글명"/>
  98. <Column id="diagengnm" type="STRING" size="256" sumtext="진단영문명"/>
  99. <Column id="opcd" type="STRING" size="256" sumtext="수술코드"/>
  100. <Column id="ophngnm" type="STRING" size="256" sumtext="수술한글명"/>
  101. <Column id="opengnm" type="STRING" size="256" sumtext="수술영문명"/>
  102. <Column id="opsdd" type="STRING" size="256" sumtext="수술시작일자"/>
  103. <Column id="opstm" type="STRING" size="256" sumtext="수술시작시간"/>
  104. <Column id="opedd" type="STRING" size="256" sumtext="수술종료일자"/>
  105. <Column id="opetm" type="STRING" size="256" sumtext="수술종료시간"/>
  106. <Column id="oproomcd" type="STRING" size="256" sumtext="수술방코드"/>
  107. <Column id="oproomnm" type="STRING" size="256" sumtext="수술방명"/>
  108. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  109. <Column id="depthngnm" type="STRING" size="256" sumtext="진료과명"/>
  110. <Column id="perfdrid" type="STRING" size="256" sumtext="수술의ID"/>
  111. <Column id="usernm" type="STRING" size="256" sumtext="수술의명"/>
  112. </ColumnInfo>
  113. </Dataset>
  114. <Dataset id="ds_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  115. </Objects>
  116. <Bind>
  117. <BindItem id="item0" compid="grp.ipt_srchfromdd" propid="value" datasetid="ds_send_srch" columnid="srchfromdd"/>
  118. <BindItem id="item1" compid="grp.ipt_srchtodd" propid="value" datasetid="ds_send_srch" columnid="srchtodd"/>
  119. <BindItem id="item2" compid="grp.ipt_srchpid" propid="value" datasetid="ds_send_srch" columnid="srchpid"/>
  120. <BindItem id="item3" compid="grp.input1" propid="value" datasetid="ds_send_srch" columnid="srchhngnm"/>
  121. </Bind>
  122. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  123. * System Name :
  124. * Job Name :
  125. * Creator :
  126. * Make Date : 2015-11-13
  127. * Description :
  128. *---------------------------------------------------------------------------------------
  129. * Modify Date Modifier Modify Description
  130. *---------------------------------------------------------------------------------------
  131. * 2015-11-13 Live Converter TF->XP
  132. *
  133. *---------------------------------------------------------------------------------------
  134. ****************************************************************************************/
  135. //=======================================================================================
  136. // Lib Include
  137. //---------------------------------------------------------------------------------------
  138. include 'com_commonxp::comm_main.xjs';
  139. var arErrorCode = new HashArray();
  140. //=======================================================================================
  141. // Local methods
  142. //---------------------------------------------------------------------------------------
  143. /**
  144. * [request description]
  145. * @return {[type]} [description]
  146. */
  147. function request() {
  148. ds_main_oplist_item.clearData();
  149. var oParam = {};
  150. oParam.id = "TRAVT00103";
  151. oParam.service = "tissuebankapp.TissueBankProcess";
  152. oParam.method = "reqGetTissueBankOpList";
  153. oParam.inds = "req=ds_send_srch";
  154. oParam.outds = "ds_main_oplist_item=item";
  155. oParam.async = false;
  156. tranf_submit(oParam);
  157. }
  158. /**
  159. * [fSetOpener description]
  160. * @return {[type]} [description]
  161. */
  162. function fSetOpener() {
  163. if (frmf_checkOpener()) {
  164. opener.ds_temp.setColumn(0, "okflag", "ok");
  165. var idx = grd_srchlist.currentrow;
  166. // Opener Node에 복사
  167. dsf_copyColInfo(opener.ds_temp_templst_item, ds_main_oplist_item);;
  168. opener.ds_temp_templst_item.copyRow(opener.ds_temp_templst_item.addRow(), ds_main_oplist_item, idx);
  169. //trace(opener.ds_temp_templst_item.saveXML());
  170. this.close();
  171. }
  172. }
  173. /**
  174. * submit 후 호출 될 공통 콜백
  175. * @param {[type]} sSvcId [description]
  176. * @param {[type]} nErrorCode [description]
  177. * @param {[type]} sErrorMsg [description]
  178. * @return {Function} [description]
  179. */
  180. function callback(sSvcId, nErrorCode, sErrorMsg){
  181. arErrorCode.push(sSvcId, nErrorCode);
  182. }
  183. //=======================================================================================
  184. // Events
  185. //---------------------------------------------------------------------------------------
  186. /**
  187. * onload 이벤트 발생 시 호출
  188. * @param {[type]} obj:Form [description]
  189. * @param {[type]} e:LoadEventInfo [description]
  190. */
  191. function SPAVT00110_onload(obj: Form, e: LoadEventInfo) {
  192. frmf_initForm(obj);
  193. // 일자 setting
  194. var curDD = utlf_getCurrentDate();
  195. ds_send_srch.setColumn(0, "srchfromdd", curDD); // 조회시작일자
  196. ds_send_srch.setColumn(0, "srchtodd", curDD); // 조회종료일자
  197. // 검색조건 설정
  198. var vpid = opener.frmf_getParameter("SPAVT00110_PID");
  199. ds_send_srch.setColumn(0, "srchpid", vpid);
  200. // 자동조회
  201. request();
  202. }
  203. /**
  204. * 등록번호 키보드 입력 이벤트
  205. * @param {[type]} obj: Edit [description]
  206. * @param {[type]} e: KeyEventInfo [description]
  207. * @return {[type]} [description]
  208. */
  209. function grp_ipt_srchpid_onkeydown(obj: Edit, e: KeyEventInfo) {
  210. if (e.keycode == 13) {
  211. grp.btn_search.click();
  212. }
  213. }
  214. /**
  215. * 등록번호 키보드 입력 이벤트
  216. * @param {[type]} obj: Edit [description]
  217. * @param {[type]} e: KeyEventInfo [description]
  218. * @return {[type]} [description]
  219. */
  220. function grp_input1_onkeydown(obj: Edit, e: KeyEventInfo) {
  221. if (e.keycode == 13) {
  222. grp.btn_search.click();
  223. }
  224. }
  225. /**
  226. * 조회 버튼 클릭 이벤트
  227. * @param {[type]} obj: Button [description]
  228. * @param {[type]} e: ClickEventInfo [description]
  229. * @return {[type]} [description]
  230. */
  231. function grp_btn_search_onclick(obj: Button, e: ClickEventInfo) {
  232. request();
  233. }
  234. /**
  235. * 그리드 셀 더블클릭 이벤트
  236. * @param {[type]} obj: Grid [description]
  237. * @param {[type]} e: GridClickEventInfo [description]
  238. * @return {[type]} [description]
  239. */
  240. function grd_srchlist_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
  241. fSetOpener();
  242. }
  243. /**
  244. * 확인 버튼 클릭 이벤트
  245. * @param {[type]} obj: Button [description]
  246. * @param {[type]} e: ClickEventInfo [description]
  247. * @return {[type]} [description]
  248. */
  249. function btn_cfm_onclick(obj: Button, e: ClickEventInfo) {
  250. fSetOpener();
  251. }
  252. /**
  253. * 취소 버튼 클릭 이벤트
  254. * @param {[type]} obj: Button [description]
  255. * @param {[type]} e: ClickEventInfo [description]
  256. * @return {[type]} [description]
  257. */
  258. function btn_can_onclick(obj: Button, e: ClickEventInfo) {
  259. if (frmf_checkOpener()) {
  260. opener.ds_temp.setColumn(0, "okflag", "");
  261. }
  262. this.close();
  263. }
  264. ]]></Script>
  265. </Form>
  266. </FDL>