SMLPC01700_조직은행장비등록.xrw 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPC01600_세포단축키등록.xrw
  4. * 설 명 : 세포단축키등록 화면
  5. * 설 계 자 : (주)에이씨케이 - 황상미
  6. * 작 성 자 : (주)에이씨케이 - 황상미
  7. * 작 성 일 : 2007.01.12
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <eqmtinfo>
  20. <eqmtlist>
  21. <instcd/>
  22. <eqmtcd/>
  23. <eqmtnm/>
  24. <sectcnt/>
  25. <rackcnt/>
  26. <boxcnt/>
  27. <purcdd/>
  28. <purctm/>
  29. <perchgrid/>
  30. <delflagcd/>
  31. <existsyn/>
  32. </eqmtlist>
  33. </eqmtinfo>
  34. </main>
  35. <send>
  36. </send>
  37. <init>
  38. <hospenv>
  39. <hospenvinfo>
  40. <instcd/>
  41. <lendrtnterm/>
  42. <recvqualmthdcd/>
  43. <plgydeptcd/>
  44. <plgyteamcd/>
  45. <doctjobgradcd/>
  46. <teamjobgradcd/>
  47. </hospenvinfo>
  48. </hospenv>
  49. <userinfo>
  50. <userinfolist>
  51. <userid/>
  52. <usernm/>
  53. <jobkindcd/>
  54. </userinfolist>
  55. </userinfo>
  56. </init>
  57. <hidden>
  58. </hidden>
  59. </root>
  60. </instance>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  64. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  65. <script type="javascript" ev:event="xforms-ready">
  66. <![CDATA[
  67. fExeInitialize();
  68. ]]>
  69. </script>
  70. <submission id="TRLPZ00101" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
  71. <submission id="TRLPZ00105" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
  72. <submission id="TRLPC01701" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/eqmtinfo/eqmtlist"/>
  73. <submission id="TXLPC01701" ref="/root/send/eqmtlist" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/message"/>
  74. </model>
  75. <script type="javascript">
  76. <![CDATA[
  77. /* @group : 조직은행 장비등록
  78. * @ver : 2007.09.21 (CMCDEV-0001)
  79. * @by : 유동철(ACK)
  80. * @-----------------------------------
  81. * @type : function
  82. * @access : public
  83. * @desc : 화면초기화 처리 Function
  84. */
  85. function fExeInitialize() {
  86. //----------------
  87. // 시스템일자 조회
  88. model.removeNodeset("/root/send");
  89. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  90. submit("TRLPZ00101", false);
  91. lpzfUserDeptCd("/root/init/hospenv/hospenvinfo", "/root/init/userinfo");
  92. model.makeValue("/root/send/userdeptcd", model.getValue("/root/init/userinfo/userdeptcd"));
  93. model.makeValue("/root/send/doctjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/doctjobgradcd"));
  94. model.makeValue("/root/send/teamjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/teamjobgradcd"));
  95. submit("TRLPZ00105");
  96. //------------
  97. // 초기값 설정
  98. model.removeNodeset("/root/main/eqmtinfo/eqmtlist");
  99. //--------------
  100. model.refresh();
  101. }
  102. /* @group : 조직은행 장비등록
  103. * @ver : 2007.09.21 (CMCDEV-0001)
  104. * @by : 유동철(ACK)
  105. * @-----------------------------------
  106. * @type : function
  107. * @access : public
  108. * @desc : 그리드 한줄추가 처리 Function
  109. */
  110. function fExeEqmtAdd() {
  111. grd_eqmtlist.addrow();
  112. model.makeValue("/root/main/eqmtinfo/eqmtlist["+grd_eqmtlist.row+"]/instcd", getUserInfo("dutplceinstcd"));
  113. }
  114. /* @group : 조직은행 장비등록
  115. * @ver : 2007.09.21 (CMCDEV-0001)
  116. * @by : 유동철(ACK)
  117. * @-----------------------------------
  118. * @type : function
  119. * @access : public
  120. * @desc : 그리드 한줄삭제 처리 Function
  121. */
  122. function fExeEqmtDel() {
  123. //---------------------------------------------------------------------
  124. if (getNodesetCount("/root/main/eqmtinfo/eqmtlist") <= 0) return false;
  125. //-----------------------------------------------------------------------------------------
  126. if (model.getValue("/root/main/eqmtinfo/eqmtlist["+grd_eqmtlist.row+"]/existsyn") == "N") {
  127. grd_eqmtlist.deleteRow(grd_eqmtlist.row);
  128. } else {
  129. grd_eqmtlist.addStatus(grd_eqmtlist.row,"delete");
  130. }
  131. }
  132. /* @group : 조직은행 장비등록
  133. * @ver : 2007.09.21 (CMCDEV-0001)
  134. * @by : 유동철(ACK)
  135. * @-----------------------------------
  136. * @type : function
  137. * @access : public
  138. * @desc : 장비목록 조회 처리 Function
  139. */
  140. function fGetEqmtList() {
  141. model.removeNodeset("/root/send");
  142. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  143. submit("TRLPC01701");
  144. }
  145. /* @group : 조직은행 장비등록
  146. * @ver : 2007.09.21 (CMCDEV-0001)
  147. * @by : 유동철(ACK)
  148. * @-----------------------------------
  149. * @type : function
  150. * @access : public
  151. * @desc : 장비정보 저장 처리 Function
  152. */
  153. function fExeEqmtInfo() {
  154. var sEqmtCd = "";
  155. var sSrcNode = "/root/main/eqmtinfo/eqmtlist";
  156. //-----------------------------------
  157. if (getNodesetCount(sSrcNode) <= 0) {
  158. messageBox("조직은행 장비를 ", "C001");
  159. return false;
  160. } else {
  161. for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
  162. if (model.getValue(sSrcNode+"["+iNo+"]/delflagcd") == "") {
  163. messageBox("사용구분을 ", "C002");
  164. return false;
  165. }
  166. if (model.getValue(sSrcNode+"["+iNo+"]/eqmtcd") == "") {
  167. messageBox("장비코드를 ", "C001");
  168. return false;
  169. }
  170. if (model.getValue(sSrcNode+"["+iNo+"]/eqmtnm") == "") {
  171. messageBox("장비명을 ", "C001");
  172. return false;
  173. }
  174. //----------------------------------------------------
  175. sEqmtCd = model.getValue(sSrcNode+"["+iNo+"]/eqmtcd");
  176. model.makeValue(sSrcNode+"["+iNo+"]/eqmtcd", sEqmtCd.toUpperCase());
  177. }
  178. }
  179. //--------------------------------
  180. model.removeNodeset("/root/send");
  181. model.makeValue("/root/send/eqmtlist", grd_eqmtlist.getUpdateData());
  182. //-----------
  183. setAlertOn();
  184. if (submit("TXLPC01701")) fGetEqmtList();
  185. }
  186. ]]>
  187. </script>
  188. </xhtml:head>
  189. <xhtml:body guideline="1,1194;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  190. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  191. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">조직은행 장비등록</caption>
  192. </group>
  193. <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  194. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; ">
  195. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  196. <line id="line14" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
  197. <button id="btn_sea" navindex="4" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  198. <caption>조회</caption>
  199. <script type="javascript" ev:event="DOMActivate">
  200. <![CDATA[
  201. fGetEqmtList();
  202. ]]>
  203. </script>
  204. </button>
  205. </group>
  206. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:139px; height:14px; ">조직은행 장비목록</caption>
  207. <line id="line1" class="line_1" style="x1:0px; y1:70; x2:1194px; y2:70; "/>
  208. <datagrid id="grd_eqmtlist" nodeset="/root/main/eqmtinfo/eqmtlist" caption="기관코드^장비코드^장비명^Section수^Rack수^Box수^구매일자^구매시간^담당자^사용구분^존재여부" colwidth="0, 90, 411, 90, 90, 90, 90, 90, 99, 100, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" colsep="^" style="left:0; top:75px; width:1194px; height:668px; ">
  209. <col ref="instcd"/>
  210. <col class="text_center" ref="eqmtcd" type="input" maxlength="2"/>
  211. <col ref="eqmtnm" type="input" maxlength="60"/>
  212. <col class="text_center" ref="sectcnt" type="input" format="#,###" showmask="true" mask="exclude" maxlength="4"/>
  213. <col class="text_center" ref="rackcnt" type="input" format="#,###" showmask="true" mask="exclude" maxlength="4"/>
  214. <col class="text_center" ref="boxcnt" type="input" format="#,###" showmask="true" mask="exclude" maxlength="4"/>
  215. <col class="text_center" ref="purcdd" type="input" format="yyyy-mm-dd" showmask="true" mask="exclude"/>
  216. <col class="text_center" ref="purctm" type="input" format="hh:nn:ss" showmask="true" mask="exclude"/>
  217. <col ref="perchgrid" type="combo">
  218. <choices>
  219. <itemset nodeset="/root/init/userinfo/userinfolist">
  220. <label ref="usernm"/>
  221. <value ref="userid"/>
  222. </itemset>
  223. </choices>
  224. </col>
  225. <col ref="delflagcd" type="combo">
  226. <choices>
  227. <item>
  228. <label>사용</label>
  229. <value>0</value>
  230. </item>
  231. <item>
  232. <label>미사용</label>
  233. <value>1</value>
  234. </item>
  235. </choices>
  236. </col>
  237. <col ref="existsyn"/>
  238. </datagrid>
  239. <button id="btn_addeqmt" navindex="6" class="btn2_letter3" style="left:1085px; top:50px; width:53px; height:19px; ">
  240. <caption>행추가</caption>
  241. <script type="javascript" ev:event="DOMActivate">
  242. <![CDATA[
  243. fExeEqmtAdd();
  244. ]]>
  245. </script>
  246. </button>
  247. <button id="btn_deleqmt" navindex="7" class="btn2_letter3" style="left:1141px; top:50px; width:53px; height:19px; ">
  248. <caption>행삭제</caption>
  249. <script type="javascript" ev:event="DOMActivate">
  250. <![CDATA[
  251. fExeEqmtDel();
  252. ]]>
  253. </script>
  254. </button>
  255. </group>
  256. <group id="grp_btn" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  257. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  258. <button id="btn_save" navindex="13" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  259. <caption>저장</caption>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. fExeEqmtInfo();
  263. ]]>
  264. </script>
  265. </button>
  266. </group>
  267. </xhtml:body>
  268. </xhtml:html>