SMRSD04200_신규재료신청등록.xrw 103 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  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. <reqtodd/>
  14. <fromreqdd/>
  15. <edicd/>
  16. <goodnm/>
  17. <purcflag>
  18. <item>
  19. <label>구매</label>
  20. <value>1</value>
  21. </item>
  22. <item>
  23. <label>수탁</label>
  24. <value>2</value>
  25. </item>
  26. <item>
  27. <label>가납</label>
  28. <value>3</value>
  29. </item>
  30. </purcflag>
  31. <reqmthd>
  32. <item>
  33. <label>처방집계</label>
  34. <value>1</value>
  35. </item>
  36. <item>
  37. <label>정량보충</label>
  38. <value>2</value>
  39. </item>
  40. <item>
  41. <label>일반청구</label>
  42. <value>3</value>
  43. </item>
  44. <item>
  45. <label>처방제외</label>
  46. <value>4</value>
  47. </item>
  48. </reqmthd>
  49. <reqprid>
  50. <item>
  51. <label>일</label>
  52. <value>1</value>
  53. </item>
  54. <item>
  55. <label>주</label>
  56. <value>2</value>
  57. </item>
  58. <item>
  59. <label>월</label>
  60. <value>4</value>
  61. </item>
  62. </reqprid>
  63. </init>
  64. <cond>
  65. <instcd/>
  66. <reqdeptcd_search/>
  67. <reqdeptnm_search/>
  68. <reqfromdd/>
  69. <reqtodd/>
  70. <goodflag/>
  71. <edicd/>
  72. <goodnm/>
  73. <newmatrprcsstat/>
  74. <instcdnm/>
  75. <emplno/>
  76. <emplnonm/>
  77. <reqno/>
  78. </cond>
  79. <main>
  80. <newmeterialdetail>
  81. <instcd/>
  82. <reqdd/>
  83. <reqseqno/>
  84. <goodflag/>
  85. <goodengnm/>
  86. <goodhngnm/>
  87. <goodspec/>
  88. <goodmodel/>
  89. <prodplce/>
  90. <prodplcenm/>
  91. <prodcmpycd/>
  92. <prodcmpynm/>
  93. <suppcustcd/>
  94. <suppcustnm/>
  95. <chrgid/>
  96. <chrgmpphon/>
  97. <chrgtel/>
  98. <purcunit/>
  99. <reqqty/>
  100. <mmavguseqty/>
  101. <useschedd/>
  102. <edicd/>
  103. <reqresnusge/>
  104. <smlartymatruseprestcond/>
  105. <anohospusestat/>
  106. <newmatrusgeimprvpnt/>
  107. <reqdeptcd/>
  108. <reqdeptnm/>
  109. <reqdepttel/>
  110. <reqpsnid/>
  111. <reqpsnnm/>
  112. <insuyn/>
  113. <undecicurematr/>
  114. <undecicurematrreqdt/>
  115. <actamtincl/>
  116. <judgcmt/>
  117. <purcteamcmt/>
  118. <newmatrprcsstat/>
  119. <lrgcd/>
  120. <mdlcd/>
  121. <smlcd/>
  122. <goodcd/>
  123. <fstrgstrid/>
  124. <fstrgstdt/>
  125. <lastupdtrid/>
  126. <lastupdtdt/>
  127. <insucomd/>
  128. <insuresn/>
  129. <reqcmt/>
  130. <deliveunit/>
  131. <goodunitcost/>
  132. <reqchrgid/>
  133. <reqchrgnm/>
  134. <deptaprvyn/>
  135. <deptaprvdd/>
  136. <deptaprvpsnid/>
  137. <deptaprvpsnnm/>
  138. <prsdnm/>
  139. <cntctel/>
  140. <faxno/>
  141. <insucommityn/>
  142. <actcd/>
  143. <deptcmt/>
  144. <suppcustnmtxt/>
  145. <prodcmpynmtxt/>
  146. <exchqty/>
  147. <specyn/>
  148. <suppcustcdtxt/>
  149. <advsmatryn>N</advsmatryn>
  150. <prcpamt/>
  151. <prcpcd/>
  152. <prcpnm/>
  153. <usedgoodflag/>
  154. <usedgoodcd/>
  155. </newmeterialdetail>
  156. <ReqpsnLists>
  157. <reqpsnlist>
  158. <instcd>
  159. </instcd>
  160. <emplno/>
  161. <emplnm/>
  162. <reqdeptcd>
  163. </reqdeptcd>
  164. <reqdeptnm>
  165. </reqdeptnm>
  166. <reqaprvflag>
  167. </reqaprvflag>
  168. <reqflag>
  169. </reqflag>
  170. <fstrgstrid>
  171. </fstrgstrid>
  172. <fstrgstdt>
  173. </fstrgstdt>
  174. <lastupdtrid>
  175. </lastupdtrid>
  176. <lastupdtdt>
  177. </lastupdtdt>
  178. <reqprid/>
  179. <reqpridnm/>
  180. <reqaprvflagnm>
  181. </reqaprvflagnm>
  182. <reqflagnm>
  183. </reqflagnm>
  184. </reqpsnlist>
  185. </ReqpsnLists>
  186. </main>
  187. <temp>
  188. <newmeterialdetail/>
  189. <newmeterialdetailinfo>
  190. <newmetldetllist/>
  191. </newmeterialdetailinfo>
  192. <reptnewmeterialdetailinfo>
  193. <reptnewmetldetllist/>
  194. </reptnewmeterialdetailinfo>
  195. </temp>
  196. <hidden>
  197. <rcvdata>
  198. <goodlist/>
  199. </rcvdata>
  200. </hidden>
  201. <send>
  202. <reqdata/>
  203. <savedata/>
  204. <reqpsn>
  205. <instcd/>
  206. <emplno/>
  207. <reqflag/>
  208. </reqpsn>
  209. </send>
  210. </root>
  211. </instance>
  212. <script type="javascript" ev:event="xforms-ready">
  213. <![CDATA[
  214. fInitialize();
  215. ]]>
  216. </script>
  217. <submission id="TRRSD04201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/cond" add="bottom" resultref="/root/temp/newmeterialdetailinfo"/>
  218. <submission id="TRRSD00407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqpsn" resultref="/root/main/ReqpsnLists"/>
  219. <submission id="TXRSD04002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/hidden"/>
  220. <submission id="TXRSD04003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
  221. </model>
  222. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  223. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  224. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  225. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  226. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  227. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  228. <script type="javascript">
  229. <![CDATA[
  230. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  231. var status = "i";
  232. var vPurcAuth = "1";
  233. var specyn = "Y";
  234. function fInitialize() {
  235. model.removeNodeset(grd_newmetldetllist.nodeset);
  236. rszfGoodFlagListByPgmGubn(cmb_goodflag,"1","N");
  237. //rszfGoodFlagListByPgmGubn(cmb_goodflag_search,"1","Y");
  238. misfComboCopyItemSet(cmb_goodflag, "", cmb_goodflag_search, "");
  239. addComboItem("cmb_goodflag_search", "전체", "", "above");
  240. // 신규재료신청 화면에서 물품구분 조건 제한 적용
  241. // [B]검사재료, [C]방사선재료, [D]핵의학재료, [E]위생재료, [F]특수진료재료, [G]기타진료재료, [H]의료소모품, [K]기타재료(사무용재료포함)
  242. // 치과 분리로 기관코드 치과 이면 [S]치과재료 추가 - 2016.08.31 김금련
  243. var instcd = getUserInfo("dutplceinstcd");
  244. if(instcd == '031' || instcd == '032'){
  245. var filter = "goodflag='B' or goodflag='C' or goodflag='D' or goodflag='E' or goodflag='F' or goodflag='G' or goodflag='H' or goodflag='K'";
  246. }else if(instcd == '033'){
  247. var filter = "goodflag='S' or goodflag='B' or goodflag='C' or goodflag='D' or goodflag='E' or goodflag='F' or goodflag='G' or goodflag='H' or goodflag='K'";
  248. }
  249. var nodeset = cmb_goodflag.choices.itemset.attribute("nodeset");
  250. cmb_goodflag.choices.itemset.attribute("nodeset") = nodeset + "[" + filter + "]";
  251. cmb_goodflag_search.choices.itemset.attribute("nodeset") = nodeset + "[goodflag='' or " + filter + "]";
  252. misfComboComCdListMulti("C0048,R0035,R0367,R0369,R0367,R0368"
  253. ,"cmb_instcd,cmb_prodplce,cmb_newmatrprcsstat,rdo_insuyn,grd_newmetldetllist.newmatrprcsstat,grd_newmetldetllist.insucommityn");
  254. addComboItem("cmb_newmatrprcsstat", "전체", "", "above");
  255. fSetInitCtrl(false);
  256. var reqdate = getCurrentDate().toDate("YYYYMMDD");
  257. model.setValue(ipt_reqfromdd_search.attribute("ref"), reqdate.getAddDate(-7, "D").getDateFormat("YYYYMMDD") );
  258. model.setValue(ipt_reqtodd_search.attribute("ref"), getCurrentDate());
  259. model.setValue("/root/send/reqpsn/instcd", getUserInfo("dutplceinstcd") );
  260. model.setValue("/root/send/reqpsn/emplno", getUserInfo("userid") );
  261. model.setValue("/root/send/reqpsn/reqflag", "E");
  262. model.setValue(ipt_reqdeptcd_search.attribute("ref"), getUserInfo("dutplcecd"));
  263. model.setValue(ipt_reqdeptnm_search.attribute("ref"), getUserInfo("dutplcenm"));
  264. submit("TRRSD00407"); //권한조회
  265. //fPurcAuthInfo(getUserInfo("dutplcecd"));
  266. btn_search.dispatch("DOMActivate");
  267. }
  268. function fInitInstance() {
  269. var node = instance1.selectSingleNode("/root/main/newmeterialdetail");
  270. var nodelist = node.childNodes;
  271. while (childNode = nodelist.nextNode())
  272. {
  273. model.resetInstanceNode("/root/main/newmeterialdetail" + childNode);
  274. }
  275. model.refresh();
  276. }
  277. // 컨트롤 상태설정(flag : false(활성화), true(비활성화)
  278. // newmatrprcsstat : 진행상태에 따른 상태값변화를 위한변수
  279. // specflag : Y: 규격신규 N: 물품신규
  280. function fSetInitCtrl(flag, newmatrprcsstat, specflag) {
  281. if(flag == false) {
  282. if(newmatrprcsstat == null) {
  283. model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  284. model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
  285. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  286. model.setValue(ipt_reqdd.attribute("ref") , getCurrentDate());
  287. model.setValue(ipt_reqpsnid.attribute("ref") , getUserInfo("userid"));
  288. model.setValue(ipt_reqpsnnm.attribute("ref") , getUserInfo("usernm"));
  289. model.setValue(ipt_reqdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
  290. model.setValue(ipt_reqdeptnm.attribute("ref"), getUserInfo("dutplcenm"));
  291. model.setValue(ipt_reqdd.attribute("ref") , getCurrentDate());
  292. }
  293. } else {
  294. }
  295. if( newmatrprcsstat == null) {
  296. cmb_goodflag.disabled = flag; //물품구분
  297. } else {
  298. cmb_goodflag.disabled = true; //물품구분
  299. }
  300. rdo_insuyn.disabled = flag; //요양급여
  301. ipt_reqdepttel.disabled = flag; //원내전화
  302. ipt_reqdeptcd.disabled = flag; //청구부서코드
  303. ipt_reqpsnid.disabled = flag; //청구자ID
  304. btn_reqpsnid.disabled = flag; //청구자ID
  305. ipt_reqchrgid.disabled = flag; //부서장ID
  306. btn_reqchrgid.disabled = flag; //부서장ID
  307. if(flag == false) {
  308. // ipt_goodengnm.disabled = flag; //물품영문명
  309. // ipt_goodhngnm.disabled = flag; //물품한글명
  310. // ipt_goodunitcost.disabled = flag; //물품단위
  311. // ipt_goodspec.disabled = flag; //물품규격
  312. // ipt_goodmodel.disabled = flag; //물품모델
  313. // ipt_mmavguseqty.disabled = flag; //월예상사용량
  314. ipt_goodengnm.attribute("editable") = "true";
  315. ipt_goodengnm.attribute("background-color") = "#ffffff";
  316. ipt_goodhngnm.attribute("editable") = "true";
  317. ipt_goodhngnm.attribute("background-color") = "#ffffff";
  318. ipt_goodunitcost.attribute("editable") = "true";
  319. ipt_goodunitcost.attribute("background-color") = "#ffffff";
  320. ipt_goodspec.attribute("editable") = "true";
  321. ipt_goodspec.attribute("background-color") = "#ffffff";
  322. ipt_goodmodel.attribute("editable") = "true";
  323. ipt_goodmodel.attribute("background-color") = "#ffffff";
  324. ipt_mmavguseqty.attribute("editable") = "true";
  325. ipt_mmavguseqty.attribute("background-color") = "#ffffff";
  326. }else{
  327. ipt_goodengnm.attribute("editable") = "false";
  328. ipt_goodengnm.attribute("background-color") = "#eaeaea";
  329. ipt_goodhngnm.attribute("editable") = "false";
  330. ipt_goodhngnm.attribute("background-color") = "#eaeaea";
  331. ipt_goodunitcost.attribute("editable") = "false";
  332. ipt_goodunitcost.attribute("background-color") = "#eaeaea";
  333. ipt_goodspec.attribute("editable") = "false";
  334. ipt_goodspec.attribute("background-color") = "#eaeaea";
  335. ipt_goodmodel.attribute("editable") = "false";
  336. ipt_goodmodel.attribute("background-color") = "#eaeaea";
  337. ipt_mmavguseqty.attribute("editable") = "false";
  338. ipt_mmavguseqty.attribute("background-color") = "#eaeaea";
  339. }
  340. ipt_reqqty.disabled = flag; //포장단위수량
  341. cmb_purcunit.disabled = flag; //구매단위
  342. cmb_deliveunit.disabled = flag; //불출단위
  343. cmb_prodplce.disabled = flag; //제조국
  344. ipt_suppcustcd.disabled = flag; //거래처코드
  345. //ipt_suppcustnm.disabled = flag; //거래처명
  346. ipt_suppcustcdtxt.disabled = flag; //거래처코드텍스트
  347. ipt_suppcustnmtxt.disabled = flag; //거래처텍스트
  348. ipt_prodcmpycd.disabled = flag; //제조국코드
  349. //ipt_prodcmpynm.disabled = flag; //제조국명
  350. ipt_prodcmpynmtxt.disabled = flag; //제조국텍스트
  351. tar_reqresnusge.disabled = flag; //신청사유
  352. tar_smlartymatruseprestcond.disabled = flag; //제품설명
  353. tar_anohospusestat.disabled = flag; //본원유사재료 및 관련행위
  354. grp_relation.disabled = flag; //본원유사재료 및 관련행위
  355. tar_newmatrusgeimprvpnt.disabled = flag; //현품의 차이점 및 타병원사용현황
  356. tar_reqcmt.disabled = flag; //비고
  357. ipt_chrgid.disabled = flag; //담당자ID
  358. ipt_chrgmpphon.disabled = flag; //담당자 휴대폰
  359. ipt_chrgtel.disabled = flag; //담당자전화번호
  360. ipt_undecicurematrreqdt.disabled = flag; //치료재료미결정신청일
  361. ipt_actcd.disabled = flag; //행위료코드
  362. if(model.getValue(rdo_insuyn.attribute("ref")) == "") {
  363. ipt_edicd.disabled = true; //EDI코드
  364. } else {
  365. ipt_edicd.disabled = flag; //EDI코드
  366. }
  367. btn_goodref.disabled = true;
  368. if(specflag == "Y") {
  369. rdo_insuyn.disabled = true;
  370. ipt_goodcd.disabled = false; //물품코드
  371. btn_goodref.disabled = false;
  372. tar_smlartymatruseprestcond.disabled = true; //제품설명
  373. tar_anohospusestat.disabled = true; //본원유사재료 및 관련행위
  374. grp_relation.disabled = true; //본원유사재료 및 관련행위
  375. tar_newmatrusgeimprvpnt.disabled = true; //현품의 차이점 및 타병원 사용현황
  376. tar_reqcmt.disabled = true; //비고
  377. //------------------------------------------------------------------------
  378. // ipt_goodengnm.disabled = true; //물품영문명
  379. // ipt_goodhngnm.disabled = true; //물품한글명
  380. // ipt_goodunitcost.disabled = true; //물품단위
  381. // ipt_goodspec.disabled = true; //물품규격
  382. // ipt_goodmodel.disabled = true; //물품모델
  383. // ipt_mmavguseqty.disabled = true; //월예상사용량
  384. ipt_goodengnm.attribute("editable") = "false";
  385. ipt_goodengnm.attribute("background-color") = "#eaeaea";
  386. ipt_goodhngnm.attribute("editable") = "false";
  387. ipt_goodhngnm.attribute("background-color") = "#eaeaea";
  388. ipt_goodunitcost.attribute("editable") = "false";
  389. ipt_goodunitcost.attribute("background-color") = "#eaeaea";
  390. ipt_goodspec.attribute("editable") = "false";
  391. ipt_goodspec.attribute("background-color") = "#eaeaea";
  392. ipt_goodmodel.attribute("editable") = "false";
  393. ipt_goodmodel.attribute("background-color") = "#eaeaea";
  394. ipt_mmavguseqty.attribute("editable") = "false";
  395. ipt_mmavguseqty.attribute("background-color") = "#eaeaea";
  396. //------------------------------------------------------------------------
  397. ipt_reqqty.disabled = true; //포장단위수량
  398. cmb_purcunit.disabled = true; //구매단위
  399. cmb_deliveunit.disabled = true; //불출단위
  400. cmb_prodplce.disabled = true; //제조국
  401. // ipt_suppcustcdtxt.disabled = true; //거래처코드텍스트
  402. // ipt_suppcustcd.disabled = true; //거래처코드
  403. // ipt_suppcustnm.disabled = true; //거래처명
  404. // ipt_suppcustnmtxt.disabled = true; //거래처텍스트
  405. // ipt_prodcmpycd.disabled = true; //제조국코드
  406. // ipt_prodcmpynm.disabled = true; //제조국명
  407. // ipt_prodcmpynmtxt.disabled = true; //제조국텍스트
  408. // ipt_chrgid.disabled = true; //담당자ID
  409. // ipt_chrgmpphon.disabled = true; //담당자 휴대폰
  410. // ipt_chrgtel.disabled = true; //담당자전화번호
  411. ipt_undecicurematrreqdt.disabled = true; //치료재료미결정신청일
  412. ipt_actcd.disabled = true; //행위료코드
  413. ipt_edicd.disabled = true; //EDI코드
  414. caption18.text = "신 규 규 격";
  415. } else {
  416. ipt_goodcd.disabled = true; //물품코드
  417. tar_smlartymatruseprestcond.disabled = flag; //본원설명
  418. tar_anohospusestat.disabled = flag; //본원유사재료 및 관련행위
  419. grp_relation.disabled = flag; //본원유사재료 및 관련행위
  420. tar_newmatrusgeimprvpnt.disabled = flag; //현품의 차이점 및 타병원 사용현황
  421. tar_reqcmt.disabled = flag; //비고
  422. caption18.text = "신 청 사 유";
  423. }
  424. }
  425. //청구자 승인자 권한 체크!!
  426. function fCheckGrant()
  427. {
  428. rszfGetPurcReqAuthInfo(opt_instcd.value, "E", ipt_reqdeptcd.value, getUserInfo("userid"));
  429. if(rszfGetPurcAuthInfoByCond("reqaprvflag") == '1')
  430. {
  431. grd_newmetldetllist.colDisabled(grd_newmetldetllist.colRef("deptaprvyn")) = true;
  432. btn_save.disabled = false;
  433. } else if(rszfGetPurcAuthInfoByCond("reqaprvflag") == '2') {
  434. grd_newmetldetllist.colDisabled(grd_newmetldetllist.colRef("deptaprvyn")) = false;
  435. btn_save.disabled = false;
  436. } else {
  437. grd_newmetldetllist.colDisabled(grd_newmetldetllist.colRef("deptaprvyn")) = true;
  438. btn_save.disabled = true;
  439. }
  440. }
  441. function fDisableCheck( status ) {
  442. cmb_instcd.disabled = status;
  443. // ipt_reqdd.disabled = status;
  444. // ipt_reqseqno.disabled = status;
  445. cmb_goodflag.disabled = status;
  446. }
  447. /* ---------------------------------------------------------------
  448. 요양급여 컬럼에 따라 보여지는 column 이 다르다.
  449. -----------------------------------------------------------------*/
  450. function fInsuynChange(pDataClearYn)
  451. {
  452. ipt_edicd.visible = true;
  453. btn_edicdsearch.visible = true;
  454. ipt_insucomd.visible = false;
  455. ipt_insuresn.visible = false;
  456. cap_actcd.visible = false;
  457. ipt_actcd.visible = false;
  458. ipt_undecicurematrreqdt.visible = false;
  459. /* ----------------------------------------------------------
  460. data query -> silple query
  461. validation -> dataclear , ,
  462. -----------------------------------------------------------*/
  463. if (pDataClearYn=="Y")
  464. {
  465. model.setValue(ipt_edicd.attribute("ref") ,""); // edi code
  466. model.setValue(ipt_insucomd.attribute("ref") ,""); // 해당고시
  467. model.setValue(ipt_undecicurematrreqdt.attribute("ref") ,""); // 치료재료 미결정신청일자
  468. model.setValue(ipt_insuresn.attribute("ref") ,""); // 의료적 비급여사유
  469. }
  470. var pInsuyn = model.getValue(rdo_insuyn.attribute("ref"));
  471. if(pInsuyn == "1" || pInsuyn == "2")
  472. {
  473. caption_insuyn.text = 'EDI CODE';
  474. ipt_edicd.visible = true;
  475. btn_edicdsearch.visible = true;
  476. }
  477. else if(pInsuyn == "3" || pInsuyn == "4" || pInsuyn == "5")
  478. {
  479. caption_insuyn.text = '재료미결정신청일';
  480. ipt_undecicurematrreqdt.visible = true;
  481. ipt_actcd.visible = true;
  482. cap_actcd.visible = true;
  483. ipt_edicd.visible = false;
  484. btn_edicdsearch.visible = false;
  485. }
  486. if(pInsuyn == null || pInsuyn == ""){
  487. ipt_edicd.disabled = true;
  488. btn_edicdsearch.disabled = true;
  489. } else {
  490. ipt_edicd.disabled = false;
  491. btn_edicdsearch.disabled = false;
  492. }
  493. model.refresh();
  494. }
  495. function fSearchData() {
  496. misfMsterDetailRetrieve();
  497. if ( grd_newmetldetllist.rows > 1 ) {
  498. model.resetInstanceNode("/root/main/newmeterialdetail");
  499. grd_newmetldetllist.row = 1;
  500. model.copyNode("/root/main/newmeterialdetail" ,grd_newmetldetllist.nodeset + "["+ grd_newmetldetllist.row + "]");
  501. fDisableCheck( true );
  502. } else {
  503. model.resetInstanceNode("/root/main/newmeterialdetail");
  504. fDisableCheck( false );
  505. }
  506. model.refresh();
  507. }
  508. function fCheckSaveData()
  509. {
  510. var insuyn = model.getValue("/root/main/newmeterialdetail/insuyn");
  511. var edicd = model.getValue("/root/main/newmeterialdetail/edicd");
  512. // 요양급여가 보험급여나 비급여일때 EDI CODE 입력여부 체크
  513. if(insuyn == "1" || insuyn == "2" ) {
  514. if(edicd == "" || edicd.length != "8"){
  515. messageBox("요양급여가 보험급여 또는 비급여일때 EDI CODE(8자리)는" ,"I003");
  516. model.setFocus("ipt_edicd");
  517. return false;
  518. }
  519. }
  520. if(model.getValue(cmb_instcd.attribute("ref")).length==0)
  521. {
  522. messageBox("기관코드는" ,"I003");
  523. model.setFocus("cmb_instcd");
  524. return false;
  525. }
  526. if(model.getValue(ipt_reqdd.attribute("ref")).length==0)
  527. {
  528. messageBox("청구일자는","I003");
  529. model.setFocus("ipt_reqdd");
  530. return false;
  531. }
  532. if(model.getValue(ipt_reqdeptcd.attribute("ref")).length==0)
  533. {
  534. messageBox("청구부서는","I003");
  535. model.setFocus("ipt_reqdeptcd");
  536. return false;
  537. }
  538. if(model.getValue(ipt_reqpsnid.attribute("ref")).length==0)
  539. {
  540. messageBox("신청자는","I003");
  541. model.setFocus("ipt_reqpsnid");
  542. return false;
  543. }
  544. if(model.getValue(cmb_goodflag.attribute("ref")).length==0)
  545. {
  546. messageBox("물품구분은","I003");
  547. model.setFocus("cmb_goodflag");
  548. return false;
  549. }
  550. if(model.getValue(ipt_reqdepttel.attribute("ref")).length==0)
  551. {
  552. messageBox("원내전화는","I003");
  553. model.setFocus("ipt_reqdepttel");
  554. return false;
  555. }
  556. if(model.getValue(ipt_reqchrgid.attribute("ref")).length==0)
  557. {
  558. messageBox("부서장은","I003");
  559. model.setFocus("ipt_reqchrgid");
  560. return false;
  561. }
  562. if (model.getValue(cmb_specyn.attribute("ref")) != "Y"){
  563. if(model.getValue(ipt_goodengnm.attribute("ref")).length==0)
  564. {
  565. messageBox("품명(영문)은","I003");
  566. model.setFocus("ipt_goodengnm");
  567. return false;
  568. }
  569. }
  570. if(model.getValue(ipt_goodhngnm.attribute("ref")).length==0)
  571. {
  572. model.setValue("/root/main/newmeterialdetail/goodhngnm", model.getValue("/root/main/newmeterialdetail/goodengnm"));
  573. }
  574. /*if(model.getValue(ipt_goodhngnm.attribute("ref")).length==0)
  575. {
  576. messageBox("품명(한글)은","I003");
  577. model.setFocus("ipt_goodhngnm");
  578. return false;
  579. }*/
  580. if (model.getValue(cmb_specyn.attribute("ref")) != "Y"){
  581. if(model.getValue(ipt_goodunitcost.attribute("ref")).length==0)
  582. {
  583. messageBox("단가는","I003");
  584. model.setFocus("ipt_goodunitcost");
  585. return false;
  586. }
  587. }
  588. if (model.getValue(cmb_specyn.attribute("ref")) != "Y"){
  589. if(model.getValue(ipt_goodspec.attribute("ref")).length==0)
  590. {
  591. messageBox("규격은","I003");
  592. model.setFocus("ipt_goodspec");
  593. return false;
  594. }
  595. }
  596. if (model.getValue(cmb_specyn.attribute("ref")) == "Y"){
  597. if(model.getValue(ipt_goodcd.attribute("ref")).length==0)
  598. {
  599. messageBox("물품코드는","I003");
  600. model.setFocus("ipt_goodcd");
  601. return false;
  602. }
  603. }
  604. if (model.getValue(cmb_specyn.attribute("ref")) == "Y"){
  605. if( model.getValue(ipt_reqqty.attribute("ref" )).length==0
  606. || model.getValue(cmb_deliveunit.attribute("ref")).length==0
  607. || model.getValue(cmb_purcunit.attribute("ref" )).length==0)
  608. {
  609. messageBox("포장 구성 단위는","I003");
  610. if (model.getValue(ipt_reqqty.attribute("ref")).length==0){
  611. model.setFocus("ipt_reqqty");
  612. return false;
  613. }
  614. if (model.getValue(cmb_deliveunit.attribute("ref")).length==0){
  615. model.setFocus("cmb_deliveunit");
  616. return false;
  617. }
  618. if (model.getValue(cmb_purcunit.attribute("ref")).length==0){
  619. model.setFocus("cmb_purcunit");
  620. return false;
  621. }
  622. }
  623. }
  624. if (model.getValue(cmb_specyn.attribute("ref")) != "Y"){
  625. if(model.getValue(rdo_advsmatryn.attribute("ref"))==""){
  626. messageBox("유해물질은","I003");
  627. model.setFocus("rdo_advsmatryn");
  628. return false;
  629. }
  630. }
  631. if (model.getValue(cmb_specyn.attribute("ref")) != "Y"){
  632. if(model.getValue(ipt_suppcustcd.attribute("ref")).length==0) {
  633. if(model.getValue(ipt_suppcustcdtxt.attribute("ref")).length==0)
  634. {
  635. messageBox("거래처는","I003");
  636. model.setFocus("ipt_suppcustcd");
  637. return false;
  638. }
  639. }
  640. }
  641. if (model.getValue(cmb_specyn.attribute("ref")) != "Y"){
  642. if(model.getValue(ipt_chrgid.attribute("ref")).length==0)
  643. {
  644. messageBox("담당자는","I003");
  645. model.setFocus("ipt_chrgid");
  646. return false;
  647. }
  648. }
  649. if (model.getValue(cmb_specyn.attribute("ref")) != "Y"){
  650. if(model.getValue(ipt_chrgtel.attribute("ref")).length==0
  651. && model.getValue(ipt_chrgmpphon.attribute("ref")).length==0)
  652. {
  653. messageBox("거래처 연락번호는","I003");
  654. model.setFocus("ipt_chrgtel");
  655. return false;
  656. }
  657. }
  658. if(model.getValue(tar_reqresnusge.attribute("ref")).length==0){
  659. if (model.getValue(cmb_specyn.attribute("ref")) == "Y"){
  660. messageBox("신규규격입력","I003");
  661. }else{
  662. messageBox("신청사유는","I003");
  663. }
  664. model.setFocus("tar_reqresnusge");
  665. return false;
  666. }
  667. if (model.getValue(cmb_specyn.attribute("ref")) != "Y"){
  668. if(model.getValue(tar_smlartymatruseprestcond.attribute("ref")).length==0)
  669. {
  670. messageBox("제품설명은","I003");
  671. model.setFocus("tar_smlartymatruseprestcond");
  672. return false;
  673. }
  674. }
  675. if (model.getValue(cmb_specyn.attribute("ref")) != "Y"){
  676. if(model.getValue(tar_newmatrusgeimprvpnt.attribute("ref")).length==0)
  677. {
  678. messageBox("현품의 차이점 및 타병원 사용현황은","I003");
  679. model.setFocus("tar_newmatrusgeimprvpnt");
  680. return false;
  681. }
  682. }
  683. var insuyn = model.getValue(rdo_insuyn.attribute("ref"));
  684. /*
  685. if(insuyn == "1" || insuyn == "2" ) {
  686. if(model.getValue(ipt_edicd.attribute("ref")) == "") {
  687. messageBox("EDICD를 입력하여주세요.", "E");
  688. model.setFocus("ipt_edicd");
  689. return;
  690. }
  691. } else if(insuyn == "3") {
  692. if(model.getValue(ipt_undecicurematrreqdt.attribute("ref")) == "") {
  693. messageBox("재료미결정신청일을 입력하여 주세요.", "E");
  694. model.setFocus("ipt_undecicurematrreqdt");
  695. return;
  696. }
  697. } else if(insuyn == "4") {
  698. if(model.getValue(ipt_actcd.attribute("ref")) == "") {
  699. messageBox("행위재료코드를 입력하여 주세요.", "E");
  700. model.setFocus("ipt_actcd");
  701. return;
  702. }
  703. }
  704. */
  705. if(model.getValue(cmb_specyn.attribute("ref")) == "Y") {
  706. if(model.getValue(ipt_goodcd.attribute("ref")) == "") {
  707. messageBox("규격신규물품은 물품코드를 등록하셔야합니다.", "E");
  708. model.setFocus("ipt_goodcd");
  709. return false;
  710. }
  711. }
  712. if(ipt_prodcmpycd.value.length < ipt_prodcmpycd.value.getUTF8Length()) {
  713. messageBox("입력하신 제조회사 코드는", "E016", "조회 된 제조회사를 입력 하시거나 조회에서 없을 경우 직접 입력하십시오.");
  714. model.setFocus("ipt_prodcmpycd");
  715. return false;
  716. }
  717. if(ipt_suppcustcd.value.length < ipt_suppcustcd.value.getUTF8Length()) {
  718. messageBox("입력하신 거래처 코드는", "E016", "조회 된 거래처를 입력 하시거나 조회에서 없을 경우 직접 입력하십시오.");
  719. model.setFocus("ipt_suppcustcd");
  720. return false;
  721. }
  722. if(!misfUTF8MaxLengthMulti("tar_reqresnusge,tar_smlartymatruseprestcond,tar_anohospusestat,tar_newmatrusgeimprvpnt,tar_reqcmt,tar_deptcmt")) return false;
  723. if(model.getValue(tar_anohospusestat.attribute("ref")).length == 0) {
  724. if(model.getValue(cmb_specyn.attribute("ref")) != "Y") {
  725. if(model.getValue(cmb_usedgoodflag.attribute("ref")) == "") {
  726. messageBox("기존(유사재료) 사용구분을 등록하셔야합니다.", "E");
  727. model.setFocus("cmb_usedgoodflag");
  728. return false;
  729. } else {
  730. if(model.getValue(cmb_usedgoodflag.attribute("ref")) == "A" || model.getValue(cmb_usedgoodflag.attribute("ref")) == "B") {
  731. if(model.getValue(ipt_usedgoodcd.attribute("ref")).length == 0) {
  732. messageBox("기존(유사재료) 물품코드를 등록하셔야합니다.", "E");
  733. model.setFocus("ipt_usedgoodcd");
  734. return false;
  735. }
  736. }
  737. }
  738. }
  739. }
  740. return true;
  741. }
  742. // 청구승인자 Check
  743. function fPurcAuthInfo(reqdeptcd, instcd) {
  744. if(reqdeptcd == null || reqdeptcd == "") reqdeptcd = getUserInfo("dutplcecd");
  745. if(instcd == null || instcd == "") instcd = getUserInfo("dutplceinstcd");
  746. if(instance1.selectNodes("/root/main/ReqpsnLists/reqpsnlist") != null){ //승인권한 검사
  747. var checkNode2 = "/root/main/ReqpsnLists/reqpsnlist[instcd='"+instcd+"' and reqdeptcd='"+reqdeptcd+"' and reqflag='E' and reqaprvflag='2']";
  748. if(instance1.selectNodes(checkNode2).length > 0) return "2"; //승인권한
  749. var checkNode1 = "/root/main/ReqpsnLists/reqpsnlist[instcd='"+instcd+"' and reqdeptcd='"+reqdeptcd+"' and reqflag='E' and reqaprvflag='1']";
  750. if(instance1.selectNodes(checkNode2).length > 0) return "1"; //청구권한
  751. }
  752. }
  753. function fDefaultSetting()
  754. {
  755. model.setValue(cmb_instcd.attribute("ref") , opt_instcd.value);
  756. model.setValue(cmb_goodflag.attribute("ref") , cmb_goodflag_search.value);
  757. model.setValue(ipt_reqdd.attribute("ref"), getCurrentDate() );
  758. model.setValue(ipt_reqdeptcd.attribute("ref"), model.getValue(ipt_reqdeptcd_search.attribute("ref")) );
  759. model.setValue(ipt_reqdeptnm.attribute("ref"), model.getValue(ipt_reqdeptnm_search.attribute("ref")) );
  760. model.setValue(ipt_reqpsnid.attribute("ref"), getUserInfo("userid"));
  761. model.setValue(ipt_reqpsnnm.attribute("ref"), getUserInfo("usernm"));
  762. var idx = grd_newmetldetllist.row - grd_newmetldetllist.fixedRows + 1;
  763. model.setValue(grd_newmetldetllist.nodeset + "[" + idx + "]/instcd" , opt_instcd.value);
  764. model.setValue(grd_newmetldetllist.nodeset + "[" + idx + "]/goodflag" , cmb_goodflag_search.value);
  765. model.setValue(grd_newmetldetllist.nodeset + "[" + idx + "]/reqdd" , getCurrentDate());
  766. model.setValue(grd_newmetldetllist.nodeset + "[" + idx + "]/reqdeptcd" , getUserInfo("dutplcecd"));
  767. model.setValue(grd_newmetldetllist.nodeset + "[" + idx + "]/reqdeptnm" , getUserInfo("dutplcenm"));
  768. model.setValue(grd_newmetldetllist.nodeset + "[" + idx + "]/reqpsnid" , getUserInfo("userid"));
  769. model.setValue(grd_newmetldetllist.nodeset + "[" + idx + "]/reqpsnnm" , getUserInfo("usernm"));
  770. model.refresh();
  771. }
  772. function fSetGoodinfo() {
  773. var path = "/root/main/newmeterialdetail";
  774. var rcvpath = "/root/hidden/rcvdata/goodlist";
  775. var goodspec = model.getValue(rcvpath + "/goodspec" );
  776. var goodmodel = model.getValue(rcvpath + "/goodmodel" );
  777. var reqqty = model.getValue(rcvpath + "/prcpexchqty");
  778. if (goodspec == "" || goodspec == null) {
  779. goodspec = "-";
  780. }
  781. if (goodmodel == "" || goodmodel == null) {
  782. goodmodel = "-";
  783. }
  784. if (reqqty == "" || reqqty == null) {
  785. reqqty = "1"
  786. }
  787. model.setValue(path + "/goodflag" , model.getValue(rcvpath + "/goodflag" ));
  788. model.setValue(path + "/goodengnm" , model.getValue(rcvpath + "/goodengnm" ));
  789. model.setValue(path + "/goodhngnm" , model.getValue(rcvpath + "/goodhngnm" ));
  790. model.setValue(path + "/goodspec" , goodspec );
  791. model.setValue(path + "/goodmodel" , goodmodel );
  792. model.setValue(path + "/prodplce" , model.getValue(rcvpath + "/prodplce" ));
  793. model.setValue(path + "/prodplcenm" , model.getValue(rcvpath + "/prodplcenm" ));
  794. model.setValue(path + "/prodcmpycd" , model.getValue(rcvpath + "/prodcmpycd" ));
  795. model.setValue(path + "/prodcmpynm" , model.getValue(rcvpath + "/prodcmpynm" ));
  796. model.setValue(path + "/suppcustcd" , model.getValue(rcvpath + "/suppcustcd" ));
  797. model.setValue(path + "/suppcustnm" , model.getValue(rcvpath + "/suppcustnm" ));
  798. model.setValue(path + "/suppcustnmtxt" , model.getValue(rcvpath + "/suppcustnmtxt" ));
  799. model.setValue(path + "/prodcmpynmtxt" , model.getValue(rcvpath + "/prodcmpynmtxt" ));
  800. model.setValue(path + "/reqqty" , reqqty);
  801. model.setValue(path + "/deliveunit" , model.getValue(rcvpath + "/deliveunit" ));
  802. model.setValue(path + "/purcunit" , model.getValue(rcvpath + "/purcunit" ));
  803. model.setValue(path + "/mmavguseqty" , model.getValue(rcvpath + "/mmavguseqty" ));
  804. model.setValue(path + "/edicd" , model.getValue(rcvpath + "/edicd" ));
  805. model.setValue(path + "/insuyn" , model.getValue(rcvpath + "/insuyn" ));
  806. model.setValue(path + "/goodcd" , model.getValue(rcvpath + "/goodcd" ));
  807. model.setValue(path + "/goodunitcost" , model.getValue(rcvpath + "/goodunitcost" ));
  808. model.refresh();
  809. }
  810. function fEdiCodeSearch() {
  811. var recv_ref = "/root/temp/edisearch";
  812. var targ_ref = "/root/main/newmeterialdetail";
  813. var recv_list = "edicd,cdnm,spec,unit,unitcost,estmclssnm,incomecmpy";
  814. model.removeNodeset(recv_ref);
  815. if(rdo_insuyn.value == "1") // 급여
  816. setParameter("payflag", "0");
  817. else if(rdo_insuyn.value == "2") // 비급
  818. setParameter("payflag", "1");
  819. else
  820. setParameter("payflag", ""); // 전체
  821. setParameter("edicd", model.getValue(ipt_edicd.attribute("ref"))); // 조회 EDI코드
  822. misfOpenPopUpList("60", ipt_edicd, "", recv_list) ;
  823. if(instance1.selectNodes(recv_ref).length >= 0 && model.getValue(recv_ref + "/edicd").length > 0) {
  824. model.setValue(targ_ref + "/edicd", model.getValue(recv_ref + "/edicd"));
  825. model.setValue(targ_ref + "/goodengnm", model.getValue(recv_ref + "/cdnm"));
  826. model.setValue(targ_ref + "/goodhngnm", model.getValue(recv_ref + "/cdnm"));
  827. model.setValue(targ_ref + "/goodspec", model.getValue(recv_ref + "/spec"));
  828. model.setValue(targ_ref + "/deliveunit", model.getValue(recv_ref + "/unit"));
  829. model.setValue(targ_ref + "/goodunitcost", model.getValue(recv_ref + "/unitcost"));
  830. model.setValue(targ_ref + "/prodcmpynmtxt", model.getValue(recv_ref + "/estmclssnm"));
  831. fTextLabelView();
  832. }
  833. model.refresh();
  834. }
  835. function fTextLabelView() {
  836. if(ipt_suppcustnmtxt.value != "" || ipt_suppcustnmtxt.disabled == true) {
  837. cap_suppcustnmtxt.visible = false;
  838. } else {
  839. cap_suppcustnmtxt.visible = true;
  840. }
  841. if(ipt_suppcustcdtxt.value != "" || ipt_suppcustcdtxt.disabled == true) {
  842. cap_suppcustcdtxt.visible = false;
  843. } else {
  844. cap_suppcustcdtxt.visible = true;
  845. }
  846. if(ipt_prodcmpynmtxt.value != "" || ipt_prodcmpynmtxt.disabled == true) {
  847. cap_prodcmpynmtxt.visible = false;
  848. } else {
  849. cap_prodcmpynmtxt.visible = true;
  850. }
  851. if(ipt_goodspec.value != "" || ipt_goodspec.disabled == true) {
  852. cap_goodspectxt.visible = false;
  853. } else {
  854. cap_goodspectxt.visible = true;
  855. }
  856. fChangRelationView();
  857. }
  858. function fChangRelationView() {
  859. if(model.getValue(tar_anohospusestat.attribute("ref")).length > 0) {
  860. tar_anohospusestat.visible = true;
  861. grp_relation.visible = false;
  862. } else {
  863. tar_anohospusestat.visible = false;
  864. grp_relation.visible = true;
  865. cmb_usedgoodflag.dispatch("xforms-value-changed");
  866. }
  867. }
  868. ]]>
  869. </script>
  870. </xhtml:head>
  871. <xhtml:body pagewidth="1250" pageheight="820" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  872. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  873. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:360px; height:14px; ">신규 의료소모품 신청 및 조회</caption>
  874. <caption id="caption1" class="patient_text_black" style="left:828px; top:0px; width:366px; "/>
  875. </group>
  876. <group id="group3" scroll="auto" style="left:0px; top:22px; width:1195px; height:748px; ">
  877. <caption id="caption9" class="tit_2" style="left:1px; top:286px; width:180px; height:13px; ">신규 의료소모품 신청내역</caption>
  878. <datagrid id="grd_newmetldetllist" nodeset="/root/temp/newmeterialdetailinfo/newmetldetllist" class="datagrid2" caption="승인^규격&#xA;신규^기관명^유해&#xA;물질^제조국명^물품구분명^청구번호^청구번호^진행상태^위원회^물품코드^물품명^물품명^규격^규격^모델^모델^수가&#xA;여부^EDICD^구매&#xA;구분^청구방법^청구&#xA;주기^포장구성단위^보조거래처^보조거래처^보조거래처^담당자^담당자HP^제조원^부서&#xA;승인일자^부서&#xA;승인자명^청구부서^신청부서코드^청구자^코드&#xA;생성일^신청자ID^원내번호^청구&#xA;수량^청구&#xA;단가^영문명^수가산정일자^제조원^제조국^담당자id^담당자hp^담당자전화번호^구매단위^청구수량^월별사용량^사용예정일^edi코드^청구사유 및 용도^유사재료사용현황^타병원사용현황^관련행위^청구부서전화번호^청구자^청구자명^보험여부^미결정치료재료^미결정치료재료신청일^행위료포함^심사소견^구매팀소견^신규재료진행상태^대분류코드^중분류코드^소분류코드^물품구분^수불단위^단가^부서승인자ID^기관코드^보조거래처cd&#xA;텍스트^보조거래처명&#xA;텍스트^제조회사명&#xA;텍스트^caption2^caption1^caption3^caption4^caption5^caption6" colsep="^" colwidth="30, 36, 0, 0, 0, 0, 75, 30, 100, 59, 75, 140, 0, 100, 0, 16, 0, 40, 70, 40, 70, 40, 100, 100, 24, 22, 70, 70, 100, 75, 66, 90, 60, 68, 80, 61, 60, 48, 60, 100, 100, 60, 70, 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, 100, 100, 100, 100, 100, 100, 100, 100, 17, 20, 21, 20, 17, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sort" extendlastcol="scroll" frozencols="8" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" navindex="18" style="left:1px; top:92px; width:1189px; height:185px; ">
  879. <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox"/>
  880. <col checkvalue="Y,N" disabled="true" ref="specyn" type="checkbox" style="text-align:center; "/>
  881. <col ref="instnm" visibility="hidden"/>
  882. <col checkvalue="Y,N" ref="advsmatryn" type="checkbox" visibility="hidden"/>
  883. <col ref="prodplcenm" visibility="hidden"/>
  884. <col ref="goodflagnm" visibility="hidden"/>
  885. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  886. <col ref="reqseqno" style="text-align:center; "/>
  887. <col disabled="true" ref="newmatrprcsstat" type="combo" style="text-align:left; ">
  888. <choices>
  889. <itemset>
  890. <label/>
  891. <value/>
  892. </itemset>
  893. </choices>
  894. </col>
  895. <col checkvalue="Y,N" disabled="true" ref="insucommityn" type="combo" style="text-align:center; ">
  896. <choices>
  897. <itemset>
  898. <label/>
  899. <value/>
  900. </itemset>
  901. </choices>
  902. </col>
  903. <col ref="goodcd" style="text-align:center; "/>
  904. <col ref="goodengnm2" style="text-align:left; "/>
  905. <col ref="goodhngnm" visibility="hidden"/>
  906. <col ref="goodspec2"/>
  907. <col ref="goodspec" visibility="hidden"/>
  908. <col ref="goodmodel2" visibility="hidden"/>
  909. <col ref="goodmodel" visibility="hidden"/>
  910. <col disabled="true" ref="insuflag" type="combo" style="text-align:center; ">
  911. <choices>
  912. <item>
  913. <label>
  914. <![CDATA[/>]]>
  915. </label>
  916. <value>-</value>
  917. </item>
  918. <item>
  919. <label>Y</label>
  920. <value>Y</value>
  921. </item>
  922. <item>
  923. <label>N</label>
  924. <value>N</value>
  925. </item>
  926. </choices>
  927. </col>
  928. <col ref="edicd"/>
  929. <col disabled="true" ref="purcflag" type="combo" style="text-align:center; ">
  930. <choices>
  931. <itemset nodeset="/root/init/purcflag/item">
  932. <label ref="label"/>
  933. <value ref="value"/>
  934. </itemset>
  935. </choices>
  936. </col>
  937. <col disabled="true" ref="reqmthd" type="combo" style="text-align:center; ">
  938. <choices>
  939. <itemset nodeset="/root/init/reqmthd/item">
  940. <label ref="label"/>
  941. <value ref="value"/>
  942. </itemset>
  943. </choices>
  944. </col>
  945. <col disabled="true" ref="reqprid" type="combo" style="text-align:center; ">
  946. <choices>
  947. <itemset nodeset="/root/init/reqprid/item">
  948. <label ref="label"/>
  949. <value ref="value"/>
  950. </itemset>
  951. </choices>
  952. </col>
  953. <col ref="packqty"/>
  954. <col ref="suppcustnm"/>
  955. <col ref="suppcustcd" visibility="hidden"/>
  956. <col ref="maincust" visibility="hidden"/>
  957. <col ref="chrgid" style="text-align:center; "/>
  958. <col ref="chrgmpphon" style="text-align:center; "/>
  959. <col ref="prodcmpynm"/>
  960. <col ref="deptaprvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  961. <col ref="deptaprvpsnnm" style="text-align:center; "/>
  962. <col ref="reqdeptnm" style="text-align:center; "/>
  963. <col ref="reqdeptcd" visibility="hidden"/>
  964. <col ref="reqpsnnm" format="yyyy-mm-dd" style="text-align:center; "/>
  965. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  966. <col ref="reqpsnid" visibility="hidden"/>
  967. <col ref="reqdepttel" visibility="hidden"/>
  968. <col ref="reqqty" visibility="hidden" format="#,###" style="text-align:right; "/>
  969. <col ref="goodunitcost" visibility="hidden" format="#,###" style="text-align:right; "/>
  970. <col ref="goodengnm" visibility="hidden"/>
  971. <col ref="propaprvdd" visibility="hidden"/>
  972. <col ref="prodcmpycd" visibility="hidden"/>
  973. <col ref="prodplcenm" visibility="hidden"/>
  974. <col ref="chrgid" visibility="hidden"/>
  975. <col ref="chrgmpphon" visibility="hidden"/>
  976. <col ref="chrgtel" visibility="hidden"/>
  977. <col ref="purcunit" visibility="hidden"/>
  978. <col ref="reqqty" visibility="hidden"/>
  979. <col ref="mmavguseqty" visibility="hidden"/>
  980. <col ref="useschedd" visibility="hidden"/>
  981. <col ref="edicd" visibility="hidden"/>
  982. <col ref="reqresnusge" visibility="hidden"/>
  983. <col ref="smlartymatruseprestcond" visibility="hidden"/>
  984. <col ref="anohospusestat" visibility="hidden"/>
  985. <col ref="newmatrusgeimprvpnt" visibility="hidden"/>
  986. <col ref="reqdepttel" visibility="hidden"/>
  987. <col ref="reqpsnid" visibility="hidden"/>
  988. <col ref="reqpsnnm" visibility="hidden"/>
  989. <col ref="insuyn" visibility="hidden"/>
  990. <col ref="undecicurematr" visibility="hidden"/>
  991. <col ref="undecicurematrreqdt" visibility="hidden"/>
  992. <col ref="actamtincl" visibility="hidden"/>
  993. <col ref="judgcmt" visibility="hidden"/>
  994. <col ref="purcteamcmt" visibility="hidden"/>
  995. <col ref="newmatrprcsstat" visibility="hidden"/>
  996. <col ref="lrgcd" visibility="hidden"/>
  997. <col ref="mdlcd" visibility="hidden"/>
  998. <col ref="smlcd" visibility="hidden"/>
  999. <col ref="goodflag" visibility="hidden"/>
  1000. <col ref="deliveunit" visibility="hidden"/>
  1001. <col ref="goodunitcost" visibility="hidden"/>
  1002. <col ref="deptaprvpsnid" visibility="hidden"/>
  1003. <col ref="instcd" visibility="hidden"/>
  1004. <col ref="suppcustcdtxt"/>
  1005. <col ref="suppcustnmtxt"/>
  1006. <col ref="prodcmpynmtxt"/>
  1007. <col ref="insucomd" visibility="hidden"/>
  1008. <col ref="insuresn" visibility="hidden"/>
  1009. <col ref="reqcmt" visibility="hidden"/>
  1010. <col ref="reqchrgid" visibility="hidden" style="left:3491px; top:32px; width:100px; height:23px; "/>
  1011. <col ref="reqchrgnm" visibility="hidden"/>
  1012. <col ref="prcpcd" visibility="hidden"/>
  1013. <col ref="prcpnm" visibility="hidden"/>
  1014. <col ref="prcpamt" visibility="hidden"/>
  1015. <col ref="usedgoodflag" visibility="hidden"/>
  1016. <col ref="usedgoodcd" visibility="hidden"/>
  1017. <script type="javascript" ev:event="onclick">
  1018. <![CDATA[
  1019. var goodcd = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("goodcd"));
  1020. var reqdd = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("reqdd"));
  1021. var reqseqno = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("reqseqno"));
  1022. var goodflag = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("goodflag"));
  1023. var newmatrprcsstat = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("newmatrprcsstat"));
  1024. var specyn = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("specyn"));
  1025. var deptaprvyn = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("deptaprvyn"));
  1026. if( grd_newmetldetllist.isCell(event.target) && grd_newmetldetllist.mouseRow >= grd_newmetldetllist.fixedrows ) {
  1027. if( goodcd == model.getValue(ipt_goodcd.attribute("ref")) &&
  1028. reqdd == model.getValue(ipt_reqdd.attribute("ref")) && reqseqno == model.getValue(opt_reqseqno.attribute("ref")) &&
  1029. goodflag == model.getValue(cmb_goodflag.attribute("ref"))
  1030. ) {
  1031. return;
  1032. }
  1033. status = "u";
  1034. rszfComboUnitList (cmb_purcunit,model.getValue(cmb_instcd.attribute("ref")),goodflag);
  1035. misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, "");
  1036. model.copyNode("/root/main/newmeterialdetail" ,grd_newmetldetllist.nodeset +"[" + grd_newmetldetllist.row + "]");
  1037. // grid에 없어서 copy노드후 적용안됨,
  1038. model.makeNode("/root/main/newmeterialdetail/maincustlastsuplplcenm");
  1039. // 입력row는 disable true
  1040. if (grd_newmetldetllist.rowstatus(grd_newmetldetllist.row) == "1") {
  1041. fDisableCheck( false );
  1042. fInsuynChange("Y");
  1043. }
  1044. else {
  1045. fDisableCheck( true );
  1046. fInsuynChange("N");
  1047. }
  1048. if(newmatrprcsstat > "01") {
  1049. fSetInitCtrl(true);
  1050. cap_suppcustcdtxt.visible= false;
  1051. cap_suppcustnmtxt.visible = false;
  1052. } else {
  1053. if(specyn == "Y") {
  1054. btn_allsizeref.disabled = false;
  1055. if(deptaprvyn == "Y") {
  1056. fSetInitCtrl(true);
  1057. } else {
  1058. fSetInitCtrl(false, null, specyn);
  1059. }
  1060. fTextLabelView();
  1061. caption18.text = "신 규 규 격";
  1062. } else {
  1063. btn_allsizeref.disabled = true;
  1064. if(deptaprvyn == "Y") {
  1065. fSetInitCtrl(true);
  1066. cap_suppcustcdtxt.visible= false;
  1067. cap_suppcustnmtxt.visible = false;
  1068. cap_prodcmpynmtxt.visible = false;
  1069. cap_goodspectxt.visible = false;
  1070. } else {
  1071. fSetInitCtrl(false, newmatrprcsstat);
  1072. fTextLabelView();
  1073. }
  1074. caption18.text = "신 청 사 유";
  1075. }
  1076. }
  1077. fChangRelationView();
  1078. model.refresh();
  1079. }
  1080. ]]>
  1081. </script>
  1082. <script type="javascript" ev:event="onaftersort">
  1083. <![CDATA[
  1084. grd_newmetldetllist.gridToInstance();
  1085. ]]>
  1086. </script>
  1087. </datagrid>
  1088. <group id="group2" style="left:0px; top:0px; width:1191px; height:67px; vertical-align:top; ">
  1089. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1191px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  1090. <input id="ipt_reqdeptnm_search" ref="/root/cond/reqdeptnm_search" class="output_fix" navindex="-1" editable="false" style="left:459px; top:35px; width:98px; height:19px; "/>
  1091. <button id="button5" class="icon_search" navindex="10" style="left:440px; top:35px; width:16px; height:16px; ">
  1092. <caption/>
  1093. <script type="javascript" ev:event="DOMActivate">
  1094. <![CDATA[
  1095. var recv_list = "reqdeptcd_search,reqdeptnm_search";
  1096. misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, opt_instcd.value, "instcd") ;
  1097. //fPurcAuthInfo(model.getValue(ipt_reqdeptcd_search.attribute("ref")));
  1098. group2.refresh();
  1099. ]]>
  1100. </script>
  1101. </button>
  1102. <caption id="caption3" class="search_name" style="left:776px; top:9px; width:83px; height:17px; ">물 품 명 :</caption>
  1103. <caption id="caption4" class="search_name" style="left:5px; top:9px; width:90px; height:17px; ">기관코드 :</caption>
  1104. <caption id="caption8" class="search_name" style="left:270px; top:35px; width:87px; height:17px; ">청구부서 :</caption>
  1105. <caption id="caption10" class="search_name" style="left:270px; top:9px; width:87px; height:17px; ">청구일자 :</caption>
  1106. <input id="ipt_reqdeptcd_search" ref="/root/cond/reqdeptcd_search" class="input_search" navindex="9" style="left:357px; top:35px; width:78px; height:19px; ">
  1107. <script type="javascript" ev:event="xforms-value-changed">
  1108. <![CDATA[
  1109. misfSearchDept(ipt_reqdeptnm_search);
  1110. ]]>
  1111. </script>
  1112. </input>
  1113. <input id="ipt_goodnm_search" ref="/root/cond/goodnm" class="input_search" navindex="6" style="left:862px; top:9px; width:205px; height:19px; "/>
  1114. <input id="ipt_reqtodd_search" ref="/root/cond/reqtodd" class="input_search" navindex="4" inputtype="date" style="left:469px; top:9px; width:88px; height:19px; "/>
  1115. <caption id="caption14" class="search_no_b" style="left:450px; top:9px; width:12px; height:17px; ">~</caption>
  1116. <input id="ipt_reqfromdd_search" ref="/root/cond/reqfromdd" class="input_search" navindex="3" inputtype="date" style="left:357px; top:9px; width:88px; height:19px; "/>
  1117. <caption id="caption20" class="search_name" style="left:588px; top:9px; width:86px; height:17px; ">물품구분 :</caption>
  1118. <select1 id="cmb_goodflag_search" ref="/root/cond/goodflag" class="input_search" navindex="5" appearance="minimal" editmode="search" style="left:675px; top:9px; width:85px; height:19px; ">
  1119. <choices>
  1120. <itemset nodeset="/root/init/goodflag">
  1121. <label ref="label"/>
  1122. <value ref="value"/>
  1123. </itemset>
  1124. </choices>
  1125. </select1>
  1126. <caption id="caption12" class="search_name" style="left:588px; top:35px; width:86px; height:17px; ">진행상태 :</caption>
  1127. <line id="line14" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
  1128. <output id="opt_instcd" ref="/root/cond/instcd" class="output_fix" visibility="hidden" style="left:92px; top:9px; width:29px; height:19px; "/>
  1129. <input id="opt_instcdnm" ref="/root/cond/instcdnm" class="output_fix" navindex="-1" editable="false" style="left:92px; top:9px; width:165px; height:19px; "/>
  1130. <input id="ipt_emplno_search" ref="/root/cond/emplno" class="input_search" navindex="7" maxlength="10" appearance="input" style="left:92px; top:35px; width:68px; height:19px; ">
  1131. <script type="javascript" ev:event="xforms-value-changed">
  1132. <![CDATA[
  1133. //misfValidationCheck("01-1", "", "emplno,emplnm,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy1,dummy1" );
  1134. var recv_list = "emplno,emplnonm";
  1135. misfValidationCheck("01-1","", recv_list);
  1136. model.refresh();
  1137. ]]>
  1138. </script>
  1139. </input>
  1140. <button id="btn_winpsn" class="icon_search" navindex="8" style="left:165px; top:37px; width:16px; height:16px; ">
  1141. <caption/>
  1142. <script type="javascript" ev:event="DOMActivate">
  1143. <![CDATA[
  1144. var recv_list = "emplno,emplnonm";
  1145. misfOpenPopUpList("12", ipt_emplno_search,"",recv_list); // 사용자 조회
  1146. model.refresh();
  1147. ]]>
  1148. </script>
  1149. </button>
  1150. <input id="ipt_emplnm_search" ref="/root/cond/emplnonm" class="output_fix" navindex="-1" editable="false" style="left:185px; top:35px; width:72px; height:19px; ">
  1151. <script type="javascript" ev:event="xforms-value-changed">
  1152. <![CDATA[
  1153. var recv_list = "emplno,emplnonm";
  1154. misfValidationCheck("01-2","", recv_list);
  1155. model.refresh();
  1156. ]]>
  1157. </script>
  1158. </input>
  1159. <caption id="caption21" class="search_name" style="left:5px; top:35px; width:90px; height:17px; ">신 청 자 :</caption>
  1160. <select1 id="cmb_newmatrprcsstat" ref="/root/cond/newmatrprcsstat" class="input_search" navindex="11" appearance="minimal" style="left:675px; top:35px; width:85px; height:19px; ">
  1161. <choices>
  1162. <itemset>
  1163. <label/>
  1164. <value/>
  1165. </itemset>
  1166. </choices>
  1167. </select1>
  1168. <caption id="caption44" class="search_name" style="left:775px; top:35px; width:86px; height:17px; ">청구번호 :</caption>
  1169. <input id="ipt_reqno" ref="/root/cond/reqno" class="input_search" navindex="12" style="left:862px; top:35px; width:83px; height:19px; "/>
  1170. <caption id="caption46" style="left:945px; top:37px; width:168px; height:16px; ">(물품구분+청구일자+청구번호)</caption>
  1171. </group>
  1172. <button id="btn_print" class="btn6_letter2" style="left:825px; top:279px; width:56px; height:22px; ">
  1173. <caption>출력</caption>
  1174. <script type="javascript" ev:event="DOMActivate">
  1175. <![CDATA[
  1176. if (model.getValue(ipt_deptaprvyn.attribute("ref")) == "N"){
  1177. messageBox("승인 처리 된 건들만 처리", "I006");
  1178. return;
  1179. }
  1180. exeReportPreview("RPRSD04201","XMLSTR");
  1181. ]]>
  1182. </script>
  1183. </button>
  1184. <button id="btn_save" class="btn4_letter2" navindex="71" style="left:1135px; top:279px; width:56px; height:22px; ">
  1185. <caption>저장</caption>
  1186. <script type="javascript" ev:event="DOMActivate">
  1187. <![CDATA[
  1188. if( fCheckSaveData() ) {
  1189. var chkDeptAprvYn = model.getValue(ipt_deptaprvyn.attribute("ref"));
  1190. // 기존(유사재료) 사용구분을 없음 을 선택한 경우 유사재료 물품코드 삭제
  1191. if(model.getValue(cmb_usedgoodflag.attribute("ref")) == "C") {
  1192. model.setValue(ipt_usedgoodcd.attribute("ref"), "");
  1193. }
  1194. var rtn = messageBox("저장하시겠습니까?", "Q");
  1195. if(rtn == "6") {
  1196. model.copyNode("/root/send/savedata", "/root/main/newmeterialdetail");
  1197. model.makeValue("/root/send/savedata/status", status);
  1198. submit("TXRSD04002");
  1199. if (model.getValue(gvErrorMsgPath + "/type") != "error") {
  1200. if (chkDeptAprvYn == "N"){
  1201. messageBox("완료 되었습니다.\n승인 처리를 하셔야 구매팀 접수 진행이 ", "I006");
  1202. } else {
  1203. messageBox("완료 되었습니다.", "I");
  1204. }
  1205. btn_search.dispatch("DOMActivate");
  1206. } else {
  1207. messageBox("변경된 데이터가","I004");
  1208. return;
  1209. }
  1210. }
  1211. }
  1212. ]]>
  1213. </script>
  1214. </button>
  1215. <group id="group6" style="left:585px; top:305px; width:606px; height:420px; ">
  1216. <textarea id="tar_smlartymatruseprestcond" ref="/root/main/newmeterialdetail/smlartymatruseprestcond" class="input_s_essential" navindex="56" scroll="auto" maxlength="1500" style="left:102px; top:67px; width:502px; height:59px; "/>
  1217. <textarea id="tar_reqresnusge" ref="/root/main/newmeterialdetail/reqresnusge" class="input_s_essential" navindex="55" scroll="auto" maxlength="1500" style="left:102px; top:3px; width:502px; height:59px; "/>
  1218. <textarea id="tar_anohospusestat" ref="/root/main/newmeterialdetail/anohospusestat" navindex="76" scroll="auto" maxlength="300" style="left:102px; top:130px; width:502px; height:49px; "/>
  1219. <textarea id="tar_newmatrusgeimprvpnt" ref="/root/main/newmeterialdetail/newmatrusgeimprvpnt" class="input_s_essential" navindex="64" scroll="auto" maxlength="300" style="left:102px; top:184px; width:502px; height:69px; "/>
  1220. <textarea id="tar_reqcmt" ref="/root/main/newmeterialdetail/reqcmt" navindex="65" scroll="auto" maxlength="200" style="left:102px; top:258px; width:502px; height:64px; "/>
  1221. <textarea id="tar_deptcmt" ref="/root/main/newmeterialdetail/deptcmt" disabled="false" navindex="66" scroll="auto" editable="false" maxlength="50" style="left:102px; top:327px; width:502px; height:85px; background-color:#ffff99; "/>
  1222. <line id="line21" class="line_2" style="x1:2px; y1:64px; x2:604px; y2:64px; "/>
  1223. <caption id="caption18" class="cell_1" style="left:2px; top:2px; width:98px; height:63px; text-align:center; vertical-align:middle; ">신 청 사 유</caption>
  1224. <line id="line22" class="line_2" style="x1:0px; y1:127px; x2:602px; y2:127px; "/>
  1225. <caption id="caption17" class="cell_1" style="left:2px; top:66px; width:98px; height:62px; text-align:center; vertical-align:middle; ">
  1226. <![CDATA[제 품 설 명
  1227. (상세하게 기술)]]>
  1228. </caption>
  1229. <line id="line23" class="line_2" style="x1:0px; y1:181px; x2:602px; y2:181px; "/>
  1230. <caption id="caption13" class="cell_1" style="left:2px; top:129px; width:98px; height:53px; text-align:center; vertical-align:middle; ">
  1231. <![CDATA[관련 행위명
  1232. 본원 유사재료]]>
  1233. </caption>
  1234. <line id="line24" class="line_2" style="x1:0px; y1:255px; x2:602px; y2:255px; "/>
  1235. <caption id="caption16" class="cell_1" style="left:2px; top:183px; width:98px; height:73px; text-align:center; vertical-align:middle; ">
  1236. <![CDATA[현품의 차이점
  1237. 타병원 사용현황]]>
  1238. </caption>
  1239. <line id="line25" class="line_2" style="x1:2px; y1:324px; x2:603px; y2:324px; "/>
  1240. <caption id="caption41" class="cell_1" style="left:2px; top:326px; width:98px; height:89px; text-align:center; vertical-align:middle; ">부서전달사항</caption>
  1241. <line id="line29" class="line_3" style="x1:2px; y1:414px; x2:603px; y2:414px; "/>
  1242. <caption id="caption15" class="cell_1" style="left:2px; top:257px; width:98px; height:68px; text-align:center; vertical-align:middle; ">비 고</caption>
  1243. <group id="grp_relation" style="left:102px; top:130px; width:502px; height:50px; ">
  1244. <caption id="caption53" class="cell_1" style="left:0px; top:1px; width:75px; height:23px; vertical-align:middle; ">관련행위료</caption>
  1245. <input id="ipt_prcpamt" ref="/root/main/newmeterialdetail/prcpamt" navindex="57" format="#,###" style="left:77px; top:4px; width:75px; height:19px; text-align:right; "/>
  1246. <caption id="caption54" class="cell_1" style="left:155px; top:1px; width:63px; height:23px; vertical-align:middle; ">처방코드</caption>
  1247. <input id="ipt_prcpcd" ref="/root/main/newmeterialdetail/prcpcd" navindex="58" style="left:220px; top:3px; width:75px; height:19px; text-align:left; ">
  1248. <script type="javascript" ev:event="xforms-value-changed">
  1249. <![CDATA[
  1250. if(model.getValue(ipt_prcpcd.attribute("ref")) == "") {
  1251. model.setValue(ipt_prcpnm.attribute("ref"), "");
  1252. ipt_prcpnm.refresh();
  1253. } else {
  1254. btn_prcpcd.dispatch("DOMActivate");
  1255. }
  1256. ]]>
  1257. </script>
  1258. </input>
  1259. <input id="ipt_prcpnm" ref="/root/main/newmeterialdetail/prcpnm" class="output_fix" navindex="60" editable="false" style="left:315px; top:3px; width:186px; height:19px; text-align:left; "/>
  1260. <caption id="caption58" class="cell_1" style="left:0px; top:25px; width:93px; height:23px; vertical-align:middle; ">기존(유사재료)</caption>
  1261. <caption id="cap_usedgoodcd" class="cell_1" visibility="hidden" style="left:260px; top:25px; width:63px; height:23px; vertical-align:middle; ">물품코드</caption>
  1262. <input id="ipt_usedgoodcd" ref="/root/main/newmeterialdetail/usedgoodcd" navindex="62" visibility="hidden" _chartype="upper" style="left:325px; top:27px; width:106px; height:19px; text-align:left; ">
  1263. <script type="javascript" ev:event="xforms-value-changed">
  1264. <![CDATA[
  1265. if(ipt_usedgoodcd.value != "") {
  1266. btn_usedgoodcd.dispatch("DOMActivate");
  1267. }
  1268. ]]>
  1269. </script>
  1270. </input>
  1271. <button id="btn_prcpcd" class="icon_search" navindex="59" style="left:297px; top:4px; width:16px; height:16px; ">
  1272. <caption/>
  1273. <script type="javascript" ev:event="DOMActivate">
  1274. <![CDATA[
  1275. //setParameter("iParam_mother_view", "SMPIC00100_수가관리");
  1276. var recv_node = "/root/temp/picmmech";
  1277. var targ_node = "/root/main/newmeterialdetail";
  1278. model.removeNodeset("/root/source");
  1279. model.makeNode("/root/source");
  1280. model.removeNodeset(recv_node);
  1281. model.makeNode(recv_node);
  1282. modal("SPRSD00360","","","","","/root/source", "/root/target" );
  1283. //alert(model.getValue(recv_node + "/picmmech_calcscorcd"));
  1284. if(model.getValue(recv_node + "/picmmech_calcscorcd") != null && model.getValue(recv_node + "/picmmech_calcscorcd") != "") {
  1285. model.setValue(targ_node + "/prcpcd", model.getValue(recv_node + "/picmmech_calcscorcd"));
  1286. model.setValue(targ_node + "/prcpnm", model.getValue(recv_node + "/picmmech_hngnm"));
  1287. model.setValue(targ_node + "/prcpamt", model.getValue(recv_node + "/picmmech_gnrlunitcost"));
  1288. model.refresh();
  1289. }
  1290. ]]>
  1291. </script>
  1292. </button>
  1293. <select1 id="cmb_usedgoodflag" ref="/root/main/newmeterialdetail/usedgoodflag" class="combo_s_essential" navindex="61" appearance="minimal" editmode="search" style="left:98px; top:27px; width:155px; height:19px; ">
  1294. <choices>
  1295. <item>
  1296. <label>계속사용</label>
  1297. <value>A</value>
  1298. </item>
  1299. <item>
  1300. <label>신규신청재료로 대체</label>
  1301. <value>B</value>
  1302. </item>
  1303. <item>
  1304. <label>없음</label>
  1305. <value>C</value>
  1306. </item>
  1307. </choices>
  1308. <script type="javascript" ev:event="xforms-value-changed">
  1309. <![CDATA[
  1310. if(model.getValue(cmb_usedgoodflag.attribute("ref")) == "A" || model.getValue(cmb_usedgoodflag.attribute("ref")) == "B") {
  1311. cap_usedgoodcd.visible = true;
  1312. ipt_usedgoodcd.visible = true;
  1313. btn_usedgoodcd.visible = true;
  1314. } else {
  1315. cap_usedgoodcd.visible = false;
  1316. ipt_usedgoodcd.visible = false;
  1317. btn_usedgoodcd.visible = false;
  1318. }
  1319. grp_relation.refresh();
  1320. ]]>
  1321. </script>
  1322. </select1>
  1323. <button id="btn_usedgoodcd" class="icon_search" navindex="63" visibility="hidden" style="left:435px; top:28px; width:16px; height:16px; ">
  1324. <caption/>
  1325. <script type="javascript" ev:event="DOMActivate">
  1326. <![CDATA[
  1327. var goodflag = model.getValue(cmb_goodflag.attribute("ref"));
  1328. var goodcd = model.getValue(ipt_usedgoodcd.attribute("ref"));
  1329. var instcd = model.getValue(cmb_instcd.attribute("ref"));
  1330. if(goodflag == "") {
  1331. messageBox("물품구분을 입력하세요.", "E");
  1332. model.setFocus("cmb_goodflag");
  1333. return
  1334. }
  1335. setParameter("SPRSD04203_instcd", instcd);
  1336. setParameter("SPRSD04203_goodflag", goodflag);
  1337. setParameter("SPRSD04203_goodcd", goodcd);
  1338. modal("SPRSD04203");
  1339. var recvNode = instance1.selectSingleNode("/root/hidden/rcvdata/goodlist/goodcd");
  1340. if(recvNode != null && recvNode.text != "") {
  1341. model.setValue(ipt_usedgoodcd.attribute("ref"), recvNode.text);
  1342. ipt_usedgoodcd.refresh();
  1343. } else {
  1344. }
  1345. ]]>
  1346. </script>
  1347. </button>
  1348. </group>
  1349. </group>
  1350. <line id="line1" class="line_1" style="x1:1px; y1:87px; x2:1189px; y2:87px; "/>
  1351. <button id="btn_search" class="btn1_letter2" navindex="13" style="left:1125px; top:23px; width:56px; height:22px; ">
  1352. <caption>조회</caption>
  1353. <script type="javascript" ev:event="DOMActivate">
  1354. <![CDATA[
  1355. status = "i";
  1356. model.removeNodeset("/root/temp/newmeterialdetailinfo/newmetldetllist");
  1357. var aprvFlag = false;
  1358. if(submit("TRRSD04201")) {
  1359. for(var i = grd_newmetldetllist.fixedRows; i < grd_newmetldetllist.rows; i++) {
  1360. var goodcd = grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("goodcd"));
  1361. specyn = grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("specyn"));
  1362. if(goodcd.length != 0) {
  1363. if(specyn == "N") {
  1364. grd_newmetldetllist.cellstyle("background-color", i, grd_newmetldetllist.colRef("goodcd"), i, grd_newmetldetllist.colRef("goodcd")) = "#ffff99";
  1365. } else {
  1366. grd_newmetldetllist.cellstyle("background-color", i, grd_newmetldetllist.colRef("goodcd"), i, grd_newmetldetllist.colRef("goodcd")) = "#c2efce";
  1367. }
  1368. }
  1369. var instcd = grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("instcd"));
  1370. var reqdeptcd = grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("reqdeptcd"));
  1371. var stat = grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("newmatrprcsstat"));
  1372. if(fPurcAuthInfo(reqdeptcd, instcd) == "2" && stat == "01") { // 승인권한이 있고 진행상태가 신청이면 승인체크 오픈
  1373. grd_newmetldetllist.isReadOnly(i,grd_newmetldetllist.colRef("deptaprvyn")) = false;
  1374. aprvFlag = true;
  1375. } else {
  1376. grd_newmetldetllist.isReadOnly(i,grd_newmetldetllist.colRef("deptaprvyn")) = true;
  1377. }
  1378. }
  1379. btn_acpt.disabled = !aprvFlag;
  1380. btn_new.dispatch("DOMActivate");
  1381. }
  1382. ]]>
  1383. </script>
  1384. </button>
  1385. <button id="btn_new" class="btn4_letter2" navindex="69" style="left:1021px; top:279px; width:56px; height:22px; ">
  1386. <caption>신규</caption>
  1387. <script type="javascript" ev:event="DOMActivate">
  1388. <![CDATA[
  1389. status = "i";
  1390. fInitInstance();
  1391. specyn = "N";
  1392. model.setValue(cmb_specyn.attribute("ref"), specyn);
  1393. model.setValue(rdo_advsmatryn.attribute("ref"), "N");
  1394. fSetInitCtrl(false);
  1395. //cap_suppcustcdtxt.visible = true;
  1396. //cap_suppcustnmtxt.visible = true;
  1397. btn_allsizeref.disabled = true;
  1398. fTextLabelView();
  1399. model.refresh();
  1400. //alert("본 메뉴는 진료재료 신청난으로서 약제는 약무팀으로 신청바랍니다.");
  1401. ]]>
  1402. </script>
  1403. </button>
  1404. <button id="btn_acpt" class="btn2_letter6" disabled="true" navindex="17" style="left:1103px; top:67px; width:86px; height:19px; ">
  1405. <caption>승인 / 미승인</caption>
  1406. <script type="javascript" ev:event="DOMActivate">
  1407. <![CDATA[
  1408. var rtn = messageBox("승인/미승인 작업을 하시겠습니까?", "Q");
  1409. if(rtn == "6") {
  1410. model.makeValue("/root/send/save/aprvlist", getGridUpdateData(grd_newmetldetllist));
  1411. if(submit("TXRSD04003")) {
  1412. messageBox("승인/미승인 작업이 완료되었습니다.", "E");
  1413. btn_search.dispatch("DOMActivate");
  1414. }
  1415. }
  1416. ]]>
  1417. </script>
  1418. </button>
  1419. <button id="button3" class="btn2_letter4" navindex="15" visibility="visible" style="left:969px; top:67px; width:64px; height:19px; ">
  1420. <caption>전체선택</caption>
  1421. <script type="javascript" ev:event="DOMActivate">
  1422. <![CDATA[
  1423. for(var i = grd_newmetldetllist.fixedRows; i < grd_newmetldetllist.rows; i++) {
  1424. if(grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("deptaprvyn")) == "N") {
  1425. grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("deptaprvyn")) = "Y";
  1426. grd_newmetldetllist.rowStatus(i) = "2";
  1427. }
  1428. }
  1429. ]]>
  1430. </script>
  1431. </button>
  1432. <button id="button6" class="btn2_letter4" navindex="16" visibility="visible" style="left:1036px; top:67px; width:64px; height:19px; ">
  1433. <caption>전체취소</caption>
  1434. <script type="javascript" ev:event="DOMActivate">
  1435. <![CDATA[
  1436. for(var i = grd_newmetldetllist.fixedRows; i < grd_newmetldetllist.rows; i++) {
  1437. if(grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("deptaprvyn")) == "Y") {
  1438. grd_newmetldetllist.valueMatrix(i, grd_newmetldetllist.colRef("deptaprvyn")) = "N";
  1439. grd_newmetldetllist.rowStatus(i) = "2";
  1440. }
  1441. }
  1442. ]]>
  1443. </script>
  1444. </button>
  1445. <line id="line3" class="line_1" style="x1:1px; y1:301px; x2:1189px; y2:301px; "/>
  1446. <group id="group5" style="left:0px; top:305px; width:575px; height:440px; ">
  1447. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:3px; width:569px; height:87px; background-color:#fffbf2; border-color:#3366ff; "/>
  1448. <line id="line6" class="line_2" style="x1:0px; y1:115px; x2:570px; y2:115px; "/>
  1449. <line id="line2" class="line_2" style="x1:0px; y1:163px; x2:570px; y2:163px; "/>
  1450. <shape id="roundrect4" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:335px; width:569px; height:57px; background-color:#fffbf2; border-color:#3366ff; "/>
  1451. <input id="ipt_goodhngnm" ref="/root/main/newmeterialdetail/goodhngnm" class="input_default" navindex="32" maxlength="200" style="left:91px; top:190px; width:479px; height:19px; "/>
  1452. <button id="btn_prodcmpycd" class="icon_search" navindex="47" style="left:163px; top:312px; width:16px; height:16px; ">
  1453. <caption/>
  1454. <script type="javascript" ev:event="DOMActivate">
  1455. <![CDATA[
  1456. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  1457. model.refresh();
  1458. ]]>
  1459. </script>
  1460. </button>
  1461. <input id="ipt_reqchrgnm" ref="/root/main/newmeterialdetail/reqchrgnm" class="output_fix" navindex="-1" editable="false" style="left:492px; top:142px; width:78px; height:19px; ">
  1462. <script type="javascript" ev:event="xforms-value-changed">
  1463. <![CDATA[
  1464. misfValidationCheck("01-2", "", "reqchrgid,reqchrgnm");
  1465. model.refresh();
  1466. ]]>
  1467. </script>
  1468. </input>
  1469. <select1 id="cmb_purcunit" ref="/root/main/newmeterialdetail/purcunit" class="combo" navindex="43" appearance="minimal" style="left:262px; top:286px; width:64px; height:19px; text-align:right; ">
  1470. <choices>
  1471. <itemset>
  1472. <label/>
  1473. <value/>
  1474. </itemset>
  1475. </choices>
  1476. </select1>
  1477. <select1 id="cmb_instcd" ref="/root/main/newmeterialdetail/instcd" class="combo_s_essential" disabled="true" navindex="23" appearance="minimal" style="left:91px; top:95px; width:238px; height:19px; ">
  1478. <choices>
  1479. <itemset>
  1480. <label/>
  1481. <value/>
  1482. </itemset>
  1483. </choices>
  1484. <script type="javascript" ev:event="xforms-value-changed">
  1485. <![CDATA[
  1486. // 단위 따로 분리.
  1487. rszfComboUnitList (cmb_purcunit,model.getValue(cmb_instcd.attribute("ref")),model.getValue(cmb_goodflag.attribute("ref")));
  1488. misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, "");
  1489. model.refresh();
  1490. ]]>
  1491. </script>
  1492. </select1>
  1493. <input id="ipt_reqpsnid" ref="/root/main/newmeterialdetail/reqpsnid" class="input_s_essential" disabled="true" navindex="25" maxlength="10" style="left:398px; top:118px; width:67px; height:19px; ">
  1494. <script type="javascript" ev:event="xforms-value-changed">
  1495. <![CDATA[
  1496. misfValidationCheck("01-1", "", "reqpsnid,reqpsnnm" );
  1497. model.refresh();
  1498. ]]>
  1499. </script>
  1500. </input>
  1501. <button id="button4" class="icon_search" style="left:176px; top:119px; width:16px; height:16px; ">
  1502. <caption>
  1503. <script type="javascript" ev:event="DOMActivate">
  1504. <![CDATA[
  1505. var recv_list = "reqdeptcd,reqdeptnm";
  1506. misfOpenPopUpList("02", ipt_reqdeptcd,"", recv_list, opt_instcd.value, "instcd") ;
  1507. model.refresh();
  1508. ]]>
  1509. </script>
  1510. </caption>
  1511. </button>
  1512. <input id="ipt_reqdd" ref="/root/main/newmeterialdetail/reqdd" class="output_fix" navindex="-1" editable="false" format="yyyy-mm-dd" style="left:398px; top:95px; width:91px; height:19px; "/>
  1513. <select1 id="cmb_goodflag" ref="/root/main/newmeterialdetail/goodflag" class="combo_s_essential" navindex="27" appearance="minimal" editmode="search" style="left:91px; top:142px; width:99px; height:19px; ">
  1514. <choices>
  1515. <itemset nodeset="/root/init/goodflag">
  1516. <label ref="cdnm"/>
  1517. <value ref="cdid"/>
  1518. </itemset>
  1519. </choices>
  1520. <script type="javascript" ev:event="xforms-value-changed">
  1521. <![CDATA[
  1522. // 단위 따로 분리.
  1523. rszfComboUnitList (cmb_purcunit,model.getValue(cmb_instcd.attribute("ref")),model.getValue(cmb_goodflag.attribute("ref")));
  1524. misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, "");
  1525. /* *************************************
  1526. 2008.10.28 YYJ
  1527. 권한 제거 요청에 의해 주석처리
  1528. ****************************************/
  1529. // fCheckGrant();
  1530. model.refresh();
  1531. ]]>
  1532. </script>
  1533. </select1>
  1534. <button id="btn_reqpsnid" class="icon_search" disabled="true" navindex="26" style="left:470px; top:119px; width:16px; height:16px; ">
  1535. <caption/>
  1536. <script type="javascript" ev:event="DOMActivate">
  1537. <![CDATA[
  1538. var recv_list = "reqpsnid,reqpsnnm";
  1539. misfOpenPopUpList("12", ipt_reqpsnid,"", recv_list) ;
  1540. model.refresh();
  1541. ]]>
  1542. </script>
  1543. </button>
  1544. <input id="ipt_reqpsnnm" ref="/root/main/newmeterialdetail/reqpsnnm" class="output_fix" navindex="-1" editable="false" style="left:492px; top:118px; width:78px; height:19px; ">
  1545. <script type="javascript" ev:event="xforms-value-changed">
  1546. <![CDATA[
  1547. misfValidationCheck("01-2", "", "reqpsnid,reqpsnnm");
  1548. model.refresh();
  1549. ]]>
  1550. </script>
  1551. </input>
  1552. <input id="ipt_goodunitcost" ref="/root/main/newmeterialdetail/goodunitcost" class="input_s_essential" navindex="33" maxlength="12" format="#,###" style="left:91px; top:214px; width:141px; height:19px; text-align:right; "/>
  1553. <input id="ipt_goodspec" ref="/root/main/newmeterialdetail/goodspec" class="input_default" navindex="34" maxlength="100" style="left:327px; top:214px; width:243px; height:19px; ">
  1554. <script type="javascript" ev:event="DOMFocusOut">
  1555. <![CDATA[
  1556. if(model.getValue(ipt_goodspec.attribute("ref")) == "") {
  1557. cap_goodspectxt.visible = true;
  1558. } else {
  1559. cap_goodspectxt.visible = false;
  1560. }
  1561. //cap_goodspectxt.refresh();
  1562. ]]>
  1563. </script>
  1564. </input>
  1565. <input id="ipt_mmavguseqty" ref="/root/main/newmeterialdetail/mmavguseqty" class="input_default" navindex="35" maxlength="9" format="#,###" style="left:91px; top:238px; width:141px; height:19px; text-align:right; "/>
  1566. <input id="ipt_goodmodel" ref="/root/main/newmeterialdetail/goodmodel" class="input_default" navindex="36" maxlength="100" style="left:327px; top:238px; width:243px; height:19px; "/>
  1567. <input id="ipt_reqdepttel" ref="/root/main/newmeterialdetail/reqdepttel" class="input_s_essential" navindex="28" maxlength="4" format="9999" style="left:247px; top:142px; width:82px; height:19px; "/>
  1568. <input id="ipt_chrgmpphon" ref="/root/main/newmeterialdetail/chrgmpphon" class="input_s_essential" navindex="54" maxlength="20" style="left:464px; top:365px; width:97px; height:19px; "/>
  1569. <input id="ipt_chrgid" ref="/root/main/newmeterialdetail/chrgid" class="input_s_essential" navindex="52" maxlength="20" style="left:85px; top:365px; width:111px; height:19px; "/>
  1570. <input id="ipt_prodcmpynm" ref="/root/main/newmeterialdetail/prodcmpynm" class="input_search" disabled="true" navindex="48" style="left:183px; top:310px; width:141px; height:19px; ">
  1571. <script type="javascript" ev:event="xforms-value-changed">
  1572. <![CDATA[
  1573. if(ipt_prodcmpynm.value !=""){
  1574. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm",
  1575. "prodcmpycd,," + model.getValue(ipt_prodcmpynm.attribute("ref"))
  1576. ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
  1577. }else{
  1578. ipt_prodcmpycd.value = "";
  1579. }
  1580. model.refresh();
  1581. ]]>
  1582. </script>
  1583. </input>
  1584. <button id="btn_reqchrgid" class="icon_search" navindex="30" visibility="visible" style="left:470px; top:141px; width:16px; height:16px; ">
  1585. <caption/>
  1586. <script type="javascript" ev:event="DOMActivate">
  1587. <![CDATA[
  1588. var recv_list = "reqchrgid,reqchrgnm";
  1589. misfOpenPopUpList("12", ipt_reqchrgid,"", recv_list) ;
  1590. model.refresh();
  1591. ]]>
  1592. </script>
  1593. </button>
  1594. <select1 id="cmb_deliveunit" ref="/root/main/newmeterialdetail/deliveunit" class="combo" navindex="42" appearance="minimal" style="left:185px; top:286px; width:64px; height:19px; text-align:right; ">
  1595. <choices>
  1596. <itemset>
  1597. <label/>
  1598. <value/>
  1599. </itemset>
  1600. </choices>
  1601. </select1>
  1602. <caption id="caption28" class="cell_1" style="left:1px; top:237px; width:88px; height:23px; vertical-align:middle; ">월 예상사용량</caption>
  1603. <input id="opt_reqseqno" ref="/root/main/newmeterialdetail/reqseqno" class="output_fix" navindex="-1" editable="false" style="left:492px; top:95px; width:78px; height:19px; "/>
  1604. <input id="ipt_prodcmpycd" ref="/root/main/newmeterialdetail/prodcmpycd" class="input_default" navindex="46" maxlength="5" style="left:91px; top:310px; width:68px; height:19px; ">
  1605. <script type="javascript" ev:event="xforms-value-changed">
  1606. <![CDATA[
  1607. if ( model.getValue(ipt_prodcmpycd.attribute("ref")).length == 0 ) model.setValue(ipt_prodcmpynm.attribute("ref"),"");
  1608. else rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref")) + "," ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
  1609. model.refresh();
  1610. model.setFocus("ipt_goodmodel");
  1611. ]]>
  1612. </script>
  1613. </input>
  1614. <input id="ipt_reqdeptnm" ref="/root/main/newmeterialdetail/reqdeptnm" class="output_fix" navindex="-1" editable="false" style="left:197px; top:118px; width:132px; height:19px; "/>
  1615. <caption id="caption29" class="cell_1" style="left:0px; top:261px; width:83px; height:19px; vertical-align:middle; ">사용/구매단위</caption>
  1616. <input id="ipt_goodengnm" ref="/root/main/newmeterialdetail/goodengnm" class="input_s_essential" navindex="31" maxlength="200" style="left:91px; top:166px; width:479px; height:19px; ">
  1617. <script type="javascript" ev:event="xforms-value-changed">
  1618. <![CDATA[
  1619. if(model.getValue(ipt_goodhngnm.attribute("ref")).length == 0) {
  1620. model.setValue(ipt_goodhngnm.attribute("ref"), model.getValue(ipt_goodengnm.attribute("ref")));
  1621. ipt_goodhngnm.refresh();
  1622. }
  1623. ]]>
  1624. </script>
  1625. </input>
  1626. <input id="ipt_chrgtel" ref="/root/main/newmeterialdetail/chrgtel" class="input_s_essential" navindex="53" maxlength="20" style="left:273px; top:365px; width:101px; height:19px; "/>
  1627. <select1 id="cmb_prodplce" ref="/root/main/newmeterialdetail/prodplce" class="combo" navindex="37" appearance="minimal" style="left:92px; top:262px; width:141px; height:19px; ">
  1628. <choices>
  1629. <itemset nodeset="/root/init/prodplce">
  1630. <label ref="cdnm"/>
  1631. <value ref="cdid"/>
  1632. </itemset>
  1633. </choices>
  1634. <script type="javascript" ev:event="onkeydown">
  1635. <![CDATA[
  1636. if(event.keyCode == 9)
  1637. {
  1638. if(event.shiftKey)model.setFocus("ipt_goodengnm");
  1639. else model.setFocus("ipt_prodcmpycd");
  1640. }
  1641. if(event.keyCode == 9)model.setFocus("ipt_prodcmpycd");
  1642. event.preventDefault();
  1643. ]]>
  1644. </script>
  1645. <script type="javascript" ev:event="xforms-value-changed">
  1646. <![CDATA[
  1647. model.setFocus("ipt_prodcmpycd");
  1648. ]]>
  1649. </script>
  1650. </select1>
  1651. <input id="ipt_reqchrgid" ref="/root/main/newmeterialdetail/reqchrgid" class="input_s_essential" navindex="29" maxlength="10" style="left:398px; top:142px; width:67px; height:19px; ">
  1652. <script type="javascript" ev:event="xforms-value-changed">
  1653. <![CDATA[
  1654. misfValidationCheck("01-1", "", "reqchrgid,reqchrgnm");
  1655. model.refresh();
  1656. ]]>
  1657. </script>
  1658. </input>
  1659. <input id="ipt_reqdeptcd" ref="/root/main/newmeterialdetail/reqdeptcd" class="input_s_essential" navindex="24" maxlength="10" style="left:91px; top:118px; width:81px; height:19px; ">
  1660. <script type="javascript" ev:event="xforms-value-changed">
  1661. <![CDATA[
  1662. misfSearchDept(ipt_reqdeptnm);
  1663. ]]>
  1664. </script>
  1665. </input>
  1666. <caption id="caption50" class="cell_1" style="left:332px; top:92px; width:63px; height:24px; vertical-align:middle; ">청구일자</caption>
  1667. <caption id="caption55" class="cell_1" style="left:1px; top:92px; width:88px; height:24px; vertical-align:middle; ">기관코드</caption>
  1668. <line id="line5" class="line_2" style="x1:0px; y1:139px; x2:570px; y2:139px; "/>
  1669. <caption id="caption60" class="cell_1" style="left:332px; top:117px; width:63px; height:23px; vertical-align:middle; ">신청자</caption>
  1670. <caption id="caption47" class="cell_1" style="left:1px; top:117px; width:88px; height:23px; vertical-align:middle; ">청구부서</caption>
  1671. <caption id="caption65" class="cell_1" style="left:1px; top:141px; width:88px; height:23px; vertical-align:middle; ">물품구분</caption>
  1672. <caption id="caption22" class="cell_1" style="left:192px; top:141px; width:53px; height:23px; vertical-align:middle; ">원 내 ☎</caption>
  1673. <caption id="caption23" class="cell_1" style="left:332px; top:141px; width:63px; height:23px; vertical-align:middle; ">부서장</caption>
  1674. <line id="line7" class="line_2" style="x1:0px; y1:187px; x2:570px; y2:187px; "/>
  1675. <caption id="caption42" class="cell_1" style="left:1px; top:165px; width:88px; height:23px; vertical-align:middle; ">품명(영문)</caption>
  1676. <line id="line8" class="line_2" style="x1:0px; y1:211px; x2:570px; y2:211px; "/>
  1677. <caption id="caption45" class="cell_1" style="left:1px; top:189px; width:88px; height:23px; vertical-align:middle; ">품명(한글)</caption>
  1678. <line id="line9" class="line_2" style="x1:0px; y1:235px; x2:570px; y2:235px; "/>
  1679. <caption id="caption11" class="cell_1" style="left:1px; top:213px; width:88px; height:23px; vertical-align:middle; ">단 가</caption>
  1680. <caption id="caption56" class="cell_1" style="left:235px; top:213px; width:90px; height:23px; vertical-align:middle; ">규격</caption>
  1681. <line id="line11" class="line_2" style="x1:0px; y1:259px; x2:570px; y2:259px; "/>
  1682. <caption id="caption68" class="cell_1" style="left:235px; top:237px; width:90px; height:23px; vertical-align:middle; ">모델</caption>
  1683. <line id="line12" class="line_2" style="x1:0px; y1:283px; x2:570px; y2:283px; "/>
  1684. <caption id="caption72" class="cell_1" style="left:0px; top:261px; width:90px; height:23px; vertical-align:middle; ">제조국</caption>
  1685. <caption id="caption2" class="cell_1" style="left:235px; top:261px; width:90px; height:23px; vertical-align:middle; ">물품코드</caption>
  1686. <caption id="caption7" class="cell_1" style="left:1px; top:309px; width:88px; height:23px; vertical-align:middle; ">제조회사</caption>
  1687. <line id="line19" class="line_2" style="x1:5px; y1:362px; x2:560px; y2:362px; "/>
  1688. <caption id="caption31" class="cell_1" style="left:4px; top:340px; width:78px; height:23px; vertical-align:middle; ">거래처</caption>
  1689. <input id="ipt_goodcd" ref="/root/main/newmeterialdetail/goodcd" disabled="true" navindex="38" imemode="disabled" style="left:327px; top:262px; width:153px; height:19px; ">
  1690. <script type="javascript" ev:event="onkeypress">
  1691. <![CDATA[
  1692. if(event.keyCode == "13") {
  1693. btn_goodref.dispatch("DOMActivate");
  1694. }
  1695. ]]>
  1696. </script>
  1697. </input>
  1698. <line id="line13" class="line_2" style="x1:0px; y1:307px; x2:570px; y2:307px; "/>
  1699. <input id="ipt_prodcmpynmtxt" ref="/root/main/newmeterialdetail/prodcmpynmtxt" class="input_default" navindex="49" style="left:327px; top:310px; width:240px; height:19px; text-align:left; ">
  1700. <script type="javascript" ev:event="DOMFocusOut">
  1701. <![CDATA[
  1702. if(model.getValue(ipt_prodcmpynmtxt.attribute("ref")) == "") {
  1703. cap_prodcmpynmtxt.visible = true;
  1704. } else {
  1705. cap_prodcmpynmtxt.visible = false;
  1706. }
  1707. ]]>
  1708. </script>
  1709. </input>
  1710. <caption id="caption19" class="cell_1" style="left:1px; top:285px; width:88px; height:23px; vertical-align:middle; ">포장구성단위</caption>
  1711. <input id="ipt_suppcustnmtxt" ref="/root/main/newmeterialdetail/suppcustnmtxt" navindex="50" style="left:85px; top:340px; width:117px; height:19px; ">
  1712. <script type="javascript" ev:event="DOMFocusOut">
  1713. <![CDATA[
  1714. if(model.getValue(ipt_suppcustnmtxt.attribute("ref")) == "") {
  1715. cap_suppcustnmtxt.visible = true;
  1716. } else {
  1717. cap_suppcustnmtxt.visible = false;
  1718. }
  1719. ]]>
  1720. </script>
  1721. </input>
  1722. <input id="ipt_reqqty" ref="/root/main/newmeterialdetail/reqqty" navindex="41" format="(-)#,###" style="left:91px; top:286px; width:91px; height:19px; text-align:right; "/>
  1723. <caption id="caption40" style="left:10px; top:390px; width:534px; height:20px; font-weight:bold; ">※ 그리드에 물품코드가 존재할경우 더블클릭하면 물품코드 상세내역 팝업이 나옵니다.</caption>
  1724. <line id="line15" class="line_2" style="x1:5px; y1:386px; x2:560px; y2:386px; "/>
  1725. <caption id="caption34" class="cell_1" style="left:4px; top:364px; width:78px; height:23px; vertical-align:middle; ">담당자</caption>
  1726. <caption id="caption35" class="cell_1" style="left:377px; top:364px; width:85px; height:23px; vertical-align:middle; ">담당자 휴대폰</caption>
  1727. <caption id="caption36" class="cell_1" style="left:198px; top:364px; width:73px; height:23px; vertical-align:middle; ">대표번호</caption>
  1728. <input id="ipt_suppcustcdtxt" ref="/root/main/newmeterialdetail/suppcustcdtxt" class="input_default" navindex="51" maxlength="10" style="left:210px; top:340px; width:118px; height:19px; text-align:left; ">
  1729. <script type="javascript" ev:event="DOMFocusOut">
  1730. <![CDATA[
  1731. if(model.getValue(ipt_suppcustcdtxt.attribute("ref")) == "") {
  1732. cap_suppcustcdtxt.visible = true;
  1733. } else {
  1734. cap_suppcustcdtxt.visible = false;
  1735. }
  1736. ]]>
  1737. </script>
  1738. </input>
  1739. <caption id="caption43" class="cell_1" style="left:327px; top:285px; width:63px; height:23px; vertical-align:middle; ">규격여부</caption>
  1740. <select1 id="cmb_specyn" ref="/root/main/newmeterialdetail/specyn" disabled="true" navindex="44" appearance="minimal" style="left:392px; top:286px; width:43px; height:19px; ">
  1741. <choices>
  1742. <item>
  1743. <label>Y</label>
  1744. <value>Y</value>
  1745. </item>
  1746. <item>
  1747. <label>N</label>
  1748. <value>N</value>
  1749. </item>
  1750. </choices>
  1751. </select1>
  1752. <button id="btn_goodref" class="icon_search" navindex="39" style="left:487px; top:264px; width:16px; height:16px; ">
  1753. <caption/>
  1754. <script type="javascript" ev:event="DOMActivate">
  1755. <![CDATA[
  1756. var goodflag = model.getValue(cmb_goodflag.attribute("ref"));
  1757. var goodcd = model.getValue(ipt_goodcd.attribute("ref"));
  1758. var instcd = model.getValue(cmb_instcd.attribute("ref"));
  1759. var selectyn;
  1760. if(goodflag == "") {
  1761. messageBox("물품구분을 입력하세요.", "E");
  1762. model.setFocus("cmb_goodflag");
  1763. return
  1764. }
  1765. setParameter("SPRSD04203_instcd", instcd);
  1766. setParameter("SPRSD04203_goodflag", goodflag);
  1767. setParameter("SPRSD04203_goodcd", goodcd);
  1768. modal("SPRSD04203");
  1769. fSetGoodinfo();
  1770. //selectyn = getParameter("SPRSD04203_select");
  1771. if(selectyn == "Y") {
  1772. }
  1773. ]]>
  1774. </script>
  1775. </button>
  1776. <button id="btn_allsizeref" class="btn2_letter4" navindex="40" style="left:505px; top:261px; width:64px; height:19px; ">
  1777. <caption>Allsize</caption>
  1778. <script type="javascript" ev:event="DOMActivate">
  1779. <![CDATA[
  1780. setParameter("instcd", model.getValue(cmb_instcd.attribute("ref")));
  1781. setParameter("goodcd", model.getValue(ipt_goodcd.attribute("ref")));
  1782. modal("SPRSD04204");
  1783. ]]>
  1784. </script>
  1785. </button>
  1786. <caption id="cap_prodcmpynmtxt" style="left:327px; top:310px; width:240px; height:19px; color:#999999; text-align:center; background-color:transparent; ">
  1787. <![CDATA[제조회사명 직접입력]]>
  1788. <script type="javascript" ev:event="DOMFocusIn">
  1789. <![CDATA[
  1790. cap_prodcmpynmtxt.visible = false;
  1791. model.setFocus("ipt_prodcmpynmtxt");
  1792. ]]>
  1793. </script>
  1794. </caption>
  1795. <caption id="caption48" class="cell_1" style="left:436px; top:285px; width:63px; height:23px; vertical-align:middle; ">유해물질</caption>
  1796. <select1 id="rdo_advsmatryn" ref="/root/main/newmeterialdetail/advsmatryn" class="radio_search" disabled="false" navindex="45" appearance="full" cols="4" itemheight="18" itemwidth="30" overflow="visible" style="left:502px; top:287px; width:60px; height:20px; text-align:center; border-style:none; ">
  1797. <choices>
  1798. <item>
  1799. <label>Y</label>
  1800. <value>Y</value>
  1801. </item>
  1802. <item>
  1803. <label>N</label>
  1804. <value>N</value>
  1805. </item>
  1806. </choices>
  1807. </select1>
  1808. <caption id="cap_suppcustnmtxt" class="input_s_essential" style="left:85px; top:340px; width:117px; height:19px; color:#999999; text-align:center; background-color:transparent; ">
  1809. <![CDATA[거래처명입력]]>
  1810. <script type="javascript" ev:event="DOMFocusIn">
  1811. <![CDATA[
  1812. cap_suppcustnmtxt.visible = false;
  1813. model.setFocus("ipt_suppcustnmtxt");
  1814. ]]>
  1815. </script>
  1816. </caption>
  1817. <caption id="cap_suppcustcdtxt" class="input_s_essential" style="left:210px; top:340px; width:118px; height:20px; color:#999999; text-align:center; background-color:transparent; ">
  1818. <![CDATA[사업자등록번호]]>
  1819. <script type="javascript" ev:event="DOMFocusIn">
  1820. <![CDATA[
  1821. cap_suppcustcdtxt.visible = false;
  1822. model.setFocus("ipt_suppcustcdtxt");
  1823. ]]>
  1824. </script>
  1825. </caption>
  1826. <input id="ipt_deptaprvyn" ref="/root/main/newmeterialdetail/deptaprvyn" class="input_s_essential" disabled="true" navindex="72" visibility="hidden" maxlength="10" style="left:540px; top:58px; width:22px; height:19px; "/>
  1827. <caption id="caption49" class="cell_1" visibility="hidden" style="left:485px; top:55px; width:55px; height:23px; vertical-align:middle; ">승인여부</caption>
  1828. <caption id="caption51" style="left:251px; top:289px; width:10px; height:15px; ">/</caption>
  1829. <caption id="cap_goodspectxt" class="input_s_essential" style="left:328px; top:214px; width:242px; height:19px; color:#999999; text-align:center; background-color:transparent; ">
  1830. <![CDATA[사용할 규격명 입력]]>
  1831. <script type="javascript" ev:event="DOMFocusIn">
  1832. <![CDATA[
  1833. cap_goodspectxt.visible = false;
  1834. model.setFocus("ipt_goodspec");
  1835. ]]>
  1836. </script>
  1837. </caption>
  1838. <select1 id="rdo_insuyn" ref="/root/main/newmeterialdetail/insuyn" navindex="19" appearance="full" cellspacing="10" cols="5" rows="1" overflow="visible" style="left:112px; top:9px; width:455px; height:19px; border-style:none; ">
  1839. <choices>
  1840. <itemset nodeset="/root/init/insuyn">
  1841. <label ref="label"/>
  1842. <value ref="value"/>
  1843. </itemset>
  1844. </choices>
  1845. <script type="javascript" ev:event="xforms-value-changed">
  1846. <![CDATA[
  1847. fInsuynChange("Y")
  1848. ]]>
  1849. </script>
  1850. </select1>
  1851. <input id="ipt_undecicurematrreqdt" ref="/root/main/newmeterialdetail/undecicurematrreqdt" inputtype="date" maxlength="8" format="yyyy-mm-dd" style="left:112px; top:32px; width:122px; height:19px; "/>
  1852. <line id="line16" class="line_2" style="x1:6px; y1:29px; x2:566px; y2:29px; "/>
  1853. <line id="line17" class="line_2" style="x1:6px; y1:52px; x2:261px; y2:52px; "/>
  1854. <caption id="cap_insuyn" style="left:7px; top:55px; width:473px; height:35px; ">
  1855. <![CDATA[* 요양급여에 따라 입력항목이 다릅니다.
  1856. * 기타 항목은 보험급여, 비급여 품목이 아닌 경우에만 입력하여 주십시오.]]>
  1857. </caption>
  1858. <caption id="caption5" class="cell_1" style="left:6px; top:7px; width:103px; height:23px; vertical-align:middle; ">요양급여</caption>
  1859. <input id="ipt_actcd" ref="/root/main/newmeterialdetail/actcd" class="input_default" navindex="22" visibility="hidden" maxlength="16" _chartype="upper" style="left:347px; top:32px; width:122px; height:19px; "/>
  1860. <caption id="caption_insuyn" class="cell_1" style="left:6px; top:31px; width:103px; height:23px; vertical-align:middle; ">EDI CODE</caption>
  1861. <input id="ipt_edicd" ref="/root/main/newmeterialdetail/edicd" class="input_default" disabled="true" navindex="20" maxlength="16" _chartype="upper" style="left:112px; top:32px; width:122px; height:19px; ">
  1862. <script type="javascript" ev:event="xforms-value-changed">
  1863. <![CDATA[
  1864. if(ipt_edicd.value != "") {
  1865. fEdiCodeSearch();
  1866. }
  1867. ]]>
  1868. </script>
  1869. </input>
  1870. <caption id="cap_actcd" class="cell_1" visibility="hidden" style="left:240px; top:31px; width:103px; height:23px; vertical-align:middle; ">행위료코드</caption>
  1871. <button id="btn_edicdsearch" class="icon_search" disabled="true" navindex="21" style="left:239px; top:34px; width:16px; height:16px; ">
  1872. <caption/>
  1873. <script type="javascript" ev:event="DOMActivate">
  1874. <![CDATA[
  1875. fEdiCodeSearch();
  1876. ]]>
  1877. </script>
  1878. </button>
  1879. <caption id="caption25" style="left:10px; top:405px; width:534px; height:20px; font-weight:bold; ">※ 부서장 승인은 신규 의료소모품 상세내역의 체크박스를 체크해 주시기 바랍니다.</caption>
  1880. <caption id="caption57" style="left:10px; top:420px; width:534px; height:20px; font-weight:bold; ">※ 보험코드가 동일한 경우 규격이 다른 물품은 비고란에 기재 할 것</caption>
  1881. </group>
  1882. <caption id="caption26" class="tit_2" style="left:0px; top:67px; width:195px; height:13px; ">신규 의료소모품 상세내역</caption>
  1883. <button id="btn_specnew" class="btn4_letter4" navindex="68" style="left:940px; top:279px; width:80px; height:22px; ">
  1884. <caption>규격신규</caption>
  1885. <script type="javascript" ev:event="DOMActivate">
  1886. <![CDATA[
  1887. status = "i";
  1888. specyn = 'Y';
  1889. fInitInstance();
  1890. fSetInitCtrl(false, null, specyn);
  1891. caption18.text = "신 규 규 격\n입 력";
  1892. model.setValue(cmb_specyn.attribute("ref"), specyn);
  1893. model.setValue("/root/main/newmeterialdetail/advsmatryn",'N');
  1894. //cap_suppcustcdtxt.visible = true;
  1895. //cap_suppcustnmtxt.visible = true;
  1896. btn_allsizeref.disabled = false;
  1897. fTextLabelView();
  1898. model.refresh();
  1899. ]]>
  1900. </script>
  1901. </button>
  1902. <button id="btn_delete" class="btn4_letter2" disabled="true" navindex="70" style="left:1078px; top:279px; width:56px; height:22px; ">
  1903. <caption>삭제</caption>
  1904. <script type="javascript" ev:event="DOMActivate">
  1905. <![CDATA[
  1906. status = "d";
  1907. if(model.getValue(opt_reqseqno.attribute("ref")) == "") {
  1908. messageBox("삭제할 항목이 선택되지않았습니다", "E");
  1909. return;
  1910. }
  1911. var newmatrprcsstat = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("newmatrprcsstat"));
  1912. if(newmatrprcsstat == "01") {
  1913. if(model.getValue(ipt_reqpsnid.attribute("ref")) != getUserInfo("userid")) {
  1914. messageBox("신청자가 아니면 물품을 삭제할수 없습니다.", "E");
  1915. return;
  1916. }
  1917. } else {
  1918. messageBox("신청상태가 아닌경우에는 삭제할수없습니다.", "E");
  1919. return;
  1920. }
  1921. var rtn = messageBox("삭제하시겠습니까?", "Q");
  1922. if(rtn == "6") {
  1923. model.copyNode("/root/send/savedata", "/root/main/newmeterialdetail");
  1924. model.makeValue("/root/send/savedata/status", status);
  1925. submit("TXRSD04002");
  1926. if (model.getValue(gvErrorMsgPath + "/type") != "error") {
  1927. messageBox("삭제하였습니다.", "I");
  1928. btn_search.dispatch("DOMActivate");
  1929. } else {
  1930. messageBox("변경된 데이터가","I004");
  1931. return;
  1932. }
  1933. }
  1934. ]]>
  1935. </script>
  1936. </button>
  1937. <button id="button7" class="btn4_letter2" navindex="67" style="left:883px; top:279px; width:56px; height:22px; ">
  1938. <caption>복사</caption>
  1939. <script type="javascript" ev:event="DOMActivate">
  1940. <![CDATA[
  1941. if(grd_newmetldetllist.row >= grd_newmetldetllist.fixedRows) {
  1942. var specyn, advsmatryn;
  1943. status = "i";
  1944. model.makeNode("/root/temp/copydata");
  1945. model.copyNode("/root/temp/copydata", grd_newmetldetllist.nodeset + "[" +grd_newmetldetllist.row + "]");
  1946. specyn = grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("specyn"));
  1947. model.setValue(cmb_specyn.attribute("ref"), specyn);
  1948. cmb_specyn.refresh();
  1949. if(specyn == "Y") {
  1950. btn_specnew.dispatch("DOMActivate");
  1951. } else {
  1952. btn_new.dispatch("DOMActivate");
  1953. }
  1954. model.copyNode("/root/main/newmeterialdetail" ,"/root/temp/copydata");
  1955. model.setValue(opt_reqseqno.attribute("ref"), "");
  1956. model.setValue(ipt_reqdd.attribute("ref"), getCurrentDate());
  1957. model.setValue("/root/main/newmeterialdetail/newmatrprcsstat", "01");
  1958. model.setValue("/root/main/newmeterialdetail/insucommityn" , "-" );
  1959. model.setValue("/root/main/newmeterialdetail/deptaprvyn" , "N" );
  1960. model.setValue("/root/main/newmeterialdetail/deptcmt" , "" );
  1961. model.setValue("/root/main/newmeterialdetail/goodcd" , "" );
  1962. model.setValue(tar_anohospusestat.attribute("ref") , "" );
  1963. rszfComboUnitList (cmb_purcunit,model.getValue(cmb_instcd.attribute("ref")),grd_newmetldetllist.valueMatrix(grd_newmetldetllist.row, grd_newmetldetllist.colRef("goodflag")));
  1964. misfComboCopyItemSet(cmb_purcunit, "", cmb_deliveunit, "");
  1965. fTextLabelView();
  1966. model.refresh();
  1967. } else {
  1968. messageBox("복사할 항목이 존재하지않습니다.", "E");
  1969. return;
  1970. }
  1971. ]]>
  1972. </script>
  1973. </button>
  1974. <caption id="caption52" visibility="visible" style="left:175px; top:280px; width:400px; height:20px; color:#000000; text-align:center; background-color:#ffff00; ">
  1975. <![CDATA[본 메뉴는 진료재료 신청난으로서 약제는 약무팀으로 신청바랍니다.]]>
  1976. <script type="javascript" ev:event="DOMFocusIn">
  1977. <![CDATA[
  1978. cap_goodspectxt.visible = false;
  1979. model.setFocus("ipt_goodspec");
  1980. ]]>
  1981. </script>
  1982. </caption>
  1983. </group>
  1984. <button id="btn_clear" class="btn4_letter3" navindex="14" visibility="hidden" style="left:1124px; top:1px; width:68px; height:22px; ">
  1985. <caption>초기화</caption>
  1986. <script type="javascript" ev:event="DOMActivate">
  1987. <![CDATA[
  1988. var updtdata = getGridUpdateData(grd_newmetldetllist);
  1989. if (updtdata != "") {
  1990. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  1991. if (ret != 6) { // not OK
  1992. return;
  1993. }
  1994. }
  1995. fInitialize();
  1996. ]]>
  1997. </script>
  1998. </button>
  1999. <group id="grp_hidden" visibility="hidden" style="left:580px; top:170px; width:305px; height:150px; ">
  2000. <textarea id="ipt_insuresn" ref="/root/main/newmeterialdetail/insuresn" disabled="true" visibility="hidden" scroll="auto" maxlength="50" style="left:80px; top:5px; width:45px; height:30px; "/>
  2001. <caption id="caption33" class="cell_1" visibility="hidden" style="left:5px; top:5px; width:73px; height:30px; vertical-align:middle; ">
  2002. <![CDATA[의료적
  2003. 비급여사유]]>
  2004. </caption>
  2005. <input id="ipt_useschedd" ref="/root/main/newmeterialdetail/useschedd" class="input_default" visibility="hidden" inputtype="date" style="left:220px; top:39px; width:55px; height:19px; text-align:center; "/>
  2006. <input id="ipt_reqqty2" ref="/root/main/newmeterialdetail/reqqty" class="input_default" navindex="73" visibility="hidden" maxlength="9" format="#,###" style="left:95px; top:40px; width:30px; height:19px; text-align:right; ">-</input>
  2007. <caption id="caption24" class="cell_1" visibility="hidden" style="left:130px; top:38px; width:88px; height:23px; vertical-align:middle; ">사용예정일</caption>
  2008. <caption id="caption27" class="cell_1" visibility="hidden" style="left:5px; top:39px; width:88px; height:23px; vertical-align:middle; ">수량</caption>
  2009. <button id="btn_maincustlastsuplplce" class="icon_search" visibility="hidden" style="left:215px; top:9px; width:16px; height:16px; ">
  2010. <caption/>
  2011. <script type="javascript" ev:event="DOMActivate">
  2012. <![CDATA[
  2013. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustnm,prsdnm,cntctel","SPRSD00220","instcd","cmb_instcd" );
  2014. ipt_suppcustcd.refresh();
  2015. ipt_suppcustnm.refresh();
  2016. ]]>
  2017. </script>
  2018. </button>
  2019. <input id="ipt_suppcustnm" ref="/root/main/newmeterialdetail/suppcustnm" class="input" disabled="true" navindex="75" visibility="hidden" style="left:235px; top:5px; width:17px; height:19px; ">
  2020. <script type="javascript" ev:event="xforms-value-changed">
  2021. <![CDATA[
  2022. if(ipt_suppcustnm.value != ""){
  2023. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  2024. model.getValue(cmb_instcd.attribute("ref")) +",custnm,"+ model.getValue(ipt_suppcustnm.attribute("ref"))
  2025. ,"","suppcustcd,suppcustnm,prsdnm,cntctel" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd",'Y');
  2026. if(model.getValue("/root/init/main/reqcustomlist/prsdnm") != '')
  2027. {
  2028. model.setValue("/root/main/newmeterialdetail/chrgid", model.getValue("/root/init/main/reqcustomlist/prsdnm"));
  2029. model.setValue("/root/main/newmeterialdetail/chrgtel", model.getValue("/root/init/main/reqcustomlist/cntctel"));
  2030. model.resetInstanceNode("/root/init/main/reqcustomlist");
  2031. }else{
  2032. model.setValue("/root/main/newmeterialdetail/chrgid", model.getValue("/root/main/newmeterialdetail/prsdnm"));
  2033. model.setValue("/root/main/newmeterialdetail/chrgtel", model.getValue("/root/main/newmeterialdetail/cntctel"));
  2034. model.setValue("/root/main/newmeterialdetail/chrgmpphon", model.getValue("/root/main/newmeterialdetail/faxno"));
  2035. }
  2036. }else{
  2037. ipt_suppcustcd.value = "";
  2038. ipt_chrgid.value = '';
  2039. ipt_chrgtel.value = '';
  2040. ipt_chrgmpphon.value ='';
  2041. }
  2042. model.refresh();
  2043. ]]>
  2044. </script>
  2045. </input>
  2046. <input id="ipt_suppcustcd" ref="/root/main/newmeterialdetail/suppcustcd" class="input" navindex="74" visibility="hidden" maxlength="10" style="left:190px; top:5px; width:20px; height:19px; ">
  2047. <script type="javascript" ev:event="xforms-value-changed">
  2048. <![CDATA[
  2049. if ( model.getValue(ipt_suppcustcd.attribute("ref")).length == 0 ){
  2050. model.setValue(ipt_suppcustnm.attribute("ref"),"");
  2051. ipt_suppcustnm.value = "";
  2052. }else{
  2053. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm", model.getValue(cmb_instcd.attribute("ref")) +",,"+ model.getValue(ipt_suppcustcd.attribute("ref"))
  2054. ,"","suppcustcd,suppcustnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  2055. model.resetInstanceNode("/root/init/main/reqcustomlist");
  2056. }
  2057. ipt_suppcustcd.refresh();
  2058. ipt_suppcustnm.refresh();
  2059. model.setFocus("ipt_suppcustnm");
  2060. ]]>
  2061. </script>
  2062. <script type="javascript" ev:event="onkeydown">
  2063. <![CDATA[
  2064. if(event.keyCode == 9)
  2065. {
  2066. if(event.shiftKey)model.setFocus("cmb_purcflag");
  2067. else model.setFocus("ipt_suppcustnm");
  2068. }
  2069. event.preventDefault();
  2070. ]]>
  2071. </script>
  2072. </input>
  2073. <caption id="caption30" class="cell_1" visibility="hidden" style="left:5px; top:65px; width:73px; height:20px; vertical-align:middle; ">해당고시</caption>
  2074. <textarea id="ipt_insucomd" ref="/root/main/newmeterialdetail/insucomd" disabled="true" visibility="hidden" scroll="auto" maxlength="50" style="left:85px; top:66px; width:40px; height:19px; "/>
  2075. <caption id="caption32" class="cell_1" visibility="hidden" style="left:5px; top:90px; width:98px; height:23px; vertical-align:middle; ">구매팀 진행상태</caption>
  2076. <select1 id="combo1" ref="/root/main/newmeterialdetail/newmatrprcsstat" disabled="true" visibility="hidden" appearance="minimal" style="left:106px; top:91px; width:124px; height:19px; ">
  2077. <choices>
  2078. <item>
  2079. <label>신청</label>
  2080. <value>01</value>
  2081. </item>
  2082. <item>
  2083. <label>구매팀접수</label>
  2084. <value>02</value>
  2085. </item>
  2086. <item>
  2087. <label>구매팀반려</label>
  2088. <value>03</value>
  2089. </item>
  2090. <item>
  2091. <label>수가위원회상정</label>
  2092. <value>04</value>
  2093. </item>
  2094. <item>
  2095. <label>수가위원회통과</label>
  2096. <value>05</value>
  2097. </item>
  2098. <item>
  2099. <label>수가위원회부결</label>
  2100. <value>06</value>
  2101. </item>
  2102. <item>
  2103. <label>승인신청</label>
  2104. <value>07</value>
  2105. </item>
  2106. <item>
  2107. <label>구매진행</label>
  2108. <value>08</value>
  2109. </item>
  2110. <item>
  2111. <label>구매부결</label>
  2112. <value>09</value>
  2113. </item>
  2114. <item>
  2115. <label>물품코드생성</label>
  2116. <value>10</value>
  2117. </item>
  2118. <item>
  2119. <label>완료</label>
  2120. <value>00</value>
  2121. </item>
  2122. </choices>
  2123. </select1>
  2124. <caption id="caption37" class="cell_1" visibility="hidden" style="left:5px; top:115px; width:98px; height:23px; vertical-align:middle; ">적정팀 진행상태</caption>
  2125. <caption id="caption38" class="cell_1" visibility="hidden" style="left:233px; top:91px; width:58px; height:24px; text-align:center; vertical-align:middle; ">비 고</caption>
  2126. <select1 id="cmb_insucommityn" ref="/root/main/newmeterialdetail/insucommityn" disabled="true" visibility="hidden" appearance="minimal" style="left:106px; top:116px; width:124px; height:19px; ">
  2127. <choices>
  2128. <item>
  2129. <label/>
  2130. <value>-</value>
  2131. </item>
  2132. <item>
  2133. <label>수가위원회상정</label>
  2134. <value>Y</value>
  2135. </item>
  2136. <item>
  2137. <label>수가위원회비상정</label>
  2138. <value>N</value>
  2139. </item>
  2140. <item>
  2141. <label>수가위원회부결</label>
  2142. <value>R</value>
  2143. </item>
  2144. <item>
  2145. <label>수가위원회통과</label>
  2146. <value>P</value>
  2147. </item>
  2148. </choices>
  2149. </select1>
  2150. <caption id="caption39" class="cell_1" visibility="hidden" style="left:235px; top:120px; width:58px; height:25px; text-align:center; vertical-align:middle; ">비 고</caption>
  2151. </group>
  2152. </xhtml:body>
  2153. </xhtml:html>