SMRSC00400_제제약 제원등록.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>제제약 제원등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <goodmst>
  12. <goodmstlist/>
  13. </goodmst>
  14. <goodset>
  15. <goodsetlist/>
  16. <goodsettstlist/>
  17. </goodset>
  18. </list>
  19. <goodset>
  20. <goodsettstlist>
  21. <goodcd/>
  22. <prodmthd/>
  23. <efcy/>
  24. <cnfmexam/>
  25. <fixqtymthd/>
  26. <nonbacexam/>
  27. <rorgnmatr/>
  28. <cmt/>
  29. </goodsettstlist>
  30. </goodset>
  31. </main>
  32. <target>
  33. <defaultvalue>
  34. <instcd/>
  35. <setplceordflag/>
  36. <goodcd/>
  37. <goodnm/>
  38. <goodflag/>
  39. </defaultvalue>
  40. </target>
  41. <send>
  42. <goodmstset>
  43. <instcd/>
  44. <proddrugsetflag/>
  45. <goodcd/>
  46. <goodnm/>
  47. <goodspec/>
  48. <goodmodel/>
  49. <prodcmpynm/>
  50. </goodmstset>
  51. <goodset>
  52. <instcd/>
  53. <proddrugsetflag/>
  54. <goodcd/>
  55. </goodset>
  56. <save>
  57. <goodsetlist/>
  58. <goodsettstlist/>
  59. </save>
  60. </send>
  61. <init/>
  62. <hidden/>
  63. <temp/>
  64. </root>
  65. </instance>
  66. <script type="javascript" ev:event="xforms-ready">
  67. <![CDATA[
  68. //화면 Control을 초기화한다
  69. fCheckAuth();
  70. fInitialize();
  71. ]]>
  72. </script>
  73. <submission id="TRRSC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodmstset" resultref="/root/main/list/goodmst"/>
  74. <submission id="TRRSC00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodset" resultref="/root/main/list/goodset"/>
  75. <submission id="TXRSC00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  76. </model>
  77. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  78. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  79. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  80. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  81. <script type="javascript">
  82. <![CDATA[
  83. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  84. function fInitialize() {
  85. misfGridInit(grd_setmstlist);
  86. misfGridInit(grd_setlist);
  87. misfGridInit(grd_settst);
  88. misfMsterDetailSet(grd_setmstlist,null, "TRRSC00401" ,"N");
  89. misfMsterDetailSet(grd_setlist,grd_setmstlist, "TRRSC00210" ,"Y");
  90. misfMsterDetailSet(grd_settst,grd_setmstlist, "TRRSC00210" ,"Y");
  91. misfGridComboComCdList("R0034",grd_setlist,"compsgoodunit");
  92. misfComboComCdListMulti("Z0007,R0068", "cmb_instcd,cmb_proddrugsetflag"); //기관코드,set 제제약 구분
  93. model.refresh();
  94. btn_search.dispatch("DOMActivate");
  95. model.refresh();
  96. }
  97. function fCheckAuth() {
  98. btn_search.disabled = !checkAuth("R") ;
  99. btn_save.disabled = !checkAuth("X") ;
  100. }
  101. function fDefaultSetting(prow)
  102. {
  103. model.setValue(grd_setlist.nodeset + "["+ prow + "]/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  104. model.setValue(grd_setlist.nodeset + "["+ prow+ "]/proddrugsetflag" , model.getValue(cmb_proddrugsetflag.attribute("ref")));
  105. model.setValue(grd_setlist.nodeset + "["+ prow + "]/goodcd" , grd_setmstlist.valueMatrix(grd_setmstlist.row, grd_setmstlist.colRef("goodcd")));
  106. }
  107. function fSettingGoodList(pnode, nodename){
  108. var codynode = instance1.selectNodes(pnode + "/*");
  109. var addRow = grd_setlist.rows - grd_setlist.fixedRows;
  110. if(model.getValue(grd_setlist.nodeset + "/goodsetlist[" + addRow + "]/comdrugtoolcd").length > 0)addRow = addRow + 1;
  111. for (var j = 1; j <= codynode.length ; j++) {
  112. if(addRow > grd_setlist.rows - grd_setlist.fixedRows)
  113. {
  114. misfGridIUD(grd_setlist,"A");
  115. addRow = grd_setlist.rows - grd_setlist.fixedRows;
  116. fDefaultSetting(addRow );
  117. }
  118. model.setValue(grd_setlist.nodeset + "[" + addRow + "]/comdrugtoolcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
  119. model.setValue(grd_setlist.nodeset + "[" + addRow + "]/consitemnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
  120. model.setValue(grd_setlist.nodeset + "[" + addRow + "]/compsgoodunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/purcunit"));
  121. model.setValue(grd_setlist.nodeset + "[" + addRow + "]/consqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/userqty"));
  122. addRow = addRow + 1;
  123. }
  124. //model.removenode(pnode);
  125. model.refresh();
  126. }
  127. function fCheckRetrieveData(pmsg)
  128. {
  129. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  130. {
  131. if(pmsg == true)
  132. {
  133. messageBox("기관코드는" ,"I003");
  134. model.setFocus("cmb_instcd");
  135. }
  136. return false;
  137. }
  138. if(swt_select.selected == 0)
  139. {
  140. if(model.getValue(cmb_proddrugsetflag.attribute("ref")).length== 0 )
  141. {
  142. if(pmsg == true)
  143. {
  144. messageBox("SET구분은" ,"I003");
  145. model.setFocus("cmb_instcd");
  146. }
  147. return false;
  148. }
  149. }
  150. else
  151. {
  152. if(grd_setmstlist.valueMatrix(grd_setmstlist.row, grd_setmstlist.colRef("goodcd")).length == 0 )
  153. {
  154. if(pmsg == true)
  155. {
  156. messageBox("SET구분은" ,"I003");
  157. model.setFocus("cmb_instcd");
  158. }
  159. return false;
  160. }
  161. }
  162. /*
  163. if(model.getValue(opt_goodcd.attribute("ref")).length== 0 )
  164. {
  165. if(pmsg == true)
  166. {
  167. messageBox("물품구분" ,"I003");
  168. model.setFocus("cmb_instcd");
  169. }
  170. return false;
  171. }
  172. */
  173. return true;
  174. }
  175. function fCheckSaveData()
  176. {
  177. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  178. {
  179. messageBox("기관코드는" ,"I003");
  180. model.setFocus("cmb_instcd");
  181. return false;
  182. }
  183. if(model.getValue(cmb_proddrugsetflag.attribute("ref")).length== 0 )
  184. {
  185. messageBox("SET구분은" ,"I003");
  186. model.setFocus("cmb_instcd");
  187. return false;
  188. }
  189. /*
  190. if(model.getValue(opt_goodcd.attribute("ref")).length== 0 )
  191. {
  192. messageBox("물품구분" ,"I003");
  193. model.setFocus("cmb_instcd");
  194. return false;
  195. }
  196. */
  197. for(var currow = 1 ; currow < grd_setlist.rows ; currow++)
  198. {
  199. if(grd_setlist.valueMatrix(currow , grd_setlist.colRef("comdrugtoolcd")).length == 0)
  200. {
  201. messageBox(currow + " 번째 물품코드를" ,"C001");
  202. grd_setlist.row = currow;
  203. grd_setlist.col= grd_setlist.colRef("comdrugtoolcd");
  204. grd_setlist.editCell();
  205. return false;
  206. }
  207. if(grd_setlist.valueMatrix(currow , grd_setlist.colRef("consqty")) == 0)
  208. {
  209. messageBox(currow + " 번째 수량을" ,"C001");
  210. grd_setlist.row = currow;
  211. grd_setlist.col= grd_setlist.colRef("consqty");
  212. grd_setlist.editCell();
  213. return false;
  214. }
  215. if(grd_setlist.valueMatrix(currow , grd_setlist.colRef("compsgoodunit")) == 0)
  216. {
  217. messageBox(currow + " 번째 단위를" ,"C001");
  218. grd_setlist.row = currow;
  219. grd_setlist.col= grd_setlist.colRef("compsgoodunit");
  220. return false;
  221. }
  222. }
  223. return true;
  224. }
  225. ]]>
  226. </script>
  227. </xhtml:head>
  228. <xhtml:body>
  229. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  230. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:124px; height:14px; ">제제약 제원 등록</caption>
  231. </group>
  232. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744; ">
  233. <caption id="caption9" class="tit_2" style="left:5px; top:77px; width:136px; height:13px; ">제제약 List</caption>
  234. <group id="group2" style="left:0px; top:10px; width:1195px; height:61; vertical-align:top; ">
  235. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:61; background-color:#fffbf2; border-color:#ffd799; "/>
  236. <caption id="caption4" class="search_name" style="left:15; top:9px; width:104px; height:17px; ">기관코드 :</caption>
  237. <select1 id="cmb_instcd" ref="/root/send/goodmstset/instcd" class="combo_essential" appearance="minimal" style="left:100px; top:8px; width:162px; height:19px; ">
  238. <choices>
  239. <itemset nodeset="/root/init/instcd">
  240. <label ref="cdnm"/>
  241. <value ref="cdid"/>
  242. </itemset>
  243. </choices>
  244. </select1>
  245. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:17px; width:56px; height:22px; ">
  246. <caption>조회</caption>
  247. <script type="javascript" ev:event="DOMActivate">
  248. <![CDATA[
  249. if(fCheckRetrieveData(false) == false)return;
  250. model.resetInstanceNode("/root/main/goodset/goodsettstlist");
  251. misfMsterDetailRetrieve();
  252. if(grd_settst.rows - grd_settst.fixedRows== 0)btn_tstins.dispatch("DOMActivate");
  253. model.copyNode("/root/main/goodset/goodsettstlist","/root/main/list/goodset/goodsettstlist");
  254. grd_settst.row = grd_settst.fixedRows;
  255. swt_select.refresh();
  256. ]]>
  257. </script>
  258. </button>
  259. <line id="line14" class="line_4" style="x1:1109px; y1:5px; x2:1109px; y2:52px; "/>
  260. <caption id="caption8" class="search_name" style="left:288px; top:9px; width:86px; height:17px; ">SET구분 :</caption>
  261. <select1 id="cmb_proddrugsetflag" ref="/root/send/goodmstset/proddrugsetflag" class="combo_essential" appearance="minimal" style="left:373px; top:8px; width:162px; height:19px; ">
  262. <choices>
  263. <itemset nodeset="/root/init/proddrugsetflag">
  264. <label/>
  265. <value/>
  266. </itemset>
  267. </choices>
  268. <script type="javascript" ev:event="xforms-value-changed">
  269. <![CDATA[
  270. btn_search.dispatch("DOMActivate");
  271. ]]>
  272. </script>
  273. </select1>
  274. <output id="opt_goodspec" ref="/root/send/goodmstset/goodspec" class="output_fix" appearance="output" style="left:569px; top:35px; width:194px; height:19px; "/>
  275. <button id="btn_searchgoodcd" class="icon_search" style="left:267px; top:36px; width:16px; height:16px; ">
  276. <caption/>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. <!-- [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH) -->
  280. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm","SPRSD00210","instcd,goodflag","cmb_instcd,PH");
  281. model.refresh();
  282. ]]>
  283. </script>
  284. </button>
  285. <input id="ipt_goodcd" ref="/root/send/goodmstset/goodcd" class="input_fix" style="left:100px; top:35px; width:162px; height:19px; ">
  286. <script type="javascript" ev:event="xforms-value-changed">
  287. <![CDATA[
  288. if(ipt_goodcd.value != "")
  289. {
  290. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + ",P," + model.getValue(ipt_goodcd.attribute("ref")) + ",,,," ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm",ipt_goodcd,"SPRSD00190","instcd,goodflag","cmb_instcd,cmb_goodflag" ,"Y");
  291. }else{
  292. ipt_goodcd.value = "";
  293. ipt_goodnm.value = "";
  294. opt_goodspec.value = "";
  295. opt_goodmodel.value = "";
  296. opt_prodcmpynm.value = "";
  297. }
  298. model.refresh();
  299. ]]>
  300. </script>
  301. </input>
  302. <caption id="caption1" class="search_name" style="left:15px; top:36px; width:86px; height:17px; ">물품코드 :</caption>
  303. <output id="opt_goodmodel" ref="/root/send/goodmstset/goodmodel" class="output_fix" appearance="output" style="left:764px; top:35px; width:158px; height:19px; "/>
  304. <input id="ipt_goodnm" ref="/root/send/goodmstset/goodnm" class="input_search" style="left:287px; top:35px; width:281px; height:19px; ">
  305. <script type="javascript" ev:event="xforms-value-changed">
  306. <![CDATA[
  307. if(ipt_goodnm.value != "")
  308. {
  309. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodnm," + model.getValue(cmb_instcd.attribute("ref")) + ",P,," + model.getValue(ipt_goodnm.attribute("ref")) + ",," ,"","goodcd,goodnm,goodspec,goodmodel,prodcmpynm",ipt_goodcd,"SPRSD00190","instcd,goodflag","cmb_instcd,cmb_goodflag" ,"Y");
  310. }else{
  311. ipt_goodcd.value = "";
  312. ipt_goodnm.value = "";
  313. opt_goodspec.value = "";
  314. opt_goodmodel.value = "";
  315. opt_prodcmpynm.value = "";
  316. }
  317. model.refresh();
  318. ]]>
  319. </script>
  320. </input>
  321. <output id="opt_prodcmpynm" ref="/root/send/goodmstset/prodcmpynm" class="output_fix" appearance="output" style="left:923px; top:35px; width:149px; height:19px; "/>
  322. </group>
  323. <button id="button15" class="btn_sw" group="tab" style="left:478px; top:75px; width:108px; height:22px; ">
  324. <caption>품질관리실험내역</caption>
  325. <toggle case="case2" ev:event="DOMActivate"/>
  326. </button>
  327. <button id="button14" class="btn_sw" group="tab" selected="true" style="left:350px; top:75px; width:128px; height:22px; ">
  328. <caption>제원 및 제제법</caption>
  329. <toggle case="case1" ev:event="DOMActivate"/>
  330. </button>
  331. <datagrid id="grd_setmstlist" nodeset="/root/main/list/goodmst/goodmstlist" caption="제제약" colsep="^" colwidth="322" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:95px; width:345px; height:643px; ">
  332. <col ref="goodnm"/>
  333. <col ref="goodcd" visibility="hidden"/>
  334. <col ref="instcd" visibility="hidden"/>
  335. <col ref="proddrugsetflag" visibility="hidden"/>
  336. <script type="javascript" ev:event="onrowchanged">
  337. <![CDATA[
  338. if(grd_setmstlist.rowStatus(grd_setmstlist.row) == "1" )return;
  339. model.resetInstanceNode("/root/main/goodset/goodsettstlist");
  340. misfMsterDetailRetrieve();
  341. if(grd_settst.rows - grd_settst.fixedRows== 0)btn_tstins.dispatch("DOMActivate");
  342. model.copyNode("/root/main/goodset/goodsettstlist","/root/main/list/goodset/goodsettstlist");
  343. grd_settst.row = grd_settst.fixedRows;
  344. swt_select.refresh();
  345. ]]>
  346. </script>
  347. <script type="javascript" ev:event="onbuttonclick">
  348. <![CDATA[
  349. if (grd_setmstlist.col == grd_setmstlist.colRef("goodcd") && grd_setmstlist.rowStatus(grd_setmstlist.row) == "1" ) {//구성물품코드를 눌렀을 경우
  350. var recv_list = "goodcd,goodnm";
  351. rszfOpenPopUpListByWndName(grd_setmstlist,"",recv_list,"SPRSD00210","instcd","cmb_instcd", "Y");
  352. }
  353. ]]>
  354. </script>
  355. </datagrid>
  356. <line id="line5" class="line_1" style="x1:0px; y1:90px; x2:345px; y2:90px; "/>
  357. <switch id="swt_select" style="left:350px; top:97px; width:845px; height:641px; border-color:#c7a3cf; border-style:solid; ">
  358. <case id="case1" selected="true" style="left:0px; top:0px; width:845; height:640; ">
  359. <datagrid id="grd_setlist" nodeset="/root/main/list/goodset/goodsetlist" caption="기관코드^제제약, SET구분^물품코드^순번^구성물품코드^구성품명^구성수량^단위^비고" colsep="^" colwidth="0, 0, 0, 39, 101, 291, 65, 85, 239" dataheight="60" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:29px; width:843px; height:601px; ">
  360. <col ref="instcd" visibility="hidden"/>
  361. <col ref="proddrugsetflag" visibility="hidden"/>
  362. <col ref="goodcd" visibility="hidden"/>
  363. <col ref="proddrugseqno"/>
  364. <col ref="comdrugtoolcd" type="inputbutton"/>
  365. <col ref="consitemnm"/>
  366. <col ref="consqty" type="input" format="#,###" style="text-align:right; "/>
  367. <col ref="compsgoodunit" type="combo">
  368. <choices>
  369. <itemset>
  370. <label/>
  371. <value/>
  372. </itemset>
  373. </choices>
  374. </col>
  375. <col ref="cmt" type="input"/>
  376. <script type="javascript" ev:event="onbuttonclick">
  377. <![CDATA[
  378. if (grd_setlist.col == grd_setlist.colRef("comdrugtoolcd")) {//구성물품코드를 눌렀을 경우
  379. model.removenode("/root/copynode");
  380. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  381. model.makeNode("/root/copynode");
  382. <!-- [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH) -->
  383. rszfOpenPopUpListByWndName(grd_setlist,"","comdrugtoolcd,consitemnm","SPRSD00190","instcd,goodflag","cmb_instcd,PH");
  384. var cur_row = grd_setlist.row;
  385. var status = grd_setlist.valueMatrix(cur_row, grd_setlist.colRef("m"));
  386. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  387. setCSVToNode("/root/copynode", CSV, "goodsetlist");
  388. fSettingGoodList("/root/copynode", "goodsetlist");
  389. }
  390. ]]>
  391. </script>
  392. <script type="javascript" ev:event="xforms-value-changed">
  393. <![CDATA[
  394. if(grd_setlist.col == grd_setlist.colRef("comdrugtoolcd") && grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.colRef("consitemnm")).length> 0 ) {
  395. model.removenode("/root/copynode");
  396. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  397. model.makeNode("/root/copynode");
  398. <!-- [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH) -->
  399. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + "," +model.getValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1)+ "]/goodflag") + "," + model.getValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1)+ "]/comdrugtoolcd") + ",,,," ,"","minexch",grd_setlist,"SPRSD00190","instcd,goodflag","cmb_instcd,PH","Y");
  400. model.refresh();
  401. if( grd_setlist.valueMatrix(cur_row, grd_setlist.colRef("consitemnm")).length> 0)
  402. {
  403. if(model.getValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1)+ "]/minexch") > 0) model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1)+ "]/consqty",model.getValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1)+ "]/minexch") );
  404. else model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1)+ "]/consqty","1");
  405. model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1) + "]/comdrugtoolcd" , model.getValue("/root/init/main/goodlist/goodcd"));
  406. model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1) + "]/consitemnm" , model.getValue("/root/init/main/goodlist/goodnm"));
  407. model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1) + "]/compsgoodunit" , model.getValue("/root/init/main/goodlist/purcunit"));
  408. }
  409. model.refresh();
  410. var cur_row = grd_setlist.row;
  411. var status = grd_setlist.valueMatrix(cur_row, grd_setlist.colRef("m"));
  412. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  413. if(CSV.length == 0 && grd_setlist.valueMatrix(cur_row, grd_setlist.colRef("consitemnm")).length == 0)
  414. {
  415. model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1) + "]/comdrugtoolcd" , "");
  416. model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1) + "]/consitemnm" , "");
  417. model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1) + "]/compsgoodunit" , "");
  418. model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1) + "]/consqty" , "");
  419. grd_setlist.col = grd_setlist.colRef("comdrugtoolcd");
  420. grd_setlist.editCell();
  421. }
  422. if(CSV.length > 0)
  423. {
  424. model.setValue(grd_setlist.nodeset + "[" + (grd_setlist.row - grd_setlist.fixedRows + 1)+ "]/comdrugtoolcd","");
  425. setCSVToNode("/root/copynode", CSV, "goodsetlist");
  426. fSettingGoodList("/root/copynode", "goodsetlist");
  427. }
  428. }
  429. ]]>
  430. </script>
  431. <script type="javascript" ev:event="onkeydown">
  432. <![CDATA[
  433. if(event.keyCode == 9)
  434. {
  435. if(event.shiftKey)
  436. {
  437. if(grd_setlist.colAttribute(grd_setlist.col + 1, "type").indexOf ("input") > -1)
  438. {
  439. for(curcol = grd_setlist.col -1 ; curcol > -1 ; curcol--)
  440. {
  441. if(grd_setlist.colAttribute(curcol, "type").indexOf ("input") > -1)
  442. {
  443. grd_setlist.col = curcol;
  444. grd_setlist.editCell();
  445. return;
  446. }
  447. }
  448. }
  449. }
  450. else
  451. {
  452. if(grd_setlist.colAttribute(grd_setlist.col, "type").indexOf ("input") == -1)
  453. {
  454. if(grd_setlist.col - 1 == grd_setlist.colRef("comdrugtoolcd") && grd_setlist.valueMatrix(grd_setlist.row, grd_setlist.col - 1).length == 0)
  455. {
  456. grd_setlist.col = grd_setlist.colRef("comdrugtoolcd");
  457. grd_setlist.editCell();
  458. return;
  459. }
  460. for(curcol = grd_setlist.col ; curcol <grd_setlist.cols ; curcol++)
  461. {
  462. if(grd_setlist.colAttribute(curcol, "type").indexOf ("input") > -1)
  463. {
  464. grd_setlist.col = curcol;
  465. grd_setlist.editCell();
  466. return;
  467. }
  468. }
  469. }
  470. }
  471. }
  472. ]]>
  473. </script>
  474. </datagrid>
  475. <line id="line16" class="line_1" style="x1:0px; y1:24px; x2:843px; y2:24px; "/>
  476. <button id="button2" class="btn2_letter3" style="left:790px; top:3px; width:53px; height:19px; ">
  477. <caption>행삭제</caption>
  478. <script type="javascript" ev:event="DOMActivate">
  479. <![CDATA[
  480. misfGridIUD(grd_setlist, "D");
  481. ]]>
  482. </script>
  483. </button>
  484. <button id="button6" class="btn2_letter3" style="left:735px; top:3px; width:53px; height:19px; ">
  485. <caption>행추가</caption>
  486. <script type="javascript" ev:event="DOMActivate">
  487. <![CDATA[
  488. if(fCheckRetrieveData(true) == false)return;
  489. misfGridIUD(grd_setlist, "A");
  490. grd_setlist.row = grd_setlist.rows -grd_setlist.fixedRows ;
  491. fDefaultSetting(grd_setlist.row);
  492. grd_setlist.col = grd_setlist.colRef("comdrugtoolcd");
  493. grd_setlist.editCell();
  494. ]]>
  495. </script>
  496. </button>
  497. </case>
  498. <case id="case2">
  499. <line id="line7" class="line_1" style="x1:0px; y1:24px; x2:843px; y2:24px; "/>
  500. <line id="line4" class="line_2" style="x1:0; y1:523px; x2:843; y2:523px; "/>
  501. <line id="line3" class="line_2" style="x1:0; y1:584px; x2:843; y2:584px; "/>
  502. <line id="line2" class="line_3" style="x1:0px; y1:627px; x2:843px; y2:627px; "/>
  503. <line id="line1" class="line_2" style="x1:0; y1:455px; x2:843; y2:455px; "/>
  504. <line id="line9" class="line_2" style="x1:0; y1:138px; x2:843; y2:138px; "/>
  505. <line id="line8" class="line_2" style="x1:0; y1:305px; x2:843; y2:305px; "/>
  506. <textarea id="textarea1" ref="/root/main/goodset/goodsettstlist/rorgnmatr" style="left:105px; top:527px; width:737px; height:56px; "/>
  507. <textarea id="textarea2" ref="/root/main/goodset/goodsettstlist/nonbacexam" style="left:105px; top:459px; width:737px; height:63px; "/>
  508. <textarea id="textarea3" ref="/root/main/goodset/goodsettstlist/cmt" style="left:105px; top:588px; width:737px; height:38px; "/>
  509. <caption id="caption3" class="cell_1" style="left:0px; top:525px; width:103px; height:60px; vertical-align:middle; ">이물시험</caption>
  510. <caption id="caption5" class="cell_1" style="left:0px; top:457px; width:103px; height:67px; vertical-align:middle; ">무균시험</caption>
  511. <caption id="caption7" class="cell_1" style="left:0px; top:586px; width:103px; height:42px; vertical-align:middle; ">비고</caption>
  512. <caption id="caption12" class="cell_1" style="left:0; top:164px; width:103px; height:142px; vertical-align:middle; ">확인시험</caption>
  513. <caption id="caption13" class="cell_1" style="left:0; top:29px; width:103px; height:110px; vertical-align:middle; ">제제법</caption>
  514. <caption id="caption14" class="cell_1" style="left:0; top:307px; width:103px; height:149px; vertical-align:middle; ">정량법</caption>
  515. <textarea id="textarea4" ref="/root/main/goodset/goodsettstlist/cnfmexam" style="left:105px; top:166px; width:737px; height:138px; "/>
  516. <textarea id="textarea5" ref="/root/main/goodset/goodsettstlist/prodmthd" style="left:105px; top:31px; width:737px; height:106px; "/>
  517. <textarea id="textarea6" ref="/root/main/goodset/goodsettstlist/fixqtymthd" style="left:105px; top:309px; width:737px; height:145px; "/>
  518. <textarea id="textarea10" ref="/root/main/goodset/goodsettstlist/efcy" style="left:105px; top:142px; width:737px; height:19px; "/>
  519. <caption id="caption16" class="cell_1" style="left:0; top:140px; width:103px; height:23px; vertical-align:middle; ">효능</caption>
  520. <button id="btn_tstdel" class="btn2_letter3" style="left:790px; top:3px; width:53px; height:19px; ">
  521. <caption>행삭제</caption>
  522. <script type="javascript" ev:event="DOMActivate">
  523. <![CDATA[
  524. misfGridIUD(grd_settst, "D");
  525. ]]>
  526. </script>
  527. </button>
  528. <button id="btn_tstins" class="btn2_letter3" style="left:735px; top:3px; width:53px; height:19px; ">
  529. <caption>행추가</caption>
  530. <script type="javascript" ev:event="DOMActivate">
  531. <![CDATA[
  532. misfGridInit(grd_settst);
  533. misfGridIUD(grd_settst, "A");
  534. model.setValue(grd_settst.nodeset + "[" + (grd_settst.row - grd_settst.fixedRows + 1)+ "]/goodcd", grd_setmstlist.valueMatrix(grd_setmstlist.row, grd_setmstlist.colRef("goodcd")));
  535. model.copyNode("/root/main/goodset/goodsettstlistt","/root/main/list/goodset/goodsettstlistt");
  536. model.refresh();
  537. ]]>
  538. </script>
  539. </button>
  540. <line id="line6" class="line_2" style="x1:0; y1:162px; x2:843; y2:162px; "/>
  541. <datagrid id="grd_settst" nodeset="/root/main/list/goodset/goodsettstlist" visibility="hidden" caption="물품코드^제제법^효능^확인시험^정량법^무균시험^이물시험^비고" colsep="^" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:145px; top:255px; width:640px; height:150px; ">
  542. <col ref="goodcd"/>
  543. <col ref="prodmthd"/>
  544. <col ref="efcy"/>
  545. <col ref="cnfmexam"/>
  546. <col ref="fixqtymthd"/>
  547. <col ref="nonbacexam"/>
  548. <col ref="rorgnmatr"/>
  549. <col ref="cmt"/>
  550. </datagrid>
  551. </case>
  552. </switch>
  553. </group>
  554. <group id="group5" style="left:0; top:12; width:1195px; height:27px; ">
  555. <button id="btn_print" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  556. <caption>출력</caption>
  557. </button>
  558. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  559. <caption>저장</caption>
  560. <script type="javascript" ev:event="DOMActivate">
  561. <![CDATA[
  562. if(fCheckSaveData() == false)return;
  563. misfGridRowStatusChange(grd_settst,"/root/main/list/goodset" ,"/root/main/goodset");
  564. model.setValue(grd_settst.nodeset + "[" + (grd_settst.row - grd_settst.fixedRows + 1)+ "]/goodcd", grd_setmstlist.valueMatrix(grd_setmstlist.row, grd_setmstlist.colRef("goodcd")));
  565. model.refresh();
  566. misfSave("TXRSC00210");
  567. if (model.getValue(gvErrorMsgPath + "/type") != "error")
  568. {
  569. model.resetInstanceNode("/root/main/goodset/goodsettstlist");
  570. submit("TRRSC00210");
  571. if(grd_settst.rows - grd_settst.fixedRows== 0)btn_tstins.dispatch("DOMActivate");
  572. model.copyNode("/root/main/goodset/goodsettstlist","/root/main/list/goodset/goodsettstlist");
  573. grd_settst.row = grd_settst.fixedRows;
  574. swt_select.refresh();
  575. }
  576. ]]>
  577. </script>
  578. </button>
  579. <button id="button29" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  580. <caption>초기화</caption>
  581. </button>
  582. <line id="line15" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  583. </group>
  584. </xhtml:body>
  585. </xhtml:html>