SMAYA00400_담당자별병동관리.xrw 104 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>담당자별 병동관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cond>
  11. <refdeptflag/>
  12. <refconslrid/>
  13. <refchrgdd/>
  14. </cond>
  15. <cond_conslrlist>
  16. <conslrlistinfo>
  17. <conslrid>A</conslrid>
  18. <conslrnm>전체</conslrnm>
  19. <mpphontel/>
  20. <depttel/>
  21. </conslrlistinfo>
  22. </cond_conslrlist>
  23. <conslrlist>
  24. <conslrlistinfo>
  25. <conslrid/>
  26. <conslrnm/>
  27. <mpphontel/>
  28. <depttel/>
  29. </conslrlistinfo>
  30. </conslrlist>
  31. <deptlist>
  32. <deptlistinfo>
  33. <deptflagnm/>
  34. <chrgdeptnm/>
  35. <chrgroomnm/>
  36. <deptflagcd/>
  37. <chrgdeptcd/>
  38. <chrgroomcd/>
  39. </deptlistinfo>
  40. </deptlist>
  41. <deptlist_tree>
  42. <deptlist_treeinfo>
  43. <deptcd/>
  44. <roomcd/>
  45. <deptnm/>
  46. <depth/>
  47. </deptlist_treeinfo>
  48. </deptlist_tree>
  49. <choideptlist>
  50. <choideptlistinfo>
  51. <deptflagcd/>
  52. <chrgdeptnm/>
  53. <chrgstartroomnm/>
  54. <chrgendroomnm/>
  55. <chrgfromdd/>
  56. <chrgtodd/>
  57. <conslrid/>
  58. <chrgdeptcd/>
  59. <chrgstartroomcd/>
  60. <chrgendroomcd/>
  61. <seqno/>
  62. <chrgfromdd_b/>
  63. </choideptlistinfo>
  64. <choiroomlistinfo>
  65. <conslrid/>
  66. <chrgdeptcd/>
  67. <chrgdeptnm/>
  68. <chrgfromdd/>
  69. <chrgtodd/>
  70. <chrgstartroomcd/>
  71. <chrgroomcd/>
  72. <seqno/>
  73. <chrgfromdd_b/>
  74. </choiroomlistinfo>
  75. </choideptlist>
  76. <chrgdeptlist>
  77. <chrgdeptlistinfo>
  78. <deptflagcd/>
  79. <conslrnm/>
  80. <chrgdeptnm/>
  81. <chrgstartroomnm/>
  82. <chrgendroomnm/>
  83. <chrgfromdd/>
  84. <chrgtodd/>
  85. <conslrid/>
  86. <chrgdeptcd/>
  87. <chrgstartroomcd/>
  88. <chrgendroomcd/>
  89. <seqno/>
  90. <status/>
  91. </chrgdeptlistinfo>
  92. </chrgdeptlist>
  93. <roomrgst>
  94. <chrgdeptcd/>
  95. <chrgstartroomcd/>
  96. <chrgendroomcd/>
  97. <chrgstartroomcd_b/>
  98. <chrgendroomcd_b/>
  99. </roomrgst>
  100. </main>
  101. <send>
  102. <reqdata/>
  103. <savedata/>
  104. </send>
  105. <init>
  106. <comcodelist>
  107. <deptflag_cmblist/>
  108. <deptflag_all_cmblist>
  109. <A0027>
  110. <cdid>A</cdid>
  111. <cdnm>전체</cdnm>
  112. </A0027>
  113. </deptflag_all_cmblist>
  114. </comcodelist>
  115. </init>
  116. <hidden>
  117. </hidden>
  118. <temp>
  119. <deptlist_tree>
  120. <treeinfo>
  121. <deptcd/>
  122. <roomcd/>
  123. <deptnm/>
  124. <depth/>
  125. </treeinfo>
  126. </deptlist_tree>
  127. </temp>
  128. </root>
  129. </instance>
  130. <script type="javascript" ev:event="xforms-ready">
  131. <![CDATA[
  132. fInit();
  133. ]]>
  134. </script>
  135. <submission id="TRAYA00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/conslrlist"/>
  136. <submission id="TRAYA00402" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/deptlist"/>
  137. <submission id="TRAYA00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/choideptlist"/>
  138. <submission id="TRAYA00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/chrgdeptlist"/>
  139. <submission id="TRAYA00405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/errmsg"/>
  140. <submission id="TXAYA00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/choideptlist"/>
  141. <submission id="TXAYA00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/chrgdeptlist"/>
  142. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  143. </model>
  144. <script type="javascript">
  145. <![CDATA[
  146. //화면 오픈시
  147. function fInit() {
  148. //그리드 초기화
  149. model.removeNodeset("/root/main/conslrlist/conslrlistinfo");
  150. model.removeNodeset("/root/main/deptlist/deptlistinfo");
  151. model.removeNodeset("/root/main/choideptlist/choideptlistinfo");
  152. model.removeNodeset("/root/main/choideptlist/choiroomlistinfo");
  153. model.removeNodeset("/root/main/chrgdeptlist/chrgdeptlistinfo");
  154. //원목자리스트 조회
  155. model.makeValue("/root/send/reqdata/joblncd", "A");
  156. submit("TRAYA00401", false);
  157. //조회조건 원목자명 조회
  158. copyNodesetType("/root/main/cond_conslrlist/conslrlistinfo", "/root/main/conslrlist/conslrlistinfo", "after");
  159. //model.setValue("/root/main/cond/refconslrid", 'A');
  160. //부서구분 콤보리스트 조회
  161. zbcfGetCodeList(new Array("A0027", "A0027"), new Array("/root/init/comcodelist/deptflag_cmblist", "/root/init/comcodelist/deptflag_all_cmblist"), true);
  162. // 부서구분 default
  163. model.setValue("/root/main/cond/refdeptflag", "A");
  164. // 원목자명 Default
  165. model.setValue("/root/main/cond/refconslrid", "A");
  166. //조회기간 오늘 날짜로 세팅
  167. var CurrentDate = getCurrentDate();
  168. model.setValue("/root/main/cond/refchrgdd", CurrentDate);
  169. //시작병실, 종료병실 비활성화
  170. ipt_startroom.disabled = true;
  171. ipt_endroom.disabled = true;
  172. //부서리스트 조회
  173. if (submit("TRAYA00402", false)) { //그리드 조회
  174. //트리구조 만들기
  175. var old_deptflag = null;
  176. var old_deptcd = null;
  177. var old_roomcd = null
  178. var new_deptflag = null;
  179. var new_deptcd = null;
  180. var new_roomcd = null;
  181. var deptlist_treeCnt = getNodesetCnt(model1, "/root/main/deptlist_tree/deptlist_treeinfo");
  182. var deptlistCnt = getNodesetCnt(model1, "/root/main/deptlist/deptlistinfo");
  183. var idx = 1;
  184. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptcd",'000');
  185. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/roomcd",'000');
  186. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptnm", '부서');
  187. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/depth", '1');
  188. old_deptflag = "A";
  189. old_deptcd = "A";
  190. old_roomcd ="A";
  191. for (var i = 1; i <= deptlistCnt; i++) {
  192. new_deptflag = model.getValue("/root/main/deptlist/deptlistinfo[" + i +"]/deptflagcd");
  193. new_deptcd = model.getValue("/root/main/deptlist/deptlistinfo[" + i +"]/chrgdeptcd");
  194. new_roomcd = model.getValue("/root/main/deptlist/deptlistinfo[" + i +"]/chrgroomcd");
  195. if (new_deptflag == old_deptflag) {
  196. if (new_deptcd == old_deptcd) {
  197. if (new_roomcd == old_roomcd) {
  198. messageBox("병동리스트를 조회 ","E001");
  199. } else {
  200. if (new_roomcd.length > 0) {
  201. deptlist_treeCnt = getNodesetCnt(model1, "/root/main/deptlist_tree/deptlist_treeinfo");
  202. copyNodesetType("/root/main/deptlist_tree/deptlist_treeinfo[" + deptlist_treeCnt + "]", "/root/temp/deptlist_tree/treeinfo", "after");
  203. idx++;
  204. //model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptcd", new_roomcd);
  205. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptcd", new_deptcd);
  206. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/roomcd", new_roomcd);
  207. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptnm", model.getValue("/root/main/deptlist/deptlistinfo[" + i + "]/chrgroomnm"));
  208. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/depth", '4');
  209. }
  210. }
  211. } else {
  212. deptlist_treeCnt = getNodesetCnt(model1, "/root/main/deptlist_tree/deptlist_treeinfo");
  213. copyNodesetType("/root/main/deptlist_tree/deptlist_treeinfo[" + deptlist_treeCnt + "]", "/root/temp/deptlist_tree/treeinfo", "after");
  214. idx++;
  215. //model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptcd", new_deptcd);
  216. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptcd", new_deptcd);
  217. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/roomcd", new_deptcd);
  218. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptnm", model.getValue("/root/main/deptlist/deptlistinfo[" + i + "]/chrgdeptnm"));
  219. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/depth", '3');
  220. if (new_roomcd.length > 0 ) {
  221. deptlist_treeCnt = getNodesetCnt(model1, "/root/main/deptlist_tree/deptlist_treeinfo");
  222. copyNodesetType("/root/main/deptlist_tree/deptlist_treeinfo[" + deptlist_treeCnt + "]", "/root/temp/deptlist_tree/treeinfo", "after");
  223. idx++;
  224. //model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptcd", new_roomcd);
  225. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptcd", new_deptcd);
  226. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/roomcd", new_roomcd);
  227. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptnm", model.getValue("/root/main/deptlist/deptlistinfo[" + i + "]/chrgroomnm"));
  228. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/depth", '4');
  229. }
  230. }
  231. } else {
  232. deptlist_treeCnt = getNodesetCnt(model1, "/root/main/deptlist_tree/deptlist_treeinfo");
  233. copyNodesetType("/root/main/deptlist_tree/deptlist_treeinfo[" + deptlist_treeCnt + "]", "/root/temp/deptlist_tree/treeinfo", "after");
  234. idx++;
  235. //model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptcd", new_deptflag);
  236. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptcd", new_deptflag);
  237. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/roomcd", new_deptflag);
  238. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptnm", model.getValue("/root/main/deptlist/deptlistinfo[" + i + "]/deptflagnm"));
  239. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/depth", '2');
  240. deptlist_treeCnt = getNodesetCnt(model1, "/root/main/deptlist_tree/deptlist_treeinfo");
  241. copyNodesetType("/root/main/deptlist_tree/deptlist_treeinfo[" + deptlist_treeCnt + "]", "/root/temp/deptlist_tree/treeinfo", "after");
  242. idx++;
  243. //model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptcd", new_deptcd);
  244. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptcd", new_deptcd);
  245. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/roomcd", new_deptcd);
  246. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptnm", model.getValue("/root/main/deptlist/deptlistinfo[" + i + "]/chrgdeptnm"));
  247. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/depth", '3');
  248. if (new_roomcd.length > 0 && new_roomcd != 'ALL') { //ALL : 외래일 경우
  249. deptlist_treeCnt = getNodesetCnt(model1, "/root/main/deptlist_tree/deptlist_treeinfo");
  250. copyNodesetType("/root/main/deptlist_tree/deptlist_treeinfo[" + deptlist_treeCnt + "]", "/root/temp/deptlist_tree/treeinfo", "after");
  251. idx++
  252. //model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptcd", new_roomcd);
  253. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptcd", new_deptcd);
  254. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/roomcd", new_roomcd);
  255. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/deptnm", model.getValue("/root/main/deptlist/deptlistinfo[" + i + "]/chrgroomnm"));
  256. model.setValue("/root/main/deptlist_tree/deptlist_treeinfo[" + idx + "]/depth", '4');
  257. }
  258. }
  259. old_deptflag = new_deptflag;
  260. old_deptcd = new_deptcd;
  261. old_roomcd = new_roomcd;
  262. }
  263. }
  264. // 등록내역 조회
  265. fChrgDeptRgstListRef()
  266. model.refresh();
  267. }
  268. //노드 갯수 구함
  269. function getNodesetCnt(srchModel, path) {
  270. var insXml = srchModel.instances(0);
  271. var nodeList = insXml.selectNodes(path);
  272. return nodeList.length;
  273. }
  274. //부서리스트 트리 클릭시
  275. function fSelectDeptlist() {
  276. //시작병실, 종료병실 활성화
  277. ipt_startroom.disabled = false;
  278. ipt_endroom.disabled = false;
  279. //트리리스트에서 선택한 deptcd 값
  280. var deptcd = model.getValue("/root/main/roomrgst/chrgdeptcd");
  281. var deptflagcd = model.getValue("/root/main/deptlist/deptlistinfo[chrgdeptcd = '" + deptcd + "']/deptflagcd");
  282. //트리구조의 병동/외래명으로만 등록하도록 함(depth : 3)
  283. var depth = model.getValue("/root/main/deptlist_tree/deptlist_treeinfo[deptcd = '" + deptcd + "']/depth");
  284. if (depth == '3') {
  285. //해당병동 선택시 병실 셋팅 (시작 호실 : 해당 병동의 시작병실 / 종료 호실 : 해당 병동의 종료병실)
  286. var deptNodeList = instance1.selectNodes("/root/main/deptlist/deptlistinfo[chrgdeptcd = '" + deptcd + "']");
  287. //alert(deptNodeList.length); //해당 부서의 반복 노드셋 수(해당 호실 갯수)
  288. var nodelist = deptNodeList.item(deptNodeList.length - 1);
  289. //alert(nodelist.xml); //노드 셋 중 마지막 노드(마지막 호실 노드셋)
  290. //alert(nodelist.lastChild.value); //마지막 호실
  291. var chrgstartroomcd = model.getValue("/root/main/deptlist/deptlistinfo[chrgdeptcd = '" + deptcd + "']/chrgroomcd");
  292. var chrgendroomcd = nodelist.lastChild.value;
  293. model.setValue("/root/main/roomrgst/chrgstartroomcd", chrgstartroomcd);
  294. model.setValue("/root/main/roomrgst/chrgendroomcd", chrgendroomcd);
  295. model.setValue("/root/main/roomrgst/chrgstartroomcd_b", chrgstartroomcd);
  296. model.setValue("/root/main/roomrgst/chrgendroomcd_b", chrgendroomcd);
  297. } else if (depth == '4') {
  298. return;
  299. } else{
  300. messageBox("병동/외래명을 ", "C002");
  301. }
  302. model.refresh();
  303. }
  304. //원목자 리스트 클릭시 선택부서, 선택병실 리스트 조회
  305. function fChrgDeptListRef() {
  306. var idxRow = grd_conslrlist.row;
  307. var conslrid = model.getValue("/root/main/conslrlist/conslrlistinfo[" + idxRow + "]/conslrid");
  308. model.removeNodeset("/root/send/reqdata");
  309. model.makeNode("/root/send/reqdata");
  310. model.makeNode("/root/send/reqdata/conslrid");
  311. model.setValue("/root/send/reqdata/conslrid", conslrid);
  312. model.getValue("/root/send/reqdata/conslrid");
  313. // reqGetChoiDeptListInfo
  314. // getChoiDeptRgstListInfo, getChoiRoomRgstListInfo
  315. submit("TRAYA00403");
  316. }
  317. //병실 지정버튼 클릭시 필수여부 체크
  318. function fCheckMandatorySet() {
  319. if (model.getValue("/root/main/conslrlist/conslrlistinfo[ " + grd_conslrlist.row + "]/conslrid") == "") {
  320. messageBox("해당 원목자를 ","C002");
  321. return false;
  322. }
  323. if (model.getValue("/root/main/roomrgst/chrgstartroomcd") == "") {
  324. messageBox("병실은 ","I003");
  325. model.setFocus("ipt_startroom");
  326. return false;
  327. }
  328. //alert(model.getValue("/root/main/roomrgst/chrgendroomcd"));
  329. if (model.getValue("/root/main/roomrgst/chrgendroomcd") == "") {
  330. messageBox("병실은 ","I003");
  331. model.setFocus("ipt_endroom");
  332. return false;
  333. }
  334. return true;
  335. }
  336. //병실 지정버튼 클릭시 선택부서 리스트, 선택호실 리스트 셋팅
  337. function fSetChoiDeptList() {
  338. var conslrid = model.getValue("/root/main/conslrlist/conslrlistinfo[" + grd_conslrlist.row + "]/conslrid");
  339. var deptcd = model.getValue("/root/main/roomrgst/chrgdeptcd");
  340. var deptflagcd = model.getValue("/root/main/deptlist/deptlistinfo[chrgdeptcd = '" + deptcd + "']/deptflagcd");
  341. var chrgdeptnm = model.getValue("/root/main/deptlist/deptlistinfo[chrgdeptcd = '" + deptcd + "']/chrgdeptnm");
  342. var chrgstartroomcd = model.getValue("/root/main/roomrgst/chrgstartroomcd");
  343. var chrgendroomcd = model.getValue("/root/main/roomrgst/chrgendroomcd");
  344. var chrgstartroomnm = model.getValue("/root/main/deptlist/deptlistinfo[chrgroomcd = '" + chrgstartroomcd + "']/chrgroomnm");
  345. var chrgendroomnm = model.getValue("/root/main/deptlist/deptlistinfo[chrgroomcd = '" + chrgendroomcd + "']/chrgroomnm");
  346. // 당일 일자
  347. var currentdate = getCurrentDate();
  348. // 기존에 있는 병실인지 체크
  349. for (i=0; i < grd_choideptlist.rows; i++)
  350. {
  351. var fromdd = grd_choideptlist.valueMatrix(i, grd_choideptlist.colRef("chrgfromdd"));
  352. var todd = grd_choideptlist.valueMatrix(i, grd_choideptlist.colRef("chrgtodd"));
  353. if (currentdate >= fromdd && currentdate <= todd)
  354. {
  355. }
  356. }
  357. //선택부서 리스트 셋팅
  358. grd_choideptlist.addrow(false);
  359. var deptlist_idxRow = grd_choideptlist.row;
  360. model.setValue("/root/main/choideptlist/choideptlistinfo[" + deptlist_idxRow + "]/deptflagcd", deptflagcd);
  361. model.setValue("/root/main/choideptlist/choideptlistinfo[" + deptlist_idxRow + "]/chrgdeptnm", chrgdeptnm);
  362. model.setValue("/root/main/choideptlist/choideptlistinfo[" + deptlist_idxRow + "]/chrgstartroomnm", chrgstartroomnm);
  363. model.setValue("/root/main/choideptlist/choideptlistinfo[" + deptlist_idxRow + "]/chrgendroomnm", chrgendroomnm);
  364. model.setValue("/root/main/choideptlist/choideptlistinfo[" + deptlist_idxRow + "]/chrgfromdd", currentdate);
  365. model.setValue("/root/main/choideptlist/choideptlistinfo[" + deptlist_idxRow + "]/chrgtodd", '99991231');
  366. model.setValue("/root/main/choideptlist/choideptlistinfo[" + deptlist_idxRow + "]/conslrid", conslrid);
  367. model.setValue("/root/main/choideptlist/choideptlistinfo[" + deptlist_idxRow + "]/chrgdeptcd", deptcd);
  368. model.setValue("/root/main/choideptlist/choideptlistinfo[" + deptlist_idxRow + "]/chrgstartroomcd", chrgstartroomcd); //저장시에 시작병실과 종료병실 사이의 모든 병실을 저장한다.
  369. model.setValue("/root/main/choideptlist/choideptlistinfo[" + deptlist_idxRow + "]/chrgendroomcd", chrgendroomcd);
  370. //선택호실 리스트 셋팅
  371. var start_idx = grd_deptlist.findRow(chrgstartroomcd,1, 5);
  372. var end_idx = grd_deptlist.findRow(chrgendroomcd, 1, 5);
  373. for (var i = start_idx; i <= end_idx; i++) {
  374. grd_choiroomlist.addrow(false);
  375. var roomlist_idxRow = grd_choiroomlist.row;
  376. var chrgroomcd = model.getValue("/root/main/deptlist/deptlistinfo[" + i + "]/chrgroomcd");
  377. model.setValue("/root/main/choideptlist/choiroomlistinfo[" + roomlist_idxRow + "]/conslrid", conslrid);
  378. model.setValue("/root/main/choideptlist/choiroomlistinfo[" + roomlist_idxRow + "]/chrgdeptcd", deptcd);
  379. model.setValue("/root/main/choideptlist/choiroomlistinfo[" + roomlist_idxRow + "]/chrgdeptnm", chrgdeptnm);
  380. model.setValue("/root/main/choideptlist/choiroomlistinfo[" + roomlist_idxRow + "]/chrgfromdd", currentdate);
  381. model.setValue("/root/main/choideptlist/choiroomlistinfo[" + roomlist_idxRow + "]/chrgtodd", '99991231');
  382. model.setValue("/root/main/choideptlist/choiroomlistinfo[" + roomlist_idxRow + "]/chrgstartroomcd", chrgstartroomcd);
  383. model.setValue("/root/main/choideptlist/choiroomlistinfo[" + roomlist_idxRow + "]/chrgroomcd", chrgroomcd);
  384. }
  385. model.refresh();
  386. }
  387. //해당병실 체크
  388. function fChkRoomCd() {
  389. //변경 전(병동 호실)
  390. var chrgstartroomcd = model.getValue("/root/main/roomrgst/chrgstartroomcd_b");
  391. var chrgendroomcd = model.getValue("/root/main/roomrgst/chrgendroomcd_b");
  392. //변경 후
  393. var chrgstartroomcd_chg = model.getValue("/root/main/roomrgst/chrgstartroomcd");
  394. var chrgendroomcd_chg = model.getValue("/root/main/roomrgst/chrgendroomcd");
  395. var start_idx = grd_deptlist.findRow(chrgstartroomcd,1, 5);
  396. var end_idx = grd_deptlist.findRow(chrgendroomcd, 1, 5);
  397. var chkDept = 'N';
  398. var chkRoom = 'N';
  399. for (var i = start_idx; i <= end_idx; i++) {
  400. var chrgroomcd = model.getValue("/root/main/deptlist/deptlistinfo[" + i + "]/chrgroomcd");
  401. /*
  402. if (chrgstartroomcd_chg == chrgroomcd) {
  403. chkDept = 'Y';
  404. } else if (chrgendroomcd_chg == chrgroomcd) {
  405. chkRoom = 'Y';
  406. }
  407. */
  408. if (chrgstartroomcd_chg == chrgroomcd) {
  409. chkDept = 'Y';
  410. }
  411. if (chrgendroomcd_chg == chrgroomcd) {
  412. chkRoom = 'Y';
  413. }
  414. }
  415. if (chkDept == 'N') {
  416. messageBox(chrgstartroomcd_chg + "병동을 찾을 수 ","I004");
  417. model.setFocus("ipt_startroom");
  418. return;
  419. } else if (chkRoom == 'N') {
  420. messageBox(chrgendroomcd_chg + "병동을 찾을 수 ","I004");
  421. model.setFocus("ipt_endroom");
  422. return;
  423. }
  424. }
  425. //담당시작일자 셋팅
  426. function fSetchrgfromtodd() {
  427. var idxRow = grd_choideptlist.row;
  428. var idxCol = grd_choideptlist.col;
  429. var chrgfromdd = model.getValue("/root/main/choideptlist/choideptlistinfo[" + idxRow + "]/chrgfromdd");
  430. var chrgtodd = model.getValue("/root/main/choideptlist/choideptlistinfo[" + idxRow + "]/chrgtodd");
  431. var conslrid_dept = model.getValue("/root/main/choideptlist/choideptlistinfo[" + idxRow + "]/conslrid");
  432. var deptcd_dept = model.getValue("/root/main/choideptlist/choideptlistinfo[" + idxRow + "]/chrgdeptcd");
  433. var chrgstartroomcd_dept = model.getValue("/root/main/choideptlist/choideptlistinfo[" + idxRow + "]/chrgstartroomcd");
  434. var seqno_dept = model.getValue("/root/main/choideptlist/choideptlistinfo[" + idxRow + "]/seqno");
  435. for (var i = 1; i <= grd_choiroomlist.rows; i++) {
  436. var conslrid_room = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + i + "]/conslrid");
  437. var deptcd_room = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + i + "]/chrgdeptcd");
  438. var chrgstartroomcd_room = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + i + "]/chrgstartroomcd");
  439. var seqno_room = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + i + "]/seqno");
  440. if (conslrid_dept == conslrid_room && deptcd_dept == deptcd_room && chrgstartroomcd_dept == chrgstartroomcd_room && seqno_dept == seqno_room ) {
  441. if (idxCol == 5) {
  442. model.setValue("/root/main/choideptlist/choiroomlistinfo[" + i + "]/chrgfromdd", chrgfromdd);
  443. } else if (idxCol == 6) {
  444. model.setValue("/root/main/choideptlist/choiroomlistinfo[" + i + "]/chrgtodd", chrgtodd);
  445. }
  446. var seqno_room = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + i + "]/seqno");
  447. if (seqno_room != "") {
  448. grd_choiroomlist.rowStatus(i) = 2; // 2 : update
  449. }
  450. }
  451. }
  452. model.refresh();
  453. }
  454. //담당부서 저장시 필수여부 체크
  455. function fCheckMandatorySave() {
  456. for (var i = 1; i < grd_choideptlist.rows; i++) {
  457. if (model.getValue("/root/main/choideptlist/choideptlistinfo[" + i + "]/chrgfromdd") == "") {
  458. messageBox("담당시작일자를 ","C001");
  459. model.setFocus("/root/main/choideptlist/choideptlistinfo[" + i + "]/chrgfromdd");
  460. return false;
  461. }
  462. }
  463. return true;
  464. }
  465. //선택부서 리스트에서 담당부서 저장시
  466. function fSaveChrgDeptInfo() {
  467. var chkerror = fChkChrgDeptRgstInfo(); //담당부서 중복체크
  468. if (chkerror != 1) {
  469. //시작, 종료병실 컨트롤 초기화
  470. model.resetInstanceNode("/root/main/roomrgst/chrgstartroomcd");
  471. model.resetInstanceNode("/root/main/roomrgst/chrgendroomcd");
  472. //저장
  473. model.removeNodeset("/root/send/savedata");
  474. model.makeNode("/root/send/savedata");
  475. model.makeNode("/root/send/savedata/deptinfo");
  476. model.makeNode("/root/send/savedata/roominfo");
  477. model.makeNode("/root/send/savedata/conslrinfo");
  478. //부서정보
  479. model.setValue("/root/send/savedata/deptinfo", grd_choideptlist.getUpdateData());
  480. //호실 정보
  481. model.setValue("/root/send/savedata/roominfo", grd_choiroomlist.getUpdateData());
  482. //원목자별 조회조건
  483. model.makeValue("/root/send/savedata/conslrinfo/conslrid", model.getValue("/root/main/conslrlist/conslrlistinfo[" + grd_conslrlist.row + "]/conslrid"));
  484. model.refresh();
  485. if (submit("TXAYA00401")) {
  486. if ( model.getValue("/root/main/cond/refdeptflag") != "" && model.getValue("/root/main/cond/refconslrid") != "" && model.getValue("/root/main/cond/refchrgdd") != "") {
  487. fChrgDeptRgstListRef();
  488. }
  489. }
  490. } else { //중복입력일 경우 해당 row 삭제
  491. var rownum = model.getValue("/root/hidden/errmsg/rownum"); //중복체크된 rownum
  492. var conslrid = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + rownum + "]/conslrid");
  493. var chrgdeptcd = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + rownum + "]/chrgdeptcd");
  494. var chrgfromdd = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + rownum + "]/chrgfromdd");
  495. var chrgstartroomcd = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + rownum + "]/chrgstartroomcd");
  496. //부서 그리드에서 삭제
  497. for ( var i = 1; i < grd_choideptlist.rows; i++) {
  498. var conslrid_dept = model.getValue("/root/main/choideptlist/choideptlistinfo[" + i + "]/conslrid");
  499. var chrgdeptcd_dept = model.getValue("/root/main/choideptlist/choideptlistinfo[" + i + "]/chrgdeptcd");
  500. var chrgfromdd_dept = model.getValue("/root/main/choideptlist/choideptlistinfo[" + i + "]/chrgfromdd");
  501. var chrgstartroomcd_dept = model.getValue("/root/main/choideptlist/choideptlistinfo[" + i + "]/chrgstartroomcd");
  502. var seqno_dept = model.getValue("/root/main/choideptlist/choideptlistinfo[" + i + "]/seqno");
  503. if (conslrid_dept == conslrid && chrgdeptcd_dept == chrgdeptcd && chrgfromdd_dept == chrgfromdd && chrgstartroomcd_dept == chrgstartroomcd && seqno_dept == "") {
  504. grd_choideptlist.deleteItem(i);
  505. }
  506. }
  507. //병실 그리드에서 삭제
  508. for ( var j = 1; j < grd_choiroomlist.rows; j++) {
  509. var conslrid_room = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + j + "]/conslrid");
  510. var chrgdeptcd_room = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + j + "]/chrgdeptcd");
  511. var chrgfromdd_room = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + j + "]/chrgfromdd");
  512. var chrgstartroomcd_room = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + j + "]/chrgstartroomcd");
  513. var seqno_room = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + j + "]/seqno");
  514. if (conslrid_room == conslrid && chrgdeptcd_room == chrgdeptcd && chrgfromdd_room == chrgfromdd && chrgstartroomcd_room == chrgstartroomcd && seqno_room == "" ) {
  515. grd_choiroomlist.deleteRow(j, false);
  516. j--;
  517. }
  518. }
  519. model.removeNodeset("/root/hidden/errmsg");
  520. model.makeNode("/root/hidden/errmsg")
  521. model.refresh();
  522. }
  523. }
  524. //담당부서 중복체크
  525. function fChkChrgDeptRgstInfo() {
  526. model.removeNodeset("/root/send/reqdata");
  527. model.makeNode("/root/send/reqdata");
  528. model.makeNode("/root/send/reqdata/chkrgstinfo");
  529. model.setValue("/root/send/reqdata/chkrgstinfo", grd_choiroomlist.getUpdateData());
  530. // reqChkChrgDeptRgstInfo
  531. // getChkChrgDeptRgstInfo
  532. if (submit("TRAYA00405")) { //중복체크 조회
  533. var errcd = model.getValue("/root/hidden/errmsg/errcd");
  534. var rownum = model.getValue("/root/hidden/errmsg/rownum"); //중복체크된 rownum
  535. var totRow = grd_choideptlist.rows;
  536. //alert(rownum);
  537. //alert(errcd);
  538. if (errcd == "err01") { // insert error
  539. for (var i = 1 ; i < totRow ; i++) {
  540. var chrgdeptnm = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + rownum + "]/chrgdeptnm");
  541. var chrgroomcd = model.getValue("/root/main/choideptlist/choiroomlistinfo[" + rownum + "]/chrgroomcd");
  542. break;
  543. }
  544. messageBox(chrgdeptnm+ "의 " + chrgroomcd + "호 담당자가", "E006");
  545. return 1;
  546. }
  547. }
  548. }
  549. //선택부서 삭제
  550. function fDelChoiDeptList() {
  551. var idx = grd_choideptlist.row;
  552. if ( model.getValue("/root/main/choideptlist/choideptlistinfo[" + idx + "]/chrgdeptcd") != ""){
  553. var btn = messageBox("선택한 담당부서를 ", "Q001");
  554. if (btn == '6') {
  555. //grd_choideptlist.deleteItem(idx);
  556. grd_choideptlist.deleteRow(idx);
  557. //model.removeNodeset("/root/send/savedata");
  558. //model.makeNode("/root/send/savedata");
  559. //model.makeNode("/root/send/savedata/deptinfo");
  560. //model.makeNode("/root/send/savedata/conslrinfo");
  561. //model.setValue("/root/send/savedata/deptinfo", grd_choideptlist.getUpdateData());
  562. //model.makeValue("/root/send/savedata/conslrinfo/conslrid", model.getValue("/root/main/conslrlist/conslrlistinfo[" + grd_conslrlist.row + "]/conslrid"));
  563. //model.refresh();
  564. //if (submit("TXAYA00401")) {
  565. // if ( model.getValue("/root/main/cond/refdeptflag") != "" && model.getValue("/root/main/cond/refconslrid") != "" && model.getValue("/root/main/cond/refchrgdd") != "") {
  566. // fChrgDeptRgstListRef();
  567. // }
  568. //}
  569. //} else if (btn == '7') {
  570. // return;
  571. }
  572. }
  573. }
  574. //등록내역리스트 조회
  575. function fChrgDeptRgstListRef() {
  576. model.removeNodeset("/root/send/reqdata");
  577. model.makeNode("/root/send/reqdata");
  578. model.copyNode("/root/send/reqdata", "/root/main/cond");
  579. submit("TRAYA00404");
  580. }
  581. //담당부서 삭제
  582. function fDelChrgDeptList() {
  583. var idx = grd_chrgdeptlist.row;
  584. if ( model.getValue("/root/main/chrgdeptlist/chrgdeptlistinfo[" + idx + "]/deptflagcd") != ""){
  585. var btn = messageBox("선택한 담당부서를 ", "Q001");
  586. if (btn == '6') {
  587. model.setValue("/root/main/chrgdeptlist/chrgdeptlistinfo[" + idx + "]/status", 'd');
  588. var nodeList = instance1.selectNodes("/root/main/chrgdeptlist/chrgdeptlistinfo[" + idx + "]");
  589. var rgstinfo = getNodeListCSV(nodeList);
  590. model.removeNodeset("/root/send/savedata");
  591. model.makeNode("/root/send/savedata");
  592. model.makeNode("/root/send/savedata/rgstinfo");
  593. model.makeNode("/root/send/savedata/condinfo");
  594. model.setValue("/root/send/savedata/rgstinfo", rgstinfo);
  595. model.copyNode("/root/send/savedata/condinfo", "/root/main/cond");
  596. model.refresh();
  597. if (submit("TXAYA00402")) {
  598. //원목자 선택되어 있을 경우 재조회
  599. for (var i = 1; i < grd_conslrlist.rows; i++) {
  600. var conslrid = model.getValue("/root/main/cond_conslrlist/conslrlistinfo[" + i + "]/conslrid");
  601. }
  602. if (conslrid != "") {
  603. fChrgDeptListRef();
  604. }
  605. }
  606. } else if (btn == '7') {
  607. return;
  608. }
  609. }
  610. }
  611. ]]>
  612. </script>
  613. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  614. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  615. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  616. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  617. </xhtml:head>
  618. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  619. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  620. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:240px; height:14px; ">담당자별 병동관리</caption>
  621. </group>
  622. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  623. <treeview id="trv_deptlist" ref="/root/main/roomrgst/chrgdeptcd" expanddepth="2" image="../../../com/commonweb/images/icon_folder_close.gif" itemsettype="depth" selectedimage="../../../com/commonweb/images/icon_folder_open.gif" style="left:320px; top:32px; width:335px; height:400px; ">
  624. <itemset nodeset="/root/main/deptlist_tree/deptlist_treeinfo">
  625. <label ref="deptnm"/>
  626. <value ref="deptcd"/>
  627. <depth ref="depth"/>
  628. </itemset>
  629. <script type="javascript" ev:event="xforms-select">
  630. <![CDATA[
  631. fSelectDeptlist();
  632. ]]>
  633. </script>
  634. </treeview>
  635. <group id="grp_sea" style="left:660px; top:10px; width:534px; height:60px; vertical-align:top; ">
  636. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:534px; height:60px; "/>
  637. <caption id="caption2" class="search_name" style="left:15px; top:35px; width:87px; height:17px; ">담당일자 :</caption>
  638. <caption id="caption3" class="search_name" style="left:15px; top:10px; width:97px; height:17px; ">부서구분 :</caption>
  639. <button id="button1" class="btn1_letter2" style="left:460px; top:20px; width:56px; height:22px; ">
  640. <caption>조회</caption>
  641. <script type="javascript" ev:event="DOMActivate">
  642. <![CDATA[
  643. fChrgDeptRgstListRef();
  644. ]]>
  645. </script>
  646. </button>
  647. <line id="line6" class="line_4" style="x1:447px; y1:11px; x2:447px; y2:54px; "/>
  648. <input id="ipt_refstatfromdd" ref="/root/main/cond/refchrgdd" class="input_search" inputtype="date" style="left:110px; top:35px; width:105px; height:19px; "/>
  649. <select1 id="cmb_trgtmanposcd" ref="/root/main/cond/refdeptflag" class="combo_search" appearance="minimal" style="left:110px; top:10px; width:105px; height:19px; ">
  650. <choices>
  651. <itemset nodeset="/root/init/comcodelist/deptflag_all_cmblist/A0027">
  652. <label ref="cdnm"/>
  653. <value ref="cdid"/>
  654. </itemset>
  655. </choices>
  656. </select1>
  657. <caption id="caption1" class="search_name" style="left:245px; top:10px; width:92px; height:17px; ">원목자명 :</caption>
  658. <select1 id="combo1" ref="/root/main/cond/refconslrid" class="combo_search" appearance="minimal" style="left:340px; top:10px; width:95px; height:19px; ">
  659. <choices>
  660. <itemset nodeset="/root/main/cond_conslrlist/conslrlistinfo">
  661. <label ref="conslrnm"/>
  662. <value ref="conslrid"/>
  663. </itemset>
  664. </choices>
  665. </select1>
  666. </group>
  667. <caption id="caption5" class="tit_2" style="left:5px; top:10px; width:145px; height:13px; ">원목자 리스트</caption>
  668. <line id="line3" class="line_1" style="x1:320px; y1:27px; x2:655px; y2:27px; "/>
  669. <caption id="caption4" class="tit_2" style="left:325px; top:10px; width:207px; height:13px; ">부서 리스트</caption>
  670. <caption id="caption7" class="tit_2" style="left:0px; top:492px; width:175px; height:13px; ">선택부서 리스트</caption>
  671. <line id="line4" class="line_1" style="x1:0px; y1:510px; x2:655px; y2:510px; "/>
  672. <datagrid id="grd_choideptlist" nodeset="/root/main/choideptlist/choideptlistinfo" caption="구분^선택부서명^시작병실^종료병실^담당시작일자^담당종료일자^원목자아이디^담당부서코드^시작병실코드^종료병실코드^일련번호^담당시작일자_b^담당시작일자_b" colsep="^" colwidth="81, 150, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0" dataheight="25" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:515px; width:655px; height:225px; ">
  673. <col disabled="true" ref="deptflagcd" type="combo">
  674. <choices>
  675. <itemset nodeset="/root/init/comcodelist/deptflag_cmblist/A0027">
  676. <label ref="cdnm"/>
  677. <value ref="cdid"/>
  678. </itemset>
  679. </choices>
  680. </col>
  681. <col ref="chrgdeptnm"/>
  682. <col ref="chrgstartroomnm" style="text-align:center; "/>
  683. <col ref="chrgendroomnm" style="text-align:center; "/>
  684. <col ref="chrgfromdd" type="inputdate"/>
  685. <col ref="chrgtodd" type="inputdate"/>
  686. <col ref="conslrid"/>
  687. <col ref="chrgdeptcd"/>
  688. <col ref="chrgstartroomcd"/>
  689. <col ref="chrgendroomcd"/>
  690. <col ref="seqno"/>
  691. <col ref="chrgfromdd_b"/>
  692. <script type="javascript" ev:event="xforms-value-changed">
  693. <![CDATA[
  694. fSetchrgfromtodd();
  695. ]]>
  696. </script>
  697. </datagrid>
  698. <button id="button90" class="btn5_letter2" style="left:567px; top:490px; width:42px; height:19px; ">
  699. <caption>저장</caption>
  700. <script type="javascript" ev:event="DOMActivate">
  701. <![CDATA[
  702. if ( !fCheckMandatorySave() ) return; //필수 저장여부 체크
  703. fSaveChrgDeptInfo();
  704. ]]>
  705. </script>
  706. </button>
  707. <caption id="caption9" class="tit_2" style="left:325px; top:439px; width:150px; height:13px; ">병실등록</caption>
  708. <line id="line2" class="line_1" style="x1:320px; y1:455px; x2:655px; y2:455px; "/>
  709. <input id="ipt_startroom" ref="/root/main/roomrgst/chrgstartroomcd" class="input_default" appearance="input" style="left:320px; top:460px; width:100px; height:19px; ">
  710. <script type="javascript" ev:event="xforms-value-changed">
  711. <![CDATA[
  712. fChkRoomCd();
  713. ]]>
  714. </script>
  715. </input>
  716. <caption id="caption10" style="left:456px; top:462px; width:12px; height:17px; ">~</caption>
  717. <input id="ipt_endroom" ref="/root/main/roomrgst/chrgendroomcd" class="input_default" appearance="input" style="left:475px; top:460px; width:100px; height:19px; ">
  718. <script type="javascript" ev:event="xforms-value-changed">
  719. <![CDATA[
  720. fChkRoomCd();
  721. ]]>
  722. </script>
  723. </input>
  724. <caption id="caption11" style="left:580px; top:461px; width:26px; height:17px; ">호실</caption>
  725. <caption id="caption12" style="left:423px; top:461px; width:26px; height:17px; ">호실</caption>
  726. <line id="line20" class="line_3" style="x1:320px; y1:480px; x2:655px; y2:480px; "/>
  727. <button id="button3" class="btn5_letter2" style="left:612px; top:435px; width:42px; height:19px; ">
  728. <caption>지정</caption>
  729. <script type="javascript" ev:event="DOMActivate">
  730. <![CDATA[
  731. if ( !fCheckMandatorySet() ) return;
  732. fSetChoiDeptList();
  733. ]]>
  734. </script>
  735. </button>
  736. <datagrid id="grd_conslrlist" nodeset="/root/main/conslrlist/conslrlistinfo" caption="사번^원목자명^핸드폰번호^부서번호" colsep="^" colwidth="67, 75, 84, 66" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:32px; width:315px; height:450px; ">
  737. <col ref="conslrid" style="text-align:center; "/>
  738. <col ref="conslrnm" style="text-align:center; "/>
  739. <col ref="mpphontel"/>
  740. <col ref="depttel"/>
  741. <script type="javascript" ev:event="onclick">
  742. <![CDATA[
  743. fChrgDeptListRef();
  744. ]]>
  745. </script>
  746. </datagrid>
  747. <line id="line7" class="line_1" style="x1:0px; y1:27px; x2:315px; y2:27px; "/>
  748. <button id="button5" class="btn5_letter2" style="left:612px; top:490px; width:42px; height:19px; ">
  749. <caption>삭제</caption>
  750. <script type="javascript" ev:event="DOMActivate">
  751. <![CDATA[
  752. fDelChoiDeptList();
  753. ]]>
  754. </script>
  755. </button>
  756. <datagrid id="grd_chrgdeptlist" nodeset="/root/main/chrgdeptlist/chrgdeptlistinfo" caption="구분^원목자명^부서명^시작병실^종료병실^담당시작일자^담당종료일자^원목자아이디^담당부서코드^시작호실코드^종료호실코드^일련번호^상태" colsep="^" colwidth="50, 71, 104, 62, 62, 79, 79, 0, 0, 0, 0, 0, 0" dataheight="25" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:660px; top:105px; width:534px; height:635px; ">
  757. <col disabled="true" ref="deptflagcd" type="combo" style="text-align:center; ">
  758. <choices>
  759. <itemset nodeset="/root/init/comcodelist/deptflag_cmblist/A0027">
  760. <label ref="cdnm"/>
  761. <value ref="cdid"/>
  762. </itemset>
  763. </choices>
  764. </col>
  765. <col ref="conslrnm" style="text-align:center; "/>
  766. <col ref="chrgdeptnm"/>
  767. <col ref="chrgstartroomnm" style="text-align:center; "/>
  768. <col ref="chrgendroomnm" style="text-align:center; "/>
  769. <col ref="chrgfromdd" format="yyyy-mm-dd"/>
  770. <col ref="chrgtodd" format="yyyy-mm-dd"/>
  771. <col ref="conslrid"/>
  772. <col ref="chrgdeptcd"/>
  773. <col ref="chrgstartroomcd"/>
  774. <col ref="chrgendroomcd"/>
  775. <col ref="seqno"/>
  776. <col ref="status"/>
  777. </datagrid>
  778. <button id="button4" class="btn5_letter2" style="left:1152px; top:80px; width:42px; height:19px; ">
  779. <caption>삭제</caption>
  780. <script type="javascript" ev:event="DOMActivate">
  781. <![CDATA[
  782. fDelChrgDeptList();
  783. ]]>
  784. </script>
  785. </button>
  786. <caption id="caption8" class="tit_2" style="left:666px; top:82px; width:216px; height:13px; ">담당부서 등록내역 조회</caption>
  787. <line id="line5" class="line_1" style="x1:660px; y1:100px; x2:1194px; y2:100px; "/>
  788. <datagrid id="grd_deptlist" nodeset="/root/main/deptlist/deptlistinfo" visibility="hidden" caption="구분^부서명^병실명^부서구분코드^담당부서코드^담당병실코드" colsep="^" colwidth="72, 139, 72, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecells="bycol" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:320px; top:32px; width:335px; height:263px; ">
  789. <col ref="deptflagnm"/>
  790. <col ref="chrgdeptnm"/>
  791. <col ref="chrgroomnm"/>
  792. <col ref="deptflagcd"/>
  793. <col ref="chrgdeptcd"/>
  794. <col ref="chrgroomcd"/>
  795. </datagrid>
  796. <datagrid id="grd_choiroomlist" nodeset="/root/main/choideptlist/choiroomlistinfo" visibility="hidden" caption="원목자아이디^담당부서코드^담당부서명^담당시작일자^담당종료일자^시작병실코드^담당병실코드^일련번호^담당시작일자_b" colsep="^" colwidth="100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:110px; top:170px; width:530px; height:225px; ">
  797. <col ref="conslrid"/>
  798. <col ref="chrgdeptcd"/>
  799. <col ref="chrgdeptnm"/>
  800. <col ref="chrgfromdd"/>
  801. <col ref="chrgtodd"/>
  802. <col ref="chrgstartroomcd"/>
  803. <col ref="chrgroomcd"/>
  804. <col ref="seqno"/>
  805. <col ref="chrgfromdd_b"/>
  806. </datagrid>
  807. </group>
  808. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  809. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  810. </group>
  811. </xhtml:body>
  812. </xhtml:html>