SMRST02900_장기재고현황(약국).xrw 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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. <longtermnodelivelist/>
  11. </main>
  12. <send>
  13. <instcd/>
  14. <goodflag/>
  15. <lrgcd/>
  16. <instcdnm/>
  17. <delivefrdd/>
  18. <delivetodd/>
  19. <mngtcls/>
  20. </send>
  21. <init>
  22. </init>
  23. <temp/>
  24. </root>
  25. </instance>
  26. <script type="javascript" ev:event="xforms-ready">
  27. <![CDATA[
  28. //화면 Control을 초기화한다
  29. fInitialize();
  30. ]]>
  31. </script>
  32. <submission id="TRRST02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/longtermnodelivelist"/>
  33. </model>
  34. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  35. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  36. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  37. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  40. <script type="javascript">
  41. <![CDATA[
  42. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  43. function fInitialize()
  44. {
  45. misfGridInit(grd_longtermnodelivelist);
  46. misfComboComCdList("030M0003",cmb_mngtcls);
  47. model.setValue("/root/send/mngtcls",model.getValue("/root/init/cmb_mngtcls/comcodelist/cdid[1]"));
  48. misfMsterDetailSet(grd_longtermnodelivelist, null, "TRRST02901", "N");
  49. model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  50. model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
  51. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  52. model.setValue(opt_goodflag.attribute("ref"), "PH");
  53. // 현재 날짜 기본 입력(6개월 간격 설정)
  54. var reqdate = getCurrentDate().toDate("YYYYMMDD");
  55. model.setValue(ipt_delivefrdd.attribute("ref"), reqdate.getAddDate(-3, "M").getDateFormat("YYYYMMDD") );
  56. model.setValue(ipt_delivetodd.attribute("ref"), getCurrentDate());
  57. model.refresh();
  58. }
  59. ]]>
  60. </script>
  61. </xhtml:head>
  62. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  63. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  64. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">장기재고현황(약국)</caption>
  65. </group>
  66. <group id="grp_biz" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
  67. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  68. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
  69. <datagrid id="grd_longtermnodelivelist" nodeset="/root/main/longtermnodelivelist" caption="약품^약품^규격^단가^포장단위^낱개단위^환산수량^재고수량^재고금액^마지막 출고일자" colsep="^" colwidth="125, 241, 121, 88, 65, 65, 79, 71, 102, 110" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1195px; height:658px; ">
  70. <col ref="goodcd" _key="true" style="left:161px; top:25px; width:115px; height:25px; text-align:left; "/>
  71. <col ref="goodnm" style="text-align:left; "/>
  72. <col ref="goodspec" style="text-align:center; "/>
  73. <col disabled="true" ref="goodunitcost" format="#,###.##" style="text-align:right; "/>
  74. <col ref="purcunit" style="text-align:center; "/>
  75. <col ref="deliveunit" style="text-align:center; "/>
  76. <col ref="exchqty" format="#,###.##" style="text-align:right; "/>
  77. <col ref="stocqty" format="#,###.##" style="text-align:right; "/>
  78. <col ref="stocamt" format="#,###.##" style="text-align:right; "/>
  79. <col ref="lastdelivedd" format="yyyy-mm-dd" style="text-align:center; "/>
  80. <script type="javascript" ev:event="onaftersort">
  81. <![CDATA[
  82. grd_longtermnodelivelist.gridToInstance();
  83. ]]>
  84. </script>
  85. </datagrid>
  86. <output id="opt_goodflag" ref="/root/send/goodflag" class="output_fix" visibility="hidden" appearance="minimal" style="left:1050px; top:15px; width:27px; height:19px; "/>
  87. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:183px; height:13px; ">장기재고현황(약국) List</caption>
  88. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  89. <caption>조회</caption>
  90. <script type="javascript" ev:event="DOMActivate">
  91. <![CDATA[
  92. misfGridInit(grd_longtermnodelivelist);
  93. if(!isRequiredControls("opt_instcd") )return false; // 물품구분
  94. if(!isRequiredControls("opt_goodflag") )return false; // 물품구분
  95. if(!isRequiredControls("ipt_delivefrdd") )return false; // 작업년월
  96. if(!isRequiredControls("ipt_delivetodd") )return false; // 작업년월
  97. if(!isRequiredControls("cmb_lrgcd") )return false; // 대분류
  98. submit("TRRST02901");
  99. model.refresh();
  100. ]]>
  101. </script>
  102. </button>
  103. <line id="line13" class="line_4" style="x1:1110px; y1:15px; x2:1110px; y2:37px; "/>
  104. <caption id="cap_instcd" class="search_name" style="left:15; top:19; width:86px; height:17px; ">기관코드 :</caption>
  105. <caption id="cap_orginspym" class="search_name" style="left:326px; top:19px; width:130px; height:17px; ">미출고 조회일자 :</caption>
  106. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:100px; top:18px; width:150px; height:19px; text-align:center; "/>
  107. <output id="opt_instcd" ref="/root/send/instcd" class="output_fix" visibility="hidden" style="left:1030px; top:15px; width:20px; height:19px; "/>
  108. <input id="ipt_delivefrdd" ref="/root/send/delivefrdd" class="input_s_essential" inputtype="date" style="left:460px; top:18px; width:120px; height:19px; text-align:center; "/>
  109. <input id="ipt_delivetodd" ref="/root/send/delivetodd" class="input_s_essential" inputtype="date" style="left:602px; top:18px; width:120px; height:19px; text-align:center; "/>
  110. <caption id="caption16" style="left:585px; top:16px; width:17px; height:20px; vertical-align:middle; ">~</caption>
  111. <select1 id="cmb_mngtcls" ref="/root/send/mngtcls" class="combo_s_essential" appearance="minimal" style="left:865px; top:18px; width:150px; height:19px; ">
  112. <choices>
  113. <itemset>
  114. <label/>
  115. <value/>
  116. </itemset>
  117. </choices>
  118. </select1>
  119. <caption id="caption2" class="search_name" style="left:780px; top:19px; width:88px; height:17px; ">관리분류 :</caption>
  120. </group>
  121. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  122. <button id="btn_print" class="btn6_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
  123. <caption>리스트출력</caption>
  124. <script type="javascript" ev:event="DOMActivate">
  125. <![CDATA[
  126. exeReportPreview("RPRST02901", "XMLSTR");
  127. ]]>
  128. </script>
  129. </button>
  130. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  131. <caption>초기화</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. fInitialize();
  135. ]]>
  136. </script>
  137. </button>
  138. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  139. </group>
  140. </xhtml:body>
  141. </xhtml:html>