SPLPR01000_병리번호팝업창.xfdl 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLPR01000" position="absolute 0 0 1155 731" titletext="병리번호목록" oninit="SPLPR01000_oninit" onload="SPLPR01000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" text="병리번호 목록" class="tit_2" position="absolute 1 69 106 85"/>
  8. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 87 1137 93" style="strokepen:3 solid #33bbbbff;"/>
  9. <Grid id="grd_ptnolist" taborder="1" binddataset="ds_grd_ptnolist" useinputpanel="false" position="absolute 0 91 1137 689" autofittype="col" oncelldblclick="grd_ptnolist_oncelldblclick">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="0"/>
  14. <Column size="0"/>
  15. <Column size="28"/>
  16. <Column size="80"/>
  17. <Column size="0"/>
  18. <Column size="80"/>
  19. <Column size="65"/>
  20. <Column size="70"/>
  21. <Column size="46"/>
  22. <Column size="67"/>
  23. <Column size="65"/>
  24. <Column size="48"/>
  25. <Column size="80"/>
  26. <Column size="122"/>
  27. <Column size="65"/>
  28. <Column size="80"/>
  29. <Column size="80"/>
  30. <Column size="0"/>
  31. <Column size="64"/>
  32. <Column size="70"/>
  33. </Columns>
  34. <Rows>
  35. <Row size="24" band="head"/>
  36. <Row size="24"/>
  37. </Rows>
  38. <Band id="head">
  39. <Cell text="기관코드"/>
  40. <Cell col="1" text="ptno"/>
  41. <Cell col="2"/>
  42. <Cell col="3" text="병리번호"/>
  43. <Cell col="4" text="relptno"/>
  44. <Cell col="5" text="관련병리번호"/>
  45. <Cell col="6" text="등록번호"/>
  46. <Cell col="7" text="환자명"/>
  47. <Cell col="8" text="구분"/>
  48. <Cell col="9" text="육안검사의"/>
  49. <Cell col="10" text="진행상태"/>
  50. <Cell col="11" text="진료과"/>
  51. <Cell col="12" text="처방일자"/>
  52. <Cell col="13" text="기록일시"/>
  53. <Cell col="14" text="입력자"/>
  54. <Cell col="15" text="접수일자"/>
  55. <Cell col="16" text="판독일자"/>
  56. <Cell col="17" text="판독의사"/>
  57. <Cell col="18" text="판독의사"/>
  58. <Cell col="19" text="예약일"/>
  59. </Band>
  60. <Band id="body">
  61. <Cell text="bind:instcd"/>
  62. <Cell col="1" text="bind:ptno" mask="yyyy-mm-dd"/>
  63. <Cell col="2" text="expr:currow + 1"/>
  64. <Cell col="3" displaytype="normal" edittype="none" class="text_center" text="bind:ptno"/>
  65. <Cell col="4" text="bind:relaptno"/>
  66. <Cell col="5" class="text_center" text="bind:disprelaptno"/>
  67. <Cell col="6" class="text_center" text="bind:pid"/>
  68. <Cell col="7" class="text_center" text="bind:patnm"/>
  69. <Cell col="8" class="text_center" text="bind:prcpgenrflag"/>
  70. <Cell col="9" class="text_center" text="bind:grosdrnm"/>
  71. <Cell col="10" class="text_center" text="bind:prcsstat"/>
  72. <Cell col="11" class="text_center" text="bind:orddeptabbr"/>
  73. <Cell col="12" displaytype="date" edittype="date" class="text_center" text="bind:prcpdd" mask="yyyy-MM-dd"/>
  74. <Cell col="13" displaytype="date" edittype="date" class="text_center" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm:ss"/>
  75. <Cell col="14" class="text_center" text="bind:rsltrgstabbr"/>
  76. <Cell col="15" displaytype="date" edittype="date" class="text_center" text="bind:acptdd" mask="yyyy-MM-dd"/>
  77. <Cell col="16" displaytype="date" edittype="date" class="text_center" text="bind:readdd" mask="yyyy-MM-dd"/>
  78. <Cell col="17" class="text_center" text="bind:readdrid"/>
  79. <Cell col="18" class="text_center" text="bind:readdrnm"/>
  80. <Cell col="19" class="text_center" text="bind:apptdate"/>
  81. </Band>
  82. </Format>
  83. </Formats>
  84. </Grid>
  85. <Div id="grp_sea" taborder="2" position="absolute 1 1 1138 61" class="div_SA2">
  86. <Layouts>
  87. <Layout>
  88. <Static id="caption2" text="접수일자 :" class="search_name" position="absolute 5 8 76 25" anchor="default"/>
  89. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1028 7 1034 51" anchor="default"/>
  90. <Calendar id="ipt_acptfromdd" taborder="7" class="input_search" position="absolute 79 8 180 27" anchor="default"/>
  91. <Static id="caption19" text="~" class="search_no_b" position="absolute 188 10 200 27" anchor="default"/>
  92. <Calendar id="ipt_acpttodd" taborder="8" class="input_search" position="absolute 207 8 308 27" anchor="default" onkeyup="grp_sea_ipt_acpttodd_onkeyup"/>
  93. <Static id="caption3" text="판독의사 :" class="search_name" position="absolute 655 10 741 27" anchor="default"/>
  94. <Combo id="cmb_readid" taborder="9" innerdataset="ds_init_cmb_readid" codecolumn="userid" datacolumn="usernm" class="combo_search" position="absolute 746 9 860 28" anchor="default" onitemchanged="grp_sea_cmb_readid_onitemchanged"/>
  95. <Static id="caption4" text="진행상태 :" class="search_name" position="absolute 5 35 76 52" anchor="default"/>
  96. <Button id="btn_sea" taborder="10" text="조회" class="btn1" position="absolute 1061 18 1117 40" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
  97. <Combo id="cbo_ptnocd" taborder="12" innerdataset="ds_init_cbo_ptnocd" codecolumn="ptnocd" datacolumn="ptnonm" position="absolute 502 9 632 28" anchor="default"/>
  98. <Static id="caption5" text="병리번호 :" class="search_name" position="absolute 412 10 483 27" anchor="default"/>
  99. <Edit id="ipt_toyear" taborder="13" class="text_center" visible="false" position="absolute 347 8 374 27" anchor="default"/>
  100. <Edit id="ipt_fromyear" taborder="14" class="text_center" visible="false" position="absolute 314 8 341 27" anchor="default"/>
  101. <CheckBox id="chk_diagwait" taborder="15" position="absolute 935 8 1010 24" anchor="default" text="진단대기"/>
  102. <cp_checkboxList id="cp_checkboxList00" taborder="16" scrollbars="none" position="absolute 89 32 716 50" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
  103. </Layout>
  104. </Layouts>
  105. </Div>
  106. <Button id="btn_cls" taborder="3" text="닫기" class="btn4" position="absolute 1081 701 1137 723" onclick="btn_cls_onclick"/>
  107. <Button id="btn_excel" taborder="4" text="EXCEL저장" class="btn7" position="absolute 1 699 93 721" onclick="btn_excel_onclick"/>
  108. </Layout>
  109. </Layouts>
  110. <Objects>
  111. <Dataset id="ds_grd_ptnolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  112. <ColumnInfo>
  113. <Column id="instcd" type="STRING"/>
  114. <Column id="ptno" type="STRING"/>
  115. <Column id="dispptno" type="STRING"/>
  116. <Column id="relaptno" type="STRING"/>
  117. <Column id="disprelaptno" type="STRING"/>
  118. <Column id="pid" type="STRING"/>
  119. <Column id="patnm" type="STRING"/>
  120. <Column id="prcpgenrflag" type="STRING"/>
  121. <Column id="grosdrnm" type="STRING"/>
  122. <Column id="prcsstat" type="STRING"/>
  123. <Column id="orddeptabbr" type="STRING"/>
  124. <Column id="prcpdd" type="STRING"/>
  125. <Column id="fstrgstdt" type="STRING"/>
  126. <Column id="rsltrgstabbr" type="STRING"/>
  127. <Column id="acptdd" type="STRING"/>
  128. <Column id="readdd" type="STRING"/>
  129. <Column id="readdrid" type="STRING"/>
  130. <Column id="readdrnm" type="STRING"/>
  131. <Column id="apptdate" type="STRING"/>
  132. </ColumnInfo>
  133. </Dataset>
  134. <Dataset id="ds_init_cmb_readid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  135. <ColumnInfo>
  136. <Column id="usernm" type="STRING"/>
  137. <Column id="userid" type="STRING"/>
  138. </ColumnInfo>
  139. </Dataset>
  140. <Dataset id="ds_init_cbo_ptnocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  141. <ColumnInfo>
  142. <Column id="ptnonm" type="STRING"/>
  143. <Column id="ptnocd" type="STRING"/>
  144. </ColumnInfo>
  145. </Dataset>
  146. <Dataset id="ds_hospenvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  147. <ColumnInfo>
  148. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  149. <Column id="lendrtnterm" type="STRING" size="256" sumtext="대출반환기간"/>
  150. <Column id="recvqualmthdcd" type="STRING" size="256" sumtext="수신확인방법"/>
  151. <Column id="plgydeptcd" type="STRING" size="256" sumtext="병리과"/>
  152. <Column id="plgyteamcd" type="STRING" size="256" sumtext="병리팀"/>
  153. <Column id="doctjobgradcd" type="STRING" size="256" sumtext="병리의사직급코드"/>
  154. <Column id="teamjobgradcd" type="STRING" size="256" sumtext="레지던트직급코드"/>
  155. <Column id="csteeqmtip" type="STRING" size="256" sumtext="Cassette장비IP"/>
  156. <Column id="csteeqmtport" type="STRING" size="256" sumtext="Cassette장비Port"/>
  157. <Column id="slideqmtip" type="STRING" size="256" sumtext="슬라이드장비IP"/>
  158. <Column id="norcptacptyn" type="STRING" size="256" sumtext="외래미수납접수여부"/>
  159. <Column id="slidbceqmtip" type="STRING" size="256" sumtext="슬라이드(라벨지)장비IP"/>
  160. <Column id="acptreaddr" type="STRING" size="256" sumtext="접수시점판독의지정여부"/>
  161. <Column id="slidbceqmtip2" type="STRING" size="256" sumtext="슬라이드(라벨지)장비IP2"/>
  162. <Column id="slidbceqmtport2" type="STRING" size="256" sumtext="슬라이드(라벨지)장비Port2"/>
  163. <Column id="repttitl" type="STRING" size="256" sumtext="보고서제목"/>
  164. <Column id="repttitl2" type="STRING" size="256" sumtext="자문의뢰제목"/>
  165. <Column id="plgyrecroom1" type="STRING" size="256" sumtext="병리과기록실1"/>
  166. <Column id="plgyrecroom2" type="STRING" size="256" sumtext="병리과기록실2"/>
  167. <Column id="ptnoacptflag" type="STRING" size="256" sumtext="병리번호접수구분"/>
  168. <Column id="autoacptflagcd" type="STRING" size="256" sumtext="자동접수구분"/>
  169. </ColumnInfo>
  170. </Dataset>
  171. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  172. <ColumnInfo>
  173. <Column id="detlrefcrite" type="STRING" size="256"/>
  174. <Column id="userdeptcd" type="STRING" size="256"/>
  175. <Column id="prtndirect" type="STRING" size="256"/>
  176. </ColumnInfo>
  177. <Rows>
  178. <Row>
  179. <Col id="prtndirect">1</Col>
  180. </Row>
  181. </Rows>
  182. </Dataset>
  183. <Dataset id="ds_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  184. <ColumnInfo>
  185. <Column id="sysdd" type="STRING" size="256" sumtext="시스템일자"/>
  186. <Column id="systm" type="STRING" size="256" sumtext="시스템시간"/>
  187. </ColumnInfo>
  188. </Dataset>
  189. <Dataset id="ds_userinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  190. <ColumnInfo>
  191. <Column id="choi" type="STRING" size="256" sumtext="선택"/>
  192. <Column id="dutplceinstcd" type="STRING" size="256" sumtext="기관코드"/>
  193. <Column id="userid" type="STRING" size="256" sumtext="사용자ID"/>
  194. <Column id="usernm" type="STRING" size="256" sumtext="사용자명"/>
  195. <Column id="jobkindcd" type="STRING" size="256" sumtext="직종구분코드"/>
  196. <Column id="userabbr" type="STRING" size="256" sumtext="직종구분코드"/>
  197. <Column id="mpphonno" type="STRING" size="256" sumtext="직종구분코드"/>
  198. </ColumnInfo>
  199. </Dataset>
  200. <Dataset id="ds_hidden1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  201. <ColumnInfo>
  202. <Column id="acptfromdd" type="STRING" size="256"/>
  203. <Column id="acpttodd" type="STRING" size="256"/>
  204. <Column id="prcsstat" type="STRING" size="256"/>
  205. <Column id="readdrid" type="STRING" size="256"/>
  206. <Column id="userdeptcd" type="STRING" size="256"/>
  207. <Column id="diagwait" type="STRING" size="256"/>
  208. <Column id="ptno" type="STRING" size="256"/>
  209. </ColumnInfo>
  210. <Rows>
  211. <Row/>
  212. </Rows>
  213. </Dataset>
  214. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  215. <ColumnInfo>
  216. <Column id="ptnocode" type="STRING" size="256"/>
  217. <Column id="fromyear" type="STRING" size="256"/>
  218. <Column id="fromptno" type="STRING" size="256"/>
  219. <Column id="toyear" type="STRING" size="256"/>
  220. <Column id="toptno" type="STRING" size="256"/>
  221. </ColumnInfo>
  222. <Rows>
  223. <Row/>
  224. </Rows>
  225. </Dataset>
  226. <Dataset id="ds_init_L0025" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  227. </Objects>
  228. <Bind>
  229. <BindItem id="item0" compid="grp_sea.ipt_acptfromdd" propid="value" datasetid="ds_hidden1" columnid="acptfromdd"/>
  230. <BindItem id="item1" compid="grp_sea.ipt_acpttodd" propid="value" datasetid="ds_hidden1" columnid="acpttodd"/>
  231. <BindItem id="item2" compid="grp_sea.ipt_fromyear" propid="value" datasetid="ds_init" columnid="fromyear"/>
  232. <BindItem id="item3" compid="grp_sea.ipt_toyear" propid="value" datasetid="ds_init" columnid="toyear"/>
  233. <BindItem id="item4" compid="grp_sea.cbo_ptnocd" propid="value" datasetid="ds_init" columnid="ptnocode"/>
  234. <BindItem id="item5" compid="grp_sea.cmb_readid" propid="value" datasetid="ds_hidden1" columnid="readdrid"/>
  235. <BindItem id="item6" compid="grp_sea.chk_diagwait" propid="value" datasetid="ds_root_hidden" columnid="diagwait"/>
  236. </Bind>
  237. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  238. * System Name :
  239. * Job Name :
  240. * Creator :
  241. * Make Date : 2015-11-13
  242. * Description :
  243. *---------------------------------------------------------------------------------------
  244. * Modify Date Modifier Modify Description
  245. *---------------------------------------------------------------------------------------
  246. * 2015-11-13 Live Converter TF->XP
  247. *
  248. *---------------------------------------------------------------------------------------
  249. ****************************************************************************************/
  250. include "com_commonxp::comm_main.xjs";
  251. include "lis_commonxp::LPZ001.xjs";
  252. function SPLPR01000_oninit(obj:Form, e:InitEventInfo)
  253. {
  254. frmf_initForm(obj);
  255. }
  256. function SPLPR01000_onload(obj:Form, e:LoadEventInfo)
  257. {
  258. grdf_initGrid(grd_ptnolist);
  259. fExeInitialize();
  260. }
  261. //초기화
  262. function fExeInitialize()
  263. {
  264. var sCurDate = "";
  265. var iFlagCnt = 0;
  266. var iMaxRowCnt = 0;
  267. var sAcptFromDD = "";
  268. //-----------------------
  269. // 병원환경설정 정보 조회
  270. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}]);
  271. var oParam = {};
  272. oParam.id = "TRLPZ00101";
  273. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  274. oParam.method = "reqGetHospitalEnvironmentSetInfo";
  275. oParam.inds = "refData=ds_send";
  276. oParam.outds = "ds_hospenvinfo=hospenvinfo";
  277. oParam.async = false;
  278. //oParam.callback = "cf_TRLPZ00101";
  279. tranf_submit(oParam);
  280. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  281. ,{col : "refflagcd", val : "0"}]);
  282. var oParam = {};
  283. oParam.id = "TRLPZ00109";
  284. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  285. oParam.method = "reqGetPtNoCdList";
  286. oParam.inds = "refdata=ds_send";
  287. oParam.outds = "ds_init_cbo_ptnocd=rsltlist";
  288. oParam.async = false;
  289. //oParam.callback = "cf_TRLPZ00109";
  290. tranf_submit(oParam);
  291. //---------------------------------------------------------
  292. // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
  293. lpzfUserDeptCd(ds_hospenvinfo, ds_hidden);
  294. //----------------
  295. // 시스템일시 조회
  296. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}]);
  297. var oParam = {};
  298. oParam.id = "TRLPZ00102";
  299. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  300. oParam.method = "reqGetSystemDateTimeInformation";
  301. oParam.inds = "refData=ds_send";
  302. oParam.outds = "ds_sysdtinfo=sysdtinfo";
  303. oParam.async = false;
  304. //oParam.callback = "cf_TRLPZ00102";
  305. tranf_submit(oParam);
  306. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
  307. ,{col : "userdeptcd", val : ds_hidden.getColumn(0, "userdeptcd")}
  308. ,{col : "doctjobgradcd", val : ds_hospenvinfo.getColumn(0, "doctjobgradcd")}
  309. ,{col : "teamjobgradcd", val : ds_hospenvinfo.getColumn(0, "teamjobgradcd")}]);
  310. var oParam = {};
  311. oParam.id = "TRLPZ00105";
  312. oParam.service = "plgycomnusemngtapp.BaseInfoCode";
  313. oParam.method = "reqGetUserInfoList";
  314. oParam.inds = "refdata=ds_send";
  315. oParam.outds = "ds_init_cmb_readid=reflist";
  316. oParam.async = false;
  317. //oParam.callback = "cf_TRLPZ00105";
  318. tranf_submit(oParam);
  319. //---------------------------
  320. // 판독의사 목록에 "전체" 추가
  321. iMaxRowCnt = Number(ds_init_cmb_readid.rowcount) + 1;
  322. ds_init_cmb_readid.filter("jobkindcd == 1");
  323. var iMaxRow = ds_init_cmb_readid.insertRow(0);
  324. ds_init_cmb_readid.setColumn(iMaxRow,"userid","");
  325. ds_init_cmb_readid.setColumn(iMaxRow,"usernm","전체");
  326. ds_init_cmb_readid.setColumn(iMaxRow,"jobkindcd","");
  327. dsf_copyDs(ds_userinfolist, ds_init_cmb_readid);
  328. //--------------
  329. // 진행상태 호출
  330. var arrParam = [{dsNm: "ds_init_L0025", cdGrpId: "L0025"}];
  331. appf_getCodeList(arrParam);
  332. // 진행상태에 "전체"구분 추가
  333. iFlagCnt = ds_init_L0025.rowcount;
  334. iFlagCnt = Number(iFlagCnt) + 1;
  335. var iFlagCnt = ds_init_L0025.insertRow(iFlagCnt);
  336. ds_init_L0025.setColumn(iFlagCnt,"cdid","ZZZZ");
  337. ds_init_L0025.setColumn(iFlagCnt,"cdnm","전체");
  338. ds_init_L0025.deleteRow(1);
  339. var sProp = "col=5,cellspacing=4,vcellspacing=0,itemWidth=100,itemHeight=22,overflow='visible'";
  340. grp_sea.cp_checkboxList00.setInitComp(sProp, ds_init_L0025, "cdid", "cdnm", "fExeStatClick");
  341. var aData = new Array();
  342. aData[0] = "0";
  343. var aFalseData = new Array();
  344. grp_sea.cp_checkboxList00.setData(aData, aFalseData, false);
  345. // 필요없는 노드는 삭제
  346. //------------------------------------------------------------
  347. sCurDate = ds_sysdtinfo.getColumn(0, "sysdd");
  348. sAcptFromDD = sCurDate.toDate().getAddDate(-5,"D").getDateFormat();
  349. //------------
  350. // 초기값 설정
  351. ds_hidden1.setColumn(0, "acptfromdd", sAcptFromDD);
  352. ds_hidden1.setColumn(0, "acpttodd", ds_sysdtinfo.getColumn(0, "sysdd"));
  353. ds_hidden1.setColumn(0, "readdrid", "");
  354. ds_hidden1.setColumn(0, "diagwait", "");
  355. ds_init.setColumn(0, "ptnocode", "");
  356. ds_init.setColumn(0, "fromyear", sCurDate.substr(2,2));
  357. ds_init.setColumn(0, "toyear", sCurDate.substr(2,2));
  358. ds_init.setColumn(0, "fromptno", "");
  359. ds_init.setColumn(0, "toptno", "");
  360. if( !lpzfGetDoctorCheck(ds_hospenvinfo, sysf_getUserInfo("jobkindcd")))
  361. {
  362. //ds_hidden1.setColumn(0, "prcsstat", "0");
  363. grp_sea.cp_checkboxList00.setData(utlf_transNullToEmpty(ds_init_L0025.lookup("cdid", "0", "cdnm")).split("▨"), "", false);
  364. }
  365. else
  366. {
  367. ds_hidden1.setColumn(0, "prcsstat", "1");
  368. }
  369. }
  370. function fExePtNoDel()
  371. {
  372. var iFindNo = -1;
  373. // var objParentWin = window.parent;
  374. //var sPtNo = objParentWin.model.getValue("/root/hidden/ptno");
  375. var sPtNo = opener.frmf_getParameter("sPtNo");
  376. //--------------------------------------------------------
  377. //iFindNo = grd_ptnolist.findRow(sPtNo, 1, 2, false, false);
  378. iFindNo = ds_grd_ptnolist.findRow("ptno", sPtNo);
  379. trace("iFindNo = " + iFindNo);
  380. //-----------------
  381. if (iFindNo > -1)
  382. {
  383. //model.removeNodeset("/root/main/acptptno/acptptnolist["+iFindNo+"]");
  384. ds_grd_ptnolist.deleteSelectedRows(iFindNo);
  385. }
  386. }
  387. //접수 병리번호 목록조회 처리 함수
  388. function fGetAcptPtNoList()
  389. {
  390. var re = / /g; // i:1회실행, g:모두실행, gi:전역실행(대소문자 안가림)
  391. var sPrcsStat = grp_sea.cp_checkboxList00.getData();
  392. var sTemp = "";
  393. var sFromDD = ds_hidden1.getColumn(0, "acptfromdd");
  394. var sToDD = ds_hidden1.getColumn(0, "acpttodd");
  395. // Regular표현식을 사용하여 공백(" ")문자를 ','로 변환
  396. // sPrcsStat = "'" + sPrcsStat.replace(re, "','") + "'";
  397. trace("sPrcsStat="+sPrcsStat);
  398. if( !utlf_isNull(ds_init.getColumn(0, "ptnocode")))
  399. {
  400. if( utlf_isNull(ds_init.getColumn(0, "fromyear")))
  401. {
  402. ds_init.setColumn(0, "fromyear", sFromDD.substr(2,2));
  403. }
  404. else
  405. {
  406. sTemp = ds_init.getColumn(0, "fromyear");
  407. ds_init.setColumn(0, "fromyear", sTemp.getLeftPad(2, "0"));
  408. }
  409. if( utlf_isNull(ds_init.getColumn(0, "toyear")))
  410. {
  411. ds_init.setColumn(0, "toyear", sToDD.substr(2,2));
  412. }
  413. else
  414. {
  415. sTemp = ds_init.getColumn(0, "toyear");
  416. ds_init.setColumn(0, "toyear", sTemp.getLeftPad(2, "0"));
  417. }
  418. //------------------------------------------------
  419. if( utlf_isNull(ds_init.getColumn(0, "fromptno")))
  420. {
  421. ds_init.setColumn(0, "fromptno", "000000");
  422. }
  423. else
  424. {
  425. sTemp = ds_init.getColumn(0, "fromptno");
  426. ds_init.setColumn(0, "fromptno", sTemp.getLeftPad(6, "0"));
  427. }
  428. //----------------------------------------------
  429. if( utlf_isNull(ds_init.getColumn(0, "toptno")))
  430. {
  431. ds_init.setColumn(0, "toptno", "999999");
  432. }
  433. else
  434. {
  435. sTemp = ds_init.getColumn(0, "toptno");
  436. ds_init.setColumn(0, "toptno", sTemp.getLeftPad(6, "0"));
  437. }
  438. }
  439. sTemp = ds_init.getColumn(0, "ptnocode");
  440. dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")} // 기관코드
  441. ,{col : "acptfromdd", val : ds_hidden1.getColumn(0, "acptfromdd")} // 접수시작일자
  442. ,{col : "acpttodd", val : ds_hidden1.getColumn(0, "acpttodd")} // 접수종료일자
  443. ,{col : "readdrid", val : ds_hidden1.getColumn(0, "readdrid")} // 판독의사ID
  444. ,{col : "prcsstat", val : sPrcsStat} // 진행상태(0:접수, 2:예비결과, 3:최종결과, 4:수정결과)
  445. ,{col : "userdeptcd", val : ds_hidden.getColumn(0, "userdeptcd")}
  446. ,{col : "ptnocode", val : sTemp.replace("-", "")}
  447. ,{col : "fromyear", val : ds_init.getColumn(0, "fromyear")}
  448. ,{col : "fromptno", val : ds_init.getColumn(0, "fromptno")}
  449. ,{col : "toyear", val : ds_init.getColumn(0, "toyear")}
  450. ,{col : "toptno", val : ds_init.getColumn(0, "toptno")}
  451. ,{col : "diagwait", val : ds_hidden1.getColumn(0, "diagwait")}]); // 진단대기
  452. var oParam = {};
  453. oParam.id = "TRLPR01001";
  454. oParam.service = "plgyrsltmngtapp.TestRsltRgst";
  455. oParam.method = "reqGetAcptPtNoList";
  456. oParam.inds = "reqdata=ds_send";
  457. oParam.outds = "ds_grd_ptnolist=refrslt";
  458. oParam.async = false;
  459. //oParam.callback = "cf_TRLPR01001";
  460. tranf_submit(oParam);
  461. }
  462. //병리번호를 선택할 경우 처리 함수
  463. function grd_ptnolist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  464. {
  465. fExeChoiPtNo();
  466. }
  467. function fExeChoiPtNo()
  468. {
  469. var objParentWin = this.parent;
  470. if( utlf_isNull(objParentWin))
  471. {
  472. sysf_messageBox("병리번호 팝업창을 호출한 화면이 ", "I004");
  473. return false;
  474. }
  475. opener.ds_hidden1.setColumn(0, "ptno", ds_grd_ptnolist.getColumn(ds_grd_ptnolist.rowposition, "ptno"));
  476. opener.fGetPatInfo();
  477. frmf_setFocusOpener(); //부모창 focus
  478. }
  479. //닫기 버튼
  480. function btn_cls_onclick(obj:Button, e:ClickEventInfo)
  481. {
  482. this.close();
  483. }
  484. //엑셀저장
  485. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  486. {
  487. grdf_exportExcel(grd_ptnolist, "병리번호목록", "SheetName");
  488. }
  489. //조회 버튼
  490. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  491. {
  492. fGetAcptPtNoList();
  493. }
  494. function grp_sea_ipt_acpttodd_onkeyup(obj:Calendar, e:KeyEventInfo)
  495. {
  496. if(e.keycode == 13)
  497. {
  498. fGetAcptPtNoList();
  499. }
  500. }
  501. function fExeStatClick(chkVal)
  502. {
  503. var sFlagCd = String(grp_sea.cp_checkboxList00.getData()).replace(","," ");
  504. sFlagCd = sFlagCd.split(" ");
  505. //---------------------------------
  506. // 최종 선택구분이 전체일 경우 처리
  507. if(grp_sea.cp_checkboxList00.chk_4.value == "ZZZZ")
  508. {
  509. grp_sea.cp_checkboxList00.chk_0.value = "0";
  510. grp_sea.cp_checkboxList00.chk_1.value = "2";
  511. grp_sea.cp_checkboxList00.chk_2.value = "3";
  512. grp_sea.cp_checkboxList00.chk_3.value = "4";
  513. grp_sea.cp_checkboxList00.chk_4.value = "ZZZZ";
  514. }
  515. }]]></Script>
  516. </Form>
  517. </FDL>