SMPIB00200_선별심사코드관리.xrw 41 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087
  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>선별심사코드관리(SMPIB00200)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list1>
  11. <listjchk>
  12. <judgid/>
  13. <calcscorcd/>
  14. <ordnm/>
  15. <ioflag/>
  16. <workflag/>
  17. <seqno/>
  18. <fromdd/>
  19. <todd/>
  20. <diaginclyn/>
  21. <diagcdfrom/>
  22. <diagnmfrom/>
  23. <diagcdto/>
  24. <diagnmto/>
  25. <drugqty/>
  26. <dayno/>
  27. <totdrugqty/>
  28. <orddeptinclyn/>
  29. <orddeptcd/>
  30. <gndr/>
  31. <ageinclyn/>
  32. <agefrom/>
  33. <ageto/>
  34. <hosinoutflag/>
  35. <remfact/>
  36. <oldcalcscorcd/>
  37. <oldordnm/>
  38. <oldtodd/>
  39. <oldworkflag/>
  40. </listjchk>
  41. </list1>
  42. </main>
  43. <send>
  44. <item1>
  45. <itemjchk>
  46. <badd/>
  47. <workflag/>
  48. <ioflag/>
  49. <calcscorcd/>
  50. <endinclude/>
  51. <judgid/>
  52. <rownum/>
  53. </itemjchk>
  54. </item1>
  55. <item2>
  56. <grdsrchnm>
  57. <searchkind/>
  58. <iptsearch/>
  59. </grdsrchnm>
  60. </item2>
  61. <item3>
  62. <srchdiag>
  63. <basedd/>
  64. <diagcd/>
  65. <diagnm/>
  66. <selectedrdodiagkind/>
  67. </srchdiag>
  68. </item3>
  69. <list1>
  70. <listjchk/>
  71. </list1>
  72. <updatedata>
  73. <datalist/>
  74. </updatedata>
  75. </send>
  76. <init>
  77. <P0165list>
  78. <P0165>
  79. <cdnm/>
  80. <cdid/>
  81. </P0165>
  82. </P0165list>
  83. <judgerlist>
  84. <judger>
  85. <judgid/>
  86. <judgnm/>
  87. </judger>
  88. </judgerlist>
  89. </init>
  90. <hidden>
  91. <item>
  92. <orddeptcd/>
  93. </item>
  94. <sppiz00400>
  95. <rslt>
  96. <diagcd/>
  97. <diaghngnm/>
  98. <diagengnm/>
  99. </rslt>
  100. </sppiz00400>
  101. <smpic00200>
  102. <cond>
  103. <calcnm/>
  104. </cond>
  105. </smpic00200>
  106. </hidden>
  107. <init>
  108. <orddeptcd>
  109. <nm/>
  110. <cd>-</cd>
  111. </orddeptcd>
  112. </init>
  113. <temp>
  114. <calcdiagnm>
  115. <hngnm/>
  116. </calcdiagnm>
  117. <list1>
  118. <listjchk/>
  119. </list1>
  120. </temp>
  121. <tmp>
  122. <remfact>
  123. <text>
  124. <memo/>
  125. </text>
  126. </remfact>
  127. </tmp>
  128. </root>
  129. </instance>
  130. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  131. <submission id="TRPIB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="top" resultref="/root/main/list1"/>
  132. <submission id="TXPIB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/result"/>
  133. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" add="bottom" resultref="/root/hidden/tmp"/>
  134. <submission id="TRPIB00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item2/grdsrchnm" resultref="/root/temp"/>
  135. <submission id="TRPIB00203" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/judgerlist"/>
  136. <script type="javascript" ev:event="xforms-ready">
  137. <![CDATA[
  138. fInitialize();
  139. // 20070822 => 기초정보관리 화면 수정요청사항 - default 빈칸 자동 생성되어 있도록!(행추가 없이도 자동 한줄추가) : 2007.08.27 김건기
  140. fAddRow();
  141. ]]>
  142. </script>
  143. </model>
  144. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  145. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  146. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  147. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  148. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  149. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  150. <script type="javascript">
  151. <![CDATA[
  152. // 화면 open시와 초기화 버튼 클릭시) 화면 초기화 기능을 수행한다.
  153. function fInitialize() {
  154. grp_remfact.visible = false;
  155. var today = getCurrentDate(); // 현재 날짜를 얻어옴
  156. model.setValue("/root/send/item1/itemjchk/badd",today);
  157. model.setValue("/root/send/item1/itemjchk/workflag","-");
  158. model.setValue("/root/send/item1/itemjchk/ioflag","-");
  159. model.setValue("/root/send/item1/itemjchk/rownum",0);
  160. // grid를 인스턴스에 mapping후 인스턴스에 해당하는 빈줄 1줄이 생기므로 grid 초기화
  161. model.removeNodeset("/root/main/list1/listjchk");
  162. // (PAM.js) submission id="TRPAM00101" 를 사용하여 Combo item을 가져온다.
  163. pamGetDeptCDDrIDList();
  164. submit("TRPIB00203");
  165. addComboItem("cmb_judger","전체","-","above");
  166. //model.setValue("/root/init/judgerlist/judger[1]/judgnm","전체");
  167. //model.setValue("/root/init/judgerlist/judger[1]/judgid","-");
  168. model.setValue("/root/init/orddeptcd/orddeptcdlist[1]/nm","전체");
  169. model.setValue("/root/init/orddeptcd/orddeptcdlist[1]/cd","-");
  170. model.setValue("/root/send/item1/itemjchk/endinclude","2");
  171. var userid = getUserId();
  172. // var userid = "-"; // test
  173. model.setValue("/root/send/item1/itemjchk/judgid",userid);
  174. // 공통코드를 조회한다.
  175. // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
  176. // P0165 : 원내외구분
  177. zbcfGetCodeList(
  178. new Array("P0165"),
  179. new Array("/root/init/P0165list" ) );
  180. // 수가코드 input의 영문자는 모두 대문자
  181. ipt_calcscorcd.attribute("_chartype") = "upper";
  182. // 코드명(처방,상병)은 대문자로
  183. grd_asrtjudg.colAttribute ( 2, "_chartype" ) = "upper";
  184. grd_asrtjudg.colAttribute ( 10, "_chartype" ) = "upper";
  185. grd_asrtjudg.colAttribute ( 12, "_chartype" ) = "upper";
  186. // 데이터 작업을 위하여 임시로 막아 놓음 ... 박도형
  187. // btn_addRow.disabled = true; // 행추가버튼 비활성화
  188. // btn_delRow.disabled = true; // 행삭제버튼 비활성화
  189. // btn_save.disabled = true;
  190. model.refresh();
  191. cmb_judger.select(0);
  192. model.setFocus("cmb_judger");
  193. }
  194. // 조회와 관련된 입력된 데이터의 항목을 검증한다.(기준일자,작업구분,입원/외래,수가코드 모두 필수입력 항목임)
  195. function fCheckGetAsrtJudgCdInfo() {
  196. if (model.getValue("/root/send/item1/itemjchk/badd") == "") {
  197. messageBox("기준일자는","I003"); //기준일자는 필수입력입니다.
  198. return false;
  199. }
  200. if (model.getValue("/root/send/item1/itemjchk/workflag") == "") {
  201. messageBox("작업구분은","I003"); //작업구분은 필수입력입니다.
  202. return false;
  203. }
  204. if (model.getValue("/root/send/item1/itemjchk/ioflag") == "") {
  205. messageBox("입원/외래는","I003"); //입원/외래는 필수입력입니다.
  206. return false;
  207. }
  208. // 2008.01.17 박지욱 주석처리
  209. // if ((model.getValue("/root/send/item1/itemjchk/judgid") == "-" || model.getValue("/root/send/item1/itemjchk/judgid") == "" || model.getValue("/root/send/item1/itemjchk/judgid") == "PAM") && model.getValue("/root/send/item1/itemjchk/calcscorcd") == "") {
  210. // messageBox("심사자 전체 선택시, 수가코드는","I003"); //전체선택시, 수가코드는 필수입력입니다.
  211. // return false;
  212. // }
  213. return true;
  214. }
  215. // 저장과 관련된 입력된 데이터의 항목을 검증한다.
  216. function fCheckSaveAsrtJudgCdInfo() {
  217. for( i = grd_asrtjudg.fixedRows; i < grd_asrtjudg.rows ; i++ ) {
  218. var rowstatus = grd_asrtjudg.rowStatus(i);
  219. if (rowstatus == 1 || rowstatus == 3) {
  220. var changeflag = model.getValue("/root/main/list1/listjchk[" + i + "]/changeflag");
  221. if (changeflag == "I") {
  222. grd_asrtjudg.rowStatus(i) = 0;
  223. }
  224. }
  225. }
  226. var updtdata = getGridUpdateData(grd_asrtjudg);
  227. if (updtdata == "") { // 변경된 데이터가 없는경우
  228. messageBox("변경된 데이터가","I004"); // 변경된 데이이터가 없습니다.
  229. return false;
  230. }
  231. //data grid에 잘못된 값이 존재하는 지 체크한다. - fromdd, todd
  232. for( i = grd_asrtjudg.fixedRows; i < grd_asrtjudg.rows ; i++ ) {
  233. var today = getCurrentDate(); // 현재 날짜를 얻어옴
  234. var judgid = grd_asrtjudg.valueMatrix(i,grd_asrtjudg.colRef("judgid")); // 심사자
  235. var calcscorcd = grd_asrtjudg.valueMatrix(i,grd_asrtjudg.colRef("calcscorcd")); // 수가코드
  236. var ordnm = grd_asrtjudg.valueMatrix(i,grd_asrtjudg.colRef("ordnm")); // 수가명
  237. var fromdd = grd_asrtjudg.valueMatrix(i,grd_asrtjudg.colRef("fromdd")); // 시작일자
  238. var todd = grd_asrtjudg.valueMatrix(i,grd_asrtjudg.colRef("todd")); // 종료일자
  239. var diaginclyn = grd_asrtjudg.valueMatrix(i,grd_asrtjudg.colRef("diaginclyn")); // 상병포함여부
  240. var diagcdfrom = grd_asrtjudg.valueMatrix(i,grd_asrtjudg.colRef("diagcdfrom")); // 시작상병코드
  241. var diagcdto = grd_asrtjudg.valueMatrix(i,grd_asrtjudg.colRef("diagcdto")); // 종료상병코드
  242. var orddeptinclyn = grd_asrtjudg.valueMatrix(i,grd_asrtjudg.colRef("orddeptinclyn")); // 진료과포함여부
  243. var orddeptcd = grd_asrtjudg.valueMatrix(i,grd_asrtjudg.colRef("orddeptcd")); // 진료과코드
  244. var ageinclyn = grd_asrtjudg.valueMatrix(i,grd_asrtjudg.colRef("ageinclyn")); // 나이포함여부
  245. var agefrom = grd_asrtjudg.valueMatrix(i,grd_asrtjudg.colRef("agefrom")); // 시작나이
  246. var ageto = grd_asrtjudg.valueMatrix(i,grd_asrtjudg.colRef("ageto")); // 종료나이
  247. var status = grd_asrtjudg.rowStatus(i);
  248. if (status == 0) {
  249. continue;
  250. } else {
  251. // 심사자는 선택되어야 한다.
  252. if (judgid == "") {
  253. messageBox("심사자를","C002");
  254. return false;
  255. }
  256. // 수가코드는 필수 입력되어야 한다.
  257. if (calcscorcd == "") {
  258. messageBox("수가코드는","I003");
  259. return false;
  260. }
  261. // 종료일자는 필수 입력되어야 한다.
  262. if (todd == "") {
  263. messageBox("종료일자는","I003");
  264. return false;
  265. }
  266. // 시작일자가 종료일자보다 클 수 없습니다.
  267. if (todd < fromdd) {
  268. messageBox("시작일자가 종료일자보다 큽니다.","I999");
  269. return false;
  270. }
  271. // 상병포함여부가 체크 되었을때는 시작상병 코드가 입력되어야 한다.
  272. if (diaginclyn == "true") {
  273. if (isNull(diagcdfrom)) {
  274. messageBox("상병포함여부가 체크되었을때 시작상병 코드는","I003");
  275. return false;
  276. }
  277. if (isNull(diagcdto)) {
  278. messageBox("상병포함여부가 체크되었을때 종료상병 코드는","I003");
  279. return false;
  280. }
  281. }
  282. // 진료과포함여부가 체크 되었을때는 진료과 코드가 입력되어야 한다.
  283. if (orddeptinclyn == "true") {
  284. if (isNull(orddeptcd) || orddeptcd == "-") {
  285. messageBox("진료과포함여부가 체크되었을때 진료과는","I003");
  286. return false;
  287. }
  288. }
  289. // 나이포함여부가 체크 되었을때는 시작나이가 입력되어야 한다.
  290. if (orddeptinclyn == "true") {
  291. if (isNull(agefrom)) {
  292. messageBox("나이포함여부가 체크되었을때 시작나이는.","I003");
  293. return false;
  294. }
  295. if (isNull(ageto)) {
  296. messageBox("나이포함여부가 체크되었을때 종료나이는.","I003");
  297. return false;
  298. }
  299. if (agefrom > ageto) {
  300. messageBox("시작나이가 종료나이보다 많습니다.","I999");
  301. return false;
  302. }
  303. if (agefrom < 0 || ageto < 0 || agefrom > 150 || ageto > 150) {
  304. messgaeBox("나이 범위가 올바르지 않습니다.","I999");
  305. return false;
  306. }
  307. }
  308. }
  309. }
  310. return true;
  311. }
  312. // 상병조회 팝업에서 상병을 더블클릭 했을경우 상병 그리드에 반영, 상병명은 상병조회팝업의 상병명을 사용하지 않고 ICD10의 상병명 사용(상병조회팝업은 확장상병명)
  313. function fSetDiagCdNm() {
  314. model.setValue("/root/send/item2/grdsrchnm/searchkind","2");
  315. model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
  316. submit("TRPIB00202");
  317. model.setValue("/root/hidden/sppiz00400/rslt/diaghngnm",model.getValue("/root/temp/calcdiagnm/hngnm"));
  318. var row = grd_asrtjudg.row;
  319. var col = grd_asrtjudg.col;
  320. if (col == 10) {
  321. model.setValue("/root/main/list1/listjchk["+row+"]/diagcdfrom", model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
  322. model.setValue("/root/main/list1/listjchk["+row+"]/diagnmfrom", model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  323. }
  324. if (col ==12) {
  325. model.setValue("/root/main/list1/listjchk["+row+"]/diagcdto", model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
  326. model.setValue("/root/main/list1/listjchk["+row+"]/diagnmto", model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
  327. }
  328. //model.refresh();
  329. }
  330. function fSrchNm() {
  331. var row = grd_asrtjudg.row;
  332. var col = grd_asrtjudg.col;
  333. // 수가코드
  334. if (col == 2) {
  335. model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list1/listjchk["+row+"]/calcscorcd"));
  336. model.setValue("/root/send/item2/grdsrchnm/searchkind","1");
  337. }
  338. // 시작상병코드
  339. else if (col == 10){
  340. model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list1/listjchk["+row+"]/diagcdfrom"));
  341. model.setValue("/root/send/item2/grdsrchnm/searchkind","2");
  342. }
  343. // 종료상병코드
  344. else if (col == 12){
  345. model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list1/listjchk["+row+"]/diagcdto"));
  346. model.setValue("/root/send/item2/grdsrchnm/searchkind","2");
  347. }
  348. submit("TRPIB00202");
  349. var hngnm = model.getValue("/root/temp/calcdiagnm/hngnm");
  350. if (hngnm == "") {
  351. if (col == 2) {
  352. modal("SMPIC00200" ,"", "10", "10", "SMPIC00200","/root/send/item2/grdsrchnm/iptsearch", "/root/temp", "", "");
  353. model.setValue("/root/main/list1/listjchk["+row+"]/calcscorcd",model.getValue("/root/temp/picmmech/picmmech_calcscorcd"));
  354. model.setValue("/root/main/list1/listjchk["+row+"]/ordnm",model.getValue("/root/temp/picmmech/picmmech_hngnm"));
  355. }
  356. else {
  357. if (col == 10 || col == 12) {
  358. model.setValue("/root/send/item3/srchdiag/basedd", model.getValue("/root/send/item1/itemjchk/badd"));
  359. if (col == 10) {
  360. model.setValue("/root/send/item3/srchdiag/diagcd", model.getValue("/root/main/list1/listjchk["+row+"]/diagcdfrom"));
  361. } else {
  362. model.setValue("/root/send/item3/srchdiag/diagcd", model.getValue("/root/main/list1/listjchk["+row+"]/diagcdto"));
  363. }
  364. model.setValue("/root/send/item3/srchdiag/selectedrdodiagkind","1"); // icd10으로
  365. modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/send/item3/srchdiag", "/root/init", "", "");
  366. }
  367. }
  368. // 팝업에서 아무것도 선택하지 않았을 경우- 그리드의 내용을 지운다.
  369. if (col == 2) {
  370. var srchnm = model.getValue("/root/temp/picmmech/picmmech_hngnm");
  371. if (srchnm == "") {
  372. model.setValue("/root/main/list1/listjchk[" + row + " ]/calcscorcd","");
  373. model.setValue("/root/main/list1/listjchk[" + row + " ]/ordnm","");
  374. }
  375. }
  376. if (col == 10) {
  377. var srchnm = model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm");
  378. if (srchnm == "") {
  379. model.setValue("/root/main/list1/listjchk[" + row + " ]/diagcdfrom","");
  380. model.setValue("/root/main/list1/listjchk[" + row + " ]/diagnmfrom","");
  381. }
  382. }
  383. if (col == 12) {
  384. var srchnm = model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm");
  385. if (srchnm == "") {
  386. model.setValue("/root/main/list1/listjchk[" + row + " ]/diagcdto","");
  387. model.setValue("/root/main/list1/listjchk[" + row + " ]/diagnmto","");
  388. }
  389. }
  390. }
  391. else {
  392. if (col == 2) {
  393. model.setValue("/root/main/list1/listjchk["+row+"]/ordnm",model.getValue("/root/temp/calcdiagnm/hngnm"));
  394. }
  395. if (col == 10) {
  396. model.setValue("/root/main/list1/listjchk["+row+"]/diagnmfrom",model.getValue("/root/temp/calcdiagnm/hngnm"));
  397. var diagcdto = model.getValue("/root/main/list1/listjchk[" + row + " ]/diagcdto");
  398. var diagnmto = model.getValue("/root/main/list1/listjchk[" + row + " ]/diagnmto");
  399. if(diagcdto == "" && diagnmto == "") {
  400. model.setValue("/root/main/list1/listjchk[" + row + " ]/diagcdto",model.getValue("/root/main/list1/listjchk[" + row + " ]/diagcdfrom"));
  401. model.setValue("/root/main/list1/listjchk[" + row + " ]/diagnmto",model.getValue("/root/temp/calcdiagnm/hngnm"));
  402. }
  403. }
  404. if (col == 12) {
  405. model.setValue("/root/main/list1/listjchk["+row+"]/diagnmto",model.getValue("/root/temp/calcdiagnm/hngnm"));
  406. }
  407. }
  408. }
  409. function fCheckDelData() {
  410. var rows = grd_asrtjudg.rows;
  411. for(var i = 1; i <= rows; i++){
  412. grd_asrtjudg.rowStyle(i,"all","color") = "#000000";
  413. var todd = model.getValue("/root/main/list1/listjchk[" + i + "]/todd");
  414. var currentdate = getCurrentDate()
  415. if(todd <= currentdate) {
  416. grd_asrtjudg.rowStyle(i,"all","color") = "#FF0000";
  417. grd_asrtjudg.isReadOnly(i, 1, i, 24) = true;
  418. } else {
  419. grd_asrtjudg.isReadOnly(i, 1, i, 24) = false;
  420. }
  421. }
  422. //model.refresh();
  423. }
  424. function fCheckJudgrid(mode)
  425. {
  426. // 2008. 01. 30 박지욱 임시 주석처리 (행추가, 행삭제시에 아이디 체크하지 않고 저장가능하게 함)
  427. // var row = grd_asrtjudg.rows;
  428. //
  429. // if (mode == 1) { // 그리드에서 호출
  430. // var userid = model.getValue("/root/main/list1/listjchk[" + grd_asrtjudg.row + "]/judgid");
  431. // } else {
  432. // var userid = getUserId();
  433. // }
  434. //
  435. // // 그리드 활성화
  436. // for(var i = 1; i<row;i++) {
  437. // for(var j=1;j<row;j++) {
  438. // grd_asrtjudg.isReadOnly(i,j) = false;
  439. // }
  440. // }
  441. //
  442. // // 심사자가 세션userid와 같지 않으면
  443. // if(cmb_judger.value != userid ) {
  444. // btn_addRow.disabled = true; // 행추가버튼 비활성화
  445. // btn_delRow.disabled = true; // 행삭제버튼 비활성화
  446. // btn_save.disabled = true;
  447. //
  448. // // 그리드 비활성화
  449. // for(var i = 1; i<row;i++) {
  450. // for(var j=1;j<row;j++) {
  451. // grd_asrtjudg.isReadOnly(i,j) = true;
  452. // }
  453. // }
  454. // if (mode == 1 && userid == "-") {
  455. // btn_addRow.disabled = false; // 행추가버튼 활성화
  456. // btn_delRow.disabled = false; // 행삭제버튼 활성화
  457. // btn_save.disabled = false;
  458. //
  459. // for(var i = 1; i<row;i++) {
  460. // for(var j=1;j<row;j++) {
  461. // grd_asrtjudg.isReadOnly(i,j) = false;
  462. // }
  463. // }
  464. // }
  465. // }
  466. // // 심사자가 세션userid와 같으면
  467. // else {
  468. // btn_addRow.disabled = false; // 행추가버튼 활성화
  469. // btn_delRow.disabled = false; // 행삭제버튼 활성화
  470. // btn_save.disabled = false;
  471. // }
  472. }
  473. // 20070822 => 기초정보관리 화면 수정요청사항 - default 빈칸 자동 생성되어 있도록!(행추가 없이도 자동 한줄추가) : 2007.08.27 김건기
  474. function fAddRow() {
  475. if (!btn_addRow.disabled) {
  476. grd_asrtjudg.addRow();
  477. var today = getCurrentDate(); // 현재 날짜를 얻어옴
  478. var userid = getUserId();
  479. // 행추가후 기본적인 data를 넣어준다(default 값)
  480. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/judgid",userid);
  481. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/ioflag","-");
  482. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/workflag","-");
  483. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+" ]/fromdd", today);
  484. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+" ]/todd", "99991231");
  485. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/diaginclyn","false");
  486. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/drugqty",0);
  487. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/dayno",0);
  488. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/totdrugqty",0);
  489. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/orddeptcd","-");
  490. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/gndr","-");
  491. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/hosinoutflag","-");
  492. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/ageinclyn","false");
  493. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/orddeptinclyn","false");
  494. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/bfjudgflag","N");
  495. // 자동 행추가에 따른 변경 여부 확인을 위해 추가
  496. model.makeNode("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/changeflag");
  497. model.setValue("/root/main/list1/listjchk[" + grd_asrtjudg.row+ "]/changeflag","I");
  498. }
  499. }
  500. // 조회 및 다음페이지
  501. function fChangePage() {
  502. // 행추가 없이도 자동 한줄추가에 따른 자동 추가된 행 제외 부분 추가
  503. for( i = grd_asrtjudg.fixedRows; i < grd_asrtjudg.rows ; i++ ) {
  504. var rowstatus = grd_asrtjudg.rowStatus(i);
  505. if (rowstatus == 1 || rowstatus == 3) {
  506. var changeflag = model.getValue("/root/main/list1/listjchk[" + i + "]/changeflag");
  507. if (changeflag == "I") {
  508. grd_asrtjudg.rowStatus(i) = 0;
  509. }
  510. }
  511. }
  512. var updtdata = getGridUpdateData(grd_asrtjudg);
  513. if (updtdata != "") // 그리드에 작업중인 내용이 있을때 조회여부를 체크한다.
  514. {
  515. var ret = messageBox("그리드에 작업중인 내용이 있습니다. 조회를","Q003");
  516. if(ret != 6){
  517. return false;
  518. }
  519. }
  520. model.removeNodeset("/root/main/list1/listjchk");
  521. if ( fCheckGetAsrtJudgCdInfo()) { //입력항목을 체크
  522. submit("TRPIB00201");
  523. // 데이터 입력을 위하여 임시로 막아 놓음... 박도형
  524. //judgridCheck(0);
  525. fCheckDelData();
  526. // 그리드에 수가코드를 edit 할 수 없게 막아 놓음...박지욱
  527. // var row = grd_asrtjudg.rows;
  528. // for(var i = 1; i<row;i++) {
  529. // grd_asrtjudg.isReadOnly(i,2) = true;
  530. // }
  531. // 20070822 => 기초정보관리 화면 수정요청사항 - default 빈칸 자동 생성되어 있도록!(행추가 없이도 자동 한줄추가) : 2007.08.27 김건기
  532. fAddRow();
  533. }
  534. //grd_asrtjudg.row= 1;
  535. }
  536. ]]>
  537. </script>
  538. </xhtml:head>
  539. <xhtml:body guideline="1,1194;1,1591;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  540. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  541. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:134px; height:13px; ">선별 심사 코드 관리</caption>
  542. </group>
  543. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  544. <group id="group2" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
  545. <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  546. <button id="btn_srch" class="btn1_letter2" style="left:1128px; top:7px; width:56px; height:22px; ">
  547. <caption>조회</caption>
  548. <script type="javascript" ev:event="DOMActivate">
  549. <![CDATA[
  550. model.setValue("/root/send/item1/itemjchk/rownum",0);
  551. fChangePage();
  552. ]]>
  553. </script>
  554. </button>
  555. <line id="line13" class="line_4" style="x1:1118px; y1:7px; x2:1118px; y2:29px; "/>
  556. <caption id="caption2" class="search_name" style="left:180px; top:9px; width:86px; height:17px; ">기준일자 :</caption>
  557. <caption id="caption3" class="search_name" style="left:365px; top:9px; width:86px; height:17px; ">작업구분 :</caption>
  558. <input id="ipt_badd" ref="/root/send/item1/itemjchk/badd" class="input_search" inputtype="date" style="left:270px; top:8px; width:91px; height:19px; ">
  559. <script type="javascript" ev:event="xforms-value-changed">
  560. <![CDATA[
  561. // 데이터 입력작업을 위하여 임시로 막아 놓음
  562. // model.setFocus("cmb_workflag");
  563. ]]>
  564. </script>
  565. </input>
  566. <select1 id="cmb_workflag" ref="/root/send/item1/itemjchk/workflag" class="combo_search" appearance="minimal" style="left:454px; top:8px; width:60px; height:19px; ">
  567. <choices>
  568. <item>
  569. <label>전 체</label>
  570. <value>-</value>
  571. </item>
  572. <item>
  573. <label>사전</label>
  574. <value>11</value>
  575. </item>
  576. <item>
  577. <label>사후</label>
  578. <value>12</value>
  579. </item>
  580. </choices>
  581. <script type="javascript" ev:event="xforms-select">
  582. <![CDATA[
  583. model.setFocus("cmb_ioflag");
  584. ]]>
  585. </script>
  586. </select1>
  587. <select1 id="cmb_ioflag" ref="/root/send/item1/itemjchk/ioflag" class="combo_search" appearance="minimal" style="left:615px; top:8px; width:60px; height:19px; ">
  588. <choices>
  589. <item>
  590. <label>전 체</label>
  591. <value>-</value>
  592. </item>
  593. <item>
  594. <label>입 원</label>
  595. <value>I</value>
  596. </item>
  597. <item>
  598. <label>외 래</label>
  599. <value>O</value>
  600. </item>
  601. </choices>
  602. <script type="javascript" ev:event="xforms-select">
  603. <![CDATA[
  604. model.setFocus("ipt_calcscorcd");
  605. ]]>
  606. </script>
  607. </select1>
  608. <caption id="caption1" class="search_name" style="left:519px; top:9px; width:95px; height:17px; ">입원/외래 :</caption>
  609. <caption id="caption7" class="search_name" style="left:681px; top:9px; width:86px; height:17px; ">수가코드 :</caption>
  610. <input id="ipt_calcscorcd" ref="/root/send/item1/itemjchk/calcscorcd" class="input_search" imemode="disabled" inputtype="button" style="left:770px; top:8px; width:100px; height:19px; ">
  611. <script type="javascript" ev:event="onkeyup">
  612. <![CDATA[
  613. inputEnterKey("btn_srch", "DOMActivate");
  614. ]]>
  615. </script>
  616. <script type="javascript" ev:event="onbuttonclick">
  617. <![CDATA[
  618. modal("SMPIC00200" ,"", "10", "10", "SMPIC00200", "/root/send/item1/itemjchk/calcscorcd", "/root/temp", "", "");
  619. var calcscorcd = model.getValue("/root/temp/picmmech/picmmech_calcscorcd");
  620. if (calcscorcd != "") {
  621. model.setValue("/root/send/item1/itemjchk/calcscorcd", calcscorcd);
  622. ipt_calcscorcd.refresh();
  623. }
  624. ]]>
  625. </script>
  626. </input>
  627. <caption id="caption4" class="search_name" style="left:875px; top:9px; width:125px; height:17px; ">종료건포함여부 :</caption>
  628. <select1 id="rdo_delinclude" ref="/root/send/item1/itemjchk/endinclude" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:1005px; top:10px; width:110px; height:15px; border-style:none; ">
  629. <choices>
  630. <item>
  631. <label>포함</label>
  632. <value>1</value>
  633. </item>
  634. <item>
  635. <label>미포함</label>
  636. <value>2</value>
  637. </item>
  638. </choices>
  639. </select1>
  640. <caption id="caption8" class="search_name" style="left:10px; top:9px; width:75px; height:17px; ">심사자 :</caption>
  641. <select1 id="cmb_judger" ref="/root/send/item1/itemjchk/judgid" class="combo_search" appearance="minimal" style="left:85px; top:8px; width:90px; height:19px; ">
  642. <choices>
  643. <itemset nodeset="/root/init/judgerlist/judger">
  644. <label ref="judgnm"/>
  645. <value ref="judgid"/>
  646. </itemset>
  647. </choices>
  648. <script type="javascript" ev:event="xforms-select">
  649. <![CDATA[
  650. // 데이터 입력을 위하여 임시로 막아 놓음... 박도형
  651. // judgridCheck(0);
  652. ]]>
  653. </script>
  654. </select1>
  655. </group>
  656. <button id="btn_prev" class="icon_left" visibility="hidden" _auth="R" style="left:955px; top:50px; width:26px; height:19px; ">
  657. <script type="javascript" ev:event="DOMActivate">
  658. <![CDATA[
  659. var rownum = model.getValue("/root/send/item1/itemjchk/rownum");
  660. var prevnum = parseInt(rownum)-1;
  661. if (rownum >0) {
  662. model.setValue("/root/send/item1/itemjchk/rownum", prevnum);
  663. fChangePage();
  664. } else if (rownum == 0) {
  665. messageBox("첫 페이지입니다", "I008");
  666. return;
  667. }
  668. ]]>
  669. </script>
  670. <caption/>
  671. </button>
  672. <button id="btn_next" class="icon_right" visibility="hidden" _auth="R" style="left:985px; top:50px; width:26px; height:19px; ">
  673. <script type="javascript" ev:event="DOMActivate">
  674. <![CDATA[
  675. var rownum = model.getValue("/root/send/item1/itemjchk/rownum");
  676. if (rownum > -1) {
  677. var nextnum = parseInt(rownum)+1;
  678. model.setValue("/root/send/item1/itemjchk/rownum", nextnum);
  679. fChangePage();
  680. }
  681. ]]>
  682. </script>
  683. <caption/>
  684. </button>
  685. <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  686. <datagrid id="grd_asrtjudg" nodeset="/root/main/list1/listjchk" overflow="scroll" scroll="auto" caption="심사자^수가코드^수가명^입원/외래^작업구분^순번^시작일자^종료일자^상병포함여부^시작상병코드^시작상병명^종료상병코드^종료상병명^수량^일수^총투^진료과포함여부^진료과^성별^나이포함여부^시작나이^종료나이^원내원외구분^수납전심사여부^참고사항^oldcalcscorcd^oldordnm^oldtodd^oldworkflag^changeflag" colsep="^" colwidth="100, 120, 200, 70, 70, 45, 90, 90, 82, 80, 80, 80, 80, 50, 50, 50, 90, 90, 40, 90, 55, 55, 90, 100, 250, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" focuscolor="#b9e5fb" frozencols="8" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1194px; height:640px; ">
  687. <col disabled="true" ref="judgid" type="combo">
  688. <choices>
  689. <itemset nodeset="/root/init/judgerlist/judger">
  690. <label ref="judgnm"/>
  691. <value ref="judgid"/>
  692. </itemset>
  693. </choices>
  694. </col>
  695. <col ref="calcscorcd" type="inputbutton"/>
  696. <col ref="ordnm" type="input"/>
  697. <col ref="ioflag" type="combo">
  698. <choices>
  699. <item>
  700. <label>전체</label>
  701. <value>-</value>
  702. </item>
  703. <item>
  704. <label>입원</label>
  705. <value>I</value>
  706. </item>
  707. <item>
  708. <label>외래</label>
  709. <value>O</value>
  710. </item>
  711. </choices>
  712. </col>
  713. <col disabled="true" ref="workflag" type="combo">
  714. <choices>
  715. <item>
  716. <label>전체</label>
  717. <value>-</value>
  718. </item>
  719. <item>
  720. <label>사전심사</label>
  721. <value>11</value>
  722. </item>
  723. <item>
  724. <label>사후심사</label>
  725. <value>12</value>
  726. </item>
  727. </choices>
  728. </col>
  729. <col ref="seqno" type="output"/>
  730. <col ref="fromdd" type="inputdate"/>
  731. <col ref="todd" type="inputdate"/>
  732. <col ref="diaginclyn" type="checkbox"/>
  733. <col disabled="true" imemode="disabled" ref="diagcdfrom" type="inputbutton"/>
  734. <col ref="diagnmfrom" type="output" style="left:830px; top:23px; width:199px; height:23px; "/>
  735. <col disabled="true" imemode="disabled" ref="diagcdto" type="inputbutton"/>
  736. <col ref="diagnmto" type="output"/>
  737. <col ref="drugqty" type="input" visibility="hidden" style="left:1060px; top:23px; width:50px; height:23px; "/>
  738. <col ref="dayno" type="input" visibility="hidden"/>
  739. <col ref="totdrugqty" type="input" visibility="hidden"/>
  740. <col ref="orddeptinclyn" type="checkbox"/>
  741. <col id="col_orddeptcd" ref="orddeptcd" type="combo" style="left:570px; top:23px; width:100px; height:23px; ">
  742. <choices>
  743. <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
  744. <label ref="nm"/>
  745. <value ref="cd"/>
  746. </itemset>
  747. </choices>
  748. </col>
  749. <col ref="gndr" type="combo" visibility="hidden">
  750. <choices>
  751. <item>
  752. <label>전 체</label>
  753. <value>-</value>
  754. </item>
  755. <item>
  756. <label>M</label>
  757. <value>M</value>
  758. </item>
  759. <item>
  760. <label>F</label>
  761. <value>F</value>
  762. </item>
  763. </choices>
  764. </col>
  765. <col ref="ageinclyn" type="checkbox"/>
  766. <col ref="agefrom" type="input" format="###" maxlength="3"/>
  767. <col ref="ageto" type="input" format="###" maxlength="3"/>
  768. <col ref="hosinoutflag" type="combo" visibility="hidden">
  769. <choices>
  770. <itemset nodeset="/root/init/P0165list/P0165">
  771. <label ref="cdnm"/>
  772. <value ref="cdid"/>
  773. </itemset>
  774. </choices>
  775. </col>
  776. <col ref="bfjudgflag" type="combo" visibility="hidden">
  777. <choices>
  778. <item>
  779. <label>Y</label>
  780. <value>Y</value>
  781. </item>
  782. <item>
  783. <label>N</label>
  784. <value>N</value>
  785. </item>
  786. </choices>
  787. </col>
  788. <col ref="remfact" type="inputbutton"/>
  789. <col ref="oldcalcscorcd" visibility="hidden"/>
  790. <col ref="oldordnm" visibility="hidden"/>
  791. <col ref="oldtodd" visibility="hidden"/>
  792. <col ref="oldworkflag" visibility="hidden"/>
  793. <col ref="changeflag" visibility="hidden"/>
  794. <script type="javascript" ev:event="onbuttonclick">
  795. <![CDATA[
  796. var col = grd_asrtjudg.col;
  797. var row = grd_asrtjudg.row;
  798. if ( col == 2 || col == 10 || col == 12) { // 수가코드, 시작상병코드, 종료상병코드
  799. fSrchNm();
  800. }
  801. if (col == 24) { // 참고사항
  802. model.setValue("/root/tmp/remfact/text/memo",model.getValue("/root/main/list1/listjchk[" + row + " ]/remfact"));
  803. ipt_remfact.refresh();
  804. grp_remfact.visible= true;
  805. }
  806. var rowstatus = grd_asrtjudg.rowStatus(row);
  807. if (rowstatus == 1 || rowstatus == 3) {
  808. model.setValue("/root/main/list1/listjchk[" + row+ "]/changeflag","U");
  809. //model.refresh();
  810. }
  811. ]]>
  812. </script>
  813. <script type="javascript" ev:event="onendedit">
  814. <![CDATA[
  815. var col = grd_asrtjudg.col;
  816. var row = grd_asrtjudg.row;
  817. if ( col == 2 || col == 10 || col == 12) {
  818. fSrchNm();
  819. }
  820. var rowstatus = grd_asrtjudg.rowStatus(row);
  821. if (rowstatus == 1 || rowstatus == 3) {
  822. model.setValue("/root/main/list1/listjchk[" + row+ "]/changeflag","U");
  823. //model.refresh();
  824. }
  825. ]]>
  826. </script>
  827. <script type="javascript" ev:event="xforms-value-changed">
  828. <![CDATA[
  829. var col = grd_asrtjudg.col;
  830. var row = grd_asrtjudg.row;
  831. // 심사자 변경시 심사자 체크
  832. if (col == 1) {
  833. fCheckJudgrid(1);
  834. }
  835. // 기존 수가 변경시 변경 못하게 처리, row 변경상태도 안되게 처리
  836. else if (col == 2) {
  837. var newcalcscorcd = grd_asrtjudg.valueMatrix(row, grd_asrtjudg.colRef("calcscorcd"));
  838. var oldcalcscorcd = grd_asrtjudg.valueMatrix(row, grd_asrtjudg.colRef("oldcalcscorcd"));
  839. if (oldcalcscorcd != "" && oldcalcscorcd != newcalcscorcd) {
  840. messageBox("수가코드는 변경", "E001");
  841. grd_asrtjudg.valueMatrix(row, grd_asrtjudg.colRef("calcscorcd")) = oldcalcscorcd;
  842. grd_asrtjudg.rowstatus(row) = 0;
  843. grd_asrtjudg.gridToInstance();
  844. }
  845. }
  846. // 기존 수가명 변경 못하게 처리, row 변경상태도 안되게 처리
  847. else if (col == 3) {
  848. var oldordnm = grd_asrtjudg.valueMatrix(row, grd_asrtjudg.colRef("oldordnm"));
  849. var newordnm = grd_asrtjudg.valueMatrix(row, grd_asrtjudg.colRef("ordnm"));
  850. if (oldordnm != "" && oldordnm != newordnm) {
  851. messageBox("수가명은 변경", "E001");
  852. grd_asrtjudg.valueMatrix(row, grd_asrtjudg.colRef("ordnm")) = oldordnm;
  853. grd_asrtjudg.rowstatus(row) = 0;
  854. grd_asrtjudg.gridToInstance();
  855. }
  856. }
  857. var rowstatus = grd_asrtjudg.rowStatus(row);
  858. if (rowstatus == 1 || rowstatus == 3) {
  859. model.setValue("/root/main/list1/listjchk[" + row+ "]/changeflag","U");
  860. //model.refresh();
  861. }
  862. ]]>
  863. </script>
  864. <script type="javascript" ev:event="onaftersort">
  865. <![CDATA[
  866. grd_asrtjudg.gridToInstance();
  867. ]]>
  868. </script>
  869. </datagrid>
  870. <caption id="caption5" class="tit_2" style="left:5px; top:55px; width:136px; height:13px; ">선별 심사 코드 목록</caption>
  871. <button id="btn_delRow" class="btn2_letter3" style="left:1140px; top:50px; width:53px; height:19px; ">
  872. <caption>행삭제</caption>
  873. <script type="javascript" ev:event="DOMActivate">
  874. <![CDATA[
  875. var row = grd_asrtjudg.row;
  876. if (row < 1) {
  877. messageBox("먼저 삭제할 내역을 선택하십시요!","E999","");
  878. return;
  879. }
  880. grd_asrtjudg.deleteitem(row);
  881. /*
  882. var rowstatus = grd_asrtjudg.rowstatus(row);
  883. if (rowstatus == 1 || rowstatus == 3) {
  884. grd_asrtjudg.deleteRow(row,true);
  885. } else {
  886. grd_asrtjudg.addstatus(row, "delete");
  887. }
  888. */
  889. ]]>
  890. </script>
  891. </button>
  892. <button id="button2" class="btn2_letter4" style="left:1015px; top:50px; width:64px; height:19px; ">
  893. <caption>엑셀저장</caption>
  894. <script type="javascript" ev:event="DOMActivate">
  895. <![CDATA[
  896. if (grd_asrtjudg.rows == 1) {
  897. return;
  898. }
  899. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  900. if (fileName != "")
  901. {
  902. grd_asrtjudg.saveExcel(fileName, "SheetName", true, true, "", "", true);
  903. messageBox("EXCEL 저장이 완료되었습니다.","I999");
  904. }
  905. ]]>
  906. </script>
  907. </button>
  908. <button id="btn_addRow" class="btn2_letter3" style="left:1083px; top:50px; width:53px; height:19px; ">
  909. <caption>행추가</caption>
  910. <script type="javascript" ev:event="DOMActivate">
  911. <![CDATA[
  912. // 20070822 => 기초정보관리 화면 수정요청사항 - default 빈칸 자동 생성되어 있도록!(행추가 없이도 자동 한줄추가) : 2007.08.27 김건기
  913. fAddRow();
  914. ]]>
  915. </script>
  916. </button>
  917. <group id="grp_remfact" visibility="hidden" style="left:410px; top:255px; width:415px; height:275px; ">
  918. <shape id="roundrect3" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:2px; top:2px; width:413px; height:272px; "/>
  919. <textarea id="ipt_remfact" ref="/root/tmp/remfact/text/memo" style="left:6px; top:24px; width:404px; height:216px; "/>
  920. <caption id="caption15" class="search_name" style="left:6px; top:5px; width:154px; height:17px; ">참고사항 입력/조회</caption>
  921. <button id="btn_confirm" class="btn4_letter2" style="left:295px; top:245px; width:56px; height:22px; ">
  922. <caption>확인</caption>
  923. <script type="javascript" ev:event="DOMActivate">
  924. <![CDATA[
  925. var row = grd_asrtjudg.row;
  926. var value = model.getValue("/root/main/list1/listjchk[" + row + "]/remfact");
  927. if(value != ipt_remfact.value){
  928. model.setValue("/root/main/list1/listjchk[" + row + "]/remfact",ipt_remfact.currentText);
  929. grd_asrtjudg.addstatus(grd_asrtjudg.row, "update");
  930. }
  931. ipt_remfact.value= "";
  932. ipt_remfact.refresh();
  933. grp_remfact.visible = false;
  934. ]]>
  935. </script>
  936. </button>
  937. <button id="btn_cancel" class="btn4_letter2" style="left:354px; top:245px; width:56px; height:22px; ">
  938. <caption>취소</caption>
  939. <script type="javascript" ev:event="DOMActivate">
  940. <![CDATA[
  941. ipt_remfact.value= "";
  942. grp_remfact.visible = false;
  943. ]]>
  944. </script>
  945. </button>
  946. </group>
  947. </group>
  948. <group id="grp_btn" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  949. <line id="line23" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  950. <button id="button5" class="btn4_letter3" style="left:1125px; top:5px; width:68px; height:22px; ">
  951. <caption>초기화</caption>
  952. <script type="javascript" ev:event="DOMActivate">
  953. <![CDATA[
  954. fInitialize();
  955. // 20070822 => 기초정보관리 화면 수정요청사항 - default 빈칸 자동 생성되어 있도록!(행추가 없이도 자동 한줄추가) : 2007.08.27 김건기
  956. fAddRow();
  957. ]]>
  958. </script>
  959. </button>
  960. <button id="btn_save" class="btn4_letter2" style="left:1064px; top:5px; width:56px; height:22px; ">
  961. <caption>저장</caption>
  962. <script type="javascript" ev:event="DOMActivate">
  963. <![CDATA[
  964. if (fCheckSaveAsrtJudgCdInfo()) { // 저장될 데이터의 유효성 체크
  965. model.setValue("/root/send/updatedata/datalist",grd_asrtjudg.getupdatedata());
  966. if ( submit("TXPIB00201") ) {
  967. model.removeNodeset("/root/main/list1/listjchk");
  968. submit("TRPIB00201");
  969. fCheckDelData();
  970. grd_asrtjudg.clearStatus(); // submit() 성공하면 그리드의 i,u 상태 제거
  971. // 20070822 => 기초정보관리 화면 수정요청사항 - default 빈칸 자동 생성되어 있도록!(행추가 없이도 자동 한줄추가) : 2007.08.27 김건기
  972. fAddRow();
  973. messageBox("정상적으로 저장되었습니다.", "I999");
  974. }
  975. }
  976. ]]>
  977. </script>
  978. </button>
  979. <button id="button1" class="btn4_letter5" style="left:965px; top:5px; width:56px; height:22px; ">
  980. <caption>다음페이지</caption>
  981. <script type="javascript" ev:event="DOMActivate">
  982. <![CDATA[
  983. var rownum = model.getValue("/root/send/item1/itemjchk/rownum");
  984. if (rownum > -1) {
  985. var nextnum = parseInt(rownum)+1;
  986. model.setValue("/root/send/item1/itemjchk/rownum", nextnum);
  987. fChangePage();
  988. }
  989. ]]>
  990. </script>
  991. </button>
  992. </group>
  993. </xhtml:body>
  994. </xhtml:html>