SMMNG01000_부서별CSR미확정물품관리.xrw 24 KB

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