SMRSD04500_신규재료구매팀접수 및 소견.xrw 62 KB

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