SMPIB01500_심사배분기준정보관리.xrw 60 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <list1>
  11. <orddept/>
  12. </list1>
  13. <list2>
  14. <atdoct/>
  15. </list2>
  16. <list3>
  17. <ward/>
  18. </list3>
  19. <list4>
  20. <judg/>
  21. </list4>
  22. <list5>
  23. <divs/>
  24. </list5>
  25. <list6>
  26. <orddeptcd/>
  27. </list6>
  28. <data1>
  29. <judgrid/>
  30. <judgflag/>
  31. <judgflagcd/>
  32. <ioflag/>
  33. <ioflagcd/>
  34. <insukind/>
  35. <insukindcd/>
  36. <divrate/>
  37. <divcnt/>
  38. <fromdd/>
  39. <todd/>
  40. <memo/>
  41. </data1>
  42. </main>
  43. <send>
  44. <data1>
  45. <judgrid/>
  46. <orddeptcd/>
  47. <endyn/>
  48. </data1>
  49. <list1>
  50. <divs/>
  51. </list1>
  52. <setdata>
  53. <update/>
  54. </setdata>
  55. </send>
  56. <init>
  57. </init>
  58. <hidden>
  59. <rdosel/>
  60. <todd/>
  61. <memo/>
  62. <list1/>
  63. <list2/>
  64. <list3/>
  65. <list5>
  66. <divs/>
  67. </list5>
  68. <data1/>
  69. </hidden>
  70. </root>
  71. </instance>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. // 기초정보 가져오기 (심사담당자, 진료과, 진료의, 병동)
  75. fLoadBaseInfo();
  76. // 화면 초기화
  77. fInitialize();
  78. ]]>
  79. </script>
  80. <submission id="TRPIB01501" mediatype="application/x-www-form-urlencoded" method="post" add="bottom" resultref="/root/init"/>
  81. <submission id="TRPIB01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list5"/>
  82. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  83. <submission id="TXPIB01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list1" resultref="/root/temp"/>
  84. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" add="bottom" resultref="/root/hidden/tmp"/>
  85. <submission id="TRPIB01503" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/orddeptlist"/>
  86. <submission id="TRPIB01504" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/wardlist"/>
  87. <submission id="TXPIB01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/temp"/>
  88. <submission id="TXPIB01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/temp"/>
  89. <submission id="TXPIB01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/setdata"/>
  90. <submission id="TRPIB01505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list1" resultref="/root/hidden/data1"/>
  91. </model>
  92. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  94. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  96. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  99. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  100. <script type="javascript">
  101. <![CDATA[
  102. // 기초정보 가져오기 (심사담당자, 진료과, 진료의, 병동 리스트)
  103. function fLoadBaseInfo() {
  104. // 심사자, 진료과, 진료의, 병동 목록 초기화
  105. model.removeNode("/root/init");
  106. // 심사자, 진료과, 진료의, 병동 목록 가져오기
  107. submit("TRPIB01501");
  108. // 20100220 진료과별 일반의 추가
  109. var deptcnt = instance1.selectNodes("/root/init/list1/orddept").length;
  110. var orddrcnt = instance1.selectNodes("/root/init/list2/atdoct").length;
  111. for(var i=1; i <= deptcnt; i++){
  112. model.makeValue("/root/init/list2/atdoct["+ (orddrcnt+i) +"]/chksel","false");
  113. model.makeValue("/root/init/list2/atdoct["+ (orddrcnt+i) +"]/atdoctid","PAM99999");
  114. model.makeValue("/root/init/list2/atdoct["+ (orddrcnt+i) +"]/atdoctnm","일반의(과대표)");
  115. model.makeValue("/root/init/list2/atdoct["+ (orddrcnt+i) +"]/orddeptcd",model.getValue("/root/init/list1/orddept[" + i + "]/orddeptcd") );
  116. model.makeValue("/root/init/list2/atdoct["+ (orddrcnt+i) +"]/orddeptnm",model.getValue("/root/init/list1/orddept[" + i + "]/orddeptnm") );
  117. }
  118. // 심사배분 기준정보 목록 안에 진료과, 진료의, 병동은 "전체" 가 포함된 상태 이므로 따로 만들어 둔다.
  119. model.copyNode("/root/hidden/list1", "/root/init/list1");
  120. model.copyNode("/root/hidden/list2", "/root/init/list2");
  121. model.copyNode("/root/hidden/list3", "/root/init/list3");
  122. // 1. 진료과
  123. var nodelist = instance1.selectNodes("/root/hidden/list1/orddept");
  124. var length = nodelist.length;
  125. model.makeValue("/root/hidden/list1/orddept["+ (length+1) +"]/orddeptcd","-");
  126. model.makeValue("/root/hidden/list1/orddept["+ (length+1) +"]/orddeptnm","전체");
  127. // 2. 진료의
  128. var nodelist = instance1.selectNodes("/root/hidden/list2/atdoct");
  129. var length = nodelist.length;
  130. model.makeValue("/root/hidden/list2/atdoct["+ (length+1) +"]/atdoctid","-");
  131. model.makeValue("/root/hidden/list2/atdoct["+ (length+1) +"]/atdoctnm","전체");
  132. // 3. 병동
  133. var nodelist = instance1.selectNodes("/root/hidden/list3/ward");
  134. var length = nodelist.length;
  135. model.makeValue("/root/hidden/list3/ward["+ (length+1) +"]/wardcd","-");
  136. model.makeValue("/root/hidden/list3/ward["+ (length+1) +"]/wardnm","전체");
  137. }
  138. function fInitialize() {
  139. // 담당자 (심사자) 콤보 초기화
  140. model.removeNode("/root/main/list4");
  141. model.makeNode("/root/main/list4");
  142. model.copyNode("/root/main/list4", "/root/init/list4");
  143. // 조회용 진료과 콤보 초기화
  144. model.removeNode("/root/main/list6");
  145. model.makeNode("/root/main/list6");
  146. model.copyNode("/root/main/list6", "/root/init/list6");
  147. // 심사배분 기준정보 목록 초기화
  148. model.removeNodeset("/root/main/list5/divs");
  149. // 기준정보의 초기화
  150. model.resetInstanceNode("/root/main/data1");
  151. var currentdate = getCurrentDate();
  152. model.setValue("/root/main/data1/fromdd", currentdate);
  153. model.setValue("/root/main/data1/todd", "99991231");
  154. cmb_judgflag.select(0);
  155. cmb_ioflag.select(0);
  156. cmb_insukind.select(0);
  157. model.setValue("/root/main/data1/divrate", "100");
  158. model.setValue("/root/main/data1/divcnt", "0");
  159. var currentdate = getCurrentDate();
  160. model.setValue("/root/main/data1/fromdd",currentdate);
  161. model.setValue("/root/main/data1/todd","99991231");
  162. model.setValue("/root/hidden/rdosel", "0");
  163. model.setValue("/root/hidden/todd", currentdate);
  164. // 조회조건 초기화
  165. cmb_judgrid.select(0);
  166. cmb_orddeptcd.select(0);
  167. model.setValue("/root/send/data1/endyn", "2");
  168. // 진료과와 진료의, 병동별의 그리드의 컬럼명쪽 선택분야 전체 체크박스 실행
  169. grd_orddeptlist.fixedcellcheckbox(0,0) = true;
  170. grd_atdoctlist.fixedcellcheckbox(0,0) = true;
  171. grd_wardlist.fixedcellcheckbox(0,0) = true;
  172. // 진료과-진료의별 라디오버튼 선택된 상태로 만들기
  173. fSetCheckSel();
  174. model.refresh();
  175. }
  176. // 진료과별-진료의별 또는 병동별 라디오버튼 선택에 따른 그리드 disable 처리
  177. function fSetCheckSel() {
  178. // 진료과, 진료의, 병동, 심사자 그리드 초기화
  179. model.removeNode("/root/main/list1");
  180. model.removeNode("/root/main/list2");
  181. model.removeNode("/root/main/list3");
  182. model.makeNode("/root/main/list1");
  183. model.makeNode("/root/main/list2");
  184. model.makeNode("/root/main/list3");
  185. model.refresh();
  186. grd_orddeptlist.refresh();
  187. grd_atdoctlist.refresh();
  188. grd_wardlist.refresh();
  189. var chk = model.getValue("/root/hidden/rdosel");
  190. // 1. 진료과별-진료의별 선택
  191. if (chk == "0") {
  192. model.copyNode("/root/main/list1", "/root/init/list1");
  193. model.copyNode("/root/main/list3", "/root/init/list3");
  194. model.refresh();
  195. // 진료과 그리드
  196. for(var i=1; i < grd_orddeptlist.rows; i++){
  197. model.setValue("/root/main/list1/orddept[" + i + "]/chksel", "false");
  198. }
  199. grd_orddeptlist.fixedcellischeck(0,0) = false;
  200. grd_orddeptlist.disabled = false;
  201. // 진료의 그리드 초기화
  202. fSelectAtdoct();
  203. for(var i=1; i < grd_atdoctlist.rows; i++){
  204. model.setValue("/root/main/list2/atdoct[" + i + "]/chksel", "false");
  205. }
  206. grd_atdoctlist.fixedcellischeck(0,0) = false;
  207. grd_atdoctlist.disabled = false;
  208. grd_atdoctlist.refresh();
  209. // 병동 그리드
  210. for(var i=1; i < grd_wardlist.rows; i++){
  211. model.setValue("/root/main/list3/ward[" + i + "]/chksel", "true");
  212. }
  213. grd_wardlist.fixedcellischeck(0,0) = true;
  214. grd_wardlist.disabled = true;
  215. // 2. 병동별 선택
  216. } else if (chk == "1") {
  217. model.copyNode("/root/main/list1", "/root/init/list1");
  218. model.copyNode("/root/main/list2", "/root/init/list2");
  219. model.copyNode("/root/main/list3", "/root/init/list3");
  220. model.refresh();
  221. // 진료과 그리드
  222. for(var i=1; i < grd_orddeptlist.rows; i++){
  223. model.setValue("/root/main/list1/orddept[" + i + "]/chksel", "true");
  224. }
  225. grd_orddeptlist.fixedcellischeck(0,0) = true;
  226. grd_orddeptlist.disabled = true;
  227. // 진료의 그리드 초기화
  228. fSelectAtdoct();
  229. for(var j=1; j < grd_atdoctlist.rows; j++){
  230. model.setValue("/root/main/list2/atdoct[" + j + "]/chksel", "true");
  231. }
  232. grd_atdoctlist.fixedcellischeck(0,0) = true;
  233. grd_atdoctlist.disabled = true;
  234. grd_atdoctlist.refresh();
  235. // 병동 그리드
  236. for(var k=1; k < grd_wardlist.rows; k++){
  237. model.setValue("/root/main/list3/ward[" + k + "]/chksel", "false");
  238. }
  239. grd_wardlist.fixedcellischeck(0,0) = false;
  240. grd_wardlist.disabled = false;
  241. }
  242. grd_orddeptlist.refresh();
  243. grd_atdoctlist.refresh();
  244. grd_wardlist.refresh();
  245. }
  246. // 진료과를 선택하면 진료과에 해당하는 진료의 만 뿌려주게 한다.
  247. function fSelectAtdoct() {
  248. // 진료의 그리드 초기화
  249. model.removeNode("/root/main/list2");
  250. model.makeNode("/root/main/list2");
  251. model.copyNode("/root/main/list2", "/root/init/list2");
  252. model.refresh();
  253. grd_atdoctlist.fixedcellischeck(0,0) = false;
  254. var idx = 0;
  255. var rows = grd_orddeptlist.rows;
  256. var orddeptcdlist = new Array();
  257. // 진료과에서 선택된 진료코드를 담는다.
  258. for(var i = 1; i < grd_orddeptlist.rows; i++){
  259. var chksel = model.getValue("/root/main/list1/orddept[ " + i + "]/chksel");
  260. if(chksel == "true"){
  261. var orddeptcd = model.getValue("/root/main/list1/orddept[ " + i + "]/orddeptcd");
  262. orddeptcdlist[idx++] = orddeptcd;
  263. }
  264. }
  265. // 문자열을 만든다.
  266. var orddeptcd = "";
  267. for(var i = 0; i < idx; i++) {
  268. if(i == 0) {
  269. orddeptcd = "'" + orddeptcdlist[i] + "'";
  270. }
  271. else {
  272. orddeptcd = ""+ orddeptcd + "or orddeptcd='" + orddeptcdlist[i] + "'";
  273. }
  274. }
  275. // 진료의를 골라 보여준다.
  276. var fixedchk = grd_orddeptlist.fixedcellischeck(0,0);
  277. if (orddeptcd == "") {
  278. grd_atdoctlist.nodeset = "/root/main/list2/atdoct[orddeptcd='0']";
  279. }else if (orddeptcd != "" && fixedchk == true) {
  280. grd_atdoctlist.nodeset= "/root/main/list2/atdoct";
  281. }else if (orddeptcd != "" && fixedchk == false) {
  282. grd_atdoctlist.nodeset = "/root/init/list2/atdoct[orddeptcd=" + orddeptcd + "]";
  283. }
  284. // 체크상태를 모두 해제로 만든다.
  285. var nodeList = instance1.selectNodes("/root/main/list2/atdoct");
  286. var length = nodeList.length;
  287. for(var i = 1; i <= length; i++){
  288. model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "false");
  289. }
  290. }
  291. // 저장 전 데이터 검사
  292. function fValidateData() {
  293. // 1. 입력값 체크
  294. //var judgrid = model.getValue("/root/main/data1/judgrid");
  295. var judgrid = model.getValue("root/send/data1/judgrid");
  296. var judgflagcd = model.getValue("/root/main/data1/judgflagcd");
  297. var ioflagcd = model.getValue("/root/main/data1/ioflagcd");
  298. var insukindcd = model.getValue("/root/main/data1/insukindcd");
  299. var divrate = model.getValue("/root/main/data1/divrate");
  300. var divcnt = model.getValue("/root/main/data1/divcnt");
  301. var fromdd = model.getValue("/root/main/data1/fromdd");
  302. var todd = model.getValue("/root/main/data1/todd");
  303. // 기본 필수 입력값 검사
  304. if (judgrid == ""){
  305. messageBox("심사자ID는","I003");
  306. return false;
  307. }
  308. if(judgrid == "-"){
  309. messageBox("저장시 심사자는 전체를 선택할 수", "I004");
  310. return false;
  311. }
  312. if (divrate == ""){
  313. messageBox("분배율은","I003");
  314. return false;
  315. }
  316. if (divcnt == ""){
  317. messageBox("분배건수는","I003");
  318. return false;
  319. }
  320. if (fromdd == ""){
  321. messageBox("적용개시일은","I003");
  322. return false;
  323. }
  324. return true;
  325. }
  326. // 진료과-진료의별 또는 병동별 라디오버튼에 따른 저장데이터 만들기
  327. function fMakeSaveData() {
  328. // 1. 공통 입력값
  329. //var judgrid = model.getValue("/root/main/data1/judgrid");
  330. var judgrid = model.getValue("root/send/data1/judgrid");
  331. var judgflagcd = model.getValue("/root/main/data1/judgflagcd");
  332. var ioflagcd = model.getValue("/root/main/data1/ioflagcd");
  333. var insukindcd = model.getValue("/root/main/data1/insukindcd");
  334. var divrate = model.getValue("/root/main/data1/divrate");
  335. var divcnt = model.getValue("/root/main/data1/divcnt");
  336. var fromdd = model.getValue("/root/main/data1/fromdd");
  337. var todd = model.getValue("/root/main/data1/todd");
  338. var memo = model.getValue("/root/main/data1/memo");
  339. var flag = model.getValue("/root/hidden/rdosel");
  340. // 1. 진료과-진료의별 선택시
  341. if (flag == "0") {
  342. // case1. 진료과 전체, 진료의 전체
  343. if (grd_orddeptlist.fixedcellischeck(0,0) == true && grd_atdoctlist.fixedcellischeck(0,0) == true) {
  344. model.removenode("/root/send/list1");
  345. model.makeValue("/root/send/list1/divs[" + 1 + "]/judgrid " ,judgrid); // 심사자ID
  346. model.makeValue("/root/send/list1/divs[" + 1 + "]/judgflag " ,judgflagcd); // 심사구분
  347. model.makeValue("/root/send/list1/divs[" + 1 + "]/ioflag" ,ioflagcd); // 외래/입원
  348. model.makeValue("/root/send/list1/divs[" + 1 + "]/insukindflag" ,insukindcd); // 보험유형
  349. model.makeValue("/root/send/list1/divs[" + 1 + "]/divrate" ,divrate); // 분배율
  350. model.makeValue("/root/send/list1/divs[" + 1 + "]/divcnt" ,divcnt); // 분배건수
  351. model.makeValue("/root/send/list1/divs[" + 1 + "]/fromdd" ,fromdd); // 적용개시일
  352. model.makeValue("/root/send/list1/divs[" + 1 + "]/todd" ,todd); // 적용종료일
  353. model.makeValue("/root/send/list1/divs[" + 1 + "]/memo" ,memo); // 메모
  354. model.makeValue("/root/send/list1/divs[" + 1 + "]/orddeptcd" ,"-"); // 진료과(전체)
  355. model.makeValue("/root/send/list1/divs[" + 1 + "]/atdoct" ,"-"); // 진료의(전체)
  356. model.makeValue("/root/send/list1/divs[" + 1 + "]/ward" ,"-"); // 병동(전체)
  357. // case2. 진료과 전체, 진료의 선택
  358. } else if (grd_orddeptlist.fixedcellischeck(0,0) == true && grd_atdoctlist.fixedcellischeck(0,0) == false) {
  359. var insert = 1;
  360. model.removenode("/root/send/list1");
  361. var nodeList = instance1.selectNodes("/root/main/list2/atdoct");
  362. var length = nodeList.length;
  363. for(var i = 1; i <= length; i++){
  364. var chk = model.getValue("/root/main/list2/atdoct[" + i + "]/chksel");
  365. if (chk == "true") {
  366. model.makeValue("/root/send/list1/divs[" + insert + "]/judgrid " ,judgrid); // 심사자ID
  367. model.makeValue("/root/send/list1/divs[" + insert + "]/judgflag " ,judgflagcd); // 심사구분
  368. model.makeValue("/root/send/list1/divs[" + insert + "]/ioflag" ,ioflagcd); // 외래/입원
  369. model.makeValue("/root/send/list1/divs[" + insert + "]/insukindflag" ,insukindcd); // 보험유형
  370. model.makeValue("/root/send/list1/divs[" + insert + "]/divrate" ,divrate); // 분배율
  371. model.makeValue("/root/send/list1/divs[" + insert + "]/divcnt" ,divcnt); // 분배건수
  372. model.makeValue("/root/send/list1/divs[" + insert + "]/fromdd" ,fromdd); // 적용개시일
  373. model.makeValue("/root/send/list1/divs[" + insert + "]/todd" ,todd); // 적용종료일
  374. model.makeValue("/root/send/list1/divs[" + insert + "]/memo" ,memo); // 메모
  375. model.makeValue("/root/send/list1/divs[" + insert + "]/orddeptcd" ,model.getValue("/root/main/list2/atdoct[" + i + "]/orddeptcd")); // 진료과
  376. model.makeValue("/root/send/list1/divs[" + insert + "]/atdoct" ,model.getValue("/root/main/list2/atdoct[" + i + "]/atdoctid")); // 진료의
  377. model.makeValue("/root/send/list1/divs[" + insert + "]/ward" ,"-"); // 병동(전체)
  378. insert = insert + 1;
  379. }
  380. }
  381. // case3. 진료과 선택, 진료의 전체
  382. } else if (grd_orddeptlist.fixedcellischeck(0,0) == false && grd_atdoctlist.fixedcellischeck(0,0) == true) {
  383. var insert = 1;
  384. model.removenode("/root/send/list1");
  385. for (var i = 1; i < grd_orddeptlist.rows; i++) {
  386. var chk = model.getValue("/root/main/list1/orddept[" + i + "]/chksel");
  387. if (chk == "true") {
  388. model.makeValue("/root/send/list1/divs[" + insert + "]/judgrid " ,judgrid); // 심사자ID
  389. model.makeValue("/root/send/list1/divs[" + insert + "]/judgflag " ,judgflagcd); // 심사구분
  390. model.makeValue("/root/send/list1/divs[" + insert + "]/ioflag" ,ioflagcd); // 외래/입원
  391. model.makeValue("/root/send/list1/divs[" + insert + "]/insukindflag" ,insukindcd); // 보험유형
  392. model.makeValue("/root/send/list1/divs[" + insert + "]/divrate" ,divrate); // 분배율
  393. model.makeValue("/root/send/list1/divs[" + insert + "]/divcnt" ,divcnt); // 분배건수
  394. model.makeValue("/root/send/list1/divs[" + insert + "]/fromdd" ,fromdd); // 적용개시일
  395. model.makeValue("/root/send/list1/divs[" + insert + "]/todd" ,todd); // 적용종료일
  396. model.makeValue("/root/send/list1/divs[" + insert + "]/memo" ,memo); // 메모
  397. model.makeValue("/root/send/list1/divs[" + insert + "]/orddeptcd" ,model.getValue("/root/main/list1/orddept[" + i + "]/orddeptcd")); // 진료과
  398. model.makeValue("/root/send/list1/divs[" + insert + "]/atdoct" ,"-"); // 진료의(전체)
  399. model.makeValue("/root/send/list1/divs[" + insert + "]/ward" ,"-"); // 병동(전체)
  400. insert = insert + 1;
  401. }
  402. }
  403. // case4. 진료과 선택, 진료의 선택 (case2와 동일)
  404. } else {
  405. var insert = 1;
  406. model.removenode("/root/send/list1");
  407. var nodeList = instance1.selectNodes("/root/main/list2/atdoct");
  408. var length = nodeList.length;
  409. for(var i = 1; i <= length; i++){
  410. var chk = model.getValue("/root/main/list2/atdoct[" + i + "]/chksel");
  411. if (chk == "true") {
  412. model.makeValue("/root/send/list1/divs[" + insert + "]/judgrid " ,judgrid); // 심사자ID
  413. model.makeValue("/root/send/list1/divs[" + insert + "]/judgflag " ,judgflagcd); // 심사구분
  414. model.makeValue("/root/send/list1/divs[" + insert + "]/ioflag" ,ioflagcd); // 외래/입원
  415. model.makeValue("/root/send/list1/divs[" + insert + "]/insukindflag" ,insukindcd); // 보험유형
  416. model.makeValue("/root/send/list1/divs[" + insert + "]/divrate" ,divrate); // 분배율
  417. model.makeValue("/root/send/list1/divs[" + insert + "]/divcnt" ,divcnt); // 분배건수
  418. model.makeValue("/root/send/list1/divs[" + insert + "]/fromdd" ,fromdd); // 적용개시일
  419. model.makeValue("/root/send/list1/divs[" + insert + "]/todd" ,todd); // 적용종료일
  420. model.makeValue("/root/send/list1/divs[" + insert + "]/memo" ,memo); // 메모
  421. model.makeValue("/root/send/list1/divs[" + insert + "]/orddeptcd" ,model.getValue("/root/main/list2/atdoct[" + i + "]/orddeptcd")); // 진료과
  422. model.makeValue("/root/send/list1/divs[" + insert + "]/atdoct" ,model.getValue("/root/main/list2/atdoct[" + i + "]/atdoctid")); // 진료의
  423. model.makeValue("/root/send/list1/divs[" + insert + "]/ward" ,"-"); // 병동(전체)
  424. insert = insert + 1;
  425. }
  426. }
  427. }
  428. // 2. 병동별 선택 시
  429. } else if (flag == "1") {
  430. // case1. 병동 전체
  431. if (grd_wardlist.fixedcellischeck(0,0) == true) {
  432. model.removenode("/root/send/list1");
  433. model.makeValue("/root/send/list1/divs[" + 1 + "]/judgrid " ,judgrid); // 심사자ID
  434. model.makeValue("/root/send/list1/divs[" + 1 + "]/judgflag " ,judgflagcd); // 심사구분
  435. model.makeValue("/root/send/list1/divs[" + 1 + "]/ioflag" ,ioflagcd); // 외래/입원
  436. model.makeValue("/root/send/list1/divs[" + 1 + "]/insukindflag" ,insukindcd); // 보험유형
  437. model.makeValue("/root/send/list1/divs[" + 1 + "]/divrate" ,divrate); // 분배율
  438. model.makeValue("/root/send/list1/divs[" + 1 + "]/divcnt" ,divcnt); // 분배건수
  439. model.makeValue("/root/send/list1/divs[" + 1 + "]/fromdd" ,fromdd); // 적용개시일
  440. model.makeValue("/root/send/list1/divs[" + 1 + "]/todd" ,todd); // 적용종료일
  441. model.makeValue("/root/send/list1/divs[" + 1 + "]/memo" ,memo); // 메모
  442. model.makeValue("/root/send/list1/divs[" + 1 + "]/orddeptcd" ,"-"); // 진료과(전체)
  443. model.makeValue("/root/send/list1/divs[" + 1 + "]/atdoct" ,"-"); // 진료의(전체)
  444. model.makeValue("/root/send/list1/divs[" + 1 + "]/ward" ,"-"); // 병동(전체)
  445. // case2. 병동 선택
  446. } else if (grd_wardlist.fixedcellischeck(0,0) == false) {
  447. var insert = 1;
  448. model.removenode("/root/send/list1");
  449. for (var i = 1; i < grd_wardlist.rows; i++) {
  450. var chk = model.getValue("/root/main/list3/ward[" + i + "]/chksel");
  451. if (chk == "true") {
  452. model.makeValue("/root/send/list1/divs[" + insert + "]/judgrid " ,judgrid); // 심사자ID
  453. model.makeValue("/root/send/list1/divs[" + insert + "]/judgflag " ,judgflagcd); // 심사구분
  454. model.makeValue("/root/send/list1/divs[" + insert + "]/ioflag" ,ioflagcd); // 외래/입원
  455. model.makeValue("/root/send/list1/divs[" + insert + "]/insukindflag" ,insukindcd); // 보험유형
  456. model.makeValue("/root/send/list1/divs[" + insert + "]/divrate" ,divrate); // 분배율
  457. model.makeValue("/root/send/list1/divs[" + insert + "]/divcnt" ,divcnt); // 분배건수
  458. model.makeValue("/root/send/list1/divs[" + insert + "]/fromdd" ,fromdd); // 적용개시일
  459. model.makeValue("/root/send/list1/divs[" + insert + "]/todd" ,todd); // 적용종료일
  460. model.makeValue("/root/send/list1/divs[" + insert + "]/memo" ,memo); // 메모
  461. model.makeValue("/root/send/list1/divs[" + insert + "]/orddeptcd" ,"-"); // 진료과
  462. model.makeValue("/root/send/list1/divs[" + insert + "]/atdoct" ,"-"); // 진료의
  463. model.makeValue("/root/send/list1/divs[" + insert + "]/ward" ,model.getValue("/root/main/list3/ward[" + i + "]/wardcd")); // 병동(전체)
  464. insert = insert + 1;
  465. }
  466. }
  467. }
  468. }
  469. }
  470. function fAll(){
  471. var rows = grd_judginfo.rows;
  472. for(var i = 0; i <= rows; i++){
  473. var atdoct = model.getValue("/root/main/perchgrreflist/perchgrref["+ i + "]/atdoct");
  474. var orddept = model.getValue("/root/main/perchgrreflist/perchgrref[" + i +"]/orddeptcd");
  475. var ward = model.getValue("/root/main/perchgrreflist/perchgrref[" + i +"]/ward");
  476. // if(atdoct == '-'){
  477. // model.setValue("/root/main/perchgrreflist/perchgrref["+ i + "]/atdoct","전체");
  478. // }
  479. }
  480. }
  481. // 심사자배분 기준정보 목록 조회
  482. function fSearchJudgBaseInfoList() {
  483. var judgrid = model.getValue("/root/send/data1/judgrid");
  484. if(judgrid != ""){
  485. // 심사배분 기준정보 목록 초기화
  486. model.removeNodeset("/root/main/list5/divs");
  487. submit("TRPIB01502");
  488. //model.setValue("/root/main/data1/judgrid", judgrid);
  489. // 심사배분 기준정보 목록에 구분색상 입히기 (현재일자가 적용종료일보다 크다면 빨갛게 처리)
  490. var rows = grd_divslist.rows;
  491. for(var i = 1; i <= rows; i++){
  492. grd_divslist.rowStyle(i,"all","color") = "#000000";
  493. var todd = model.getValue("/root/main/list5/divs[" + i + "]/todd");
  494. var currentdate = getCurrentDate();
  495. if(todd < currentdate){
  496. grd_divslist.rowStyle(i,"all","color") = "#FF0000";
  497. }
  498. if(todd == currentdate){
  499. grd_divslist.rowStyle(i,"all","color") = "#0000CD";
  500. }
  501. }
  502. }
  503. }
  504. ]]>
  505. </script>
  506. </xhtml:head>
  507. <xhtml:body guideline="1,1281;2,784;" style="margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
  508. <group id="group1" style="left:0px; top:0px; width:1211px; height:13px; ">
  509. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:155px; height:13px; ">심사배분 기준정보 관리</caption>
  510. </group>
  511. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1211px; height:732px; ">
  512. <group id="group2" style="left:0px; top:10px; width:1211px; height:30px; vertical-align:top; ">
  513. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1211px; height:30px; "/>
  514. <caption id="caption2" class="search_name" style="left:15px; top:6px; width:73px; height:17px; ">담당자 :</caption>
  515. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1134px; top:5px; width:56px; height:22px; ">
  516. <caption>조회</caption>
  517. <script type="javascript" ev:event="DOMActivate">
  518. <![CDATA[
  519. fSearchJudgBaseInfoList();
  520. ]]>
  521. </script>
  522. </button>
  523. <line id="line13" class="line_4" style="x1:1109px; y1:5px; x2:1109px; y2:27px; "/>
  524. <select1 id="cmb_judgrid" ref="/root/send/data1/judgrid" navindex="1" appearance="minimal" style="left:95px; top:5px; width:150px; height:19px; ">
  525. <choices>
  526. <itemset nodeset="/root/main/list4/judg">
  527. <label ref="judgnm"/>
  528. <value ref="judgrid"/>
  529. </itemset>
  530. </choices>
  531. </select1>
  532. <caption id="caption13" class="search_name" style="left:860px; top:6px; width:125px; height:17px; ">종료건포함여부 :</caption>
  533. <select1 id="rdo_delinclude" ref="/root/send/data1/endyn" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:990px; top:7px; width:110px; height:15px; border-style:none; ">
  534. <choices>
  535. <item>
  536. <label>포함</label>
  537. <value>1</value>
  538. </item>
  539. <item>
  540. <label>미포함</label>
  541. <value>2</value>
  542. </item>
  543. </choices>
  544. </select1>
  545. <caption id="caption16" class="search_name" style="left:275px; top:6px; width:73px; height:17px; ">진료과 :</caption>
  546. <select1 id="cmb_orddeptcd" ref="/root/send/data1/orddeptcd" navindex="1" appearance="minimal" style="left:355px; top:5px; width:150px; height:19px; ">
  547. <choices>
  548. <itemset nodeset="/root/main/list6/orddeptcd">
  549. <label ref="orddeptnm"/>
  550. <value ref="orddeptcd"/>
  551. </itemset>
  552. </choices>
  553. </select1>
  554. </group>
  555. <caption id="caption1" class="tit_2" style="left:5px; top:263px; width:157px; height:13px; ">심사배분 기준정보 목록</caption>
  556. <line id="line1" class="line_1" style="x1:0px; y1:279px; x2:1211px; y2:279px; "/>
  557. <datagrid id="grd_divslist" nodeset="/root/main/list5/divs" autoresize="true" caption="judgrid^심사자^심사구분^외래/입원^보험유형^진료과^진료의^병동^분배율(%)^분배건수^적용개시일^적용종료일^oldtodd^메모" colsep="^" colwidth="80, 80, 60, 60, 80, 100, 80, 100, 60, 60, 100, 100, 100, 300" dataheight="23" defaultrows="0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:285px; width:1211px; height:441px; ">
  558. <col disabled="true" ref="judgrid" visibility="hidden"/>
  559. <col disabled="true" ref="judgnm"/>
  560. <col disabled="true" ref="judgflag" type="combo">
  561. <choices>
  562. <item>
  563. <label>전체</label>
  564. <value>-</value>
  565. </item>
  566. <item>
  567. <label>재원</label>
  568. <value>I</value>
  569. </item>
  570. <item>
  571. <label>사후</label>
  572. <value>A</value>
  573. </item>
  574. <item>
  575. <label>이의</label>
  576. <value>O</value>
  577. </item>
  578. </choices>
  579. </col>
  580. <col disabled="true" ref="ioflag" type="combo">
  581. <choices>
  582. <item>
  583. <label>전체</label>
  584. <value>-</value>
  585. </item>
  586. <item>
  587. <label>입원</label>
  588. <value>I</value>
  589. </item>
  590. <item>
  591. <label>외래</label>
  592. <value>O</value>
  593. </item>
  594. <item>
  595. <label>순수외래</label>
  596. <value>C</value>
  597. </item>
  598. <item>
  599. <label>외래퇴원</label>
  600. <value>D</value>
  601. </item>
  602. </choices>
  603. </col>
  604. <col disabled="true" ref="insukindcd" type="combo">
  605. <choices>
  606. <item>
  607. <label>전체</label>
  608. <value>-</value>
  609. </item>
  610. <item>
  611. <label>건강보험</label>
  612. <value>11</value>
  613. </item>
  614. <item>
  615. <label>의료급여1종</label>
  616. <value>21</value>
  617. </item>
  618. <item>
  619. <label>의료급여2종</label>
  620. <value>22</value>
  621. </item>
  622. <item>
  623. <label>자보</label>
  624. <value>31</value>
  625. </item>
  626. <item>
  627. <label>산재</label>
  628. <value>41</value>
  629. </item>
  630. <item>
  631. <label>공상</label>
  632. <value>42</value>
  633. </item>
  634. <item>
  635. <label>일반</label>
  636. <value>51</value>
  637. </item>
  638. <item>
  639. <label>외국인</label>
  640. <value>61</value>
  641. </item>
  642. <item>
  643. <label>임상시험</label>
  644. <value>71</value>
  645. </item>
  646. </choices>
  647. </col>
  648. <col disabled="true" ref="orddeptcd" type="combo" style="left:440px; top:23px; width:100px; height:23px; ">
  649. <choices>
  650. <!-- grid내의 콤보박스에도 ZBC001.js의 진료과 공통코드를 뿌려준다.-->
  651. <itemset nodeset="/root/hidden/list1/orddept">
  652. <label ref="orddeptnm"/>
  653. <value ref="orddeptcd"/>
  654. </itemset>
  655. </choices>
  656. </col>
  657. <col disabled="true" ref="atdoctid" type="combo">
  658. <choices>
  659. <itemset nodeset="/root/hidden/list2/atdoct">
  660. <label ref="atdoctnm"/>
  661. <value ref="atdoctid"/>
  662. </itemset>
  663. </choices>
  664. </col>
  665. <col disabled="true" ref="wardcd" type="combo">
  666. <choices>
  667. <itemset nodeset="/root/hidden/list3/ward">
  668. <label ref="wardnm"/>
  669. <value ref="wardcd"/>
  670. </itemset>
  671. </choices>
  672. </col>
  673. <col ref="divrate" type="input" style="text-align:center; "/>
  674. <col ref="divcnt" type="input" style="text-align:center; "/>
  675. <col disabled="true" ref="fromdd" type="inputdate"/>
  676. <col disabled="true" ref="todd" type="inputdate"/>
  677. <col disabled="true" ref="oldtodd" type="inputdate" visibility="hidden"/>
  678. <col disabled="false" ref="memo" type="inputbutton"/>
  679. <script type="javascript" ev:event="ondblclick">
  680. <![CDATA[
  681. // var judginforow = grd_judginfo.row;
  682. //
  683. // var judgrid = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/judgrid");
  684. // var judgflag = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/judgflag");
  685. // var ioflag = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/ioflag");
  686. // var insukindflag = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/insukindflag");
  687. // var atdoct = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/atdoct");
  688. // var orddeptcd = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/orddeptcd");
  689. // var ward = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/ward");
  690. // var divcnt = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/divcnt");
  691. // var divrate = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/divrate");
  692. // var fromdd = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/fromdd");
  693. // var todd = model.getValue("/root/main/perchgrreflist/perchgrref[" + judginforow + "]/todd");
  694. //
  695. // if(judgrid != "" && judgflag != "" && ioflag != "" && insukindflag != "" && atdoct != "" && orddeptcd != "" && ward != "" && divcnt != "" && divrate != "" && fromdd != "" && todd != ""){
  696. // model.setValue("/root/main/baseinfo/judgrid",judgrid);
  697. // model.setValue("/root/main/baseinfo/judgflag",judgflag);
  698. // model.setValue("/root/main/baseinfo/ioflag",ioflag);
  699. // model.setValue("/root/main/baseinfo/insukindflag",insukindflag);
  700. // model.setValue("/root/main/baseinfo/atdoct",atdoct);
  701. // model.setValue("/root/main/baseinfo/divcnt",divcnt);
  702. // model.setValue("/root/main/baseinfo/divrate",divrate);
  703. // model.setValue("/root/main/baseinfo/fromdd",fromdd);
  704. // model.setValue("/root/main/baseinfo/todd",todd);
  705. //
  706. // var judgflagcd = model.getValue("/root/main/baseinfo/judgflag");
  707. // model.setValue("/root/main/baseinfo/judgflagcd",judgflagcd);
  708. // model.refreshpart("/root/main/baseinfo/judgflagcd");
  709. //
  710. // var ioflagcd = model.getValue("/root/main/baseinfo/ioflag");
  711. // model.setValue("/root/main/baseinfo/ioflagcd",ioflagcd);
  712. // model.refreshpart("/root/main/baseinfo/ioflagcd");
  713. //
  714. // var insukindflagcd = model.getValue("/root/main/baseinfo/insukindflag");
  715. // model.setValue("/root/main/baseinfo/insukindflagcd",insukindflagcd);
  716. // model.refreshpart("/root/main/baseinfo/insukindflagcd");
  717. //
  718. // var orddeptcdlistrows = grd_orddeptcdlist.rows;
  719. //
  720. // for(var i = 1 ; i <= orddeptcdlistrows ; i++){
  721. // //grd_orddeptcdlist.row = i;
  722. // grd_orddeptcdlist.col = 1;
  723. // var orddeptcdlistcd = model.getValue("/root/main/orddeptlist/orddept[" + i +"]/orddeptcd");
  724. // if(orddeptcdlistcd != ""){
  725. // if(orddeptcd == orddeptcdlistcd){
  726. // model.setValue("/root/main/orddeptlist/orddept[" + i + "]/orddeptchk", "true");
  727. // }
  728. // if(orddeptcd != orddeptcdlistcd){
  729. // model.setValue("/root/main/orddeptlist/orddept[" + i + "]/orddeptchk", "false");
  730. // }
  731. // }
  732. // }
  733. //
  734. // var wardrows = grd_ward.rows;
  735. // for( i = 1 ; i <= wardrows ; i++){
  736. // grd_ward.col = 1;
  737. // var wardcd = model.getValue("/root/main/wardlist/ward[" + i +"]/wardcd");
  738. // if(wardcd != ""){
  739. // if(ward == wardcd){
  740. // model.setValue("/root/main/wardlist/ward[" + i + "]/wardchk", "true");
  741. // }
  742. // if(ward != wardcd){
  743. // model.setValue("/root/main/wardlist/ward[" + i + "]/wardchk", "false");
  744. // }
  745. // }
  746. // }
  747. //
  748. // model.refresh();
  749. // }
  750. ]]>
  751. </script>
  752. <script type="javascript" ev:event="onbuttonclick">
  753. <![CDATA[
  754. // 메모 인풋버튼 해당
  755. var gridCol = grd_divslist.col;
  756. var gridRow = grd_divslist.row;
  757. var gettextcnts = model.getValue("/root/main/list5/divs[" + gridRow + "]/memo");
  758. if(gridCol == "13"){
  759. if(gettextcnts != ""){
  760. txa_memo.value = gettextcnts;
  761. }
  762. grp_memo.visible = true;
  763. model.setFocus("iptmemo");
  764. }
  765. ]]>
  766. </script>
  767. <script type="javascript" ev:event="onaftersort">
  768. <![CDATA[
  769. grd_divslist.gridToInstance();
  770. ]]>
  771. </script>
  772. </datagrid>
  773. <button id="btn_excel" class="btn2_letter4" navindex="15" style="left:1060px; top:258px; width:64px; height:19px; ">
  774. <caption>엑셀저장</caption>
  775. <script type="javascript" ev:event="DOMActivate">
  776. <![CDATA[
  777. if (grd_divslist.rows == 1) {
  778. return;
  779. }
  780. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  781. if (fileName != "")
  782. {
  783. grd_divslist.saveExcel(fileName, "심사배분기준정보목록", true, true, "", "", true);
  784. }
  785. // model.download(getActionURL("TRPIB00407"),"심사배분기준정보목록DATA.csv");
  786. ]]>
  787. </script>
  788. </button>
  789. <caption id="caption3" class="tit_2" style="left:5px; top:53px; width:74px; height:13px; ">기준 정보</caption>
  790. <line id="line2" class="line_1" style="x1:0px; y1:68px; x2:225px; y2:68px; "/>
  791. <caption id="caption24" class="cell_1" style="left:2px; top:209px; width:101px; height:18px; vertical-align:middle; ">적용종료일</caption>
  792. <caption id="caption7" class="cell_1" style="left:2px; top:187px; width:101px; height:18px; vertical-align:middle; ">적용개시일</caption>
  793. <input id="ipt_todd" ref="/root/main/data1/todd" class="input_default" disabled="true" navindex="12" inputtype="date" style="left:104px; top:209px; width:121px; height:19px; "/>
  794. <caption id="caption4" class="cell_1" style="left:2px; top:142px; width:101px; height:19px; vertical-align:middle; ">분배율</caption>
  795. <input id="ipt_divrate" ref="/root/main/data1/divrate" class="input_default" navindex="9" autonext="false" maxlength="3" style="left:104px; top:142px; width:101px; height:19px; ">
  796. <script type="javascript" ev:event="DOMFocusOut">
  797. <![CDATA[
  798. var divrate = ipt_divrate.value;
  799. if(divrate > 100){
  800. input1.value= 100;
  801. }
  802. ]]>
  803. </script>
  804. </input>
  805. <input id="ipt_fromdd" ref="/root/main/data1/fromdd" class="input_default" navindex="11" inputtype="date" style="left:104px; top:187px; width:121px; height:19px; "/>
  806. <caption id="caption8" class="cell_1" style="left:2px; top:98px; width:101px; height:18px; vertical-align:middle; ">외래/입원</caption>
  807. <line id="line4" class="line_2" style="x1:0px; y1:96px; x2:225px; y2:96px; "/>
  808. <line id="line5" class="line_2" style="x1:0px; y1:207px; x2:225px; y2:207px; "/>
  809. <caption id="caption9" class="cell_1" style="left:2px; top:120px; width:101px; height:18px; vertical-align:middle; ">보험유형</caption>
  810. <caption id="caption10" style="left:209px; top:147px; width:16px; height:15px; vertical-align:middle; ">%</caption>
  811. <input id="ipt_insukindcd" ref="/root/main/data1/insukindcd" class="input_default" style="left:104px; top:120px; width:30px; height:19px; "/>
  812. <input id="ipt_ioflagcd" ref="/root/main/data1/ioflagcd" class="input_default" style="left:104px; top:98px; width:30px; height:19px; "/>
  813. <line id="line8" class="line_1" style="x1:230px; y1:68px; x2:1211px; y2:69px; "/>
  814. <button id="button4" class="btn2_letter4" navindex="4" visibility="hidden" style="left:1141px; top:47px; width:64px; height:19px; ">
  815. <caption>전체취소</caption>
  816. <script type="javascript" ev:event="DOMActivate">
  817. <![CDATA[
  818. for(var i=1; i < grd_orddeptcdlist.rows; i++){
  819. model.setValue("/root/main/orddeptlist/orddept[" + i + "]/orddeptchk", "false");
  820. //grd_orddeptcdlist.fixedcellischeck(0,1) = false;
  821. }
  822. for(var i=1; i < grd_ward.rows; i++){
  823. model.setValue("/root/main/wardlist/ward[" + i + "]/wardchk", "false");
  824. }
  825. for(var i=1; i < grd_atdoctchk.rows; i++){
  826. model.setValue("/root/init/orddrid/orddridlist[" + i + "]/sp", "false");
  827. }
  828. grd_orddeptcdlist.fixedcellischeck(0,0) = false;
  829. grd_ward.fixedcellischeck(0,0) = false;
  830. grd_atdoctchk.fixedcellischeck(0,0) = false;
  831. grd_atdoctchk.nodeset = "/root/init/orddrid/orddridlist[dp='0']";
  832. model.refresh();
  833. ]]>
  834. </script>
  835. </button>
  836. <button id="button5" class="btn2_letter4" navindex="3" visibility="hidden" style="left:1072px; top:47px; width:64px; height:19px; ">
  837. <caption>전체선택</caption>
  838. <script type="javascript" ev:event="DOMActivate">
  839. <![CDATA[
  840. for(var i=1; i < grd_orddeptcdlist.rows; i++){
  841. model.setValue("/root/main/orddeptlist/orddept[" + i + "]/orddeptchk", "true");
  842. //grd_orddeptcdlist.fixedcellischeck(0,1) = true;
  843. }
  844. for(var i=1; i < grd_ward.rows; i++){
  845. model.setValue("/root/main/wardlist/ward[" + i + "]/wardchk", "true");
  846. }
  847. fSeeAtdoct();
  848. for(var i=1; i < grd_atdoctchk.rows; i++){
  849. model.setValue("/root/init/orddrid/orddridlist[" + i + "]/sp", "true");
  850. }
  851. grd_orddeptcdlist.fixedcellischeck(0,0) = true;
  852. grd_ward.fixedcellischeck(0,0) = true;
  853. grd_atdoctchk.fixedcellischeck(0,0) = true;
  854. model.refresh();
  855. ]]>
  856. </script>
  857. </button>
  858. <caption id="caption11" class="tit_2" style="left:235px; top:53px; width:194px; height:14px; ">진료과별 / 진료의별 / 병동별</caption>
  859. <line id="line6" class="line_3" style="x1:1px; y1:251px; x2:226px; y2:251px; "/>
  860. <select1 id="cmb_insukind" ref="/root/main/data1/insukind" class="combo_default" navindex="7" appearance="minimal" style="left:135px; top:120px; width:88px; height:19px; ">
  861. <choices>
  862. <item>
  863. <label>전체</label>
  864. <value>-</value>
  865. </item>
  866. <item>
  867. <label>건강보험</label>
  868. <value>11</value>
  869. </item>
  870. <item>
  871. <label>의료급여1종</label>
  872. <value>21</value>
  873. </item>
  874. <item>
  875. <label>의료급여2종</label>
  876. <value>22</value>
  877. </item>
  878. <item>
  879. <label>자보</label>
  880. <value>31</value>
  881. </item>
  882. <item>
  883. <label>산재</label>
  884. <value>41</value>
  885. </item>
  886. <item>
  887. <label>공상</label>
  888. <value>42</value>
  889. </item>
  890. <item>
  891. <label>일반</label>
  892. <value>51</value>
  893. </item>
  894. <item>
  895. <label>외국인</label>
  896. <value>61</value>
  897. </item>
  898. <item>
  899. <label>임상시험</label>
  900. <value>71</value>
  901. </item>
  902. </choices>
  903. <script type="javascript" ev:event="xforms-select">
  904. <![CDATA[
  905. var insukindflagcd = model.getValue("/root/main/data1/insukind");
  906. model.setValue("/root/main/data1/insukindcd",insukindflagcd);
  907. model.refreshpart("/root/main/data1/insukindcd");
  908. ]]>
  909. </script>
  910. </select1>
  911. <select1 id="cmb_ioflag" ref="/root/main/data1/ioflag" class="combo_default" navindex="6" appearance="minimal" style="left:135px; top:98px; width:88px; height:19px; ">
  912. <choices>
  913. <item>
  914. <label>전체</label>
  915. <value>-</value>
  916. </item>
  917. <item>
  918. <label>입원</label>
  919. <value>I</value>
  920. </item>
  921. <item>
  922. <label>외래</label>
  923. <value>O</value>
  924. </item>
  925. <item>
  926. <label>순수외래</label>
  927. <value>C</value>
  928. </item>
  929. <item>
  930. <label>외래퇴원</label>
  931. <value>D</value>
  932. </item>
  933. </choices>
  934. <script type="javascript" ev:event="xforms-select">
  935. <![CDATA[
  936. var ioflagcd = model.getValue("/root/main/data1/ioflag");
  937. model.setValue("/root/main/data1/ioflagcd",ioflagcd);
  938. model.refreshpart("/root/main/data1/ioflagcd");
  939. ]]>
  940. </script>
  941. </select1>
  942. <caption id="caption12" class="cell_1" style="left:2px; top:74px; width:101px; height:19px; text-align:left; vertical-align:middle; ">심사구분</caption>
  943. <select1 id="cmb_judgflag" ref="/root/main/data1/judgflag" class="combo_default" navindex="5" appearance="minimal" style="left:135px; top:74px; width:88px; height:19px; ">
  944. <choices>
  945. <item>
  946. <label>전체</label>
  947. <value>-</value>
  948. </item>
  949. <item>
  950. <label>재원</label>
  951. <value>I</value>
  952. </item>
  953. <item>
  954. <label>사후</label>
  955. <value>A</value>
  956. </item>
  957. <item>
  958. <label>이의</label>
  959. <value>O</value>
  960. </item>
  961. </choices>
  962. <script type="javascript" ev:event="xforms-select">
  963. <![CDATA[
  964. var judgflagcd = model.getValue("/root/main/data1/judgflag");
  965. model.setValue("/root/main/data1/judgflagcd",judgflagcd);
  966. model.refreshpart("/root/main/data1/judgflagcd");
  967. ]]>
  968. </script>
  969. </select1>
  970. <input id="ipt_judgflagcd" ref="/root/main/data1/judgflagcd" class="input_default" style="left:104px; top:74px; width:30px; height:19px; "/>
  971. <line id="line7" class="line_2" style="x1:0px; y1:118px; x2:225px; y2:118px; "/>
  972. <line id="line9" class="line_2" style="x1:0px; y1:140px; x2:225px; y2:140px; "/>
  973. <line id="line10" class="line_2" style="x1:0px; y1:163px; x2:225px; y2:163px; "/>
  974. <line id="line11" class="line_2" style="x1:0px; y1:185px; x2:225px; y2:185px; "/>
  975. <input id="ipt_divcnt" ref="/root/main/data1/divcnt" class="input_default" navindex="10" maxlength="4" style="left:104px; top:165px; width:121px; height:19px; "/>
  976. <caption id="caption5" class="cell_1" style="left:2px; top:165px; width:101px; height:19px; vertical-align:middle; ">분배건수</caption>
  977. <datagrid id="grd_wardlist" nodeset="/root/main/list3/ward" visibility="visible" caption="선택^코드^명칭" colsep="^" colwidth="80, 80, 150" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" navindex="14" style="left:894px; top:73px; width:315px; height:177px; ">
  978. <col ref="chksel" type="checkbox"/>
  979. <col ref="wardcd" style="text-align:center; "/>
  980. <col ref="wardnm"/>
  981. <script type="javascript" ev:event="onclick">
  982. <![CDATA[
  983. if (grd_wardlist.isCell(event.target) && grd_wardlist.mouseRow >= grd_wardlist.fixedrows) {
  984. var fixcellchk = grd_wardlist.fixedcellischeck(0, 0);
  985. var row = grd_wardlist.row;
  986. // 전체선택 또는 해제
  987. if (row == 0) {
  988. if (fixcellchk == true) {
  989. for (var i = 1; i < grd_wardlist.rows; i++) {
  990. model.setValue("/root/main/list3/ward["+ i +"]/chksel", "true");
  991. }
  992. } else {
  993. for (var i = 1; i < grd_wardlist.rows; i++) {
  994. model.setValue("/root/main/list3/ward["+ i +"]/chksel", "false");
  995. }
  996. }
  997. } else {
  998. if (fixcellchk == true) {
  999. grd_wardlist.valueMatrix(grd_wardlist.row, grd_wardlist.colRef("chksel")) = "true";
  1000. }
  1001. }
  1002. }
  1003. ]]>
  1004. </script>
  1005. </datagrid>
  1006. <datagrid id="grd_orddeptlist" nodeset="/root/main/list1/orddept" autoresize="true" caption="선택^코드^명칭" colsep="^" colwidth="66, 80, 159" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" navindex="13" style="left:230px; top:73px; width:312px; height:177px; ">
  1007. <col ref="chksel" type="checkbox"/>
  1008. <col ref="orddeptcd" type="output" style="text-align:center; "/>
  1009. <col ref="orddeptnm" type="output"/>
  1010. <script type="javascript" ev:event="onclick">
  1011. <![CDATA[
  1012. if (grd_orddeptlist.isCell(event.target)) {
  1013. var fixcellchk = grd_orddeptlist.fixedcellischeck(0, 0);
  1014. var row = grd_orddeptlist.row;
  1015. // 전체선택 또는 해제
  1016. if (row == 0) {
  1017. if (fixcellchk == true) {
  1018. for (var i = 1; i < grd_orddeptlist.rows; i++) {
  1019. model.setValue("/root/main/list1/orddept["+ i +"]/chksel", "true");
  1020. }
  1021. } else {
  1022. for (var i = 1; i < grd_orddeptlist.rows; i++) {
  1023. model.setValue("/root/main/list1/orddept["+ i +"]/chksel", "false");
  1024. }
  1025. }
  1026. } else if (row > 0) {
  1027. if (fixcellchk == true) {
  1028. for (var i = 1; i < grd_orddeptlist.rows; i++) {
  1029. model.setValue("/root/main/list1/orddept["+ i +"]/chksel", "true");
  1030. }
  1031. } else {
  1032. }
  1033. }
  1034. model.refresh();
  1035. grd_orddeptlist.refresh();
  1036. // model.copyNode("/root/main/list2", "/root/init/list2");
  1037. // model.refresh();
  1038. // 진료과 선택에 따른 진료의 보여주기
  1039. fSelectAtdoct();
  1040. }
  1041. ]]>
  1042. </script>
  1043. </datagrid>
  1044. <line id="line14" class="line_3" style="x1:545px; y1:74px; x2:545px; y2:249px; "/>
  1045. <line id="line12" class="line_3" style="x1:890px; y1:74px; x2:890px; y2:249px; "/>
  1046. <datagrid id="grd_atdoctlist" nodeset="/root/main/list2/atdoct" autoresize="true" caption="선택^사번^성명^진료과^진료과코드" colsep="^" colwidth="51, 63, 92, 120, 100" dataheight="23" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" tooltip="true" navindex="13" style="left:549px; top:73px; width:336px; height:177px; ">
  1047. <col ref="chksel" type="checkbox"/>
  1048. <col ref="atdoctid" type="output" style="text-align:center; "/>
  1049. <col ref="atdoctnm" type="output"/>
  1050. <col ref="orddeptnm" type="output"/>
  1051. <col ref="orddeptcd" type="output" visibility="hidden"/>
  1052. <script type="javascript" ev:event="onclick">
  1053. <![CDATA[
  1054. if (grd_atdoctlist.isCell(event.target)) {
  1055. var fixcellchk = grd_atdoctlist.fixedcellischeck(0, 0);
  1056. var row = grd_atdoctlist.row;
  1057. // 전체선택 또는 해제
  1058. if (row == 0) {
  1059. if (fixcellchk == true) {
  1060. // 진료과 전체 선택이면 모두 선택
  1061. if (grd_orddeptlist.fixedcellischeck(0, 0) == true) {
  1062. var nodeList = instance1.selectNodes("/root/main/list2/atdoct");
  1063. var length = nodeList.length;
  1064. for(var i = 1; i <= length; i++){
  1065. model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "true");
  1066. }
  1067. // 진료과가 선택된 경우, 해당 진료과의 진료의들만 선택
  1068. } else {
  1069. for (var j = 1; j < grd_orddeptlist.rows; j++) {
  1070. var chk = model.getValue("/root/main/list1/orddept["+ j +"]/chksel");
  1071. if (chk == "true") {
  1072. var orddeptcd = model.getValue("/root/main/list1/orddept["+ j +"]/orddeptcd");
  1073. var nodeList = instance1.selectNodes("/root/main/list2/atdoct");
  1074. var length = nodeList.length;
  1075. for(var i = 1; i <= length; i++){
  1076. var orddeptcd2 = model.getValue("/root/main/list2/atdoct["+ i +"]/orddeptcd");
  1077. if (orddeptcd == orddeptcd2) {
  1078. model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "true");
  1079. }
  1080. }
  1081. // for (var i = 1; i < grd_atdoctlist.rows; i++) {
  1082. // var orddeptcd2 = model.getValue("/root/main/list2/atdoct["+ i +"]/orddeptcd");
  1083. // if (orddeptcd == orddeptcd2) {
  1084. // model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "true");
  1085. // } else {
  1086. // model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "false");
  1087. // }
  1088. // }
  1089. }
  1090. }
  1091. }
  1092. } else {
  1093. var nodeList = instance1.selectNodes("/root/main/list2/atdoct");
  1094. var length = nodeList.length;
  1095. for(var i = 1; i <= length; i++){
  1096. model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "false");
  1097. }
  1098. }
  1099. } else if (row > 0) {
  1100. if (fixcellchk == true) {
  1101. grd_atdoctlist.valueMatrix(grd_atdoctlist.row, grd_atdoctlist.colRef("chksel")) = "true";
  1102. } else {
  1103. if (grd_orddeptlist.fixedcellischeck(0, 0) != true) { // 왜 진료과 전체선택 여부에 따라 진료의 그리드가 체크가 되고 안되는지 의문... -> TF문의 필요(일단 막아놓았음)
  1104. var col = grd_atdoctlist.col;
  1105. if (col == grd_atdoctlist.colRef("chksel")) { // 체크 선택
  1106. var atdoctid = grd_atdoctlist.valueMatrix(grd_atdoctlist.row, grd_atdoctlist.colRef("atdoctid"));
  1107. var orddeptcd = grd_atdoctlist.valueMatrix(grd_atdoctlist.row, grd_atdoctlist.colRef("orddeptcd"));
  1108. var nodeList = instance1.selectNodes("/root/main/list2/atdoct");
  1109. var length = nodeList.length;
  1110. for(var i = 1; i <= length; i++){
  1111. var chksel = model.getValue("/root/main/list2/atdoct["+ i +"]/chksel");
  1112. var atdoctid2 = model.getValue("/root/main/list2/atdoct["+ i +"]/atdoctid");
  1113. var orddeptcd2 = model.getValue("/root/main/list2/atdoct["+ i +"]/orddeptcd");
  1114. if (atdoctid == atdoctid2 && orddeptcd == orddeptcd2) {
  1115. if (chksel == "true") {
  1116. model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "false");
  1117. } else {
  1118. model.setValue("/root/main/list2/atdoct["+ i +"]/chksel", "true");
  1119. }
  1120. i = length;
  1121. }
  1122. }
  1123. }
  1124. }
  1125. }
  1126. }
  1127. }
  1128. ]]>
  1129. </script>
  1130. </datagrid>
  1131. <button id="btn_end" class="btn2_letter4" navindex="3" style="left:992px; top:258px; width:64px; height:19px; ">
  1132. <caption>적용종료</caption>
  1133. <script type="javascript" ev:event="DOMActivate">
  1134. <![CDATA[
  1135. var chk = 0;
  1136. var todd2 = ipt_todd2.value;
  1137. for(var j = 0; j < grd_divslist.selectedRows; j++){
  1138. var fromdd = grd_divslist.valueMatrix(grd_divslist.selectedRow(j), grd_divslist.colRef("fromdd"));
  1139. if(todd2 < fromdd) {
  1140. chk = chk + 1;
  1141. }
  1142. }
  1143. if(chk > 0){
  1144. messageBox("입력하신 적용종료일이 적용개시일보다 \n앞선 DATA가 존재합니다.\n적용종료일 및 선택하신 목록을 확인하십시요. \n\n적용종료에 ","E009");
  1145. } else {
  1146. // 멀티라인 적용종료
  1147. model.removeNode("/root/hidden/list5/divs");
  1148. var todd = model.getValue("/root/hidden/todd"); // 적용종료일
  1149. var rows = grd_divslist.selectedRows;
  1150. if (messageBox("선택된 심사배분 기준정보를 적용종료", "S001") == 6) {
  1151. for (var i = 0; i < rows; i++) {
  1152. var sel = grd_divslist.selectedRow(i);
  1153. grd_divslist.rowstatus(sel) = 2;
  1154. model.setValue("/root/main/list5/divs[" + sel + "]/todd", todd);
  1155. }
  1156. var updtdata = getGridUpdateData(grd_divslist);
  1157. if (updtdata == "") {
  1158. } else {
  1159. model.makeValue("/root/hidden/list5/divs",updtdata);
  1160. }
  1161. // 적용종료일 변경하기
  1162. if ( submit("TXPIB01502") ) {
  1163. // 다시 조회
  1164. fSearchJudgBaseInfoList();
  1165. }
  1166. }
  1167. }
  1168. ]]>
  1169. </script>
  1170. </button>
  1171. <select1 id="rdo_chksel" ref="/root/hidden/rdosel" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:440px; top:49px; width:195px; height:19px; ">
  1172. <choices>
  1173. <item>
  1174. <label>진료과/진료의별</label>
  1175. <value>0</value>
  1176. </item>
  1177. <!-- 20100220 병동별은 적용불가능하여 삭제
  1178. <item>
  1179. <label>병동별</label>
  1180. <value>1</value>
  1181. </item>
  1182. -->
  1183. </choices>
  1184. <script type="javascript" ev:event="xforms-select">
  1185. <![CDATA[
  1186. fSetCheckSel();
  1187. ]]>
  1188. </script>
  1189. </select1>
  1190. <input id="ipt_todd2" ref="/root/hidden/todd" class="input_search" navindex="5" visibility="visible" inputtype="date" style="left:893px; top:258px; width:99px; height:19px; "/>
  1191. <button id="btn_delete" class="btn2_letter2" navindex="15" style="left:1168px; top:258px; width:42px; height:19px; ">
  1192. <caption>삭제</caption>
  1193. <script type="javascript" ev:event="DOMActivate">
  1194. <![CDATA[
  1195. // 멀티라인 삭제
  1196. model.removeNode("/root/hidden/list5/divs");
  1197. var rows = grd_divslist.selectedRows;
  1198. if (messageBox("선택된 심사배분 기준정보를 삭제", "S001") == 6) {
  1199. for (var i = 0; i < rows; i++) {
  1200. var sel = grd_divslist.selectedRow(i);
  1201. grd_divslist.rowstatus(sel) = 4;
  1202. }
  1203. var updtdata = getGridUpdateData(grd_divslist);
  1204. if (updtdata == "") {
  1205. } else {
  1206. model.makeValue("/root/hidden/list5/divs",updtdata);
  1207. }
  1208. // 삭제 하기
  1209. if ( submit("TXPIB01503") ) {
  1210. // 다시 조회
  1211. fSearchJudgBaseInfoList();
  1212. }
  1213. }
  1214. ]]>
  1215. </script>
  1216. </button>
  1217. <caption id="caption14" class="cell_1" style="left:2px; top:231px; width:101px; height:18px; vertical-align:middle; ">메모</caption>
  1218. <input id="ipt_memo" ref="/root/main/data1/memo" class="input_default" navindex="13" appearance="input" style="left:104px; top:231px; width:121px; height:19px; "/>
  1219. <line id="line3" class="line_2" style="x1:0px; y1:229px; x2:225px; y2:229px; "/>
  1220. <button id="button2" class="btn2_letter2" navindex="15" style="left:1125px; top:258px; width:42px; height:19px; ">
  1221. <caption>수정</caption>
  1222. <script type="javascript" ev:event="DOMActivate">
  1223. <![CDATA[
  1224. var row = grd_divslist.selectedRows;
  1225. var rows = grd_divslist.rows;
  1226. for(var i=0; i <= rows; i++){
  1227. grd_divslist.rowstatus(i) = 0;
  1228. }
  1229. if(row <= 0){
  1230. messageBox("수정할 목록을","C002");
  1231. return false;
  1232. }
  1233. grd_divslist.rowstatus(row) = 2;
  1234. var updtdata = getGridUpdateData(grd_divslist);
  1235. if (updtdata == "") {
  1236. } else {
  1237. model.makeValue("/root/send/setdata/update",updtdata);
  1238. }
  1239. // 수정하기
  1240. if ( submit("TXPIB01504") ) {
  1241. // 다시 조회
  1242. fSearchJudgBaseInfoList();
  1243. }
  1244. ]]>
  1245. </script>
  1246. </button>
  1247. </group>
  1248. <group id="group4" scroll="auto" style="left:0px; top:744px; width:1211px; height:40px; ">
  1249. <line id="line23" class="line_6" style="x1:0px; y1:3px; x2:1211px; y2:3px; "/>
  1250. <button id="btn_save" class="btn4_letter4" navindex="20" style="left:1058px; top:10px; width:80px; height:22px; ">
  1251. <caption>심사배분</caption>
  1252. <script type="javascript" ev:event="DOMActivate">
  1253. <![CDATA[
  1254. if (fValidateData()) {
  1255. // 1. 저장할 데이터 만들기
  1256. fMakeSaveData();
  1257. // 2. 기존에 들어간 심사기준정보인지 DB 중복확인 한다.
  1258. model.removenode("/root/hidden/data1");
  1259. model.makeNode("/root/hidden/data1");
  1260. submit("TRPIB01505");
  1261. var isDuplicated = model.getValue("/root/hidden/data1/dupl/isduplicated");
  1262. if (isDuplicated == "true") {
  1263. messageBox("이미 등록된 심사배분 기준정보","E008");
  1264. return false;
  1265. }
  1266. // 3. 데이터 저장
  1267. if (submit("TXPIB01501")) {
  1268. fSearchJudgBaseInfoList();
  1269. }
  1270. }
  1271. ]]>
  1272. </script>
  1273. </button>
  1274. <button id="btn_judginsert" class="btn4_letter5" navindex="20" style="left:966px; top:10px; width:92px; height:22px; ">
  1275. <caption>심사자등록</caption>
  1276. <script type="javascript" ev:event="DOMActivate">
  1277. <![CDATA[
  1278. // 심사자 등록 화면 띄우기
  1279. modal("SMPIB02100", "1", "10", "10", "SMPIB02100", "", "", "", "");
  1280. ]]>
  1281. </script>
  1282. </button>
  1283. <button id="btn_init" class="btn4_letter3" navindex="22" style="left:1138px; top:10px; width:68px; height:22px; ">
  1284. <caption>초기화</caption>
  1285. <script type="javascript" ev:event="DOMActivate">
  1286. <![CDATA[
  1287. fInitialize();
  1288. ]]>
  1289. </script>
  1290. </button>
  1291. </group>
  1292. <group id="grp_memo" visibility="hidden" style="left:935px; top:445px; width:261px; height:137px; ">
  1293. <shape id="roundrect3" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:2px; top:2px; width:255px; height:132px; "/>
  1294. <textarea id="txa_memo" ref="/root/hidden/memo" style="left:6px; top:24px; width:247px; height:84px; "/>
  1295. <caption id="caption15" class="search_name" style="left:6px; top:5px; width:115px; height:17px; ">메모입력조회</caption>
  1296. <button id="button1" class="btn4_letter2" style="left:137px; top:110px; width:56px; height:22px; ">
  1297. <caption>확인</caption>
  1298. <script type="javascript" ev:event="DOMActivate">
  1299. <![CDATA[
  1300. var gridRow = grd_divslist.row;
  1301. var value = model.getValue("/root/main/list5/divs[" + gridRow + "]/memo");
  1302. if(value != txa_memo.value){
  1303. model.setValue("/root/main/list5/divs[" + gridRow + "]/memo",txa_memo.currentText);
  1304. grd_divslist.addstatus(grd_divslist.row, "update");
  1305. }
  1306. txa_memo.value= "";
  1307. txa_memo.refresh();
  1308. grp_memo.visible = false;
  1309. ]]>
  1310. </script>
  1311. </button>
  1312. <button id="btn_cancel" class="btn4_letter2" style="left:196px; top:110px; width:56px; height:22px; ">
  1313. <caption>취소</caption>
  1314. <script type="javascript" ev:event="DOMActivate">
  1315. <![CDATA[
  1316. // iptmemo.value= ""; iptmemo.refresh();
  1317. iptmemo.value= "";
  1318. grp_memo.visible = false;
  1319. ]]>
  1320. </script>
  1321. </button>
  1322. </group>
  1323. <!-- 20060622 1008-->
  1324. </xhtml:body>
  1325. </xhtml:html>