SMRSC03900_약품상한가셋팅.xrw 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  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. <main>
  10. <list>
  11. <goodhistory>
  12. <goodhistorylist/>
  13. </goodhistory>
  14. <good>
  15. <goodlist/>
  16. </good>
  17. </list>
  18. <gooddet>
  19. <gooddetlist/>
  20. </gooddet>
  21. </main>
  22. <target>
  23. <defaultvalue/>
  24. </target>
  25. <init>
  26. <popmenu>
  27. <grd_costlist>
  28. <item>
  29. <name>품명일괄변경</name>
  30. <func>fSetGoodnm</func>
  31. </item>
  32. <item>
  33. <name>규격일괄변경</name>
  34. <func>fSetGoodSpec</func>
  35. </item>
  36. <item>
  37. <name>모델일괄변경</name>
  38. <func>fSetGoodModel</func>
  39. </item>
  40. <item>
  41. <name>제조회사일괄변경</name>
  42. <func>fSetGoodProdCmpy</func>
  43. </item>
  44. <item>
  45. <name>-</name>
  46. <func/>
  47. </item>
  48. <item>
  49. <name>포장단위일괄변경</name>
  50. <func>fSetPurcUnit</func>
  51. </item>
  52. <item>
  53. <name>환산수량일괄변경</name>
  54. <func>fSetExchQty</func>
  55. </item>
  56. <item>
  57. <name>수불단위일괄변경</name>
  58. <func>fSetDeliveUnit</func>
  59. </item>
  60. <item>
  61. <name>-</name>
  62. <func/>
  63. </item>
  64. <item>
  65. <name>단가일괄변경</name>
  66. <func>fSetGoodUnitCost</func>
  67. </item>
  68. <item>
  69. <name>-</name>
  70. <func/>
  71. </item>
  72. <item>
  73. <name>주거래처일괄변경</name>
  74. <func>fSetMainCustLastSuplplce</func>
  75. </item>
  76. <item>
  77. <name>보조거래처일괄변경</name>
  78. <func>fSetSuppCustCd</func>
  79. </item>
  80. </grd_costlist>
  81. </popmenu>
  82. <popinputcd/>
  83. <popinputnm/>
  84. <poptitle/>
  85. <popcond/>
  86. <popformat/>
  87. </init>
  88. <send>
  89. <goodlist>
  90. <instcd/>
  91. <lrgcd/>
  92. <lrgnm/>
  93. <mdlcd/>
  94. <mdlnm/>
  95. <smlcd/>
  96. <smlnm/>
  97. <edicd/>
  98. <goodcd/>
  99. <goodflag/>
  100. <goodnm/>
  101. <prodcmpycd/>
  102. <prodcmpynm/>
  103. <maincustlastsuplplce/>
  104. <maincustlastsuplplcenm/>
  105. <suppcustcd/>
  106. <suppcustnm/>
  107. <purcflag/>
  108. <stocmngtflag/>
  109. <reqmthd/>
  110. <allsizeyn/>
  111. <conflag/>
  112. <useyn/>
  113. <fr_fromdd/>
  114. <to_fromdd/>
  115. <reqflag/>
  116. <sch_goodcd/>
  117. <offset/>
  118. <pagesize>20</pagesize>
  119. <oldcd/>
  120. <plceordbase/>
  121. <selectonly>Y</selectonly>
  122. </goodlist>
  123. <goodhistory>
  124. <goodcd/>
  125. </goodhistory>
  126. <save>
  127. <goodlist/>
  128. <setautoins>
  129. <setyn>Y</setyn>
  130. <insfromdd/>
  131. </setautoins>
  132. </save>
  133. </send>
  134. </root>
  135. </instance>
  136. <script type="javascript" ev:event="xforms-ready">
  137. <![CDATA[
  138. //화면 Control을 초기화한다
  139. fInitialize();
  140. ]]>
  141. </script>
  142. <submission id="TRRSC03901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/list/goodlist"/>
  143. </model>
  144. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  145. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  146. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  147. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  148. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  149. <script type="javascript">
  150. <![CDATA[
  151. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  152. function fInitialize() {
  153. model.resetInstanceNode("/root/send");
  154. misfGridInit(grd_costlist);
  155. misfGridInit(grd_goodhistory);
  156. rszfGoodFlagListByPgmGubn(cmb_goodflag,"3","N");
  157. misfComboComCdListMulti("Z0007","cmb_instcd");
  158. //rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag,"Y",getUserInfo("dutplceinstcd"),"Y");
  159. //기관코드 읽어오는 부분 넣기
  160. var instcd = getUserInfo("dutplceinstcd");
  161. var instnm = getUserInfo("dutplceinstnm");
  162. if(instcd.length > 0)model.setValue(cmb_instcd.attribute("ref"), instcd);
  163. else
  164. {
  165. if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
  166. }
  167. //물품구분일 경우 첫번째 index 자동 설정
  168. if(cmb_goodflag.length> 0) {
  169. cmb_goodflag.selectedindex= 0;
  170. }
  171. grd_costlist.explorerbar = "sortshow";
  172. grd_goodhistory.explorerbar = "sortshow";
  173. grd_costlist.selectionmode = "list";
  174. model.refresh();
  175. }
  176. function fGridAutoRowchanged()
  177. {
  178. if(grd_costlist.rows > grd_costlist.fixedRows)
  179. {
  180. grd_costlist.row = grd_costlist.fixedRows;
  181. }
  182. }
  183. function fSetDataCopy(pnode,nodename)
  184. {
  185. misfGridInit(grd_goodhistory);
  186. if (swt_select.selectedIndex == 0)
  187. {
  188. misfGridInit(grd_costlist);
  189. fgrid = grd_costlist;
  190. }
  191. else return;
  192. var codynode = instance1.selectNodes(pnode + "/*");
  193. var tmpdata = "";
  194. for (var j = 1; j <= codynode.length ; j++) {
  195. misfGridIUD(fgrid,"A");
  196. addRow = fgrid.rows - fgrid.fixedRows;
  197. for(var curcol = 1; curcol < fgrid.cols ; curcol++)
  198. {
  199. tmpdata = model.getValue(pnode +"/" + nodename + "[" + j + "]/" + fgrid.colAttribute(curcol, "ref"));
  200. if(tmpdata.length> 0)model.setValue(fgrid.nodeset + "[" + addRow + "]/" + fgrid.colAttribute(curcol, "ref") , tmpdata);
  201. }
  202. addRow = addRow + 1;
  203. }
  204. fgrid.clearStatus();
  205. model.refresh();
  206. }
  207. function fSaveDataSetting(pSubmit_Id) {
  208. if (swt_select.selectedIndex == 0)fgrid = grd_costlist;
  209. else return;
  210. var insfromdd = model.getValue(ipt_insfromdd.attribute("ref"));
  211. model.removenode("/root/send/save");
  212. model.makeNode("/root/send/save/goodlist");
  213. model.makeNode("/root/send/save/gooddetlist");
  214. model.makeNode("/root/send/save/setautoins/setyn");
  215. model.makeNode("/root/send/save/setautoins/insfromdd")
  216. model.setValue("/root/send/save/setautoins/setyn","Y");
  217. model.setValue("/root/send/save/setautoins/insfromdd",insfromdd);
  218. model.refresh();
  219. if(swt_select.selectedIndex == 0)model.setValue("/root/send/save/goodlist" , fgrid.getUpdateData());
  220. model.setValue("/root/send/save/gooddetlist" , fgrid.getUpdateData());
  221. submit(pSubmit_Id);
  222. if (model.getValue(gvErrorMsgPath + "/type") != "error")
  223. {
  224. fgrid.clearStatus();
  225. submit("TRRSC00602");
  226. }
  227. }
  228. function fCheckRetrieveData()
  229. {
  230. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  231. {
  232. messageBox("기관코드를 " ,"C002");
  233. model.setFocus("cmb_instcd");
  234. return false;
  235. }
  236. if(model.getValue(cmb_goodflag.attribute("ref")).length== 0 )
  237. {
  238. messageBox("물품구분을 " ,"C002");
  239. model.setFocus("cmb_goodflag");
  240. return false;
  241. }
  242. model.setValue("/root/send/goodlist/offset","0");
  243. model.setValue("/root/send/goodlist/pagesize", 20);
  244. return true;
  245. }
  246. function fSubmitOnScroll() {
  247. if (swt_select.selectedIndex == 0)fgrid = grd_costlist;
  248. else return;
  249. if(fgrid.vscroll.attribute("max") == fgrid.vscroll.attribute("pos")) {
  250. model.setValue("/root/send/goodlist/offset", fgrid.rows-fgrid.fixedRows);
  251. model.setValue("/root/send/goodlist/pagesize", 20);
  252. submit("TRRSC00601");
  253. }
  254. }
  255. ]]>
  256. </script>
  257. </xhtml:head>
  258. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  259. <group id="group1" style="left:0; top:0; width:1195px; height:13px; ">
  260. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">약품 상한가 셋팅</caption>
  261. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  262. </group>
  263. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744; ">
  264. <group id="grp_title" style="left:0px; top:10px; width:1195px; height:110px; vertical-align:top; ">
  265. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:2px; width:1195px; height:108px; background-color:#fffbf2; border-color:#ffd799; "/>
  266. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  267. <select1 id="cmb_instcd" ref="/root/send/goodlist/instcd" class="combo_search" disabled="true" appearance="minimal" style="left:100px; top:9px; width:148px; height:19px; ">
  268. <choices>
  269. <itemset nodeset="/root/init/instcd">
  270. <label ref="cdnm"/>
  271. <value ref="cdid"/>
  272. </itemset>
  273. </choices>
  274. </select1>
  275. <caption id="caption23" class="search_name" style="left:640px; top:30px; width:86px; height:17px; ">주거래처 :</caption>
  276. <input id="input1" ref="/root/send/goodlist/to_fromdd" class="input_default" inputtype="date" style="left:833px; top:80px; width:85px; height:19px; "/>
  277. <caption id="caption27" class="search_name" style="left:640px; top:8px; width:86px; height:17px; ">물 품 명 :</caption>
  278. <caption id="caption29" class="search_name" style="left:640px; top:54px; width:86px; height:17px; ">제조회사 :</caption>
  279. <input id="ipt_goodnm" ref="/root/send/goodlist/goodnm" class="input_default" style="left:725px; top:8px; width:193px; height:19px; "/>
  280. <input id="ipt_prodcmpycd" ref="/root/send/goodlist/prodcmpycd" class="input_search" style="left:725px; top:54px; width:84px; height:19px; ">
  281. <script type="javascript" ev:event="xforms-value-changed">
  282. <![CDATA[
  283. if ( model.getValue(ipt_prodcmpycd.attribute("ref")).length == 0 ) model.setValue(ipt_prodcmpynm.attribute("ref"),"");
  284. else rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpynm"
  285. ,"prodcmpycd," + ipt_prodcmpycd.value ,"","prodcmpycd,prodcmpynm"
  286. ,ipt_prodcmpycd,"SPRSD00160","","");
  287. model.refresh();
  288. ]]>
  289. </script>
  290. </input>
  291. <input id="ipt_prodcmpynm" ref="/root/send/goodlist/prodcmpynm" class="output_fix" navindex="-1" editable="false" style="left:831px; top:54px; width:143px; height:19px; "/>
  292. <button id="btn_prodcmpycd" class="icon_search" style="left:812px; top:54px; width:16px; height:16px; ">
  293. <caption/>
  294. <script type="javascript" ev:event="DOMActivate">
  295. <![CDATA[
  296. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  297. model.refresh();
  298. ]]>
  299. </script>
  300. </button>
  301. <input id="ipt_maincustlastsuplplcenm" ref="/root/send/goodlist/maincustlastsuplplcenm" class="output_fix" navindex="-1" editable="false" style="left:831px; top:30px; width:143px; height:19px; "/>
  302. <button id="btn_maincustlastsuplplce" class="icon_search" style="left:812px; top:30px; width:16px; height:16px; ">
  303. <caption/>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","cmb_instcd");
  307. model.refresh();
  308. ]]>
  309. </script>
  310. </button>
  311. <input id="ipt_maincustlastsuplplce" ref="/root/send/goodlist/maincustlastsuplplce" class="input_search" style="left:725px; top:30px; width:84px; height:19px; ">
  312. <script type="javascript" ev:event="xforms-value-changed">
  313. <![CDATA[
  314. misfSearchCust(ipt_maincustlastsuplplcenm,cmb_instcd);
  315. ]]>
  316. </script>
  317. </input>
  318. <input id="ipt_edicd" ref="/root/send/goodlist/edicd" class="input_default" style="left:421px; top:33px; width:148px; height:19px; "/>
  319. <input id="ipt_goodcd" ref="/root/send/goodlist/sch_goodcd" class="input_default" imemode="disabled" style="left:421px; top:9px; width:148px; height:19px; "/>
  320. <caption id="caption33" class="search_name" style="left:336px; top:9px; width:86px; height:17px; ">물품코드 :</caption>
  321. <caption id="caption34" class="search_name" style="left:333px; top:33px; width:89px; height:17px; ">EDI 코드 :</caption>
  322. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:40px; width:56px; height:22px; ">
  323. <caption>조회</caption>
  324. <script type="javascript" ev:event="DOMActivate">
  325. <![CDATA[
  326. // size 원위치
  327. if (fCheckRetrieveData() == false) return;
  328. misfGridInit(grd_costlist);
  329. //misfGridInit(grd_goodhistory);
  330. //misfMsterDetailRetrieve();
  331. // if ( grd_costlist.rows - grd_costlist.fixedRows > 0 ) submit("TRRSC00602");
  332. ]]>
  333. </script>
  334. </button>
  335. <line id="line_title" class="line_4" style="x1:1100px; y1:12px; x2:1100px; y2:92px; border-color:#ffe4bb; border-left-style:solid; "/>
  336. <input id="input23" ref="/root/send/goodlist/fr_fromdd" class="input_default" inputtype="date" style="left:725px; top:80px; width:86px; height:19px; "/>
  337. <caption id="caption38" class="search_name" style="left:640px; top:80px; width:86px; height:17px; ">적용기간 :</caption>
  338. <caption id="caption1" style="left:832px; top:86px; width:5px; height:20px; font-weight:bold; ">~</caption>
  339. <caption id="caption2" style="left:816px; top:80px; width:15px; height:20px; font-weight:bold; ">~</caption>
  340. <select1 id="cmb_goodflag" ref="/root/send/goodlist/goodflag" class="combo_s_essential" appearance="minimal" editmode="search" style="left:100px; top:31px; width:148px; height:19px; ">
  341. <choices>
  342. <itemset nodeset="/root/init/goodflag">
  343. <label ref="cdnm"/>
  344. <value ref="cdid"/>
  345. </itemset>
  346. </choices>
  347. <script type="javascript" ev:event="xforms-value-changed">
  348. <![CDATA[
  349. misfGridInit(grd_costlist);
  350. misfGridInit(grd_goodhistory);
  351. model.refresh();
  352. ]]>
  353. </script>
  354. </select1>
  355. <caption id="caption90" class="search_name" style="left:15px; top:31px; width:86px; height:17px; ">물품구분:</caption>
  356. </group>
  357. <datagrid id="grd_goodhistory" nodeset="/root/main/list/goodhistory/goodhistorylist" visibility="visible" caption="적용일자*^사용유무^규격^모델^제조회사^제조국^주거래처^보조거래처^EDI 코드^입고단위^불출단위^제품단가^입고계정^비용계정^견적가^외화단가^화폐단위^제품단가^수불단가^의료수가^대분류^중분류^소분류^수정자^수정일시" colsep="^" colwidth="80, 0, 65, 60, 66, 66, 80, 80, 75, 71, 73, 40, 100, 70, 51, 55, 69, 41, 71, 70, 94, 100, 100, 100, 100" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:628px; width:1195px; height:106px; ">
  358. <col ref="fromdd" format="yyyy-mm-dd"/>
  359. <col ref="useyn"/>
  360. <col ref="goodspec"/>
  361. <col ref="goodmodel"/>
  362. <col ref="prodcmpynm"/>
  363. <col ref="prodplcenm"/>
  364. <col ref="maincustlastsuplplcenm"/>
  365. <col ref="suppcustnm"/>
  366. <col ref="edicd"/>
  367. <col ref="purcunitnm"/>
  368. <col ref="deliveunitnm"/>
  369. <col ref="goodunitcost" visibility="hidden"/>
  370. <col ref="winacntnm"/>
  371. <col ref="amtacntnm"/>
  372. <col ref="estmamt" visibility="hidden"/>
  373. <col ref="forgncurncyunitcost" visibility="hidden"/>
  374. <col ref="curncyunitnm"/>
  375. <col ref="goodunitcost" visibility="hidden"/>
  376. <col visibility="hidden"/>
  377. <col visibility="hidden"/>
  378. <col ref="lrgnm"/>
  379. <col ref="mdlnm"/>
  380. <col ref="smlnm"/>
  381. <col ref="lastupdtrnm"/>
  382. <col ref="lastupdtdt" format="yyyy-mm-dd"/>
  383. <script type="javascript" ev:event="onaftersort">
  384. <![CDATA[
  385. grd_goodhistory.gridToInstance();
  386. ]]>
  387. </script>
  388. </datagrid>
  389. <line id="line8" class="line_1" style="x1:0px; y1:623px; x2:1195px; y2:623px; "/>
  390. <caption id="caption8" class="tit_2" style="left:5px; top:609px; width:95px; height:13px; ">이력정보</caption>
  391. <switch id="swt_select" style="left:0px; top:121px; width:1195px; height:413px; ">
  392. <case id="cse_costlist">
  393. <line id="line3" class="line_1" style="x1:0px; y1:24px; x2:1193px; y2:24px; "/>
  394. <button id="btn_excel" class="btn2_letter3" navindex="12" style="left:1135px; top:3px; width:53px; height:19px; ">
  395. <caption>Excel</caption>
  396. <script type="javascript" ev:event="DOMActivate">
  397. <![CDATA[
  398. var fileName = window.fileDialog("save", ",", false, "물품종합조회", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  399. if (fileName != "") {
  400. grd_costlist.saveExcel(fileName, "물품종합조회");
  401. }
  402. ]]>
  403. </script>
  404. </button>
  405. <datagrid id="grd_costlist" nodeset="/root/main/list/good/goodlist" caption="적용일자^물품코드^품명^규격^EDI 코드^제조회사^포장단위^환산수량^수불단위^단가계약여부^단가^단가 계약기간^단가 계약기간^주거래처^계정과목^계정과목" colsep="^" colwidth="81, 72, 153, 112, 80, 78, 69, 64, 61, 92, 105, 75, 73, 106, 65, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:29px; width:1193px; height:372px; ">
  406. <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  407. <col ref="goodcd" style="text-align:center; "/>
  408. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  409. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  410. <col ref="edicd" style="text-align:center; "/>
  411. <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
  412. <col ref="purcunit" style="text-align:center; "/>
  413. <col ref="exchqty" format="#,###" style="text-align:right; "/>
  414. <col ref="deliveunit" style="text-align:center; "/>
  415. <col ref="costconyn" style="text-align:center; "/>
  416. <col ref="goodunitcost" visibility="visible" format="#,###" style="text-align:right; "/>
  417. <col ref="fromconterm" format="yyyy/mm/dd" style="text-align:center; "/>
  418. <col ref="toconterm" format="yyyy/mm/dd" style="text-align:center; "/>
  419. <col ref="maincustlastsuplplcenm" style="text-align:left; padding-left:10; "/>
  420. <col ref="winacnt" style="text-align:center; "/>
  421. <col ref="winacntnm" style="text-align:left; "/>
  422. <col ref="todd" visibility="hidden"/>
  423. <col ref="instcd" visibility="hidden"/>
  424. <col ref="goodflag" visibility="hidden"/>
  425. <col ref="goodhngnm" visibility="hidden"/>
  426. <col ref="goodengnm" visibility="hidden"/>
  427. <col ref="proddrugsetflag" visibility="hidden"/>
  428. <col ref="mainusedeptcd" visibility="hidden"/>
  429. <col ref="conflag" visibility="hidden"/>
  430. <col ref="fromconterm" visibility="hidden"/>
  431. <col ref="toconterm" visibility="hidden"/>
  432. <col ref="estmamt" visibility="hidden"/>
  433. <col ref="lastpurcdd" visibility="hidden"/>
  434. <script type="javascript" ev:event="onscrolldown">
  435. <![CDATA[
  436. fSubmitOnScroll();
  437. ]]>
  438. </script>
  439. <script type="javascript" ev:event="onrowchanged">
  440. <![CDATA[
  441. if ( grd_costlist.row != grd_costlist.fixedRows-1 && grd_costlist.rows - grd_costlist.fixedRows > 0 ) {
  442. model.setValue( "/root/send/goodhistory/goodcd", grd_costlist.valueMatrix( grd_costlist.row, grd_costlist.colRef("goodcd")) );
  443. submit("TRRSC00602");
  444. model.refresh();
  445. }
  446. grd_costlist.dispatch("onmouseup");
  447. ]]>
  448. </script>
  449. </datagrid>
  450. </case>
  451. </switch>
  452. </group>
  453. <group id="group2" style="left:0px; top:12; width:1195px; height:27px; ">
  454. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  455. <caption>초기화</caption>
  456. <script type="javascript" ev:event="onclick">
  457. <![CDATA[
  458. model.resetInstanceNode("/root/send");
  459. misfGridInit(grd_costlist);
  460. misfGridInit(grd_goodhistory);
  461. if(instcd.length > 0)model.setValue(cmb_instcd.attribute("ref"), instcd);
  462. else
  463. {
  464. if(cmb_instcd.length> 0) cmb_instcd.selectedindex= 0;
  465. }
  466. //물품구분일 경우 첫번째 index 자동 설정
  467. if(cmb_goodflag.length> 0) cmb_goodflag.selectedindex= 0;
  468. ]]>
  469. </script>
  470. </button>
  471. <line id="line7" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  472. </group>
  473. </xhtml:body>
  474. </xhtml:html>