SMRSG06100_(재고자산)실사량 입력.xrw 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>재고자산 실사량 입력</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <stokasetcnfminfo>
  12. <stokasetcnfmlist/>
  13. <inputyninfo>
  14. <inputyn/>
  15. </inputyninfo>
  16. </stokasetcnfminfo>
  17. <iptstokasetcnfminfo>
  18. <iptstokasetcnfm>
  19. <goodcd/>
  20. <goodnm/>
  21. <allsizespecid/>
  22. <allsizespecidnm/>
  23. <goodmodel/>
  24. <totstocqty/>
  25. <cnfmstockqty/>
  26. <inputyn/>
  27. <goodflag>Y</goodflag>
  28. </iptstokasetcnfm>
  29. <iptvalichkflag>
  30. <valichkflag/>
  31. </iptvalichkflag>
  32. </iptstokasetcnfminfo>
  33. <tmpstokasetcnfminfo>
  34. <tmpstokasetcnfmlist/>
  35. </tmpstokasetcnfminfo>
  36. <inputyninfo>
  37. <inputyndesc/>
  38. </inputyninfo>
  39. </list>
  40. </main>
  41. <send>
  42. <search>
  43. <execyymm/>
  44. <instcd/>
  45. <goodflag>Y</goodflag>
  46. <lrgcd/>
  47. <mdlcd/>
  48. <goodcd/>
  49. <goodnm/>
  50. <jobflag>R</jobflag>
  51. <purcflag/>
  52. <stocmngtflag/>
  53. </search>
  54. <ipt_search>
  55. <execyymm/>
  56. <instcd/>
  57. <goodflag/>
  58. <goodcd/>
  59. <goodnm/>
  60. <allsizespecid/>
  61. <allsizespecidnm/>
  62. <purcflag/>
  63. <stocmngtflag/>
  64. </ipt_search>
  65. <stokasetcnfmlist/>
  66. <iptstokasetcnfm/>
  67. <goodcdinfo>
  68. <execyymm/>
  69. <instcd/>
  70. <goodflag/>
  71. <goodcd/>
  72. <allsizespecid/>
  73. <jobflag>I</jobflag>
  74. <inputyn>N</inputyn>
  75. <purcflag/>
  76. <stocmngtflag/>
  77. </goodcdinfo>
  78. <popuppara>
  79. <instcd/>
  80. <goodflag/>
  81. <goodcd/>
  82. <allsizespecid/>
  83. </popuppara>
  84. </send>
  85. <save>
  86. <iptstokasetcnfm>
  87. <goodcd/>
  88. <goodnm/>
  89. <allsizespecid/>
  90. <allsizespecidnm/>
  91. <goodmodel/>
  92. <totstocqty/>
  93. <cnfmstockqty/>
  94. </iptstokasetcnfm>
  95. </save>
  96. <init>
  97. </init>
  98. <temp>
  99. <rstinfo>
  100. <allsizespecid/>
  101. <allsizespecidnm/>
  102. </rstinfo>
  103. <inputyninfo/>
  104. <barcdinfo>
  105. <barcd/>
  106. </barcdinfo>
  107. </temp>
  108. </root>
  109. </instance>
  110. <submission id="TRRSG06102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/stokasetcnfminfo"/>
  111. <submission id="TRRSG06103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcdinfo" resultref="/root/main/list/tmpstokasetcnfminfo"/>
  112. <submission id="TRRSG06104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodcdinfo" resultref="/root/main/list/tmpstokasetcnfminfo"/>
  113. <submission id="TXRSG06101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/iptstokasetcnfm" resultref="/root/temp"/>
  114. <submission id="TXRSG06102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/stokasetcnfmlist" resultref="/root/temp"/>
  115. <submission id="TRRSG06105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ipt_search" resultref="/root/main/list/iptstokasetcnfminfo"/>
  116. </model>
  117. <script type="javascript" ev:event="xforms-ready">
  118. <![CDATA[
  119. //화면 Control을 초기화한다
  120. fInitialize();
  121. ]]>
  122. </script>
  123. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  124. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  125. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  126. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  127. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  128. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  129. <script type="javascript">
  130. <![CDATA[
  131. // --------------------------------------------------
  132. // Data Part Toggle 속성Toggle 처리하는 함수
  133. // --------------------------------------------------
  134. function fDataPartToggle(pCls) {
  135. switch(pCls) {
  136. case 0 :
  137. // 메인 Grup
  138. grp_main.attribute("left" ) = "285";
  139. grp_main.attribute("width" ) = "906";
  140. grp_button.attribute("left" ) = "505";
  141. lin_main.attribute("x2" ) = "905";
  142. grd_stokasetcnfmlist.attribute("width")= "905";
  143. grp_main.refresh();
  144. break;
  145. case 1 :
  146. // 메인 Grup
  147. grp_main.attribute("left" ) = "0";
  148. grp_main.attribute("width" ) = "1191";
  149. grp_button.attribute("left" ) = "790";
  150. lin_main.attribute("x2" ) = "1191";
  151. grd_stokasetcnfmlist.attribute("width")= "1191";
  152. grp_main.refresh();
  153. break;
  154. }
  155. }
  156. function fInputData(){
  157. for (var i=grd_stokasetcnfmlist.fixedRows; i<grd_stokasetcnfmlist.rows; i++){
  158. if ( grd_stokasetcnfmlist.valueMatrix(i, grd_stokasetcnfmlist.colRef("goodcd")) == model.getValue(ipt_goodcd.attribute("ref"))
  159. && grd_stokasetcnfmlist.valueMatrix(i, grd_stokasetcnfmlist.colRef("allsizespecid")) == model.getValue(ipt_allsizespecid.attribute("ref"))){
  160. messageBox("중복 입력된 데이타 ","I009");
  161. return;
  162. }
  163. }
  164. submit("TRRSG06104");
  165. inputyn = model.getValue("/root/main/list/tmpstokasetcnfminfo/tmpstokasetcnfmlist/inputyn");
  166. if (inputyn == "N"){
  167. messageBox("이미 입력된 데이타 ","I009");
  168. return;
  169. }
  170. submit("TRRSG06105");
  171. var valichkflag = model.getValue("/root/main/list/iptstokasetcnfminfo/iptvalichkflag/valichkflag");
  172. if (valichkflag == "0"){
  173. messageBox("해당 데이타가 ","E014");
  174. return;
  175. }else if(valichkflag == "9"){
  176. messageBox("1건 이상의 데이타가 존재하고.","I010");
  177. return;
  178. }
  179. //model.setValue("/root/send/goodcdinfo/goodflag", model.getValue(cmb_goodflag.attribute("ref")));
  180. submit("TRRSG06103");
  181. grd_stokasetcnfmlist.addRow();
  182. var Path = "/root/main/list/tmpstokasetcnfminfo/tmpstokasetcnfmlist/";
  183. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("chk")) = "Y";
  184. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("execyymm")) = model.getValue(Path+"execyymm");
  185. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("instcd")) = model.getValue(Path+"instcd");
  186. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("goodflag")) = model.getValue(Path+"goodflag");
  187. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("goodcd")) = model.getValue(Path+"goodcd");
  188. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("allsizespecid")) = model.getValue(Path+"allsizespecid");
  189. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("goodnm")) = model.getValue(Path+"goodnm");
  190. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("allsizespecidnm")) = model.getValue(Path+"allsizespecidnm");
  191. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("goodmodel")) = model.getValue(Path+"goodmodel");
  192. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("prodcmpynm")) = model.getValue(Path+"prodcmpynm");
  193. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("maincustnm")) = model.getValue(Path+"maincustnm");
  194. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("subcustnm")) = model.getValue(Path+"subcustnm");
  195. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("totstocqty")) = model.getValue(Path+"totstocqty");
  196. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("cnfmstockqty")) = model.getValue(Path+"cnfmstockqty");
  197. model.refresh();
  198. }
  199. function fInitialize()
  200. {
  201. misfComboComCdListMulti("R0069,R0111,Z0007","cmb_stocmngtflag,cmb_purcflag,cmb_instcd");
  202. model.setValue(ipt_execyymm.attribute("ref") , getCurrentDate());
  203. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  204. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  205. addComboItem( "cmb_lrgcd" , "전체", "", "above");
  206. addComboItem( "cmb_stocmngtflag" , "전체", "", "above");
  207. addComboItem( "cmb_purcflag" , "전체", "", "above");
  208. model.removeNodeset("/root/main/list/stokasetcnfminfo");
  209. model.setFocus("ipt_barcdinfo");
  210. model.refresh();
  211. }
  212. ]]>
  213. </script>
  214. </xhtml:head>
  215. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  216. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  217. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">재고자산 실사량 입력</caption>
  218. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  219. </group>
  220. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  221. <group id="grp_input" style="left:0px; top:85px; width:278px; height:620px; vertical-align:top; ">
  222. <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:4px; top:45px; width:270px; height:330px; background-color:#fffbf2; border-color:#ffd799; "/>
  223. <caption id="caption10" class="tit_2" style="left:0px; top:17px; width:143px; height:14px; ">실사량 입력</caption>
  224. <line id="line1" class="line_1" style="x1:0px; y1:34px; x2:275px; y2:34px; "/>
  225. <button id="btn_iptsave" class="btn2_letter2" style="left:224px; top:55px; width:42px; height:19px; ">
  226. <caption>저장</caption>
  227. <script type="javascript" ev:event="onclick">
  228. <![CDATA[
  229. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  230. if ( retMes != 6) {
  231. return;
  232. }
  233. var save, status;
  234. var mPath = "/root/send/search/";
  235. var dPath = "/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/";
  236. var execyymm = model.getValue(mPath+"execyymm" );
  237. var instcd = model.getValue(mPath+"instcd" );
  238. var goodflag = model.getValue(dPath+"goodcd" ).substr(0, 1);
  239. var goodcd = model.getValue(dPath+"goodcd" );
  240. var goodnm = model.getValue(dPath+"goodnm" );
  241. var allsizespecid = model.getValue(dPath+"allsizespecid" );
  242. var allsizespecidnm = model.getValue(dPath+"allsizespecidnm" );
  243. var goodmodel = model.getValue(dPath+"goodmodel" );
  244. var totstocqty = model.getValue(dPath+"totstocqty" );
  245. var cnfmstockqty = model.getValue(dPath+"cnfmstockqty" );
  246. var inputyn = model.getValue(dPath+"inputyn" );
  247. model.resetInstanceNode("/root/send/iptstokasetcnfm");
  248. if (inputyn == "Y"){
  249. status = "i";
  250. }else{
  251. status = "u";
  252. }
  253. var save = "m▦execyymm▦instcd▦goodflag▦goodcd▦allsizespecid▦goodmodel▦totstocqty▦cnfmstockqty▦inputyn▩";
  254. save += status + "▦";
  255. save += execyymm.substr(0, 6) + "▦";
  256. save += instcd + "▦";
  257. save += goodflag + "▦";
  258. save += goodcd + "▦";
  259. save += allsizespecid + "▦";
  260. save += goodmodel + "▦";
  261. save += totstocqty + "▦";
  262. save += cnfmstockqty + "▦";
  263. save += inputyn + "▩";
  264. model.setValue("/root/send/iptstokasetcnfm" , save);
  265. submit("TXRSG06101");
  266. //model.refresh();
  267. //model.resetInstanceNode("/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm");
  268. btn_iptsearch.dispatch("DOMActivate");
  269. btn_search.dispatch("DOMActivate");
  270. ]]>
  271. </script>
  272. </button>
  273. <button id="btn_iptgoodcd" class="icon_search" style="left:251px; top:119px; width:16px; height:16px; ">
  274. <caption/>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. rszfOpenPopUpListByWndName(ipt_iptgoodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  278. //rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag,reqflag","cmb_instcd,cmb_goodflag,cmb_reqflag");
  279. model.refresh();
  280. ]]>
  281. </script>
  282. </button>
  283. <caption id="caption3" class="search_name" style="left:18px; top:119px; width:81px; height:17px; ">물품코드 :</caption>
  284. <input id="ipt_iptgoodnm" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/goodnm" class="output_search" style="left:107px; top:150px; width:155px; height:19px; "/>
  285. <input id="ipt_iptgoodcd" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/goodcd" class="input_search" appearance="input" style="left:107px; top:119px; width:131px; height:19px; ">
  286. <script type="javascript" ev:event="xforms-value-changed">
  287. <![CDATA[
  288. cmb_iptgoodflag.value = model.getValue(ipt_iptgoodcd.attribute("ref")).substr(0, 1);
  289. ]]>
  290. </script>
  291. </input>
  292. <caption id="caption5" class="search_name" style="left:18px; top:150px; width:93px; height:17px; ">물 품 명 :</caption>
  293. <button id="btn_iptsearch" class="btn2_letter2" style="left:174px; top:55px; width:42px; height:19px; ">
  294. <caption>조회</caption>
  295. <script type="javascript" ev:event="DOMActivate">
  296. <![CDATA[
  297. // if(!isRequiredControls("cmb_iptgoodflag")) return;
  298. var SPath1 = "/root/send/search/";
  299. var SPath2 = "/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/";
  300. var DPath = "/root/send/ipt_search/";
  301. var valichkflag, inputyn;
  302. model.setValue( DPath + "purcflag" , model.getValue( SPath1 + "purcflag"));
  303. model.setValue( DPath + "stocmngtflag" , model.getValue( SPath1 + "stocmngtflag"));
  304. model.setValue( DPath + "execyymm" , model.getValue( SPath1 + "execyymm").substr(0, 6));
  305. model.setValue( DPath + "instcd" , model.getValue( SPath1 + "instcd"));
  306. model.setValue( DPath + "goodflag" , model.getValue( SPath2 + "goodflag").toUpperCase());
  307. model.setValue( DPath + "goodcd" , model.getValue( SPath2 + "goodcd").toUpperCase());
  308. model.setValue( DPath + "goodnm" , model.getValue( SPath2 + "goodnm"));
  309. model.setValue( DPath + "allsizespecid" , model.getValue( SPath2 + "allsizespecid"));
  310. model.setValue( DPath + "allsizespecidnm" , model.getValue( SPath2 + "allsizespecidnm"));
  311. submit("TRRSG06105");
  312. inputyn = model.getValue("/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/inputyn");
  313. valichkflag = model.getValue("/root/main/list/iptstokasetcnfminfo/iptvalichkflag/valichkflag");
  314. if (valichkflag == "0"){
  315. messageBox("해당 데이타가 ","E014");
  316. model.setValue( ipt_iptgoodcd.attribute("ref") , "");
  317. }else if(valichkflag == "9"){
  318. messageBox("1건 이상의 데이타가 존재하고.","I010");
  319. }
  320. if (inputyn == "Y"){
  321. cap_inputyndesc.value = "※ 추가 할 수 있는 데이타 입니다.";
  322. }else if (inputyn == "N"){
  323. cap_inputyndesc.value = "※ 수정 할 수 있는 데이타 입니다.";
  324. }else{
  325. cap_inputyndesc.value = "";
  326. }
  327. model.refresh();
  328. ]]>
  329. </script>
  330. </button>
  331. <caption id="caption9" class="search_name" style="left:18px; top:210px; width:95px; height:17px; ">규 격 명 :</caption>
  332. <input id="ipt_iptallsizespecidnm" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/allsizespecidnm" class="output_search" style="left:107px; top:210px; width:155px; height:19px; "/>
  333. <input id="ipt_iptgoodmodel" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/goodmodel" class="output_search" style="left:107px; top:240px; width:155px; height:19px; ">
  334. <script type="javascript" ev:event="xforms-value-changed">
  335. <![CDATA[
  336. if(ipt_goodnm.value != ""){
  337. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,reqflag,goodcd,goodnm",
  338. "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_reqflag.attribute("ref")) + ",," + model.getValue(ipt_goodnm.attribute("ref"))
  339. ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd");
  340. }else{
  341. ipt_goodcd.value = "";
  342. }
  343. model.refresh();
  344. btn_search.dispatch("DOMActivate");
  345. ]]>
  346. </script>
  347. </input>
  348. <caption id="caption11" class="search_name" style="left:18px; top:240px; width:95px; height:17px; ">모 델 :</caption>
  349. <caption id="caption12" class="search_name" style="left:18px; top:275px; width:104px; height:17px; ">현재고 수량 :</caption>
  350. <input id="ipt_ipttotstocqty" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/totstocqty" class="output_search" disabled="false" format="#,###" style="left:137px; top:275px; width:125px; height:19px; text-align:right; ">
  351. <script type="javascript" ev:event="xforms-value-changed">
  352. <![CDATA[
  353. if(ipt_goodnm.value != ""){
  354. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,reqflag,goodcd,goodnm",
  355. "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + "," + model.getValue(cmb_reqflag.attribute("ref")) + ",," + model.getValue(ipt_goodnm.attribute("ref"))
  356. ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd");
  357. }else{
  358. ipt_goodcd.value = "";
  359. }
  360. model.refresh();
  361. btn_search.dispatch("DOMActivate");
  362. ]]>
  363. </script>
  364. </input>
  365. <caption id="caption13" class="search_name" style="left:18px; top:310px; width:106px; height:17px; ">실사 수량 :</caption>
  366. <input id="ipt_iptcnfmstockqty" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/cnfmstockqty" class="input_search" format="#,###" style="left:137px; top:310px; width:125px; height:19px; text-align:right; "/>
  367. <input id="ipt_inputyn" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/inputyn" visibility="hidden" style="left:19px; top:55px; width:55px; height:19px; "/>
  368. <caption id="caption14" class="search_name" style="left:18px; top:180px; width:106px; height:17px; ">규격코드 :</caption>
  369. <input id="ipt_iptallsizespecid" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/allsizespecid" class="input_search" style="left:107px; top:180px; width:131px; height:19px; "/>
  370. <button id="btn_iptallsizespecid" class="icon_search" style="left:251px; top:180px; width:16px; height:16px; ">
  371. <caption/>
  372. <script type="javascript" ev:event="DOMActivate">
  373. <![CDATA[
  374. var dPath ="/root/send/popuppara/" ;
  375. var sPath ="/root/send/search/" ;
  376. var sPath2 ="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/" ;
  377. // 규격코드 정보 popup에 Parameter값을 Setting
  378. model.setValue(dPath+"instcd" , model.getValue(sPath+"instcd" ));
  379. model.setValue(dPath+"goodflag" , model.getValue(sPath+"goodflag" ));
  380. model.setValue(dPath+"allsizespecid" , model.getValue(sPath+"allsizespecid"));
  381. model.setValue(dPath+"goodcd" , model.getValue(sPath2+"goodcd" ));
  382. setParameter("SMRSG06200_popuppara", getNodeListCSV(model.instances(0).selectNodes("/root/send/popuppara")) );
  383. modal("SMRSG06200");
  384. model.removenode("/root/temp/rstinfo");
  385. var csv_rstinfo = getParameter("SMRSG06100_rstinfo");
  386. setCSVToNode("/root/temp", csv_rstinfo, "rstinfo");
  387. model.setValue(ipt_iptallsizespecid.attribute("ref") , model.getValue("/root/temp/rstinfo/allsizespecid"));
  388. model.setValue(ipt_iptallsizespecidnm.attribute("ref") , model.getValue("/root/temp/rstinfo/allsizespecidnm"));
  389. model.refresh();
  390. ]]>
  391. </script>
  392. </button>
  393. <caption id="cap_inputyndesc" style="left:14px; top:345px; width:255px; height:17px; "/>
  394. <select1 id="cmb_iptgoodflag" ref="/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/goodflag" class="combo_default" appearance="minimal" style="left:107px; top:88px; width:155px; height:19px; ">
  395. <choices>
  396. <item>
  397. <label>의료비품</label>
  398. <value>U</value>
  399. </item>
  400. <item>
  401. <label>약품</label>
  402. <value>P</value>
  403. </item>
  404. <item>
  405. <label>의료소모품</label>
  406. <value>Y</value>
  407. </item>
  408. <item>
  409. <label>공급실물품</label>
  410. <value>T</value>
  411. </item>
  412. <item>
  413. <label>일반소모품</label>
  414. <value>Z</value>
  415. </item>
  416. </choices>
  417. <script type="javascript" ev:event="xforms-value-changed">
  418. <![CDATA[
  419. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  420. addComboItem( "cmb_lrgcd", "전체", "", "above");
  421. cmb_mdlcd.value='';
  422. model.refresh();
  423. ]]>
  424. </script>
  425. </select1>
  426. <caption id="caption2" class="search_name" style="left:18px; top:87px; width:81px; height:17px; ">물품구분 :</caption>
  427. <button id="btn_barcd" class="btn2_letter6" style="left:80px; top:55px; width:86px; height:19px; ">
  428. <caption>바코드 입력</caption>
  429. <script type="javascript" ev:event="DOMActivate">
  430. <![CDATA[
  431. model.resetInstanceNode("/root/temp/barcdinfo/barcd");
  432. model.setFocus("ipt_barcdinfo");
  433. ]]>
  434. </script>
  435. </button>
  436. <input id="ipt_barcdinfo" ref="/root/temp/barcdinfo/barcd" visibility="visible" style="left:5px; top:385px; width:260px; height:19px; ">
  437. <script type="javascript" ev:event="onkeydown">
  438. <![CDATA[
  439. if(event.keyCode == "13"){
  440. var SPath1 = "/root/send/search/";
  441. var SPath2 = "/root/main/list/iptstokasetcnfminfo/iptstokasetcnfm/";
  442. var DPath = "/root/send/ipt_search/";
  443. var DPath2 = "/root/send/goodcdinfo/";
  444. var valichkflag, inputyn;
  445. var barcdinfo = ipt_barcdinfo.currentText;
  446. model.setValue(cmb_iptgoodflag.attribute("ref") , barcdinfo.substr(0, 1));
  447. cmb_iptgoodflag.refresh();
  448. model.setValue(SPath2 + "goodcd" , barcdinfo.substr(0, 9));
  449. model.setValue(SPath2 + "allsizespecid" , barcdinfo.substr(9, 3));
  450. // model.resetInstanceNode("/root/send/ipt_search");
  451. model.setValue( DPath + "execyymm" , model.getValue( SPath1 + "execyymm"));
  452. model.setValue( DPath + "instcd" , model.getValue( SPath1 + "instcd"));
  453. model.setValue( DPath + "goodflag" , model.getValue( SPath2 + "goodcd").substr(0, 1));
  454. model.setValue( DPath + "goodcd" , model.getValue( SPath2 + "goodcd"));
  455. model.setValue( DPath + "allsizespecid" , model.getValue( SPath2 + "allsizespecid"));
  456. btn_iptsearch.dispatch("DOMActivate");
  457. model.setValue( DPath2 + "execyymm" , model.getValue( SPath1 + "execyymm").substr(0, 6));
  458. model.setValue( DPath2 + "instcd" , model.getValue( SPath1 + "instcd"));
  459. model.setValue( DPath2 + "goodflag" , model.getValue( SPath2 + "goodflag").getTrim());
  460. model.setValue( DPath2 + "goodcd" , model.getValue( SPath2 + "goodcd"));
  461. model.setValue( DPath2 + "allsizespecid" , model.getValue( SPath2 + "allsizespecid"));
  462. /*if (inputyn == "Y"){
  463. cap_inputyndesc.value = "※ 추가 할 수 있는 데이타 입니다.";
  464. }else if (inputyn == "N"){
  465. cap_inputyndesc.value = "※ 수정 할 수 있는 데이타 입니다.";
  466. }else{
  467. cap_inputyndesc.value = "";
  468. }*/
  469. var valichkflag = model.getValue("/root/main/list/iptstokasetcnfminfo/iptvalichkflag/valichkflag");
  470. if (valichkflag == "1"){
  471. fInputData();
  472. }
  473. }
  474. ]]>
  475. </script>
  476. </input>
  477. </group>
  478. <group id="grp_search" style="left:0px; top:17px; width:1195px; height:63px; vertical-align:top; ">
  479. <caption id="cap_allsizespecid" class="search_name" style="left:975px; top:10px; width:111px; height:17px; ">규격코드 :</caption>
  480. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:63px; background-color:#fffbf2; border-color:#ffd799; "/>
  481. <line id="line30" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:58px; "/>
  482. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
  483. <caption>조회</caption>
  484. <script type="javascript" ev:event="DOMActivate">
  485. <![CDATA[
  486. model.resetInstanceNode("/root/main/list/stokasetcnfminfo/stokasetcnfmlist");
  487. model.setValue("/root/send/search/execyymm", model.getValue("/root/send/search/execyymm").substr(0, 6));
  488. submit("TRRSG06102");
  489. model.refresh();
  490. ]]>
  491. </script>
  492. </button>
  493. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" appearance="minimal" style="left:104px; top:10px; width:130px; height:19px; ">
  494. <choices>
  495. <itemset nodeset="/root/main/init">
  496. <label ref="cnstnm"/>
  497. <value ref="cnstcd"/>
  498. </itemset>
  499. </choices>
  500. </select1>
  501. <caption id="cap_instcd" class="search_name" style="left:10px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  502. <select1 id="cmb_goodflag" ref="/root/send/search/goodflag" class="combo_default" appearance="minimal" style="left:344px; top:10px; width:161px; height:19px; ">
  503. <choices>
  504. <item>
  505. <label>의료비품</label>
  506. <value>U</value>
  507. </item>
  508. <item>
  509. <label>의료소모품</label>
  510. <value>Y</value>
  511. </item>
  512. <item>
  513. <label>공급실물품</label>
  514. <value>T</value>
  515. </item>
  516. <item>
  517. <label>일반소모품</label>
  518. <value>Z</value>
  519. </item>
  520. </choices>
  521. <script type="javascript" ev:event="xforms-value-changed">
  522. <![CDATA[
  523. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  524. addComboItem( "cmb_lrgcd", "전체", "", "above");
  525. cmb_mdlcd.value='';
  526. model.refresh();
  527. ]]>
  528. </script>
  529. </select1>
  530. <caption id="cap_goodflag" class="search_name" style="left:250px; top:10px; width:86px; height:17px; ">물품구분 :</caption>
  531. <select1 id="cmb_lrgcd" ref="/root/send/search/lrgcd" appearance="minimal" style="left:344px; top:36px; width:161px; height:19px; ">
  532. <choices>
  533. <itemset>
  534. <label/>
  535. <value/>
  536. </itemset>
  537. </choices>
  538. <script type="javascript" ev:event="xforms-value-changed">
  539. <![CDATA[
  540. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
  541. cmb_mdlcd.dispatch("xforms-value-changed");
  542. addComboItem( "cmb_mdlcd", "전체", "", "above");
  543. model.refresh();
  544. ]]>
  545. </script>
  546. </select1>
  547. <select1 id="cmb_mdlcd" ref="/root/send/search/mdlcd" appearance="minimal" style="left:619px; top:36px; width:150px; height:19px; ">
  548. <choices>
  549. <itemset>
  550. <label/>
  551. <value/>
  552. </itemset>
  553. </choices>
  554. </select1>
  555. <caption id="caption7" class="search_name" style="left:250px; top:36px; width:88px; height:17px; ">대 분 류 :</caption>
  556. <caption id="caption8" class="search_name" style="left:523px; top:36px; width:88px; height:17px; ">중 분 류 :</caption>
  557. <input id="ipt_goodnm" ref="/root/send/search/goodnm" class="output_search" style="left:740px; top:10px; width:160px; height:19px; "/>
  558. <button id="btn_goodcd" class="icon_search" style="left:721px; top:10px; width:16px; height:16px; ">
  559. <caption/>
  560. <script type="javascript" ev:event="DOMActivate">
  561. <![CDATA[
  562. rszfOpenPopUpListByWndName(ipt_searchgoodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  563. //rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag,reqflag","cmb_instcd,cmb_goodflag,cmb_reqflag");
  564. model.refresh();
  565. ]]>
  566. </script>
  567. </button>
  568. <input id="ipt_searchgoodcd" ref="/root/send/search/goodcd" class="input_search" maxlength="10" appearance="input" style="left:619px; top:10px; width:95px; height:19px; "/>
  569. <caption id="cap_goodcd" class="search_name" style="left:525px; top:10px; width:86px; height:17px; ">물품코드 :</caption>
  570. <input id="ipt_execyymm" ref="/root/send/search/execyymm" class="input_default" inputtype="date" format="yyyy-mm" appearance="input" style="left:104px; top:36px; width:130px; height:19px; "/>
  571. <caption id="caption15" class="search_name" style="left:10px; top:36px; width:86px; height:17px; ">시행년월 :</caption>
  572. <select1 id="cmb_stocmngtflag" ref="/root/send/search/stocmngtflag" appearance="minimal" style="left:896px; top:36px; width:200px; height:19px; ">
  573. <choices>
  574. <itemset nodeset="/root/init/stocmngtflag">
  575. <label ref="cdnm"/>
  576. <value ref="cdid"/>
  577. </itemset>
  578. </choices>
  579. </select1>
  580. <caption id="caption1" class="search_name" style="left:905px; top:10px; width:86px; height:17px; ">구매구분 :</caption>
  581. <caption id="caption16" class="search_name" style="left:775px; top:36px; width:112px; height:17px; ">재고관리기준 :</caption>
  582. <select1 id="cmb_purcflag" ref="/root/send/search/purcflag" appearance="minimal" style="left:995px; top:10px; width:101px; height:19px; ">
  583. <choices>
  584. <itemset nodeset="/root/init/purcflag">
  585. <label ref="cdnm"/>
  586. <value ref="cdid"/>
  587. </itemset>
  588. </choices>
  589. </select1>
  590. </group>
  591. <group id="grp_main" style="left:280px; top:85px; width:910px; height:625px; ">
  592. <caption id="caption21" class="tit_2" style="left:0px; top:17px; width:143px; height:13px; ">실사량 조정</caption>
  593. <button id="button3" class="icon_pre_month" style="left:100px; top:15px; width:16px; height:16px; ">
  594. <caption/>
  595. <script type="javascript" ev:event="DOMActivate">
  596. <![CDATA[
  597. fDataPartToggle(1);
  598. ]]>
  599. </script>
  600. </button>
  601. <button id="button5" class="icon_next_month" style="left:120px; top:15px; width:16px; height:16px; ">
  602. <caption/>
  603. <script type="javascript" ev:event="DOMActivate">
  604. <![CDATA[
  605. fDataPartToggle(0);
  606. ]]>
  607. </script>
  608. </button>
  609. <line id="lin_main" class="line_1" style="x1:0px; y1:34px; x2:903px; y2:34px; "/>
  610. <group id="grp_button" style="left:505px; top:2px; width:390px; height:30px; ">
  611. <button id="button2" class="icon_search" style="left:110px; top:5px; width:16px; height:16px; ">
  612. <caption/>
  613. <script type="javascript" ev:event="DOMActivate">
  614. <![CDATA[
  615. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,cmb_goodflag");
  616. //rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,goodflag,reqflag","cmb_instcd,cmb_goodflag,cmb_reqflag");
  617. model.refresh();
  618. ]]>
  619. </script>
  620. </button>
  621. <button id="btn_delrow" class="btn2_letter2" style="left:290px; top:5px; width:42px; height:19px; ">
  622. <caption>삭제</caption>
  623. <script type="javascript" ev:event="DOMActivate">
  624. <![CDATA[
  625. grd_stokasetcnfmlist.rowStatus(grd_stokasetcnfmlist.row) = 4;
  626. grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("chk")) = "Y";
  627. ]]>
  628. </script>
  629. </button>
  630. <button id="button6" class="icon_search" style="left:205px; top:5px; width:16px; height:16px; ">
  631. <caption/>
  632. <script type="javascript" ev:event="DOMActivate">
  633. <![CDATA[
  634. var dPath ="/root/send/popuppara/" ;
  635. var sPath ="/root/send/search/" ;
  636. var sPath2 ="/root/send/goodcdinfo/";
  637. // 규격코드 정보 popup에 Parameter값을 Setting
  638. model.setValue(dPath+"instcd" , model.getValue(sPath+"instcd" ));
  639. model.setValue(dPath+"allsizespecid" , model.getValue(sPath+"allsizespecid"));
  640. model.setValue(dPath+"goodcd" , model.getValue(sPath2+"goodcd" ));
  641. setParameter("SMRSG06200_popuppara", getNodeListCSV(model.instances(0).selectNodes("/root/send/popuppara")) );
  642. modal("SMRSG06200");
  643. model.removenode("/root/temp/rstinfo");
  644. var csv_rstinfo = getParameter("SMRSG06100_rstinfo");
  645. setCSVToNode("/root/temp", csv_rstinfo, "rstinfo");
  646. model.setValue("/root/send/goodcdinfo/goodflag" , model.getValue("/root/temp/rstinfo/goodflag"));
  647. model.setValue(ipt_allsizespecid.attribute("ref") , model.getValue("/root/temp/rstinfo/allsizespecid"));
  648. model.refresh();
  649. ]]>
  650. </script>
  651. </button>
  652. <input id="ipt_allsizespecid" ref="/root/send/goodcdinfo/allsizespecid" style="left:130px; top:5px; width:70px; height:19px; "/>
  653. <input id="ipt_goodcd" ref="/root/send/goodcdinfo/goodcd" class="input_search" maxlength="10" appearance="input" style="left:5px; top:5px; width:100px; height:19px; "/>
  654. <button id="btn_save" class="btn2_letter2" style="left:340px; top:5px; width:42px; height:19px; ">
  655. <caption>저장</caption>
  656. <script type="javascript" ev:event="DOMActivate">
  657. <![CDATA[
  658. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  659. if ( retMes != 6) {
  660. return;
  661. }
  662. for (i=grd_stokasetcnfmlist.fixedRows;i<grd_stokasetcnfmlist.rows;i++){
  663. if (grd_stokasetcnfmlist.rowStatus(i) != 4){
  664. if (grd_stokasetcnfmlist.valueMatrix(i, grd_stokasetcnfmlist.colRef("chk")) == "Y" ){
  665. grd_stokasetcnfmlist.rowStatus(i) = 1;
  666. }else{
  667. grd_stokasetcnfmlist.rowStatus(i) = 0;
  668. }
  669. }
  670. }
  671. var updtdata = getGridUpdateData(grd_stokasetcnfmlist);
  672. if (updtdata == "")
  673. {
  674. messageBox("변경된 데이터가","I004");
  675. return;
  676. }
  677. model.setValue("/root/send/stokasetcnfmlist", updtdata);
  678. submit("TXRSG06102");
  679. btn_search.dispatch("DOMActivate");
  680. ]]>
  681. </script>
  682. </button>
  683. <button id="btn_addrow" class="btn2_letter2" style="left:240px; top:5px; width:42px; height:19px; ">
  684. <caption>입력</caption>
  685. <script type="javascript" ev:event="DOMActivate">
  686. <![CDATA[
  687. var inputyn;
  688. if(!isRequiredControls("ipt_goodcd")) return;
  689. if(!isRequiredControls("ipt_allsizespecid")) return;
  690. model.setValue("/root/send/goodcdinfo/execyymm" , model.getValue(ipt_execyymm.attribute("ref")).substr(0, 6));
  691. model.setValue("/root/send/goodcdinfo/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  692. model.setValue("/root/send/goodcdinfo/purcflag" , model.getValue(cmb_purcflag.attribute("ref")));
  693. model.setValue("/root/send/goodcdinfo/stocmngtflag" , model.getValue(cmb_stocmngtflag.attribute("ref")));
  694. fInputData();
  695. ]]>
  696. </script>
  697. </button>
  698. </group>
  699. <datagrid id="grd_stokasetcnfmlist" nodeset="/root/main/list/stokasetcnfminfo/stokasetcnfmlist" class="datagrid3" caption="선택^실사년월^기관코드^물품구분^물품코드^물품코드^물품명^규격^모델^제조원^주거래처명^보조거래처명^현재고수량^실사수량" colsep="^" colwidth="37, 3, 1, 2, 80, 25, 285, 160, 130, 100, 100, 100, 69, 78" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:40px; width:905px; height:570px; font-weight:normal; text-align:center; ">
  700. <col checkvalue="Y,N" ref="chk" type="checkbox" style="text-align:left; "/>
  701. <col ref="execyymm" visibility="hidden" style="text-align:left; "/>
  702. <col ref="instcd" visibility="hidden" style="text-align:left; "/>
  703. <col ref="goodflag" visibility="hidden" style="text-align:left; "/>
  704. <col ref="goodcd" style="text-align:center; "/>
  705. <col ref="allsizespecid" style="text-align:center; "/>
  706. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  707. <col ref="allsizespecidnm" style="text-align:left; padding-left:10; "/>
  708. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  709. <col ref="prodcmpynm" style="text-align:left; padding-left:10; "/>
  710. <col ref="maincustnm" style="text-align:left; padding-left:10; "/>
  711. <col ref="subcustnm" style="text-align:left; padding-left:10; "/>
  712. <col ref="totstocqty" format="#,###" style="text-align:right; "/>
  713. <col ref="cnfmstockqty" type="input" format="#,###" style="text-align:right; "/>
  714. <script type="javascript" ev:event="onclick">
  715. <![CDATA[
  716. if (grd_stokasetcnfmlist.col == grd_stokasetcnfmlist.colRef("chk")){
  717. var chk;
  718. chk = grd_stokasetcnfmlist.valueMatrix(grd_stokasetcnfmlist.row, grd_stokasetcnfmlist.colRef("chk"));
  719. if (chk == "Y"){
  720. grd_stokasetcnfmlist.rowStatus(grd_stokasetcnfmlist.row) = 1;
  721. }else{
  722. grd_stokasetcnfmlist.rowStatus(grd_stokasetcnfmlist.row) = 0;
  723. }
  724. }
  725. ]]>
  726. </script>
  727. </datagrid>
  728. </group>
  729. </group>
  730. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  731. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  732. <button id="btn_init" class="btn4_letter3" style="left:1126; top:3; width:68px; height:22px; ">
  733. <caption>초기화</caption>
  734. <script type="javascript" ev:event="DOMActivate">
  735. <![CDATA[
  736. fInitialize();
  737. ]]>
  738. </script>
  739. </button>
  740. </group>
  741. </xhtml:body>
  742. </xhtml:html>