SMLPJ00710_부적합취소현황.xfdl 19 KB

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