SMRST03200_거래처별입고금액(약국).xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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. <winsuplplcecdamtlist/>
  11. <list>
  12. <goodwin>
  13. <goodwinlist/>
  14. </goodwin>
  15. </list>
  16. </main>
  17. <send>
  18. <instcd/>
  19. <goodflag/>
  20. <winfrdd/>
  21. <stocdeptcd/>
  22. <lrgcd/>
  23. <instcdnm/>
  24. <wintodd/>
  25. <bnscd/>
  26. <windeptcdyn>Y</windeptcdyn>
  27. <lrgcdyn>Y</lrgcdyn>
  28. <winpsnyn>Y</winpsnyn>
  29. <goodwin>
  30. <instcd/>
  31. <goodflag/>
  32. <lrgcd/>
  33. <lrgnm/>
  34. <windeptcd/>
  35. <windeptnm/>
  36. <suplplcecd/>
  37. <suplplcenm/>
  38. <goodcd/>
  39. <goodnm/>
  40. <winfrdd/>
  41. <wintodd/>
  42. </goodwin>
  43. </send>
  44. <init>
  45. </init>
  46. <temp/>
  47. </root>
  48. </instance>
  49. <script type="javascript" ev:event="xforms-ready">
  50. <![CDATA[
  51. //화면 Control을 초기화한다
  52. fInitialize();
  53. ]]>
  54. </script>
  55. <submission id="TRRST03201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsthssstlist"/>
  56. <submission id="TRRSI00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodwin" resultref="/root/main/list/goodwin"/>
  57. </model>
  58. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  59. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  60. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  61. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  64. <script type="javascript">
  65. <![CDATA[
  66. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  67. function fInitialize()
  68. {
  69. model.resetInstanceNode("/root/send");
  70. misfGridInit(grd_goodwin);
  71. misfGridInit(grd_winsuplplcecdamtlist);
  72. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  73. rszfComboStockArthDeptcdList(cmb_stocdeptcd,getUserInfo("dutplceinstcd"),"PH","Y" );
  74. //misfComboComCdListMulti("R0025","cmb_goodflag");
  75. misfMsterDetailSet(grd_winsuplplcecdamtlist, null, "TRRST03201", "N");
  76. model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  77. model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
  78. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  79. model.setValue(opt_goodflag.attribute("ref"), "PH");
  80. var curdd = getCurrentDate();
  81. model.setValue(ipt_winfrdd.attribute("ref") , getCurrentDate());
  82. model.setValue(ipt_wintodd.attribute("ref") , getCurrentDate());
  83. model.setValue(ckb_windeptcdyn.attribute("ref") , "Y") ; // 입고부서여부
  84. model.setValue(ckb_lrgcdyn.attribute("ref") , "Y"); // 대분류여부
  85. model.setValue(ckb_winpsnyn.attribute("ref") , "Y"); // 입고자여부
  86. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  87. rszfGridComboLrgcdList("PH", cmb_lrgcd, "lrgcd","Y");
  88. model.refresh();
  89. }
  90. function fCheckRetrieveData()
  91. {
  92. if(!isRequiredControls("opt_instcd") )return false; // 물품구분
  93. if(!isRequiredControls("opt_goodflag") )return false; // 물품구분
  94. if(!isRequiredControls("ipt_winfrdd") )return false; // 작업년월
  95. if(!isRequiredControls("ipt_wintodd") )return false; // 작업년월
  96. //if(!isRequiredControls("cmb_stocdeptcd") )return false; // 부서코드
  97. }
  98. // --------------------------------------------------
  99. // View Option 처리하는 함수
  100. // --------------------------------------------------
  101. function fSumViewOption(pGrid, pOption, pCol) {
  102. grd_winsuplplcecdamtlist.colHidden(grd_winsuplplcecdamtlist.colRef(pCol)) = (pOption.value =="Y") ? false : true;
  103. }
  104. ]]>
  105. </script>
  106. </xhtml:head>
  107. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  108. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  109. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">거래처별 입고금액 현황(약품)</caption>
  110. </group>
  111. <group id="grp_biz" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
  112. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  113. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1190px; y2:95px; "/>
  114. <datagrid id="grd_winsuplplcecdamtlist" nodeset="/root/main/winsuplplcecdamtlist" caption="입고부서^입고부서^대분류^대분류^거래처코드^거래처명칭^입고수량^입고금액^입고자^입고자^비고" colsep="^" colwidth="98, 150, 30, 152, 109, 173, 85, 126, 70, 70, 80, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:100px; width:1190px; height:255px; ">
  115. <col ref="windeptcd"/>
  116. <col ref="windeptcdnm"/>
  117. <col ref="lrgcd"/>
  118. <col ref="lrgcdnm"/>
  119. <col ref="suplplcecd" format="999-99-99999" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:center; "/>
  120. <col ref="suplplcenm" style="text-align:left; "/>
  121. <col ref="winqty" format="#,###" style="text-align:right; "/>
  122. <col ref="winamt" format="#,###" style="text-align:right; "/>
  123. <col ref="winpsn" style="text-align:center; "/>
  124. <col ref="winpsnnm" style="text-align:center; "/>
  125. <col/>
  126. <col ref="instcd" visibility="hidden"/>
  127. <script type="javascript" ev:event="ondblclick">
  128. <![CDATA[
  129. sPath = "/root/send/";
  130. tPath = "/root/send/goodwin/";
  131. // alert(grd_winsuplplcecdamtlist.row+"=="+grd_winsuplplcecdamtlist.rows);
  132. vSuplplcecd = model.getValue(grd_winsuplplcecdamtlist.nodeset+"["+grd_winsuplplcecdamtlist.row +"]/suplplcecd");
  133. if (vSuplplcecd == "") return;
  134. model.setValue(tPath+"instcd" , model.getValue(sPath+"instcd" ));
  135. model.setValue(tPath+"goodflag" , model.getValue(sPath+"goodflag" ));
  136. model.setValue(tPath+"winfrdd" , model.getValue(sPath+"winfrdd" ));
  137. model.setValue(tPath+"wintodd" , model.getValue(sPath+"wintodd" ));
  138. model.setValue(tPath+"windeptcd" , model.getValue(sPath+"stocdeptcd"));
  139. model.setValue(tPath+"lrgcd" , model.getValue(sPath+"lrgcd" ));
  140. model.setValue(tPath+"suplplcecd" , vSuplplcecd);
  141. misfGridInit(grd_goodwin);
  142. submit("TRRSI00401");
  143. ]]>
  144. </script>
  145. <script type="javascript" ev:event="onaftersort">
  146. <![CDATA[
  147. grd_winsuplplcecdamtlist.gridToInstance();
  148. ]]>
  149. </script>
  150. </datagrid>
  151. <caption id="caption3" class="tit_2" style="left:5px; top:80px; width:183px; height:14px; ">거래처별 입고금액 리스트</caption>
  152. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:29px; width:56px; height:22px; ">
  153. <caption>조회</caption>
  154. <script type="javascript" ev:event="DOMActivate">
  155. <![CDATA[
  156. misfGridInit(grd_winsuplplcecdamtlist);
  157. if(fCheckRetrieveData(false) == false)return;
  158. submit("TRRST03201");
  159. grd_winsuplplcecdamtlist.subtotalposition = "below";
  160. grd_winsuplplcecdamtlist.subtotal("clear", 0, 0);
  161. grd_winsuplplcecdamtlist.subtotal("sum",grd_winsuplplcecdamtlist.colRef("instcd") , grd_winsuplplcecdamtlist.colRef("winqty"), "format:(-)#,###; ", "background-color:#ffff88; font-weight:bold; ", grd_winsuplplcecdamtlist.colRef("suplplcecd") , "- 총계");
  162. grd_winsuplplcecdamtlist.subtotal("sum",grd_winsuplplcecdamtlist.colRef("instcd") , grd_winsuplplcecdamtlist.colRef("winamt"), "format:(-)#,###; ", "background-color:#ffff88; font-weight:bold; ", grd_winsuplplcecdamtlist.colRef("suplplcecd") , "- 총계");
  163. //grd_winsuplplcecdamtlist.subtotal("sum",grd_winsuplplcecdamtlist.colRef("suplplcecd") , grd_winsuplplcecdamtlist.colRef("winqty"), "format:(-)#,###; ", "background-color:#ffff99; font-weight:bold; ", 2, "- 합계");
  164. //grd_winsuplplcecdamtlist.subtotal("sum",grd_winsuplplcecdamtlist.colRef("suplplcecd") , grd_winsuplplcecdamtlist.colRef("winamt"), "format:(-)#,###; ", "background-color:#ffff99; font-weight:bold; ", 2, "- 합계");
  165. model.refresh();
  166. ]]>
  167. </script>
  168. </button>
  169. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:61px; "/>
  170. <caption id="cap_instcd" class="search_name" style="left:15; top:19; width:86px; height:17px; ">기관코드 :</caption>
  171. <caption id="cap_winfrdd" class="search_name" style="left:15px; top:45px; width:101px; height:17px; ">입고일자 :</caption>
  172. <caption id="cap_stocdeptcd" class="search_name" style="left:416px; top:46px; width:99px; height:17px; ">부 서 :</caption>
  173. <select1 id="cmb_stocdeptcd" ref="/root/send/stocdeptcd" class="combo_s_essential" appearance="minimal" style="left:502px; top:46px; width:153px; height:19px; ">
  174. <choices>
  175. <itemset>
  176. <label/>
  177. <value/>
  178. </itemset>
  179. </choices>
  180. </select1>
  181. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:18px; width:150px; height:19px; "/>
  182. <output id="opt_instcd" ref="/root/send/instcd" class="output_fix" visibility="hidden" style="left:254px; top:19px; width:20px; height:19px; "/>
  183. <input id="ipt_wintodd" ref="/root/send/wintodd" class="input_s_essential" inputtype="date" style="left:238px; top:46px; width:114px; height:19px; "/>
  184. <input id="ipt_winfrdd" ref="/root/send/winfrdd" class="input_s_essential" inputtype="date" style="left:100px; top:46px; width:114px; height:19px; "/>
  185. <caption id="caption22" style="left:220px; top:47px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  186. <output id="opt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:1085px; top:15px; width:20px; height:19px; "/>
  187. <select1 id="cmb_lrgcd" ref="/root/send/lrgcd" class="combo_s_essential" appearance="minimal" style="left:502px; top:19px; width:153px; height:19px; ">
  188. <choices>
  189. <itemset>
  190. <label/>
  191. <value/>
  192. </itemset>
  193. </choices>
  194. </select1>
  195. <caption id="caption40" class="search_name" style="left:416px; top:20px; width:89px; height:17px; ">대 분 류 :</caption>
  196. <button id="btn_excel" class="btn2_letter2" style="left:1146px; top:75px; width:42px; height:19px; ">
  197. <caption>엑셀</caption>
  198. <script type="javascript" ev:event="DOMActivate">
  199. <![CDATA[
  200. misfSaveExcel(grd_winsuplplcecdamtlist);
  201. ]]>
  202. </script>
  203. </button>
  204. <select1 id="rdo_prtflag" ref="/root/send/bnscd" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:805px; top:45px; width:280px; height:20px; border-style:none; ">
  205. <choices>
  206. <item>
  207. <label>전체</label>
  208. <value/>
  209. </item>
  210. <item>
  211. <label>보나에스거래</label>
  212. <value>2158155746</value>
  213. </item>
  214. <item>
  215. <label>기타거래</label>
  216. <value>O</value>
  217. </item>
  218. </choices>
  219. </select1>
  220. <caption id="cap_prtflag" class="search_name" style="left:692px; top:44px; width:93px; height:17px; ">조회구분 :</caption>
  221. <select id="ckb_winpsnyn" ref="/root/send/winpsnyn" overflow="visible" appearance="full" style="left:581px; top:75px; width:85px; height:20px; border-style:none; ">
  222. <choices>
  223. <item>
  224. <label>입고자</label>
  225. <value>Y</value>
  226. </item>
  227. </choices>
  228. <script type="javascript" ev:event="xforms-value-changed">
  229. <![CDATA[
  230. fSumViewOption("",ckb_winpsnyn, "winpsn");
  231. fSumViewOption("",ckb_winpsnyn, "winpsnnm");
  232. ]]>
  233. </script>
  234. </select>
  235. <caption id="caption10" class="search_name" style="left:295px; top:75px; width:121px; height:17px; ">LIST 포함조건 :</caption>
  236. <select id="ckb_lrgcdyn" ref="/root/send/lrgcdyn" overflow="visible" appearance="full" style="left:505px; top:75px; width:70px; height:20px; border-style:none; ">
  237. <choices>
  238. <item>
  239. <label>대분류</label>
  240. <value>Y</value>
  241. </item>
  242. </choices>
  243. <script type="javascript" ev:event="xforms-value-changed">
  244. <![CDATA[
  245. fSumViewOption("",ckb_lrgcdyn, "lrgcd");
  246. fSumViewOption("",ckb_lrgcdyn, "lrgcdnm");
  247. ]]>
  248. </script>
  249. </select>
  250. <select id="ckb_windeptcdyn" ref="/root/send/windeptcdyn" overflow="visible" appearance="full" style="left:420px; top:75px; width:75px; height:20px; border-style:none; ">
  251. <choices>
  252. <item>
  253. <label>입고부서</label>
  254. <value>Y</value>
  255. </item>
  256. </choices>
  257. <script type="javascript" ev:event="xforms-value-changed">
  258. <![CDATA[
  259. fSumViewOption("",ckb_windeptcdyn, "windeptcd");
  260. fSumViewOption("",ckb_windeptcdyn, "windeptcdnm");
  261. ]]>
  262. </script>
  263. </select>
  264. <group id="group2" style="left:0px; top:365px; width:1190px; height:376px; ">
  265. <datagrid id="grd_goodwin" nodeset="/root/main/list/goodwin/goodwinlist" caption="입고일자^입고부서^순번^주거래처^입고유형^약품코드^약품명^함량^제조회사^낱개^낱개^포장^포장^입고금액^입고번호^발주번호^입고자^입고정보|입고일자^입고부서^순번^주거래처^입고유형^약품코드^약품명^함량^제조회사^수량^단가^수량^구입가^입고금액^입고번호^발주번호^입고자^입고정보" colsep="^" colwidth="82, 81, 49, 83, 74, 84, 280, 26, 0, 64, 64, 65, 85, 100, 100, 100, 93, 130, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:40px; width:1187px; height:329px; ">
  266. <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
  267. <col ref="windeptnm"/>
  268. <col ref="winseqno" style="text-align:center; "/>
  269. <col ref="suplplcenm"/>
  270. <col ref="iokindnm"/>
  271. <col ref="goodcd"/>
  272. <col ref="goodnm"/>
  273. <col ref="goodspec" visibility="hidden"/>
  274. <col ref="prodcmpynm"/>
  275. <col ref="winqty" format="#,###" style="text-align:right; "/>
  276. <col ref="winunitcost" format="#,###" style="text-align:right; "/>
  277. <col ref="winpackqty" format="#,###" style="text-align:right; "/>
  278. <col ref="goodpurccost" format="#,###" style="text-align:right; "/>
  279. <col ref="winamt" format="#,###" style="text-align:right; "/>
  280. <col ref="winno" visibility="hidden" style="left:1135px; top:23px; width:100px; height:23px; text-align:center; "/>
  281. <col ref="deliveno" visibility="hidden" style="text-align:center; "/>
  282. <col ref="winpsnnm" style="text-align:center; "/>
  283. <col ref="winputno"/>
  284. <col ref="goodmodel" visibility="hidden"/>
  285. <col ref="winpackunit" visibility="hidden"/>
  286. <col ref="winpackcntperunit" visibility="hidden" format="#,###" style="text-align:right; "/>
  287. <col ref="winunit" visibility="hidden"/>
  288. <col ref="delivedeptqty" visibility="hidden" format="#,###" style="text-align:right; "/>
  289. <col ref="stocqty" visibility="hidden" format="#,###" style="text-align:right; "/>
  290. <col ref="instcd" visibility="hidden"/>
  291. <col ref="goodflag" visibility="hidden"/>
  292. <col ref="winpsn" visibility="hidden"/>
  293. <col ref="windeptcd" visibility="hidden"/>
  294. <col ref="installplcecd" visibility="hidden"/>
  295. <col ref="paycond" visibility="hidden"/>
  296. <col ref="temppay" visibility="hidden"/>
  297. <col ref="calcdocukind" visibility="hidden"/>
  298. <col ref="elctstmntyn" visibility="hidden"/>
  299. <col ref="iokind" visibility="hidden"/>
  300. <col ref="suplplcecd" visibility="hidden"/>
  301. <col ref="purcdmnddd" visibility="hidden"/>
  302. <col ref="purcdmndno" visibility="hidden"/>
  303. <col ref="purcdmndseq" visibility="hidden"/>
  304. <col ref="deliveseqno" visibility="hidden"/>
  305. <col ref="bnscd" visibility="hidden"/>
  306. <col ref="calcdocudd" visibility="hidden"/>
  307. <col ref="profno" visibility="hidden"/>
  308. <col ref="acntcd" visibility="hidden"/>
  309. <col ref="reqdd" visibility="hidden"/>
  310. <col ref="reqno" visibility="hidden"/>
  311. <col ref="reqseqno" visibility="hidden"/>
  312. <col ref="valiterm" visibility="hidden"/>
  313. <col ref="stocynindx" visibility="hidden"/>
  314. <col ref="chkdd" visibility="hidden"/>
  315. <col ref="chkpsn" visibility="hidden"/>
  316. <col ref="chkyn" visibility="hidden"/>
  317. <col ref="slipdd" visibility="hidden"/>
  318. <col ref="slipno" visibility="hidden"/>
  319. <col ref="suppcustcd" visibility="hidden"/>
  320. <col ref="cmt" visibility="hidden"/>
  321. <col ref="prewinqty" visibility="hidden"/>
  322. <col ref="minexch" visibility="hidden"/>
  323. <col ref="suppcustnm" visibility="hidden"/>
  324. <script type="javascript" ev:event="onrowchanged">
  325. <![CDATA[
  326. misfMsterDetailRetrieve();
  327. ]]>
  328. </script>
  329. <script type="javascript" ev:event="onaftersort">
  330. <![CDATA[
  331. grd_goodwin.gridToInstance();
  332. ]]>
  333. </script>
  334. </datagrid>
  335. <line id="line15" class="line_1" style="x1:0px; y1:35px; x2:1187px; y2:35px; "/>
  336. <caption id="caption35" class="tit_2" style="left:0px; top:18px; width:95px; height:13px; ">입고내역</caption>
  337. <button id="button1" class="btn2_letter2" style="left:1138px; top:14px; width:42px; height:19px; ">
  338. <caption>엑셀</caption>
  339. <script type="javascript" ev:event="DOMActivate">
  340. <![CDATA[
  341. misfSaveExcel(grd_goodwin);
  342. ]]>
  343. </script>
  344. </button>
  345. </group>
  346. </group>
  347. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  348. <button id="btn_print" class="btn6_letter5" disabled="false" visibility="hidden" style="left:0px; top:3px; width:92px; height:22px; ">
  349. <caption>리스트출력</caption>
  350. </button>
  351. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  352. <caption>초기화</caption>
  353. <script type="javascript" ev:event="DOMActivate">
  354. <![CDATA[
  355. fInitialize();
  356. ]]>
  357. </script>
  358. </button>
  359. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  360. </group>
  361. </xhtml:body>
  362. </xhtml:html>