SMRSS00103_부서별CSR미확정물품관리.xrw 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  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. <csrdeptlist/>
  11. <csrreqdeptnm>
  12. <csrreqdeptnm/>
  13. </csrreqdeptnm>
  14. <csrbipumlist>
  15. <rgstflag/>
  16. <deptcd/>
  17. <deptnm/>
  18. <goodcd/>
  19. <goodnm/>
  20. <goodspec/>
  21. <goodmodel/>
  22. <deliveunit/>
  23. <safestocqty/>
  24. <chngsafestocqty/>
  25. <goodmngtflag/>
  26. <cmt/>
  27. <certyn/>
  28. <lastupdtrid/>
  29. <lastupdtrnm/>
  30. <lastupdtdt/>
  31. <fstrgstdt/>
  32. <reqflag/>
  33. <instcd/>
  34. <goodflag/>
  35. <purcunit/>
  36. <minexch/>
  37. <ddavguseqty/>
  38. <lrgcd/>
  39. <lrgnm/>
  40. <mdlcd/>
  41. <mdlnm/>
  42. <smlcd/>
  43. <smlnm/>
  44. </csrbipumlist>
  45. </main>
  46. <send>
  47. <goodcd/>
  48. <deptcd/>
  49. <instcd/>
  50. <goodflag>T</goodflag>
  51. <csrreqdeptcd/>
  52. <goodnm/>
  53. <certyn>N</certyn>
  54. <srchfromdd/>
  55. <srchtodd/>
  56. <chnginsp/>
  57. </send>
  58. <init>
  59. <mlist/>
  60. </init>
  61. <hidden/>
  62. <temp/>
  63. <copynode/>
  64. <cond>
  65. <checkallitem/>
  66. </cond>
  67. </root>
  68. </instance>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  72. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  73. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  74. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  75. <script type="javascript" ev:event="xforms-ready">
  76. <![CDATA[
  77. fInitialize();
  78. ]]>
  79. </script>
  80. <submission id="TRRSS00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/senddata" resultref="/root/main/csrbipumlist"/>
  81. <submission id="TXRSD00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
  82. <submission id="TRRSS01211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp/csrreqdeptlist"/>
  83. <submission id="TRRSS01212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/csrdeptlist"/>
  84. </model>
  85. <script type="javascript">
  86. <![CDATA[
  87. function fInitialize()
  88. {
  89. /*
  90. var oprnerId = opener.window.javascript.getScreenID();
  91. if(oprnerId =="SMRSS00101"){
  92. var getDeptcd = opener.javascript.getParameter("deptcd");
  93. var getDeptnm = opener.javascript.getParameter("deptnm");
  94. if((getDeptcd !="")||(getDeptnm !="")){
  95. model.setValue("/root/send/deptcd",getDeptcd);
  96. model.setValue("/root/send/deptnm",getDeptnm);
  97. }
  98. }*/
  99. //기관코드, 물품구분 공통 코드를 가져온다.
  100. misfComboComCdListMulti("Z0007", "cmb_instcd");
  101. /*
  102. var dutplcecd = getUserInfo("dutplcecd");
  103. if((dutplcecd == "3080000000")||( dutplcecd=="3081300000")) {
  104. btn_cert.disabled = false;
  105. }else{
  106. btn_cert.disabled = true;
  107. }*/
  108. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  109. model.makeValue("/root/send/reqdata/instcd", cmb_instcd.value);
  110. model.makeValue("/root/send/reqdata/useyn", "Y");
  111. submit("TRRSS01211");
  112. addComboItem("cmb_csrreqdeptcd", "전체", "", "above");
  113. model.removeNodeset("/root/send/reqdata");
  114. model.removeNodeset(grd_csrbipumlist.nodeset);
  115. var fromdd = ((getCurrentDate()).toDate()).getAddDate(-3, "M");
  116. model.setValue("/root/send/srchfromdd", fromdd.getDateFormat());
  117. model.setValue("/root/send/srchtodd",getCurrentDate());
  118. /*
  119. if(getUserInfo("dutplcecd") != "3080000000") {
  120. model.setValue(ipt_reqdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
  121. model.setValue(ipt_reqdeptnm.attribute("ref"), getUserInfo("dutplcenm"));
  122. } else {
  123. model.setValue(rdo_certyn.attribute("ref"), "N");
  124. rdo_certyn.refresh();
  125. }
  126. */
  127. //grd_csrbipumlist.fixedcellcheckbox(0,grd_csrbipumlist.colRef("certyn"),false) = true;
  128. fSearch();
  129. model.refresh();
  130. }
  131. function fSearch() {
  132. //grd_csrbipumlist.fixedcellischeck(0, grd_csrbipumlist.colRef("certyn")) = false;
  133. model.makeValue("/root/send/senddata/instcd" , getUserInfo("dutplceinstcd"));
  134. model.makeValue("/root/send/senddata/deptcd" , model.getValue(ipt_reqdeptcd.attribute("ref")));
  135. //model.makeValue("/root/send/senddata/goodcd" , model.getValue(ipt_goodcd.attribute("ref")));
  136. model.makeValue("/root/send/senddata/srchfromdd" , model.getValue("/root/send/srchfromdd"));
  137. model.makeValue("/root/send/senddata/srchtodd" , model.getValue("/root/send/srchtodd"));
  138. model.makeValue("/root/send/senddata/certyn" , model.getValue(rdo_certyn.attribute("ref")));
  139. model.makeValue("/root/send/senddata/chnginsp" , model.getValue("/root/send/chnginsp"));
  140. model.makeValue("/root/send/senddata/csrreqdeptcd", model.getValue("/root/send/csrreqdeptcd"));
  141. submit("TRRSS00103");
  142. for(var i =1; i < grd_csrbipumlist.rows ; i++){
  143. var certyn = grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("certyn"));
  144. if(certyn =="Y"){
  145. grd_csrbipumlist.isReadOnly(i,grd_csrbipumlist.colRef("certyn")) = true;
  146. }else{
  147. grd_csrbipumlist.isReadOnly(i,grd_csrbipumlist.colRef("certyn")) = false;
  148. }
  149. }
  150. model.refresh();
  151. }
  152. ]]>
  153. </script>
  154. </xhtml:head>
  155. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  156. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  157. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:178px; height:14px; ">미확정조회</caption>
  158. </group>
  159. <group id="grp_biz" scroll="auto" style="left:0px; top:43px; width:1195px; height:725px; ">
  160. <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:60px; vertical-align:top; ">
  161. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  162. <caption id="caption2" class="search_name" style="left:15px; top:9; width:89px; height:17px; ">기관코드 :</caption>
  163. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:105px; top:9px; width:100px; height:19px; text-align:center; ">
  164. <choices>
  165. <itemset>
  166. <label/>
  167. <value/>
  168. </itemset>
  169. </choices>
  170. </select1>
  171. <caption id="caption3" class="search_name" visibility="hidden" style="left:685px; top:10px; width:88px; height:17px; ">부 서 명 :</caption>
  172. <button id="btn_reqdept" class="icon_search" visibility="hidden" style="left:883px; top:10px; width:16px; height:16px; ">
  173. <caption/>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. modal("SPRSS01203");
  177. model.setValue(ipt_reqdeptcd.attribute("ref"), model.property("deptcd"));
  178. model.setValue(ipt_reqdeptnm.attribute("ref"), model.property("deptnm"));
  179. ipt_reqdeptcd.refresh();
  180. ipt_reqdeptnm.refresh();
  181. fSearch();
  182. //
  183. // if(cmb_csrreqdeptcd.value != "") {
  184. // if(isRequiredControls("cmb_csrreqdeptcd")) {
  185. // grd_csrreqdeptnm.valueMatrix(1, grd_csrreqdeptnm.colRef("csrreqdeptnm")) = cmb_csrreqdeptcd.label;
  186. // fSearch2();
  187. //
  188. // for(var i = 1; i <= grd_deptlist.rows; i++) {
  189. //
  190. // if( grd_deptlist.valueMatrix(i, grd_deptlist.colRef("deptcd")) == ipt_reqdeptcd.value ) {
  191. // grd_deptlist.row = i;
  192. // curRow = grd_deptlist.row;
  193. // fSearch();
  194. // break;
  195. // }
  196. // }
  197. // }
  198. // }
  199. ]]>
  200. </script>
  201. </button>
  202. <input id="ipt_reqdeptnm" ref="/root/send/deptnm" class="input_search" visibility="hidden" style="left:905px; top:10px; width:102px; height:19px; ">
  203. <script type="javascript" ev:event="xforms-value-changed">
  204. <![CDATA[
  205. misfValidationCheck("02", "", "deptcd,deptnm");
  206. model.refresh();
  207. ]]>
  208. </script>
  209. </input>
  210. <input id="ipt_reqdeptcd" ref="/root/oldsend/deptcd" class="input_default" visibility="hidden" maxlength="10" style="left:775px; top:9px; width:100px; height:19px; "/>
  211. <line id="line3" class="line_4" style="x1:1100px; y1:15px; x2:1100px; y2:41px; border-color:#ffe4bb; border-left-style:solid; "/>
  212. <button id="btn_search" class="btn1_letter2" style="left:1115px; top:17px; width:56px; height:22px; ">
  213. <caption>조회</caption>
  214. <script type="javascript" ev:event="DOMActivate">
  215. <![CDATA[
  216. fSearch();
  217. ]]>
  218. </script>
  219. </button>
  220. <caption id="caption1" class="search_name" style="left:360px; top:35px; width:89px; height:17px; ">확정구분 :</caption>
  221. <select1 id="rdo_certyn" ref="/root/send/certyn" appearance="full" cols="3" overflow="visible" style="left:450px; top:37px; width:110px; height:15px; border-style:none; ">
  222. <choices>
  223. <item>
  224. <label>확정</label>
  225. <value>Y</value>
  226. </item>
  227. <item>
  228. <label>미확정</label>
  229. <value>N</value>
  230. </item>
  231. </choices>
  232. <script type="javascript" ev:event="xforms-value-changed">
  233. <![CDATA[
  234. var certyn = model.getValue("/root/send/certyn");
  235. if(certyn =="Y"){
  236. btn_cert.disabled = true;
  237. chk_chkall.disabled = true;
  238. }else{
  239. btn_cert.disabled = false;
  240. chk_chkall.disabled = false;
  241. }
  242. model.refresh();
  243. ]]>
  244. </script>
  245. </select1>
  246. <caption id="caption5" class="search_name" style="left:15px; top:35px; width:91px; height:17px; ">조회일자 :</caption>
  247. <input id="ipt_reqfrdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:105px; top:35px; width:100px; height:19px; text-align:center; "/>
  248. <caption id="caption11" class="search_no_b" style="left:215px; top:35px; width:12px; height:17px; ">~</caption>
  249. <input id="input3" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:240px; top:35px; width:100px; height:19px; text-align:center; "/>
  250. <select1 id="rdo_chnginsp" ref="/root/send/chnginsp" appearance="full" cols="6" overflow="visible" style="left:690px; top:35px; width:300px; height:20px; border-style:none; ">
  251. <choices>
  252. <item>
  253. <label>전체</label>
  254. <value/>
  255. </item>
  256. <item>
  257. <label>등록</label>
  258. <value>1</value>
  259. </item>
  260. <item>
  261. <label>변경</label>
  262. <value>2</value>
  263. </item>
  264. <item>
  265. <label>분실</label>
  266. <value>5</value>
  267. </item>
  268. <item>
  269. <label>파손</label>
  270. <value>6</value>
  271. </item>
  272. <item>
  273. <label>실사</label>
  274. <value>3</value>
  275. </item>
  276. </choices>
  277. </select1>
  278. <caption id="caption8" class="search_name" style="left:595px; top:35px; width:89px; height:17px; ">상태구분 :</caption>
  279. <select1 id="cmb_deptcd" ref="/root/send/deptcd" class="combo_s_essential" appearance="minimal" style="left:539px; top:8px; width:100px; height:19px; ">
  280. <choices>
  281. <itemset nodeset="/root/hidden/csrdeptlist">
  282. <label ref="deptnm"/>
  283. <value ref="deptcd"/>
  284. </itemset>
  285. </choices>
  286. <script type="javascript" ev:event="xforms-value-changed">
  287. <![CDATA[
  288. fSearch();
  289. ]]>
  290. </script>
  291. </select1>
  292. <caption id="caption9" class="search_name" style="left:450px; top:10px; width:89px; height:17px; ">부 서 명 :</caption>
  293. <caption id="cap_csrreqdeptcd" class="search_name" style="left:240px; top:10px; width:89px; height:17px; ">부서구분 :</caption>
  294. <select1 id="cmb_csrreqdeptcd" ref="/root/send/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:334px; top:8px; width:100px; height:19px; ">
  295. <choices>
  296. <itemset nodeset="/root/temp/csrreqdeptlist">
  297. <label ref="csrreqdeptnm"/>
  298. <value ref="csrreqdeptcd"/>
  299. </itemset>
  300. </choices>
  301. <script type="javascript" ev:event="xforms-value-changed">
  302. <![CDATA[
  303. model.makeValue("/root/send/reqdata/csrreqdeptcd",cmb_csrreqdeptcd.value);
  304. model.makeValue("/root/send/reqdata/useyn","Y");
  305. submit("TRRSS01212");
  306. addComboItem("cmb_deptcd", "전체", "", "above");
  307. cmb_deptcd.refresh();
  308. fSearch();
  309. ]]>
  310. </script>
  311. </select1>
  312. </group>
  313. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1193px; y2:95px; "/>
  314. <caption id="caption4" class="tit_2" style="left:0px; top:79px; width:171px; height:13px; ">CSR 미확정 물품정보</caption>
  315. <datagrid id="grd_csrbipumlist" nodeset="/root/main/csrbipumlist" class="datagrid2" caption="확정^상태^요청일시^요청자^부서코드^부서명^물품코드^물품명^규격^모델^단위^멸균구분^재고&#xA;수량^처음&#xA;재고^비품수량^청구수량^반납수량^파손수량^분실수량^분실상세^실사량^비고^확정일시^확정자^수정자ID^수정자^수정일자^최초&#xA;등록일자^청구구분^instcd^goodflag^purcunit^minexch^ddavguseqty^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^reqflag" colsep="^" colwidth="34, 47, 116, 84, 0, 100, 100, 167, 62, 70, 40, 88, 50, 0, 34, 36, 34, 31, 36, 86, 60, 100, 118, 100, 70, 70, 80, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" frozencols="13" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:100px; width:1194px; height:620px; ">
  316. <col checkvalue="Y,N" ref="certyn" type="checkbox"/>
  317. <col disabled="true" ref="rgstflag" type="combo" style="text-align:center; ">
  318. <choices>
  319. <item>
  320. <label>등록</label>
  321. <value>1</value>
  322. </item>
  323. <item>
  324. <label>변경</label>
  325. <value>2</value>
  326. </item>
  327. <item>
  328. <label>실사</label>
  329. <value>3</value>
  330. </item>
  331. <item>
  332. <label>확정</label>
  333. <value>4</value>
  334. </item>
  335. <item>
  336. <label>분실</label>
  337. <value>5</value>
  338. </item>
  339. <item>
  340. <label>파손</label>
  341. <value>6</value>
  342. </item>
  343. </choices>
  344. </col>
  345. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  346. <col ref="lastupdtrnm" style="text-align:center; "/>
  347. <col class="input_essential" ref="deptcd" visibility="hidden" _key="true"/>
  348. <col ref="deptnm" style="text-align:center; "/>
  349. <col class="input_essential" disabled="true" ref="goodcd" _key="true"/>
  350. <col ref="goodnm"/>
  351. <col ref="goodspec"/>
  352. <col ref="goodmodel"/>
  353. <col ref="deliveunit"/>
  354. <col disabled="true" ref="dinfdivs" type="combo" style="text-align:center; ">
  355. <choices>
  356. <item>
  357. <label>고압증기멸균</label>
  358. <value>1</value>
  359. </item>
  360. <item>
  361. <label>가스멸균</label>
  362. <value>2</value>
  363. </item>
  364. <item>
  365. <label>건열멸균</label>
  366. <value>3</value>
  367. </item>
  368. <item>
  369. <label>플라즈마멸균</label>
  370. <value>4</value>
  371. </item>
  372. </choices>
  373. </col>
  374. <col ref="realqty" visibility="hidden" style="text-align:right; "/>
  375. <col ref="minexch"/>
  376. <!-- 처음재고수량(처음 안전재고를 입력시에 처음 가질 재고량) -->
  377. <col disabled="true" ref="safestocqty" format="(-)#,###.##" style="text-align:right; "/>
  378. <col disabled="true" ref="chngsafestocqty" format="(-)#,###.##" style="text-align:right; "/>
  379. <col disabled="true" ref="reqlmtqty" format="(-)#,###.##" style="text-align:right; "/>
  380. <col disabled="true" ref="hdrncqty" style="text-align:right; "/>
  381. <col disabled="true" ref="missqty" style="text-align:right; "/>
  382. <col class="input_essential" disabled="true" ref="missflag" type="combo" _key="true">
  383. <choices>
  384. <item>
  385. <label>비품수량 변경없이청구</label>
  386. <value>1</value>
  387. </item>
  388. <item>
  389. <label>비품수량감소</label>
  390. <value>2</value>
  391. </item>
  392. </choices>
  393. </col>
  394. <col ref="orginspqty" style="text-align:right; "/>
  395. <col ref="cmt"/>
  396. <col ref="certdt" format="yyyy-mm-dd hh:nn:ss"/>
  397. <col ref="certnm" style="text-align:center; "/>
  398. <col ref="lastupdtrid" visibility="hidden"/>
  399. <col ref="lastupdtrnm" visibility="hidden"/>
  400. <col ref="lastupdtdt" visibility="hidden" format="yyyy-mm-dd"/>
  401. <col ref="fstrgstdt" visibility="hidden" format="yyyy-mm-dd"/>
  402. <col ref="reqflag" visibility="hidden"/>
  403. <col ref="instcd" visibility="hidden"/>
  404. <col ref="goodflag" visibility="hidden"/>
  405. <col ref="purcunit" visibility="hidden"/>
  406. <col ref="minexch" visibility="hidden"/>
  407. <col ref="ddavguseqty" visibility="hidden"/>
  408. <col ref="lrgcd" visibility="hidden"/>
  409. <col ref="lrgnm" visibility="hidden"/>
  410. <col ref="mdlcd" visibility="hidden"/>
  411. <col ref="mdlnm" visibility="hidden"/>
  412. <col ref="smlcd" visibility="hidden"/>
  413. <col ref="smlnm" visibility="hidden"/>
  414. <col ref="reqflag" visibility="hidden"/>
  415. <script type="javascript" ev:event="onkeydown">
  416. <![CDATA[
  417. if(event.keyCode == 9) {
  418. grd_csrbipumlist.editCell();
  419. }
  420. ]]>
  421. </script>
  422. <script type="javascript" ev:event="xforms-value-changed">
  423. <![CDATA[
  424. ]]>
  425. </script>
  426. <script type="javascript" ev:event="onaftersort">
  427. <![CDATA[
  428. grd_csrbipumlist.gridToInstance();
  429. ]]>
  430. </script>
  431. <script type="javascript" ev:event="onclick">
  432. <![CDATA[
  433. if(grd_csrbipumlist.isCell(event.target)) {
  434. for(var i = 1; i < grd_csrbipumlist.rows; i++) {
  435. var certyn = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("certyn"));
  436. if(certyn =="Y"){
  437. grd_csrbipumlist.rowStatus(i) = "2";
  438. }else{
  439. grd_csrbipumlist.rowStatus(i) = "0";
  440. }
  441. }
  442. }
  443. grd_csrbipumlist.refresh();
  444. ]]>
  445. </script>
  446. </datagrid>
  447. <button id="btn_cert" class="btn5_letter2" style="left:1150px; top:74px; width:42px; height:19px; ">
  448. <caption>확정</caption>
  449. <script type="javascript" ev:event="DOMActivate">
  450. <![CDATA[
  451. for(var i = grd_csrbipumlist.fixedRows; i < grd_csrbipumlist.rows; i++) {
  452. if(grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("certyn")) == "Y") {
  453. grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("goodmngtflag")) = "-";
  454. if(grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("orginspqty")) != "") {
  455. grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("realqty")) = grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("orginspqty"));
  456. }
  457. }
  458. }
  459. var csrbipumlist = getGridUpdateData(grd_csrbipumlist);
  460. model.makeValue("/root/send/savedata/csrbipumlist", csrbipumlist);
  461. submit("TXRSD00112");
  462. fSearch();
  463. ]]>
  464. </script>
  465. </button>
  466. <input id="input1" ref="/root/send/goodnm" class="input_search" visibility="hidden" appearance="input" style="left:705px; top:70px; width:147px; height:19px; ">
  467. <script type="javascript" ev:event="xforms-value-changed">
  468. <![CDATA[
  469. if(ipt_goodnm.value != "")
  470. {
  471. rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd,goodnm",
  472. "goodnm" + "," + model.getValue(cmb_instcd.attribute("ref")) + "," + ipt_goodflag.value + ",," + ipt_goodnm.value,
  473. "", "goodcd,goodnm",
  474. ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  475. }else{
  476. ipt_goodcd.value = "";
  477. }
  478. model.refresh();
  479. ]]>
  480. </script>
  481. </input>
  482. <caption id="caption7" class="search_name" visibility="hidden" style="left:507px; top:71px; width:91px; height:17px; ">물품코드 :</caption>
  483. <button id="button1" class="icon_search" visibility="hidden" style="left:686px; top:71px; width:16px; height:16px; ">
  484. <caption/>
  485. <script type="javascript" ev:event="DOMActivate">
  486. <![CDATA[
  487. modal("SMRSS00130");
  488. model.setValue(ipt_goodcd.attribute("ref"), model.property("goodcd"));
  489. model.setValue(ipt_goodnm.attribute("ref"), model.property("goodnm"));
  490. ipt_goodcd.refresh();
  491. ipt_goodnm.refresh();
  492. //btn_search.dispatch("DOMActivate");
  493. ]]>
  494. </script>
  495. </button>
  496. <input id="input2" ref="/root/send/goodcd" class="input_fix" visibility="hidden" maxlength="10" style="left:597px; top:70px; width:85px; height:19px; ">
  497. <script type="javascript" ev:event="xforms-value-changed">
  498. <![CDATA[
  499. if(ipt_goodcd.value != "")
  500. {
  501. rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd",
  502. "goodcd" + "," + model.getValue(cmb_instcd.attribute("ref")) + "," + ipt_goodflag.value + "," + ipt_goodcd.value, "",
  503. "goodcd,goodnm",
  504. ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  505. }else{
  506. ipt_goodnm.value = "";
  507. }
  508. model.refresh();
  509. ]]>
  510. </script>
  511. </input>
  512. <select id="chk_chkall" ref="/root/cond/checkallitem" overflow="visible" appearance="full" style="left:155px; top:76px; width:100px; height:20px; border-style:none; ">
  513. <choices>
  514. <item>
  515. <label>ALL CHECK</label>
  516. <value>Y</value>
  517. </item>
  518. </choices>
  519. <script type="javascript" ev:event="xforms-value-changed">
  520. <![CDATA[
  521. var allCheck = model.getValue("/root/cond/checkallitem");
  522. if(allCheck =="Y"){
  523. for(var i=1; i< grd_csrbipumlist.rows;i++){
  524. var CertYn = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("certyn"));
  525. var GoodCD = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("goodcd"));
  526. if((CertYn=="N")||(CertYn=="")){
  527. model.setValue("/root/main/csrbipumlist["+i+"]/certyn","Y");
  528. if(GoodCD!=""){
  529. grd_csrbipumlist.rowStatus(i)="2";
  530. }
  531. }
  532. }
  533. }else{
  534. for(var i=1; i< grd_csrbipumlist.rows;i++){
  535. var readOnly = grd_csrbipumlist.isReadOnly(i,grd_csrbipumlist.colRef("certyn"));
  536. var GoodCD = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("goodcd"));
  537. if(readOnly =="0"){
  538. model.setValue("/root/main/csrbipumlist["+i+"]/certyn","N");
  539. if(GoodCD !=""){
  540. grd_csrbipumlist.rowStatus(i)="0";
  541. }
  542. }
  543. }
  544. }
  545. grd_csrbipumlist.refresh();
  546. ]]>
  547. </script>
  548. </select>
  549. </group>
  550. </xhtml:body>
  551. </xhtml:html>