SMLPP01500_관심증례조회.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLPP01500" position="absolute 0 0 1256 805" titletext="관심증례 환자조회" onload="SMLPP01500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="관심증례 환자조회" class="tit_1" position="absolute 0 3 163 28"/>
  8. <Button id="btn_excel" taborder="1" text="EXCEL저장" onlbuttonup="btn_excel_onlbuttonup" class="btn7" position="absolute 1155 74 1256 94" anchor="top right"/>
  9. <Div id="group2" taborder="2" style="align:center top;" class="div_SA" position="absolute 0 30 1256 72" anchor="left top right">
  10. <Layouts>
  11. <Layout>
  12. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1108 7 1108 29" anchor="default"/>
  13. <Static id="caption2" text="접수일자" class="search_name" position="absolute 8 10 76 30" anchor="default"/>
  14. <Static id="caption5" text="~" position="absolute 184 10 200 30" anchor="default" style="align:center;"/>
  15. <Button id="btn_sea" taborder="4" text="조회" onlbuttonup="btn_sea_onlbuttonup" class="btn1" position="absolute 1190 10 1246 30" anchor="top right" onclick="group2_btn_sea_onclick"/>
  16. <Calendar id="cal_fromdd" taborder="5" class="input_s_essential" position="absolute 84 10 184 30" mask="####-##-##" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  17. <Calendar id="cal_todd" taborder="6" class="input_s_essential" position="absolute 200 10 300 30" mask="####-##-##" anchor="default" dateformat="yyyy-MM-dd" onkeyup="group2_cal_todd_onkeyup"/>
  18. <Static id="caption1" text="등록번호" class="search_name" position="absolute 980 10 1048 30" anchor="default"/>
  19. <Edit id="edt_pid" taborder="7" position="absolute 1056 10 1156 30" anchor="default" onkeydown="group2_edt_pid_onkeydown" inputtype="number" maxlength="9"/>
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Static id="caption4" text="관심증례 환자목록" class="tit_2" position="absolute 1 76 165 93"/>
  24. <Grid id="grd_refinfolist" class="CSS::lis.css" taborder="3" useinputpanel="false" position="absolute 0 96 1256 805" anchor="all" binddataset="ds_grid_grd_refinfolist" oncelldblclick="grd_refinfolist_oncelldblclick" autosizingtype="none" autosizebandtype="body" cellsizingtype="none" autofittype="col">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="30"/>
  31. <Column size="100"/>
  32. <Column size="80"/>
  33. <Column size="80"/>
  34. <Column size="70"/>
  35. <Column size="150"/>
  36. <Column size="500"/>
  37. <Column size="172"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="28" band="head"/>
  41. <Row size="25"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell text="기관코드"/>
  45. <Cell col="1" text="ptno"/>
  46. <Cell col="2" text="No."/>
  47. <Cell col="3" text="병리번호"/>
  48. <Cell col="4" text="등록번호"/>
  49. <Cell col="5" text="환자명"/>
  50. <Cell col="6" text="성별/나이"/>
  51. <Cell col="7" text="장기명"/>
  52. <Cell col="8" text="진 단"/>
  53. <Cell col="9" text="메모"/>
  54. </Band>
  55. <Band id="body">
  56. <Cell/>
  57. <Cell col="1"/>
  58. <Cell col="2" expr="expr:currow+1"/>
  59. <Cell col="3" class="text_center" text="bind:dispptno"/>
  60. <Cell col="4" displaytype="text" style="align:center middle;" class="text_center" text="bind:pid"/>
  61. <Cell col="5" class="text_center" text="bind:patnm"/>
  62. <Cell col="6" class="text_center" text="bind:sexage"/>
  63. <Cell col="7" class="text_center" text="bind:extrpartcnts"/>
  64. <Cell col="8" style="align:left middle;" class="text_left" text="bind:diagcnts"/>
  65. <Cell col="9" text="bind:memocnts"/>
  66. <Cell col="10"/>
  67. <Cell col="11"/>
  68. </Band>
  69. </Format>
  70. </Formats>
  71. </Grid>
  72. </Layout>
  73. </Layouts>
  74. <Objects>
  75. <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  76. <ColumnInfo>
  77. <Column id="sysdd" type="STRING" size="256"/>
  78. <Column id="systm" type="STRING" size="256"/>
  79. </ColumnInfo>
  80. </Dataset>
  81. <Dataset id="ds_grid_grd_refinfolist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  82. <ColumnInfo>
  83. <column id="instcd" type="STRING" size="256"/>
  84. <column id="ptno" type="STRING" size="256"/>
  85. <column id="dispptno" type="STRING" size="256"/>
  86. <column id="pid" type="STRING" size="256"/>
  87. <column id="patnm" type="STRING" size="256"/>
  88. <column id="sexage" type="STRING" size="256"/>
  89. <column id="extrpartcnts" type="STRING" size="256"/>
  90. <column id="diagcnts" type="STRING" size="256"/>
  91. <column id="memocnts" type="STRING" size="256"/>
  92. </ColumnInfo>
  93. </Dataset>
  94. </Objects>
  95. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  96. * System Name : KU2.0
  97. * Job Name :
  98. * File Name : SMLPP01500_관심증례조회.xfdl
  99. * Creator :
  100. * Make Date : 2015-11-11
  101. *
  102. * Description :
  103. *---------------------------------------------------------------------------------------
  104. * Modify Date Modifier Modify Description
  105. *---------------------------------------------------------------------------------------
  106. * 2015-11-11 DBS Converting Program(TF->XP)
  107. *
  108. *---------------------------------------------------------------------------------------
  109. ****************************************************************************************/
  110. //=======================================================================================
  111. // Lib Include
  112. //---------------------------------------------------------------------------------------
  113. include "com_commonxp::comm_main.xjs";
  114. include "lis_commonxp::LLZ001.xjs";
  115. include "lis_commonxp::LZZ001.xjs";
  116. include "lis_commonxp::LPZ001.xjs";
  117. var instcd = "";
  118. //=======================================================================================
  119. // Function
  120. //---------------------------------------------------------------------------------------
  121. /****************************************************************************************
  122. * Components :
  123. * Components ID : model1
  124. * Event : lf_setInit
  125. * Argument : 01.obj : Object Event has occurred
  126. * : 02.e : Event Object
  127. * Description : 초기화 함수
  128. ****************************************************************************************/
  129. function lf_exeInitialize() {
  130. ds_grid_grd_refinfolist.clearData();
  131. instcd = sysf_getUserInfo("dutplceinstcd");
  132. var sInDsName = dsf_createDsRow("ds_temp_search"
  133. , [{col: "instcd", val:instcd }
  134. ]);
  135. // 서브밋호출
  136. tranf_submit({
  137. id: "TRLPZ00102"
  138. , service: "plgycomnusemngtapp.BaseInfoCode"
  139. , method: "reqGetSystemDateTimeInformation"
  140. , inds : "cond="+sInDsName
  141. , outds: "ds_data_sysdtinfo=sysdtinfo"
  142. , callback: "cbf_SMLPP01500"
  143. , async: false
  144. });
  145. }
  146. /****************************************************************************************
  147. * Components :
  148. * Components ID : btn_search
  149. * Event : onlbuttonup
  150. * Argument : 01.btnflag :
  151. * : 02. :
  152. * Description : 감사판독 소요시간 조회 처리 함수
  153. ****************************************************************************************/
  154. function lf_getRefInfoList() {
  155. var reffromdd = group2.cal_fromdd.value;
  156. var reftodd = group2.cal_todd.value;
  157. var pid = group2.edt_pid.value;
  158. var workflagcd = "'1001', '1002', '1003', '1009'";
  159. var sInDsName = dsf_createDsRow("ds_temp_search"
  160. , [{col: "instcd", val:instcd }
  161. , {col: "reffromdd", val:reffromdd }
  162. , {col: "reftodd", val:reftodd }
  163. , {col: "pid", val:pid }
  164. , {col: "workflagcd", val:workflagcd }
  165. ]);
  166. // 서브밋호출
  167. tranf_submit({
  168. id: "TRLPP01501"
  169. , service: "plgyrefmngtapp.AcptSpecRef"
  170. , method: "reqGetConcCaseList"
  171. , inds : "refData="+sInDsName
  172. , outds: "ds_grid_grd_refinfolist=reflist"
  173. , callback: "cbf_SMLPP01500"
  174. , async: false
  175. });
  176. }
  177. // Excel 저장처리 함수
  178. function lf_exeSaveToExcel() {
  179. if(ds_grid_grd_refinfolist.rowcount>0){
  180. grdf_exportExcel(grd_refinfolist, lf_lisGetTitle(this), "see", false, "", "none", false);
  181. } else {
  182. sysf_messageBox("저장할 내용이","I004","");
  183. }
  184. }
  185. // 등록번호 Enter키 처리 Function
  186. function lf_exeRefValKeyPress(){
  187. group2.edt_pid.value = frmf_setInputNodeCurPid_Change(group2.edt_pid.value);
  188. lf_getRefInfoList();
  189. }
  190. // callback 함수
  191. function cbf_SMLPP01500(strSvcID, nErrorCode, strErrorMag) {
  192. if(nErrorCode != 0) {
  193. sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
  194. }else{
  195. switch(strSvcID){
  196. case "TRLPZ00102":
  197. group2.cal_fromdd.value = ds_data_sysdtinfo.getColumn(0, "sysdd");
  198. group2.cal_todd.value = ds_data_sysdtinfo.getColumn(0, "sysdd");
  199. grdf_setGridSort(grd_refinfolist);
  200. break;
  201. case "TRLPP01501":
  202. break;
  203. default:
  204. break;
  205. }
  206. }
  207. }
  208. //=======================================================================================
  209. // Event
  210. //---------------------------------------------------------------------------------------
  211. /****************************************************************************************
  212. * Components :
  213. * Components ID : btn_excel
  214. * Event : onlbuttonup
  215. * Argument : 01.obj : Object Event has occurred
  216. * : 02.e : Event Object
  217. * Description : Excel 버튼
  218. ****************************************************************************************/
  219. function btn_excel_onlbuttonup(obj:Button, e:MouseEventInfo)
  220. {
  221. lf_exeSaveToExcel();
  222. }
  223. /****************************************************************************************
  224. * Components :
  225. * Components ID : btn_sea
  226. * Event : onlbuttonup
  227. * Argument : 01.obj : Object Event has occurred
  228. * : 02.e : Event Object
  229. * Description : 조회 버튼
  230. ****************************************************************************************/
  231. function btn_sea_onlbuttonup(obj:Button, e:MouseEventInfo)
  232. {
  233. lf_getRefInfoList();
  234. }
  235. /****************************************************************************************
  236. * Components :
  237. * Components ID : edt_pid
  238. * Event :
  239. * Argument : 01.obj : Object Event has occurred
  240. * : 02.e : Event Object
  241. * Description : 등록번호 Enter key 이벤트
  242. ****************************************************************************************/
  243. function group2_edt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  244. {
  245. if(e.keycode==13) {
  246. lf_exeRefValKeyPress();
  247. }
  248. }
  249. /****************************************************************************************
  250. * Components :
  251. * Components ID : grd_refinfolist
  252. * Event : onkeydown
  253. * Argument : 01.obj : Object Event has occurred
  254. * : 02.e : Event Object
  255. * Description : Grid double click 이벤트
  256. ****************************************************************************************/
  257. function grd_refinfolist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  258. {
  259. if(ds_grid_grd_refinfolist.rowcount < 0)
  260. {
  261. return;
  262. }
  263. var sDispPtNo = ds_grid_grd_refinfolist.getColumn(ds_grid_grd_refinfolist.rowposition, "dispptno");
  264. trace("sDispPtNo="+sDispPtNo);
  265. frmf_setParameter("opener_parameter_id", sDispPtNo);
  266. frmf_modal("SMLPR00100", "SMLPR00100", null, null, null, null, null, null, null, null, null, null, "M");
  267. //frmf_modal("SMLPR02700", "SMLPR02700", null, null, null, null, null, null, null, null, null, null, "M");
  268. }
  269. function SMLPP01500_onload(obj:Form, e:LoadEventInfo)
  270. {
  271. //폼 초기화 함수
  272. frmf_initForm(obj);
  273. lf_exeInitialize();
  274. }
  275. function group2_cal_todd_onkeyup(obj:Calendar, e:KeyEventInfo)
  276. {
  277. if(e.keycode == 13)
  278. {
  279. lf_getRefInfoList();
  280. }
  281. }]]></Script>
  282. </Form>
  283. </FDL>