SMRSC00800_제조회사코드등록.xrw 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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: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. <rscmpcomlist/>
  11. </main>
  12. <send>
  13. <prodcmpynm/>
  14. </send>
  15. <init/>
  16. <hidden/>
  17. <temp/>
  18. </root>
  19. </instance>
  20. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  21. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  22. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  23. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  24. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  25. <script type="javascript" ev:event="xforms-ready">
  26. <![CDATA[
  27. fInitialize();
  28. misfMsterDetailSet(grd_rscmpcomlist, null, "TRRSC00803", "Y");
  29. //화면 권한 설정
  30. btn_save.disabled = !(checkAuth("X"));
  31. btn_prt.disabled= !(checkAuth("P"));
  32. model.refresh();
  33. ]]>
  34. </script>
  35. <submission id="TRRSC00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rscmpcomlist"/>
  36. <submission id="TXRSC00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/rscmpcomlist" resultref="/root/temp"/>
  37. </model>
  38. <script type="javascript">
  39. <![CDATA[
  40. function fInitialize()
  41. {
  42. misfGridInit(grd_rscmpcomlist);
  43. }
  44. ]]>
  45. </script>
  46. </xhtml:head>
  47. <xhtml:body>
  48. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  49. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:152px; height:14px; ">제조회사코드 등록.</caption>
  50. </group>
  51. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  52. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; ">
  53. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; "/>
  54. <caption id="cap_prodcmpynm" class="search_name" style="left:15px; top:9px; width:104px; height:17px; ">제조회사 명 :</caption>
  55. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; "/>
  56. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  57. <caption>조회</caption>
  58. <script type="javascript" ev:event="DOMActivate">
  59. <![CDATA[
  60. if( getGridUpdateData(grd_rscmpcomlist) != "" )
  61. {
  62. if( messageBox("작업중인 Data가 있습니다.\n조회를 하시면 작업중인 Data가 사라집니다.", "Q005") == '6'){
  63. misfMsterDetailRetrieve();
  64. }else{
  65. return;
  66. }
  67. }else{
  68. //Mater에 해당하는 정보를 클릭시 Detail이 출력됨
  69. misfMsterDetailRetrieve();
  70. }
  71. //misfSetReadOnlyCol(grd_rscmpcomlist,"prodcmpycd,prodcmpynm", true);
  72. misfSetReadOnlyCol(grd_rscmpcomlist,"prodcmpycd", true);
  73. model.refresh();
  74. ]]>
  75. </script>
  76. </button>
  77. <input id="ipt_prodcmpynm" ref="/root/send/prodcmpynm" class="input_default" style="left:125px; top:8px; width:260px; height:19px; text-align:center; ">
  78. <script type="javascript" ev:event="onkeypress">
  79. <![CDATA[
  80. if(event.keyCode == 13)
  81. {
  82. ipt_prodcmpynm.value = ipt_prodcmpynm.currentText;
  83. ipt_prodcmpynm.refresh();
  84. btn_search.dispatch("DOMActivate");
  85. }
  86. ]]>
  87. </script>
  88. </input>
  89. </group>
  90. <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:157px; height:14px; ">제조회사 list</caption>
  91. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  92. <datagrid id="grd_rscmpcomlist" nodeset="/root/main/rscmpcomlist" allowuserresize="false" caption="제조회사코드^제조회사명^전화번호^주소^비고^기관코드^물품구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^최종수정일시" colsep="^" colwidth="100, 300, 160, 310, 300, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:74px; width:1195px; height:661px; ">
  93. <col class="input_essential" disabled="true" ref="prodcmpycd" _key="true" style="text-align:center; "/>
  94. <col class="input_essential" ref="prodcmpynm" type="input" style="text-align:left; "/>
  95. <col ref="prodcmpytel" type="input" format="9999999999"/>
  96. <col ref="prodcmpyaddr" type="input" style="text-align:left; "/>
  97. <col ref="cmt" type="input" style="text-align:left; "/>
  98. <script type="javascript" ev:event="onaftersort">
  99. <![CDATA[
  100. grd_rscmpcomlist.gridToInstance();
  101. ]]>
  102. </script>
  103. </datagrid>
  104. <button id="btn_grdadd1" class="btn2_letter3" style="left:1030px; top:48px; width:53px; height:19px; ">
  105. <caption>행추가</caption>
  106. <script type="javascript" ev:event="DOMActivate">
  107. <![CDATA[
  108. misfGridIUD(grd_rscmpcomlist, "A");
  109. ]]>
  110. </script>
  111. </button>
  112. <button id="btn_grddel1" class="btn2_letter3" style="left:1086px; top:48px; width:53px; height:19px; ">
  113. <caption>행삭제</caption>
  114. <script type="javascript" ev:event="DOMActivate">
  115. <![CDATA[
  116. misfGridIUD(grd_rscmpcomlist, "D");
  117. ]]>
  118. </script>
  119. </button>
  120. <button id="btn_excel" class="btn2_letter2" style="left:1145px; top:48px; width:42px; height:19px; ">
  121. <caption>엑셀</caption>
  122. <script type="javascript" ev:event="DOMActivate">
  123. <![CDATA[
  124. misfSaveExcel(grd_rscmpcomlist, "제조회사코드내역_"+getCurrentDate());
  125. ]]>
  126. </script>
  127. </button>
  128. </group>
  129. <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
  130. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  131. <caption>저장</caption>
  132. <script type="javascript" ev:event="DOMActivate">
  133. <![CDATA[
  134. if( getGridUpdateData(grd_rscmpcomlist) == "" )
  135. {
  136. messageBox("업데이트 된 내용이", "I004");
  137. return;
  138. }
  139. misfSave("TXRSC00802");
  140. if (model.getValue(gvErrorMsgPath + "/type") != "error")
  141. btn_search.dispatch("DOMAtivate");
  142. model.refresh();
  143. ]]>
  144. </script>
  145. </button>
  146. <line id="line14" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  147. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  148. <caption>초기화</caption>
  149. <script type="javascript" ev:event="DOMActivate">
  150. <![CDATA[
  151. fInitialize();
  152. ]]>
  153. </script>
  154. </button>
  155. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  156. <caption>출력</caption>
  157. </button>
  158. <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
  159. <caption>화면이동</caption>
  160. </button>
  161. </group>
  162. </xhtml:body>
  163. </xhtml:html>