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

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