SMRST06100_월수불증감내역.xrw 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624
  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. <indlvlist>
  11. <suppcustcd/>
  12. <goodcd/>
  13. <goodnm/>
  14. <goodspec/>
  15. <goodmodel/>
  16. <inputamt/>
  17. <inputamt2/>
  18. <incrateamt/>
  19. <inputamt3/>
  20. <incrateamt2/>
  21. <inputqty/>
  22. <inputqty2/>
  23. <incrateqty/>
  24. <inputqty3/>
  25. <incrateqty2/>
  26. </indlvlist>
  27. </main>
  28. <send>
  29. <goodreq>
  30. <refflag>M</refflag>
  31. <workyyyy/>
  32. <workyymm/>
  33. <qurt/>
  34. <maincustlastsuplplce/>
  35. <maincustlastsuplplcenm/>
  36. <suppcustcd/>
  37. <suppcustcdnm/>
  38. <instcd/>
  39. <goodflag/>
  40. <lrgcd/>
  41. <mdlcd/>
  42. <amnt/>
  43. <morthn/>
  44. <goodcd/>
  45. <goodnm/>
  46. </goodreq>
  47. </send>
  48. <init>
  49. </init>
  50. <temp/>
  51. </root>
  52. </instance>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. fInitialize();
  56. ]]>
  57. </script>
  58. <submission id="TRRST06101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/indlvlist"/>
  59. </model>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  62. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  63. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  65. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript">
  68. <![CDATA[
  69. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  70. function fInitialize()
  71. {
  72. rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"%","B");
  73. // rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),getUserInfo("userid"),"1","B");
  74. rszfGoodFlagListByPgmGubn(cmb_goodflag,"1","N");
  75. misfComboComCdListMulti("R0025","cmb_goodflag");
  76. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  77. cmb_instcd.refresh();
  78. model.setValue(ipt_workyymm.attribute("ref"), getCurrentDate().substr(0,6));
  79. ipt_workyymm.refresh();
  80. }
  81. function fCheckRetrieveData()
  82. {
  83. if(!isRequiredControls("opt_goodflag") )return false; // 물품구분
  84. if(!isRequiredControls("ipt_orginspym") )return false; // 작업년월
  85. if(!isRequiredControls("opt_stocdeptcd") )return false; // 부서코드
  86. // if(!isRequiredControls("cmb_lrgcd") )return false; // 대분류
  87. }
  88. function fSetRefdata() {
  89. var refflag = model.getValue(rdo_refflag.attribute("ref"));
  90. if(refflag == "M") {
  91. var workyymm = model.getValue(ipt_workyymm.attribute("ref"));
  92. var workyymm2;
  93. var workyymm3;
  94. var yy = workyymm.substr(0,4);
  95. var mm = workyymm.substr(4,2);
  96. var tmp;
  97. if(mm == "01") {
  98. workyymm2 = String(parseInt(yy) - 1) + "12";
  99. workyymm3 = String(parseInt(yy) - 1) + mm;
  100. } else {
  101. tmp = Number(mm) -1;
  102. if(tmp < 10) {
  103. tmp = "0" + tmp;
  104. }
  105. workyymm2 = yy + tmp;
  106. workyymm3 = String(parseInt(yy) - 1) + mm;
  107. }
  108. model.makeValue("/root/send/goodreq/workyymm2", workyymm2);
  109. model.makeValue("/root/send/goodreq/workyymm3", workyymm3);
  110. } else if(refflag == "Q") {
  111. var workyymm;
  112. var workyymm2;
  113. var workyymm3;
  114. var workyyyy = model.getValue(ipt_workyyyy.attribute("ref"));
  115. var yy = String(Number(workyyyy) - 1);
  116. var qurt = model.getValue(rdo_qurt.attribute("ref"));
  117. if(qurt == "1") {
  118. workyymm = workyyyy + "01," + workyyyy + "02," + workyyyy + "03";
  119. workyymm2 = yy + "10," + yy + "11," + yy + "12";
  120. workyymm3 = yy + "01," + yy + "02," + yy + "03"
  121. } else if(qurt == "2") {
  122. workyymm = workyyyy + "04," + workyyyy + "05," + workyyyy + "06";
  123. workyymm2 = workyyyy + "01," + workyyyy + "02," + workyyyy + "03";
  124. workyymm3 = yy + "04," + yy + "05," + yy + "06"
  125. } else if(qurt == "3") {
  126. workyymm = workyyyy + "07," + workyyyy + "08," + workyyyy + "09";
  127. workyymm2 = workyyyy + "04," + workyyyy + "05," + workyyyy + "06";
  128. workyymm3 = yy + "07," + yy + "08," + yy + "09"
  129. } else if(qurt == "4") {
  130. workyymm = workyyyy + "10," + workyyyy + "11," + workyyyy + "12";
  131. workyymm2 = workyyyy + "07," + workyyyy + "08," + workyyyy + "09";
  132. workyymm3 = yy + "10," + yy + "11," + yy + "12"
  133. }
  134. model.makeValue("/root/send/goodreq/workyymm", workyymm);
  135. model.makeValue("/root/send/goodreq/workyymm2", workyymm2);
  136. model.makeValue("/root/send/goodreq/workyymm3", workyymm3);
  137. // alert("금분기: " + workyymm + " 전분기: " + workyymm2 + " 전년분기: " + workyymm3);
  138. } else if(refflag == "Y") {
  139. var workyyyy = model.getValue(ipt_workyyyy.attribute("ref"));
  140. var workyyyy2 = String(Number(workyyyy) - 1);
  141. model.makeValue("/root/send/goodreq/workyyyy2", String( Number(workyyyy) -1 ) );
  142. }
  143. }
  144. ]]>
  145. </script>
  146. </xhtml:head>
  147. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  148. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  149. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">월수불증감내역</caption>
  150. </group>
  151. <group id="grp_biz" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
  152. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:120px; "/>
  153. <select1 id="cmb_instcd" ref="/root/send/goodreq/instcd" class="combo_s_essential" appearance="minimal" style="left:95px; top:19px; width:120px; height:19px; ">
  154. <choices>
  155. <itemset nodeset="/root/init/instcd">
  156. <label ref="cdnm"/>
  157. <value ref="cdid"/>
  158. </itemset>
  159. </choices>
  160. </select1>
  161. <caption id="caption14" class="search_name" style="left:5px; top:19px; width:91px; height:17px; ">기관코드 :</caption>
  162. <caption id="caption1" class="search_name" style="left:5px; top:45px; width:88px; height:17px; ">물품분류 :</caption>
  163. <select1 id="cmb_goodflag" ref="/root/send/goodreq/goodflag" class="combo_s_essential" appearance="minimal" style="left:95px; top:45px; width:120px; height:19px; ">
  164. <choices>
  165. <itemset nodeset="/root/init/goodflag">
  166. <label ref="cdnm"/>
  167. <value ref="cdid"/>
  168. </itemset>
  169. </choices>
  170. <script type="javascript" ev:event="xforms-value-changed">
  171. <![CDATA[
  172. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L", "", "Y");
  173. model.setValue(cmb_lrgcd.attribute("ref"), "");
  174. addComboItem( "cmb_lrgcd", "전체", "", "above");
  175. cmb_lrgcd.dispatch("xforms-value-changed");
  176. ]]>
  177. </script>
  178. </select1>
  179. <select1 id="cmb_lrgcd" ref="/root/send/goodreq/lrgcd" class="combo_search" appearance="minimal" style="left:95px; top:70px; width:120px; height:19px; ">
  180. <choices>
  181. <itemset>
  182. <label/>
  183. <value/>
  184. </itemset>
  185. </choices>
  186. <script type="javascript" ev:event="xforms-value-changed">
  187. <![CDATA[
  188. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), cmb_lrgcd.value, "", "cmb_mdlcd", "", "M", "", "Y");
  189. cmb_mdlcd.dispatch("xforms-value-changed");
  190. addComboItem( "cmb_mdlcd", "전체", "", "above");
  191. cmb_mdlcd.refresh();
  192. ]]>
  193. </script>
  194. </select1>
  195. <select1 id="cmb_mdlcd" ref="/root/send/goodreq/mdlcd" class="combo_search" appearance="minimal" style="left:95px; top:95px; width:120px; height:19px; ">
  196. <choices>
  197. <itemset>
  198. <label/>
  199. <value/>
  200. </itemset>
  201. </choices>
  202. </select1>
  203. <caption id="caption11" class="search_name" style="left:5px; top:70px; width:91px; height:17px; ">대 분 류 :</caption>
  204. <caption id="caption12" class="search_name" style="left:5px; top:95px; width:91px; height:17px; ">중 분 류 :</caption>
  205. <input id="ipt_maincustlastsuplplce" ref="/root/send/goodreq/maincustlastsuplplce" class="input_search" style="left:333px; top:20px; width:77px; height:19px; ">
  206. <script type="javascript" ev:event="xforms-value-changed">
  207. <![CDATA[
  208. if(ipt_maincustlastsuplplce.value != ""){
  209. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  210. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_maincustlastsuplplce.attribute("ref"))
  211. ,"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
  212. }else{
  213. ipt_maincustlastsuplplcenm.value = "";
  214. }
  215. model.refresh();
  216. ]]>
  217. </script>
  218. </input>
  219. <button id="btn_suppcustcd" class="icon_search" style="left:416px; top:44px; width:16px; height:16px; ">
  220. <caption/>
  221. <script type="javascript" ev:event="DOMActivate">
  222. <![CDATA[
  223. rszfOpenPopUpListByWndName(ipt_suppcustcd,"","suppcustcd,suppcustcdnm","SPRSD00220","instcd","cmb_instcd");
  224. model.refresh();
  225. ]]>
  226. </script>
  227. </button>
  228. <caption id="caption31" class="search_name" style="left:230px; top:20px; width:101px; height:17px; ">주 거 래 처 :</caption>
  229. <caption id="caption3" class="search_name" style="left:230px; top:44px; width:103px; height:17px; ">보조거래처 :</caption>
  230. <button id="btn_maincustlastsuplplce" class="icon_search" style="left:416px; top:20px; width:16px; height:16px; ">
  231. <caption/>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. rszfOpenPopUpListByWndName(ipt_maincustlastsuplplce,"","maincustlastsuplplce,maincustlastsuplplcenm","SPRSD00220","instcd","cmb_instcd");
  235. model.refresh();
  236. ]]>
  237. </script>
  238. </button>
  239. <input id="ipt_maincustlastsuplplcenm" ref="/root/send/goodreq/maincustlastsuplplcenm" class="output_search" style="left:435px; top:20px; width:170px; height:19px; ">
  240. <script type="javascript" ev:event="xforms-value-changed">
  241. <![CDATA[
  242. if(ipt_maincustlastsuplplcenm.value != ""){
  243. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  244. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_maincustlastsuplplcenm.attribute("ref"))
  245. ,"","maincustlastsuplplce,maincustlastsuplplcenm" ,ipt_maincustlastsuplplce,"SPRSD00220","instcd","cmb_instcd");
  246. }else{
  247. ipt_maincustlastsuplplce.value = "";
  248. }
  249. model.refresh();
  250. ]]>
  251. </script>
  252. </input>
  253. <input id="ipt_suppcustnm" ref="/root/send/goodreq/suppcustcdnm" class="output_search" style="left:435px; top:44px; width:170px; height:19px; ">
  254. <script type="javascript" ev:event="xforms-value-changed">
  255. <![CDATA[
  256. if(ipt_suppcustnm.value != ""){
  257. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  258. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_suppcustnm.attribute("ref"))
  259. ,"","suppcustcd,suppcustcdnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  260. }else{
  261. ipt_suppcustcd.value = "";
  262. }
  263. model.refresh();
  264. ]]>
  265. </script>
  266. </input>
  267. <input id="ipt_suppcustcd" ref="/root/send/goodreq/suppcustcd" class="input_search" style="left:333px; top:44px; width:77px; height:19px; ">
  268. <script type="javascript" ev:event="xforms-value-changed">
  269. <![CDATA[
  270. if(ipt_suppcustcd.value != ""){
  271. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  272. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_suppcustcd.attribute("ref"))
  273. ,"","suppcustcd,suppcustcdnm" ,ipt_suppcustcd,"SPRSD00220","instcd","cmb_instcd");
  274. }else{
  275. ipt_suppcustnm.value = "";
  276. }
  277. model.refresh();
  278. ]]>
  279. </script>
  280. </input>
  281. <caption id="caption2" class="search_name" style="left:615px; top:20px; width:86px; height:17px; ">조회구분 :</caption>
  282. <select1 id="rdo_refflag" ref="/root/send/goodreq/refflag" overflow="visible" appearance="full" cellspacing="15" cols="3" style="left:705px; top:20px; width:140px; height:13px; border-style:none; ">
  283. <choices>
  284. <item>
  285. <label>월</label>
  286. <value>M</value>
  287. </item>
  288. <item>
  289. <label>분기</label>
  290. <value>Q</value>
  291. </item>
  292. <item>
  293. <label>년</label>
  294. <value>Y</value>
  295. </item>
  296. </choices>
  297. <script type="javascript" ev:event="xforms-value-changed">
  298. <![CDATA[
  299. model.removeNodeset(grd_indlvlist.nodeset);
  300. grd_indlvlist.refresh();
  301. var refflag = model.getValue(rdo_refflag.attribute("ref"));
  302. if(refflag == "M") {
  303. model.setValue(ipt_workyymm.attribute("ref"), getCurrentDate().substr(0,6));
  304. model.setValue(rdo_qurt.attribute("ref"), "");
  305. ipt_workyymm.refresh();
  306. rdo_qurt.refresh();
  307. cap_workyyyy.visible = false;
  308. ipt_workyyyy.visible = false;
  309. cap_workyymm.visible = true;
  310. ipt_workyymm.visible = true;
  311. rdo_qurt.disabled = true;
  312. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputamt")) = "금월";
  313. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputamt2")) = "전월";
  314. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputamt3")) = "전년";
  315. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputqty")) = "금월";
  316. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputqty2")) = "전월";
  317. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputqty3")) = "전년";
  318. grd_indlvlist.colHidden(grd_indlvlist.colRef("inputamt3")) = false;
  319. grd_indlvlist.colHidden(grd_indlvlist.colRef("incrateamt2")) = false;
  320. grd_indlvlist.colHidden(grd_indlvlist.colRef("inputqty3")) = false;
  321. grd_indlvlist.colHidden(grd_indlvlist.colRef("incrateqty2")) = false;
  322. } else if(refflag == "Q") {
  323. var tmp = getCurrentDate().substr(4,2);
  324. if(tmp == "01" || tmp == "02" || tmp == "03") {
  325. model.setValue(rdo_qurt.attribute("ref"), "1");
  326. } else if(tmp == "04" || tmp == "05" || tmp == "06") {
  327. model.setValue(rdo_qurt.attribute("ref"), "2");
  328. } else if(tmp == "07" || tmp == "08" || tmp == "09") {
  329. model.setValue(rdo_qurt.attribute("ref"), "3");
  330. } else if(tmp == "10" || tmp == "11" || tmp == "12") {
  331. model.setValue(rdo_qurt.attribute("ref"), "4");
  332. }
  333. model.setValue(ipt_workyyyy.attribute("ref"), getCurrentDate().substr(0,4));
  334. model.setValue(ipt_workyymm.attribute("ref"), "");
  335. ipt_workyyyy.refresh();
  336. ipt_workyymm.refresh();
  337. cap_workyyyy.visible = true;
  338. ipt_workyyyy.visible = true;
  339. cap_workyymm.visible = false;
  340. ipt_workyymm.visible = false;
  341. rdo_qurt.disabled = false;
  342. rdo_qurt.refresh();
  343. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputamt")) = "금분기";
  344. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputamt2")) = "전분기";
  345. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputamt3")) = "전년";
  346. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputqty")) = "금분기";
  347. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputqty2")) = "전분기";
  348. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputqty3")) = "전년";
  349. grd_indlvlist.colHidden(grd_indlvlist.colRef("inputamt3")) = false;
  350. grd_indlvlist.colHidden(grd_indlvlist.colRef("incrateamt2")) = false;
  351. grd_indlvlist.colHidden(grd_indlvlist.colRef("inputqty3")) = false;
  352. grd_indlvlist.colHidden(grd_indlvlist.colRef("incrateqty2")) = false;
  353. } else if(refflag == "Y") {
  354. model.setValue(ipt_workyyyy.attribute("ref"), getCurrentDate().substr(0,4));
  355. model.setValue(ipt_workyymm.attribute("ref"), "");
  356. model.setValue(rdo_qurt.attribute("ref"), "");
  357. ipt_workyyyy.refresh();
  358. ipt_workyymm.refresh();
  359. rdo_qurt.refresh();
  360. cap_workyyyy.visible = true;
  361. ipt_workyyyy.visible = true;
  362. cap_workyymm.visible = false;
  363. ipt_workyymm.visible = false;
  364. rdo_qurt.disabled = true;
  365. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputamt")) = "금년";
  366. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputamt2")) = "전년";
  367. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputamt3")) = "전년";
  368. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputqty")) = "금년";
  369. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputqty2")) = "전년";
  370. grd_indlvlist.valueMatrix(1, grd_indlvlist.colRef("inputqty3")) = "전년";
  371. grd_indlvlist.colHidden(grd_indlvlist.colRef("inputamt3")) = true;
  372. grd_indlvlist.colHidden(grd_indlvlist.colRef("incrateamt2")) = true;
  373. grd_indlvlist.colHidden(grd_indlvlist.colRef("inputqty3")) = true;
  374. grd_indlvlist.colHidden(grd_indlvlist.colRef("incrateqty2")) = true;
  375. }
  376. ]]>
  377. </script>
  378. </select1>
  379. <line id="line14" class="line_4" style="x1:1110px; y1:29px; x2:1110px; y2:96px; "/>
  380. <button id="button1" class="btn1_letter2" navindex="7" style="left:1125px; top:55px; width:56px; height:22px; text-align:left; ">
  381. <caption>조회</caption>
  382. <script type="javascript" ev:event="DOMActivate">
  383. <![CDATA[
  384. if(model.getValue(cmb_goodflag.attribute("ref")) == "") {
  385. messageBox("물품구분은 필수입력입니다.", "E");
  386. model.setFocus("cmb_goodflag");
  387. return;
  388. }
  389. var refflag = model.getValue(rdo_refflag.attribute("ref"));
  390. if(model.getValue(ipt_amnt.attribute("ref")) != "") {
  391. if(model.getValue(rdo_morthn.attribute("ref") == "")) {
  392. messageBox("이상,이하 여부를 선택하십시오.", "E");
  393. model.setFocus("rdo_morthn");
  394. return;
  395. }
  396. }
  397. if(refflag == "") {
  398. messageBox("조회구분을 선택하세요.", "E");
  399. return;
  400. } else {
  401. if(refflag == "M") {
  402. if(model.getValue(ipt_workyymm.attribute("ref")) == "") {
  403. messageBox("작업년월을 입력하여주세요.", "E");
  404. model.setFocus("ipt_workyymm");
  405. return;
  406. }
  407. fSetRefdata();
  408. } else if(refflag == "Q") {
  409. if(model.getValue(ipt_workyyyy.attribute("ref")) == "") {
  410. messageBox("작업년도를 입력하여 주세요.", "E");
  411. model.setFocus("ipt_workyyyy");
  412. return;
  413. }
  414. if(model.getValue(rdo_qurt.attribute("ref")) == "") {
  415. messageBox("분기구분을 입력하여 주세요.", "E");
  416. model.setFocus("rdo_qurt");
  417. return;
  418. }
  419. fSetRefdata();
  420. } else if(refflag == "Y") {
  421. if(model.getValue(ipt_workyyyy.attribute("ref")) == "") {
  422. messageBox("작업년도를 입력하여 주세요.", "E");
  423. model.setFocus("ipt_workyyyy");
  424. return;
  425. }
  426. fSetRefdata();
  427. }
  428. }
  429. if(model.getValue(ipt_amnt.attribute("ref")) != "") {
  430. if(model.getValue(rdo_morthn.attribute("ref")) == "") {
  431. messageBox("이상이하 여부를 선택하여 주세요.", "E");
  432. model.setFocus("rdo_morthn");
  433. return;
  434. }
  435. }
  436. submit("TRRST06101");
  437. ]]>
  438. </script>
  439. </button>
  440. <input id="ipt_workyymm" ref="/root/send/goodreq/workyymm" class="input_search" inputtype="date" format="yyyy-mm" style="left:703px; top:43px; width:77px; height:19px; ">
  441. <script type="javascript" ev:event="xforms-value-changed">
  442. <![CDATA[
  443. ]]>
  444. </script>
  445. </input>
  446. <caption id="cap_workyymm" class="search_name" style="left:615px; top:43px; width:86px; height:17px; ">작업년월 :</caption>
  447. <caption id="cap_workyyyy" class="search_name" visibility="hidden" style="left:615px; top:43px; width:86px; height:17px; ">작업년도 :</caption>
  448. <input id="ipt_workyyyy" ref="/root/send/goodreq/workyyyy" class="input_search" visibility="hidden" inputtype="date" maxlength="4" format="yyyy" style="left:703px; top:43px; width:77px; height:19px; ">
  449. <script type="javascript" ev:event="xforms-value-changed">
  450. <![CDATA[
  451. ]]>
  452. </script>
  453. </input>
  454. <datagrid id="grd_indlvlist" nodeset="/root/main/indlvlist" caption="보조거래처^물품코드^물품명^규격^모델^금액^금액^금액^금액^금액^수량^수량^수량^수량^수량|보조거래처^물품코드^물품명^규격^모델^금월^전월^증감율^전년^증감율^금월^전월^증감율^전년^증감율" colsep="^" colwidth="100, 80, 170, 60, 60, 100, 100, 50, 100, 50, 60, 60, 50, 60, 50" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:175px; width:1195px; height:565px; ">
  455. <col ref="suppcustnm"/>
  456. <col ref="goodcd"/>
  457. <col ref="goodnm"/>
  458. <col ref="goodspec"/>
  459. <col ref="goodmodel"/>
  460. <col ref="inputamt" format="#,###" style="text-align:right; "/>
  461. <col ref="inputamt2" format="#,###" style="text-align:right; "/>
  462. <col ref="incrateamt" format="(-)#,###.###" style="text-align:right; "/>
  463. <col ref="inputamt3" format="#,###" style="text-align:right; "/>
  464. <col ref="incrateamt2" format="(-)#,###.###" style="text-align:right; "/>
  465. <col ref="inputqty" style="text-align:right; "/>
  466. <col ref="inputqty2" style="text-align:right; "/>
  467. <col ref="incrateqty" format="(-)#,###.###" style="text-align:right; "/>
  468. <col ref="inputqty3" style="text-align:right; "/>
  469. <col ref="incrateqty2" format="(-)#,###.###" style="text-align:right; "/>
  470. </datagrid>
  471. <caption id="cap_qurt" class="search_name" style="left:615px; top:68px; width:86px; height:17px; ">분기구분 :</caption>
  472. <select1 id="rdo_qurt" ref="/root/send/goodreq/qurt" disabled="true" overflow="visible" appearance="full" cellspacing="10" cols="4" style="left:705px; top:70px; width:220px; height:13px; border-style:none; ">
  473. <choices>
  474. <item>
  475. <label>1/4</label>
  476. <value>1</value>
  477. </item>
  478. <item>
  479. <label>2/4</label>
  480. <value>2</value>
  481. </item>
  482. <item>
  483. <label>3/4</label>
  484. <value>3</value>
  485. </item>
  486. <item>
  487. <label>4/4</label>
  488. <value>4</value>
  489. </item>
  490. </choices>
  491. </select1>
  492. <caption id="caption4" class="search_name" style="left:615px; top:90px; width:86px; height:17px; ">증감금액 :</caption>
  493. <input id="ipt_amnt" ref="/root/send/goodreq/amnt" class="input_search" format="#,###" style="left:705px; top:90px; width:100px; height:20px; text-align:right; "/>
  494. <select1 id="rdo_morthn" ref="/root/send/goodreq/morthn" overflow="visible" appearance="full" cellspacing="10" cols="2" style="left:808px; top:92px; width:100px; height:13px; border-style:none; ">
  495. <choices>
  496. <item>
  497. <label>이상</label>
  498. <value>1</value>
  499. </item>
  500. <item>
  501. <label>이하</label>
  502. <value>2</value>
  503. </item>
  504. </choices>
  505. </select1>
  506. <input id="ipt_goodnm" ref="/root/send/goodreq/goodnm" class="output_search" style="left:435px; top:70px; width:170px; height:19px; ">
  507. <script type="javascript" ev:event="xforms-value-changed">
  508. <![CDATA[
  509. if(ipt_goodnm.value != "")
  510. {
  511. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm",
  512. "goodnm," + model.getValue(cmb_instcd.attribute("ref")) + ",,," + model.getValue(ipt_goodnm.attribute("ref")) + ",," ,
  513. "","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,reqflag","cmb_instcd,cmb_reqflag");
  514. }else{
  515. ipt_goodnm.value = "";
  516. ipt_goodcd.value = "";
  517. }
  518. model.refresh();
  519. ]]>
  520. </script>
  521. </input>
  522. <button id="btn_goodcd" class="icon_search" style="left:416px; top:70px; width:16px; height:16px; ">
  523. <caption/>
  524. <script type="javascript" ev:event="DOMActivate">
  525. <![CDATA[
  526. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,goodnm","SPRSD00210","instcd,reqflag","cmb_instcd,cmb_reqflag");
  527. model.refresh();
  528. ]]>
  529. </script>
  530. </button>
  531. <input id="ipt_goodcd" ref="/root/send/goodreq/goodcd" class="input_search" appearance="input" style="left:335px; top:70px; width:75px; height:19px; ">
  532. <script type="javascript" ev:event="xforms-value-changed">
  533. <![CDATA[
  534. if(ipt_goodcd.value != "")
  535. {
  536. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm","goodcd," + model.getValue(cmb_instcd.attribute("ref")) + ",," + model.getValue(ipt_goodcd.attribute("ref")) + ",,,," ,"","goodcd,goodnm",ipt_goodcd,"SPRSD00210","instcd,reqflag","cmb_instcd,cmb_reqflag");
  537. model.refresh();
  538. }else{
  539. ipt_goodcd.value = "";
  540. ipt_goodnm.value = "";
  541. model.refresh();
  542. }
  543. ]]>
  544. </script>
  545. </input>
  546. <caption id="caption16" class="search_name" style="left:230px; top:70px; width:101px; height:17px; ">물 품 코 드 :</caption>
  547. <caption id="caption5" class="tit_2" style="left:5px; top:155px; width:110px; height:14px; ">월수불증감내역</caption>
  548. <line id="line1" class="line_1" style="x1:0px; y1:170px; x2:1195px; y2:170px; "/>
  549. </group>
  550. <group id="group1" style="left:0px; top:12; width:1195px; height:27px; ">
  551. <button id="btn_print" class="btn6_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
  552. <caption>리스트출력</caption>
  553. <script type="javascript" ev:event="DOMActivate">
  554. <![CDATA[
  555. exeReportPreview("RPRST05301", "XMLSTR");
  556. ]]>
  557. </script>
  558. </button>
  559. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  560. </group>
  561. </xhtml:body>
  562. </xhtml:html>