SMLPJ00700_접수취소현황.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLPJ00700" position="absolute 0 0 1199 761" titletext="접수/취소현황" oninit="SMLPJ00700_oninit" onload="SMLPJ00700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="button13" taborder="1" text="EXCEL저장" class="btn7" position="absolute 1102 69 1194 91" anchor="top right" onclick="button13_onclick"/>
  8. <Static id="caption6" text="접수/취소현황" class="tit_1" position="absolute 0 0 116 25"/>
  9. <Static id="caption4" text="접수/취소 목록" class="tit_2" position="absolute 1 83 115 99" anchor="left top"/>
  10. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 99 1194 105" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  11. <Div id="group2" taborder="2" position="absolute 0 25 1195 60" class="div_SA" anchor="left top right">
  12. <Layouts>
  13. <Layout>
  14. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
  15. <Edit id="ipt_seaval" taborder="11" class="input_search" position="absolute 507 8 605 27" anchor="left top" onkeyup="group2_ipt_seaval_onkeyup"/>
  16. <Static id="caption3" text="등록번호 :" class="search_name" position="absolute 416 9 502 26" anchor="left top"/>
  17. <Static id="caption5" text="~" class="search_no_b" position="absolute 979 8 991 25" anchor="top right"/>
  18. <Button id="btn_sea" taborder="12" text="조회" class="btn1" position="absolute 1123 7 1179 29" anchor="top right" onclick="group2_btn_sea_onclick"/>
  19. <Calendar id="ipt_cnclfromdd" taborder="13" class="input_s_essential" position="absolute 876 8 976 27" mask="yyyy-mm-dd" anchor="top right"/>
  20. <Calendar id="ipt_cncltodd" taborder="14" class="input_s_essential" position="absolute 995 8 1095 27" mask="yyyy-mm-dd" anchor="top right" onkeyup="group2_ipt_cncltodd_onkeyup"/>
  21. <Combo id="cbo_ptnocd" taborder="15" innerdataset="ds_init_cbo_ptnocd" codecolumn="ptnocd" datacolumn="ptnonm" position="absolute 109 8 220 27" anchor="left top"/>
  22. <Edit id="ipt_fromptno" taborder="16" class="text_center" position="absolute 253 8 303 27" anchor="left top"/>
  23. <Static id="caption1" text="병리번호 :" class="search_name" position="absolute 15 9 105 26" anchor="left top"/>
  24. <Static id="caption7" text="~" class="search_no_b" position="absolute 306 8 318 25" anchor="left top"/>
  25. <Edit id="input1" taborder="17" class="text_center" position="absolute 351 8 401 27" anchor="left top"/>
  26. <Edit id="input2" taborder="18" class="text_center" position="absolute 321 8 348 27" anchor="left top"/>
  27. <Edit id="ipt_fromyear" taborder="19" class="text_center" position="absolute 223 8 250 27" anchor="left top"/>
  28. <Static id="caption8" text="조회구분 :" class="search_name" position="absolute 620 9 706 26" anchor="top right"/>
  29. <Combo id="cbo_refflagcd" taborder="20" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 711 8 771 27" anchor="top right" onitemchanged="group2_cbo_refflagcd_onitemchanged">
  30. <Dataset id="innerdataset">
  31. <ColumnInfo>
  32. <Column id="codecolumn"/>
  33. <Column id="datacolumn"/>
  34. </ColumnInfo>
  35. <Rows>
  36. <Row>
  37. <Col id="codecolumn">0</Col>
  38. <Col id="datacolumn">접수</Col>
  39. </Row>
  40. <Row>
  41. <Col id="codecolumn">1</Col>
  42. <Col id="datacolumn">취소</Col>
  43. </Row>
  44. </Rows>
  45. </Dataset>
  46. </Combo>
  47. <Static id="cap_refdd" text="접수일자 :" class="search_name" position="absolute 787 9 873 26" anchor="top right"/>
  48. </Layout>
  49. </Layouts>
  50. </Div>
  51. <Grid id="grd_acptcncllist" class="datagrid2" taborder="3" binddataset="ds_grd_acptcncllist" useinputpanel="false" position="absolute 0 103 1194 756" autofittype="col" anchor="all" cellsizingtype="col">
  52. <Formats>
  53. <Format id="default">
  54. <Columns>
  55. <Column size="0"/>
  56. <Column size="0"/>
  57. <Column size="31"/>
  58. <Column size="80"/>
  59. <Column size="0"/>
  60. <Column size="80"/>
  61. <Column size="70"/>
  62. <Column size="60"/>
  63. <Column size="100"/>
  64. <Column size="70"/>
  65. <Column size="70"/>
  66. <Column size="70"/>
  67. <Column size="60"/>
  68. <Column size="0"/>
  69. <Column size="60"/>
  70. <Column size="0"/>
  71. <Column size="120"/>
  72. <Column size="0"/>
  73. <Column size="0"/>
  74. <Column size="0"/>
  75. <Column size="70"/>
  76. <Column size="0"/>
  77. <Column size="60"/>
  78. <Column size="0"/>
  79. <Column size="60"/>
  80. <Column size="0"/>
  81. <Column size="0"/>
  82. <Column size="60"/>
  83. <Column size="69"/>
  84. </Columns>
  85. <Rows>
  86. <Row size="24" band="head"/>
  87. <Row size="24"/>
  88. </Rows>
  89. <Band id="head">
  90. <Cell text="기관코드"/>
  91. <Cell col="1" text="병리번호"/>
  92. <Cell col="2"/>
  93. <Cell col="3" text="병리번호"/>
  94. <Cell col="4" text="관련병리번호"/>
  95. <Cell col="5" text="관련병리번호"/>
  96. <Cell col="6" text="등록번호"/>
  97. <Cell col="7" text="환자명"/>
  98. <Cell col="8" text="환자구분"/>
  99. <Cell col="9" text="처방일자"/>
  100. <Cell col="10" text="접수일자"/>
  101. <Cell col="11" text="취소일자"/>
  102. <Cell col="12" text="취소시간"/>
  103. <Cell col="13" text="취소자ID"/>
  104. <Cell col="14" text="취소자"/>
  105. <Cell col="15" text="검사코드"/>
  106. <Cell col="16" text="검사명"/>
  107. <Cell col="17" text="검사그룹코드"/>
  108. <Cell col="18" text="그룹검사명"/>
  109. <Cell col="19" text="진료과코드"/>
  110. <Cell col="20" text="진료과"/>
  111. <Cell col="21" text="진료의ID"/>
  112. <Cell col="22" text="진료의"/>
  113. <Cell col="23" text="추가처방의ID"/>
  114. <Cell col="24" text="추가&#10;처방의"/>
  115. <Cell col="25" text="검체코드"/>
  116. <Cell col="26" text="검체명"/>
  117. <Cell col="27" text="Cassette&#10;번호"/>
  118. <Cell col="28" text="취소사유"/>
  119. </Band>
  120. <Band id="body">
  121. <Cell text="bind:instcd"/>
  122. <Cell col="1" text="bind:ptno"/>
  123. <Cell col="2" text="expr:currow + 1"/>
  124. <Cell col="3" style="align:left middle;" class="text_center" text="bind:dispptno"/>
  125. <Cell col="4" text="bind:relaptno"/>
  126. <Cell col="5" class="text_center" text="bind:disprelaptno"/>
  127. <Cell col="6" class="text_center" text="bind:pid"/>
  128. <Cell col="7" class="text_center" text="bind:patnm"/>
  129. <Cell col="8" class="text_center" text="bind:patflagnm"/>
  130. <Cell col="9" displaytype="date" edittype="date" class="text_center" text="bind:prcpdd" mask="yyyy-MM-dd"/>
  131. <Cell col="10" displaytype="date" edittype="date" class="text_center" text="bind:acptdd" mask="yyyy-MM-dd"/>
  132. <Cell col="11" displaytype="date" edittype="date" class="text_center" text="bind:cncldd" mask="yyyy-MM-dd"/>
  133. <Cell col="12" displaytype="date" edittype="date" class="text_center" text="bind:cncltm" mask="hh:mm:ss"/>
  134. <Cell col="13" text="bind:cnclid"/>
  135. <Cell col="14" class="text_center" text="bind:cnclnm"/>
  136. <Cell col="15" text="bind:testcd"/>
  137. <Cell col="16" style="align:left middle;" text="bind:testnm"/>
  138. <Cell col="17" text="bind:tgrupcd"/>
  139. <Cell col="18" text="bind:tgrupnm"/>
  140. <Cell col="19" text="bind:orddeptcd"/>
  141. <Cell col="20" class="text_center" text="bind:orddeptnm"/>
  142. <Cell col="21" text="bind:orddrid"/>
  143. <Cell col="22" class="text_center" text="bind:orddrnm"/>
  144. <Cell col="23" text="bind:appeorddrid"/>
  145. <Cell col="24" class="text_center" text="bind:appeorddrnm"/>
  146. <Cell col="25" text="bind:spccd"/>
  147. <Cell col="26" text="bind:spcnm"/>
  148. <Cell col="27" class="text_center" text="bind:blocno"/>
  149. <Cell col="28" style="align:left middle;" text="bind:resncnts"/>
  150. </Band>
  151. </Format>
  152. </Formats>
  153. </Grid>
  154. <Button id="btn_bu" taborder="4" text="조회" class="btn1" position="absolute 808 72 864 94" anchor="top right" onclick="btn_bu_onclick" visible="false"/>
  155. </Layout>
  156. </Layouts>
  157. <Objects>
  158. <Dataset id="ds_init_cbo_ptnocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  159. <ColumnInfo>
  160. <Column id="ptnonm" type="STRING"/>
  161. <Column id="ptnocd" type="STRING"/>
  162. </ColumnInfo>
  163. </Dataset>
  164. <Dataset id="ds_grd_acptcncllist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  165. <ColumnInfo>
  166. <Column id="instcd" type="STRING"/>
  167. <Column id="ptno" type="STRING"/>
  168. <Column id="dispptno" type="STRING"/>
  169. <Column id="relaptno" type="STRING"/>
  170. <Column id="disprelaptno" type="STRING"/>
  171. <Column id="pid" type="STRING"/>
  172. <Column id="patnm" type="STRING"/>
  173. <Column id="patflagnm" type="STRING"/>
  174. <Column id="prcpdd" type="STRING"/>
  175. <Column id="acptdd" type="STRING"/>
  176. <Column id="cncldd" type="STRING"/>
  177. <Column id="cncltm" type="STRING"/>
  178. <Column id="cnclid" type="STRING"/>
  179. <Column id="cnclnm" type="STRING"/>
  180. <Column id="testcd" type="STRING"/>
  181. <Column id="testnm" type="STRING"/>
  182. <Column id="tgrupcd" type="STRING"/>
  183. <Column id="tgrupnm" type="STRING"/>
  184. <Column id="orddeptcd" type="STRING"/>
  185. <Column id="orddeptnm" type="STRING"/>
  186. <Column id="orddrid" type="STRING"/>
  187. <Column id="orddrnm" type="STRING"/>
  188. <Column id="appeorddrid" type="STRING"/>
  189. <Column id="appeorddrnm" type="STRING"/>
  190. <Column id="spccd" type="STRING"/>
  191. <Column id="spcnm" type="STRING"/>
  192. <Column id="blocno" type="STRING"/>
  193. <Column id="resncnts" type="STRING"/>
  194. </ColumnInfo>
  195. </Dataset>
  196. <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  197. <ColumnInfo>
  198. <Column id="sysdd" type="STRING" size="256"/>
  199. <Column id="systm" type="STRING" size="256"/>
  200. </ColumnInfo>
  201. </Dataset>
  202. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  203. <ColumnInfo>
  204. <Column id="seaval" type="STRING" size="256"/>
  205. <Column id="acptfromdd" type="STRING" size="256"/>
  206. <Column id="acpttodd" type="STRING" size="256"/>
  207. <Column id="seameth" type="STRING" size="256"/>
  208. </ColumnInfo>
  209. <Rows>
  210. <Row>
  211. <Col id="seameth">0</Col>
  212. </Row>
  213. </Rows>
  214. </Dataset>
  215. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  216. <ColumnInfo>
  217. <Column id="ptnocode" type="STRING" size="256"/>
  218. <Column id="fromyear" type="STRING" size="256"/>
  219. <Column id="fromptno" type="STRING" size="256"/>
  220. <Column id="toyear" type="STRING" size="256"/>
  221. <Column id="toptno" type="STRING" size="256"/>
  222. <Column id="sysdt" type="STRING" size="256"/>
  223. <Column id="ptnocd" type="STRING" size="256"/>
  224. <Column id="refflagcd" type="STRING" size="256"/>
  225. </ColumnInfo>
  226. <Rows>
  227. <Row/>
  228. </Rows>
  229. </Dataset>
  230. </Objects>
  231. <Bind>
  232. <BindItem id="item0" compid="group2.ipt_cnclfromdd" propid="value" datasetid="ds_hidden" columnid="acptfromdd"/>
  233. <BindItem id="item1" compid="group2.ipt_cncltodd" propid="value" datasetid="ds_hidden" columnid="acpttodd"/>
  234. <BindItem id="item2" compid="group2.ipt_seaval" propid="value" datasetid="ds_hidden" columnid="seaval"/>
  235. <BindItem id="item3" compid="group2.ipt_fromyear" propid="value" datasetid="ds_init" columnid="fromyear"/>
  236. <BindItem id="item4" compid="group2.input2" propid="value" datasetid="ds_init" columnid="toyear"/>
  237. <BindItem id="item5" compid="group2.ipt_fromptno" propid="value" datasetid="ds_init" columnid="fromptno"/>
  238. <BindItem id="item6" compid="group2.input1" propid="value" datasetid="ds_init" columnid="toptno"/>
  239. <BindItem id="item7" compid="group2.cbo_ptnocd" propid="value" datasetid="ds_init" columnid="ptnocode"/>
  240. <BindItem id="item8" compid="group2.cbo_refflagcd" propid="value" datasetid="ds_init" columnid="refflagcd"/>
  241. </Bind>
  242. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  243. * System Name :
  244. * Job Name :
  245. * Creator :
  246. * Make Date : 2015-11-13
  247. * Description :
  248. *---------------------------------------------------------------------------------------
  249. * Modify Date Modifier Modify Description
  250. *---------------------------------------------------------------------------------------
  251. * 2015-11-13 Live Converter TF->XP
  252. *
  253. *---------------------------------------------------------------------------------------
  254. ****************************************************************************************/
  255. include "com_commonxp::comm_main.xjs";
  256. function SMLPJ00700_oninit(obj:Form, e:InitEventInfo)
  257. {
  258. frmf_initForm(obj);
  259. }
  260. function SMLPJ00700_onload(obj:Form, e:LoadEventInfo)
  261. {
  262. grdf_initGrid(grd_acptcncllist);
  263. fExeInitialize();
  264. }
  265. function fExeInitialize()
  266. {
  267. var sCurDate = "";
  268. dsf_createDsRow("ds_send", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}]);
  269. var oParam = {};
  270. oParam.id = "TRLPZ00102";
  271. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  272. oParam.method = "reqGetSystemDateTimeInformation";
  273. oParam.inds = "refData=ds_send";
  274. oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
  275. oParam.async = false;
  276. //oParam.callback = "cf_TRLPZ00102";
  277. tranf_submit(oParam);
  278. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  279. ,{col : "refflagcd", val : "0"}]);
  280. var oParam = {};
  281. oParam.id = "TRLPZ00109";
  282. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  283. oParam.method = "reqGetPtNoCdList";
  284. oParam.inds = "refdata=ds_send";
  285. oParam.outds = "ds_init_cbo_ptnocd=rsltlist";
  286. oParam.async = false;
  287. //oParam.callback = "cf_TRLPZ00109";
  288. tranf_submit(oParam);
  289. sCurDate = utlf_getCurrentDate();
  290. // 초기값 설정
  291. ds_hidden.setColumn(0, "seaval", "");
  292. ds_hidden.setColumn(0, "acptfromdd", utlf_getCurrentDate());
  293. ds_hidden.setColumn(0, "acpttodd", utlf_getCurrentDate());
  294. ds_hidden.setColumn(0, "seameth", "1");
  295. ds_init.setColumn(0, "refflagcd", "0");
  296. ds_init.setColumn(0, "ptnocode", "");
  297. ds_init.setColumn(0, "fromyear", sCurDate.substr(2,2));
  298. ds_init.setColumn(0, "toyear", sCurDate.substr(2,2));
  299. ds_init.setColumn(0, "fromptno", "");
  300. ds_init.setColumn(0, "toptno", "");
  301. }
  302. function fGetCnclPrcpList()
  303. {
  304. var sTemp = "";
  305. var sFromDD = ds_hidden.getColumn(0, "acptfromdd");
  306. var sToDD = ds_hidden.getColumn(0, "acpttodd");
  307. if( !utlf_isNull(ds_init.getColumn(0, "ptnocode")))
  308. {
  309. if( utlf_isNull(ds_init.getColumn(0, "fromyear")))
  310. {
  311. ds_init.setColumn(0, "fromyear", sFromDD.substr(2,2));
  312. }
  313. else
  314. {
  315. sTemp = ds_init.getColumn(0, "fromyear");
  316. ds_init.setColumn(0, "fromyear", sTemp.getLeftPad(2, "0"));
  317. }
  318. if( utlf_isNull(ds_init.getColumn(0, "toyear")))
  319. {
  320. ds_init.setColumn(0, "toyear", sToDD.substr(2,2));
  321. }
  322. else
  323. {
  324. sTemp = ds_init.getColumn(0, "toyear");
  325. ds_init.setColumn(0, "toyear", sTemp.getLeftPad(2, "0"));
  326. }
  327. if( utlf_isNull(ds_init.getColumn(0, "fromptno")))
  328. {
  329. ds_init.setColumn(0, "fromptno", "000000");
  330. }
  331. else
  332. {
  333. sTemp = ds_init.getColumn(0, "fromptno");
  334. ds_init.setColumn(0, "fromptno", sTemp.getLeftPad(6, "0"));
  335. }
  336. if( utlf_isNull(ds_init.getColumn(0, "toptno")))
  337. {
  338. ds_init.setColumn(0, "toptno", "999999");
  339. }
  340. else
  341. {
  342. sTemp = ds_init.getColumn(0, "toptno");
  343. ds_init.setColumn(0, "toptno", sTemp.getLeftPad(6, "0"));
  344. }
  345. }
  346. sTemp = ds_init.getColumn(0, "ptnocode");
  347. ds_send.clearData();
  348. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  349. ,{col : "cnclfromdd", val : ds_hidden.getColumn(0, "acptfromdd")}
  350. ,{col : "cncltodd", val : ds_hidden.getColumn(0, "acpttodd")}
  351. ,{col : "refmthd", val : ds_hidden.getColumn(0, "seameth")}
  352. ,{col : "refval", val : ds_hidden.getColumn(0, "seaval")}
  353. ,{col : "ptnocode", val : utlf_transNullToEmpty(sTemp).replace("-", "")}
  354. ,{col : "fromyear", val : ds_init.getColumn(0, "fromyear")}
  355. ,{col : "fromptno", val : ds_init.getColumn(0, "fromptno")}
  356. ,{col : "toyear", val : ds_init.getColumn(0, "toyear")}
  357. ,{col : "toptno", val : ds_init.getColumn(0, "toptno")}
  358. ,{col : "acptflagcd", val : ds_init.getColumn(0, "refflagcd")}]);
  359. var oParam = {};
  360. oParam.id = "TRLPJ00701";
  361. oParam.service = "plgyrefmngtapp.AcptSpecRef";
  362. oParam.method = "reqGetAcptCnclList";
  363. oParam.inds = "refData=ds_send";
  364. oParam.outds = "ds_grd_acptcncllist=reflist";
  365. oParam.async = false;
  366. //oParam.callback = "cf_TRLPJ00701";
  367. tranf_submit(oParam);
  368. }
  369. function fExeRefFlagChng()
  370. {
  371. if(ds_init.getColumn(0, "refflagcd") == "0")
  372. {
  373. group2.cap_refdd.text = "접수일자 :";
  374. }
  375. else
  376. {
  377. group2.cap_refdd.text = "취소일자 :";
  378. }
  379. }
  380. //조회
  381. function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  382. {
  383. fGetCnclPrcpList();
  384. }
  385. function group2_ipt_cncltodd_onkeyup(obj:Calendar, e:KeyEventInfo)
  386. {
  387. if(e.keycode == 13)
  388. {
  389. fGetCnclPrcpList();
  390. }
  391. }
  392. function group2_cbo_refflagcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  393. {
  394. fExeRefFlagChng();
  395. }
  396. //엑셀저장
  397. function button13_onclick(obj:Button, e:ClickEventInfo)
  398. {
  399. grdf_exportExcel(grd_acptcncllist, "접수취소현황", "sheet1", false);
  400. }
  401. function group2_ipt_seaval_onkeyup(obj:Edit, e:KeyEventInfo)
  402. {
  403. if(e.keycode == 13)
  404. {
  405. ds_hidden.setColumn(0, "seaval", group2.ipt_seaval.text);
  406. fGetCnclPrcpList();
  407. }
  408. }
  409. function btn_bu_onclick(obj:Button, e:ClickEventInfo)
  410. {
  411. frmf_modal("SMLPJ00710", "SMLPJ00710", "", null, null, null, null, null, null, null, null, null, "M");
  412. }
  413. ]]></Script>
  414. </Form>
  415. </FDL>