SMRSG07000_(수탁)창고재고발주.xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <list>
  11. <goodreqinfo>
  12. <goodreqlist/>
  13. </goodreqinfo>
  14. <plceordcnfminfo>
  15. <plceordcnfmlist/>
  16. </plceordcnfminfo>
  17. <prndatainfo>
  18. <prndatalist/>
  19. </prndatainfo>
  20. </list>
  21. </main>
  22. <send>
  23. <search>
  24. <instcd/>
  25. <goodflag>Y</goodflag>
  26. <lrgcd/>
  27. <mdlcd/>
  28. <goodcd/>
  29. <goodnm/>
  30. <stocmngtflag/>
  31. <suppcustcd/>
  32. <suppcustcdnm/>
  33. <safestocapp>1</safestocapp>
  34. <safestocprct/>
  35. </search>
  36. <goodreqlist/>
  37. </send>
  38. <init>
  39. <faxdata>
  40. <indate/>
  41. <purctel/>
  42. </faxdata>
  43. </init>
  44. <temp>
  45. </temp>
  46. </root>
  47. </instance>
  48. <bind id="goodcost" ref="/root/main/list/goodreqinfo/goodreqlist/goodcost" calculate="../reqqty * ../goodunitcost"/>
  49. <submission id="TRRSG07001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/goodreqinfo"/>
  50. <submission id="TXRSG07001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreqlist" resultref="/root/temp"/>
  51. <submission id="TRRSG07051" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/plceordcnfminfo"/>
  52. </model>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. //화면 Control을 초기화한다
  56. fInitialize();
  57. ]]>
  58. </script>
  59. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  60. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  61. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  62. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  65. <script type="javascript" src="../../../mis//purcstatsweb/js/SMRSG07000.js"/>
  66. <script type="javascript">
  67. <![CDATA[
  68. function fInitialize()
  69. {
  70. misfComboComCdListMulti("R0069,Z0007","cmb_stocmngtflag,cmb_instcd");
  71. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  72. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  73. addComboItem( "cmb_lrgcd" , "전체", "", "above");
  74. addComboItem( "cmb_stocmngtflag" , "전체", "", "above");
  75. model.removeNodeset("/root/main/list/goodreqinfo/goodreqlist");
  76. model.removeNodeset("/root/main/list/plceordcnfminfo/plceordcnfmlist");
  77. model.refresh();
  78. }
  79. function fSearch(idx)
  80. {
  81. if (idx == 0) {
  82. model.removeNodeset("/root/main/list/goodreqinfo/goodreqlist");
  83. submit("TRRSG07001");
  84. } else if (idx == 1) {
  85. model.removeNodeset("/root/main/list/plceordcnfminfo/plceordcnfmlist");
  86. submit("TRRSG07051");
  87. }
  88. }
  89. ]]>
  90. </script>
  91. </xhtml:head>
  92. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  93. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  94. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">수탁 물품 발주</caption>
  95. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  96. </group>
  97. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  98. <group id="grp_search" style="left:0px; top:17px; width:1195px; height:88px; vertical-align:top; ">
  99. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
  100. <line id="line30" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:58px; "/>
  101. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
  102. <caption>조회</caption>
  103. <script type="javascript" ev:event="DOMActivate">
  104. <![CDATA[
  105. if (swh_select.selectedIndex == 0) {
  106. fSearch(0);
  107. } else if (swh_select.selectedIndex == 1) {
  108. fSearch(1);
  109. }
  110. ]]>
  111. </script>
  112. </button>
  113. <button id="btn_suppcustcd" class="icon_search" style="left:192px; top:62px; width:16px; height:16px; ">
  114. <caption/>
  115. <script type="javascript" ev:event="DOMActivate">
  116. <![CDATA[
  117. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustcdnm","SPRSD00220","instcd","cmb_instcd");
  118. model.refresh();
  119. ]]>
  120. </script>
  121. </button>
  122. <caption id="caption3" class="search_name" style="left:8px; top:60px; width:99px; height:17px; ">보조거래처 :</caption>
  123. <input id="ipt_suppcustnm" ref="/root/send/search/suppcustcdnm" class="output_search" style="left:214px; top:60px; width:136px; height:19px; ">
  124. <script type="javascript" ev:event="xforms-value-changed">
  125. <![CDATA[
  126. if(ipt_suppcustnm.value != ""){
  127. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  128. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustnm.attribute("ref"))
  129. ,"","suppcustcd,suppcustcdnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  130. }else{
  131. ipt_suppcustcd.value = "";
  132. }
  133. model.refresh();
  134. ]]>
  135. </script>
  136. </input>
  137. <input id="ipt_suppcustcd" ref="/root/send/search/suppcustcd" class="input_search" style="left:114px; top:60px; width:74px; height:19px; ">
  138. <script type="javascript" ev:event="xforms-value-changed">
  139. <![CDATA[
  140. if(ipt_suppcustcd.value != ""){
  141. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  142. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref"))
  143. ,"","suppcustcd,suppcustcdnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  144. }else{
  145. ipt_suppcustnm.value = "";
  146. }
  147. model.refresh();
  148. ]]>
  149. </script>
  150. </input>
  151. <select1 id="cmb_lrgcd" ref="/root/send/search/lrgcd" appearance="minimal" style="left:114px; top:36px; width:236px; height:19px; ">
  152. <choices>
  153. <itemset>
  154. <label/>
  155. <value/>
  156. </itemset>
  157. </choices>
  158. <script type="javascript" ev:event="xforms-value-changed">
  159. <![CDATA[
  160. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
  161. cmb_mdlcd.dispatch("xforms-value-changed");
  162. addComboItem( "cmb_mdlcd", "전체", "", "above");
  163. model.refresh();
  164. ]]>
  165. </script>
  166. </select1>
  167. <select1 id="cmb_stocmngtflag" ref="/root/send/search/stocmngtflag" appearance="minimal" style="left:810px; top:36px; width:280px; height:19px; ">
  168. <choices>
  169. <itemset nodeset="/root/init/stocmngtflag">
  170. <label ref="cdnm"/>
  171. <value ref="cdid"/>
  172. </itemset>
  173. </choices>
  174. </select1>
  175. <input id="ipt_goodnm" ref="/root/send/search/goodnm" style="left:920px; top:10px; width:170px; height:19px; "/>
  176. <caption id="cap_goodcd" class="search_name" style="left:675px; top:10px; width:116px; height:17px; ">물품코드 :</caption>
  177. <select1 id="cmb_mdlcd" ref="/root/send/search/mdlcd" appearance="minimal" style="left:450px; top:36px; width:200px; height:19px; ">
  178. <choices>
  179. <itemset>
  180. <label/>
  181. <value/>
  182. </itemset>
  183. </choices>
  184. </select1>
  185. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" appearance="minimal" style="left:114px; top:10px; width:236px; height:19px; ">
  186. <choices>
  187. <itemset nodeset="/root/main/init">
  188. <label ref="cnstnm"/>
  189. <value ref="cnstcd"/>
  190. </itemset>
  191. </choices>
  192. </select1>
  193. <button id="btn_goodcd" class="icon_search" style="left:901px; top:10px; width:16px; height:16px; ">
  194. <caption/>
  195. <script type="javascript" ev:event="DOMActivate">
  196. <![CDATA[
  197. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd","cmb_instcd");
  198. model.refresh();
  199. ]]>
  200. </script>
  201. </button>
  202. <input id="ipt_goodcd" ref="/root/send/search/goodcd" class="input_search" maxlength="10" appearance="input" style="left:810px; top:10px; width:89px; height:19px; "/>
  203. <select1 id="cmb_goodflag" ref="/root/send/search/goodflag" class="combo_default" appearance="minimal" style="left:450px; top:10px; width:200px; height:19px; ">
  204. <choices>
  205. <item>
  206. <label>의료비품</label>
  207. <value>U</value>
  208. </item>
  209. <item>
  210. <label>의료소모품</label>
  211. <value>Y</value>
  212. </item>
  213. <item>
  214. <label>공급실물품</label>
  215. <value>T</value>
  216. </item>
  217. <item>
  218. <label>일반소모품</label>
  219. <value>Z</value>
  220. </item>
  221. </choices>
  222. <script type="javascript" ev:event="xforms-value-changed">
  223. <![CDATA[
  224. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  225. addComboItem( "cmb_lrgcd", "전체", "", "above");
  226. cmb_mdlcd.value='';
  227. model.refresh();
  228. ]]>
  229. </script>
  230. </select1>
  231. <caption id="cap_goodflag" class="search_name" style="left:360px; top:10px; width:131px; height:17px; ">물품구분 :</caption>
  232. <caption id="cap_instcd" class="search_name" style="left:10px; top:10px; width:96px; height:17px; ">기관코드 :</caption>
  233. <caption id="caption16" class="search_name" style="left:675px; top:36px; width:132px; height:17px; ">재고관리기준 :</caption>
  234. <caption id="caption7" class="search_name" style="left:8px; top:36px; width:98px; height:17px; ">대 분 류 :</caption>
  235. <caption id="caption8" class="search_name" style="left:360px; top:36px; width:133px; height:17px; ">중 분 류 :</caption>
  236. <caption id="caption2" class="search_name" style="left:360px; top:60px; width:130px; height:17px; ">안전재고량 적용 :</caption>
  237. <select1 id="cmb_safestocapp" ref="/root/send/search/safestocapp" appearance="minimal" style="left:495px; top:60px; width:155px; height:19px; ">
  238. <choices>
  239. <item>
  240. <label>안전재고량 적용</label>
  241. <value>1</value>
  242. </item>
  243. <item>
  244. <label>안전재고량 비율</label>
  245. <value>2</value>
  246. </item>
  247. <item>
  248. <label>안전재고량 무시</label>
  249. <value>3</value>
  250. </item>
  251. </choices>
  252. <script type="javascript" ev:event="xforms-value-changed">
  253. <![CDATA[
  254. if (cmb_safestocapp.value == "2"){
  255. cap_safestocprct.visible = true;
  256. ipt_safestocprct.visible = true;
  257. cap_safestocprct2.visible = true;
  258. }else{
  259. cap_safestocprct.visible = false;
  260. ipt_safestocprct.visible = false;
  261. cap_safestocprct2.visible = false;
  262. }
  263. ]]>
  264. </script>
  265. </select1>
  266. <caption id="cap_safestocprct" class="search_name" visibility="hidden" style="left:675px; top:60px; width:130px; height:17px; ">안전재고량 비율 :</caption>
  267. <input id="ipt_safestocprct" ref="/root/send/search/safestocprct" class="input_search" visibility="hidden" maxlength="3" format="#,###" appearance="input" style="left:810px; top:60px; width:89px; height:19px; text-align:right; "/>
  268. <caption id="cap_safestocprct2" visibility="hidden" style="left:905px; top:60px; width:20px; height:17px; ">%</caption>
  269. </group>
  270. <button id="btn_plceordprcs" class="btn_sw" group="tab" selected="true" style="left:0px; top:122px; width:144px; height:22px; ">
  271. <caption>발주 처리</caption>
  272. <toggle case="cse_plceordprcs" ev:event="onclick"/>
  273. <script type="javascript" ev:event="DOMActivate">
  274. <![CDATA[
  275. ]]>
  276. </script>
  277. </button>
  278. <button id="btn_plceordcnfm" class="btn_sw" group="tab" style="left:143px; top:122px; width:125px; height:22px; ">
  279. <caption>발주 확인</caption>
  280. <toggle case="cse_plceordcnfm" ev:event="onclick"/>
  281. <script type="javascript" ev:event="DOMActivate">
  282. <![CDATA[
  283. ]]>
  284. </script>
  285. </button>
  286. <switch id="swh_select" style="left:0px; top:145px; width:1190px; height:590px; ">
  287. <case id="cse_plceordprcs" selected="true">
  288. <button id="btn_save" class="btn2_letter4" style="left:1115px; top:10px; width:64px; height:19px; ">
  289. <caption>발주처리</caption>
  290. <script type="javascript" ev:event="DOMActivate">
  291. <![CDATA[
  292. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  293. if ( retMes != 6) {
  294. return;
  295. }
  296. var updtdata = getGridUpdateData(grd_goodreq);
  297. if (updtdata == "")
  298. {
  299. messageBox("변경된 데이터가","I004");
  300. return;
  301. }
  302. model.setValue("/root/send/goodreqlist", updtdata);
  303. submit("TXRSG07001");
  304. btn_search.dispatch("DOMActivate");
  305. ]]>
  306. </script>
  307. </button>
  308. <line id="line1" class="line_1" style="x1:0px; y1:34px; x2:1185px; y2:34px; "/>
  309. <caption id="caption1" class="tit_2" style="left:0px; top:17px; width:143px; height:14px; ">발주 처리</caption>
  310. <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreqinfo/goodreqlist" caption="기관코드^물품구분^전송 여부^물품코드^물품코드^물품명^EDICD^물품규격^모델^보조거래처코드^보조거래처명^주거래처코드^주거래처명^수불단위^실재고량^안전재고량^적정재고량^발주수량^단가^금액^비고" colsep="^" colwidth="7, 9, 63, 85, 31, 209, 86, 100, 93, 8, 119, 7, 119, 67, 70, 80, 80, 68, 125, 123, 259" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:40px; width:1185px; height:535px; font-weight:normal; text-align:center; ">
  311. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  312. <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
  313. <col checkvalue="Y,N" ref="trschkyn" type="checkbox"/>
  314. <col ref="goodcd" style="text-align:center; "/>
  315. <col ref="allsizespecid" style="text-align:center; "/>
  316. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  317. <col ref="edicd" style="text-align:left; padding-left:10; "/>
  318. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  319. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  320. <col ref="suppcustcd" visibility="hidden" style="text-align:center; "/>
  321. <col ref="suppcustnm" style="text-align:left; padding-left:10; "/>
  322. <col ref="maincustlastsuplplce" visibility="hidden" style="text-align:center; "/>
  323. <col ref="maincustlastsuplplcenm" style="text-align:left; padding-left:10; "/>
  324. <col ref="deliveunit" style="text-align:center; "/>
  325. <col ref="stocqty" format="#,###" style="text-align:right; "/>
  326. <col ref="safestocqty" format="#,###" style="text-align:right; "/>
  327. <col ref="prprtystocqty" format="#,###" style="text-align:right; "/>
  328. <col ref="reqqty" type="input" format="(-)#,###" style="text-align:right; "/>
  329. <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
  330. <col ref="goodcost" format="#,###" style="text-align:right; "/>
  331. <col ref="cmt" type="input" style="text-align:left; padding-left:10; "/>
  332. <script type="javascript" ev:event="onclick">
  333. <![CDATA[
  334. var trschkyn;
  335. if(grd_goodreq.col == grd_goodreq.colRef("trschkyn")){
  336. trschkyn = grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("trschkyn"));
  337. if (trschkyn == "Y"){
  338. grd_goodreq.rowStatus(grd_goodreq.row) = "1";
  339. }else{
  340. grd_goodreq.rowStatus(grd_goodreq.row) = "0";
  341. }
  342. }
  343. ]]>
  344. </script>
  345. <script type="javascript" ev:event="xforms-value-changed">
  346. <![CDATA[
  347. if(grd_goodreq.col == grd_goodreq.colRef("cmt")){
  348. if (grd_goodreq.rowStatus(grd_goodreq.row) == "2"){
  349. grd_goodreq.rowStatus(grd_goodreq.row) = "0";
  350. }
  351. }
  352. if(grd_goodreq.col == grd_goodreq.colRef("reqqty")){
  353. if (grd_goodreq.rowStatus(grd_goodreq.row) == "2"){
  354. grd_goodreq.rowStatus(grd_goodreq.row) = "0";
  355. }
  356. model.recalculate();
  357. model.refresh();
  358. }
  359. ]]>
  360. </script>
  361. <script type="javascript" ev:event="onaftersort">
  362. <![CDATA[
  363. grd_goodreq.gridToInstance();
  364. ]]>
  365. </script>
  366. </datagrid>
  367. </case>
  368. <case id="cse_plceordcnfm">
  369. <caption id="caption21" class="tit_2" style="left:0px; top:17px; width:143px; height:14px; ">발주 확인</caption>
  370. <line id="line2" class="line_1" style="x1:0px; y1:34px; x2:1185px; y2:34px; "/>
  371. <datagrid id="grd_plceordcnfm" nodeset="/root/main/list/plceordcnfminfo/plceordcnfmlist" caption="기관코드^물품구분^물품코드^물품코드^물품명^EDICD^물품규격^모델^보조거래처코드^보조거래처명^주거래처코드^주거래처명^발주단위^실재고량^안전재고량^적정재고량^발주량^단가^금액^발주일자^발주일자2^발주번호^비고^(거래처) 전화번호^(거래처) 팩스" colsep="^" colwidth="8, 8, 76, 22, 120, 80, 115, 106, 6, 120, 5, 111, 68, 68, 80, 80, 47, 90, 98, 80, 80, 67, 225, 8, 8" explorerbar="sortshow" frozencols="8" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:0px; top:40px; width:1185px; height:535px; font-weight:normal; text-align:center; ">
  372. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  373. <col ref="goodflag" visibility="hidden" style="text-align:center; "/>
  374. <col ref="goodcd" style="text-align:center; "/>
  375. <col ref="allsizespecid" style="text-align:center; "/>
  376. <col ref="goodnm" style="text-align:left; padding-left:10; "/>
  377. <col ref="edicd" style="text-align:left; padding-left:10; "/>
  378. <col ref="goodspec" style="text-align:left; padding-left:10; "/>
  379. <col ref="goodmodel" style="text-align:left; padding-left:10; "/>
  380. <col ref="suppcustcd" visibility="hidden" style="text-align:left; "/>
  381. <col ref="suppcustnm" style="text-align:left; padding-left:10; "/>
  382. <col ref="maincustlastsuplplce" visibility="hidden" style="text-align:left; "/>
  383. <col ref="maincustlastsuplplcenm" style="text-align:left; padding-left:10; "/>
  384. <col ref="requnit" style="text-align:center; "/>
  385. <col ref="stocqty" format="#,###" style="text-align:right; "/>
  386. <col ref="safestocqty" format="#,###" style="text-align:right; "/>
  387. <col ref="prprtystocqty" format="#,###" style="text-align:right; "/>
  388. <col ref="reqqty" format="####,####" style="text-align:right; "/>
  389. <col ref="requnitcost" format="#,###" style="text-align:right; "/>
  390. <col ref="reqamt" format="#,###" style="text-align:right; "/>
  391. <col ref="reqdd" visibility="visible" format="yyyy/mm/dd" style="text-align:center; "/>
  392. <col ref="reqdd2" visibility="visible" format="yyyy/mm/dd" style="text-align:center; "/>
  393. <col ref="reqseqno" style="text-align:center; "/>
  394. <col ref="cmt" type="input" style="text-align:left; padding-left:10; "/>
  395. <col ref="cntctel" visibility="hidden"/>
  396. <col ref="faxno" visibility="hidden"/>
  397. <script type="javascript" ev:event="xforms-value-changed">
  398. <![CDATA[
  399. if(grd_goodwin.col == grd_goodwin.colRef("cmt")){
  400. if (grd_goodwin.rowStatus(grd_goodwin.row) == "2"){
  401. grd_goodwin.rowStatus(grd_goodwin.row) = "0";
  402. }
  403. }
  404. ]]>
  405. </script>
  406. <script type="javascript" ev:event="onaftersort">
  407. <![CDATA[
  408. grd_plceordcnfm.gridToInstance();
  409. ]]>
  410. </script>
  411. </datagrid>
  412. <button id="btn_print" class="btn2_letter6" style="left:1094px; top:8px; width:86px; height:19px; ">
  413. <caption>발주서 출력</caption>
  414. <script type="javascript" ev:event="DOMActivate">
  415. <![CDATA[
  416. exeReportPreview("RPRSG07051","XMLSTR");
  417. ]]>
  418. </script>
  419. </button>
  420. <button id="btn_scrnmove" class="btn2_letter5" TRRSR01204width="75px" style="left:1010px; top:8px; width:75px; height:19px; ">
  421. <caption>Fax출력</caption>
  422. <script type="javascript" ev:event="DOMActivate">
  423. <![CDATA[
  424. grd_plceordcnfm.sort(grd_plceordcnfm.fixedRows, grd_plceordcnfm.colRef("suppcustnm"), grd_plceordcnfm.rows - 1, grd_plceordcnfm.colRef("suppcustnm")) = "asc";
  425. grd_plceordcnfm.gridToInstance();
  426. grd_plceordcnfm.rebuild();
  427. grp_print.visible = true;
  428. ]]>
  429. </script>
  430. </button>
  431. <group id="grp_print" visibility="hidden" style="left:830px; top:45px; width:258px; height:111px; font-weight:bold; border-style:solid; ">
  432. <button id="btn_faxsave" class="btn2_letter5" TRRSR01204width="75px" style="left:51px; top:80px; width:75px; height:19px; ">
  433. <caption>Fax 저장</caption>
  434. <script type="javascript" ev:event="DOMActivate">
  435. <![CDATA[
  436. if (inp_purctel.value =="") {
  437. alert("발주 담당자 전화번호를 입력하십시요");
  438. return;
  439. }
  440. if (inp_indate.value =="") {
  441. alert("납품일자를 입력하십시요");
  442. return;
  443. }
  444. fFaxDataTextSave();
  445. grp_print.visible = false;
  446. model.resetInstanceNode("/root/init/faxdata");
  447. model.refresh();
  448. ]]>
  449. </script>
  450. </button>
  451. <input id="inp_purctel" ref="/root/init/faxdata/purctel" style="left:104px; top:46px; width:125px; height:19px; "/>
  452. <caption id="caption29" class="search_name" style="left:14px; top:16px; width:95px; height:17px; vertical-align:middle; ">납품일자 :</caption>
  453. <input id="inp_indate" ref="/root/init/faxdata/indate" inputtype="date" style="left:104px; top:15px; width:125px; height:19px; "/>
  454. <caption id="caption30" class="search_name" style="left:14px; top:46px; width:95px; height:17px; vertical-align:middle; ">전화번호 :</caption>
  455. <button id="btn_close" class="btn2_letter4" TRRSR01204width="75px" style="left:144px; top:80px; width:75px; height:19px; ">
  456. <caption>Close</caption>
  457. <script type="javascript" ev:event="DOMActivate">
  458. <![CDATA[
  459. grp_print.visible = false;
  460. model.resetInstanceNode("/root/init/faxdata");
  461. model.refresh();
  462. ]]>
  463. </script>
  464. </button>
  465. </group>
  466. </case>
  467. </switch>
  468. </group>
  469. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  470. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  471. <button id="btn_init" class="btn4_letter3" style="left:1126; top:3; width:68px; height:22px; ">
  472. <caption>초기화</caption>
  473. <script type="javascript" ev:event="DOMActivate">
  474. <![CDATA[
  475. fInitialize();
  476. ]]>
  477. </script>
  478. </button>
  479. </group>
  480. </xhtml:body>
  481. </xhtml:html>