SMRSC00810_약국제조회사코드등록.xrw 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. model.makeValue("/root/send/goodflag","PH");
  64. submit("TRRSC00803");
  65. }else{
  66. return;
  67. }
  68. }else{
  69. model.makeValue("/root/send/goodflag","PH");
  70. submit("TRRSC00803");
  71. }
  72. //misfSetReadOnlyCol(grd_rscmpcomlist,"prodcmpycd,prodcmpynm", true);
  73. misfSetReadOnlyCol(grd_rscmpcomlist,"prodcmpycd", true);
  74. model.refresh();
  75. ]]>
  76. </script>
  77. </button>
  78. <input id="ipt_prodcmpynm" ref="/root/send/prodcmpynm" class="input_default" style="left:125px; top:8px; width:260px; height:19px; text-align:center; ">
  79. <script type="javascript" ev:event="onkeypress">
  80. <![CDATA[
  81. if(event.keyCode == 13)
  82. {
  83. ipt_prodcmpynm.value = ipt_prodcmpynm.currentText;
  84. ipt_prodcmpynm.refresh();
  85. btn_search.dispatch("DOMActivate");
  86. }
  87. ]]>
  88. </script>
  89. </input>
  90. </group>
  91. <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:157px; height:14px; ">제조회사 list</caption>
  92. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  93. <datagrid id="grd_rscmpcomlist" nodeset="/root/main/rscmpcomlist" allowuserresize="false" caption="제조회사코드^제조회사명^전화번호^주소^비고^goodflag^기관코드^물품구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^최종수정일시" colsep="^" colwidth="100, 300, 160, 310, 300, 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; ">
  94. <col class="input_essential" disabled="true" ref="prodcmpycd" _key="true" style="text-align:center; "/>
  95. <col class="input_essential" ref="prodcmpynm" type="input" style="text-align:left; "/>
  96. <col ref="prodcmpytel" type="input" format="9999999999"/>
  97. <col ref="prodcmpyaddr" type="input" style="text-align:left; "/>
  98. <col ref="cmt" type="input" style="text-align:left; "/>
  99. <col ref="goodflag" visibility="hidden"/>
  100. <script type="javascript" ev:event="onaftersort">
  101. <![CDATA[
  102. grd_rscmpcomlist.gridToInstance();
  103. ]]>
  104. </script>
  105. </datagrid>
  106. <button id="btn_grdadd1" class="btn2_letter3" style="left:1030px; top:48px; width:53px; height:19px; ">
  107. <caption>행추가</caption>
  108. <script type="javascript" ev:event="DOMActivate">
  109. <![CDATA[
  110. misfGridIUD(grd_rscmpcomlist, "A");
  111. model.makeValue("/root/main/rscmpcomlist["+grd_rscmpcomlist.row+"]/goodflag","PH");
  112. ]]>
  113. </script>
  114. </button>
  115. <button id="btn_grddel1" class="btn2_letter3" style="left:1086px; top:48px; width:53px; height:19px; ">
  116. <caption>행삭제</caption>
  117. <script type="javascript" ev:event="DOMActivate">
  118. <![CDATA[
  119. misfGridIUD(grd_rscmpcomlist, "D");
  120. ]]>
  121. </script>
  122. </button>
  123. <button id="btn_excel" class="btn2_letter2" style="left:1145px; top:48px; width:42px; height:19px; ">
  124. <caption>엑셀</caption>
  125. <script type="javascript" ev:event="DOMActivate">
  126. <![CDATA[
  127. misfSaveExcel(grd_rscmpcomlist, "제조회사코드내역_"+getCurrentDate());
  128. ]]>
  129. </script>
  130. </button>
  131. </group>
  132. <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
  133. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  134. <caption>저장</caption>
  135. <script type="javascript" ev:event="DOMActivate">
  136. <![CDATA[
  137. if( getGridUpdateData(grd_rscmpcomlist) == "" )
  138. {
  139. messageBox("업데이트 된 내용이", "I004");
  140. return;
  141. }
  142. misfSave("TXRSC00802");
  143. if (model.getValue(gvErrorMsgPath + "/type") != "error")
  144. btn_search.dispatch("DOMAtivate");
  145. model.refresh();
  146. ]]>
  147. </script>
  148. </button>
  149. <line id="line14" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  150. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  151. <caption>초기화</caption>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. fInitialize();
  155. ]]>
  156. </script>
  157. </button>
  158. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  159. <caption>출력</caption>
  160. </button>
  161. <button id="btn_scrnmove" class="btn3_letter4" visibility="hidden" style="left:58px; top:3px; width:80px; height:22px; ">
  162. <caption>화면이동</caption>
  163. </button>
  164. </group>
  165. </xhtml:body>
  166. </xhtml:html>