SMMND05100_혈액투석적절도평가 내환자 Setting 등록.xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SMMND05100" position="absolute 0 0 380 754" titletext="인공신장실 내 환자 Setting" onload="SMMND05100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" position="absolute 3 0 363 13" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption6" class="tit_1" position="absolute 0 0 109 14" style="" text="내 환자 Setting" />
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="group2" scrollbars="autoboth" position="absolute 0 20 360 730" style="">
  15. <Layouts>
  16. <Layout>
  17. <Grid id="grd_mypatlist" binddataset="ds_main_mypatinfo_mypatlist" position="absolute 0 95 355 704" style="" oncellclick="group2_grd_mypatlist_oncellclick">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="20" />
  22. <Column size="120" />
  23. <Column size="100" />
  24. <Column size="70" />
  25. <Column size="0" />
  26. <Column size="0" />
  27. <Column size="0" />
  28. <Column size="0" />
  29. <Column size="0" />
  30. </Columns>
  31. <Rows>
  32. <Row size="25" band="head" />
  33. <Row size="25" />
  34. </Rows>
  35. <Band id="head">
  36. <Cell text="" />
  37. <Cell col="1" text="등록번호" />
  38. <Cell col="2" text="환자명" />
  39. <Cell col="3" text="S_A" />
  40. <Cell col="4" text="시작일자" />
  41. <Cell col="5" text="종료일자" />
  42. <Cell col="6" text="wardcd" />
  43. <Cell col="7" text="bfsetting" />
  44. <Cell col="8" text="hdsaqnflag" />
  45. </Band>
  46. <Band id="body">
  47. <Cell text="bind:mysetting" />
  48. <Cell col="1" text="bind:pid" />
  49. <Cell col="2" text="bind:hngnm" />
  50. <Cell col="3" text="bind:sexage" />
  51. <Cell col="4" text="bind:fromdt" />
  52. <Cell col="5" text="bind:todt" />
  53. <Cell col="6" text="bind:wardcd" />
  54. <Cell col="7" text="bind:bfsetting" />
  55. <Cell col="8" text="bind:hdsaqnflag" />
  56. </Band>
  57. </Format>
  58. </Formats>
  59. </Grid>
  60. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 87 357 90" style="" anchor="default" />
  61. <Static id="caption8" class="tit_2" position="absolute 5 72 175 85" style="" text="혈액투석 유지환자리스트" />
  62. <Button id="btn_save" class="btn2_letter2" position="absolute 315 65 357 84" style="" text="저장" onclick="group2_btn_save_onclick" />
  63. <Static id="caption1" class="cell_1" position="absolute 0 15 70 35" style="" text="사원번호" />
  64. <Static id="caption2" class="cell_1" position="absolute 179 15 249 38" style="" text="간호사명" />
  65. <Edit id="opt_empno" class="output_fix" position="absolute 73 16 175 35" style="" anchor="default" readonly="true" />
  66. <Edit id="opt_nursnm" class="output_fix" position="absolute 252 16 354 35" style="" anchor="default" readonly="true" />
  67. <Shape id="line2" class="line_1" linetype="horizontal" position="absolute 0 10 360 13" style="" anchor="default" />
  68. <Shape id="line3" class="line_3" linetype="horizontal" position="absolute 0 62 360 65" style="" anchor="default" />
  69. <Button id="btn_ref" class="btn2_letter2" position="absolute 269 65 311 84" style="" text="조회" onclick="group2_btn_ref_onclick" />
  70. <TextArea id="tar_settinginfo" visible="false" position="absolute 0 520 356 635" style="font:돋움체,13,bold;align: middle;background:#ffffcc ;" />
  71. <Edit id="inp_wardcd" visible="false" position="absolute 105 250 205 269" style="" anchor="default" />
  72. <Static id="caption3" class="cell_1" position="absolute 0 38 70 61" style="" text="유효기간" />
  73. <Static id="caption4" position="absolute 180 45 195 55" style="" text="~" />
  74. <Calendar id="ipt_fromdt" position="absolute 75 40 170 60" style="" anchor="default" />
  75. <Calendar id="ipt_todt" position="absolute 200 40 295 59" style="" anchor="default" />
  76. </Layout>
  77. </Layouts>
  78. </Div>
  79. </Layout>
  80. </Layouts>
  81. <Objects>
  82. <Dataset id="ds_init_ward" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  83. <ColumnInfo />
  84. </Dataset>
  85. <Dataset id="ds_init_ward_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  86. <ColumnInfo>
  87. <Column id="deptcd" type="STRING" size="256" />
  88. <Column id="depthngnm" type="STRING" size="256" />
  89. </ColumnInfo>
  90. <Rows>
  91. <Row>
  92. <Col id="deptcd"></Col>
  93. <Col id="depthngnm"></Col>
  94. </Row>
  95. </Rows>
  96. </Dataset>
  97. <Dataset id="ds_main_saveinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  98. <ColumnInfo>
  99. <Column id="message" type="STRING" size="256" />
  100. </ColumnInfo>
  101. <Rows>
  102. <Row>
  103. <Col id="message"></Col>
  104. </Row>
  105. </Rows>
  106. </Dataset>
  107. <Dataset id="ds_main_mypatinfo_mypatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  108. <ColumnInfo>
  109. <Column id="mysetting" type="STRING" size="256" />
  110. <Column id="roomcd" type="STRING" size="256" />
  111. <Column id="bedcd" type="STRING" size="256" />
  112. <Column id="patnm" type="STRING" size="256" />
  113. <Column id="sexage" type="STRING" size="256" />
  114. <Column id="orddeptnm" type="STRING" size="256" />
  115. <Column id="wardcd" type="STRING" size="256" />
  116. <Column id="pid" type="STRING" size="256" />
  117. <Column id="bfsetting" type="STRING" size="256" />
  118. <Column id="fromdt" type="STRING" size="256" />
  119. <Column id="todt" type="STRING" size="256" />
  120. <Column id="hdsaqnflag" type="STRING" size="256" />
  121. </ColumnInfo>
  122. <Rows>
  123. <Row>
  124. <Col id="mysetting"></Col>
  125. <Col id="roomcd"></Col>
  126. <Col id="bedcd"></Col>
  127. <Col id="patnm"></Col>
  128. <Col id="sexage"></Col>
  129. <Col id="orddeptnm"></Col>
  130. <Col id="wardcd"></Col>
  131. <Col id="pid"></Col>
  132. <Col id="bfsetting"></Col>
  133. <Col id="fromdt"></Col>
  134. <Col id="todt"></Col>
  135. <Col id="hdsaqnflag">H</Col>
  136. </Row>
  137. </Rows>
  138. </Dataset>
  139. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  140. <ColumnInfo />
  141. </Dataset>
  142. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  143. <ColumnInfo />
  144. </Dataset>
  145. <Dataset id="ds_main_mypatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  146. <ColumnInfo />
  147. </Dataset>
  148. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  149. <ColumnInfo>
  150. <Column id="send" type="STRING" size="256" />
  151. </ColumnInfo>
  152. <Rows>
  153. <Row>
  154. <Col id="send"></Col>
  155. </Row>
  156. </Rows>
  157. </Dataset>
  158. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  159. <ColumnInfo>
  160. <Column id="wardcd" type="STRING" size="256" />
  161. <Column id="userid" type="STRING" size="256" />
  162. <Column id="usernm" type="STRING" size="256" />
  163. <Column id="shiftflag" type="STRING" size="256" />
  164. <Column id="fromdt" type="STRING" size="256" />
  165. <Column id="todt" type="STRING" size="256" />
  166. <Column id="hdsaqnflag" type="STRING" size="256" />
  167. </ColumnInfo>
  168. <Rows>
  169. <Row>
  170. <Col id="wardcd"></Col>
  171. <Col id="userid"></Col>
  172. <Col id="usernm"></Col>
  173. <Col id="shiftflag">-</Col>
  174. <Col id="fromdt"></Col>
  175. <Col id="todt"></Col>
  176. <Col id="hdsaqnflag">H</Col>
  177. </Row>
  178. </Rows>
  179. </Dataset>
  180. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  181. <ColumnInfo>
  182. <Column id="hidden" type="STRING" size="256" />
  183. </ColumnInfo>
  184. </Dataset>
  185. <Dataset id="ds_main_settinginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  186. <ColumnInfo>
  187. <Column id="settingtime" type="STRING" size="256" />
  188. </ColumnInfo>
  189. <Rows>
  190. <Row>
  191. <Col id="settingtime"></Col>
  192. </Row>
  193. </Rows>
  194. </Dataset>
  195. </Objects>
  196. <Bind>
  197. <BindItem id="item0" compid="group2.opt_empno" propid="value" datasetid="ds_main_cond" columnid="userid" />
  198. <BindItem id="item1" compid="group2.opt_nursnm" propid="value" datasetid="ds_main_cond" columnid="usernm" />
  199. <BindItem id="item2" compid="group2.tar_settinginfo" propid="value" datasetid="ds_main_saveinfo" columnid="message" />
  200. <BindItem id="item3" compid="group2.inp_wardcd" propid="value" datasetid="ds_main_cond" columnid="wardcd" />
  201. <BindItem id="item4" compid="group2.ipt_fromdt" propid="value" datasetid="ds_main_cond" columnid="fromdt" />
  202. <BindItem id="item5" compid="group2.ipt_todt" propid="value" datasetid="ds_main_cond" columnid="todt" />
  203. </Bind>
  204. <Script type="xscript4.0"><![CDATA[function SMMND05100_onload(obj:Form, e:LoadEventInfo) {
  205. frmf_initForm(obj);
  206. //grdf_initGrid(grd_XXX);
  207. //grdf_setGridSort(grd_XXX);
  208. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  209. fInit();
  210. }
  211. include '../../.._com_commonweb_js_common.js'
  212. include '../../.._com_commonweb_js_dateHelper.js'
  213. include '../../.._com_commonweb_js_tfHelper.js'
  214. include '../../.._com_departmentcodeweb_js_ZSD001.js'
  215. include '../../.._emr_dialroomweb_js_SMMND05100.js'
  216. // header파일 중 SMMND05100.js 파일 시작/*
  217. 인공신장실 내환자세팅 (SMMND03300.xrw - JScript )
  218. - Version :
  219. 1) : Ver.1.00.01
  220. */
  221. /**
  222. * _group :
  223. * _ver : 2009.01.07
  224. * _by : dhkim
  225. * _---------------------------------------------------
  226. * _type : function
  227. * _access : public
  228. * _desc : 화면 초기화
  229. * _param :
  230. * _return :
  231. * _---------------------------------------------------
  232. */
  233. function fInit(){
  234. var instcd = sysf_getUserInfo("dutplceinstcd");
  235. group2.ipt_fromdt.value = utlf_getCurrentDate();
  236. group2.ipt_todt.value = utlf_getCurrentDate();
  237. group2.grd_mypatlist.fixedcellcheckbox(0, 0) = true;
  238. group2.grd_mypatlist.mergeCol(0) = false;
  239. group2.grd_mypatlist.mergeCol(2) = false;
  240. group2.grd_mypatlist.mergeCol(3) = false;
  241. group2.grd_mypatlist.mergeCol(4) = false;
  242. group2.grd_mypatlist.mergeCol(5) = false;
  243. group2.grd_mypatlist.mergeCol(6) = false;
  244. group2.grd_mypatlist.mergeCol(7) = false;
  245. group2.grd_mypatlist.mergeCol(8) = false;
  246. group2.grd_mypatlist.mergeCol(9) = false;
  247. group2.grd_mypatlist.mergeCol(10) = false;
  248. ds_main_mypatinfo_mypatlist.clearData();
  249. var pFlag = '-';
  250. ds_main_cond.setColumn( 0, "userid", sysf_getUserId());
  251. ds_main_cond.setColumn( 0, "usernm", sysf_getUserName());
  252. ds_main_cond.setColumn( 0, "wardcd", sysf_getUserInfo("dutplcecd"));
  253. ds_main_cond.setColumn( 0, "shiftflag", pFlag);
  254. //model.refresh();
  255. fGetPatList(pFlag);
  256. setRowStyle("group2.grd_mypatlist", "0", "true", "mysetting", "equal");
  257. }
  258. // 환자리스트 조회
  259. function fGetPatList(pFlag){
  260. var today = utlf_getCurrentDate();
  261. group2.grd_mypatlist.attribute("height") = "609";
  262. group2.tar_settinginfo.visible = false;
  263. group2.grd_mypatlist.rebuildStyle();
  264. ds_send.clearData();
  265. dsf_makeValue( ds_send, "wardcd", "string", ds_main_cond.getColumn(0, "wardcd"));
  266. dsf_makeValue( ds_send, "srchflag", "string", pFlag);
  267. dsf_makeValue( ds_send, "rsrvfromdd", "string", today);
  268. dsf_makeValue( ds_send, "rsrvtodd", "string", today);
  269. dsf_makeValue( ds_send, "shiftflag", "string", ds_main_cond.getColumn(0, "shiftflag"));
  270. //20130520 혈액투석적정서평가를 위한 파라메터 추가
  271. dsf_makeValue( ds_send, "hdsaqnflag", "string", ds_main_cond.getColumn(0, "hdsaqnflag"));
  272. // submit("TRMND05101");
  273. var oParam = {};
  274. oParam.id = "TRMND05101";
  275. oParam.service = "dialapp.DialPatMngt";
  276. oParam.method = "reqGetPatList";
  277. oParam.inds = "reqcond=ds_";
  278. oParam.outds = "ds_=mypatlist";
  279. oParam.async = false;
  280. oParam.callback = "cf_TRMND05101";
  281. tranf_submit(oParam);
  282. /*
  283. function cf_TRMND05101(sSvcId, nErrorCode, sErrorMsg) {
  284. if(nErrorCode < 0) return;
  285. }
  286. function cf_TRMND05101(sSvcId, nErrorCode, sErrorMsg) {
  287. arErrorCode.push(sSvcId, nErrorCode);
  288. }
  289. arErrorCode.pop("TRMND05101") > -1
  290. arErrorCode.pop("TRMND05101") < 0
  291. */
  292. group2.grd_mypatlist.rebuildStyle(0, 0, group2.grd_mypatlist.rows-1, group2.grd_mypatlist.cols-1);
  293. setRowStyle("group2.grd_mypatlist", "0", "true", "mysetting", "equal");
  294. }
  295. //그리드 온클릭이벤트
  296. function fOnclick(){
  297. if( group2.grd_mypatlist.col != 0 && isDataCell()) {
  298. if (group2.grd_mypatlist.mergeCol(group2.grd_mypatlist.col) == true) {
  299. var arrRows = group2.grd_mypatlist.mergeArea(group2.grd_mypatlist.row, group2.grd_mypatlist.col).split(",");
  300. var currentMysetting = ds_main_mypatinfo_mypatlist.getColumn(arrRows[0], "mysetting")
  301. if(currentMysetting == "true" ) {
  302. currentMysetting = "false";
  303. } else {
  304. currentMysetting = "true";
  305. }
  306. for (var i=parseInt(arrRows[0]); i<=parseInt(arrRows[2]); i++) {
  307. ds_main_mypatinfo.setColumn( i , "mysetting", currentMysetting);
  308. }
  309. } else {
  310. var currentMysetting = ds_main_mypatinfo_mypatlist.getColumn(group2.grd_mypatlist.selectedRow(0), "mysetting")
  311. if (currentMysetting == "true") {
  312. ds_main_mypatinfo.setColumn( 0, "mypatlist["+group2.grd_mypatlist.selectedRow(0)+"]_mysetting","false");
  313. } else {
  314. ds_main_mypatinfo.setColumn( 0, "mypatlist["+group2.grd_mypatlist.selectedRow(0)+"]_mysetting","true");
  315. }
  316. }
  317. }
  318. group2.grd_mypatlist.rebuildStyle(0, 0, group2.grd_mypatlist.rows-1, group2.grd_mypatlist.cols-1);
  319. setRowStyle("group2.grd_mypatlist", "0", "true", "mysetting", "equal");
  320. }
  321. //내환자저장
  322. function fSave(){
  323. ds_send.clearData();
  324. //20130523 kya 유효일자 세팅
  325. var fromdt = group2.ipt_fromdt.value + '000000';
  326. var todt = group2.ipt_todt.value + '235959';
  327. for(var i = 0; i<group2.grd_mypatlist.rows ; i++) {
  328. var currentMysetting = ds_main_mypatinfo_mypatlist.getColumn(i, "mysetting");
  329. //alert("todt =====" + currentMysetting);
  330. if( currentMysetting == "t" ) {
  331. ds_main_mypatinfo.setColumn( i , "fromdt", fromdt);
  332. ds_main_mypatinfo.setColumn( i , "todt", todt);
  333. }
  334. }
  335. //20130520 혈액투석적정서평가를 위한 파라메터 추가
  336. dsf_makeValue( ds_send, "mypatlist", "string", group2.grd_mypatlist.getUpdateDataAll("u"));
  337. if(group2.grd_mypatlist.rows > 1){
  338. // if (submit("TXMND05101") ) {
  339. var oParam = {};
  340. oParam.id = "TXMND05101";
  341. oParam.service = "dialapp.DialPatMngt";
  342. oParam.method = "reqSetMyPatList";
  343. oParam.inds = "reqlist=ds_";
  344. oParam.outds = "ds_=settinginfo";
  345. oParam.async = false;
  346. oParam.callback = "cf_TXMND05101";
  347. tranf_submit(oParam);
  348. /*
  349. function cf_TXMND05101(sSvcId, nErrorCode, sErrorMsg) {
  350. if(nErrorCode < 0) return;
  351. }
  352. function cf_TXMND05101(sSvcId, nErrorCode, sErrorMsg) {
  353. arErrorCode.push(sSvcId, nErrorCode);
  354. }
  355. arErrorCode.pop("TXMND05101") > -1
  356. arErrorCode.pop("TXMND05101") < 0
  357. */
  358. group2.grd_mypatlist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  359. fGetPatList("setting"); // 환자리스트 조회
  360. ds_main_saveinfo.setColumn( 0, "message", " " + ds_main_settinginfo.getColumn(0, "settingtime") + "\n ["+ sysf_getUserName() + "]간호사의 \n 내환자가 Setting 되었습니다.");
  361. group2.grd_mypatlist.attribute("height") = "405";
  362. group2.tar_settinginfo.visible = true;
  363. //group2.tar_settinginfo.refresh();
  364. }
  365. } else {
  366. sysf_messageBox("저장할 내역이 ", "I004")
  367. }
  368. }
  369. //병동선택변경시
  370. function fWardcdChanged(){
  371. ds_send.clearData();
  372. dsf_makeValue( ds_send, "wardcd", "string", ds_main_cond.getColumn(0, "wardcd"));
  373. // submit("TRMND03302");
  374. var oParam = {};
  375. oParam.id = "TRMND03302";
  376. oParam.service = "dialapp.DialPatMngt";
  377. oParam.method = "reqGetPatList";
  378. oParam.inds = "reqcond=ds_";
  379. oParam.outds = "ds_=mypatlist";
  380. oParam.async = false;
  381. oParam.callback = "cf_TRMND03302";
  382. tranf_submit(oParam);
  383. /*
  384. function cf_TRMND03302(sSvcId, nErrorCode, sErrorMsg) {
  385. if(nErrorCode < 0) return;
  386. }
  387. function cf_TRMND03302(sSvcId, nErrorCode, sErrorMsg) {
  388. arErrorCode.push(sSvcId, nErrorCode);
  389. }
  390. arErrorCode.pop("TRMND03302") > -1
  391. arErrorCode.pop("TRMND03302") < 0
  392. */
  393. group2.grd_mypatlist.rebuildStyle(0, 0, group2.grd_mypatlist.rows-1, group2.grd_mypatlist.cols-1);
  394. setRowStyle("group2.grd_mypatlist", "0", "true", "mysetting", "equal");
  395. }
  396. // header파일 중 SMMND05100.js 파일 끝
  397. function group2_grd_mypatlist_oncellclick(obj:Grid, e:GridClickEventInfo) {
  398. fOnclick();
  399. }
  400. function group2_btn_save_onclick(obj:Button, e:ClickEventInfo) {
  401. fSave();
  402. }
  403. function group2_btn_ref_onclick(obj:Button, e:ClickEventInfo) {
  404. fGetPatList(); // 환자리스트 조회
  405. }
  406. ]]></Script>
  407. </Form>
  408. </FDL>