SMRSC06100_SET내역 및 사진정보 등록.xrw 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <?xml-stylesheet href="C:/CMCProject/application/webapps/com/commonweb/css/common.css" type="text/css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>CSR 물품 정보</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <goodmstlist>
  12. <instcd/>
  13. <proddrugsetflag/>
  14. <goodcd/>
  15. <goodnm/>
  16. <cmt/>
  17. <pictcheck/>
  18. </goodmstlist>
  19. <goodsetlist>
  20. <instcd/>
  21. <proddrugsetflag/>
  22. <goodcd/>
  23. <proddrugseqno/>
  24. <comdrugtoolcd/>
  25. <consitemnm/>
  26. <consqty/>
  27. <compsgoodunit/>
  28. <cmt/>
  29. </goodsetlist>
  30. <cmt/>
  31. <imglist>
  32. <goodcd/>
  33. <imgdata/>
  34. <imgdata2/>
  35. <check/>
  36. </imglist>
  37. <imageLoad>
  38. <goodcd/>
  39. <image1/>
  40. <image2/>
  41. </imageLoad>
  42. <bigimagetemp/>
  43. </main>
  44. <send>
  45. <instcd/>
  46. <goodflag/>
  47. <goodcd/>
  48. <goodnm/>
  49. <goodspec/>
  50. <goodmodel/>
  51. <prodcmpynm/>
  52. <proddrugsetflag/>
  53. <transmission>
  54. <instcd/>
  55. <goodcd/>
  56. <proddrugsetflag/>
  57. </transmission>
  58. <goodmstlist/>
  59. <goodsetlist/>
  60. <csrdeptcd/>
  61. <instcdnm/>
  62. </send>
  63. <init/>
  64. <temp>
  65. </temp>
  66. </root>
  67. </instance>
  68. <script type="javascript" ev:event="xforms-ready">
  69. <![CDATA[
  70. //submit 되는 node 들을 초기화한다
  71. fInitialize();
  72. // misfComboComCdList("Z0007", cmb_instcd);
  73. // misfGridComboComCdList("R0034",grd_goodsetlist,"compsgoodunit");
  74. misfComboComCdListMulti("R0034,R0313","grd_goodsetlist.compsgoodunit,cmb_csrdeptcd");
  75. //
  76. // alert(cmb_csrdeptcd.length);
  77. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  78. <!-- [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= E) => (goodflag= EQ) -->
  79. model.setValue("/root/send/goodflag", "EQ");
  80. rdo_proddrugsetflag.select(0);
  81. fsearch();
  82. //fSetCsrDeptSave();
  83. ]]>
  84. </script>
  85. <submission id="TRRSC06102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/"/>
  86. <submission id="TRRSC06101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/transmission" resultref="/root/main/goodsetlist"/>
  87. <submission id="TXRSC06101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  88. <submission id="TXRSC06102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/imglist" resultref="/root/temp"/>
  89. <submission id="TRRSC06103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/transmission" resultref="/root/main/imageLoad"/>
  90. </model>
  91. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  93. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  94. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  95. <script type="javascript">
  96. <![CDATA[
  97. function fInitialize(){
  98. misfGridInit(grd_goodmstlist);
  99. misfGridInit(grd_goodsetlist);
  100. misfMsterDetailSet(grd_goodmstlist, null, "TRRSC06102" , "Y");
  101. misfMsterDetailSet(grd_goodsetlist, null, "TRRSC06101", "Y");
  102. model.resetInstanceNode("/root/temp");
  103. model.resetInstanceNode("/root/send/transmission");
  104. //기관코드, 명 설정.
  105. opt_instcd.value = getUserInfo("dutplceinstcd");
  106. opt_instcdnm.value = getUserInfo("dutplceinstnm");
  107. grp_imageView.visible = false;
  108. misfSetReadOnlyCol(grd_goodmstlist, "goodcd,goodnm", true);
  109. }
  110. function fGridColVisibility(fbool)
  111. {
  112. grd_goodmstlist.colHidden(grd_goodmstlist.colRef("goodspec")) = fbool;
  113. if(fbool)
  114. {
  115. grd_goodmstlist.caption = "기관코드^제제약, SET구분^Set^Set 명^규격^비고";
  116. }else{
  117. grd_goodmstlist.caption = "기관코드^제제약, SET구분^물품코드^물품명^규격^비고";
  118. }
  119. }
  120. // 사진 유무를 판단하며 사진LOAD.
  121. function fpictCheck()
  122. {
  123. if(grd_goodmstlist.valueMatrix(grd_goodmstlist.row, grd_goodmstlist.colRef("goodcd")) == grd_goodmstlist.valueMatrix(grd_goodmstlist.row, grd_goodmstlist.colRef("pictcheck")) )
  124. {
  125. model.resetInstanceNode("/root/main/imageLoad");
  126. submit("TRRSC06103");
  127. model.setValue(img_viewLeft.attribute("ref"), model.getValue(img_viewleftH.attribute("ref")));
  128. setImageRefInstance(img_viewLeft.attribute("ref"));
  129. model.setValue(img_viewRight.attribute("ref"), model.getValue(img_viewrightH.attribute("ref")));
  130. setImageRefInstance(img_viewRight.attribute("ref"));
  131. }else
  132. {
  133. fChangeImage(img_viewLeft, img_viewleftH, "../../../com/commonweb/images/no_image.gif", "Y");
  134. fChangeImage(img_viewRight, img_viewrightH, "../../../com/commonweb/images/no_image.gif", "Y");
  135. }
  136. }
  137. // 데이터를 저장하기전 기본적인 값을 체크하고 저장.
  138. function fsaveCheck()
  139. {
  140. var updataRight = getGridUpdateData(grd_goodsetlist);
  141. var updataLeft = getGridUpdateData(grd_goodmstlist);
  142. var count = 2;
  143. var bool = false;
  144. // 업데이트 유무 체크
  145. if(updataRight == ""){ count = count-1; }
  146. if(updataLeft == ""){ count = count-1; }
  147. if(count == 0)
  148. {
  149. messageBox("변경된 데이터가","I004");
  150. return;
  151. }
  152. if(!checkKeyColumn("grd_goodsetlist")) return;
  153. if(grd_goodmstlist.valueMatrix(grd_goodmstlist.row, grd_goodmstlist.colRef("goodcd")) == grd_goodmstlist.valueMatrix(grd_goodmstlist.row, grd_goodmstlist.colRef("pictcheck")))
  154. {
  155. model.setValue("/root/main/imglist/check", "u");
  156. }else{
  157. model.setValue("/root/main/imglist/check", "i");
  158. bool = true;
  159. }
  160. rtn = messageBox("", "Q002");
  161. if(rtn != "6" ) return false;
  162. model.setValue("/root/main/imglist/goodcd", grd_goodmstlist.valueMatrix(grd_goodmstlist.row, grd_goodmstlist.colRef("goodcd")));
  163. // 저장.
  164. misfSave("TXRSC06101");
  165. // 사진 저장
  166. submit("TXRSC06102");
  167. if(bool)
  168. {
  169. btn_search.dispatch("DOMActivate");
  170. }
  171. }
  172. function fSettingGoodList(pnode, nodename){
  173. var codynode = instance1.selectNodes(pnode + "/*");
  174. var addRow = grd_goodsetlist.rows - grd_goodsetlist.fixedRows;
  175. if(model.getValue(grd_goodsetlist.nodeset + "/goodsetlist[" + addRow + "]/comdrugtoolcd").length > 0)addRow = addRow + 1;
  176. for (var j = 1; j <= codynode.length ; j++) {
  177. if(addRow > grd_goodsetlist.rows - grd_goodsetlist.fixedRows)
  178. {
  179. misfGridIUD(grd_goodsetlist,"A");
  180. addRow = grd_goodsetlist.rows - grd_goodsetlist.fixedRows;
  181. fDefaultSetting(addRow );
  182. }
  183. model.setValue(grd_goodsetlist.nodeset + "[" + addRow + "]/comdrugtoolcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
  184. model.setValue(grd_goodsetlist.nodeset + "[" + addRow + "]/consitemnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
  185. model.setValue(grd_goodsetlist.nodeset + "[" + addRow + "]/compsgoodunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/purcunit"));
  186. model.setValue(grd_goodsetlist.nodeset + "[" + addRow + "]/consqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/userqty"));
  187. addRow = addRow + 1;
  188. }
  189. model.refresh();
  190. }
  191. function fDefaultSetting(prow)
  192. {
  193. model.setValue(grd_goodsetlist.nodeset + "["+ prow + "]/instcd" , model.getValue(opt_instcd.attribute("ref")));
  194. model.setValue(grd_goodsetlist.nodeset + "["+ prow+ "]/proddrugsetflag" , grd_goodmstlist.valueMatrix(grd_goodmstlist.row, grd_goodmstlist.colRef("proddrugsetflag")));
  195. model.setValue(grd_goodsetlist.nodeset + "["+ prow + "]/goodcd" , grd_goodmstlist.valueMatrix(grd_goodmstlist.row, grd_goodmstlist.colRef("goodcd")));
  196. }
  197. // 조회
  198. function fsearch()
  199. {
  200. misfMsterDetailRetrieve();
  201. model.setValue("/root/main/cmt", grd_goodmstlist.valueMatrix(grd_goodmstlist.row, grd_goodmstlist.colRef("cmt")) );
  202. grd_goodmstlist.select(1, 3, 1, 3) = true;
  203. misfSetReadOnlyCol(grd_goodmstlist, "goodcd,goodnm", true);
  204. fonclicksearch();
  205. }
  206. // 초기화 실행시 그리드의 작업유무 확인.
  207. // 작업 중인 데이터가 없으면 TRUE 을 반환.
  208. function fcheckInitialize()
  209. {
  210. var updataLeft = getGridUpdateData(grd_goodmstlist);
  211. var updataRight = getGridUpdateData(grd_goodsetlist);
  212. var count = 2;
  213. if(updataLeft == "") { count = count - 1; }
  214. if(updataRight == "" ) { count = count - 1;}
  215. if ( count != 0) {
  216. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  217. if (ret != 6) { // not OK
  218. return;
  219. }
  220. }
  221. return true;
  222. }
  223. //SET 물품 List Grid 클릭시 발생하는 이벤트
  224. //Set 제원내역을 조회하기 위한 키값을 저장하고 Grid를 설정.
  225. function fonclicksearch()
  226. {
  227. var updataRight = getGridUpdateData(grd_goodmstlist);
  228. if(updataRight != "")
  229. {
  230. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  231. if (ret != 6) { // not OK
  232. return;
  233. }
  234. }
  235. model.setValue("/root/main/cmt","");
  236. if(grd_goodmstlist.row >= 1)
  237. {
  238. model.setValue("/root/send/transmission/instcd", grd_goodmstlist.valueMatrix(grd_goodmstlist.row, grd_goodmstlist.colRef("instcd")));
  239. model.setValue("/root/send/transmission/goodcd", grd_goodmstlist.valueMatrix(grd_goodmstlist.row, grd_goodmstlist.colRef("goodcd")));
  240. model.setValue("/root/send/transmission/proddrugsetflag", grd_goodmstlist.valueMatrix(grd_goodmstlist.row,grd_goodmstlist.colRef("proddrugsetflag")));
  241. // 이미지 물품코드 설정
  242. model.setValue("/root/main/imglist/goodcd", grd_goodmstlist.valueMatrix(grd_goodmstlist.row, grd_goodmstlist.colRef("goodcd")));
  243. // 비고 설정
  244. model.setValue("/root/main/cmt", grd_goodmstlist.valueMatrix(grd_goodmstlist.row, grd_goodmstlist.colRef("cmt")) );
  245. // Set 제원 내역 조회
  246. submit("TRRSC06101");
  247. // 사진 조회
  248. fpictCheck();
  249. misfSetReadOnlyCol(grd_goodsetlist, "instcd,proddrugsetflag,goodcd,proddrugseqno,comdrugtoolcd,consitemnm", true);
  250. }
  251. model.refresh();
  252. }
  253. // Set 제원내역에 행 추가
  254. function finsert()
  255. {
  256. if(model.getValue("/root/send/transmission/goodcd") == "" )
  257. {
  258. messageBox("SET 물품 List를","C002");
  259. return;
  260. }else{
  261. misfGridIUD(grd_goodsetlist, "A");
  262. grd_goodsetlist.valueMatrix(grd_goodsetlist.row, grd_goodsetlist.colRef("instcd")) = opt_instcd.value;
  263. grd_goodsetlist.valueMatrix(grd_goodsetlist.row, grd_goodsetlist.colRef("proddrugsetflag")) = grd_goodmstlist.valueMatrix(grd_goodmstlist.row, grd_goodmstlist.colRef("proddrugsetflag"));
  264. grd_goodsetlist.valueMatrix(grd_goodsetlist.row, grd_goodsetlist.colRef("goodcd")) = grd_goodmstlist.valueMatrix(grd_goodmstlist.row, grd_goodmstlist.colRef("goodcd"));
  265. }
  266. }
  267. // 이미지 처리
  268. // 1-보여줄 컴포넌트 노드, 2-ImageData Temp Node, 3-직접 입력할 이미지 경로, 4-이미지 경로 입력 유무
  269. function fChangeImage(img_viewtarget, img_hidden, Tfile, check)
  270. {
  271. if(check == "Y")
  272. {
  273. file = Tfile;
  274. }else if(check == "N")
  275. {
  276. var file = openImageFileDialog(100000); // image 파일이 너무 크면 submit 시간이 매우 오래(5분이상) 걸리므로 가급적 사이즈를 작게 제한한다.
  277. if (file == "") {
  278. return;
  279. }
  280. }
  281. // model.resetInstanceNode(img_viewtarget.attribute("ref"));
  282. img_hidden.src = file; // 파일에서 읽은 이미지의 base64 encoding 값을 가져오기 위한 이미지 컨트롤
  283. var data = img_hidden.getbase64data(); // encoding 문자열을 가져온다.
  284. // var imgSize = getImageSize(file);
  285. // var imgWidthSize = imgSize.split("^")[0];
  286. // var imgHeightSize = imgSize.split("^")[1];
  287. model.setValue(img_viewtarget.attribute("ref"), data, true); // 이미지를 보여주기 위하여 view용 이미지컨트롤의 ref instance에 값을 저장
  288. setImageRefInstance(img_viewtarget.attribute("ref"));
  289. img_viewtarget.attribute("width")= 210;
  290. img_viewtarget.attribute("height")= 240;
  291. // model.refresh();
  292. return true;
  293. }
  294. /* ------------------------------------------------------------------------------------------
  295. * 기관별 중앙공급실 부서코드 운영.
  296. * 공급실 사용자만 저장하게 해달라.
  297. ----------------------------------------------------------------------------------------*/
  298. function fSetCsrDeptSave()
  299. {
  300. //hbh
  301. //선택되어진 모드코드와 연관되는 노출시간과 멸균온도를 가져오기 위한 흐름.
  302. var node = cmb_csrdeptcd.choices.itemset.attribute("nodeset");
  303. var nodeguide = instance1.selectNodes( node);
  304. for(var s = 1; s <= nodeguide.length; s++)
  305. {
  306. btn_save.disabled = true;
  307. btn_insert.disabled = true;
  308. btn_delete.disabled = true;
  309. if( model.getValue(node + "[" +s +"]/cdid") == model.getValue(opt_instcd.attribute("ref"))
  310. && model.getValue(node + "[" +s +"]/cdnm") == getUserInfo("dutplcecd") )
  311. {
  312. btn_save.disabled = false;
  313. btn_insert.disabled = false;
  314. btn_delete.disabled = false;
  315. }
  316. // {
  317. // grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("expsurtm")) = model.getValue(node + "[" +s +"]/expsurtm");
  318. // grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinftmpr")) = model.getValue(node + "[" +s +"]/dinftmpr");
  319. //
  320. // grd_rsdhdinflist.refresh();
  321. // return;
  322. // }
  323. }
  324. }
  325. function fBigImageSet(fcopyNode)
  326. {
  327. model.setValue(img_bigImage.attribute("ref"), model.getValue(fcopyNode));
  328. setImageRefInstance(img_bigImage.attribute("ref"));
  329. img_bigImage.refresh();
  330. grp_imageView.visible = true;
  331. grp_biz.disabled = true;
  332. }
  333. ]]>
  334. </script>
  335. </xhtml:head>
  336. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  337. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  338. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:206px; height:14px; ">SET 내역 및 사진정보 등록</caption>
  339. </group>
  340. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195; height:744px; ">
  341. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:55px; vertical-align:top; ">
  342. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:53px; background-color:#fffbf2; border-color:#ffd799; "/>
  343. <caption id="caption2" class="search_name" style="left:15px; top:31px; width:91px; height:17px; ">물품코드 :</caption>
  344. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  345. <caption>조회</caption>
  346. <script type="javascript" ev:event="DOMActivate">
  347. <![CDATA[
  348. if(fcheckInitialize())
  349. {
  350. btn_init.dispatch("DOMActivate");
  351. }
  352. ]]>
  353. </script>
  354. </button>
  355. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:47px; border-color:#ffe4bb; border-left-style:solid; "/>
  356. <button id="btn_searchgoodcd" class="icon_search" style="left:199px; top:30px; width:16px; height:16px; ">
  357. <caption/>
  358. <script type="javascript" ev:event="DOMActivate">
  359. <![CDATA[
  360. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm","SPRSD00210","instcd,goodflag","opt_instcd,T");
  361. model.refresh();
  362. ]]>
  363. </script>
  364. </button>
  365. <input id="ipt_goodcd" ref="/root/send/goodcd" class="input_fix" style="left:100px; top:30px; width:95px; height:19px; ">
  366. <script type="javascript" ev:event="xforms-value-changed">
  367. <![CDATA[
  368. if(fcheckInitialize())
  369. {
  370. // fInitialize();
  371. if(ipt_goodcd.value != "")
  372. {
  373. model.removenode("/root/copynode");
  374. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  375. model.makeNode("/root/copynode");
  376. rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm,reqflag,lrgcd,mdlcd,prodcmpycd,goodspec,goodmodel,oldcd",
  377. "goodcd" + "," + model.getValue(opt_instcd.attribute("ref")) + "," + "T" + "," + ipt_goodcd.value + ",,,,,,,,,,", "",
  378. "goodcd,goodnm,goodspec,goodmodel,prodcmpynm",
  379. ipt_goodcd,"SPRSD00210","instcd,goodflag","opt_instcd,T");
  380. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  381. setCSVToNode("/root/copynode", CSV, "goodcd");
  382. fSettingGoodList("/root/copynode", "goodcd");
  383. }else{
  384. ipt_goodnm.value = "";
  385. opt_goodspec.value = "";
  386. opt_goodmodel.value = "";
  387. opt_prodcmpynm.value = "";
  388. }
  389. model.refresh();
  390. // fsearch();
  391. }
  392. ]]>
  393. </script>
  394. </input>
  395. <input id="ipt_goodnm" ref="/root/send/goodnm" class="input_search" appearance="input" style="left:220px; top:30px; width:245px; height:19px; ">
  396. <script type="javascript" ev:event="xforms-value-changed">
  397. <![CDATA[
  398. if(fcheckInitialize())
  399. {
  400. // fInitialize();
  401. if(ipt_goodnm.value != "")
  402. {
  403. model.removenode("/root/copynode");
  404. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  405. model.makeNode("/root/copynode");
  406. rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm,reqflag,lrgcd,mdlcd,prodcmpycd,goodspec,goodmodel,oldcd",
  407. "goodnm" + "," + model.getValue(opt_instcd.attribute("ref")) + "," + "T" + ",," + ipt_goodnm.value + ",,,,,,,,,",
  408. "", "goodcd,goodnm,goodspec,goodmodel,prodcmpynm",
  409. ipt_goodcd,"SPRSD00210","instcd,goodflag","opt_instcd,T");
  410. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  411. setCSVToNode("/root/copynode", CSV, "goodcd");
  412. fSettingGoodList("/root/copynode", "goodcd");
  413. }else{
  414. ipt_goodcd.value = "";
  415. opt_goodspec.value = "";
  416. opt_goodmodel.value = "";
  417. opt_prodcmpynm.value = "";
  418. }
  419. model.refresh();
  420. // fsearch();
  421. }
  422. ]]>
  423. </script>
  424. </input>
  425. <input id="opt_goodspec" ref="/root/send/goodspec" class="output_fix" style="left:468px; top:30px; width:182px; height:19px; "/>
  426. <input id="opt_goodmodel" ref="/root/send/goodmodel" class="output_fix" style="left:653px; top:30px; width:139px; height:19px; "/>
  427. <input id="opt_prodcmpynm" ref="/root/send/prodcmpynm" class="output_fix" style="left:795px; top:30px; width:185px; height:19px; "/>
  428. <caption id="caption9" class="search_name" style="left:15px; top:5px; width:91px; height:17px; ">기관코드 :</caption>
  429. <select1 id="cmb_csrdeptcd" ref="/root/send/csrdeptcd" visibility="hidden" appearance="minimal" style="left:1020px; top:10px; width:70px; height:19px; ">
  430. <choices>
  431. <itemset>
  432. <label/>
  433. <value/>
  434. </itemset>
  435. </choices>
  436. </select1>
  437. <output id="opt_instcd" ref="/root/send/instcd" visibility="hidden" style="left:285px; top:5px; width:100px; height:19px; "/>
  438. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:5px; width:175px; height:19px; text-align:center; "/>
  439. <caption id="cap_proddrugsetflag" class="search_name" style="left:468px; top:5px; width:91px; height:17px; ">Set 구분 :</caption>
  440. </group>
  441. <caption id="caption1" class="tit_2" style="left:5px; top:71px; width:157px; height:14px; ">물품 LIST</caption>
  442. <line id="line1" class="line_1" style="x1:474px; y1:166px; x2:1195px; y2:166px; "/>
  443. <button id="btn_delete" class="btn2_letter3" style="left:1142px; top:146px; width:53px; height:19px; ">
  444. <caption>행삭제</caption>
  445. <script type="javascript" ev:event="DOMActivate">
  446. <![CDATA[
  447. misfGridIUD(grd_goodsetlist, "D");
  448. ]]>
  449. </script>
  450. </button>
  451. <button id="btn_insert" class="btn2_letter3" style="left:1087px; top:146px; width:53px; height:19px; ">
  452. <caption>행추가</caption>
  453. <script type="javascript" ev:event="DOMActivate">
  454. <![CDATA[
  455. finsert();
  456. ]]>
  457. </script>
  458. </button>
  459. <caption id="caption4" class="tit_2" style="left:479px; top:151px; width:100px; height:13px; ">Set 제원내역</caption>
  460. <line id="line2" class="line_1" style="x1:0px; y1:86px; x2:470px; y2:86px; "/>
  461. <button id="button11" class="btn2_letter10" style="left:605px; top:705px; width:130px; height:19px; text-align:center; ">
  462. <caption>사 진 변 경</caption>
  463. </button>
  464. <caption id="cap_viewLeft" class="cell_1" style="left:560px; top:447px; width:240px; height:286px; text-align:center; vertical-align:middle; "/>
  465. <img id="img_viewLeft" ref="/root/main/imglist/imgdata" style="left:575px; top:457px; width:210px; height:240px; vertical-align:middle; background-stretch:stretch; ">
  466. <script type="javascript" ev:event="onclick">
  467. <![CDATA[
  468. fBigImageSet(img_viewleftH.attribute("ref"));
  469. ]]>
  470. </script>
  471. </img>
  472. <img id="img_hidden" visibility="hidden" style="left:575px; top:457px; width:210px; height:240px; vertical-align:middle; "/>
  473. <img id="img_viewleftH" ref="/root/main/imageLoad/image1" visibility="hidden" style="left:575px; top:457px; width:210px; height:240px; vertical-align:middle; "/>
  474. <line id="line3" class="line_1" style="x1:560px; y1:442px; x2:800px; y2:442px; "/>
  475. <caption id="cap_viewRight" class="cell_1" style="left:870px; top:447px; width:240px; height:286px; vertical-align:middle; "/>
  476. <img id="img_viewRight" ref="/root/main/imglist/imgdata2" style="left:885px; top:457px; width:210px; height:240px; vertical-align:middle; background-stretch:stretch; ">
  477. <script type="javascript" ev:event="onclick">
  478. <![CDATA[
  479. fBigImageSet(img_viewrightH.attribute("ref"));
  480. ]]>
  481. </script>
  482. </img>
  483. <img id="img_viewrightH" ref="/root/main/imageLoad/image2" visibility="hidden" style="left:885px; top:457px; width:210px; height:240px; vertical-align:middle; "/>
  484. <line id="line4" class="line_1" style="x1:870px; y1:442px; x2:1110px; y2:442px; "/>
  485. <button id="btn_imageLeft" class="btn2_letter10" style="left:592px; top:707px; width:130px; height:19px; text-align:center; ">
  486. <caption>사 진 변 경</caption>
  487. <script type="javascript" ev:event="DOMActivate">
  488. <![CDATA[
  489. if(fChangeImage(img_viewLeft, img_viewleftH, "", "N"))
  490. {
  491. grd_goodmstlist.addStatus(grd_goodmstlist.row, "update");
  492. model.refresh();
  493. }
  494. ]]>
  495. </script>
  496. </button>
  497. <button id="btn_imageRight" class="btn2_letter10" style="left:903px; top:707px; width:130px; height:19px; text-align:center; ">
  498. <caption>사 진 변 경</caption>
  499. <script type="javascript" ev:event="DOMActivate">
  500. <![CDATA[
  501. if(fChangeImage(img_viewRight, img_viewrightH, "", "N"))
  502. {
  503. grd_goodmstlist.addStatus(grd_goodmstlist.row, "update");
  504. model.refresh();
  505. }
  506. ]]>
  507. </script>
  508. </button>
  509. <textarea id="txt_cmt" ref="/root/main/cmt" style="left:473px; top:92px; width:720px; height:47px; "/>
  510. <script type="javascript" ev:event="xforms-value-changed">
  511. <![CDATA[
  512. if(grd_goodmstlist.valueMatrix(grd_goodmstlist.row,grd_goodmstlist.colRef("cmt")) != txt_cmt.label)
  513. {
  514. grd_goodmstlist.addStatus(grd_goodmstlist.row, "update");
  515. grd_goodmstlist.valueMatrix(grd_goodmstlist.row,grd_goodmstlist.colRef("cmt")) = txt_cmt.label;
  516. }
  517. ]]>
  518. </script>
  519. <line id="line6" class="line_1" style="x1:472px; y1:86px; x2:1193px; y2:86px; "/>
  520. <select1 id="rdo_proddrugsetflag" ref="/root/send/proddrugsetflag" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:558px; top:15px; width:202px; height:20px; border-style:none; ">
  521. <choices>
  522. <item>
  523. <label>Set물품</label>
  524. <value>2</value>
  525. </item>
  526. <item>
  527. <label>일반물품</label>
  528. <value>T</value>
  529. </item>
  530. </choices>
  531. <script type="javascript" ev:event="xforms-value-changed">
  532. <![CDATA[
  533. if(rdo_proddrugsetflag.value == 'T')
  534. {
  535. fGridColVisibility(false);
  536. }else
  537. {
  538. fGridColVisibility(true);
  539. }
  540. btn_search.dispatch("DOMActivate");
  541. ]]>
  542. </script>
  543. </select1>
  544. <line id="line10" class="line_3" style="x1:471px; y1:140px; x2:1192px; y2:140px; "/>
  545. <caption id="caption3" class="tit_2" style="left:479px; top:71px; width:100px; height:14px; ">물품 용도</caption>
  546. <datagrid id="grd_goodmstlist" nodeset="/root/main/goodmstlist" caption="기관코드^제제약, SET구분^Set^Set 명^규격^비고" colsep="^" colwidth="100, 100, 91, 148, 148, 100, 100" dataheight="35" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" style="left:0px; top:91px; width:470px; height:648px; ">
  547. <col ref="instcd" visibility="hidden"/>
  548. <col ref="proddrugsetflag" visibility="hidden"/>
  549. <col ref="goodcd"/>
  550. <col ref="goodnm"/>
  551. <col ref="goodspec"/>
  552. <col ref="cmt" visibility="hidden"/>
  553. <col ref="pictcheck" visibility="hidden"/>
  554. <script type="javascript" ev:event="onclick">
  555. <![CDATA[
  556. fonclicksearch();
  557. ]]>
  558. </script>
  559. </datagrid>
  560. <button id="button1" class="btn2_letter2" style="left:733px; top:707px; width:42px; height:19px; text-align:center; ">
  561. <caption>확대</caption>
  562. <script type="javascript" ev:event="DOMActivate">
  563. <![CDATA[
  564. fBigImageSet(img_viewleftH.attribute("ref"));
  565. ]]>
  566. </script>
  567. </button>
  568. <button id="button3" class="btn2_letter2" style="left:1043px; top:707px; width:42px; height:19px; text-align:center; ">
  569. <caption>확대</caption>
  570. <script type="javascript" ev:event="DOMActivate">
  571. <![CDATA[
  572. fBigImageSet(img_viewrightH.attribute("ref"));
  573. ]]>
  574. </script>
  575. </button>
  576. <datagrid id="grd_goodsetlist" nodeset="/root/main/goodsetlist" caption="기관코드^제제약, SET구분^물품코드^순번^구성물품코드^구성품명^규격^구성수량^단위^비고" colsep="^" colwidth="100, 100, 100, 35, 80, 170, 120, 55, 63, 221" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:473px; top:171px; width:722px; height:244px; ">
  577. <col ref="instcd" visibility="hidden" _key="true"/>
  578. <col ref="proddrugsetflag" visibility="hidden" _key="true"/>
  579. <col ref="goodcd" visibility="hidden" _key="true"/>
  580. <col ref="proddrugseqno" type="input" visibility="hidden"/>
  581. <col ref="comdrugtoolcd" type="inputbutton" _key="true"/>
  582. <col ref="consitemnm" type="input"/>
  583. <col ref="goodspec"/>
  584. <col ref="consqty" type="input" format="#,###" style="text-align:right; "/>
  585. <col ref="compsgoodunit" type="combo">
  586. <choices>
  587. <itemset>
  588. <label/>
  589. <value/>
  590. </itemset>
  591. </choices>
  592. </col>
  593. <col ref="cmt" type="input"/>
  594. <script type="javascript" ev:event="onbuttonclick">
  595. <![CDATA[
  596. if(grd_goodsetlist.col == grd_goodsetlist.colRef("comdrugtoolcd") )
  597. {
  598. model.removenode("/root/copynode");
  599. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  600. model.makeNode("/root/copynode");
  601. rszfOpenPopUpListByWndName(grd_goodsetlist,"","comdrugtoolcd,consitemnm","SPRSD00190","instcd,goodflag","opt_instcd,T");
  602. var cur_row = grd_goodsetlist.row;
  603. var status = grd_goodsetlist.valueMatrix(cur_row, grd_goodsetlist.colRef("m"));
  604. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  605. setCSVToNode("/root/copynode", CSV, "goodsetlist");
  606. fSettingGoodList("/root/copynode", "goodsetlist");
  607. }
  608. ]]>
  609. </script>
  610. <script type="javascript" ev:event="xforms-value-changed">
  611. <![CDATA[
  612. if(grd_goodsetlist.col == grd_goodsetlist.colRef("comdrugtoolcd") )
  613. {
  614. model.removenode("/root/copynode");
  615. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  616. model.makeNode("/root/copynode");
  617. rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm,reqflag,lrgcd,mdlcd,prodcmpycd,goodspec,goodmodel,oldcd",
  618. "goodcd" + "," + model.getValue(opt_instcd.attribute("ref")) + "," + "T" + "," + grd_goodsetlist.valueMatrix(grd_goodsetlist.row, grd_goodsetlist.colRef("comdrugtoolcd")) + ",,,,,,,,,,", "",
  619. "comdrugtoolcd,consitemnm",
  620. grd_goodsetlist, "SPRSD00190", "instcd,goodflag", "opt_instcd,T");
  621. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  622. setCSVToNode("/root/copynode", CSV, "goodsetlist");
  623. fSettingGoodList("/root/copynode", "goodsetlist");
  624. }
  625. ]]>
  626. </script>
  627. </datagrid>
  628. </group>
  629. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  630. <line id="line11" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
  631. <line id="line5" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  632. <button id="btn_screenmove" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
  633. <caption>화면이동</caption>
  634. </button>
  635. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  636. <caption>출력</caption>
  637. </button>
  638. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  639. <caption>저장</caption>
  640. <script type="javascript" ev:event="DOMActivate">
  641. <![CDATA[
  642. fsaveCheck();
  643. ]]>
  644. </script>
  645. </button>
  646. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  647. <caption>초기화</caption>
  648. <script type="javascript" ev:event="DOMActivate">
  649. <![CDATA[
  650. if(fcheckInitialize())
  651. {
  652. fInitialize();
  653. fsearch();
  654. }
  655. ]]>
  656. </script>
  657. </button>
  658. </group>
  659. <group id="grp_imageView" visibility="hidden" style="left:360px; top:195px; width:545px; height:485px; ">
  660. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:545px; height:483px; background-color:#fffbf2; border-color:#ffd799; "/>
  661. <img id="img_bigImage" ref="/root/main/bigimagetemp" style="left:8px; top:7px; width:530px; height:471px; background-stretch:stretch; ">
  662. <script type="javascript" ev:event="onclick">
  663. <![CDATA[
  664. grp_imageView.visible = false;
  665. grp_biz.disabled = false;
  666. ]]>
  667. </script>
  668. </img>
  669. <button id="button2" class="btn2_letter2" style="left:495px; top:8px; width:42px; height:19px; ">
  670. <caption>닫기</caption>
  671. <script type="javascript" ev:event="DOMActivate">
  672. <![CDATA[
  673. grp_imageView.visible = false;
  674. grp_biz.disabled = false;
  675. ]]>
  676. </script>
  677. </button>
  678. </group>
  679. </xhtml:body>
  680. </xhtml:html>