SMMNO02900_환자설명안내문출력대상자조회.xfdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNO02900" position="absolute 0 0 1203 784" titletext="외래환자 설명, 안내문 출력" oninit="SMMNO02900_oninit" onload="SMMNO02900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 2 1195 27" id="group1">
  8. <Layouts>
  9. <Layout>
  10. <Static text="외래환자 설명, 안내문 출력" position="absolute 0 0 197 25" id="caption6" class="tit_1" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 757 1195 784" id="grp_btn" scrollbars="autoboth">
  15. <Layouts>
  16. <Layout>
  17. <Edit readonly="true" position="absolute 5 4 40 23" align="align:right middle;" id="opt_cnt"/>
  18. <Static text="건이 조회되었습니다" position="absolute 45 4 175 24" align="align:center middle;" id="caption10"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Div position="absolute 0 13 1195 755" id="group5" class="datagrid2" scrollbars="autoboth">
  23. <Layouts>
  24. <Layout>
  25. <Shape position="absolute 1 55 1195 61" linetype="horizontal" id="line1" class="line_10"/>
  26. <Grid position="absolute 1 60 1195 740" id="grd_OutRsrvPatList" class="datagrid2" binddataset="ds_grd_OutRsrvPatList" onrbuttondown="group5_grd_OutRsrvPatList_onrbuttondown" cellsizingtype="col">
  27. <Formats>
  28. <Format id="default">
  29. <Columns>
  30. <Column size="28"/>
  31. <Column size="79"/>
  32. <Column size="53"/>
  33. <Column size="77"/>
  34. <Column size="78"/>
  35. <Column size="41"/>
  36. <Column size="107"/>
  37. <Column size="53"/>
  38. <Column size="109"/>
  39. <Column size="100"/>
  40. <Column size="59"/>
  41. <Column size="52"/>
  42. <Column size="70"/>
  43. <Column size="25"/>
  44. <Column size="15"/>
  45. <Column size="16"/>
  46. <Column size="61"/>
  47. <Column size="82"/>
  48. <Column size="105"/>
  49. <Column size="106"/>
  50. <Column size="340"/>
  51. <Column size="0"/>
  52. <Column size="0"/>
  53. </Columns>
  54. <Rows>
  55. <Row size="31" band="head"/>
  56. <Row size="24"/>
  57. </Rows>
  58. <Band id="head">
  59. <Cell displaytype="checkbox" edittype="checkbox"/>
  60. <Cell col="1" text="진료일"/>
  61. <Cell col="2" text="예약&#10;시간"/>
  62. <Cell col="3" text="등록번호"/>
  63. <Cell col="4" text="환자명"/>
  64. <Cell col="5" text="S/A"/>
  65. <Cell col="6" text="주민번호"/>
  66. <Cell col="7" text="센터"/>
  67. <Cell col="8" text="진료과"/>
  68. <Cell col="9" text="하위부서"/>
  69. <Cell col="10" text="진료의"/>
  70. <Cell col="11" text="초진"/>
  71. <Cell col="12" text="예약&#10;구분"/>
  72. <Cell col="13" text="수납"/>
  73. <Cell col="14" colspan="2" text="재진&#10;챠트" taborder="undefined"/>
  74. <Cell col="16" text="기타&#10;구분"/>
  75. <Cell col="17" text="보험유형"/>
  76. <Cell col="18" text="전화번호1"/>
  77. <Cell col="19" text="전화번호2"/>
  78. <Cell col="20" text="주소"/>
  79. <Cell col="21" text="remfact"/>
  80. <Cell col="22" text="orddeptcd"/>
  81. </Band>
  82. <Band id="body">
  83. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="(chk == 'Y' || chk == '1')?1:0"/>
  84. <Cell col="1" displaytype="date" text="bind:orddd" calendardisplaynulltype="nulltext"/>
  85. <Cell col="2" displaytype="date" text="bind:ordtm" mask="HH:mm" calendardisplaynulltype="nulltext"/>
  86. <Cell col="3" text="bind:pid"/>
  87. <Cell col="4" text="bind:patnm"/>
  88. <Cell col="5" text="bind:sexage"/>
  89. <Cell col="6" text="bind:rrgstno"/>
  90. <Cell col="7" text="bind:centcdnm"/>
  91. <Cell col="8" text="bind:orddeptnm"/>
  92. <Cell col="9" text="bind:subdeptcdnm"/>
  93. <Cell col="10" text="bind:usernm"/>
  94. <Cell col="11" text="bind:fsexamflag"/>
  95. <Cell col="12" text="bind:rsrvflag"/>
  96. <Cell col="13" text="bind:calcyn"/>
  97. <Cell col="14" text="bind:chrtflag"/>
  98. <Cell col="15" text="bind:chrtflage"/>
  99. <Cell col="16" text="bind:req"/>
  100. <Cell col="17" text="bind:insukind"/>
  101. <Cell col="18" text="bind:hometel"/>
  102. <Cell col="19" text="bind:mpphontel"/>
  103. <Cell col="20" style="align:left;" text="bind:addr"/>
  104. <Cell col="21" text="bind:careacpt"/>
  105. <Cell col="22" text="bind:orddeptcd"/>
  106. </Band>
  107. </Format>
  108. </Formats>
  109. </Grid>
  110. <Div position="absolute 0 14 1195 49" align="align:center top;" id="grp_sea" class="div_SA">
  111. <Layouts>
  112. <Layout>
  113. <Static text="진료일자 :" position="absolute 16 10 92 27" id="caption3" class="search_name" anchor="default"/>
  114. <Static text="진료과 :" position="absolute 246 10 305 27" id="caption2" class="search_name" anchor="default"/>
  115. <Static text="진료의 :" position="absolute 531 10 590 27" id="caption4" class="search_name" anchor="default"/>
  116. <Button position="absolute 1113 7 1169 29" id="button4" class="btn6" taborder="9" text="출력" anchor="default" onclick="group5_grp_sea_button4_onclick"/>
  117. <Combo position="absolute 595 9 760 28" id="cmb_orddr" class="combo_s_essential" enable="false" taborder="4" innerdataset="ds_init_cmb_orddr" datacolumn="userdepthngnm" codecolumn="userid" anchor="default" onitemchanged="group5_grp_sea_cmb_orddr_onitemchanged"/>
  118. <Combo position="absolute 310 9 465 28" id="cmb_orddept" class="combo_s_essential" taborder="3" innerdataset="ds_init_cmb_orddept" datacolumn="depthngnm" codecolumn="deptcd" anchor="default" onitemchanged="group5_grp_sea_cmb_orddept_onitemchanged"/>
  119. <Button position="absolute 1054 7 1110 29" id="btn_ref" class="btn1" taborder="8" text="조회" anchor="default" onclick="group5_grp_sea_btn_ref_onclick"/>
  120. <Calendar position="absolute 95 9 195 28" id="ipt_orddd" class="input_s_essential" taborder="1" anchor="default" onchanged="group5_grp_sea_ipt_orddd_onchanged"/>
  121. <Shape position="absolute 1037 6 1043 28" linetype="vertical" id="line11" class="line_4" anchor="default"/>
  122. </Layout>
  123. </Layouts>
  124. </Div>
  125. </Layout>
  126. </Layouts>
  127. </Div>
  128. <PopupMenu id="PopupMenu00" position="absolute 1249 41 1338 67" idcolumn="idcolumn" captioncolumn="captioncolumn" levelcolumn="levelcolumn" enablecolumn="enablecolumn" iconcolumn="iconcolumn" checkboxcolumn="checkboxcolumn" hotkeycolumn="hotkeycolumn" userdatacolumn="userdatacolumn" onmenuclick="PopupMenu00_onmenuclick">
  129. <Dataset id="innerdataset">
  130. <ColumnInfo>
  131. <Column id="idcolumn" size="256"/>
  132. <Column id="captioncolumn" size="256"/>
  133. <Column id="levelcolumn" size="256"/>
  134. <Column id="enablecolumn" size="256"/>
  135. <Column id="iconcolumn" size="256"/>
  136. <Column id="checkboxcolumn" size="256"/>
  137. <Column id="hotkeycolumn" size="256"/>
  138. <Column id="userdatacolumn" size="256"/>
  139. </ColumnInfo>
  140. <Rows>
  141. <Row>
  142. <Col id="idcolumn">fPatMemo</Col>
  143. <Col id="captioncolumn">환자메모</Col>
  144. <Col id="levelcolumn"/>
  145. <Col id="enablecolumn"/>
  146. <Col id="iconcolumn"/>
  147. <Col id="checkboxcolumn"/>
  148. <Col id="hotkeycolumn"/>
  149. <Col id="userdatacolumn"/>
  150. </Row>
  151. </Rows>
  152. </Dataset>
  153. </PopupMenu>
  154. </Layout>
  155. </Layouts>
  156. <Objects>
  157. <Dataset id="ds_grd_OutRsrvPatList" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="chk" type="STRING"/>
  160. <Column id="orddd" type="STRING"/>
  161. <Column id="ordtm" type="STRING"/>
  162. <Column id="pid" type="STRING"/>
  163. <Column id="patnm" type="STRING"/>
  164. <Column id="sexage" type="STRING"/>
  165. <Column id="rrgstno" type="STRING"/>
  166. <Column id="centcdnm" type="STRING"/>
  167. <Column id="orddeptnm" type="STRING"/>
  168. <Column id="subdeptcdnm" type="STRING"/>
  169. <Column id="usernm" type="STRING"/>
  170. <Column id="fsexamflag" type="STRING"/>
  171. <Column id="rsrvflag" type="STRING"/>
  172. <Column id="calcyn" type="STRING"/>
  173. <Column id="chrtflag" type="STRING"/>
  174. <Column id="chrtflage" type="STRING"/>
  175. <Column id="req" type="STRING"/>
  176. <Column id="insukind" type="STRING"/>
  177. <Column id="hometel" type="STRING"/>
  178. <Column id="mpphontel" type="STRING"/>
  179. <Column id="addr" type="STRING"/>
  180. <Column id="careacpt" type="STRING"/>
  181. <Column id="orddeptcd" type="STRING"/>
  182. </ColumnInfo>
  183. </Dataset>
  184. <Dataset id="ds_init_cmb_orddr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  185. <ColumnInfo>
  186. <Column id="userdepthngnm" type="STRING"/>
  187. <Column id="userid" type="STRING"/>
  188. </ColumnInfo>
  189. </Dataset>
  190. <Dataset id="ds_init_cmb_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  191. <ColumnInfo>
  192. <Column id="depthngnm" type="STRING"/>
  193. <Column id="deptcd" type="STRING"/>
  194. </ColumnInfo>
  195. </Dataset>
  196. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  197. <ColumnInfo>
  198. <Column id="orddd" type="STRING" size="256"/>
  199. <Column id="orddeptcd" type="STRING" size="256"/>
  200. <Column id="orddr" type="STRING" size="256"/>
  201. <Column id="pid" type="STRING" size="256"/>
  202. <Column id="patnm" type="STRING" size="256"/>
  203. <Column id="rsrvflag7" type="STRING" size="256"/>
  204. <Column id="nursacptyn" type="STRING" size="256"/>
  205. <Column id="prntusge" type="STRING" size="256"/>
  206. <Column id="prcpspecflag" type="STRING" size="256"/>
  207. <Column id="orddeptnm" type="STRING" size="256"/>
  208. <Column id="orddrnm" type="STRING" size="256"/>
  209. <Column id="cnt" type="STRING" size="256"/>
  210. <Column id="ordclsdeptflag" type="STRING" size="256"/>
  211. <Column id="supdeptcd" type="STRING" size="256"/>
  212. <Column id="gettdayacptyn" type="STRING" size="256"/>
  213. <Column id="chktdayacptyn" type="STRING" size="256"/>
  214. <Column id="guidedocuyn" type="STRING" size="256"/>
  215. </ColumnInfo>
  216. <Rows>
  217. <Row>
  218. <Col id="orddd"/>
  219. <Col id="orddeptcd"/>
  220. <Col id="orddr"/>
  221. <Col id="pid"/>
  222. <Col id="patnm"/>
  223. <Col id="rsrvflag7">Y</Col>
  224. <Col id="nursacptyn">Y</Col>
  225. <Col id="prntusge"/>
  226. <Col id="prcpspecflag">Y</Col>
  227. <Col id="orddeptnm"/>
  228. <Col id="orddrnm"/>
  229. <Col id="cnt">0</Col>
  230. <Col id="ordclsdeptflag"/>
  231. <Col id="supdeptcd"/>
  232. <Col id="gettdayacptyn">N</Col>
  233. <Col id="chktdayacptyn">N</Col>
  234. <Col id="guidedocuyn">Y</Col>
  235. </Row>
  236. </Rows>
  237. </Dataset>
  238. </Objects>
  239. <Bind>
  240. <BindItem id="item0" compid="group5.grp_sea.ipt_orddd" propid="value" datasetid="ds_cond" columnid="orddd"/>
  241. <BindItem id="item1" compid="group5.grp_sea.cmb_orddept" propid="value" datasetid="ds_cond" columnid="orddeptcd"/>
  242. <BindItem id="item2" compid="group5.grp_sea.cmb_orddr" propid="value" datasetid="ds_cond" columnid="orddr"/>
  243. <BindItem id="item3" compid="grp_btn.opt_cnt" propid="value" datasetid="ds_cond" columnid="cnt"/>
  244. </Bind>
  245. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  246. * System Name :
  247. * Job Name :
  248. * Creator :
  249. * Make Date : 2015-11-13
  250. * Description :
  251. *---------------------------------------------------------------------------------------
  252. * Modify Date Modifier Modify Description
  253. *---------------------------------------------------------------------------------------
  254. * 2015-11-13 Live Converter TF->XP
  255. *
  256. *---------------------------------------------------------------------------------------
  257. ****************************************************************************************/
  258. include "com_commonxp::comm_main.xjs";
  259. include "com_departmentcodexp::ZSD001.xjs";
  260. include "emr_carecomxp::CareCom.xjs";
  261. include "emr_prcpmngtxp::MMOCommon.xjs";
  262. var uijeongbuinstcd="", sunggainstcd="", vincentinstcd=""; // 의정부성모,부천성가, 성빈센트병원기관코드_20090606
  263. var tdayAcptYN = "N"; // 외래진료예약 시 당일접수환자포함 조회 병원 (2009.06.23 JJE)
  264. function fInitialize(){
  265. grdf_initGrid(group5.grd_OutRsrvPatList);
  266. ds_grd_OutRsrvPatList.clearData();
  267. var instcd = sysf_getUserInfo("dutplceinstcd");
  268. var standard_yn = "rcptuseyn";
  269. var ord_deptflag = 'X';
  270. //var rslt_ref = "/root/init/orddept";
  271. var sort_field = "depthngnm";
  272. var sort_method = "asc";
  273. var dt = utlf_getCurrentDate();
  274. //오늘 날짜로 초기화 하는 부분.(진료일자를 default로 오늘 날짜로 선택함)
  275. ds_cond.setColumn(0,"orddd", dt);
  276. // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
  277. zsdfGetCareOutOrderDepartmentList(instcd, "ds_init_cmb_orddept", dt);
  278. dsf_addDsItem( ds_init_cmb_orddept, "deptcd","depthngnm", "전체진료과", "0000000000", "above");
  279. //model.resetInstanceNode("/root/main/cond/orddept");
  280. // 공통코드 스크립트 호출
  281. var arrParam = [{dsNm: "ds_init_comcd", cdGrpId: "Z0008"}
  282. ]
  283. appf_getCodeList(arrParam);
  284. //zbcfGetCodeList( new Array("Z0008"), new Array("/root/init/comcd"));
  285. var dutplcecd = sysf_getUserInfo("dutplcecd"); // 근무지부서코드
  286. var suporddeptcd = sysf_getUserInfo("ordsupdeptcd");
  287. if (!utlf_isNull(dutplcecd)) {
  288. ds_cond.setColumn(0,"orddeptcd", dutplcecd); // 근무지부서코드
  289. fDeptDoctSearch(); // 의사리스트조회
  290. }
  291. }
  292. /**
  293. * @group :
  294. * @ver : 2007.09.17
  295. * @by : 문창곤
  296. * @---------------------------------------------------
  297. * @type : function
  298. * @access : public
  299. * @desc : 진료과의 의사 조회
  300. * @param :
  301. * @return :
  302. * @---------------------------------------------------
  303. */
  304. function fDeptDoctSearch(typegubn){
  305. group5.grp_sea.cmb_orddr.enable= true;
  306. ds_grd_OutRsrvPatList.clearData();
  307. var orddd = ds_cond.getColumn(0,"orddd");
  308. var orddeptcd = ds_cond.getColumn(0,"orddeptcd");
  309. var sordclsdeptflag = ds_init_cmb_orddept.lookup("deptcd",orddeptcd ,"ordclsdeptflag"); // 센터/대표/분과/서브 구분
  310. var ssupdeptcd = ds_init_cmb_orddept.lookup("deptcd",orddeptcd ,"supdeptcd"); // 상위부서코드
  311. var sorddeptkind = ds_init_cmb_orddept.lookup("deptcd",orddeptcd ,"orddeptkind"); // 센터/대표 구분
  312. var sorddeptflag = "";
  313. if (sorddeptkind == "C") { // 센터이면
  314. sorddeptflag = "C";
  315. } else { // 그외에 기타과
  316. sorddeptflag = "etc";
  317. }
  318. ds_cond.setColumn(0,"ordclsdeptflag",sorddeptflag);
  319. var ordclsdeptflag = sorddeptflag;
  320. ds_cond.setColumn(0,"supdeptcd",ssupdeptcd);
  321. var supdeptcd = ssupdeptcd;
  322. dsf_createDsRow("ds_temp", [{col: "orddeptcd", val:orddeptcd }
  323. ,{col: "orddd", val:orddd }
  324. ,{col: "ordclsdeptflag", val:ordclsdeptflag }
  325. ,{col: "supdeptcd", val:supdeptcd }
  326. ]);
  327. var oParam = {};
  328. oParam.id = "TRMNO00104";
  329. oParam.service = "outcareapp.OutCareMngt";
  330. oParam.method = "reqGetDrId";
  331. oParam.inds = "reqdrid=ds_temp";
  332. oParam.outds = "ds_init_cmb_orddr=orddr";
  333. oParam.async = false;
  334. oParam.callback = "cf_TRMNO00104";
  335. tranf_submit(oParam);
  336. if(ds_init_cmb_orddr.rowcount > 0){
  337. // for(var i = 0; i < group5.grd_OutRsrvPatList.getCellCount("Head");i++) {
  338. // ds_grd_OutRsrvPatList.keystring="S:"+ lf_getBindCellName(group5.grd_OutRsrvPatList,i);
  339. // }
  340. //addComboInstance("/root/init/orddr", "userid^usernm", "00000000^전체의사", "orddr"); //진료의콤보 전체추가
  341. //addComboInstance("/root/init/orddr", "userid^userdepthngnm", "00000000^전체의사", "orddr"); //진료의콤보 전체추가
  342. dsf_addDsItem( ds_init_cmb_orddr, "userid", "userdepthngnm", "전체의사", "00000000", "above");
  343. group5.grp_sea.cmb_orddr.index = 1;
  344. } else {
  345. //addComboInstance("/root/init/orddr", "userid^usernm", "00000000^전체의사", "orddr"); //진료의콤보 전체추가
  346. dsf_addDsItem( ds_init_cmb_orddr, "userid", "userdepthngnm", "전체의사","00000000", "above");
  347. group5.grp_sea.cmb_orddr.index = 0;
  348. }
  349. ds_cond.setColumn(0,"orddeptnm", group5.grp_sea.cmb_orddept.text);
  350. }
  351. function cf_TRMNO00104(sSvcId, nErrorCode, sErrorMsg) {
  352. if(nErrorCode < 0) return;
  353. }
  354. /**
  355. * @group :
  356. * @ver : 2009.07.30
  357. * @by : 성미연
  358. * @---------------------------------------------------
  359. * @type : function
  360. * @access : public
  361. * @desc : 환자설명, 안내문출력 환자리스트 조회
  362. * @param :
  363. * @return :
  364. * @---------------------------------------------------
  365. */
  366. function fBtnRefClicked(){
  367. ds_grd_OutRsrvPatList.clearData();
  368. var sorddept = ds_cond.getColumn(0,"orddeptcd");
  369. var sorddr = ds_cond.getColumn(0,"orddr");
  370. var rsrvflag7 = ds_cond.getColumn(0,"rsrvflag7"); // 기타포함
  371. var sOrdDD = ds_cond.getColumn(0,"orddd");
  372. if(utlf_isNull(group5.grp_sea.cmb_orddept.value)){
  373. sysf_messageBox("진료과를 선택하지 ","E007");
  374. return;
  375. }
  376. //진료의 확인추가(진료의선택하지않아도 전체의사조회됨)-20090910-kys
  377. if(utlf_isNull(group5.grp_sea.cmb_orddr.value)) {
  378. sysf_messageBox("진료의를 선택하지 ","E007");
  379. return;
  380. }
  381. dsf_createDs("ds_send_req");
  382. dsf_copyDs(ds_send_req,ds_cond,"replace");
  383. dsf_makeValue(ds_send_req,"ordfromdd", "string",sOrdDD);
  384. dsf_makeValue(ds_send_req,"ordtodd","string", sOrdDD);
  385. var oParam = {};
  386. oParam.id = "TRMNO01801";
  387. oParam.service = "outcareapp.OutCareMngt";
  388. oParam.method = "reqGetOutRsrvPatList";
  389. oParam.inds = "req=ds_send_req";
  390. oParam.outds = "ds_grd_OutRsrvPatList=outrsrvpatinfo";
  391. oParam.async = false;
  392. oParam.callback = "cf_TRMNO01801";
  393. tranf_submit(oParam);
  394. ds_cond.setColumn(0,"orddrnm",group5.grp_sea.cmb_orddr.text);
  395. }
  396. function cf_TRMNO01801(sScvId, nErrorCode, sErrorMsg){
  397. if(nErrorCode == 0){//성공하였을때
  398. ds_cond.setColumn(0,"cnt",ds_grd_OutRsrvPatList.rowcount);
  399. group5.grd_OutRsrvPatList.setCellProperty("head",0,"text","1");
  400. for(var i = 0; i < ds_grd_OutRsrvPatList.rowcount; i++){
  401. //화면 로딩후 바로 출력버튼 클릭시 선택된내역이 없다는 창이 뜨는 오류로 수정함-20090928-kys(true->Y)
  402. ds_grd_OutRsrvPatList.setColumn(i,"chk", "Y");
  403. }
  404. }else{
  405. sysf_messageBox(sErrorMsg, "E");
  406. }
  407. }
  408. /**
  409. * @group :
  410. * @ver : 2009.07.30
  411. * @by : 성미연
  412. * @---------------------------------------------------
  413. * @type : function
  414. * @access : public
  415. * @desc : 외래환자설명, 안내문 출력
  416. * @param :
  417. * @param :
  418. * @return :
  419. * @---------------------------------------------------
  420. */
  421. function fClickPrint(){
  422. if (ds_grd_OutRsrvPatList.findRow("chk","1") == -1){
  423. sysf_messageBox("선택된 내역이 없습니다.", "I");
  424. return;
  425. }
  426. //var printYN = "N";
  427. for(var i = 0; i < ds_grd_OutRsrvPatList.rowcount;i++) {
  428. var chk = ds_grd_OutRsrvPatList.getColumn(i,"chk");
  429. var pid = ds_grd_OutRsrvPatList.getColumn(i,"pid");
  430. var orddeptcd = ds_grd_OutRsrvPatList.getColumn(i,"orddeptcd");
  431. var SRow = ds_grd_OutRsrvPatList.findRow("pid",pid) ;
  432. var SChk = ds_grd_OutRsrvPatList.getColumn(SRow,"chk");
  433. var SOrddeptcd = ds_grd_OutRsrvPatList.getColumn(SRow,"orddeptcd");
  434. if(chk == "1"){
  435. if(SChk == "1" && orddeptcd == SOrddeptcd && SRow != "-1" && SRow < i){ //다른유형으로 접수됐을 경우 한번만 출력되도록 함
  436. continue;
  437. }else{
  438. // model.removenode("/root/temp/printdata");
  439. // //send 재구성
  440. // model.makeValue("/root/temp/printdata","");
  441. // model.copyNode("/root/temp/printdata", "/root/main/outrsrvpatlist/outrsrvpatinfo[" + i + "]");
  442. //
  443. // exeReportPreview("RPMNO02900", "XMLSTR", "", "", "true", "", "", "", "", "true"); //미리보기 뜨지 않음
  444. // //exeReportPreview("RPMNO02900", "XMLSTR", "", "", "", "", "", "", "", "true");
  445. dsf_createDs("ds_temp_printdata");
  446. dsf_copyColInfo(ds_temp_printdata,ds_grd_OutRsrvPatList);
  447. ds_temp_printdata.copyRow(ds_temp_printdata.addRow(),ds_grd_OutRsrvPatList,i);
  448. var rptname = "RPMNO02900";
  449. var option = "open=1;save=1;directprint=0;print=1;zoom=0;"; //미리보기 옵션
  450. obj.xml_data_XML1 = rptf_getXMLString(ds_temp_printdata, "/root/temp/printdata");
  451. rptf_exeReportPreview30([rptname], [obj], option);
  452. }
  453. ds_grd_OutRsrvPatList.setColumn(i,"chk","0");
  454. }
  455. }
  456. }
  457. function fPatMemo() {
  458. var pid = ds_grd_OutRsrvPatList.getColumn(ds_grd_OutRsrvPatList.rowposition,"pid");
  459. var hngnm = ds_grd_OutRsrvPatList.getColumn(ds_grd_OutRsrvPatList.rowposition,"patnm");
  460. var orddeptcd = ds_grd_OutRsrvPatList.getColumn(ds_grd_OutRsrvPatList.rowposition,"orddeptcd");
  461. frmf_setParameter("SPMNO02300_PARM", pid + "▦" + hngnm + "▦" + orddeptcd);
  462. frmf_modal("SPMNO02300","SPMNO02300", "","", "", "", "", "", "", "", "", "", "M");
  463. }
  464. function SMMNO02900_oninit(obj:Form, e:InitEventInfo)
  465. {
  466. frmf_initForm(obj);
  467. }
  468. function SMMNO02900_onload(obj:Form, e:LoadEventInfo)
  469. {
  470. fInitialize();
  471. }
  472. function group5_grd_OutRsrvPatList_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  473. {
  474. if(e.row < 0 || e.col < 0) return;
  475. obj.setFocus();
  476. grdf_setSelectedCell(obj, e);
  477. obj.oncellclick.fireEvent(obj, new GridClickEventInfo());
  478. PopupMenu00.trackPopup(e.screenX,e.screenY);
  479. }
  480. function group5_grp_sea_button4_onclick(obj:Button, e:ClickEventInfo)
  481. {
  482. fClickPrint();
  483. }
  484. function group5_grp_sea_cmb_orddr_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  485. {
  486. fBtnRefClicked();
  487. }
  488. function group5_grp_sea_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  489. {
  490. obj.updateToDataset();
  491. fDeptDoctSearch();
  492. }
  493. function group5_grp_sea_btn_ref_onclick(obj:Button, e:ClickEventInfo)
  494. {
  495. fBtnRefClicked();
  496. }
  497. function group5_grp_sea_ipt_orddd_onchanged(obj:Calendar, e:ChangeEventInfo)
  498. {
  499. fDeptDoctSearch();
  500. }
  501. function PopupMenu00_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  502. {
  503. eval(e.id + "()");
  504. }
  505. ]]></Script>
  506. </Form>
  507. </FDL>