SMMNG02800_세탁물물품Master.xrw 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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>세탁물 물품 Master 등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <mscdinfo>
  11. <mscdlist>
  12. <goodcd/>
  13. <goodnm/>
  14. <goodflag/>
  15. <goodspec/>
  16. <goodunit/>
  17. <useyn/>
  18. <sortseq/>
  19. <gooddesc/>
  20. <etcremark/>
  21. <fromdd/>
  22. <todd/>
  23. <instcd/>
  24. <gubuncd/>
  25. <dsioyn/>
  26. <csmtyn/>
  27. <possyn/>
  28. <porqyn/>
  29. <linenyn/>
  30. </mscdlist>
  31. <csrdeptlist/>
  32. </mscdinfo>
  33. <csrdeptlist/>
  34. <cond>
  35. <gubuncd/>
  36. </cond>
  37. </main>
  38. <send>
  39. </send>
  40. <code>
  41. <codeinfo>
  42. <codelist/>
  43. </codeinfo>
  44. </code>
  45. <codesend/>
  46. <datasend>
  47. <instcdnm/>
  48. <gubuncd/>
  49. </datasend>
  50. </root>
  51. </instance>
  52. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  53. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  54. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  55. <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
  56. <script type="javascript" ev:event="xforms-ready">
  57. <![CDATA[
  58. fInitialize();
  59. ]]>
  60. </script>
  61. <submission id="TRMNG02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/datasend" resultref="/root/main/mscdinfo"/>
  62. <submission id="TXMNG02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
  63. <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
  64. </model>
  65. <script type="javascript">
  66. <![CDATA[
  67. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  68. function fInitialize()
  69. {
  70. model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
  71. model.setValue(rdo_gubuncd.attribute("ref") , '01' );
  72. fSearch();
  73. }
  74. function fSearch() {
  75. model.setValue("/root/datasend/gubuncd", model.getValue(rdo_gubuncd.attribute("ref")));
  76. var pCode = "'T34'"; // 조회할 CdGrupID 코드정보
  77. var pDate = getCurrentDate(); // 조회기준일자
  78. fGetNursHardCdInfo(pCode, pDate); // 간호코드 조회
  79. submit("TRMNG02801");
  80. if (model.getValue(rdo_gubuncd.attribute("ref")) == '02'){
  81. grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("dsioyn"))) = true;
  82. grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("csmtyn"))) = true;
  83. grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("possyn"))) = true;
  84. grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("porqyn"))) = true;
  85. grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("linenyn"))) = true;
  86. } else {
  87. grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("dsioyn"))) = false;
  88. grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("csmtyn"))) = false;
  89. grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("possyn"))) = false;
  90. grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("porqyn"))) = false;
  91. grd_mscdlist.colhidden(Number(grd_mscdlist.colRef("linenyn"))) = false;
  92. }
  93. }
  94. ]]>
  95. </script>
  96. </xhtml:head>
  97. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  98. <group id="grp_tle" style="left:0px; top:0px; width:1185px; height:13px; ">
  99. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">세탁물 물품 Master 등록</caption>
  100. </group>
  101. <group id="grp_biz" scroll="auto" style="left:0px; top:60px; width:1185px; height:660px; ">
  102. <caption id="caption12" class="tit_2" style="left:5px; top:9px; width:121px; height:14px; ">세탁물 물품 Master 등록</caption>
  103. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1185px; y2:26px; "/>
  104. <button id="btn_sav" class="btn5_letter2" style="left:1141px; top:3px; width:42px; height:19px; ">
  105. <caption>저장</caption>
  106. <script type="javascript" ev:event="DOMActivate">
  107. <![CDATA[
  108. model.makeValue("/root/send/savedata/mscdlist", getGridUpdateData(grd_mscdlist) );
  109. submit("TXMNG02801");
  110. fSearch();
  111. ]]>
  112. </script>
  113. </button>
  114. <col ref="mscdcnt" type="input"/>
  115. <col ref="mscdcnt" type="input"/>
  116. <datagrid id="grd_mscdlist" nodeset="/root/main/mscdinfo/mscdlist" visibility="visible" caption="물품코드^물품명^구분^규격^단위^사용유무^정렬^시작일자^종료일자^기관코드^구븐코드^폐기관리화면^위탁/수탁화면^보유관리화면^청구관리화면^린넨운용관리화면^상세설명^비고^망순번|물품코드^물품명^구분^규격^단위^사용유무^정렬^시작일자^종료일자^기관코드^구븐코드^폐기관리화면^위탁/수탁화면^보유관리화면^청구관리화면^린넨운용관리화면^상세설명^비고^망순번" colsep="^" colwidth="83, 172, 73, 77, 40, 60, 48, 60, 40, 44, 49, 60, 60, 60, 60, 60, 136, 150" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:25px; width:1185px; height:616px; ">
  117. <col class="input_essential" ref="goodcd" type="input" visibility="visible" maxlength="12"/>
  118. <col ref="goodnm" type="input" visibility="visible" maxlength="100"/>
  119. <col ref="goodflag" type="combo" visibility="visible">
  120. <choices>
  121. <itemset nodeset="/root/code/codeinfo/codelist">
  122. <label ref="cdnm"/>
  123. <value ref="cdid"/>
  124. </itemset>
  125. </choices>
  126. </col>
  127. <col ref="goodspec" type="input" visibility="visible"/>
  128. <col ref="goodunit" type="input" visibility="visible"/>
  129. <col ref="useyn" type="combo" visibility="visible">
  130. <choices>
  131. <item>
  132. <label>사용</label>
  133. <value>Y</value>
  134. </item>
  135. <item>
  136. <label>미사용</label>
  137. <value>N</value>
  138. </item>
  139. </choices>
  140. </col>
  141. <col ref="sortseq" type="input" visibility="visible"/>
  142. <col ref="fromdd" visibility="hidden"/>
  143. <col ref="todd" visibility="hidden"/>
  144. <col ref="instcd" visibility="hidden"/>
  145. <col ref="gubuncd" visibility="hidden"/>
  146. <col checkvalue="Y,N" ref="dsioyn" type="checkbox" visibility="visible"/>
  147. <col checkvalue="Y,N" ref="csmtyn" type="checkbox" visibility="visible"/>
  148. <col checkvalue="Y,N" ref="possyn" type="checkbox" visibility="visible"/>
  149. <col checkvalue="Y,N" ref="porqyn" type="checkbox" visibility="visible"/>
  150. <col checkvalue="Y,N" ref="linenyn" type="checkbox" visibility="visible"/>
  151. <col ref="gooddesc" type="input" visibility="visible"/>
  152. <col ref="etcremark" type="input" visibility="visible"/>
  153. </datagrid>
  154. <button id="button1" class="btn2_letter3" style="left:998px; top:3px; width:53px; height:19px; ">
  155. <caption>초기화</caption>
  156. <script type="javascript" ev:event="DOMActivate">
  157. <![CDATA[
  158. fInitialize();
  159. ]]>
  160. </script>
  161. </button>
  162. <button id="button3" class="btn2_letter2" style="left:1097px; top:3px; width:42px; height:19px; ">
  163. <caption>삭제</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. if(grd_mscdlist.row > -1 && grd_mscdlist.row >= grd_mscdlist.fixedrows){
  167. var firstRow = grd_mscdlist.selectedRow(0);
  168. var lastRow = grd_mscdlist.selectedRow(grd_mscdlist.selectedRows-1);
  169. for(var i = firstRow; i <= lastRow; i++) {
  170. //grd_mscdlist.addStatus(i, "delete");
  171. grd_mscdlist.rowStatus(i) = "4";
  172. }
  173. }
  174. ]]>
  175. </script>
  176. </button>
  177. <button id="btn_grdadd" class="btn2_letter2" disabled="false" style="left:1053px; top:3px; width:42px; height:19px; ">
  178. <caption>추가</caption>
  179. <script type="javascript" ev:event="DOMActivate">
  180. <![CDATA[
  181. grd_mscdlist.addRow();
  182. grd_mscdlist.valueMatrix(grd_mscdlist.row, grd_mscdlist.colRef("useyn")) = "Y";
  183. grd_mscdlist.valueMatrix(grd_mscdlist.row, grd_mscdlist.colRef("gubuncd")) = model.getValue(rdo_gubuncd.attribute("ref"));
  184. var tmp = Number(grd_mscdlist.valueMatrix(grd_mscdlist.row-1,grd_mscdlist.colRef("goodcd")).substr(1,3)) + 1;
  185. if (tmp.toString().length == 1) {
  186. tmp = "00" + tmp;
  187. } else if (tmp.toString().length == 2) {
  188. tmp = "0" + tmp;
  189. }
  190. if (model.getValue(rdo_gubuncd.attribute("ref")) == '01') {grd_mscdlist.valueMatrix(grd_mscdlist.row, grd_mscdlist.colRef("goodcd")) = "A" + tmp}
  191. else { }
  192. grd_mscdlist.editCell();
  193. ]]>
  194. </script>
  195. </button>
  196. </group>
  197. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; ">.,m</shape>
  198. <button id="btn_search" class="btn1_letter2" navindex="2" style="left:1120px; top:25px; width:56px; height:22px; ">
  199. <caption>조회</caption>
  200. <script type="javascript" ev:event="DOMActivate">
  201. <![CDATA[
  202. fSearch();
  203. ]]>
  204. </script>
  205. </button>
  206. <line id="line2" class="line_4" style="x1:1100px; y1:25px; x2:1100px; y2:50px; "/>
  207. <caption id="cap_instcd" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">기관코드 :</caption>
  208. <output id="opt_instcdnm" ref="/root/datasend/instcdnm" class="output_fix" style="left:100px; top:30px; width:175px; height:19px; text-align:center; "/>
  209. <select1 id="rdo_gubuncd" ref="/root/main/cond/gubuncd" visibility="visible" overflow="visible" appearance="full" cols="2" style="left:350px; top:30px; width:305px; height:20px; border-style:none; ">
  210. <choices>
  211. <item>
  212. <label>물품Master</label>
  213. <value>01</value>
  214. </item>
  215. <item>
  216. <label>창고Master</label>
  217. <value>02</value>
  218. </item>
  219. </choices>
  220. <script type="javascript" ev:event="xforms-value-changed">
  221. <![CDATA[
  222. fSearch();
  223. ]]>
  224. </script>
  225. </select1>
  226. <caption id="caption1" class="search_name" style="left:290px; top:30px; width:55px; height:17px; ">구분:</caption>
  227. </xhtml:body>
  228. </xhtml:html>