SMRSS00101_부서별CSR물품관리.xrw 78 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869
  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>부서별CSR 비품관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <csrdeptlist/>
  11. <csrreqdeptnm>
  12. <csrreqdeptnm/>
  13. </csrreqdeptnm>
  14. <csrinfo>
  15. <csrbipumlist>
  16. <rgstflag/>
  17. <deptcd/>
  18. <deptnm/>
  19. <goodcd/>
  20. <goodnm/>
  21. <goodspec/>
  22. <goodmodel/>
  23. <deliveunit/>
  24. <safestocqty/>
  25. <chngsafestocqty/>
  26. <goodmngtflag/>
  27. <cmt/>
  28. <certyn/>
  29. <lastupdtrid/>
  30. <lastupdtrnm/>
  31. <lastupdtdt/>
  32. <fstrgstdt/>
  33. <reqflag/>
  34. <instcd/>
  35. <goodflag/>
  36. <purcunit/>
  37. <minexch/>
  38. <ddavguseqty/>
  39. <lrgcd/>
  40. <lrgnm/>
  41. <mdlcd/>
  42. <mdlnm/>
  43. <smlcd/>
  44. <smlnm/>
  45. </csrbipumlist>
  46. <csrsomolist>
  47. <deptcd/>
  48. <deptnm/>
  49. <goodcd/>
  50. <goodnm/>
  51. <goodspec/>
  52. <goodmodel/>
  53. <deliveunit/>
  54. <safestocqty/>
  55. <chngsafestocqty/>
  56. <goodmngtflag/>
  57. <cmt/>
  58. <certyn/>
  59. <lastupdtrid/>
  60. <lastupdtrnm/>
  61. <lastupdtdt/>
  62. <fstrgstdt/>
  63. <reqflag/>
  64. <instcd/>
  65. <goodflag/>
  66. <purcunit/>
  67. <minexch/>
  68. <ddavguseqty/>
  69. <lrgcd/>
  70. <lrgnm/>
  71. <mdlcd/>
  72. <mdlnm/>
  73. <smlcd/>
  74. <smlnm/>
  75. </csrsomolist>
  76. <csrhistinfo/>
  77. </csrinfo>
  78. <csrhistinfo>
  79. <csrbipumhistlist/>
  80. </csrhistinfo>
  81. </main>
  82. <send>
  83. <deptlist>
  84. <goodflag/>
  85. <deptcd/>
  86. <instcd/>
  87. <goodcd/>
  88. </deptlist>
  89. <goodbaseqtylist/>
  90. <goodcd/>
  91. <deptcd/>
  92. <deptnm/>
  93. <csrreqdeptcd2/>
  94. <instcd/>
  95. <goodflag>T</goodflag>
  96. <csrreqdeptcd/>
  97. <goodnm/>
  98. <goodflag2/>
  99. <dept/>
  100. <reqflag/>
  101. <chnginsp>1</chnginsp>
  102. <reqflag2/>
  103. <chnginsp2>0</chnginsp2>
  104. <dept/>
  105. <rgstflag/>
  106. </send>
  107. <init>
  108. <mlist/>
  109. </init>
  110. <hidden/>
  111. <temp/>
  112. <copynode/>
  113. <cond>
  114. <goodhisinfo>
  115. <deptnm/>
  116. <goodcd/>
  117. <goodnm/>
  118. <goodspec/>
  119. <goodmodel/>
  120. <deliveunit/>
  121. <dinfdivs/>
  122. </goodhisinfo>
  123. <checkallitem/>
  124. </cond>
  125. </root>
  126. </instance>
  127. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  128. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  129. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  130. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  131. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  132. <script type="javascript" ev:event="xforms-ready">
  133. <![CDATA[
  134. fInitialize();
  135. ]]>
  136. </script>
  137. <submission id="TRRSS01211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrreqdeptlist"/>
  138. <submission id="TRRSS01212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
  139. <submission id="TXRSD00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
  140. <submission id="TRRSC05303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
  141. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  142. <submission id="TXRSD00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
  143. <submission id="TRRSD00113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrinfo"/>
  144. <submission id="TRRSD00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrhistinfo"/>
  145. <submission id="TRRSS01214" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/deptcodelist"/>
  146. <submission id="TRRSS01215" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/deptcodelist"/>
  147. <submission id="TRRSS00130" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/goodslist"/>
  148. </model>
  149. <script type="javascript">
  150. <![CDATA[
  151. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  152. var curRow = -1;
  153. function fInitialize()
  154. {
  155. var dutplcecd = getUserInfo("dutplcecd");
  156. var jobrespcd = getUserInfo("jobrespcd");
  157. if((dutplcecd == "3080000000") || (dutplcecd == "3081300000")) {
  158. if(jobrespcd == "1901") {
  159. btn_add.disabled = false;
  160. btn_del.disabled = false;
  161. btn_cert.disabled = false;
  162. btn_sav1.disabled = false;
  163. }
  164. } else {
  165. if(jobrespcd == "1901") {
  166. btn_add.disabled = false;
  167. btn_cert.disabled = false;
  168. btn_del.disabled = false;
  169. btn_sav1.disabled = false;
  170. }else{
  171. btn_add.disabled = true;
  172. btn_cert.disabled = true;
  173. btn_del.disabled = true;
  174. btn_sav1.disabled = true;
  175. }
  176. }
  177. //그리드를 초기화 한다.
  178. model.removeNodeset(grd_deptlist.nodeset);
  179. model.removeNodeset(grd_csrbipumlist.nodeset);
  180. // finitCtrl("true");
  181. zbcfGetCodeList( new Array (
  182. "R0039" //불출단위
  183. )
  184. , new Array ( "/root/init/mlist" //청구방법
  185. )
  186. );
  187. //기관코드, 물품구분 공통 코드를 가져온다.
  188. misfComboComCdListMulti("Z0007,R0025", "cmb_instcd,cmb_goodflag");
  189. // ===============초기화시 등록탭으로 셋팅 20090629 추가 ======================
  190. model.makeValue("/root/tmp/initflag","init");
  191. btn_rgst.dispatch("DOMActivate");
  192. model.removeNodeset("/root/tmp/initflag");
  193. //==============================================================
  194. cmb_csrreqdeptcd.value = 1;
  195. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  196. model.setValue(cmb_goodflag.attribute("ref"), "T");
  197. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  198. submit("TRRSS01211");
  199. addComboItem("cmb_csrreqdeptcd", "전체", "", "above");
  200. model.makeValue("/root/send/reqdata/refcond", "deptcd");
  201. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  202. model.makeValue("/root/send/reqdata/deptcd", getUserInfo("dutplcecd"));
  203. submit("TRRSS01214");
  204. model.setValue(ipt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  205. model.setValue(ipt_reqdeptnm.attribute("ref"), getUserInfo("dutplcenm"));
  206. //btn_search.dispatch("DOMActivate");
  207. ipt_reqdeptcd.refresh();
  208. ipt_reqdeptnm.refresh();
  209. if(cmb_dept.length > 0) {
  210. cmb_csrreqdeptcd.value = model.getValue("/root/main/deptcodelist/csrreqdeptcd2");
  211. cmb_csrreqdeptcd.refresh();
  212. if(cmb_csrreqdeptcd.value != "") {
  213. if(isRequiredControls("cmb_csrreqdeptcd")) {
  214. opt_csrdeptnm.value = cmb_csrreqdeptcd.label;
  215. fSearch2();
  216. for(var i = 1; i <= grd_deptlist.rows; i++) {
  217. if( grd_deptlist.valueMatrix(i, grd_deptlist.colRef("deptcd")) == ipt_reqdeptcd.value ) {
  218. grd_deptlist.row = i;
  219. curRow = grd_deptlist.row;
  220. fSearch();
  221. break;
  222. }
  223. }
  224. }
  225. }
  226. } else {
  227. cmb_csrreqdeptcd.select(0);
  228. }
  229. }
  230. function finitCtrl(flag) {
  231. btn_init.disabled = flag;
  232. btn_add.disabled = flag;
  233. btn_del.disabled = flag;
  234. btn_sav1.disabled = flag;
  235. btn_cert.disabled = flag;
  236. }
  237. //srchflag -> N -> 부서구분 선택시 param
  238. function fSearch2(srchflag) {
  239. // model.copyNode("/root/main/cond", "/root/main/csrreqdeptlist[" + grd_csrreqdeptlist.row + "]"); //부서구분이 가지고 있는 instance를 복사(아래 상세 화면에 보여줌.)
  240. model.removeNodeset("/root/main/csrinfo/csrbipumlist");
  241. grd_csrbipumlist.rebuild();
  242. model.makeValue("/root/send/reqdata/csrreqdeptcd", cmb_csrreqdeptcd.value); //청구부서구분코드
  243. model.makeValue("/root/send/reqdata/useyn", model.getValue("/root/send/useyn"));
  244. submit("TRRSS01212");
  245. if(srchflag !="N"){
  246. var dept = model.getValue(ipt_reqdeptcd.attribute("ref"));
  247. if(dept != "") {
  248. grd_deptlist.valueMatrix(i, grd_deptlist.colRef("deptcd")) =dept;
  249. for(var i = grd_deptlist.fixedRows; i < grd_deptlist.rows; i++) {
  250. if(grd_deptlist.valueMatrix(i, grd_deptlist.colRef("deptcd") == dept) ) {
  251. grd_deptlist.row = i;
  252. break;
  253. fSearch();
  254. }
  255. }
  256. }
  257. }
  258. // finitCtrl("ture");
  259. }
  260. // CSR 비품 정보 조회
  261. //codeflag -> "CD" 는 부서구분 선택시
  262. function fSearch(codeflag)
  263. {
  264. if(curRow > -1) {
  265. grd_deptlist.row = curRow;
  266. } else {
  267. grd_deptlist.row = 1;
  268. }
  269. var deptcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));
  270. var instcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("instcd"));
  271. model.resetInstanceNode("/root/send/reqdata");
  272. model.setValue(ipt_deptcd.attribute("ref"), deptcd);
  273. ipt_deptcd.refresh();
  274. // 부서구분 선택시 부서구분에 맞는 CSR 정보 조회
  275. if(codeflag == "CD") {
  276. model.makeValue("/root/send/reqdata/deptcd", "");
  277. model.makeValue("/root/send/reqdata/csrreqdeptcd", cmb_csrreqdeptcd.value);
  278. model.makeValue("/root/send/reqdata/goodcd", model.getValue(ipt_goodcd.attribute("ref")));
  279. } else {
  280. model.makeValue("/root/send/reqdata/deptcd", deptcd);
  281. }
  282. model.makeValue("/root/send/reqdata/instcd", instcd);
  283. model.makeValue("/root/send/reqdata/reqflag", model.getValue(rdo_reqflag.attribute("ref")));
  284. model.makeValue("/root/send/reqdata/reqflag3", "1");
  285. model.makeValue("/root/send/reqdata/rgstflag" , "");
  286. model.makeValue("/root/send/reqdata/chnginsp", rdo_chnginsp.value);
  287. //=========미확정조회시=================
  288. var RgstFlag = model.getValue("/root/send/rgstflag");
  289. if(RgstFlag =="4"){
  290. model.makeValue("/root/send/reqdata/rgstflag", model.getValue("/root/send/rgstflag"));
  291. }
  292. //====================================
  293. submit("TRRSD00113");
  294. model.setValue("/root/cond/goodhisinfo/deptnm" ,"");
  295. model.setValue("/root/cond/goodhisinfo/goodcd" ,"");
  296. model.setValue("/root/cond/goodhisinfo/goodnm" ,"");
  297. model.setValue("/root/cond/goodhisinfo/goodspec" ,"");
  298. model.setValue("/root/cond/goodhisinfo/goodmodel" ,"");
  299. model.setValue("/root/cond/goodhisinfo/deliveunit" ,"");
  300. model.setValue("/root/cond/goodhisinfo/dinfdivs" ,"");
  301. model.removeNodeset("/root/main/csrhistinfo/csrbipumhistlist");
  302. //=============================부서명 및 부서코드 셋팅======================
  303. var deptRow = grd_deptlist.row - grd_deptlist.fixedRows + 1;
  304. model.setValue("/root/send/deptcd",model.getValue("/root/main/csrdeptlist["+deptRow+"]/deptcd"));
  305. model.setValue("/root/send/deptnm",model.getValue("/root/main/csrdeptlist["+deptRow+"]/deptnm"));
  306. //============================상태값에 따른 cellStyle변경 ================================
  307. var chnginsp = model.getValue("/root/send/chnginsp");
  308. grd_csrbipumlist.rebuildStyle();
  309. if(chnginsp=="1"){
  310. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("safestocqty"), grd_csrbipumlist.rows -1, grd_csrbipumlist.colRef("safestocqty")) = "#ffff00";
  311. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("cmt"), grd_csrbipumlist.rows -1, grd_csrbipumlist.colRef("cmt")) = "#ffff00";
  312. }else if(chnginsp=="2"){
  313. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("safestocqty"), grd_csrbipumlist.rows -1, grd_csrbipumlist.colRef("safestocqty")) = "#ffff00";
  314. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("chngsafestocqty"), grd_csrbipumlist.rows -1, grd_csrbipumlist.colRef("chngsafestocqty")) = "#ffff00";
  315. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("reqlmtqty"), grd_csrbipumlist.rows -1, grd_csrbipumlist.colRef("reqlmtqty")) = "#ffff00";
  316. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("cmt"), grd_csrbipumlist.rows -1, grd_csrbipumlist.colRef("cmt")) = "#ffff00";
  317. }else if(chnginsp=="3"){
  318. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("safestocqty"), grd_csrbipumlist.rows -1, grd_csrbipumlist.colRef("safestocqty")) = "#ffff00";
  319. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("orginspqty"), grd_csrbipumlist.rows -1, grd_csrbipumlist.colRef("orginspqty")) = "#ffff00";
  320. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("cmt"), grd_csrbipumlist.rows -1, grd_csrbipumlist.colRef("cmt")) = "#ffff00";
  321. }else if(chnginsp=="4"){
  322. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("safestocqty"), grd_csrbipumlist.rows -1, grd_csrbipumlist.colRef("safestocqty")) = "#ffff00";
  323. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("cmt"), grd_csrbipumlist.rows -1, grd_csrbipumlist.colRef("cmt")) = "#ffff00";
  324. for(var k =1;k< grd_csrbipumlist.rows;k++){
  325. var setcd = grd_csrbipumlist.valueMatrix(k, grd_csrbipumlist.colRef("setcd"));//set코드
  326. var goodcd = grd_csrbipumlist.valueMatrix(k, grd_csrbipumlist.colRef("goodcd"));//물품코드
  327. var proddrugsetflag = grd_csrbipumlist.valueMatrix(k, grd_csrbipumlist.colRef("proddrugsetflag"));//set구분
  328. if((setcd == goodcd)||(proddrugsetflag!="1")){
  329. grd_csrbipumlist.cellStyle("background-color", k, grd_csrbipumlist.colRef("hdrncqty"),k, grd_csrbipumlist.colRef("hdrncqty")) = "#ffcc99";
  330. grd_csrbipumlist.cellStyle("background-color", k, grd_csrbipumlist.colRef("missqty"), k, grd_csrbipumlist.colRef("missqty")) = "#ffcc99";
  331. grd_csrbipumlist.cellStyle("background-color", k, grd_csrbipumlist.colRef("missflag"), k, grd_csrbipumlist.colRef("missflag")) = "#ffcc99";
  332. }
  333. }
  334. /*
  335. for(var i =1;i< grd_csrbipumlist.rows;i++){
  336. var setflag = model.getValue("/root/main/csrinfo/csrbipumlist["+i+"]/setflag");
  337. if(setflag =="Y"){
  338. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("proddrugsetflag"),i, grd_csrbipumlist.colRef("proddrugsetflag")) = "#dbff6f";
  339. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("setcd"),i, grd_csrbipumlist.colRef("setcd")) = "#dbff6f";
  340. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("setnm"),i, grd_csrbipumlist.colRef("setnm")) = "#dbff6f";
  341. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("goodcd"),i, grd_csrbipumlist.colRef("goodcd")) ="#dbff6f";
  342. }
  343. }*/
  344. }
  345. //===================================================================
  346. //상태값이 확정이면 isreadonly
  347. for(var i =1;i < grd_csrbipumlist.rows;i++){
  348. var rgstflag = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("rgstflag"));
  349. var certyn = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("certyn"));
  350. if((rgstflag =="4")&&(certyn=="Y")){
  351. grd_csrbipumlist.isReadOnly(i,grd_csrbipumlist.colRef("certyn")) = true;
  352. }else{
  353. grd_csrbipumlist.isReadOnly(i,grd_csrbipumlist.colRef("certyn")) = false;
  354. }
  355. }
  356. //입력할수 있는 컬럼 색깔 표시
  357. grd_csrbipumlist.cellStyle("background-color", 1, grd_csrbipumlist.colRef("cmt"), grd_csrbipumlist.rows -1, grd_csrbipumlist.colRef("cmt")) = "#ffff00";
  358. //finitCtrl("false");
  359. model.refresh();
  360. }
  361. function fGridDataSet()
  362. {
  363. //부서코드 설정
  364. grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row, grd_goodbaseqtylist.colRef("reqdeptcd"))
  365. = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));
  366. // 기관코드 설정
  367. grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row, grd_goodbaseqtylist.colRef("instcd"))
  368. = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("instcd"));
  369. model.refresh();
  370. }
  371. function fSave(grdName)
  372. {
  373. if(grdName != null) {
  374. var datagrid = document.controls(grdName);
  375. var updtdata = getGridUpdateData(datagrid);
  376. if (updtdata == "" ) {
  377. messageBox("변경된 데이터가","I004");
  378. return;
  379. }
  380. var a = grdName.split('_');
  381. var grdNm = a[1];
  382. model.makeValue("/root/send/reqdata/" + grdNm , updtdata);
  383. } else {
  384. var bipumupdt = getGridUpdateData(grd_csrbipumlist);
  385. model.makeValue("/root/send/reqdata/csrbipumlist", bipumupdt);
  386. model.makeValue("/root/send/reqdata/csrsomolist", somoupdt);
  387. }
  388. if(submit("TXRSD00111")) {
  389. messageBox("저장이 완료되었습니다.", "I");
  390. var allCheck = model.getValue("/root/cond/checkallitem");
  391. if(allCheck=="Y"){
  392. model.setValue("/root/cond/checkallitem","");
  393. chk_chkall.refresh();
  394. }
  395. fSearch2();
  396. }
  397. // var sBasevol = grd_goodbaseqtylist.valueMatrix(grd_goodbaseqtylist.row, grd_goodbaseqtylist.colRef("basevol"));
  398. //
  399. // if(sBasevol == 0 || sBasevol ==null)
  400. // {
  401. // messageBox("비품기준량은", "I003");
  402. // return;
  403. // }
  404. // misfSave("TXRSS00101");
  405. // btn_search.dispatch("DOMActivate");
  406. model.refresh();
  407. }
  408. function fGridSetData(grdName) {
  409. var datagrid = document.controls(grdName);
  410. model.property("deptcd") = model.getValue(ipt_deptcd.attribute("ref"));
  411. model.property("reqflag") = "1";
  412. if (datagrid.col == datagrid.colRef("goodcd")) {//물품코드 버튼을 눌렀을 때
  413. model.removenode("/root/copynode");
  414. model.removenode(gvParamPath +"/SMRSD00400_ /SMRSD00400_value");
  415. model.makeNode("/root/copynode");
  416. rszfOpenPopUpListByWndName(datagrid,"","goodcd,goodnm","SMRSS00102","instcd,goodflag","cmb_instcd,cmb_goodflag", "Y");
  417. var cur_row = datagrid.row;
  418. // var status = grd_goodbaseqtylist.valueMatrix(cur_row, grd_goodbaseqtylist.colRef("m"));
  419. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  420. setCSVToNode("/root/copynode", CSV, grdName);
  421. fSettingGoodList("/root/copynode", grdName);
  422. }
  423. }
  424. //팝업에서 선택한 항목을 해당 그리드에 셋팅한다.
  425. function fSettingGoodList(pnode, grdName)
  426. {
  427. var datagrid = document.controls(grdName);
  428. var codynode = instance1.selectNodes(pnode + "/*");
  429. var addRow = datagrid.rows - datagrid.fixedRows;
  430. for (var j = 1; j <= codynode.length ; j++)
  431. {
  432. if(addRow > datagrid.rows - datagrid.fixedRows)
  433. {
  434. misfGridIUD(datagrid,"A");
  435. addRow = datagrid.rows - datagrid.fixedRows;
  436. }
  437. model.setValue(datagrid.nodeset + "[" + addRow + "]/deptcd", grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd")) );
  438. model.setValue(datagrid.nodeset + "[" + addRow + "]/deptnm", grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptnm")) );
  439. model.setValue(datagrid.nodeset + "[" + addRow + "]/goodcd" , model.getValue(pnode +"/" + grdName + "[" + j + "]/goodcd"));
  440. model.setValue(datagrid.nodeset + "[" + addRow + "]/goodnm" , model.getValue(pnode +"/" + grdName + "[" + j + "]/csrgoodnm"));
  441. model.setValue(datagrid.nodeset + "[" + addRow + "]/goodspec" , model.getValue(pnode +"/" + grdName + "[" + j + "]/csrgoodspec"));
  442. model.setValue(datagrid.nodeset + "[" + addRow + "]/goodmodel" , model.getValue(pnode +"/" + grdName + "[" + j + "]/csrgoodmodel"));
  443. model.setValue(datagrid.nodeset + "[" + addRow + "]/deliveunit" , model.getValue(pnode +"/" + grdName + "[" + j + "]/csrrequnit"));
  444. model.setValue(datagrid.nodeset + "[" + addRow + "]/instcd" , cmb_instcd.value);
  445. model.setValue(datagrid.nodeset + "[" + addRow + "]/reqflag" , model.getValue(pnode +"/" + grdName + "[" + j + "]/reqflag"));
  446. var safestocqty;
  447. if(model.getValue(pnode +"/" + grdName + "[" + j + "]/safestocqty") == "") {
  448. safestocqty = 0;
  449. } else {
  450. safestocqty = model.getValue(pnode +"/" + grdName + "[" + j + "]/safestocqty");
  451. }
  452. model.setValue(datagrid.nodeset + "[" + addRow + "]/safestocqty" , safestocqty);
  453. var chngsafestocqty;
  454. if(model.getValue(pnode +"/" + grdName + "[" + j + "]/chngsafestocqty") == "") {
  455. chngsafestocqty = 0;
  456. } else {
  457. chngsafestocqty = model.getValue(pnode +"/" + grdName + "[" + j + "]/chngsafestocqty");
  458. }
  459. if(safestocqty == chngsafestocqty) {
  460. model.setValue(datagrid.nodeset + "[" + addRow + "]/goodmngtflag" , "1");
  461. }
  462. var purcunit;
  463. if(model.getValue(pnode +"/" + grdName + "[" + j + "]/purcunit") == "") {
  464. purcunit = 0;
  465. } else {
  466. purcunit = model.getValue(pnode +"/" + grdName + "[" + j + "]/purcunit");
  467. }
  468. model.setValue(datagrid.nodeset + "[" + addRow + "]/ddavguseqty" , model.getValue(pnode +"/" + grdName + "[" + j + "]/ddavguseqty"));
  469. model.setValue(datagrid.nodeset + "[" + addRow + "]/purcunit", purcunit);
  470. model.setValue(datagrid.nodeset + "[" + addRow + "]/goodflag" , model.getValue(pnode +"/" + grdName + "[" + j + "]/goodflag"));
  471. model.setValue(datagrid.nodeset + "[" + addRow + "]/minexch" , model.getValue(pnode +"/" + grdName + "[" + j + "]/minexch"));
  472. //
  473. /*------------------------------------------------------------------------------------------------------------------
  474. * 공급실 청구 변경 : minexch, basevol .. HBH
  475. * 조회 col 2개 추가
  476. ------------------------------------------------------------------------------------------------------------------*/
  477. model.setValue(datagrid.nodeset + "[" + addRow + "]/lrgcd" , model.getValue(pnode +"/" + grdName + "[" + j + "]/lrgcd"));
  478. model.setValue(datagrid.nodeset + "[" + addRow + "]/lrgnm" , model.getValue(pnode +"/" + grdName + "[" + j + "]/lrgnm"));
  479. model.setValue(datagrid.nodeset + "[" + addRow + "]/mdlcd" , model.getValue(pnode +"/" + grdName + "[" + j + "]/mdlcd"));
  480. model.setValue(datagrid.nodeset + "[" + addRow + "]/mdlnm" , model.getValue(pnode +"/" + grdName + "[" + j + "]/mdlnm"));
  481. model.setValue(datagrid.nodeset + "[" + addRow + "]/smlcd" , model.getValue(pnode +"/" + grdName + "[" + j + "]/smlcd"));
  482. model.setValue(datagrid.nodeset + "[" + addRow + "]/smlnm" , model.getValue(pnode +"/" + grdName + "[" + j + "]/smlnm"));
  483. model.setValue(datagrid.nodeset + "[" + addRow + "]/lrgnm" , model.getValue(pnode +"/" + grdName + "[" + j + "]/lrgnm"));
  484. model.setValue(datagrid.nodeset + "[" + addRow + "]/dinfdivs" , model.getValue(pnode +"/" + grdName + "[" + j + "]/dinfflag"));
  485. model.setValue(datagrid.nodeset + "[" + addRow + "]/mastdinfdivs" , model.getValue(pnode +"/" + grdName + "[" + j + "]/dinfdivs"));
  486. model.setValue(datagrid.nodeset + "[" + addRow + "]/certyn", "N");
  487. model.setValue(datagrid.nodeset + "[" + addRow + "]/rgstflag", "1");
  488. //model.setValue(datagrid.nodeset + "[" + addRow + "]/reqmthdflag" , model.getValue(pnode +"/" + grdName + "[" + j + "]/reqmthd"));
  489. addRow = addRow + 1;
  490. }
  491. model.recalculate();
  492. model.refresh();
  493. }
  494. function fDisGrid(grdName) {
  495. var datagrid = document.controls(grdName);
  496. for(var i = 1; i <= datagrid.cols; i++) {
  497. datagrid.colDisabled(i) = true;
  498. }
  499. }
  500. function fEnaGrid(grdName) {
  501. var datagrid = document.controls(grdName);
  502. if(datagrid.rowStatus(datagrid.row) == "1" || datagrid.rowStatus(datagrid.row) == "3") {
  503. datagrid.colDisabled(datagrid.colRef("safestocqty")) = false;
  504. } else if(datagrid.rowStatus(datagrid.row) == "2") {
  505. datagrid.colDisabled(datagrid.colRef("safestocqty")) =true;
  506. datagrid.colDisabled(datagrid.colRef("chngsafestocqty")) = false;
  507. }
  508. datagrid.colDisabled(datagrid.colRef("cmt")) = false;
  509. datagrid.colDisabled(datagrid.colRef("certyn")) = false;
  510. }
  511. // 각각의 수량 입력시 상태 값 변경
  512. function fChngGoodFlag(grdName) {
  513. var datagrid = document.controls(grdName);
  514. var safestocqty = datagrid.valueMatrix(datagrid.row, datagrid.colRef("safestocqty"));
  515. var chngsafestocqty = datagrid.valueMatrix(datagrid.row, datagrid.colRef("chngsafestocqty")); //청구수량.
  516. var reqlmtqty = datagrid.valueMatrix(datagrid.row, datagrid.colRef("reqlmtqty")); //반납수량.
  517. var orginspqty = datagrid.valueMatrix(datagrid.row, datagrid.colRef("orginspqty"));
  518. var realqty = datagrid.valueMatrix(datagrid.row, datagrid.colRef("realqty"));
  519. var hdrncqty = datagrid.valueMatrix(datagrid.row, datagrid.colRef("hdrncqty")); //파손수량
  520. var missqty = datagrid.valueMatrix(datagrid.row, datagrid.colRef("missqty"));//분실 수량
  521. //데이터 변경 장소가.(안전재고량이냐, 변경수량이냐, 신사량이냐.)
  522. if(grd_csrbipumlist.col == grd_csrbipumlist.colRef("safestocqty")) {
  523. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("minexch")) = grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("safestocqty"));
  524. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("rgstflag")) = "1"; //등록
  525. //datagrid.valueMatrix(datagrid.row, datagrid.colRef("goodmngtflag")) = "1";
  526. grd_csrbipumlist.valueMatrix(datagrid.row, grd_csrbipumlist.colRef("mngtqty")) = Number(safestocqty);
  527. }else if(grd_csrbipumlist.col == grd_csrbipumlist.colRef("chngsafestocqty") || grd_csrbipumlist.col == grd_csrbipumlist.colRef("reqlmtqty")) {
  528. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("rgstflag")) = "2"; //변경
  529. if( chngsafestocqty != "0" && reqlmtqty !="0" ) {
  530. messageBox("청구수량과 변경수량은 동시에 입력할수 없습니다.", "E");
  531. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("chngsafestocqty")) = "0";
  532. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("reqlmtqty")) = "0";
  533. }
  534. }else if(grd_csrbipumlist.col == grd_csrbipumlist.colRef("orginspqty")) {
  535. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("rgstflag")) = "3"; //실사
  536. }else if(grd_csrbipumlist.col == grd_csrbipumlist.colRef("missqty")) {
  537. if(Number(safestocqty) < Number(missqty) ){
  538. messageBox("분실수량 입력시 비품수량을 초과할 수","I004");
  539. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("missqty")) ="";
  540. grd_csrbipumlist.rowStatus(grd_csrbipumlist.row) ="0";
  541. return;
  542. }else{
  543. if((missqty !="")&&(hdrncqty =="")){
  544. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("rgstflag")) = "5"; //분실
  545. grd_csrbipumlist.isReadOnly(grd_csrbipumlist.row,grd_csrbipumlist.colRef("certyn")) = false;
  546. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("certyn")) = "";
  547. }else if((missqty !="")&&(hdrncqty !="")){
  548. messageBox("분실수량 입력시 파손수량과 같이 입력할 수","I004");
  549. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("missqty")) ="";
  550. return;
  551. }else{
  552. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("rgstflag")) = "5"; //분실
  553. grd_csrbipumlist.isReadOnly(grd_csrbipumlist.row,grd_csrbipumlist.colRef("certyn")) = false;
  554. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("certyn")) = "";
  555. }
  556. }
  557. }else if(grd_csrbipumlist.col == grd_csrbipumlist.colRef("hdrncqty")){
  558. if(Number(safestocqty) < Number(hdrncqty)){
  559. messageBox("파손수량 입력시 비품수량을 초과할 수","I004");
  560. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("hdrncqty")) ="";
  561. grd_csrbipumlist.rowStatus(grd_csrbipumlist.row) ="0";
  562. return;
  563. }else{
  564. if((missqty =="")&&(hdrncqty !="")){
  565. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("rgstflag")) = "6"; //파손
  566. grd_csrbipumlist.isReadOnly(grd_csrbipumlist.row,grd_csrbipumlist.colRef("certyn")) = false;
  567. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("certyn")) = "";
  568. }else if((missqty !="")&&(hdrncqty !="")){
  569. messageBox("파손수량 입력시 분실수량과 같이 입력할 수","I004");
  570. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("hdrncqty")) ="";
  571. return;
  572. }else{
  573. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("rgstflag")) = "6"; //파손
  574. grd_csrbipumlist.isReadOnly(grd_csrbipumlist.row,grd_csrbipumlist.colRef("certyn")) = false;
  575. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("certyn")) = "";
  576. }
  577. }
  578. }
  579. grd_csrbipumlist.refresh();
  580. }
  581. // 탭별 coldisbled 상태값 변경
  582. function fChgColDIsAbled(){
  583. if(grd_csrbipumlist.rowStatus(grd_csrbipumlist.row) == "1" || grd_csrbipumlist.rowStatus(grd_csrbipumlist.row) == "3") {
  584. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("reqflag")) = true;
  585. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("rgstflag")) = true;
  586. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("dinfdivs")) = true;
  587. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("safestocqty")) = false;
  588. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("chngsafestocqty")) = true;
  589. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("reqlmtqty")) = true;
  590. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("orginspqty")) = true;
  591. }else{
  592. var rgstflag = grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row,grd_csrbipumlist.colRef("rgstflag"));
  593. var setcd = grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("setcd"));//set코드
  594. var goodcd = grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("goodcd"));//물품코드
  595. var proddrugsetflag = grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("proddrugsetflag"));//set구분
  596. if( model.getValue(rdo_chnginsp.attribute("ref")) == "1") { //등록
  597. if(rgstflag =="4"){
  598. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("safestocqty")) = true;
  599. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("cmt")) = true;
  600. }else{
  601. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("safestocqty")) = false;
  602. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("cmt")) = false;
  603. }
  604. }else if(model.getValue(rdo_chnginsp.attribute("ref")) == "2") { //변경
  605. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("chngsafestocqty")) = false;
  606. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("reqlmtqty")) = false;
  607. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("cmt")) = false;
  608. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("safestocqty")) = true;
  609. }else if(model.getValue(rdo_chnginsp.attribute("ref")) == "3"){ //실사
  610. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("safestocqty")) = true;
  611. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("cmt")) = false;
  612. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("orginspqty")) = false;
  613. }else if(model.getValue(rdo_chnginsp.attribute("ref")) == "4"){ //분실/파손
  614. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("safestocqty")) = true;
  615. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("cmt")) = false;
  616. if((setcd == goodcd)||(proddrugsetflag !="1")){
  617. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("hdrncqty")) = false;
  618. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("missqty"))= false;
  619. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("missflag"))= false;
  620. }else{
  621. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("hdrncqty")) = true;
  622. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("missqty"))= true;
  623. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("missflag"))= true;
  624. }
  625. }
  626. }
  627. grd_csrbipumlist.editCell();
  628. }
  629. ]]>
  630. </script>
  631. </xhtml:head>
  632. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  633. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  634. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:144px; height:14px; ">부서별 CSR 비품관리</caption>
  635. </group>
  636. <group id="grp_biz" scroll="auto" style="left:0px; top:43px; width:1195px; height:725px; ">
  637. <input id="ipt_goodflag" ref="/root/send/goodflag2" visibility="hidden" style="left:85px; top:45px; width:100px; height:19px; "/>
  638. <input id="ipt_csrreqdeptcd2" ref="/root/send/csrreqdeptcd2" visibility="hidden" style="left:90px; top:45px; width:100px; height:19px; "/>
  639. <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:37px; vertical-align:top; ">
  640. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:37px; background-color:#fffbf2; border-color:#ffd799; "/>
  641. <caption id="caption2" class="search_name" style="left:11px; top:9px; width:89px; height:17px; ">기관코드 :</caption>
  642. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:101px; top:9px; width:110px; height:19px; ">
  643. <choices>
  644. <itemset>
  645. <label/>
  646. <value/>
  647. </itemset>
  648. </choices>
  649. </select1>
  650. <caption id="cap_csrreqdeptcd" class="search_name" style="left:225px; top:10px; width:89px; height:17px; ">부서구분 :</caption>
  651. <select1 id="cmb_csrreqdeptcd" ref="/root/send/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:314px; top:9px; width:96px; height:19px; ">
  652. <choices>
  653. <itemset nodeset="/root/main/csrreqdeptlist">
  654. <label ref="csrreqdeptnm"/>
  655. <value ref="csrreqdeptcd"/>
  656. </itemset>
  657. </choices>
  658. <script type="javascript" ev:event="xforms-value-changed">
  659. <![CDATA[
  660. model.setValue(ipt_reqdeptcd.attribute("ref"), "");
  661. model.setValue(ipt_reqdeptnm.attribute("ref"), "");
  662. ipt_reqdeptcd.refresh();
  663. ipt_reqdeptnm.refresh();
  664. opt_csrdeptnm.value = cmb_csrreqdeptcd.label;
  665. fSearch2("N");
  666. fSearch("CD");
  667. ]]>
  668. </script>
  669. </select1>
  670. <input id="ipt_goodnm" ref="/root/send/goodnm" class="input_search" appearance="input" style="left:914px; top:9px; width:147px; height:19px; ">
  671. <script type="javascript" ev:event="onkeydown">
  672. <![CDATA[
  673. if(event.keyCode == "13") {
  674. setInputNodeCurText();
  675. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  676. var sGoodnm = model.getValue("/root/send/goodnm");
  677. model.makeValue("/root/send/reqdata/goodcd",sGoodnm);
  678. model.makeValue("/root/send/reqdata/goodflag", "T");
  679. submit("TRRSS00130",false);
  680. var node = instance1.selectNodes("/root/main/goodslist");
  681. if(node.length != 1) {
  682. clearParameter("goodnm");
  683. clearParameter("goodcd");
  684. setParameter("goodnm",sGoodnm);
  685. modal("SMRSS00130");
  686. model.setValue(ipt_goodcd.attribute("ref"), getParameter("goodcd"));
  687. model.setValue(ipt_goodnm.attribute("ref"), getParameter("goodnm"));
  688. ipt_goodcd.refresh();
  689. ipt_goodnm.refresh();
  690. } else {
  691. model.setValue(ipt_goodcd.attribute("ref"), model.getValue("/root/main/goodslist/goodcd"));
  692. model.setValue(ipt_goodnm.attribute("ref"), model.getValue("/root/main/goodslist/goodnm"));
  693. model.refresh();
  694. }
  695. fSearch("CD");
  696. }
  697. ]]>
  698. </script>
  699. </input>
  700. <input id="ipt_goodcd" ref="/root/send/goodcd" class="input_default" imemode="alpha" style="left:806px; top:9px; width:85px; height:19px; ">
  701. <script type="javascript" ev:event="onkeydown">
  702. <![CDATA[
  703. if(event.keyCode == "13") {
  704. setInputNodeCurText();
  705. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  706. var sGoodcd = model.getValue("/root/send/goodcd");
  707. model.makeValue("/root/send/reqdata/goodcd",sGoodcd.toUpperCase());
  708. model.makeValue("/root/send/reqdata/goodflag", "T");
  709. submit("TRRSS00130",false);
  710. var node = instance1.selectNodes("/root/main/goodslist");
  711. if(node.length != 1) {
  712. clearParameter("goodcd");
  713. clearParameter("goodnm");
  714. setParameter("goodcd",sGoodcd.toUpperCase());
  715. modal("SMRSS00130");
  716. model.setValue(ipt_goodcd.attribute("ref"), getParameter("goodcd"));
  717. model.setValue(ipt_goodnm.attribute("ref"), getParameter("goodnm"));
  718. ipt_goodcd.refresh();
  719. ipt_goodnm.refresh();
  720. } else {
  721. model.setValue(ipt_goodcd.attribute("ref"), model.getValue("/root/main/goodslist/goodcd"));
  722. model.setValue(ipt_goodnm.attribute("ref"), model.getValue("/root/main/goodslist/goodnm"));
  723. model.refresh();
  724. }
  725. fSearch("CD");
  726. }
  727. ]]>
  728. </script>
  729. </input>
  730. <caption id="cap_goodcd" class="search_name" style="left:716px; top:10px; width:91px; height:17px; ">물품코드 :</caption>
  731. <caption id="caption3" class="search_name" style="left:420px; top:10px; width:88px; height:17px; ">부 서 명 :</caption>
  732. <button id="btn_reqdept" class="icon_search" style="left:583px; top:10px; width:16px; height:16px; ">
  733. <caption/>
  734. <script type="javascript" ev:event="DOMActivate">
  735. <![CDATA[
  736. modal("SPRSS01203");
  737. model.setValue(ipt_reqdeptcd.attribute("ref"), model.property("deptcd"));
  738. model.setValue(ipt_reqdeptnm.attribute("ref"), model.property("deptnm"));
  739. model.setValue(ipt_csrreqdeptcd2.attribute("ref"), model.property("csrreqdeptcd"));
  740. ipt_reqdeptcd.refresh();
  741. ipt_reqdeptnm.refresh();
  742. ipt_csrreqdeptcd2.refresh();
  743. // grd_csrdeptnm.valueMatrix(1,0) = model.getValue("/root/send/deptnm");
  744. // getCsrDeptList();
  745. cmb_csrreqdeptcd.value = model.getValue("/root/send/csrreqdeptcd2");
  746. //btn_search.dispatch("DOMActivate");
  747. if(cmb_csrreqdeptcd.value != "") {
  748. if(isRequiredControls("cmb_csrreqdeptcd")) {
  749. opt_csrdeptnm.value = cmb_csrreqdeptcd.label;
  750. fSearch2();
  751. for(var i = 1; i <= grd_deptlist.rows; i++) {
  752. if( grd_deptlist.valueMatrix(i, grd_deptlist.colRef("deptcd")) == ipt_reqdeptcd.value ) {
  753. grd_deptlist.row = i;
  754. curRow = grd_deptlist.row;
  755. fSearch();
  756. break;
  757. }
  758. }
  759. }
  760. }
  761. ]]>
  762. </script>
  763. </button>
  764. <input id="ipt_reqdeptnm" ref="/root/send/deptnm" class="input_search" style="left:605px; top:10px; width:102px; height:19px; ">
  765. <script type="javascript" ev:event="xforms-value-changed">
  766. <![CDATA[
  767. /*misfValidationCheck("02", "", "deptcd,deptnm");
  768. model.refresh();*/
  769. ]]>
  770. </script>
  771. </input>
  772. <input id="ipt_reqdeptcd" ref="/root/send/deptcd" class="input_default" maxlength="10" style="left:510px; top:9px; width:70px; height:19px; "/>
  773. <caption id="caption5" class="search_name" visibility="hidden" style="left:970px; top:0px; width:89px; height:17px; ">물품구분 :</caption>
  774. <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_s_essential" disabled="true" visibility="hidden" appearance="minimal" style="left:1059px; top:0px; width:125px; height:19px; ">
  775. <choices>
  776. <itemset>
  777. <label/>
  778. <value/>
  779. </itemset>
  780. </choices>
  781. <script type="javascript" ev:event="xforms-value-changed">
  782. <![CDATA[
  783. if(cmb_goodflag.value != "") {
  784. model.resetInstanceNode("/root/hidden/lrgcd");
  785. model.resetInstanceNode("/root/hidden/mdlcd");
  786. copyNodesetType("/root/hidden/lrgcd", "/root/init/lrgcd[goodflag='" + cmb_goodflag.value + "']");
  787. cmb_lrgcd.disabled = false;
  788. cmb_mdlcd.disabled = true;
  789. model.refresh();
  790. addComboItem("cmb_lrgcd", "--전체--", "", "above");
  791. }
  792. ]]>
  793. </script>
  794. </select1>
  795. <line id="line3" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  796. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  797. <caption>조회</caption>
  798. <script type="javascript" ev:event="DOMActivate">
  799. <![CDATA[
  800. opt_csrdeptnm.value = cmb_csrreqdeptcd.label;
  801. fSearch2();
  802. ]]>
  803. </script>
  804. </button>
  805. <button id="btn_goodcd" class="icon_search" style="left:895px; top:10px; width:16px; height:16px; ">
  806. <caption/>
  807. <script type="javascript" ev:event="DOMActivate">
  808. <![CDATA[
  809. clearParameter("goodcd");
  810. clearParameter("goodnm");
  811. modal("SMRSS00130");
  812. model.setValue(ipt_goodcd.attribute("ref"), getParameter("goodcd"));
  813. model.setValue(ipt_goodnm.attribute("ref"), getParameter("goodnm"));
  814. model.removeNodeset("/root/send/reqdata");
  815. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  816. model.makeValue("/root/send/reqdata/goodcd", model.getValue(ipt_goodcd.attribute("ref")));
  817. model.makeValue("/root/send/reqdata/deptcd", "");
  818. model.makeValue("/root/send/reqdata/reqflag", model.getValue(rdo_reqflag.attribute("ref")));
  819. model.makeValue("/root/send/reqdata/reqflag3", "1");
  820. model.makeValue("/root/send/reqdata/rgstflag" , "");
  821. ipt_goodcd.refresh();
  822. ipt_goodnm.refresh();
  823. fSearch("CD");
  824. ]]>
  825. </script>
  826. </button>
  827. </group>
  828. <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:60px; height:13px; ">부서</caption>
  829. <line id="line1" class="line_1" style="x1:205px; y1:69px; x2:1191px; y2:69px; "/>
  830. <caption id="caption4" class="tit_2" style="left:209px; top:54px; width:91px; height:13px; ">CSR 비품</caption>
  831. <line id="line2" class="line_1" style="x1:0px; y1:69px; x2:200px; y2:69px; "/>
  832. <datagrid id="grd_deptlist" nodeset="/root/main/csrdeptlist" caption="부서명^부서코드^기관코드^물품구분" colsep="^" colwidth="154, 139, 97, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:94px; width:200px; height:631px; ">
  833. <col disabled="true" ref="deptnm"/>
  834. <col ref="deptcd" visibility="hidden"/>
  835. <col ref="instcd" visibility="hidden"/>
  836. <col ref="goodflag" visibility="hidden"/>
  837. <script type="javascript" ev:event="onclick">
  838. <![CDATA[
  839. if(grd_deptlist.isCell(event.target) && grd_deptlist.mouseRow >= grd_deptlist.fixedrows){
  840. curRow = grd_deptlist.row;
  841. fSearch();
  842. }
  843. ]]>
  844. </script>
  845. <script type="javascript" ev:event="onaftersort">
  846. <![CDATA[
  847. grd_deptlist.gridToInstance();
  848. ]]>
  849. </script>
  850. </datagrid>
  851. <datagrid id="grd_csrbipumlist" nodeset="/root/main/csrinfo/csrbipumlist" class="datagrid2" caption="부서코드^상태^부서명^물품&#xA;구분^set구분^set코드^Set명^물품코드^물품명^규격^모델^단위^멸균구분^멸균상세^재고&#xA;수량^처음&#xA;재고^비품&#xA;수량^실사량^청구&#xA;수량^반납&#xA;수량^파손&#xA;수량^분실&#xA;수량^분실&#xA;상세^사유^수리&#xA;수량^확정^비품관리구분^불출/반납&#xA;수량^최종저장일시^최종&#xA;저장자^최종확정일시^최종&#xA;확정자^수정자ID^수정자^수정일자^최초&#xA;등록일자^청구구분^instcd^goodflag^purcunit^minexch^ddavguseqty^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^reqflag^setflag^proddrugseqno" colsep="^" colwidth="0, 34, 94, 44, 52, 91, 100, 102, 245, 62, 70, 40, 60, 93, 50, 0, 50, 44, 50, 50, 50, 50, 100, 100, 48, 37, 60, 77, 120, 70, 120, 70, 70, 70, 80, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" selectionmode="free" style="left:205px; top:74px; width:987px; height:361px; ">
  852. <col class="input_essential" ref="deptcd" visibility="hidden" _key="true"/>
  853. <col disabled="true" ref="rgstflag" type="combo">
  854. <choices>
  855. <item>
  856. <label>등록</label>
  857. <value>1</value>
  858. </item>
  859. <item>
  860. <label>변경</label>
  861. <value>2</value>
  862. </item>
  863. <item>
  864. <label>실사</label>
  865. <value>3</value>
  866. </item>
  867. <item>
  868. <label>확정</label>
  869. <value>4</value>
  870. </item>
  871. <item>
  872. <label>분실</label>
  873. <value>5</value>
  874. </item>
  875. <item>
  876. <label>파손</label>
  877. <value>6</value>
  878. </item>
  879. </choices>
  880. </col>
  881. <col ref="deptnm" style="text-align:center; "/>
  882. <col disabled="true" ref="reqflag" type="combo" style="text-align:center; ">
  883. <choices>
  884. <item>
  885. <label>비품</label>
  886. <value>1</value>
  887. </item>
  888. <item>
  889. <label>소모품</label>
  890. <value>2</value>
  891. </item>
  892. <item>
  893. <label>린넨</label>
  894. <value>4</value>
  895. </item>
  896. <item>
  897. <label>멸균품목</label>
  898. <value>3</value>
  899. </item>
  900. <item>
  901. <label>세척멸균품목</label>
  902. <value>5</value>
  903. </item>
  904. </choices>
  905. </col>
  906. <col disabled="true" ref="proddrugsetflag" type="combo" style="text-align:center; ">
  907. <choices>
  908. <item>
  909. <label>Set</label>
  910. <value>1</value>
  911. </item>
  912. <item>
  913. <label>Single</label>
  914. <value>2</value>
  915. </item>
  916. <item>
  917. <label>Single Set</label>
  918. <value>3</value>
  919. </item>
  920. </choices>
  921. </col>
  922. <col ref="setcd" style="text-align:center; "/>
  923. <col ref="setnm"/>
  924. <col class="input_essential" disabled="true" ref="goodcd" type="inputbutton" _key="true"/>
  925. <col ref="goodnm"/>
  926. <col ref="goodspec"/>
  927. <col ref="goodmodel"/>
  928. <col ref="deliveunit"/>
  929. <col disabled="true" ref="dinfdivs" type="combo" style="text-align:center; ">
  930. <choices>
  931. <item>
  932. <label>멸균</label>
  933. <value>1</value>
  934. </item>
  935. <item>
  936. <label>비멸균</label>
  937. <value>2</value>
  938. </item>
  939. </choices>
  940. </col>
  941. <col disabled="true" ref="mastdinfdivs" type="combo" style="text-align:center; ">
  942. <choices>
  943. <item>
  944. <label>고압증기멸균</label>
  945. <value>1</value>
  946. </item>
  947. <item>
  948. <label>가스멸균</label>
  949. <value>2</value>
  950. </item>
  951. <item>
  952. <label>건열멸균</label>
  953. <value>3</value>
  954. </item>
  955. <item>
  956. <label>플라즈마멸균</label>
  957. <value>4</value>
  958. </item>
  959. </choices>
  960. </col>
  961. <col ref="realqty" visibility="hidden" style="text-align:right; "/>
  962. <col ref="minexch"/>
  963. <!-- 처음재고수량(처음 안전재고를 입력시에 처음 가질 재고량) -->
  964. <col ref="safestocqty" type="input" format="(-)#,###.##" style="text-align:right; "/>
  965. <col ref="orginspqty" type="input" style="text-align:right; "/>
  966. <col disabled="true" ref="chngsafestocqty" type="input" style="text-align:right; "/>
  967. <col ref="reqlmtqty" type="input" style="text-align:right; "/>
  968. <col ref="hdrncqty" type="input" style="text-align:right; "/>
  969. <col ref="missqty" type="input" style="text-align:right; "/>
  970. <col ref="missflag" type="combo">
  971. <choices>
  972. <item>
  973. <label/>
  974. <value/>
  975. </item>
  976. <item>
  977. <label>비품수량 변경없이청구</label>
  978. <value>1</value>
  979. </item>
  980. <item>
  981. <label>비품수량감소</label>
  982. <value>2</value>
  983. </item>
  984. </choices>
  985. </col>
  986. <col ref="cmt" type="input"/>
  987. <col ref="rpirqty" type="input" visibility="hidden" style="text-align:right; "/>
  988. <col checkvalue="Y,N" ref="certyn" type="checkbox"/>
  989. <col class="input_essential" ref="goodmngtflag" type="combo" visibility="hidden" _key="true">
  990. <choices>
  991. <item>
  992. <label>청구</label>
  993. <value>1</value>
  994. </item>
  995. <item>
  996. <label>반납</label>
  997. <value>2</value>
  998. </item>
  999. </choices>
  1000. </col>
  1001. <col ref="mngtqty" visibility="hidden"/>
  1002. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
  1003. <col ref="lastupdtrnm" style="text-align:center; "/>
  1004. <col ref="certdt" format="yyyy-mm-dd hh:nn:ss"/>
  1005. <col ref="certnm" style="text-align:center; "/>
  1006. <col ref="lastupdtrid" visibility="hidden"/>
  1007. <col ref="lastupdtrnm" visibility="hidden"/>
  1008. <col ref="lastupdtdt" visibility="hidden" format="yyyy-mm-dd"/>
  1009. <col ref="fstrgstdt" visibility="hidden" format="yyyy-mm-dd"/>
  1010. <col ref="reqflag" visibility="hidden"/>
  1011. <col ref="instcd" visibility="hidden"/>
  1012. <col ref="goodflag" visibility="hidden"/>
  1013. <col ref="purcunit" visibility="hidden"/>
  1014. <col ref="minexch" visibility="hidden"/>
  1015. <col ref="ddavguseqty" visibility="hidden"/>
  1016. <col ref="lrgcd" visibility="hidden"/>
  1017. <col ref="lrgnm" visibility="hidden"/>
  1018. <col ref="mdlcd" visibility="hidden"/>
  1019. <col ref="mdlnm" visibility="hidden"/>
  1020. <col ref="smlcd" visibility="hidden"/>
  1021. <col ref="smlnm" visibility="hidden"/>
  1022. <col ref="reqflag" visibility="hidden"/>
  1023. <col ref="setflag" visibility="hidden"/>
  1024. <col ref="proddrugseqno" visibility="hidden"/>
  1025. <script type="javascript" ev:event="onbuttonclick">
  1026. <![CDATA[
  1027. fGridSetData("grd_csrbipumlist");
  1028. ]]>
  1029. </script>
  1030. <script type="javascript" ev:event="onclick">
  1031. <![CDATA[
  1032. if(grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("rgstflag")) == "1") {
  1033. btn_del.disabled = false;
  1034. } else if(grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("rgstflag")) == "4") {
  1035. btn_del.disabled = true;
  1036. }
  1037. fChgColDIsAbled();
  1038. ]]>
  1039. </script>
  1040. <script type="javascript" ev:event="onkeydown">
  1041. <![CDATA[
  1042. if(event.keyCode == 9) {
  1043. grd_csrbipumlist.editCell();
  1044. }
  1045. ]]>
  1046. </script>
  1047. <script type="javascript" ev:event="xforms-value-changed">
  1048. <![CDATA[
  1049. /*
  1050. 안전재고량을 처음 입력할시에는 안전재고량을 가지고 처음재고수량으로 잡는ㄷ.
  1051. 변경수량 입력후 저장하면 변경수량이 안전재고량으로 잡히며
  1052. 실사량을 입력후 저장하면 실사량은 저장된채로만 있고. 입력한다음 확정을 하게되면 그 실사량이 재고수량으로 바뀌게된다.
  1053. */
  1054. fChngGoodFlag("grd_csrbipumlist");
  1055. ]]>
  1056. </script>
  1057. <script type="javascript" ev:event="ondblclick">
  1058. <![CDATA[
  1059. var gridCol =grd_csrbipumlist.col;
  1060. var goodCol = grd_csrbipumlist.colRef("goodcd");
  1061. var realqtyCol = grd_csrbipumlist.colRef("realqty");
  1062. var safestocqtyCol = grd_csrbipumlist.colRef("safestocqty");
  1063. var reqlmtqtyCol = grd_csrbipumlist.colRef("reqlmtqty");
  1064. var hdrncqtyCol = grd_csrbipumlist.colRef("hdrncqty");
  1065. var missqtyCol = grd_csrbipumlist.colRef("missqty");
  1066. var cmtCol = grd_csrbipumlist.colRef("cmt");
  1067. var orginspqtyCol = grd_csrbipumlist.colRef("orginspqty");
  1068. var rpirqtyCol = grd_csrbipumlist.colRef("rpirqty");
  1069. var iRow = grd_csrbipumlist.row -grd_csrbipumlist.fixedRows + 1;
  1070. if(!isDataCell())
  1071. return;
  1072. if((gridCol !=goodCol)||(gridCol !=realqtyCol) ||(gridCol!= safestocqtyCol)||(gridCol!=reqlmtqtyCol)||(gridCol!=missqtyCol)
  1073. ||(gridCol!=cmtCol)||(gridCol!=orginspqtyCol)||(gridCol!=rpirqtyCol) ){
  1074. model.setValue("/root/cond/goodhisinfo/deptnm" ,grd_csrbipumlist.valueMatrix(iRow,grd_csrbipumlist.colRef("deptnm")));
  1075. model.setValue("/root/cond/goodhisinfo/goodcd" ,grd_csrbipumlist.valueMatrix(iRow,grd_csrbipumlist.colRef("goodcd")));
  1076. model.setValue("/root/cond/goodhisinfo/goodnm" ,grd_csrbipumlist.labelMatrix(iRow,grd_csrbipumlist.colRef("goodnm")));
  1077. model.setValue("/root/cond/goodhisinfo/goodspec",grd_csrbipumlist.valueMatrix(iRow,grd_csrbipumlist.colRef("goodspec")));
  1078. model.setValue("/root/cond/goodhisinfo/goodmodel",grd_csrbipumlist.valueMatrix(iRow,grd_csrbipumlist.colRef("goodmodel")));
  1079. model.setValue("/root/cond/goodhisinfo/deliveunit",grd_csrbipumlist.valueMatrix(iRow,grd_csrbipumlist.colRef("deliveunit")));
  1080. model.setValue("/root/cond/goodhisinfo/dinfdivs",grd_csrbipumlist.labelMatrix(iRow,grd_csrbipumlist.colRef("dinfdivs")));
  1081. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  1082. model.makeValue("/root/send/reqdata/deptcd", grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("deptcd")));
  1083. model.makeValue("/root/send/reqdata/goodcd", grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("goodcd")));
  1084. submit("TRRSD00114");
  1085. }
  1086. for(var i =1;i < grd_csrbipumlist.rows;i++){
  1087. var rgstflag = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("rgstflag"));
  1088. var certyn = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("certyn"));
  1089. if((rgstflag =="4")&&(certyn=="Y")){
  1090. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("safestocqty")) = true;
  1091. }else{
  1092. grd_csrbipumlist.colDisabled(grd_csrbipumlist.colRef("safestocqty")) = false;
  1093. }
  1094. }
  1095. grd_csrbipumlist.refresh();
  1096. ]]>
  1097. </script>
  1098. </datagrid>
  1099. <button id="btn_init" class="btn2_letter3" style="left:956px; top:49px; width:53px; height:19px; ">
  1100. <caption>초기화</caption>
  1101. <script type="javascript" ev:event="DOMActivate">
  1102. <![CDATA[
  1103. model.removeNodeset("/root/main/csrinfo/csrbipumlist");
  1104. grd_csrbipumlist.rebuild();
  1105. btn_search.dispatch("DOMActivate");
  1106. ]]>
  1107. </script>
  1108. </button>
  1109. <button id="btn_add" class="btn2_letter2" disabled="true" style="left:1012px; top:49px; width:42px; height:19px; ">
  1110. <caption>추가</caption>
  1111. <script type="javascript" ev:event="DOMActivate">
  1112. <![CDATA[
  1113. grd_csrbipumlist.addRow();
  1114. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("deptnm")) = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptnm"));
  1115. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("deptcd")) = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));
  1116. grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("rgstflag")) = "1";
  1117. ]]>
  1118. </script>
  1119. </button>
  1120. <button id="btn_del" class="btn2_letter2" disabled="true" style="left:1057px; top:49px; width:42px; height:19px; ">
  1121. <caption>삭제</caption>
  1122. <script type="javascript" ev:event="DOMActivate">
  1123. <![CDATA[
  1124. if(grd_csrbipumlist.rowStatus(grd_csrbipumlist.row) == "1" || grd_csrbipumlist.rowStatus(grd_csrbipumlist.row) == "3" ) {
  1125. grd_csrbipumlist.deleteRow(grd_csrbipumlist.row);
  1126. }else{
  1127. if(grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row,grd_csrbipumlist.colRef("rgstflag")) =="1"){
  1128. grd_csrbipumlist.rowStatus(grd_csrbipumlist.row) = "4";
  1129. }
  1130. }
  1131. /*
  1132. var firstRow = grd_csrbipumlist.selectedRow(0);
  1133. var lastRow = grd_csrbipumlist.selectedRow(grd_csrbipumlist.selectedRows-1);
  1134. for(var i = firstRow; i <= lastRow; i++) {
  1135. grd_csrbipumlist.addStatus(i, "delete");
  1136. }*/
  1137. /*if (grd_csrbipumlist.selectedRows > 0) {
  1138. var selectedRows = Array(grd_csrbipumlist.selectedRows);
  1139. for(i=0;i< grd_csrbipumlist.selectedRows;i++) {
  1140. selectedRows[i] = grd_csrbipumlist.selectedRow(i);
  1141. }
  1142. }
  1143. var rowIdx;
  1144. for ( var i= selectedRows.length ; i >= 0 ; i--){
  1145. rowIdx = selectedRows[i];
  1146. grd_csrbipumlist.deleteRow( rowIdx , false);
  1147. }*/
  1148. ]]>
  1149. </script>
  1150. </button>
  1151. <button id="btn_sav1" class="btn5_letter2" disabled="true" style="left:1102px; top:49px; width:42px; height:19px; ">
  1152. <caption>저장</caption>
  1153. <script type="javascript" ev:event="DOMActivate">
  1154. <![CDATA[
  1155. var deptcd = getUserInfo("dutplcecd");
  1156. var chngsafestocqty;
  1157. var reqlmtqty;
  1158. if(model.getValue(rdo_chnginsp.attribute("ref")) == "2") {
  1159. for(var i = grd_csrbipumlist.fixedRows; i < grd_csrbipumlist.rows - 1; i++) {
  1160. chngsafestocqty = grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("chngsafestocqty"));
  1161. reqlmtqty = grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("reqlmtqty"));
  1162. cmt = grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("cmt"));
  1163. if( (chngsafestocqty != "" || chngsafestocqty != "0") && cmt == "") {
  1164. messageBox("비품수량 변경 시 변경사유를 입력하여 주세요.", "E");
  1165. grd_csrbipumlist.col = grd_csrbipumlist.colRef("cmt");
  1166. grd_csrbipumlist.editCell();
  1167. return;
  1168. } else if( (reqlmtqty != "" || reqlmtqty != "0") && cmt == "") {
  1169. messageBox("비품수량 변경 시 변경사유를 입력하여 주세요.", "E");
  1170. grd_csrbipumlist.col = grd_csrbipumlist.colRef("cmt");
  1171. grd_csrbipumlist.editCell();
  1172. return;
  1173. }
  1174. }
  1175. }
  1176. for(var k=1;k< grd_csrbipumlist.rows;k++){
  1177. var SafesTocQty = grd_csrbipumlist.valueMatrix(k, grd_csrbipumlist.colRef("safestocqty"));
  1178. var missqty = grd_csrbipumlist.valueMatrix(k, grd_csrbipumlist.colRef("missqty"));
  1179. var missflag = grd_csrbipumlist.valueMatrix(k, grd_csrbipumlist.colRef("missflag"));
  1180. if((grd_csrbipumlist.rowStatus(k) =="1") || (grd_csrbipumlist.rowStatus(k) =="3")){
  1181. if(SafesTocQty =="0"){
  1182. messageBox("비품등록 수량은 0 일 수","I004");
  1183. return;
  1184. }
  1185. }
  1186. if(missqty!=""){
  1187. if(missflag==""){
  1188. messageBox("분실 수량 등록 시 분실상세 입력은 필수","I009");
  1189. return;
  1190. }
  1191. }
  1192. }
  1193. if(!checkKeyColumn("grd_csrbipumlist")) return;
  1194. fSave("grd_csrbipumlist");
  1195. fSearch();
  1196. ]]>
  1197. </script>
  1198. </button>
  1199. <select1 id="rdo_reqflag" ref="/root/send/reqflag" visibility="hidden" appearance="full" cellspacing="\" cols="4" overflow="visible" style="left:915px; top:35px; width:200px; height:13px; border-style:none; ">
  1200. <choices>
  1201. <item>
  1202. <label>전체</label>
  1203. <value/>
  1204. </item>
  1205. <item>
  1206. <label>비품</label>
  1207. <value>1</value>
  1208. </item>
  1209. <item>
  1210. <label>소모품</label>
  1211. <value>2</value>
  1212. </item>
  1213. <item>
  1214. <label>린넨</label>
  1215. <value>4</value>
  1216. </item>
  1217. </choices>
  1218. <script type="javascript" ev:event="xforms-value-changed">
  1219. <![CDATA[
  1220. fSearch();
  1221. ]]>
  1222. </script>
  1223. </select1>
  1224. <select1 id="rdo_chnginsp" ref="/root/send/chnginsp" visibility="hidden" appearance="full" cols="4" overflow="visible" style="left:680px; top:35px; width:300px; height:13px; border-style:none; ">
  1225. <choices>
  1226. <item>
  1227. <label>등록</label>
  1228. <value>1</value>
  1229. </item>
  1230. <item>
  1231. <label>변경</label>
  1232. <value>2</value>
  1233. </item>
  1234. <item>
  1235. <label>실사</label>
  1236. <value>3</value>
  1237. </item>
  1238. <item>
  1239. <label>분실/파손</label>
  1240. <value>4</value>
  1241. </item>
  1242. </choices>
  1243. </select1>
  1244. <button id="btn_cert" class="btn5_letter2" disabled="true" style="left:1146px; top:49px; width:42px; height:19px; ">
  1245. <caption>확정</caption>
  1246. <script type="javascript" ev:event="DOMActivate">
  1247. <![CDATA[
  1248. var chngsafestocqty;
  1249. for(var i = 1; i <= grd_csrbipumlist.rows-1; i++) {
  1250. chngsafestocqty = grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("chngsafestocqty"));
  1251. if(chngsafestocqty != "" && chngsafestocqty !="0" && grd_csrbipumlist.rowStatus(i) != "0") {
  1252. if(grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("cmt")) == "") {
  1253. messageBox("안전재고 변경시 변경사유를 입력하여주세요.", "E");
  1254. grd_csrbipumlist.col = grd_csrbipumlist.colRef("cmt");
  1255. grd_csrbipumlist.editCell();
  1256. return;
  1257. }
  1258. }
  1259. }
  1260. var allCheck = model.getValue("/root/cond/checkallitem");
  1261. if(allCheck !="Y"){
  1262. if(grd_csrbipumlist.valueMatrix(grd_csrbipumlist.row, grd_csrbipumlist.colRef("certyn")) != "Y"){
  1263. messageBox("확정할 데이터에 확정 check한 후 [확정] 하십시오.","|");
  1264. return;
  1265. }
  1266. }
  1267. for(var i = grd_csrbipumlist.fixedRows; i < grd_csrbipumlist.rows; i++) {
  1268. if(grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("certyn")) == "Y") {
  1269. grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("goodmngtflag")) = "-";
  1270. if(grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("orginspqty")) != ""
  1271. && grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("orginspqty")) != "0") {
  1272. var realqty = grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("realqty"));
  1273. var orginsqty = grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("orginspqty"));
  1274. var sumqty = Number(realqty) - Number(orginsqty);
  1275. grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("realqty")) = grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("orginspqty"));
  1276. if(sumqty > 0) {
  1277. grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("minexch")) = Number(grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("minexch"))) - Number(sumqty);
  1278. } else if(sumqty < 0) {
  1279. grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("minexch")) = Number(grd_csrbipumlist.valueMatrix(i, grd_csrbipumlist.colRef("minexch"))) + Number(sumqty);
  1280. }
  1281. }
  1282. }
  1283. }
  1284. var csrbipumlist = getGridUpdateData(grd_csrbipumlist);
  1285. if(csrbipumlist == "") {
  1286. messageBox("변경된 데이터가","I004");
  1287. return;
  1288. }
  1289. model.makeValue("/root/send/reqdata/csrbipumlist", csrbipumlist);
  1290. if(submit("TXRSD00112")) {
  1291. messageBox("저장이 완료되었습니다.", "I");
  1292. var allCheck = model.getValue("/root/cond/checkallitem");
  1293. if(allCheck=="Y"){
  1294. model.setValue("/root/cond/checkallitem","");
  1295. chk_chkall.refresh();
  1296. }
  1297. }
  1298. fSearch();
  1299. ]]>
  1300. </script>
  1301. </button>
  1302. <button id="button1" class="btn2_letter5" style="left:880px; top:49px; width:75px; height:19px; ">
  1303. <caption>미확정조회</caption>
  1304. <script type="javascript" ev:event="DOMActivate">
  1305. <![CDATA[
  1306. /*clearParameter("deptcd");
  1307. clearParameter("deptnm");
  1308. setParameter("deptcd",model.getValue("/root/send/deptcd"));
  1309. setParameter("deptnm",model.getValue("/root/send/deptnm"));*/
  1310. modal("SMRSS00103");
  1311. ]]>
  1312. </script>
  1313. </button>
  1314. <output id="opt_csrdeptnm" class="output_fix" style="left:0px; top:74px; width:200px; height:41px; font-weight:bold; text-align:center; "/>
  1315. <button id="btn_rgst" class="btn_sw" group="sw" selected="true" style="left:330px; top:47px; width:64px; height:22px; text-align:center; ">
  1316. <caption>등록</caption>
  1317. <script type="javascript" ev:event="DOMActivate">
  1318. <![CDATA[
  1319. model.setValue(rdo_chnginsp.attribute("ref"), "1");
  1320. rdo_chnginsp.refresh();
  1321. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("setcd")) = true;
  1322. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("setnm")) = true;
  1323. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("proddrugsetflag")) = true;
  1324. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("chngsafestocqty")) = true;
  1325. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("reqlmtqty")) = true;
  1326. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("orginspqty")) = true;
  1327. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("missflag")) = true;
  1328. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("missqty")) = true;
  1329. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("hdrncqty")) = true;
  1330. if(model.getValue("/root/tmp/initflag") !="init"){
  1331. fSearch();
  1332. fChgColDIsAbled();
  1333. }
  1334. ]]>
  1335. </script>
  1336. </button>
  1337. <button id="btn_chg" class="btn_sw" group="sw" style="left:395px; top:47px; width:64px; height:22px; text-align:center; ">
  1338. <caption>변경</caption>
  1339. <script type="javascript" ev:event="DOMActivate">
  1340. <![CDATA[
  1341. model.setValue(rdo_chnginsp.attribute("ref"), "2");
  1342. rdo_chnginsp.refresh();
  1343. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("setcd")) = true;
  1344. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("setnm")) = true;
  1345. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("proddrugsetflag")) = true;
  1346. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("chngsafestocqty")) = false;
  1347. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("reqlmtqty")) = false;
  1348. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("orginspqty")) = true;
  1349. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("missflag")) = true;
  1350. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("missqty")) = true;
  1351. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("hdrncqty")) = true;
  1352. fSearch();
  1353. fChgColDIsAbled();
  1354. ]]>
  1355. </script>
  1356. </button>
  1357. <button id="button4" class="btn_sw5" group="sw" style="left:460px; top:47px; width:64px; height:22px; text-align:center; ">
  1358. <caption>분실/파손</caption>
  1359. <script type="javascript" ev:event="DOMActivate">
  1360. <![CDATA[
  1361. model.setValue(rdo_chnginsp.attribute("ref"), "4");
  1362. rdo_chnginsp.refresh();
  1363. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("reqflag")) = true;
  1364. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("setcd")) = false;
  1365. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("setnm")) = false;
  1366. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("proddrugsetflag")) = false;
  1367. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("chngsafestocqty")) = true;
  1368. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("reqlmtqty")) = true;
  1369. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("orginspqty")) = true;
  1370. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("missflag")) = false;
  1371. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("missqty")) = false;
  1372. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("hdrncqty")) = false;
  1373. fSearch();
  1374. fChgColDIsAbled();
  1375. // grd_csrbipumlist.rebuild();
  1376. // setTree(grd_csrbipumlist , grd_csrbipumlist.colRef("proddrugseqno"), grd_csrbipumlist.colRef("setcd"),true);
  1377. ]]>
  1378. </script>
  1379. </button>
  1380. <button id="btn_org" class="btn_sw" group="sw" style="left:535px; top:47px; width:64px; height:22px; text-align:center; ">
  1381. <caption>실사</caption>
  1382. <script type="javascript" ev:event="DOMActivate">
  1383. <![CDATA[
  1384. model.setValue(rdo_chnginsp.attribute("ref"), "3");
  1385. rdo_chnginsp.refresh();
  1386. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("setcd")) = true;
  1387. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("setnm")) = true;
  1388. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("proddrugsetflag")) = true;
  1389. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("chngsafestocqty")) = true;
  1390. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("reqlmtqty")) = true;
  1391. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("orginspqty")) = false;
  1392. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("missflag")) = true;
  1393. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("missqty")) = true;
  1394. grd_csrbipumlist.colHidden(grd_csrbipumlist.colRef("hdrncqty")) = true;
  1395. fSearch();
  1396. fChgColDIsAbled();
  1397. ]]>
  1398. </script>
  1399. </button>
  1400. <select1 id="cmb_dept" ref="/root/send/dept" visibility="hidden" appearance="minimal" style="left:215px; top:40px; width:100px; height:19px; ">
  1401. <choices>
  1402. <itemset nodeset="/root/main/deptcodelist">
  1403. <label ref="depthngnm"/>
  1404. <value ref="deptcd"/>
  1405. </itemset>
  1406. </choices>
  1407. </select1>
  1408. <datagrid id="datagrid1" nodeset="/root/main/csrhistinfo/csrbipumhistlist" class="datagrid2" caption="부서코드^상태^물품&#xA;구분^부서명^물품코드^물품명^규격^모델^단위^멸균구분^처음&#xA;재고^비품&#xA;수량^재고&#xA;수량^청구&#xA;수량^반납&#xA;수량^파손&#xA;수량^분실&#xA;수량^분실상세^실사량^사유^수리&#xA;수량^확정^비품관리구분^불출/반납&#xA;수량^최종&#xA;저장일시^최종&#xA;저장자^최종&#xA;확정일시^최종&#xA;확정자^수정자ID^수정자^수정일자^최초&#xA;등록일자^청구구분^instcd^goodflag^purcunit^minexch^ddavguseqty^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^reqflag" colsep="^" colwidth="0, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 50, 50, 50, 50, 100, 55, 100, 48, 37, 60, 77, 100, 60, 100, 60, 70, 70, 80, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" frozencols="8" mergecellsfixedrows="bycol" rowheader="update" rowsep="|" style="left:205px; top:500px; width:987px; height:225px; ">
  1409. <col class="input_essential" ref="deptcd" visibility="hidden" _key="true"/>
  1410. <col disabled="true" ref="rgstflag" type="combo" style="text-align:center; ">
  1411. <choices>
  1412. <item>
  1413. <label>등록</label>
  1414. <value>1</value>
  1415. </item>
  1416. <item>
  1417. <label>변경</label>
  1418. <value>2</value>
  1419. </item>
  1420. <item>
  1421. <label>실사</label>
  1422. <value>3</value>
  1423. </item>
  1424. <item>
  1425. <label>확정</label>
  1426. <value>4</value>
  1427. </item>
  1428. <item>
  1429. <label>분실</label>
  1430. <value>5</value>
  1431. </item>
  1432. <item>
  1433. <label>파손</label>
  1434. <value>6</value>
  1435. </item>
  1436. </choices>
  1437. </col>
  1438. <col disabled="true" ref="reqflag" type="combo" visibility="hidden" style="text-align:center; ">
  1439. <choices>
  1440. <item>
  1441. <label>비품</label>
  1442. <value>1</value>
  1443. </item>
  1444. <item>
  1445. <label>소모품</label>
  1446. <value>2</value>
  1447. </item>
  1448. <item>
  1449. <label>린넨</label>
  1450. <value>4</value>
  1451. </item>
  1452. <item>
  1453. <label>멸균품목</label>
  1454. <value>3</value>
  1455. </item>
  1456. <item>
  1457. <label>세척멸균품목</label>
  1458. <value>5</value>
  1459. </item>
  1460. </choices>
  1461. </col>
  1462. <col ref="deptnm" visibility="hidden"/>
  1463. <col class="input_essential" ref="goodcd" type="inputbutton" visibility="hidden" _key="true"/>
  1464. <col ref="goodnm" visibility="hidden"/>
  1465. <col ref="goodspec" visibility="hidden"/>
  1466. <col ref="goodmodel" visibility="hidden"/>
  1467. <col ref="deliveunit" visibility="hidden"/>
  1468. <col disabled="true" ref="dinfdivs" type="combo" visibility="hidden">
  1469. <choices>
  1470. <item>
  1471. <label>멸균</label>
  1472. <value>1</value>
  1473. </item>
  1474. <item>
  1475. <label>비멸균</label>
  1476. <value>2</value>
  1477. </item>
  1478. </choices>
  1479. </col>
  1480. <col ref="minexch"/>
  1481. <!-- 처음재고수량(처음 안전재고를 입력시에 처음 가질 재고량) -->
  1482. <col ref="safestocqty" type="input" format="(-)#,###.##" style="text-align:right; "/>
  1483. <col ref="realqty"/>
  1484. <col disabled="true" ref="chngsafestocqty" type="input" style="text-align:right; "/>
  1485. <col ref="reqlmtqty" type="input" style="text-align:right; "/>
  1486. <col ref="hdrncqty" type="input" style="text-align:right; "/>
  1487. <col ref="missqty" type="input" style="text-align:right; "/>
  1488. <col ref="missflag" type="combo" style="text-align:center; ">
  1489. <choices>
  1490. <item>
  1491. <label>비품변경없이청구</label>
  1492. <value>1</value>
  1493. </item>
  1494. <item>
  1495. <label>비품수량감소</label>
  1496. <value>2</value>
  1497. </item>
  1498. </choices>
  1499. </col>
  1500. <col ref="orginspqty" style="text-align:right; "/>
  1501. <col ref="cmt" type="input"/>
  1502. <col ref="rpirqty" type="input" visibility="hidden" style="text-align:right; "/>
  1503. <col checkvalue="Y,N" ref="certyn" type="checkbox" visibility="hidden"/>
  1504. <col class="input_essential" ref="goodmngtflag" type="combo" visibility="hidden" _key="true">
  1505. <choices>
  1506. <item>
  1507. <label>청구</label>
  1508. <value>1</value>
  1509. </item>
  1510. <item>
  1511. <label>반납</label>
  1512. <value>2</value>
  1513. </item>
  1514. </choices>
  1515. </col>
  1516. <col ref="mngtqty" visibility="hidden"/>
  1517. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn"/>
  1518. <col ref="lastupdtrnm" style="text-align:center; "/>
  1519. <col ref="certdt" format="yyyy-mm-dd hh:nn"/>
  1520. <col ref="certnm" style="text-align:center; "/>
  1521. <col ref="lastupdtrid" visibility="hidden"/>
  1522. <col ref="lastupdtrnm" visibility="hidden"/>
  1523. <col ref="lastupdtdt" visibility="hidden" format="yyyy-mm-dd"/>
  1524. <col ref="fstrgstdt" visibility="hidden" format="yyyy-mm-dd"/>
  1525. <col ref="reqflag" visibility="hidden"/>
  1526. <col ref="instcd" visibility="hidden"/>
  1527. <col ref="goodflag" visibility="hidden"/>
  1528. <col ref="purcunit" visibility="hidden"/>
  1529. <col ref="minexch" visibility="hidden"/>
  1530. <col ref="ddavguseqty" visibility="hidden"/>
  1531. <col ref="lrgcd" visibility="hidden"/>
  1532. <col ref="lrgnm" visibility="hidden"/>
  1533. <col ref="mdlcd" visibility="hidden"/>
  1534. <col ref="mdlnm" visibility="hidden"/>
  1535. <col ref="smlcd" visibility="hidden"/>
  1536. <col ref="smlnm" visibility="hidden"/>
  1537. <col ref="reqflag" visibility="hidden"/>
  1538. <script type="javascript" ev:event="onbuttonclick">
  1539. <![CDATA[
  1540. fGridSetData("grd_csrbipumlist");
  1541. ]]>
  1542. </script>
  1543. </datagrid>
  1544. <input id="ipt_deptcd" ref="/root/send/dept" visibility="hidden" style="left:95px; top:45px; width:100px; height:19px; "/>
  1545. <select id="checkbox1" ref="/root/send/rgstflag" overflow="visible" appearance="full" style="left:795px; top:52px; width:80px; height:14px; border-style:none; ">
  1546. <choices>
  1547. <item>
  1548. <label>미확정조회</label>
  1549. <value>4</value>
  1550. </item>
  1551. </choices>
  1552. <script type="javascript" ev:event="xforms-value-changed">
  1553. <![CDATA[
  1554. fSearch();
  1555. ]]>
  1556. </script>
  1557. </select>
  1558. <caption id="caption7" class="cell_2" style="left:205px; top:444px; width:105px; height:25px; vertical-align:middle; ">부서명</caption>
  1559. <caption id="caption8" class="cell_2" style="left:312px; top:444px; width:105px; height:25px; vertical-align:middle; ">물품코드</caption>
  1560. <caption id="caption10" class="cell_2" style="left:419px; top:444px; width:205px; height:25px; vertical-align:middle; ">물품명</caption>
  1561. <caption id="caption11" class="cell_2" style="left:626px; top:444px; width:105px; height:25px; vertical-align:middle; ">규격</caption>
  1562. <caption id="caption12" class="cell_2" style="left:733px; top:444px; width:105px; height:25px; vertical-align:middle; ">모델</caption>
  1563. <caption id="caption13" class="cell_2" style="left:840px; top:444px; width:105px; height:25px; vertical-align:middle; ">단위</caption>
  1564. <caption id="caption14" class="cell_2" style="left:947px; top:444px; width:105px; height:25px; vertical-align:middle; ">멸균구분</caption>
  1565. <output id="output1" ref="/root/cond/goodhisinfo/deptnm" class="output_fix" style="left:205px; top:472px; width:105px; height:19px; text-align:center; "/>
  1566. <output id="output2" ref="/root/cond/goodhisinfo/goodcd" class="output_fix" style="left:312px; top:472px; width:105px; height:19px; text-align:center; "/>
  1567. <output id="output3" ref="/root/cond/goodhisinfo/goodnm" class="output_fix" style="left:419px; top:472px; width:205px; height:19px; text-align:center; "/>
  1568. <output id="output4" ref="/root/cond/goodhisinfo/goodspec" class="output_fix" style="left:626px; top:472px; width:105px; height:19px; text-align:center; "/>
  1569. <output id="output5" ref="/root/cond/goodhisinfo/goodmodel" class="output_fix" style="left:733px; top:472px; width:105px; height:19px; text-align:center; "/>
  1570. <output id="output6" ref="/root/cond/goodhisinfo/deliveunit" class="output_fix" style="left:840px; top:472px; width:105px; height:19px; text-align:center; "/>
  1571. <output id="output7" ref="/root/cond/goodhisinfo/dinfdivs" class="output_fix" style="left:947px; top:472px; width:105px; height:19px; text-align:center; "/>
  1572. <line id="line4" class="line_1" style="x1:205px; y1:495px; x2:1191px; y2:495px; "/>
  1573. <select id="chk_chkall" ref="/root/cond/checkallitem" overflow="visible" appearance="full" style="left:685px; top:52px; width:100px; height:20px; border-style:none; ">
  1574. <choices>
  1575. <item>
  1576. <label>ALL CHECK</label>
  1577. <value>Y</value>
  1578. </item>
  1579. </choices>
  1580. <script type="javascript" ev:event="xforms-value-changed">
  1581. <![CDATA[
  1582. var allCheck = model.getValue("/root/cond/checkallitem");
  1583. if(allCheck =="Y"){
  1584. for(var i=1; i< grd_csrbipumlist.rows;i++){
  1585. var CertYn = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("certyn"));
  1586. var GoodCD = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("goodcd"));
  1587. if((CertYn=="N")||(CertYn=="")){
  1588. model.setValue("/root/main/csrinfo/csrbipumlist["+i+"]/certyn","Y");
  1589. if(GoodCD!=""){
  1590. grd_csrbipumlist.rowStatus(i)="2";
  1591. }
  1592. }
  1593. }
  1594. }else{
  1595. for(var i=1; i< grd_csrbipumlist.rows;i++){
  1596. var readOnly = grd_csrbipumlist.isReadOnly(i,grd_csrbipumlist.colRef("certyn"));
  1597. var GoodCD = grd_csrbipumlist.valueMatrix(i,grd_csrbipumlist.colRef("goodcd"));
  1598. if(readOnly =="0"){
  1599. model.setValue("/root/main/csrinfo/csrbipumlist["+i+"]/certyn","N");
  1600. if(GoodCD !=""){
  1601. grd_csrbipumlist.rowStatus(i)="0";
  1602. }
  1603. }
  1604. }
  1605. }
  1606. grd_csrbipumlist.refresh();
  1607. ]]>
  1608. </script>
  1609. </select>
  1610. </group>
  1611. <group id="group1" style="left:0px; top:12px; width:1195px; height:27px; ">
  1612. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1190px; y2:25px; "/>
  1613. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  1614. <caption>출력</caption>
  1615. </button>
  1616. <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:57px; top:3px; width:80px; height:22px; ">
  1617. <caption>화면이동</caption>
  1618. </button>
  1619. </group>
  1620. </xhtml:body>
  1621. </xhtml:html>