SMRSD04100_신규재료신청등록.xrw 61 KB

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