SMRSD04600_신규재료 심사.xrw 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209
  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. <init>
  10. <instcd>012</instcd>
  11. <reqdeptcd/>
  12. <reqdeptnm/>
  13. <radio1>
  14. <label>법정급여</label>
  15. <value>1</value>
  16. <label>법정비급여</label>
  17. <value>2</value>
  18. <label>의료적비급여</label>
  19. <value>3</value>
  20. <label>한시적비급여</label>
  21. <value>4</value>
  22. <label>징수불가</label>
  23. <value>5</value>
  24. </radio1>
  25. <radio2>
  26. <label>결정신청유</label>
  27. <value>1</value>
  28. <label>결정신청무</label>
  29. <value>2</value>
  30. </radio2>
  31. <reqtodd/>
  32. <fromreqdd/>
  33. <edicd/>
  34. <goodnm/>
  35. <rdo_confirm>
  36. <label>A</label>
  37. <value/>
  38. <label>B</label>
  39. <value>1</value>
  40. <label>C</label>
  41. <value>2</value>
  42. <label>D</label>
  43. <value>3</value>
  44. <label>E</label>
  45. <value>4</value>
  46. <label>F</label>
  47. <value>5</value>
  48. </rdo_confirm>
  49. </init>
  50. <send>
  51. <sendlist>
  52. <instcd/>
  53. <reqdeptcd/>
  54. <reqdeptnm/>
  55. <reqfromdd/>
  56. <reqtodd/>
  57. <goodflag/>
  58. <edicd/>
  59. <goodnm/>
  60. <newmatrprcsstat/>
  61. <queryseqno/>
  62. </sendlist>
  63. <newmeterialdetail/>
  64. </send>
  65. <main>
  66. <list>
  67. <newmeterialdetail>
  68. <instcd/>
  69. <reqdd/>
  70. <reqseqno/>
  71. <goodflag/>
  72. <goodengnm/>
  73. <goodhngnm/>
  74. <goodspec/>
  75. <goodmodel/>
  76. <prodplce/>
  77. <prodplcenm/>
  78. <prodcmpycd/>
  79. <prodcmpynm/>
  80. <maincustlastsuplplce/>
  81. <maincust/>
  82. <chrgid/>
  83. <chrgmpphon/>
  84. <chrgtel/>
  85. <purcunit/>
  86. <reqqty/>
  87. <mmavguseqty/>
  88. <useschedd/>
  89. <edicd/>
  90. <reqresnusge/>
  91. <smlartymatruseprestcond/>
  92. <anohospusestat/>
  93. <newmatrusgeimprvpnt/>
  94. <reqdeptcd/>
  95. <reqdeptnm/>
  96. <reqdepttel/>
  97. <reqpsnid/>
  98. <reqpsnnm/>
  99. <insuyn/>
  100. <undecicurematr/>
  101. <undecicurematrreqdt/>
  102. <actamtincl/>
  103. <judgcmt/>
  104. <purcteamcmt/>
  105. <newmatrprcsstat/>
  106. <lrgcd/>
  107. <mdlcd/>
  108. <smlcd/>
  109. <goodcd/>
  110. <smlartygoodhngnm/>
  111. <smlartygoodengnm/>
  112. <calcscorcd/>
  113. <smlartyamt/>
  114. <fstrgstrid/>
  115. <fstrgstdt/>
  116. <lastupdtrid/>
  117. <lastupdtdt/>
  118. </newmeterialdetail>
  119. </list>
  120. <newmeterialdetail>
  121. <instcd/>
  122. <reqdd/>
  123. <reqseqno/>
  124. <goodflag/>
  125. <goodengnm/>
  126. <goodhngnm/>
  127. <goodspec/>
  128. <goodmodel/>
  129. <prodplce/>
  130. <prodplcenm/>
  131. <prodcmpycd/>
  132. <prodcmpynm/>
  133. <maincustlastsuplplce/>
  134. <maincust/>
  135. <chrgid/>
  136. <chrgmpphon/>
  137. <chrgtel/>
  138. <purcunit/>
  139. <reqqty/>
  140. <mmavguseqty/>
  141. <useschedd/>
  142. <edicd/>
  143. <reqresnusge/>
  144. <smlartymatruseprestcond/>
  145. <anohospusestat/>
  146. <newmatrusgeimprvpnt/>
  147. <reqdeptcd/>
  148. <reqdeptnm/>
  149. <reqdepttel/>
  150. <reqpsnid/>
  151. <reqpsnnm/>
  152. <insuyn/>
  153. <undecicurematr/>
  154. <undecicurematrreqdt/>
  155. <actamtincl/>
  156. <judgcmt/>
  157. <purcteamcmt/>
  158. <newmatrprcsstat/>
  159. <lrgcd/>
  160. <mdlcd/>
  161. <smlcd/>
  162. <goodcd/>
  163. <smlartygoodhngnm/>
  164. <smlartygoodengnm/>
  165. <calcscorcd/>
  166. <smlartyamt/>
  167. <fstrgstrid/>
  168. <fstrgstdt/>
  169. <lastupdtrid/>
  170. <lastupdtdt/>
  171. <deliveunit/>
  172. <goodunitcost/>
  173. <reqchrgid/>
  174. <reqchrgnm/>
  175. </newmeterialdetail>
  176. </main>
  177. <temp/>
  178. <hidden/>
  179. </root>
  180. </instance>
  181. <script type="javascript" ev:event="xforms-ready">
  182. <![CDATA[
  183. //화면 Control을 초기화한다
  184. fInitialize();
  185. misfMsterDetailSet(grd_newmeterial,null,"TRRSD04001","Y");
  186. model.refresh();
  187. ]]>
  188. </script>
  189. <submission id="TRRSD04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/list/newmeterialdetail"/>
  190. <submission id="TXRSD04001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden"/>
  191. </model>
  192. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  193. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  194. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  195. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  196. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  197. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  198. <script type="javascript">
  199. <![CDATA[
  200. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  201. function fInitialize() {
  202. misfGridInit(grd_newmeterial);
  203. // misfGridInit(grd_newmeterialdetail);
  204. model.resetInstanceNode("/root/send");
  205. model.resetInstanceNode("/root/main/newmeterialdetail");
  206. misfComboComCdListMulti("Z0007,R0025,R0035,R0032,R0129","cmb_instcd_search,cmb_goodflag_search,cmb_prodplce,cmb_purcunit,rdo_newmatrprcsstat");
  207. misfComboCopyItemSet(cmb_instcd_search, "", cmb_instcd, ""); //기관코드
  208. misfComboCopyItemSet(cmb_goodflag_search, "", cmb_goodflag, ""); //물품코드
  209. // grd_newmeterial.fixedcellcheckbox(0,1) = true;
  210. model.setValue(cmb_instcd_search.attribute("ref") , getUserInfo("dutplceinstcd"));
  211. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  212. /*
  213. model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
  214. model.setValue(opt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
  215. model.setValue(ipt_reqdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
  216. model.setValue(opt_reqdeptnm.attribute("ref"), getUserInfo("dutplcenm"));
  217. model.setValue(ipt_reqpsnid.attribute("ref"), getUserInfo("userid"));
  218. model.setValue(opt_reqpsnnm.attribute("ref"), getUserInfo("usernm"));
  219. model.setValue(ipt_reqdd.attribute("ref"), getCurrentDate() );
  220. // model.setValue(ipt_useschedd.attribute("ref"), getCurrentDate() );
  221. model.setValue(ipt_undecicurematrreqdt.attribute("ref"), getCurrentDate() );
  222. */
  223. // rdo_medcare.select(0);
  224. // rdo_undecicurematr.select(0);
  225. // 단위 따로 분리.
  226. rszfComboUnitList (cmb_purcunit,model.getValue(cmb_instcd.attribute("ref")),model.getValue(cmb_goodflag.attribute("ref")));
  227. // 사용단위.
  228. misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, ""); //물품코드
  229. tar_purcteamcmt.disabled = true;
  230. tar_judgcmt.disabled = true;
  231. chk_actamtincl.disabled = true;
  232. ipt_smlartygoodhngnm.disabled = true;
  233. ipt_smlartygoodengnm.disabled = true;
  234. ipt_calcscorcd.disabled = true;
  235. ipt_smlartyamt.disabled = true;
  236. fDisableCheck( false );
  237. model.refresh();
  238. }
  239. function fInsuynChange(pDataClearYn)
  240. {
  241. ipt_edicd.visible=false;
  242. ipt_insucomd.visible=false;
  243. ipt_insuresn.visible=false;
  244. ipt_undecicurematrreqdt.visible=false;
  245. /* ----------------------------------------------------------
  246. data query -> silple query
  247. validation -> dataclear , ,
  248. -----------------------------------------------------------*/
  249. if (pDataClearYn=="Y")
  250. {
  251. model.setValue(ipt_edicd.attribute("ref"),""); // edi code
  252. model.setValue(ipt_insucomd.attribute("ref"),""); // 해당고시
  253. model.setValue(ipt_undecicurematrreqdt.attribute("ref"),""); //치료재료 미결정신청일자
  254. model.setValue(ipt_insuresn.attribute("ref"),""); //의료적 비급여사유
  255. }
  256. if (model.getValue(rdo_insuyn.attribute("ref"))=="1")
  257. {
  258. caption_insuyn.text = 'EDI CODE';
  259. ipt_edicd.visible=true;
  260. }
  261. else if (model.getValue(rdo_insuyn.attribute("ref"))=="2")
  262. {
  263. caption_insuyn.text = 'EDI CODE';
  264. ipt_edicd.visible=true;
  265. }
  266. else if (model.getValue(rdo_insuyn.attribute("ref"))=="3")
  267. {
  268. caption_insuyn.text = '사 유';
  269. ipt_insuresn.visible=true;
  270. }
  271. else if (model.getValue(rdo_insuyn.attribute("ref"))=="4")
  272. {
  273. caption_insuyn.text = '재료미결정신청일';
  274. ipt_undecicurematrreqdt.visible=true;
  275. }
  276. else if (model.getValue(rdo_insuyn.attribute("ref"))=="5")
  277. {
  278. caption_insuyn.text = '해당고시';
  279. ipt_insucomd.visible=true;
  280. }
  281. model.refresh();
  282. }
  283. function fDataCheck() {
  284. // if (model.getValue(tar_judgcmt.attribute("ref")).length != 0 ) {
  285. // model.setValue(ipt_newmatrprcsstat.attribute("ref"), 5 );
  286. // }
  287. misfGridRowStatusChange(grd_newmeterial,"/root/main/list","/root/main");
  288. model.refresh();
  289. var updtdata = getGridUpdateData(grd_newmeterial);
  290. model.refresh();
  291. if (updtdata != "" ) {
  292. if(model.getValue(tar_judgcmt.attribute("ref")).length==0)
  293. {
  294. messageBox("심사소견은","I003");
  295. model.setFocus("tar_judgcmt");
  296. return false;
  297. } else {
  298. model.setValue(ipt_newmatrprcsstat.attribute("ref"), 4 );
  299. misfGridRowStatusChange(grd_newmeterial,"/root/main/list","/root/main");
  300. model.refresh();
  301. }
  302. return true;
  303. } else {
  304. return false;
  305. }
  306. }
  307. function fDisableCheck( status ) {
  308. cmb_instcd.disabled = status;
  309. ipt_reqdd.disabled = status;
  310. // ipt_reqseqno.disabled = status;
  311. ipt_reqdeptcd.disabled = status;
  312. ipt_reqpsnid.disabled = status;
  313. cmb_goodflag.disabled = status;
  314. ipt_reqdepttel.disabled = status;
  315. // ipt_deprtmangr.disabled = status;
  316. ipt_goodengnm.disabled = status;
  317. ipt_goodhngnm.disabled = status;
  318. ipt_goodspec.disabled = status;
  319. ipt_goodmodel.disabled = status;
  320. cmb_prodplce.disabled = status;
  321. ipt_prodcmpycd.disabled = status;
  322. cmb_purcunit.disabled = status;
  323. ipt_reqqty.disabled = status;
  324. ipt_mmavguseqty.disabled = status;
  325. // ipt_useschedd.disabled = status;
  326. ipt_maincustlastsuplplce.disabled = status;
  327. ipt_chrgtel.disabled = status;
  328. ipt_chrgid.disabled = status;
  329. ipt_chrgmpphon.disabled = status;
  330. ipt_edicd.disabled = status;
  331. tar_reqresnusge.disabled = status;
  332. tar_smlartymatruseprestcond.disabled = status;
  333. tar_anohospusestat.disabled = status;
  334. tar_newmatrusgeimprvpnt.disabled = status;
  335. tar_purcteamcmt.disabled = status;
  336. tar_reqcmt.disabled=status;
  337. ipt_goodunitcost.disabled=status;
  338. cmb_deliveunit.disabled=status;
  339. ipt_undecicurematrreqdt.disabled=status;
  340. ipt_insucomd.disabled=status;
  341. ipt_insuresn.disabled=status;
  342. ipt_edicd.disabled=status;
  343. rdo_insuyn.disabled=status;
  344. ipt_reqchrgid.disabled=status;
  345. /*
  346. cmb_instcd.disabled = status;
  347. ipt_reqdd.disabled = status;
  348. ipt_reqseqno.disabled = status;
  349. cmb_goodflag.disabled = status;
  350. */
  351. var tempstatus = model.getValue( grd_newmeterial.attribute("nodeset")+"["+ grd_newmeterial.row +"]/newmatrprcsstat" );
  352. if( tempstatus == 3 || tempstatus == 4 ) {
  353. //rdo_insuyn.disabled = false;
  354. //rdo_undecicurematr.disabled = false;
  355. ipt_undecicurematrreqdt.disabled = false;
  356. tar_judgcmt.disabled = false;
  357. chk_actamtincl.disabled = false;
  358. ipt_smlartygoodhngnm.disabled = false;
  359. ipt_smlartygoodengnm.disabled = false;
  360. ipt_calcscorcd.disabled = false;
  361. ipt_smlartyamt.disabled = false;
  362. }else {
  363. //rdo_insuyn.disabled = true;
  364. //rdo_undecicurematr.disabled = true;
  365. ipt_undecicurematrreqdt.disabled = true;
  366. tar_judgcmt.disabled = true;
  367. chk_actamtincl.disabled = true;
  368. ipt_smlartygoodhngnm.disabled = true;
  369. ipt_smlartygoodengnm.disabled = true;
  370. ipt_calcscorcd.disabled = true;
  371. ipt_smlartyamt.disabled = true;
  372. }
  373. }
  374. function fSearchData() {
  375. misfMsterDetailRetrieve();
  376. if ( grd_newmeterial.rows > 1 ) {
  377. model.resetInstanceNode("/root/main/newmeterialdetail");
  378. grd_newmeterial.row = 1;
  379. model.copyNode("/root/main/newmeterialdetail" ,grd_newmeterial.nodeset + "["+ grd_newmeterial.row + "]");
  380. fDisableCheck( true );
  381. } else {
  382. model.resetInstanceNode("/root/main/newmeterialdetail");
  383. fDisableCheck( false );
  384. }
  385. model.refresh();
  386. }
  387. function fCheckSaveData()
  388. {
  389. if(model.getValue(cmb_instcd.attribute("ref")).length==0)
  390. {
  391. messageBox("기관코드는" ,"I003");
  392. model.setFocus("cmb_instcd");
  393. return false;
  394. }
  395. if(model.getValue(ipt_reqdd.attribute("ref")).length==0)
  396. {
  397. messageBox("청구일자는","I003");
  398. model.setFocus("ipt_reqdd");
  399. return false;
  400. }
  401. /*
  402. if(model.getValue(ipt_reqseqno.attribute("ref")).length==0)
  403. {
  404. messageBox("청구순번은","I003");
  405. model.setFocus("ipt_reqseqno");
  406. return false;
  407. }
  408. */
  409. if(model.getValue(cmb_goodflag.attribute("ref")).length==0)
  410. {
  411. messageBox("물품구분은","I003");
  412. model.setFocus("cmb_goodflag");
  413. return false;
  414. }
  415. /*
  416. if(model.getValue(ipt_reqdeptcd.attribute("ref")).length==0)
  417. {
  418. messageBox("청구부서는","I003");
  419. model.setFocus("ipt_reqdeptcd");
  420. return false;
  421. }
  422. if(model.getValue(ipt_reqpsnid.attribute("ref")).length==0)
  423. {
  424. messageBox("청구자는","I003");
  425. model.setFocus("ipt_reqpsnid");
  426. return false;
  427. }
  428. if(model.getValue(ipt_goodengnm.attribute("ref")).length==0)
  429. {
  430. messageBox("품명(영문)은","I003");
  431. model.setFocus("ipt_goodengnm");
  432. return false;
  433. }
  434. if(model.getValue(ipt_goodhngnm.attribute("ref")).length==0)
  435. {
  436. messageBox("품명(한글)은","I003");
  437. model.setFocus("ipt_goodhngnm");
  438. return false;
  439. }
  440. if(model.getValue(ipt_goodspec.attribute("ref")).length==0)
  441. {
  442. messageBox("규격은","I003");
  443. model.setFocus("ipt_goodspec");
  444. return false;
  445. }
  446. if(model.getValue(ipt_goodmodel.attribute("ref")).length==0)
  447. {
  448. messageBox("모델은","I003");
  449. model.setFocus("ipt_goodmodel");
  450. return false;
  451. }
  452. if(model.getValue(cmb_prodplce.attribute("ref")).length==0)
  453. {
  454. messageBox("제조국은","I003");
  455. model.setFocus("cmb_prodplce");
  456. return false;
  457. }
  458. if(model.getValue(ipt_prodcmpycd.attribute("ref")).length==0)
  459. {
  460. messageBox("제조회사는","I003");
  461. model.setFocus("ipt_prodcmpycd");
  462. return false;
  463. }
  464. if(model.getValue(cmb_purcunit.attribute("ref")).length==0)
  465. {
  466. messageBox("구매단위는","I003");
  467. model.setFocus("cmb_purcunit");
  468. return false;
  469. }
  470. if(model.getValue(ipt_reqqty.attribute("ref")).length==0)
  471. {
  472. messageBox("수량은","I003");
  473. model.setFocus("ipt_reqqty");
  474. return false;
  475. }
  476. if(model.getValue(ipt_mmavguseqty.attribute("ref")).length==0)
  477. {
  478. messageBox("월평균사용량은","I003");
  479. model.setFocus("ipt_mmavguseqty");
  480. return false;
  481. }
  482. if(model.getValue(ipt_useschedd.attribute("ref")).length==0)
  483. {
  484. messageBox("사용예정일은","I003");
  485. model.setFocus("ipt_useschedd");
  486. return false;
  487. }
  488. if(model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length==0)
  489. {
  490. messageBox("거래처는","I003");
  491. model.setFocus("ipt_maincustlastsuplplce");
  492. return false;
  493. }
  494. if(model.getValue(ipt_chrgtel.attribute("ref")).length==0)
  495. {
  496. messageBox("전화번호는","I003");
  497. model.setFocus("ipt_chrgtel");
  498. return false;
  499. }
  500. if(model.getValue(ipt_chrgid.attribute("ref")).length==0)
  501. {
  502. messageBox("영업담당자는","I003");
  503. model.setFocus("ipt_chrgid");
  504. return false;
  505. }
  506. if(model.getValue(ipt_chrgmpphon.attribute("ref")).length==0)
  507. {
  508. messageBox("핸드폰번호는","I003");
  509. model.setFocus("ipt_chrgmpphon");
  510. return false;
  511. }
  512. if(model.getValue(rdo_medcare.attribute("ref")).length==0)
  513. {
  514. messageBox("요양급여는","I003");
  515. model.setFocus("rdo_medcare");
  516. return false;
  517. }
  518. if(model.getValue(rdo_undecicurematr.attribute("ref")).length==0)
  519. {
  520. messageBox("미결정치료재료는","I003");
  521. model.setFocus("rdo_undecicurematr");
  522. return false;
  523. }
  524. if(model.getValue(ipt_edicd.attribute("ref")).length==0)
  525. {
  526. messageBox("EDI코드는","I003");
  527. model.setFocus("ipt_edicd");
  528. return false;
  529. }
  530. if(model.getValue(ipt_undecicurematrreqdt.attribute("ref")).length==0)
  531. {
  532. messageBox("신청일자는","I003");
  533. model.setFocus("ipt_undecicurematrreqdt");
  534. return false;
  535. }
  536. if(model.getValue(tar_reqresnusge.attribute("ref")).length==0)
  537. {
  538. messageBox("청구사유는","I003");
  539. model.setFocus("tar_reqresnusge");
  540. return false;
  541. }
  542. if(model.getValue(tar_smlartymatruseprestcond.attribute("ref")).length==0)
  543. {
  544. messageBox("유사물품사용현황은","I003");
  545. model.setFocus("tar_smlartymatruseprestcond");
  546. return false;
  547. }
  548. if(model.getValue(tar_anohospusestat.attribute("ref")).length==0)
  549. {
  550. messageBox("타병원사용현황은","I003");
  551. model.setFocus("tar_anohospusestat");
  552. return false;
  553. }
  554. if(model.getValue(tar_newmatrusgeimprvpnt.attribute("ref")).length==0)
  555. {
  556. messageBox("관련행위는","I003");
  557. model.setFocus("tar_newmatrusgeimprvpnt");
  558. return false;
  559. }
  560. */
  561. return true;
  562. }
  563. function fChangeStatus( flag, flagnm ) {
  564. var cnt = grd_newmeterial.rows;
  565. var temp = 0;
  566. for ( var i=0; i<cnt; i++ ) {
  567. var select = model.getValue(grd_newmeterial.attribute("nodeset")+"[" + i + "]/chk");
  568. // 화면의 체크 값 확인
  569. if (select != 0) {
  570. temp = temp + 1;
  571. if( model.getValue( grd_newmeterial.attribute("nodeset")+"["+ i +"]/newmatrprcsstat") == 4 || model.getValue( grd_newmeterial.attribute("nodeset")+"["+ i +"]/newmatrprcsstat") == 5 ) {
  572. messageBox ("항목을 변경할 수","I004");
  573. grd_newmeterial.select(i, 3)=true;
  574. break;
  575. } else {
  576. // 현재 요청한 접수 상태가 이전 상태와 동일한지 확인
  577. if ( model.getValue( grd_newmeterial.attribute("nodeset")+"["+ i +"]/newmatrprcsstat") != flag ) {
  578. model.setValue(grd_newmeterial.attribute("nodeset")+"["+ i +"]/newmatrprcsstat", flag );
  579. model.setValue(grd_newmeterial.attribute("nodeset")+"["+ i +"]/newmatrprcsstatnm", flagnm );
  580. // 현재 선택한 row의 상태값을 바꾸면 왼편의 Grid 값과 비교해서 변경 사실을 알게되지만 왼편의 Detail 값을 Grid로 복사 하게 되면서 변경 값이 반영되지 않는다.
  581. // 때문에 Grid 값이 변경하면 Detail의 값을 변경해서 Grid에 변경 내용을 Copy 시킨다.
  582. model.setValue(ipt_newmatrprcsstat.attribute("ref"), flag );
  583. grd_newmeterial.rowStatus( i ) = 2;
  584. var cur_row = grd_newmeterial.row;
  585. var status = grd_newmeterial.valueMatrix(cur_row, grd_newmeterial.colRef("m"));
  586. if(status !="insert" && status !="delete") grd_newmeterial.addStatus(cur_row,"update");
  587. }
  588. }
  589. } else {
  590. // 체크 되지 않은 부분은 상태값을 초기화 한다.
  591. // grd_newmeterial.rowStatus( i ) = 0;
  592. }
  593. // if( grd_reqdetaillist.rowStatus(i)==2 ) grd_reqdetaillist.rowStatus(i) = 0;
  594. }
  595. if( temp<=0 )messageBox ("선택항 항목이","I004");
  596. }
  597. ]]>
  598. </script>
  599. </xhtml:head>
  600. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  601. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  602. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:13px; ">신규 재료 심사</caption>
  603. <caption id="caption1" class="patient_text_black" style="left:828px; top:0px; width:366px; "/>
  604. </group>
  605. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  606. <group id="group2" style="left:0px; top:10px; width:535px; height:185px; vertical-align:top; ">
  607. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:535px; height:180px; background-color:#fffbf2; border-color:#ffd799; "/>
  608. <input id="ipt_reqdeptnm_search" ref="/root/send/sendlist/reqdeptnm" class="input_search" style="left:225px; top:54px; width:192px; height:19px; ">
  609. <script type="javascript" ev:event="xforms-value-changed">
  610. <![CDATA[
  611. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
  612. model.refresh();
  613. ]]>
  614. </script>
  615. </input>
  616. <button id="button5" class="icon_search" style="left:202px; top:54px; width:16px; height:16px; ">
  617. <caption/>
  618. <script type="javascript" ev:event="DOMActivate">
  619. <![CDATA[
  620. var recv_list = "reqdeptcd,reqdeptnm";
  621. misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list) ;
  622. model.refresh();
  623. ]]>
  624. </script>
  625. </button>
  626. <caption id="caption2" class="search_name" style="left:15px; top:133px; width:117px; height:17px; ">EDI 코드 :</caption>
  627. <caption id="caption3" class="search_name" style="left:216px; top:133px; width:117px; height:17px; ">물 품 명 :</caption>
  628. <caption id="caption4" class="search_name" style="left:15px; top:4px; width:117px; height:17px; ">기관코드 :</caption>
  629. <caption id="caption8" class="search_name" style="left:15px; top:55px; width:117px; height:17px; ">청구부서 :</caption>
  630. <select1 id="cmb_instcd_search" ref="/root/send/sendlist/instcd" class="combo_default" appearance="minimal" style="left:100px; top:3px; width:317px; height:19px; ">
  631. <choices>
  632. <itemset>
  633. <label/>
  634. <value/>
  635. </itemset>
  636. </choices>
  637. </select1>
  638. <input id="ipt_edicd_search" ref="/root/send/sendlist/edicd" class="input_default" style="left:100px; top:132px; width:110px; height:19px; "/>
  639. <caption id="caption10" class="search_name" style="left:15px; top:81px; width:117px; height:17px; ">청구일자 :</caption>
  640. <input id="ipt_reqdeptcd_search" ref="/root/send/sendlist/reqdeptcd" class="input_default" style="left:100px; top:54px; width:95px; height:19px; ">
  641. <script type="javascript" ev:event="xforms-value-changed">
  642. <![CDATA[
  643. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
  644. model.refresh();
  645. ]]>
  646. </script>
  647. </input>
  648. <input id="ipt_goodnm_search" ref="/root/send/sendlist/goodnm" class="input_default" style="left:299px; top:132px; width:118px; height:19px; "/>
  649. <input id="ipt_reqtodd_search" ref="/root/send/sendlist/reqtodd" class="input_search" inputtype="date" style="left:268px; top:80px; width:149px; height:19px; "/>
  650. <caption id="caption14" class="search_no_b" style="left:252px; top:81px; width:12px; height:17px; ">~</caption>
  651. <input id="ipt_reqfromdd_search" ref="/root/send/sendlist/reqfromdd" class="input_search" inputtype="date" style="left:100px; top:80px; width:149px; height:19px; "/>
  652. <caption id="caption20" class="search_name" style="left:15px; top:107px; width:86px; height:17px; ">물품구분 :</caption>
  653. <select1 id="cmb_goodflag_search" ref="/root/send/sendlist/goodflag" class="combo_s_essential" appearance="minimal" editmode="search" style="left:100px; top:106px; width:317px; height:19px; ">
  654. <choices>
  655. <itemset nodeset="/root/init/goodflag">
  656. <label ref="cdnm"/>
  657. <value ref="cdid"/>
  658. </itemset>
  659. </choices>
  660. <script type="javascript" ev:event="xforms-value-changed">
  661. <![CDATA[
  662. // btn_search.dispatch("DOMActivate");
  663. ]]>
  664. </script>
  665. </select1>
  666. <caption id="caption12" class="search_name" style="left:15px; top:160px; width:117px; height:17px; ">진행상태 :</caption>
  667. <select1 id="rdo_newmatrprcsstat" ref="/root/send/sendlist/newmatrprcsstat" appearance="full" cols="6" rows="1" overflow="visible" style="left:100px; top:159px; width:211px; height:20px; border-style:none; ">
  668. <choices>
  669. <itemset>
  670. <label/>
  671. <value/>
  672. </itemset>
  673. </choices>
  674. </select1>
  675. <line id="line14" class="line_4" style="x1:455px; y1:11px; x2:455px; y2:172px; border-color:#ffe4bb; border-left-style:solid; "/>
  676. <button id="btn_search" class="btn1_letter2" style="left:470px; top:73px; width:56px; height:22px; ">
  677. <caption>조회</caption>
  678. <script type="javascript" ev:event="DOMActivate">
  679. <![CDATA[
  680. if(model.getValue(cmb_instcd_search.attribute("ref")).length== 0 )
  681. {
  682. messageBox("기관코드는 " ,"C002");
  683. model.setFocus("cmb_instcd_search");
  684. return false;
  685. } else {
  686. if ( fDataCheck() ) {
  687. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  688. if (ret != 6) { // not OK
  689. return;
  690. } else {
  691. fSearchData();
  692. }
  693. } else {
  694. fSearchData();
  695. }
  696. }
  697. ]]>
  698. </script>
  699. </button>
  700. <caption id="caption21" class="search_name" style="left:15px; top:29px; width:117px; height:17px; ">일련번호 :</caption>
  701. <caption id="caption26" style="left:260px; top:30px; width:183px; height:20px; font-family:굴림체; font-size:9pt; font-weight:bold; color:#ff6600; vertical-align:middle; ">※ 년월(4자리)+순번(3자리)</caption>
  702. <input id="input1" ref="/root/send/sendlist/queryseqno" class="input_default" style="left:100px; top:29px; width:150px; height:19px; text-align:center; "/>
  703. </group>
  704. <caption id="caption52" class="cell_1" style="left:-126px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장단위</caption>
  705. <caption id="caption54" class="cell_1" style="left:-126px; top:334px; width:108px; height:23px; vertical-align:middle; ">근속기준일/년</caption>
  706. <!--
  707. <datagrid id="grd_newmeterial" nodeset="/root/main/list/newmeterialdetail" caption="^진행상태^기관코드^청구부서^청구부서명^청구일자^청구순번^물품구분^물품명(영문)^물품명(한글)^물품규격^모델^제조국코드^제조국^제조회사코드^제조회사코드^거래처코드^거래처명^담당자id^담당자hp^담당자전화번호^구매단위^청구수량^월별사용량^사용예정일^edi코드^청구사유 및 용도^유사재료사용현황^타병원사용현황^관련행위^청구부서전화번호^청구자^청구자명^보험여부^미결정치료재료^미결정치료재료신청일^행위료포함^심사소견^구매팀소견^신규재료진행상태^대분류코드^중분류코드^소분류코드^물품코드^동일물품(한글)^동일물품(영문)^동일물품(수가코드)^동일물품비용^최초등록자id^최초등록일시^최종수정자id^최종수정일시" colsep="^" colwidth="30, 80, 20, 20, 100, 80, 20, 20, 100, 100, 80, 80, 20, 20, 22, 17, 19, 80, 20, 20, 20, 60, 60, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 80, 20, 20, 20, 20, 20, 20, 20, 20" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:180px; width:530px; height:332px; ">
  708. -->
  709. <datagrid id="grd_newmeterial" nodeset="/root/main/list/newmeterialdetail" caption="진행상태^수가위원회여부^기관코드^청구부서^청구부서명^청구일자^청구순번^물품구분^물품명(영문)^물품명(한글)^물품규격^모델^제조국코드^제조국^제조회사코드^제조회사코드^거래처코드^거래처명^담당자id^담당자hp^담당자전화번호^구매단위^청구수량^월별사용량^사용예정일^edi코드^청구사유 및 용도^유사재료사용현황^타병원사용현황^관련행위^청구부서전화번호^청구자^청구자명^보험여부^미결정치료재료^미결정치료재료신청일^행위료포함^심사소견^구매팀소견^신규재료진행상태^대분류코드^중분류코드^소분류코드^물품코드^동일물품(한글)^동일물품(영문)^동일물품(수가코드)^동일물품비용^최초등록자id^최초등록일시^최종수정자id^최종수정일시" colsep="^" colwidth="80, 100, 20, 20, 100, 80, 20, 20, 100, 100, 80, 80, 20, 20, 22, 17, 19, 80, 20, 20, 20, 60, 60, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 80, 20, 20, 20, 20, 20, 20, 20, 20, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:225px; width:535px; height:360px; ">
  710. <!-- <col checkvalue="1,0" ref="chk" type="checkbox"/> -->
  711. <col ref="newmatrprcsstatnm"/>
  712. <col ref="insucommityn"/>
  713. <col ref="instcd" visibility="hidden"/>
  714. <col ref="reqdeptcd" visibility="hidden"/>
  715. <col ref="reqdeptnm"/>
  716. <col ref="reqdd"/>
  717. <col ref="reqseqno" visibility="hidden"/>
  718. <col ref="goodflag" visibility="hidden"/>
  719. <col ref="goodengnm"/>
  720. <col ref="goodhngnm"/>
  721. <col ref="goodspec"/>
  722. <col ref="goodmodel"/>
  723. <col ref="prodplce" visibility="hidden"/>
  724. <col ref="prodplcenm" visibility="hidden"/>
  725. <col ref="prodcmpycd" visibility="hidden"/>
  726. <col ref="prodcmpynm" visibility="hidden"/>
  727. <col ref="maincustlastsuplplce" visibility="hidden"/>
  728. <col ref="maincust"/>
  729. <col ref="chrgid" visibility="hidden"/>
  730. <col ref="chrgmpphon" visibility="hidden"/>
  731. <col ref="chrgtel" visibility="hidden"/>
  732. <col ref="purcunit"/>
  733. <col ref="reqqty"/>
  734. <col ref="mmavguseqty" visibility="hidden"/>
  735. <col ref="useschedd" visibility="hidden"/>
  736. <col ref="edicd" visibility="hidden"/>
  737. <col ref="reqresnusge" visibility="hidden"/>
  738. <col ref="smlartymatruseprestcond" visibility="hidden"/>
  739. <col ref="anohospusestat" visibility="hidden"/>
  740. <col ref="newmatrusgeimprvpnt" visibility="hidden"/>
  741. <col ref="reqdepttel" visibility="hidden"/>
  742. <col ref="reqpsnid" visibility="hidden"/>
  743. <col ref="reqpsnnm" visibility="hidden"/>
  744. <col ref="insuyn" visibility="hidden"/>
  745. <col ref="undecicurematr" visibility="hidden"/>
  746. <col ref="undecicurematrreqdt" visibility="hidden"/>
  747. <col ref="actamtincl" visibility="hidden"/>
  748. <col ref="judgcmt" visibility="hidden"/>
  749. <col ref="purcteamcmt" visibility="hidden"/>
  750. <col ref="newmatrprcsstat" visibility="hidden"/>
  751. <col ref="lrgcd" visibility="hidden"/>
  752. <col ref="mdlcd" visibility="hidden"/>
  753. <col ref="smlcd" visibility="hidden"/>
  754. <col ref="goodcd"/>
  755. <col ref="smlartygoodhngnm" visibility="hidden"/>
  756. <col ref="smlartygoodengnm" visibility="hidden"/>
  757. <col ref="calcscorcd" visibility="hidden"/>
  758. <col ref="smlartyamt" visibility="hidden"/>
  759. <col ref="fstrgstrid" visibility="hidden"/>
  760. <col ref="fstrgstdt" visibility="hidden"/>
  761. <col ref="lastupdtrid" visibility="hidden"/>
  762. <col ref="lastupdtdt" visibility="hidden"/>
  763. <col ref="reqchrgid" visibility="hidden"/>
  764. <col ref="reqchrgnm" visibility="hidden"/>
  765. <script type="javascript" ev:event="onrowchanged">
  766. <![CDATA[
  767. // if( grd_newmeterial.isCell( event.target ) && grd_newmeterial.row >= grd_newmeterial.fixedRows ) {
  768. if( grd_newmeterial.rows > grd_newmeterial.fixedRows ) {
  769. model.copyNode("/root/main/newmeterialdetail" ,grd_newmeterial.nodeset + "["+ grd_newmeterial.row + "]");
  770. fDisableCheck( true );
  771. fInsuynChange("N");
  772. model.refresh();
  773. }
  774. ]]>
  775. </script>
  776. <script type="javascript" ev:event="onaftersort">
  777. <![CDATA[
  778. grd_newmeterial.gridToInstance();
  779. ]]>
  780. </script>
  781. </datagrid>
  782. <caption id="caption9" class="tit_2" style="left:5px; top:205px; width:126px; height:13px; ">신규재료 물품목록</caption>
  783. <line id="line3" class="line_1" style="x1:0px; y1:219px; x2:535px; y2:219px; "/>
  784. <button id="button1" class="btn2_letter2" visibility="hidden" style="left:492px; top:198px; width:42px; height:19px; ">
  785. <caption>반려</caption>
  786. <script type="javascript" ev:event="DOMActivate">
  787. <![CDATA[
  788. fChangeStatus( "2", "반려" );
  789. model.refresh();
  790. ]]>
  791. </script>
  792. </button>
  793. <button id="button6" class="btn2_letter2" visibility="hidden" style="left:448px; top:198px; width:42px; height:19px; ">
  794. <caption>접수</caption>
  795. <script type="javascript" ev:event="DOMActivate">
  796. <![CDATA[
  797. fChangeStatus( "3", "접수" );
  798. model.refresh();
  799. ]]>
  800. </script>
  801. </button>
  802. <button id="button3" class="btn_sw" group="tab" selected="true" style="left:0px; top:598px; width:144px; height:22px; ">
  803. <caption>보험팀 소견</caption>
  804. <toggle case="judg_case" ev:event="DOMActivate"/>
  805. </button>
  806. <button id="button11" class="btn_sw" group="tab" style="left:144px; top:598px; width:144px; height:22px; ">
  807. <caption>구매팀 소견</caption>
  808. <toggle case="purc_case" ev:event="DOMActivate"/>
  809. </button>
  810. <input id="ipt_newmatrprcsstat" ref="/root/main/newmeterialdetail/newmatrprcsstat" visibility="hidden" style="left:485px; top:30px; width:20px; height:19px; "/>
  811. <switch id="switch2" style="left:0px; top:620px; width:1195px; height:114px; ">
  812. <case id="judg_case" selected="true">
  813. <line id="line15" class="line_3" style="x1:0px; y1:99px; x2:1193px; y2:99px; "/>
  814. <line id="line8" class="line_2" style="x1:0; y1:75px; x2:1193; y2:75px; "/>
  815. <line id="line9" class="line_2" style="x1:0; y1:51px; x2:1193; y2:51px; "/>
  816. <input id="ipt_smlartygoodengnm" ref="/root/main/newmeterialdetail/smlartygoodengnm" class="input_default" style="left:690px; top:79px; width:240px; height:19px; "/>
  817. <textarea id="tar_judgcmt" ref="/root/main/newmeterialdetail/judgcmt" style="left:110px; top:31px; width:420px; height:67px; "/>
  818. <caption id="caption30" class="cell_1" style="left:650px; top:77px; width:38px; height:23px; vertical-align:middle; ">영문</caption>
  819. <input id="ipt_smlartygoodhngnm" ref="/root/main/newmeterialdetail/smlartygoodhngnm" class="input_default" style="left:690px; top:55px; width:240px; height:19px; "/>
  820. <input id="ipt_smlartyamt" ref="/root/main/newmeterialdetail/smlartyamt" class="input_default" style="left:993px; top:79px; width:197px; height:19px; text-align:right; "/>
  821. <input id="ipt_calcscorcd" ref="/root/main/newmeterialdetail/calcscorcd" class="input_default" style="left:993px; top:55px; width:197px; height:19px; "/>
  822. <caption id="caption35" class="cell_1" style="left:933px; top:77px; width:58px; height:23px; vertical-align:middle; ">금액(원)</caption>
  823. <caption id="caption24" class="cell_1" style="left:541px; top:29px; width:108px; height:71px; text-align:center; vertical-align:middle; ">
  824. <![CDATA[동재료 사용
  825. 의료 행위명]]>
  826. </caption>
  827. <caption id="judg_caption" class="cell_1" style="left:0px; top:29px; width:108px; height:71px; text-align:center; vertical-align:middle; ">심 사 소 견</caption>
  828. <caption id="caption36" class="cell_1" style="left:933px; top:53px; width:58px; height:23px; vertical-align:middle; ">수가코드</caption>
  829. <caption id="caption25" class="cell_1" style="left:650px; top:53px; width:38px; height:23px; vertical-align:middle; ">한글</caption>
  830. <caption id="caption37" class="cell_1" style="left:650px; top:29px; width:80px; height:23; vertical-align:middle; ">행위료포함</caption>
  831. <select id="chk_actamtincl" ref="/root/main/newmeterialdetail/actamtincl" overflow="visible" appearance="full" style="left:735px; top:32px; width:85px; height:15px; border-style:none; ">
  832. <choices>
  833. <item>
  834. <label>포함여부</label>
  835. <value>N</value>
  836. </item>
  837. </choices>
  838. </select>
  839. <line id="line5" class="line_1" style="x1:0px; y1:24px; x2:1193; y2:24px; "/>
  840. </case>
  841. <case id="purc_case">
  842. <line id="line16" class="line_3" style="x1:0px; y1:99px; x2:1193px; y2:99px; "/>
  843. <caption id="caption19" class="cell_1" style="left:0px; top:29px; width:108px; height:71; text-align:center; vertical-align:middle; ">구 매 팀 소 견</caption>
  844. <textarea id="tar_purcteamcmt" ref="/root/main/newmeterialdetail/purcteamcmt" style="left:110px; top:31px; width:1082px; height:67px; "/>
  845. <line id="line6" class="line_1" style="x1:0px; y1:24px; x2:1193; y2:24px; "/>
  846. </case>
  847. </switch>
  848. <line id="line30" class="line_2" style="x1:540px; y1:56px; x2:1195px; y2:56px; "/>
  849. <input id="ipt_goodhngnm" ref="/root/main/newmeterialdetail/goodhngnm" class="input_default" style="left:635px; top:108px; width:558px; height:19px; "/>
  850. <caption id="caption60" class="cell_1" style="left:870px; top:34px; width:93px; height:23px; vertical-align:middle; ">신청자</caption>
  851. <output id="opt_maincustlastsuplplcenm" ref="/root/main/newmeterialdetail/maincust" class="output_fix" appearance="output" style="left:718px; top:274px; width:100px; height:19px; "/>
  852. <line id="line31" class="line_2" style="x1:540px; y1:80px; x2:1195px; y2:80px; "/>
  853. <line id="line20" class="line_2" style="x1:540px; y1:200px; x2:1195px; y2:200px; "/>
  854. <caption id="caption50" class="cell_1" style="left:870px; top:10px; width:93px; height:23px; vertical-align:middle; ">신청일자</caption>
  855. <textarea id="tar_smlartymatruseprestcond" ref="/root/main/newmeterialdetail/smlartymatruseprestcond" maxlength="300" style="left:650px; top:372px; width:543px; height:65px; "/>
  856. <caption id="caption72" class="cell_1" style="left:540px; top:154px; width:93px; height:23px; vertical-align:middle; ">제조국</caption>
  857. <button id="btn_prodcmpycd" class="icon_search" style="left:1039px; top:158px; width:16px; height:16px; ">
  858. <caption/>
  859. <script type="javascript" ev:event="DOMActivate">
  860. <![CDATA[
  861. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  862. model.refresh();
  863. ]]>
  864. </script>
  865. </button>
  866. <input id="ipt_maincustlastsuplplce" ref="/root/main/newmeterialdetail/maincustlastsuplplce" class="input_default" style="left:634px; top:274px; width:62px; height:19px; ">
  867. <script type="javascript" ev:event="xforms-value-changed">
  868. <![CDATA[
  869. if ( model.getValue(ipt_maincustlastsuplplce.attribute("ref")).length == 0 ) model.setValue(opt_maincustlastsuplplcenm.attribute("ref"),"");
  870. else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(cmb_instcd.attribute("ref")) +",,"+ model.getValue(ipt_maincustlastsuplplce.attribute("ref")) ,"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
  871. // else rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(cmb_instcd.attribute("ref")) +",maincustlastsuplplce," + model.getValue(ipt_maincustlastsuplplce.attribute("ref")),"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
  872. model.refresh();
  873. model.setFocus("ipt_suppcustcd");
  874. ]]>
  875. </script>
  876. <script type="javascript" ev:event="onkeydown">
  877. <![CDATA[
  878. if(event.keyCode == 9)
  879. {
  880. if(event.shiftKey)model.setFocus("cmb_purcflag");
  881. else model.setFocus("ipt_suppcustcd");
  882. }
  883. event.preventDefault();
  884. ]]>
  885. </script>
  886. </input>
  887. <caption id="caption_insuyn" class="cell_1" style="left:540px; top:201px; width:93px; height:22px; vertical-align:middle; ">EDI CODE</caption>
  888. <input id="ipt_insuresn" ref="/root/main/newmeterialdetail/insuresn" visibility="hidden" style="left:635px; top:203px; width:556px; height:19px; "/>
  889. <line id="line32" class="line_2" style="x1:540px; y1:104px; x2:1195px; y2:104px; "/>
  890. <line id="line10" class="line_3" style="x1:540px; y1:296px; x2:1195px; y2:296px; "/>
  891. <select1 id="cmb_instcd" ref="/root/main/newmeterialdetail/instcd" class="combo_essential" appearance="minimal" style="left:635px; top:12px; width:228px; height:19px; ">
  892. <choices>
  893. <itemset>
  894. <label/>
  895. <value/>
  896. </itemset>
  897. </choices>
  898. <script type="javascript" ev:event="xforms-value-changed">
  899. <![CDATA[
  900. // 단위 따로 분리.
  901. rszfComboUnitList (cmb_purcunit,model.getValue(cmb_instcd.attribute("ref")),model.getValue(cmb_goodflag.attribute("ref")));
  902. ]]>
  903. </script>
  904. </select1>
  905. <select1 id="cmb_purcunit" ref="/root/main/newmeterialdetail/purcunit" class="combo_essential" appearance="minimal" style="left:1084px; top:226px; width:108px; height:19px; ">
  906. <choices>
  907. <itemset>
  908. <label/>
  909. <value/>
  910. </itemset>
  911. </choices>
  912. </select1>
  913. <output id="opt_reqpsnnm" ref="/root/main/newmeterialdetail/reqpsnnm" class="output_fix" appearance="output" style="left:1072px; top:36px; width:121px; height:19px; "/>
  914. <input id="ipt_edicd" ref="/root/main/newmeterialdetail/edicd" class="input_default" visibility="hidden" style="left:635px; top:203px; width:121px; height:19px; "/>
  915. <line id="line11" class="line_2" style="x1:540px; y1:32px; x2:1195px; y2:32px; "/>
  916. <line id="line33" class="line_2" style="x1:540px; y1:128px; x2:1195px; y2:128px; "/>
  917. <button id="button4" class="icon_search" style="left:714px; top:38px; width:16px; height:16px; ">
  918. <caption>
  919. <script type="javascript" ev:event="DOMActivate">
  920. <![CDATA[
  921. var recv_list = "reqdeptcd,reqdeptnm";
  922. misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list) ;
  923. model.refresh();
  924. ]]>
  925. </script>
  926. </caption>
  927. </button>
  928. <input id="ipt_reqpsnid" ref="/root/main/newmeterialdetail/reqpsnid" class="input_essential" style="left:965px; top:36px; width:77px; height:19px; ">
  929. <script type="javascript" ev:event="xforms-value-changed">
  930. <![CDATA[
  931. misfValidationCheck("01", "", "reqpsnid,reqpsnnm" );
  932. model.refresh();
  933. ]]>
  934. </script>
  935. </input>
  936. <line id="line34" class="line_2" style="x1:540px; y1:152px; x2:1195px; y2:152px; "/>
  937. <caption id="caption42" class="cell_1" style="left:540px; top:82px; width:93px; height:23px; vertical-align:middle; ">품명(영문)</caption>
  938. <input id="ipt_reqdd" ref="/root/main/newmeterialdetail/reqdd" class="input_essential" inputtype="date" style="left:965px; top:12px; width:156px; height:19px; "/>
  939. <input id="ipt_reqchrgid" ref="/root/main/newmeterialdetail/reqchrgid" style="left:965px; top:60px; width:77px; height:19px; "/>
  940. <caption id="caption31" class="cell_1" style="left:540px; top:272px; width:93px; height:23px; vertical-align:middle; ">거래처/담당자</caption>
  941. <caption id="caption65" class="cell_1" style="left:540px; top:58px; width:93px; height:23px; vertical-align:middle; ">물품구분</caption>
  942. <caption id="caption32" class="cell_1" style="left:915px; top:272px; width:79px; height:23px; vertical-align:middle; ">전화/HP</caption>
  943. <input id="ipt_insucomd" ref="/root/main/newmeterialdetail/insucomd" visibility="hidden" style="left:635px; top:203px; width:556px; height:19px; "/>
  944. <line id="line36" class="line_2" style="x1:540px; y1:176px; x2:1195px; y2:176px; "/>
  945. <line id="line25" class="line_2" style="x1:540px; y1:224px; x2:1195px; y2:224px; "/>
  946. <caption id="caption55" class="cell_1" style="left:540px; top:10px; width:93px; height:23px; vertical-align:middle; ">기관코드</caption>
  947. <caption id="caption22" class="cell_1" style="left:722px; top:58px; width:58px; height:23px; vertical-align:middle; ">원 내 ☎</caption>
  948. <select1 id="rdo_insuyn" ref="/root/main/newmeterialdetail/insuyn" appearance="full" cellspacing="30" cols="5" rows="1" overflow="visible" style="left:635px; top:180px; width:556px; height:20px; border-style:none; ">
  949. <choices>
  950. <itemset nodeset="/root/init/radio1">
  951. <label ref="label"/>
  952. <value ref="value"/>
  953. </itemset>
  954. </choices>
  955. <script type="javascript" ev:event="xforms-value-changed">
  956. <![CDATA[
  957. fInsuynChange("N")
  958. ]]>
  959. </script>
  960. </select1>
  961. <textarea id="tar_reqresnusge" ref="/root/main/newmeterialdetail/reqresnusge" maxlength="300" style="left:650px; top:305px; width:543px; height:65px; "/>
  962. <input id="ipt_undecicurematrreqdt" ref="/root/main/newmeterialdetail/undecicurematrreqdt" class="input_essential" visibility="hidden" inputtype="date" style="left:635px; top:203px; width:121px; height:19px; "/>
  963. <caption id="caption11" class="cell_1" style="left:540px; top:224px; width:93px; height:22px; vertical-align:middle; ">단 가</caption>
  964. <caption id="caption45" class="cell_1" style="left:540px; top:106px; width:93px; height:23px; vertical-align:middle; ">품명(한글)</caption>
  965. <caption id="caption56" class="cell_1" style="left:540px; top:130px; width:93px; height:23px; vertical-align:middle; ">규격</caption>
  966. <input id="ipt_goodspec" ref="/root/main/newmeterialdetail/goodspec" class="input_default" style="left:635px; top:132px; width:230px; height:19px; "/>
  967. <button id="button8" class="icon_search" style="left:1049px; top:38px; width:16px; height:16px; ">
  968. <caption/>
  969. <script type="javascript" ev:event="DOMActivate">
  970. <![CDATA[
  971. /*
  972. rszfOpenPopUpListByWndName(ipt_reqpsnid,"","reqpsn,reqpsnnm","SPZSU10100","","");
  973. var userinfo = model.getValue(gvParamPath +"/SPZSU10100_/SPZSU10100_value");
  974. if(userinfo != "" && userinfo != null) {
  975. userinfo = userinfo.split("|");
  976. model.setValue(ipt_reqpsnid.attribute("ref"),userinfo[0]);
  977. model.setValue(opt_reqpsnnm.attribute("ref"),userinfo[1]);
  978. }
  979. model.refresh();
  980. */
  981. var recv_list = "reqpsnid,reqpsnnm";
  982. misfOpenPopUpList("12", ipt_reqpsnid,"", recv_list) ;
  983. model.refresh();
  984. ]]>
  985. </script>
  986. </button>
  987. <select1 id="cmb_goodflag" ref="/root/main/newmeterialdetail/goodflag" class="combo_essential" appearance="minimal" editmode="search" style="left:635px; top:60px; width:85px; height:19px; ">
  988. <choices>
  989. <itemset nodeset="/root/init/goodflag">
  990. <label ref="cdnm"/>
  991. <value ref="cdid"/>
  992. </itemset>
  993. </choices>
  994. <script type="javascript" ev:event="xforms-value-changed">
  995. <![CDATA[
  996. // 단위 따로 분리.
  997. rszfComboUnitList (cmb_purcunit,model.getValue(cmb_instcd.attribute("ref")),model.getValue(cmb_goodflag.attribute("ref")));
  998. ]]>
  999. </script>
  1000. </select1>
  1001. <caption id="caption23" class="cell_1" style="left:870px; top:58px; width:93px; height:23px; vertical-align:middle; ">부서장</caption>
  1002. <line id="line27" class="line_2" style="x1:540px; y1:248px; x2:1195px; y2:248px; "/>
  1003. <caption id="caption68" class="cell_1" style="left:870px; top:130px; width:93px; height:23px; vertical-align:middle; ">모델</caption>
  1004. <textarea id="tar_anohospusestat" ref="/root/main/newmeterialdetail/anohospusestat" maxlength="300" style="left:650px; top:439px; width:543px; height:65px; "/>
  1005. <caption id="caption13" class="cell_1" style="left:540px; top:437px; width:108px; height:65px; text-align:center; vertical-align:middle; ">
  1006. <![CDATA[본원 유사재료
  1007. 관련 행위명]]>
  1008. </caption>
  1009. <input id="ipt_mmavguseqty" ref="/root/main/newmeterialdetail/mmavguseqty" class="input_default" format="#,###" style="left:1022px; top:250px; width:170px; height:19px; text-align:right; "/>
  1010. <input id="ipt_goodunitcost" ref="/root/main/newmeterialdetail/goodunitcost" format="#,###" style="left:635px; top:226px; width:230px; height:19px; text-align:right; "/>
  1011. <caption id="caption47" class="cell_1" style="left:540px; top:34px; width:93px; height:23px; vertical-align:middle; ">청구부서</caption>
  1012. <line id="line1" class="line_1" style="x1:540px; y1:298px; x2:1195px; y2:298px; "/>
  1013. <input id="ipt_goodmodel" ref="/root/main/newmeterialdetail/goodmodel" class="input_default" style="left:965px; top:132px; width:228px; height:19px; "/>
  1014. <caption id="caption5" class="cell_1" style="left:540px; top:178px; width:93px; height:22px; vertical-align:middle; ">요양급여</caption>
  1015. <textarea id="tar_newmatrusgeimprvpnt" ref="/root/main/newmeterialdetail/newmatrusgeimprvpnt" maxlength="300" style="left:650px; top:505px; width:543px; height:60px; "/>
  1016. <input id="ipt_reqdepttel" ref="/root/main/newmeterialdetail/reqdepttel" class="input_default" style="left:782px; top:60px; width:81px; height:19px; "/>
  1017. <button id="btn_maincustlastsuplplce" class="icon_search" style="left:699px; top:276px; width:16px; height:16px; ">
  1018. <caption/>
  1019. <script type="javascript" ev:event="DOMActivate">
  1020. <![CDATA[
  1021. //rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00180","goodflag,prodcmpycd,prodcmpynm","cmb_goodflag,ipt_prodcmpycd,opt_prodcmpynm");
  1022. // rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","opt_instcd");
  1023. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","cmb_instcd" );
  1024. model.refresh();
  1025. ]]>
  1026. </script>
  1027. </button>
  1028. <line id="line2" class="line_1" style="x1:540px; y1:6px; x2:1195px; y2:6px; "/>
  1029. <caption id="caption15" class="cell_1" style="left:540px; top:565px; width:108px; height:55px; text-align:center; vertical-align:middle; ">비 고</caption>
  1030. <caption id="caption16" class="cell_1" style="left:540px; top:503px; width:108px; height:60px; text-align:center; vertical-align:middle; ">타병원 사용현황</caption>
  1031. <button id="button10" class="icon_search" visibility="visible" style="left:1049px; top:62px; width:16px; height:16px; ">
  1032. <caption/>
  1033. <script type="javascript" ev:event="DOMActivate">
  1034. <![CDATA[
  1035. rszfOpenPopUpListByWndName(ipt_reqpsn,"","reqpsn,reqpsnnm","SPZSU10100","","");
  1036. var userinfo = model.getValue(gvParamPath +"/SPZSU10100_/SPZSU10100_value");
  1037. if(userinfo != "" && userinfo != null) {
  1038. userinfo = userinfo.split("|");
  1039. model.setValue(ipt_reqpsn.attribute("ref"),userinfo[0]);
  1040. model.setValue(opt_reqpsnnm.attribute("ref"),userinfo[1]);
  1041. }
  1042. model.refresh();
  1043. ]]>
  1044. </script>
  1045. </button>
  1046. <caption id="caption7" class="cell_1" style="left:869px; top:154px; width:93px; height:23px; vertical-align:middle; ">제조회사</caption>
  1047. <caption id="caption27" class="cell_1" style="left:540px; top:248px; width:93px; height:23px; vertical-align:middle; ">수 량</caption>
  1048. <input id="ipt_chrgid" ref="/root/main/newmeterialdetail/chrgid" class="input_default" style="left:820px; top:274px; width:94px; height:19px; "/>
  1049. <input id="ipt_chrgmpphon" ref="/root/main/newmeterialdetail/chrgmpphon" class="input_default" style="left:1097px; top:274px; width:97px; height:19px; "/>
  1050. <input id="ipt_reqseqno" ref="/root/main/newmeterialdetail/reqseqno" class="input_default" disabled="true" style="left:1124px; top:12px; width:70px; height:19px; "/>
  1051. <caption id="caption17" class="cell_1" style="left:540px; top:370px; width:108px; height:65px; text-align:center; vertical-align:middle; ">용법 및 용량</caption>
  1052. <caption id="caption28" class="cell_1" style="left:870px; top:248px; width:145px; height:23px; vertical-align:middle; ">월평균예정사용량</caption>
  1053. <select1 id="cmb_deliveunit" ref="/root/main/newmeterialdetail/deliveunit" class="combo_essential" appearance="minimal" style="left:965px; top:226px; width:108px; height:19px; ">
  1054. <choices>
  1055. <itemset>
  1056. <label/>
  1057. <value/>
  1058. </itemset>
  1059. </choices>
  1060. </select1>
  1061. <textarea id="tar_reqcmt" ref="/root/main/newmeterialdetail/reqcmt" maxlength="300" style="left:650px; top:567px; width:543px; height:55px; "/>
  1062. <caption id="caption29" class="cell_1" style="left:870px; top:223px; width:93px; height:23px; vertical-align:middle; ">사용/구매단위</caption>
  1063. <caption id="caption18" class="cell_1" style="left:540px; top:303px; width:108px; height:65px; text-align:center; vertical-align:middle; ">신 청 사 유</caption>
  1064. <output id="opt_reqdeptnm" ref="/root/main/newmeterialdetail/reqdeptnm" class="output_fix" appearance="output" style="left:732px; top:36px; width:131px; height:19px; "/>
  1065. <input id="ipt_prodcmpycd" ref="/root/main/newmeterialdetail/prodcmpycd" class="input_default" style="left:965px; top:156px; width:69px; height:19px; ">
  1066. <script type="javascript" ev:event="xforms-value-changed">
  1067. <![CDATA[
  1068. if ( model.getValue(ipt_prodcmpycd.attribute("ref")).length == 0 ) model.setValue(opt_prodcmpynm.attribute("ref"),"");
  1069. else rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref")) + "," ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
  1070. model.refresh();
  1071. model.setFocus("ipt_goodmodel");
  1072. ]]>
  1073. </script>
  1074. <script type="javascript" ev:event="onkeydown">
  1075. <![CDATA[
  1076. if(event.keyCode == 9)
  1077. {
  1078. if(event.shiftKey)model.setFocus("cmb_prodplce");
  1079. else model.setFocus("ipt_goodmodel");
  1080. }
  1081. event.preventDefault();
  1082. ]]>
  1083. </script>
  1084. </input>
  1085. <input id="ipt_goodengnm" ref="/root/main/newmeterialdetail/goodengnm" class="input_default" style="left:635px; top:84px; width:558px; height:19px; "/>
  1086. <output id="opt_reqchrgnm" ref="/root/main/newmeterialdetail/reqchrgnm" class="output_fix" appearance="output" style="left:1072px; top:60px; width:121px; height:19px; "/>
  1087. <input id="ipt_reqqty" ref="/root/main/newmeterialdetail/reqqty" class="input_default" format="#,###" style="left:635px; top:250px; width:230px; height:19px; text-align:right; ">-</input>
  1088. <input id="ipt_reqdeptcd" ref="/root/main/newmeterialdetail/reqdeptcd" class="input_essential" style="left:635px; top:36px; width:75px; height:19px; ">
  1089. <script type="javascript" ev:event="xforms-value-changed">
  1090. <![CDATA[
  1091. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
  1092. model.refresh();
  1093. ]]>
  1094. </script>
  1095. </input>
  1096. <select1 id="cmb_prodplce" ref="/root/main/newmeterialdetail/prodplce" class="combo" appearance="minimal" style="left:635px; top:156px; width:230px; height:19px; ">
  1097. <choices>
  1098. <itemset nodeset="/root/init/prodplce">
  1099. <label ref="cdnm"/>
  1100. <value ref="cdid"/>
  1101. </itemset>
  1102. </choices>
  1103. <script type="javascript" ev:event="onkeydown">
  1104. <![CDATA[
  1105. if(event.keyCode == 9)
  1106. {
  1107. if(event.shiftKey)model.setFocus("ipt_goodengnm");
  1108. else model.setFocus("ipt_prodcmpycd");
  1109. }
  1110. if(event.keyCode == 9)model.setFocus("ipt_prodcmpycd");
  1111. event.preventDefault();
  1112. ]]>
  1113. </script>
  1114. <script type="javascript" ev:event="xforms-value-changed">
  1115. <![CDATA[
  1116. model.setFocus("ipt_prodcmpycd");
  1117. ]]>
  1118. </script>
  1119. </select1>
  1120. <output id="opt_prodcmpynm" ref="/root/main/newmeterialdetail/prodcmpynm" class="output_fix" appearance="output" style="left:1059px; top:156px; width:134px; height:19px; "/>
  1121. <input id="ipt_chrgtel" ref="/root/main/newmeterialdetail/chrgtel" class="input_default" style="left:996px; top:274px; width:97px; height:19px; "/>
  1122. </group>
  1123. <group id="group4" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  1124. <button id="btn_clear" class="btn4_letter3" style="left:1071px; top:3px; width:68px; height:22px; ">
  1125. <caption>초기화</caption>
  1126. <script type="javascript" ev:event="DOMActivate">
  1127. <![CDATA[
  1128. var updtdata = getGridUpdateData(grd_newmeterial);
  1129. if (updtdata != "") {
  1130. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  1131. if (ret != 6) { // not OK
  1132. return;
  1133. }
  1134. }
  1135. fInitialize();
  1136. ]]>
  1137. </script>
  1138. </button>
  1139. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  1140. <caption>저장</caption>
  1141. <script type="javascript" ev:event="DOMActivate">
  1142. <![CDATA[
  1143. if ( grd_newmeterial.rows-grd_newmeterial.fixedRows >= 1 ) {
  1144. /*************************
  1145. ** 2008.06.06 Y.Y.J 신청부서 / 구매팀에서 1,2차 적으로 체크한 항목을 수정 , 검사할 필요 없음.
  1146. *************************/
  1147. // if( fCheckSaveData() ) {
  1148. if ( fDataCheck() ) {
  1149. misfSave("TXRSD04001");
  1150. fSearchData();
  1151. } else {
  1152. messageBox("변경된 데이터가","I004");
  1153. return;
  1154. }
  1155. // }
  1156. } else {
  1157. messageBox("접수 대상의 데이터가","I004");
  1158. return;
  1159. }
  1160. ]]>
  1161. </script>
  1162. </button>
  1163. <line id="line13" class="line_6" style="x1:0px; y1:25px; x2:1195; y2:25px; "/>
  1164. </group>
  1165. </xhtml:body>
  1166. </xhtml:html>