SPRSG10200_구매출력물관련조건(경북대).xrw 96 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  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. </main>
  11. <send>
  12. <req>
  13. <instcd/>
  14. <goodflag/>
  15. <fixtrseqmtflag/>
  16. <possnddfr/>
  17. <possnddto/>
  18. <deptcd/>
  19. <deptnm/>
  20. <possnamt/>
  21. <acntcd/>
  22. <acntnm/>
  23. <repayyy/>
  24. <deptflag>U</deptflag>
  25. <rpiryn>N</rpiryn>
  26. <reqdd1/>
  27. <reqdd2/>
  28. <acsrssrchyn>Y</acsrssrchyn>
  29. </req>
  30. </send>
  31. <init/>
  32. <hidden/>
  33. <temp/>
  34. </root>
  35. </instance>
  36. </model>
  37. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  41. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  42. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  43. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. //사용자 권한
  47. fCheckAuth();
  48. if (isPopup())
  49. {
  50. cap_title.text = opener.window.javascript.getParameter("SPRSG10200_title");
  51. model.makeValue("/root/temp/reqlist", opener.window.javascript.getParameter("SPRSG10200_reqlist"));
  52. model.makeValue("/root/temp/essnlist", opener.window.javascript.getParameter("SPRSG10200_essnlist"));
  53. model.makeValue("/root/temp/sendlist", opener.window.javascript.getParameter("SPRSG10200_sendlist"));
  54. model.makeValue("/root/temp/valupath", opener.window.javascript.getParameter("SPRSG10200_valupath"));
  55. model.makeValue("/root/temp/ipflaglist", opener.window.javascript.getParameter("SPRSG10200_irflaglist"));
  56. }
  57. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd")); // 기관 설정
  58. rszfGoodFlagListByPgmGubn(cmb_goodflag,"2","N");
  59. rszfGoodFlagListByPgmGubn(cmb_fixtrseqmtflag,"2","N");
  60. //cap_title.text = "aaa";
  61. //model.makeValue("/root/temp/reqlist", "yy,emplno,deptcd,instcd,supinfqurtyyflag,apprtcdrflag");
  62. //model.makeValue("/root/temp/reqlist", "yy,emplno,deptcd,instcd,supinfqurtyyflag,apprtcdrflag,dentyn,trngflag13");
  63. //model.makeValue("/root/temp/essnlist", "deptcd");
  64. if (model.getValue("/root/temp/reqlist") == "")
  65. {
  66. btn_prn.disabled = true;
  67. return;
  68. }
  69. var today = getCurrentDate();
  70. var cur_yy = parseInt(today.substring(0, 4));
  71. var cur_mm = today.substring(4,6);
  72. // 연도 default 값은 금년이 되도록 수정 (2008.08.19 정성욱 수정)
  73. /*if (opener.window.javascript.getParameter("SPRSG10200_yydiff") != "")
  74. {
  75. cur_yy += parseInt(opener.window.javascript.getParameter("SPRSG10200_yydiff"));
  76. }
  77. */
  78. var reqArr = fGetStrToArr(model.getValue("/root/temp/reqlist"));
  79. var ctrl;
  80. var pos_col1left = 10;
  81. var pos_col2left = 310;
  82. var pos_left = pos_col1left;
  83. var pos_top = 10;
  84. for (var i=0; i<reqArr.length; i++)
  85. {
  86. if (reqArr[i] == "possnddfr" || reqArr[i] == "possnddto")
  87. {
  88. ctrl = document.controls("grup_possnddterm");
  89. }
  90. else if (reqArr[i] == "reqdd1" || reqArr[i] == "reqdd2")
  91. {
  92. ctrl = document.controls("grup_reqddterm");
  93. }
  94. else
  95. {
  96. ctrl = document.controls("grup_" + reqArr[i]);
  97. }
  98. if (ctrl.attribute("visibility") == "hidden")
  99. {
  100. ctrl.attribute("left") = pos_left;
  101. ctrl.attribute("top") = pos_top;
  102. pos_top += parseInt(ctrl.attribute("height"));
  103. ctrl.attribute("visibility") = "visible";
  104. }
  105. /*if (reqArr[i] == "yy") {
  106. model.makeValue("/root/send/req/yy", cur_yy);
  107. } else if (reqArr[i] == "fromdd" || reqArr[i] == "todd") {
  108. model.makeValue("/root/send/req/" + reqArr[i], today);
  109. // } else if (reqArr[i] == "mm2") {
  110. // model.makeValue("/root/send/req/mm" , "");
  111. } else {
  112. model.makeValue("/root/send/req/" + reqArr[i], "");
  113. }*/
  114. if (reqArr[i] == "instcd") {
  115. rszfGetLabelControlComboList("Z0007", "cmb_instcd", "detldesc");
  116. addComboItem( "cmb_instcd", "전체", "", "above");
  117. }
  118. /*else if (reqArr[i] == "deptcd") {
  119. submit("TRRTS00602");
  120. }
  121. else if (reqArr[i] == "supinfqurtyyflag") {
  122. fAddComCdList("R0237", "rdo_supinfqurtyyflag");
  123. }*/
  124. }
  125. pos_top += 5;
  126. roundrect1.attribute("height") = pos_top;
  127. pos_top += 5;
  128. btn_prn.attribute("top") = pos_top;
  129. /*pos_top += 15 + parseInt(btn_prn.attribute("height"));
  130. group2.attribute("height") = pos_top;
  131. pos_top += 5;
  132. window.height = pos_top;*/
  133. /*
  134. if (g_comcd_grupids != "")
  135. {
  136. misfComboComCdListMulti(g_comcd_grupids, g_comcd_ctrls);
  137. var sCtrls = g_comcd_ctrls.split(",")
  138. for(var i = 0 ; i < sCtrls.length ; i++)
  139. {
  140. if(sCtrls[i] == "rdo_supinfqurtyyflag"){
  141. addComboItem( "rdo_supinfqurtyyflag", "전체", "", "above");
  142. }
  143. else if(sCtrls[i] == "cmb_deptcd"){
  144. addComboItem( "cmb_deptcd", "전체", "", "above");
  145. }
  146. else if(sCtrls[i] == "cmb_mm" ){
  147. addComboItem( "cmb_mm", "전체", "", "above");
  148. }
  149. // else if(sCtrls[i] == "cmb_mm2"){
  150. // addComboItem( "cmb_mm2", "전체", "", "above");
  151. // }
  152. }
  153. }*/
  154. // alert(cmb_mm.choices.itemset.attribute("nodeset"));
  155. // alert(cmb_mm.choices.itemset.label.attribute("ref"));
  156. // alert(cmb_mm.choices.itemset.value.attribute("ref"));
  157. model.refresh();
  158. ]]>
  159. </script>
  160. <script type="javascript">
  161. <![CDATA[
  162. var g_comcd_grupids = "";
  163. var g_comcd_ctrls = "";
  164. function fAddComCdList(grupid, ctrlid)
  165. {
  166. if (g_comcd_grupids != "")
  167. g_comcd_grupids += ",";
  168. g_comcd_grupids += grupid;
  169. if (g_comcd_ctrls != "")
  170. g_comcd_ctrls += ",";
  171. g_comcd_ctrls += ctrlid;
  172. }
  173. //========================================================================================
  174. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  175. //========================================================================================
  176. function fCheckAuth() {
  177. btn_prn.disabled = !checkAuth("P") ;
  178. }
  179. function fGetStrToArr(str)
  180. {
  181. return str.split(",");
  182. }
  183. ]]>
  184. </script>
  185. </xhtml:head>
  186. <xhtml:body pagewidth="440" pageheight="525">
  187. <group id="group1" style="left:5px; top:0px; width:327px; height:13px; ">
  188. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:295px; height:14px; ">구매관련 출력 조회조건</caption>
  189. </group>
  190. <group id="group2" scroll="auto" style="left:5px; top:19px; width:425px; height:476px; ">
  191. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:5px; width:415px; height:425px; background-color:#fffbf2; border-color:#ffd799; "/>
  192. <button id="btn_prn" class="btn6_letter2" style="left:345px; top:392px; width:56px; height:22px; ">
  193. <caption>출력</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. if (model.getValue("/root/temp/essnlist") != "")
  197. {
  198. var arr = fGetStrToArr(model.getValue("/root/temp/essnlist"));
  199. var ctrl;
  200. for (var i=0; i<arr.length; i++)
  201. {
  202. var valu = model.getValue("/root/send/req/" + arr[i]);
  203. var ctrl = document.controls("cap_" + arr[i]);
  204. if (valu == "")
  205. {
  206. messageBox(ctrl.text + " 필수입력입니다.", "I", "");
  207. return;
  208. }
  209. }
  210. }
  211. /*if (model.getValue("/root/send/req/mm") != "")
  212. {
  213. model.setValue("/root/send/req/mm", model.getValue("/root/send/req/mm").getLeftPad(2, "0"));
  214. model.refresh();
  215. }*/
  216. var path = model.getValue("/root/temp/valupath");
  217. if (path == "")
  218. {
  219. path = "/root/send/req";
  220. }
  221. path += "/";
  222. var arr = ""
  223. var sendlist = model.getValue("/root/temp/sendlist").getTrim();
  224. if (sendlist == ""){
  225. arr = fGetStrToArr(model.getValue("/root/temp/reqlist"));
  226. }else{
  227. arr = fGetStrToArr(model.getValue("/root/temp/sendlist"));
  228. }
  229. for (var i=0; i<arr.length; i++)
  230. {
  231. opener.model.makeValue(path+arr[i], model.getValue("/root/send/req/"+arr[i]));
  232. }
  233. model.close();
  234. ]]>
  235. </script>
  236. </button>
  237. <group id="grup_instcd" visibility="hidden" style="left:10px; top:10px; width:400px; height:30px; ">
  238. <caption id="cap_instcd" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">기관코드</caption>
  239. <select1 id="cmb_instcd" ref="/root/send/req/instcd" class="combo_search" appearance="minimal" style="left:130px; top:5px; width:150px; height:19px; ">
  240. <choices>
  241. <itemset>
  242. <label/>
  243. <value/>
  244. </itemset>
  245. </choices>
  246. </select1>
  247. </group>
  248. <group id="grup_goodflag" visibility="hidden" style="left:10px; top:40px; width:400px; height:30px; ">
  249. <caption id="cap_goodflag" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">물품구분</caption>
  250. <select1 id="cmb_goodflag" ref="/root/send/req/goodflag" class="combo_search" appearance="minimal" style="left:130px; top:5px; width:150px; height:19px; ">
  251. <choices>
  252. <itemset nodeset="/root/init/goodflag">
  253. <label ref="cdnm"/>
  254. <value ref="cdid"/>
  255. </itemset>
  256. </choices>
  257. </select1>
  258. </group>
  259. <group id="grup_deptflag" visibility="hidden" style="left:10px; top:130px; width:400px; height:30px; ">
  260. <caption id="caption2" class="search_name" style="left:10px; top:5px; width:100px; height:17px; ">부서구분</caption>
  261. <select1 id="rdo_deptflag" ref="/root/send/req/deptflag" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:130px; top:5px; width:205px; height:20px; border-style:none; ">
  262. <choices>
  263. <item>
  264. <label>관리부서</label>
  265. <value>M</value>
  266. </item>
  267. <item>
  268. <label>사용부서</label>
  269. <value>U</value>
  270. </item>
  271. </choices>
  272. </select1>
  273. </group>
  274. <group id="grup_repayyy" visibility="hidden" style="left:10px; top:250px; width:400px; height:30px; ">
  275. <caption id="cap_repayyy" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">상각년도</caption>
  276. <input id="cal_repayyy" ref="/root/send/req/repayyy" class="input_search" inputtype="date" style="left:130px; top:5px; width:120px; height:19px; "/>
  277. </group>
  278. <group id="grup_possnamt" visibility="hidden" style="left:10px; top:190px; width:400px; height:30px; ">
  279. <caption id="cap_possnamt" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">금 액</caption>
  280. <input id="ipt_possnamt" ref="/root/send/req/possnamt" class="input_default" visibility="visible" format="#,###" appearance="input" style="left:130px; top:5px; width:150px; height:19px; text-align:right; "/>
  281. </group>
  282. <group id="grup_deptcd" visibility="hidden" style="left:10px; top:160px; width:400px; height:30px; ">
  283. <caption id="cap_deptcd" class="search_name" style="left:10px; top:5px; width:105px; height:17px; ">부 서</caption>
  284. <input id="ipt_deptnm" ref="/root/send/req/deptnm" class="input_fix" appearance="input" style="left:233px; top:5px; width:159px; height:19px; ">
  285. <script type="javascript" ev:event="xforms-value-changed">
  286. <![CDATA[
  287. if(ipt_deptnm.value.length == 0)
  288. ipt_deptcd.value = "";
  289. else
  290. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptnm",
  291. "deptnm," + ipt_deptnm.value, "", "deptcd,deptnm",
  292. ipt_deptnm, "SPRPZ00200", "","");
  293. model.refresh();
  294. ]]>
  295. </script>
  296. </input>
  297. <button id="btn_deptcd" class="icon_search" style="left:213px; top:5px; width:16px; height:16px; ">
  298. <caption/>
  299. <script type="javascript" ev:event="DOMActivate">
  300. <![CDATA[
  301. misfOpenPopUpList("02", ipt_deptcd,"", "deptcd,deptnm", model.getValue(cmb_instcd.attribute("ref")),"instcd");
  302. model.refresh();
  303. ]]>
  304. </script>
  305. </button>
  306. <input id="ipt_deptcd" ref="/root/send/req/deptcd" class="input_default" appearance="input" style="left:130px; top:5px; width:80px; height:19px; ">
  307. <script type="javascript" ev:event="xforms-value-changed">
  308. <![CDATA[
  309. if(ipt_deptcd.value.length == 0)
  310. ipt_deptnm.value = "";
  311. else
  312. rszfValidationCheck("TRRPZ00201", "deptcodelist", "refcond,deptcd",
  313. "deptcd," + ipt_deptcd.value, "", "deptcd,deptnm",
  314. ipt_deptcd, "SPRPZ00200", "","");
  315. model.refresh();
  316. ]]>
  317. </script>
  318. </input>
  319. </group>
  320. <group id="grup_acntcd" visibility="hidden" style="left:10px; top:220px; width:400px; height:30px; ">
  321. <caption id="cap_acntcd" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">계정과목</caption>
  322. <input id="ipt_acntnm" ref="/root/send/req/acntnm" class="input_fix" appearance="input" style="left:232px; top:5px; width:159px; height:19px; ">
  323. <script type="javascript" ev:event="xforms-value-changed">
  324. <![CDATA[
  325. if(ipt_acntnm.value.length == 0)
  326. ipt_acntcd.value = "";
  327. else
  328. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
  329. ",Y,2," + ipt_acntnm.value, "", "acntcd,acntnm",
  330. ipt_acntnm, "PPRAC00100_계정코드HELP", "useyn,acntcd","Y,ipt_acntcd");
  331. model.refresh();
  332. ]]>
  333. </script>
  334. </input>
  335. <input id="ipt_acntcd" ref="/root/send/req/acntcd" class="input_default" appearance="input" style="left:131px; top:5px; width:80px; height:19px; ">
  336. <script type="javascript" ev:event="xforms-value-changed">
  337. <![CDATA[
  338. if(ipt_acntcd.value.length == 0)
  339. ipt_acntnm.value = "";
  340. else
  341. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt",
  342. ",Y,2," + ipt_acntcd.value, "", "acntcd,acntnm",
  343. ipt_acntcd, "PPRAC00100_계정코드HELP", "useyn,acntcd","Y,ipt_acntcd");
  344. model.refresh();
  345. ]]>
  346. </script>
  347. </input>
  348. <button id="btn_acntcd" class="icon_search" style="left:214px; top:5px; width:16px; height:16px; ">
  349. <caption/>
  350. <script type="javascript" ev:event="DOMActivate">
  351. <![CDATA[
  352. rszfOpenPopUpListByWndName(ipt_acntcd,"","acntcd,acntnm","PPRAC00100_계정코드HELP","","");
  353. model.refresh();
  354. ]]>
  355. </script>
  356. </button>
  357. </group>
  358. <group id="grup_fixtrseqmtflag" visibility="hidden" style="left:10px; top:70px; width:400px; height:30px; ">
  359. <caption id="cap_fixtrseqmtflag" class="search_name" style="left:10px; top:5; width:135px; height:17px; ">물품구분</caption>
  360. <select1 id="cmb_fixtrseqmtflag" ref="/root/send/req/fixtrseqmtflag" class="combo_search" appearance="minimal" style="left:130px; top:5px; width:150px; height:19px; ">
  361. <choices>
  362. <itemset nodeset="/root/init/goodflag">
  363. <label ref="cdnm"/>
  364. <value ref="cdid"/>
  365. </itemset>
  366. </choices>
  367. </select1>
  368. </group>
  369. <group id="grup_possnddterm" visibility="hidden" style="left:10px; top:100px; width:400px; height:30px; ">
  370. <caption id="cap_possnddterm" class="search_name" style="left:10px; top:5px; width:100px; height:17px; ">기 간</caption>
  371. <input id="ipt_possnddfr" ref="/root/send/req/possnddfr" class="input_search" inputtype="date" style="left:130px; top:5px; width:120px; height:19px; "/>
  372. <input id="ipt_possnddto" ref="/root/send/req/possnddto" class="input_search" inputtype="date" style="left:272px; top:5px; width:120px; height:19px; "/>
  373. <caption id="caption23" style="left:254px; top:6px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  374. </group>
  375. <group id="grup_rpiryn" visibility="hidden" style="left:10px; top:280px; width:400px; height:30px; ">
  376. <caption id="cap_rpiryn" class="search_name" style="left:10px; top:5px; width:100px; height:17px; ">수리여부</caption>
  377. <select1 id="rdo_rpiryn" ref="/root/send/req/rpiryn" disabled="true" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:130px; top:5px; width:205px; height:20px; border-style:none; ">
  378. <choices>
  379. <item>
  380. <label>미수리</label>
  381. <value>N</value>
  382. </item>
  383. <item>
  384. <label>수리</label>
  385. <value>Y</value>
  386. </item>
  387. </choices>
  388. </select1>
  389. </group>
  390. <group id="grup_reqddterm" visibility="hidden" style="left:10px; top:310px; width:400px; height:30px; ">
  391. <caption id="cap_reqddterm" class="search_name" style="left:10px; top:5px; width:100px; height:17px; ">기 간</caption>
  392. <input id="ipt_reqdd1" ref="/root/send/req/reqdd1" class="input_search" inputtype="date" style="left:130px; top:5px; width:120px; height:19px; "/>
  393. <input id="ipt_reqdd2" ref="/root/send/req/reqdd2" class="input_search" inputtype="date" style="left:272px; top:5px; width:120px; height:19px; "/>
  394. <caption id="caption3" style="left:254px; top:6px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  395. </group>
  396. <group id="grup_acsrssrchyn" visibility="hidden" style="left:10px; top:340px; width:400px; height:30px; ">
  397. <caption id="cap_acsrssrchyn" class="search_name" style="left:10px; top:5px; width:100px; height:17px; ">부품조회</caption>
  398. <select1 id="rdo_acsrssrchyn" ref="/root/send/req/acsrssrchyn" disabled="true" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:130px; top:5px; width:205px; height:20px; border-style:none; ">
  399. <choices>
  400. <item>
  401. <label>Yes</label>
  402. <value>Y</value>
  403. </item>
  404. <item>
  405. <label>No</label>
  406. <value>N</value>
  407. </item>
  408. </choices>
  409. </select1>
  410. </group>
  411. </group>
  412. </xhtml:body>
  413. </xhtml:html>