SMRSO23100_약속그룹관리.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="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. <promgroupmngtm>
  11. <promgroupmngtmlist/>
  12. </promgroupmngtm>
  13. <promgroupmngtd>
  14. <promgroupmngtdlist/>
  15. </promgroupmngtd>
  16. <good>
  17. <gooddetail/>
  18. </good>
  19. <dupcheck>
  20. <dupyn/>
  21. </dupcheck>
  22. </main>
  23. <send>
  24. <search>
  25. <instcd/>
  26. <promdeptcd/>
  27. <promdeptnm/>
  28. <allchk/>
  29. </search>
  30. <searchdetail>
  31. <instcd/>
  32. <promdeptcd/>
  33. <promgrupnm/>
  34. </searchdetail>
  35. <save>
  36. <promgroupmngtdlist/>
  37. </save>
  38. </send>
  39. <init>
  40. </init>
  41. <hidden/>
  42. <temp>
  43. </temp>
  44. <jaego>
  45. <search>
  46. <instcd/>
  47. <goodcd/>
  48. <ymd/>
  49. <fromdeptcd/>
  50. </search>
  51. <value/>
  52. </jaego>
  53. <popdata>
  54. <instcd/>
  55. <deptcd/>
  56. <deptnm/>
  57. <popgb/>
  58. </popdata>
  59. <popgood>
  60. <instcd/>
  61. <wareflag/>
  62. <delivedd/>
  63. <basedd/>
  64. <selectyn/>
  65. <goodcd/>
  66. <goodlist>
  67. <goodcd/>
  68. </goodlist>
  69. </popgood>
  70. </root>
  71. </instance>
  72. <script type="javascript" ev:event="xforms-ready">
  73. <![CDATA[
  74. //화면 Control을 초기화한다
  75. misfGridInit(grd_promgroupmngtmlist);
  76. misfGridInit(grd_promgroupmngtdlist);
  77. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  78. grd_promgroupmngtdlist.fixedcellcheckbox(0,grd_promgroupmngtdlist.colRef("chkrow"),false) = true;
  79. if(model.getValue("/root/popdata/popgb") == "pop"){
  80. model.setValue("/root/send/search/instcd",model.getValue("/root/popdata/instcd"));
  81. model.setValue("/root/send/search/promdeptcd",model.getValue("/root/popdata/deptcd"));
  82. model.setValue("/root/send/search/promdeptnm",model.getValue("/root/popdata/deptnm"));
  83. btn_select.visible = true;
  84. btn_close.visible = true;
  85. }else{
  86. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd"));
  87. model.setValue("/root/send/search/promdeptcd",getUserInfo("dutunitcd"));
  88. model.setValue("/root/send/search/promdeptnm",getUserInfo("dutunitnm"));
  89. grd_promgroupmngtdlist.colWidth(grd_promgroupmngtdlist.colRef("chkrow")) = 0;
  90. chk_chkrow.visible = false;
  91. }
  92. btn_search.dispatch("DOMActivate");
  93. model.refresh();
  94. ]]>
  95. </script>
  96. <submission id="TRRSO23101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/promgroupmngtm"/>
  97. <submission id="TRRSO23102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchdetail" resultref="/root/main/promgroupmngtd"/>
  98. <submission id="TXRSO23101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  99. <submission id="TRRSO20104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/popgood" resultref="/root/main/good"/>
  100. </model>
  101. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  103. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  104. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  105. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  106. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  108. <script type="javascript">
  109. <![CDATA[
  110. function fGetGoodDetail() {
  111. for(var k = 1; k <= instance1.selectNodes("/root/popgood/goodlist").length; k++) {
  112. var bDup = false; //물품코드가 중복되었는지를 확인하기 위한 변수
  113. //popup에서 선택한 물품코드가 이미 grid에 존재하고 있는지를 check하여 이미 존재하면 message를 보여주고 return한다.
  114. for(var i = 1; i < grd_promgroupmngtdlist.rows; i++) {
  115. if( grd_promgroupmngtdlist.valueMatrix(i, grd_promgroupmngtdlist.colRef("goodcd")) == model.getValue("/root/popgood/goodlist[" + k + "]/goodcd") ) {
  116. messageBox("물품코드가 중복되었습니다. [" + grd_promgroupmngtdlist.valueMatrix(i, grd_promgroupmngtdlist.colRef("goodcd")) + "] ", "E999", ""); //E: 경고
  117. bDup = true;
  118. continue;
  119. }
  120. }
  121. if( bDup == false ) {
  122. // node 삭제
  123. //model.removenode("/root/main/gooddetail");
  124. //TRRSO20104를 위해 물품코드를 goodcd에 넣는다.
  125. model.setValue( "/root/popgood/goodcd", model.getValue("/root/popgood/goodlist[" + k + "]/goodcd") );
  126. if( submit("TRRSO20104") ) {
  127. /* model.setValue(grd_delive.nodeset + "[" + grd_delive.row + "]/instcd", model.getValue("/root/send/search/instcd"));
  128. model.setValue(grd_delive.nodeset + "[" + grd_delive.row + "]/delivedd", model.getValue("/root/send/search/delivedd"));
  129. //model.setValue(grd_delive.nodeset + "[" + grd_delive.row + "]/deliveno", model.getValue("/root/send/search/deliveno"));
  130. //model.setValue(grd_delive.nodeset + "[" + grd_delive.row + "]/deliveseq", model.getValue("/root/send/search/deliveseq"));
  131. model.setValue(grd_delive.nodeset + "[" + grd_delive.row + "]/wareflag", model.getValue("/root/send/search/wareflag"));
  132. model.setValue(grd_delive.nodeset + "[" + grd_delive.row + "]/delivedeptcd", model.getValue("/root/send/search/delivedeptcd"));
  133. */
  134. //마직막 행에 물품코드가 등록되어 있으면 그 행에 바로 적용하고, 물품코드가 없으면 한 행을 추가한 뒤 적용한다.
  135. if( grd_promgroupmngtdlist.valueMatrix(grd_promgroupmngtdlist.rows-1, grd_promgroupmngtdlist.colRef("goodcd")) != "" ) {
  136. btn_add.dispatch("DOMActivate");
  137. }
  138. model.setValue(grd_promgroupmngtdlist.nodeset + "[" + (grd_promgroupmngtdlist.rows-1) + "]/goodcd", model.getValue("/root/main/good/gooddetail/goodcd"));
  139. model.setValue(grd_promgroupmngtdlist.nodeset + "[" + (grd_promgroupmngtdlist.rows-1) + "]/goodnm", model.getValue("/root/main/good/gooddetail/goodnm"));
  140. model.setValue(grd_promgroupmngtdlist.nodeset + "[" + (grd_promgroupmngtdlist.rows-1) + "]/goodspec", model.getValue("/root/main/good/gooddetail/goodspec"));
  141. model.setValue(grd_promgroupmngtdlist.nodeset + "[" + (grd_promgroupmngtdlist.rows-1) + "]/deliveunit", model.getValue("/root/main/good/gooddetail/deliveunit"));
  142. // model.setValue(grd_promgroupmngtdlist.nodeset + "[" + (grd_promgroupmngtdlist.rows-1) + "]/exchqty", model.getValue("/root/main/good/gooddetail/exchqty"));
  143. // model.setValue(grd_promgroupmngtdlist.nodeset + "[" + (grd_promgroupmngtdlist.rows-1) + "]/siqty", model.getValue("/root/main/good/gooddetail/siqty"));
  144. // model.setValue(grd_promgroupmngtdlist.nodeset + "[" + (grd_promgroupmngtdlist.rows-1) + "]/hunqty", model.getValue("/root/main/good/gooddetail/hunqty"));
  145. // model.setValue(grd_promgroupmngtdlist.nodeset + "[" + (grd_promgroupmngtdlist.rows-1) + "]/origsiqty", model.getValue("/root/main/good/gooddetail/siqty")); //hunqty의 처음 값을 저장하기 위함.
  146. // model.setValue(grd_promgroupmngtdlist.nodeset + "[" + (grd_promgroupmngtdlist.rows-1) + "]/orighunqty", model.getValue("/root/main/good/gooddetail/hunqty")); //hunqty의 처음 값을 저장하기 위함.
  147. // model.setValue(grd_promgroupmngtdlist.nodeset + "[" + (grd_promgroupmngtdlist.rows-1) + "]/deliveqty", "");
  148. // model.setValue(grd_promgroupmngtdlist.nodeset + "[" + (grd_promgroupmngtdlist.rows-1) + "]/deliveamt", "");
  149. model.setValue(grd_promgroupmngtdlist.nodeset + "[" + (grd_promgroupmngtdlist.rows-1) + "]/promqty", "0"); //입고수량
  150. //2014.07.07 박준범 - 의료폐기물 용기 여부 컬럼 추가
  151. model.setValue(grd_promgroupmngtdlist.nodeset + "[" + (grd_promgroupmngtdlist.rows-1) + "]/wstyn", model.getValue("/root/main/good/gooddetail/wstyn"));
  152. }
  153. } // if( bDup ...) end
  154. } // for(var k ...) end
  155. grd_promgroupmngtdlist.refresh();
  156. }
  157. ]]>
  158. </script>
  159. </xhtml:head>
  160. <xhtml:body pagewidth="1120" pageheight="650" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  161. <group id="grp_tle" style="left:0px; top:0px; width:1090px; height:13px; ">
  162. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:15px; ">약속그룹관리</caption>
  163. </group>
  164. <group id="group1" style="left:0px; top:12px; width:1090px; height:27px; ">
  165. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1090px; y2:25px; "/>
  166. <button id="btn_save" class="btn4_letter2" navindex="12" style="left:1028px; top:3px; width:56px; height:22px; ">
  167. <caption>저장</caption>
  168. <script type="javascript" ev:event="DOMActivate">
  169. <![CDATA[
  170. var promgrupnm = grd_promgroupmngtdlist.valueMatrix(grd_promgroupmngtdlist.row, grd_promgroupmngtdlist.colRef("promgrupnm"))
  171. model.setValue("/root/send/save/promgroupmngtdlist",grd_promgroupmngtdlist.getUpdateData());
  172. if(submit("TXRSO23101")){
  173. misfGridInit(grd_promgroupmngtmlist);
  174. misfGridInit(grd_promgroupmngtdlist);
  175. if(submit("TRRSO23101")){
  176. for(i = 1 ; i < grd_promgroupmngtmlist.rows ; i++){
  177. var oldpromgrupnm = grd_promgroupmngtmlist.valueMatrix(i, grd_promgroupmngtmlist.colRef("promgrupnm"));
  178. if(oldpromgrupnm == promgrupnm){
  179. grd_promgroupmngtmlist.row = i;
  180. grd_promgroupmngtmlist.dispatch("onrowchanged");
  181. break;
  182. }
  183. }
  184. }
  185. }
  186. ]]>
  187. </script>
  188. </button>
  189. </group>
  190. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1090px; height:600px; ">
  191. <group id="grp_search" style="left:0px; top:0px; width:1090px; height:36px; vertical-align:top; ">
  192. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1090px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  193. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1028px; top:6px; width:56px; height:22px; ">
  194. <caption>조회</caption>
  195. <script type="javascript" ev:event="DOMActivate">
  196. <![CDATA[
  197. if(opt_promdeptcd.value == "") {
  198. messageBox("부서가 선택되지 않았습니다. \n\n먼저 부서를 선택하십시요.", "E999", "");
  199. model.setFocus("ipt_promdeptcd");
  200. return;
  201. };
  202. misfGridInit(grd_promgroupmngtmlist);
  203. misfGridInit(grd_promgroupmngtdlist);
  204. chk_chkrow.value = "";
  205. if(submit("TRRSO23101")){
  206. grd_promgroupmngtmlist.row = 1;
  207. grd_promgroupmngtmlist.dispatch("onrowchanged");
  208. }
  209. ]]>
  210. </script>
  211. </button>
  212. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:67px; top:8px; width:136px; height:19px; text-align:center; ">
  213. <choices>
  214. <itemset nodeset="/root/main/init">
  215. <label ref="cnstnm"/>
  216. <value ref="cnstcd"/>
  217. </itemset>
  218. </choices>
  219. </select1>
  220. <caption id="cap_instcd" class="search_name" style="left:13px; top:9px; width:86px; height:17px; ">기관:</caption>
  221. <caption id="caption20" class="search_name" style="left:235px; top:9px; width:81px; height:17px; vertical-align:middle; ">부서:</caption>
  222. <line id="line30" class="line_4" style="x1:1015px; y1:5px; x2:1015px; y2:30px; "/>
  223. <button id="btn_promdeptcd" class="icon_search" navindex="5" style="left:397px; top:8px; width:16px; height:16px; ">
  224. <caption/>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. misfOpenPopUpList("02", ipt_promdeptcd,"", "promdeptcd,promdeptnm");
  228. ipt_promdeptcd.refresh();
  229. opt_promdeptcd.refresh();
  230. ]]>
  231. </script>
  232. </button>
  233. <input id="ipt_promdeptcd" ref="/root/send/search/promdeptcd" class="input_default" navindex="4" style="left:290px; top:8px; width:105px; height:19px; ">
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. misfValidationCheck("02", "", "promdeptcd,promdeptnm");
  237. ipt_promdeptcd.refresh();
  238. opt_promdeptcd.refresh();
  239. ]]>
  240. </script>
  241. <script type="javascript" ev:event="onkeypress">
  242. <![CDATA[
  243. //2012.04.05 박준범 추가
  244. inputEnterKey("ipt_promdeptcd", "xforms-value-changed");
  245. ]]>
  246. </script>
  247. </input>
  248. <output id="opt_promdeptcd" ref="/root/send/search/promdeptnm" class="output_fix" appearance="output" style="left:415px; top:8px; width:156px; height:19px; "/>
  249. </group>
  250. <button id="btn_del" class="btn2_letter3" navindex="11" style="left:1032px; top:39px; width:53px; height:19px; ">
  251. <caption>행삭제</caption>
  252. <script type="javascript" ev:event="DOMActivate">
  253. <![CDATA[
  254. misfGridIUD(grd_promgroupmngtdlist, "D");
  255. ]]>
  256. </script>
  257. </button>
  258. <caption id="caption4" class="tit_2" style="left:0px; top:45px; width:105px; height:13px; ">약속그룹List</caption>
  259. <button id="btn_add" class="btn2_letter3" navindex="10" style="left:978px; top:39px; width:53px; height:19px; ">
  260. <caption>행추가</caption>
  261. <script type="javascript" ev:event="DOMActivate">
  262. <![CDATA[
  263. var mrow = grd_promgroupmngtmlist.row;
  264. var promgrupnm = grd_promgroupmngtmlist.valueMatrix(mrow, grd_promgroupmngtmlist.colRef("promgrupnm"));
  265. if(promgrupnm != ""){
  266. grd_promgroupmngtmlist.cellAttribute("disabled", mrow, grd_promgroupmngtmlist.colRef("promgrupnm")) = "true";
  267. misfGridIUD(grd_promgroupmngtdlist, "A");
  268. grd_promgroupmngtdlist.valueMatrix(grd_promgroupmngtdlist.row, grd_promgroupmngtdlist.colRef("instcd")) = cmb_instcd.value;
  269. grd_promgroupmngtdlist.valueMatrix(grd_promgroupmngtdlist.row, grd_promgroupmngtdlist.colRef("promdeptcd")) = ipt_promdeptcd.value;
  270. grd_promgroupmngtdlist.valueMatrix(grd_promgroupmngtdlist.row, grd_promgroupmngtdlist.colRef("promgrupnm")) = promgrupnm;
  271. grd_promgroupmngtdlist.cellAttribute("disabled", grd_promgroupmngtdlist.row, grd_promgroupmngtdlist.colRef("chkrow")) = "true";
  272. }else{
  273. messageBox("왼쪽에 약속그룹List를 선택하거나 입력하시고 진행하여 주십시오.", "I999", "");
  274. return;
  275. }
  276. ]]>
  277. </script>
  278. </button>
  279. <line id="line3" class="line_1" style="x1:0px; y1:60px; x2:1090px; y2:60px; "/>
  280. <datagrid id="grd_promgroupmngtdlist" nodeset="/root/main/promgroupmngtd/promgroupmngtdlist" class="datagrid2" caption="^물품코드^물품명^규격^단위^수량^wstyn^caption1" colsep="^" colwidth="24, 100, 220, 220, 50, 90, 100, 0, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="9" style="left:240px; top:65px; width:850px; height:500px; ">
  281. <col checkvalue="Y,N" ref="chkrow" type="checkbox"/>
  282. <col disabled="true" ref="goodcd" type="inputbutton"/>
  283. <col ref="goodnm"/>
  284. <col ref="goodspec"/>
  285. <col ref="deliveunit"/>
  286. <col ref="promqty" type="input" format="#,###" style="text-align:center; "/>
  287. <col ref="wstyn" visibility="hidden"/>
  288. <col ref="instcd" visibility="hidden"/>
  289. <col ref="promdeptcd" visibility="hidden"/>
  290. <col ref="promgrupnm" visibility="hidden"/>
  291. <script type="javascript" ev:event="onbuttonclick">
  292. <![CDATA[
  293. //popup 에 전달할 parameter를 setting한다.
  294. model.setValue("/root/popgood/instcd", cmb_instcd.value);
  295. //2012.09.17 박준범 - SPRSO20700.xrw 에서 사용하기 위해 basedd를 추가 함
  296. //selectyn(popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값) 을 초기화함
  297. model.setValue("/root/popgood/selectyn", "");
  298. //popup 프로그램 호출
  299. //window.load("SPRSO20300.xrw", "modal","", "", "/root/popgood","/root/popdata"); //단일선택창
  300. window.load("SPRSO20700.xrw", "modal","", "", "/root/popgood","/root/popdata"); //다중선택창
  301. //popup에서 특정 물품코드를 선택한 경우, 해당 물품코드에 대한 상세 사항을 조회해서 그리드에 보여준다.
  302. if(model.getValue("/root/popgood/selectyn") == "Y") { //popup 창에서 선택버튼을 click했는지 아닌지를 나타내는 구분값
  303. fGetGoodDetail(); //물품코드의 상세내역과 현재고를 조회하여 Grid에 보여줌
  304. //출고량을 입력하도록 focus이동
  305. grd_promgroupmngtdlist.col = grd_promgroupmngtdlist.colRef("promqty");
  306. }
  307. ]]>
  308. </script>
  309. <script type="javascript" ev:event="xforms-value-changed">
  310. <![CDATA[
  311. // if(grd_promgroupmngtdlist.colAttribute(grd_promgroupmngtdlist.col,"ref") == "chkrow"){
  312. // grd_promgroupmngtdlist.
  313. // }
  314. ]]>
  315. </script>
  316. </datagrid>
  317. <datagrid id="grd_promgroupmngtmlist" nodeset="/root/main/promgroupmngtm/promgroupmngtmlist" class="datagrid2" caption="약속그룹명^caption1^caption2" colsep="^" colwidth="200, 0, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" navindex="9" style="left:0px; top:65px; width:240px; height:500px; ">
  318. <col disabled="true" ref="promgrupnm" type="input"/>
  319. <col ref="instcd" visibility="hidden"/>
  320. <col ref="promdeptcd" visibility="hidden"/>
  321. <script type="javascript" ev:event="onrowchanged">
  322. <![CDATA[
  323. model.setValue("/root/send/searchdetail/instcd", grd_promgroupmngtmlist.valueMatrix(grd_promgroupmngtmlist.row, grd_promgroupmngtmlist.colRef("instcd")));
  324. model.setValue("/root/send/searchdetail/promdeptcd", grd_promgroupmngtmlist.valueMatrix(grd_promgroupmngtmlist.row, grd_promgroupmngtmlist.colRef("promdeptcd")));
  325. model.setValue("/root/send/searchdetail/promgrupnm", grd_promgroupmngtmlist.valueMatrix(grd_promgroupmngtmlist.row, grd_promgroupmngtmlist.colRef("promgrupnm")));
  326. submit("TRRSO23102");
  327. ]]>
  328. </script>
  329. <script type="javascript" ev:event="ondblclick">
  330. <![CDATA[
  331. // opener.model.setValue("/root/popdata/send/count", grd_promgroupmngtdlist.rows-1);
  332. // model.copyNode(opener.root.popdata.receive, "/root/main/promgroupmngtd");
  333. //
  334. // window.close();
  335. ]]>
  336. </script>
  337. </datagrid>
  338. <caption id="caption1" class="tit_2" style="left:245px; top:45px; width:116px; height:13px; ">약속그룹물품List</caption>
  339. <button id="button1" class="btn2_letter3" navindex="10" style="left:182px; top:39px; width:53px; height:19px; ">
  340. <caption>행추가</caption>
  341. <script type="javascript" ev:event="DOMActivate">
  342. <![CDATA[
  343. for(i = 1 ; i < grd_promgroupmngtmlist.rows ; i++){
  344. if(grd_promgroupmngtmlist.rowStatus(i) != "0"){
  345. messageBox("이미 추가중인 약속그룹을 먼저 저장하시고 행추가를 진행하십시오.", "I999", "");
  346. return;
  347. }
  348. }
  349. misfGridInit(grd_promgroupmngtdlist);
  350. misfGridIUD(grd_promgroupmngtmlist, "A");
  351. ]]>
  352. </script>
  353. </button>
  354. <button id="btn_close" class="btn4_letter2" navindex="12" visibility="hidden" style="left:1031px; top:570px; width:56px; height:22px; ">
  355. <caption>닫기</caption>
  356. <script type="javascript" ev:event="DOMActivate">
  357. <![CDATA[
  358. window.close();
  359. ]]>
  360. </script>
  361. </button>
  362. <button id="btn_select" class="btn4_letter2" navindex="12" visibility="hidden" style="left:975px; top:570px; width:56px; height:22px; ">
  363. <caption>선택</caption>
  364. <script type="javascript" ev:event="DOMActivate">
  365. <![CDATA[
  366. for(i = grd_promgroupmngtdlist.rows ; i > 0 ; i--){
  367. var chkrow = grd_promgroupmngtdlist.valueMatrix(i, grd_promgroupmngtdlist.colRef("chkrow"));
  368. if(chkrow == "N"){
  369. grd_promgroupmngtdlist.deleteRow(i,false);
  370. }
  371. }
  372. grd_promgroupmngtdlist.refresh();
  373. var chkNodes = instance1.selectNodes(grd_promgroupmngtdlist.nodeset + "[chkrow='Y']");
  374. var count = grd_promgroupmngtdlist.rows-1;
  375. opener.model.setValue("/root/popdata/send/count", count);
  376. model.copyNode(opener.root.popdata.receive, "/root/main/promgroupmngtd");
  377. window.close();
  378. ]]>
  379. </script>
  380. </button>
  381. <select id="chk_chkrow" ref="/root/send/search/allchk" visibility="hidden" overflow="visible" appearance="full" style="left:388px; top:43px; width:45px; height:20px; border-style:none; ">
  382. <choices>
  383. <item>
  384. <label>선택</label>
  385. <value>Y</value>
  386. </item>
  387. </choices>
  388. <script type="javascript" ev:event="xforms-value-changed">
  389. <![CDATA[
  390. if(chk_chkrow.value == "Y"){
  391. for( i = 1 ; i < grd_promgroupmngtdlist.rows ; i++ ){
  392. if(!(grd_promgroupmngtdlist.rowStatus(i) == 1 || grd_promgroupmngtdlist.rowStatus(i) == 3)){
  393. grd_promgroupmngtdlist.valueMatrix(i, grd_promgroupmngtdlist.colRef("chkrow")) = "Y";
  394. grd_promgroupmngtdlist.rowStatus(i) = 2;
  395. }
  396. }
  397. grd_promgroupmngtdlist.refresh();
  398. }else{
  399. for( i = 1 ; i < grd_promgroupmngtdlist.rows ; i++ ){
  400. if(!(grd_promgroupmngtdlist.rowStatus(i) == 1 || grd_promgroupmngtdlist.rowStatus(i) == 3)){
  401. grd_promgroupmngtdlist.valueMatrix(i, grd_promgroupmngtdlist.colRef("chkrow")) = "N";
  402. grd_promgroupmngtdlist.rowStatus(i) = 2;
  403. }
  404. }
  405. grd_promgroupmngtdlist.refresh();
  406. }
  407. ]]>
  408. </script>
  409. </select>
  410. </group>
  411. </xhtml:body>
  412. </xhtml:html>