SMLPP02100_전송취소내역.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLPP02100" position="absolute 0 0 1256 805" titletext="최종진단 취소내역" oninit="SMLPP02100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="최종진단 취소내역" class="tit_1" position="absolute 0 3 151 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="div_grp" 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. <Edit id="edt_seaval" taborder="11" class="input_search" position="absolute 519 10 617 30" onkeydown="div_grp_edt_seaval_onkeydown" inputtype="number" maxlength="9" anchor="default"/>
  14. <Static id="caption3" text="등록번호" class="search_name" position="absolute 443 10 511 30" anchor="default"/>
  15. <Static id="caption5" text="~" class="search_no_b" position="absolute 817 10 833 30" style="align:center;" anchor="default"/>
  16. <Button id="btn_sea" taborder="12" text="조회" onlbuttonup="btn_sea_onlbuttonup" class="btn1" position="absolute 1190 10 1246 30" anchor="top right"/>
  17. <Calendar id="cal_cnclfromdd" taborder="13" class="input_s_essential" position="absolute 717 10 817 30" mask="####-##-##" dateformat="yyyy-MM-dd" value="null" onchanged="div_grp_cal_cnclfromdd_onchanged" anchor="default"/>
  18. <Calendar id="cal_cncltodd" taborder="14" class="input_s_essential" position="absolute 833 10 933 30" mask="####-##-##" dateformat="yyyy-MM-dd" onchanged="div_grp_cal_cncltodd_onchanged" anchor="default"/>
  19. <Combo id="cmb_ptnocd" taborder="15" position="absolute 84 10 240 30" innerdataset="@ds_cond_ptnocode" codecolumn="ptnocd" datacolumn="ptnonm" anchor="default"/>
  20. <Edit id="edt_fromptno" taborder="16" class="text_center" position="absolute 273 10 323 30" maxlength="6" inputtype="number" anchor="default"/>
  21. <Static id="caption1" text="병리번호" class="search_name" position="absolute 8 10 76 30" anchor="default"/>
  22. <Edit id="edt_fromyear" taborder="17" class="text_center" position="absolute 243 10 270 30" inputtype="number" maxlength="2" anchor="default"/>
  23. <Static id="cap_refdd" text="취소일자" class="search_name" position="absolute 641 10 709 30" anchor="default"/>
  24. <Static id="caption2" text="~" class="search_no_b" position="absolute 323 10 339 30" style="align:center;" anchor="default"/>
  25. <Edit id="edt_toptno" taborder="18" class="text_center" position="absolute 369 10 419 30" inputtype="number" maxlength="6" anchor="default"/>
  26. <Edit id="edt_toyear" taborder="19" class="text_center" position="absolute 339 10 366 30" inputtype="number" maxlength="2" anchor="default"/>
  27. </Layout>
  28. </Layouts>
  29. </Div>
  30. <Static id="caption4" text="취소 목록" class="tit_2" position="absolute 0 76 114 96"/>
  31. <Grid id="grd_ptnolist" taborder="3" useinputpanel="false" position="absolute 0 96 1256 805" anchor="all" binddataset="ds_grid_grd_ptnolist" autoupdatetype="none" autosizingtype="none" autofittype="col">
  32. <Formats>
  33. <Format id="default">
  34. <Columns>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="30"/>
  38. <Column size="100"/>
  39. <Column size="80"/>
  40. <Column size="80"/>
  41. <Column size="100"/>
  42. <Column size="100"/>
  43. <Column size="70"/>
  44. <Column size="0"/>
  45. <Column size="80"/>
  46. <Column size="586"/>
  47. </Columns>
  48. <Rows>
  49. <Row size="26" band="head"/>
  50. <Row size="20"/>
  51. </Rows>
  52. <Band id="head">
  53. <Cell text="기관코드"/>
  54. <Cell col="1" text="병리번호"/>
  55. <Cell col="2" text="No."/>
  56. <Cell col="3" text="병리번호"/>
  57. <Cell col="4" text="등록번호"/>
  58. <Cell col="5" text="환자명"/>
  59. <Cell col="6" text="성별/나이"/>
  60. <Cell col="7" text="취소일자"/>
  61. <Cell col="8" text="취소시간"/>
  62. <Cell col="9" text="취소자ID"/>
  63. <Cell col="10" text="취소자"/>
  64. <Cell col="11" text="취소사유"/>
  65. </Band>
  66. <Band id="body">
  67. <Cell/>
  68. <Cell col="1"/>
  69. <Cell col="2" expr="expr:currow+1"/>
  70. <Cell col="3" class="text_center" text="bind:dispptno"/>
  71. <Cell col="4" displaytype="text" class="text_center" text="bind:pid"/>
  72. <Cell col="5" class="text_center" text="bind:patnm"/>
  73. <Cell col="6" class="text_center" text="bind:sexage"/>
  74. <Cell col="7" class="text_center" text="bind:cncldd" mask="expr:cncldd==null?'':'####-##-##'"/>
  75. <Cell col="8" class="text_center" text="bind:cncltm" mask="expr:cncltm==null?'':'##:##:##'"/>
  76. <Cell col="9"/>
  77. <Cell col="10" class="text_center" text="bind:cnclnm"/>
  78. <Cell col="11" style="align:left;" class="text_center" text="bind:cnclresnnm"/>
  79. <Cell col="12"/>
  80. </Band>
  81. </Format>
  82. </Formats>
  83. </Grid>
  84. </Layout>
  85. </Layouts>
  86. <Objects>
  87. <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  88. <ColumnInfo>
  89. <Column id="sysdd" type="STRING" size="256"/>
  90. <Column id="systm" type="STRING" size="256"/>
  91. </ColumnInfo>
  92. </Dataset>
  93. <Dataset id="ds_cond_ptnocode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  94. <ColumnInfo>
  95. <Column id="instcd" type="STRING" size="256"/>
  96. <Column id="ptnocd" type="STRING" size="256"/>
  97. <Column id="ptnonm" type="STRING" size="256"/>
  98. </ColumnInfo>
  99. </Dataset>
  100. <Dataset id="ds_grid_grd_ptnolist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <column id="instcd" type="STRING" size="256"/>
  103. <column id="ptno" type="STRING" size="256"/>
  104. <column id="dispptno" type="STRING" size="256"/>
  105. <column id="pid" type="STRING" size="256"/>
  106. <column id="patnm" type="STRING" size="256"/>
  107. <column id="sexage" type="STRING" size="256"/>
  108. <column id="cncldd" type="STRING" size="256"/>
  109. <column id="cncltm" type="STRING" size="256"/>
  110. <column id="cnclid" type="STRING" size="256"/>
  111. <column id="cnclnm" type="STRING" size="256"/>
  112. <column id="cnclresnnm" type="STRING" size="256"/>
  113. </ColumnInfo>
  114. </Dataset>
  115. </Objects>
  116. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  117. * System Name : KU2.0
  118. * Job Name :
  119. * File Name : SMLPP02100_전송취소내역.xfdl
  120. * Creator :
  121. * Make Date : 2016-11-16
  122. *
  123. * Description :
  124. *---------------------------------------------------------------------------------------
  125. * Modify Date Modifier Modify Description
  126. *---------------------------------------------------------------------------------------
  127. * 2016-11-16 DBS Converting Program(TF->XP)
  128. *
  129. *---------------------------------------------------------------------------------------
  130. ****************************************************************************************/
  131. //=======================================================================================
  132. // Lib Include
  133. //---------------------------------------------------------------------------------------
  134. include "com_commonxp::comm_main.xjs";
  135. include "lis_commonxp::LLZ001.xjs";
  136. include "lis_commonxp::LZZ001.xjs";
  137. var instcd = "";
  138. var SMLPP02100_pid = "";
  139. //=======================================================================================
  140. // Function
  141. //---------------------------------------------------------------------------------------
  142. /****************************************************************************************
  143. * Components :
  144. * Components ID : model1
  145. * Event : lf_setInit
  146. * Argument : 01.obj : Object Event has occurred
  147. * : 02.e : Event Object
  148. * Description : 초기화 함수
  149. ****************************************************************************************/
  150. function lf_exeInitialize()
  151. {
  152. var sCurDate = "";
  153. // var menuparam = getScreenMenuParameter();
  154. ds_grid_grd_ptnolist.clearData();
  155. instcd = sysf_getUserInfo("dutplceinstcd");
  156. dsf_createDsRow("ds_temp_search", [{col: "instcd", val:instcd }]);
  157. // 서브밋호출
  158. var oParam = {};
  159. oParam.id = "TRLPZ00102";
  160. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  161. oParam.method = "reqGetSystemDateTimeInformation";
  162. oParam.inds = "refData=ds_temp_search";
  163. oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
  164. oParam.async = false;
  165. oParam.callback = "cbf_SMLPP02100";
  166. tranf_submit(oParam);
  167. }
  168. /****************************************************************************************
  169. * Components :
  170. * Components ID : btn_search
  171. * Event : onlbuttonup
  172. * Argument : 01.btnflag :
  173. * : 02. :
  174. * Description : 접수목록 조회 처리 함수
  175. ****************************************************************************************/
  176. function lf_getCnclList()
  177. {
  178. var sPtNoCd = div_grp.cmb_ptnocd.value;
  179. // 조회시 병리번호 From(000000) ~ To(999999) 체크/셋팅
  180. gf_getPtNoSetting(div_grp.cal_cnclfromdd.value
  181. , div_grp.cal_cncltodd.value
  182. , div_grp.cmb_ptnocd
  183. , div_grp.edt_fromyear
  184. , div_grp.edt_fromptno
  185. , div_grp.edt_toyear
  186. , div_grp.edt_toptno);
  187. dsf_createDsRow("ds_temp_search" , [{col: "instcd" , val:instcd }
  188. , {col: "pid" , val:div_grp.edt_seaval.value }
  189. , {col: "cnclfromdd", val:div_grp.cal_cnclfromdd.value }
  190. , {col: "cncltodd" , val:div_grp.cal_cncltodd.value }
  191. , {col: "ptnocode" , val:sPtNoCd.replace("-", "") }
  192. , {col: "fromyear" , val:div_grp.edt_fromyear.value }
  193. , {col: "fromptno" , val:div_grp.edt_fromptno.value }
  194. , {col: "toyear" , val:div_grp.edt_toyear.value }
  195. , {col: "toptno" , val:div_grp.edt_toptno.value }]);
  196. // 서브밋호출
  197. var oParam = {};
  198. oParam.id = "TRLPP02101";
  199. oParam.service = "plgyrefmngtapp.TestRsltRef";
  200. oParam.method = "reqGetReadCnclList";
  201. oParam.inds = "refData=ds_temp_search";
  202. oParam.outds = "ds_grid_grd_ptnolist=refrslt";
  203. oParam.async = false;
  204. oParam.callback = "cbf_SMLPP02100";
  205. tranf_submit(oParam);
  206. }
  207. // 그리드 자료 Excel로 저장 처리 function
  208. function lf_exeSaveToExcel()
  209. {
  210. if(ds_grid_grd_ptnolist.rowcount>0)
  211. {
  212. grdf_exportExcel(grd_ptnolist, lf_lisGetTitle(this), "see", false, "", "none", false);
  213. }
  214. else
  215. {
  216. sysf_messageBox("저장할 내용이","I004","");
  217. }
  218. }
  219. // 검색값을 입력하고 Enter키를 누를 경우 처리
  220. function lf_exeInputKey()
  221. {
  222. lf_getCnclList();
  223. }
  224. // callback 함수
  225. function cbf_SMLPP02100(strSvcID, nErrorCode, strErrorMag)
  226. {
  227. if(nErrorCode != 0)
  228. {
  229. sysf_messageBox("ID: "+ strSvcID + " Error: " + strErrorMag, "E009", "");
  230. }
  231. else
  232. {
  233. switch(strSvcID)
  234. {
  235. case "TRLPZ00102":
  236. var refflagcd = "0";
  237. dsf_createDsRow("ds_temp_search", [{col: "instcd", val:instcd }
  238. ,{col: "refflagcd", val:refflagcd }]);
  239. // 서브밋호출
  240. var oParam = {};
  241. oParam.id = "TRLPZ00109";
  242. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  243. oParam.method = "reqGetPtNoCdList";
  244. oParam.inds = "refdata=ds_temp_search";
  245. oParam.outds = "ds_cond_ptnocode=rsltlist";
  246. oParam.async = false;
  247. oParam.callback = "cbf_SMLPP02100";
  248. tranf_submit(oParam);
  249. break;
  250. case "TRLPZ00109":
  251. var sCurDate = ds_data_sysdtinfo.getColumn(0, "sysdd");
  252. // 초기값 설정
  253. div_grp.cal_cnclfromdd.value = ds_data_sysdtinfo.getColumn(0, "sysdd"); // 취소일자(From)
  254. div_grp.cal_cncltodd.value = ds_data_sysdtinfo.getColumn(0, "sysdd"); // 취소일자(To)
  255. div_grp.edt_seaval.value = ""; // 검색값
  256. div_grp.cmb_ptnocd.value = "";
  257. div_grp.edt_fromyear.value = sCurDate.substr(2,2);
  258. div_grp.edt_toyear.value = sCurDate.substr(2,2);
  259. div_grp.edt_fromptno.value = "";
  260. div_grp.edt_toptno.value = "";
  261. div_grp.cmb_ptnocd.value = "-";
  262. // 메뉴에서 화면이 선택되었을 경우 처리
  263. if(parent.name =="SMLPP02100")
  264. {
  265. // Continue
  266. div_grp.edt_seaval.value = opener.frmf_getParameter("SMLPP02100_pid");
  267. // 검사결과등록, 결과조회 화면에서 호출할 경우 처리
  268. }
  269. else if(parent.name == "childframe")
  270. {
  271. lf_getCnclList();
  272. }
  273. else
  274. {
  275. // Continue
  276. }
  277. grdf_setGridSort(grd_ptnolist);
  278. break;
  279. case "TRLPP02101":
  280. break;
  281. default:
  282. break;
  283. }
  284. }
  285. }
  286. //=======================================================================================
  287. // Event
  288. //---------------------------------------------------------------------------------------
  289. /****************************************************************************************
  290. * Components :
  291. * Components ID : model1
  292. * Event : oninit
  293. * Argument : 01.obj : Object Event has occurred
  294. * : 02.e : Event Object
  295. * Description : Form 초기화
  296. ****************************************************************************************/
  297. function SMLPP02100_onload(obj:Form, e:InitEventInfo)
  298. {
  299. //폼 초기화 함수
  300. frmf_initForm(obj);
  301. lf_exeInitialize();
  302. }
  303. /****************************************************************************************
  304. * Components :
  305. * Components ID : btn_excel
  306. * Event : onlbuttonup
  307. * Argument : 01.obj : Object Event has occurred
  308. * : 02.e : Event Object
  309. * Description : Excel 저장 버튼
  310. ****************************************************************************************/
  311. function btn_excel_onlbuttonup(obj:Button, e:MouseEventInfo)
  312. {
  313. lf_exeSaveToExcel();
  314. }
  315. /****************************************************************************************
  316. * Components :
  317. * Components ID : edt_seaval
  318. * Event :
  319. * Argument : 01.obj : Object Event has occurred
  320. * : 02.e : Event Object
  321. * Description : 등록번호 Enter key 이벤트
  322. ****************************************************************************************/
  323. function div_grp_edt_seaval_onkeydown(obj:Edit, e:KeyEventInfo)
  324. {
  325. if(e.keycode==13)
  326. {
  327. lf_exeInputKey();
  328. }
  329. }
  330. /****************************************************************************************
  331. * Components :
  332. * Components ID : btn_sea
  333. * Event : onlbuttonup
  334. * Argument : 01.obj : Object Event has occurred
  335. * : 02.e : Event Object
  336. * Description : 조회 버튼
  337. ****************************************************************************************/
  338. function btn_sea_onlbuttonup(obj:Button, e:MouseEventInfo)
  339. {
  340. lf_getCnclList();
  341. }
  342. /****************************************************************************************
  343. * Components :
  344. * Components ID : cal_cnclfromdd
  345. * Event :
  346. * Argument : 01.obj : Object Event has occurred
  347. * : 02.e : Event Object
  348. * Description : Not Convert : xforms-value-changed
  349. ****************************************************************************************/
  350. function div_grp_cal_cnclfromdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  351. {
  352. gf_checkFromToDate("FROM", div_grp.cal_cnclfromdd, div_grp.cal_cncltodd, div_grp.edt_fromyear);
  353. }
  354. /****************************************************************************************
  355. * Components :
  356. * Components ID : cal_cncltodd
  357. * Event :
  358. * Argument : 01.obj : Object Event has occurred
  359. * : 02.e : Event Object
  360. * Description : Not Convert : xforms-value-changed
  361. ****************************************************************************************/
  362. function div_grp_cal_cncltodd_onchanged(obj:Calendar, e:ChangeEventInfo)
  363. {
  364. gf_checkFromToDate("TO", div_grp.cal_cnclfromdd, div_grp.cal_cncltodd, div_grp.edt_toyear);
  365. }]]></Script>
  366. </Form>
  367. </FDL>