SPMQP03600_제한시간관리.xrw 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" 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">
  4. <xhtml:head>
  5. <xhtml:title>Untitle</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <limcond>
  11. <limno/>
  12. <limhistno/>
  13. </limcond>
  14. <limheaderinfo>
  15. <cpgno/>
  16. <cpghistseq/>
  17. <limno/>
  18. <limhistno/>
  19. <stepsetupflag>U</stepsetupflag>
  20. <stepno/>
  21. <alertstndpntnflag/>
  22. <alerttrgtno/>
  23. <alerttrgtdetlno/>
  24. <alerttrgtdetlcnts/>
  25. <prcpstatcd/>
  26. <limhh/>
  27. <limmm/>
  28. <limtm/>
  29. <limtmunitflag/>
  30. <alertcnt/>
  31. <limtermtm/>
  32. <alertgrde/>
  33. </limheaderinfo>
  34. <limlist>
  35. </limlist>
  36. <limdetaillist>
  37. </limdetaillist>
  38. </main>
  39. <temp/>
  40. <limpoplist>
  41. <menu>
  42. <item>
  43. <name>삭제</name>
  44. <func>fDelLimTime</func>
  45. </item>
  46. </menu>
  47. </limpoplist>
  48. </root>
  49. </instance>
  50. <submission id="TRMQP03601" mediatype="application/x-www-form-urlencoded" method="post" ref="root/init/cpginfo" resultref="/root/main/limlist"/>
  51. <submission id="TRMQP03602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/limheaderinfo" resultref="/root/main/limdetaillist"/>
  52. <submission id="TXMQP03601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/limtimelist"/>
  53. <submission id="TXMQP03602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/limittimelist" resultref="/root/main/limlist"/>
  54. <script type="javascript" ev:event="xforms-ready">
  55. <![CDATA[
  56. limInit();
  57. fSelStepLimtInfo();
  58. ]]>
  59. </script>
  60. </model>
  61. <script type="javascript">
  62. <![CDATA[
  63. function limInit() {
  64. model.setValue("/root/main/limheaderinfo/cpgno", model.getValue("root/init/cpginfo/cpgno"));
  65. model.setValue("/root/main/limheaderinfo/cpghistseq", model.getValue("root/init/cpginfo/cpghistseq"));
  66. submit("TRMQP03601", true);
  67. grd_limittmlist.refresh();
  68. }
  69. function fGetLimDetailList( popFlag ){
  70. // popFlag : From (기준시점 대상) ~To(Action이 행해져야하는 대상)
  71. if( isNull(popFlag) ) popFlag = "T";
  72. if( popFlag == "T" && ( model.getValue("/root/main/limheaderinfo/stepsetupflag") == "U" || isNull(model.getValue("/root/main/limheaderinfo/stepno")) ) ){
  73. //모니터링 정보 없음
  74. return;
  75. }
  76. //제한시간리스트 재조회
  77. var leftPos = window.screenleft - (500+8);
  78. if( leftPos < 0 ) leftPos = window.screenleft + (745+8);
  79. var topPos = window.screenTop;
  80. var coord = getRelativeCoordinate ( leftPos, topPos );
  81. var mon = coord[0];
  82. setParameter("SPMQP03600_stepno", model.getValue("/root/main/limheaderinfo/stepno"));
  83. setParameter("SPMQP03600_stepnm", cmb_limstepno.label);
  84. setParameter("SPMQP03600_getflag", popFlag);
  85. modal("SPMQP03100", mon, leftPos, topPos ); //status▦checkyn▦stepno▦settypecd▦setno▦setcdno▦prcpcd▦prcpnm▦
  86. var prcpListCVS = getParameter( "SPMQP03600_prcplist" );
  87. if( isNull(prcpListCVS) ) return;
  88. if( popFlag == "T" ){
  89. //설정 구분 자동 선택
  90. if( model.getValue("/root/main/limheaderinfo/stepsetupflag") == "U" ){
  91. model.setValue("/root/main/limheaderinfo/stepsetupflag", "S");
  92. rdo_limstepsetupflag.refresh();
  93. }
  94. model.removeNodeset("/root/main/limdetaillist/limdetailinfo");
  95. var prcpList = prcpListCVS.split("▩");
  96. var iPrcpList = "";
  97. for( var i=1; i<prcpList.length; i++ ){
  98. iPrcpList = prcpList[i].split("▦");
  99. model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/m", iPrcpList[0]);
  100. model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/checkyn", iPrcpList[1]);
  101. model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/istepno", iPrcpList[2]);
  102. model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/settypecd", iPrcpList[3]);
  103. model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/setno", iPrcpList[4]);
  104. model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/setcdno", iPrcpList[5]);
  105. model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/prcpcd", iPrcpList[6]);
  106. model.makeValue("/root/main/limdetaillist/limdetailinfo[" + i + "]/prcpnm", iPrcpList[7]);
  107. }
  108. grd_limittmlistdetl.refresh();
  109. }else if( popFlag == "F" ){
  110. var prcpList = prcpListCVS.split("▩");
  111. var iPrcpList = prcpList[1].split("▦");
  112. model.setValue("/root/main/limheaderinfo/alerttrgtno", iPrcpList[2]); //istepno
  113. model.setValue("/root/main/limheaderinfo/alerttrgtdetlno", iPrcpList[5]); //setcdno
  114. model.setValue("/root/main/limheaderinfo/alerttrgtdetlcnts", iPrcpList[8] + "(" + iPrcpList[7] + ")");
  115. ipt_alerttrgtdetl.refresh();
  116. }
  117. clearParameter("SPMQP03600_stepno");
  118. clearParameter("SPMQP03600_stepnm");
  119. clearParameter("SPMQP03600_getflag");
  120. clearParameter("SPMQP03600_prcplist");
  121. }
  122. /* case에 따라 각 컨트롤의 속성 설정 변경 */
  123. function fSetupControls( setupFlag ){
  124. if( isNull(setupFlag) ) var allSetupYN = "Y";
  125. else var allSetupYN = "N";
  126. if( allSetupYN == "Y" || setupFlag == "alertstndpntnflag" ){
  127. var alertstndpntnflag = model.getValue("/root/main/limheaderinfo/alertstndpntnflag");
  128. if( alertstndpntnflag == "3" ){
  129. btn_alerttrgtdetl.disabled = false;
  130. ipt_alerttrgtdetl.disabled = false;
  131. }else{
  132. btn_alerttrgtdetl.disabled = true;
  133. ipt_alerttrgtdetl.disabled = true;
  134. model.setValue("/root/main/limheaderinfo/alerttrgtdetlcnts", "");
  135. ipt_alerttrgtdetl.refresh();
  136. }
  137. }
  138. if( allSetupYN == "Y" || setupFlag == "stepsetupflag" ){
  139. var stepsetupflag = model.getValue("/root/main/limheaderinfo/stepsetupflag");
  140. if (stepsetupflag == "S") {
  141. cmb_limstepno.disabled = false;
  142. } else {
  143. cmb_limstepno.disabled = true;
  144. }
  145. }
  146. if( allSetupYN == "Y" || setupFlag == "limtmunitflag" ){
  147. var limtmunitflag = model.getValue("/root/main/limheaderinfo/limtmunitflag");
  148. if( limtmunitflag == "H" ){
  149. ipt_limtmunithh.disabled = false;
  150. ipt_limtmunitmm.disabled = true;
  151. model.setFocus("ipt_limtmunithh");
  152. }else{
  153. ipt_limtmunithh.disabled = true;
  154. ipt_limtmunitmm.disabled = false;
  155. model.setFocus("ipt_limtmunitmm");
  156. }
  157. }
  158. if( allSetupYN == "Y" || setupFlag == "limtm" ){
  159. var limhh = model.getValue("/root/main/limheaderinfo/limhh");
  160. var limmm = model.getValue("/root/main/limheaderinfo/limmm");
  161. if(limhh == "0"){
  162. ipt_limtmunithh.disabled = true;
  163. ipt_limtmunitmm.disabled = false;
  164. //model.setValue("/root/main/limheaderinfo/limhh", "");
  165. }
  166. if(limmm == "0" ){
  167. ipt_limtmunithh.disabled = false;
  168. ipt_limtmunitmm.disabled = true;
  169. //model.setValue("/root/main/limheaderinfo/limmm", "");
  170. }
  171. }
  172. }
  173. //필수값 체크
  174. function fLimChkEssVal(){
  175. if ( ! isRequiredControls("rdo_limstepsetupflag", "rdo_limalertstndpntnflag", "rdo_limtm", "rdo_limtimes", "rdo_limalertgrde") ){
  176. return false;
  177. }
  178. if( model.getValue("/root/main/limheaderinfo/stepsetupflag") == "S" ){
  179. if( isNull(model.getValue("/root/main/limheaderinfo/stepno")) ){
  180. messageBox ( "스텝을", "C002" );
  181. return false;
  182. }
  183. }
  184. if( model.getValue("/root/main/limheaderinfo/alertstndpntnflag") == "3" ){
  185. if( isNull(model.getValue("/root/main/limheaderinfo/alerttrgtdetlno")) ){
  186. messageBox ( "기준시점(특정처방)을", "C002" );
  187. return false;
  188. }
  189. }
  190. if( model.getValue("/root/main/limheaderinfo/limtmunitflag") == "M" ){
  191. if( isNull(model.getValue("/root/main/limheaderinfo/limmm")) ){
  192. messageBox ( "설정 시간(분)을", "C001" );
  193. model.setFocus("ipt_limtmunitmm");
  194. return false;
  195. }
  196. }else{
  197. if( isNull(model.getValue("/root/main/limheaderinfo/limhh")) ){
  198. messageBox ( "설정 시간을", "C001" );
  199. model.setFocus("ipt_limtmunithh");
  200. return false;
  201. }
  202. }
  203. }
  204. function fSaveLimTime() {
  205. var selRow = grd_limittmlist.row;
  206. var iRow = 0;
  207. if( grd_limittmlist.isSelected(selRow) ){
  208. iRow = selRow;
  209. }
  210. if( fLimChkEssVal() == false ) return false;
  211. model.removeNodeset("/root/send/savedata/limittimelist/limdetailinfo");
  212. model.removeNodeset("/root/send/savedata/limittimelist/limittimehlist");
  213. model.copyNode("/root/send/savedata/limittimelist", "/root/main/limdetaillist");
  214. model.makeNode("/root/send/savedata/limittimelist/limittimehlist");
  215. model.copyNode("/root/send/savedata/limittimelist/limittimehlist", "/root/main/limheaderinfo");
  216. if( !submit("TXMQP03602", true) ) return false;
  217. model.refresh();
  218. if( iRow <= 0 ){
  219. iRow = grd_limittmlist.rows - 1;
  220. }
  221. grd_limittmlist.select(iRow, 1) = true;
  222. grd_limittmlist.row = grd_limittmlist.selectedRow(0);
  223. }
  224. function fDelLimTime() {
  225. var tmpstr = "limno▦limhistno▩";
  226. var rows = grd_limittmlist.rows;
  227. for (var row = 1; row < rows; row++ ) {
  228. if(grd_limittmlist.isSelected(row)) {
  229. var limno = model.getValue("/root/main/limlist/liminfo[" + row + "]/limno");
  230. var limhistno = model.getValue("/root/main/limlist/liminfo[" + row + "]/limhistno");
  231. tmpstr += limno + "▦" + limhistno+ "▩";
  232. }
  233. }
  234. model.makeValue("/root/send/savedata/limtimelist" , tmpstr);
  235. if( !submit("TXMQP03601", false) ) return false;
  236. opener.window.javascript.fInitAttList();
  237. limInit() ;
  238. }
  239. /**
  240. * @group :
  241. * @ver : 2009.02
  242. * @by : 전지은
  243. * @---------------------------------------------------
  244. * @type : function
  245. * @access : public
  246. * @desc : CPG일 경우만 수행되는 부분으로, 특정 스텝에 해당되는 특정 슬립 정보 조회
  247. * @param :
  248. * @return :
  249. * @---------------------------------------------------
  250. */
  251. function fSelStepLimtInfo(){
  252. var stepNo = opener.window.javascript.getParameter("stepattadmin");
  253. var no = 0;
  254. if( !isNull(stepNo) ){
  255. var Nodes = instance1.selectNodes("/root/main/limlist/liminfo");
  256. for( var i=0; i<Nodes.length; i++ ){
  257. var node = Nodes.item(i);
  258. var limtStepNode = node.selectSingleNode("stepno");
  259. if( limtStepNode != null && limtStepNode.text == stepNo ){
  260. no = i + 1;
  261. grd_limittmlist.select(no, 1) = true;
  262. grd_limittmlist.row = grd_limittmlist.selectedRow(0);
  263. fSelLimtInfo();
  264. return;
  265. }
  266. }
  267. }
  268. }
  269. /**
  270. * @group :
  271. * @ver : 2009.01.18
  272. * @by : 전지은
  273. * @---------------------------------------------------
  274. * @type : function
  275. * @access : public
  276. * @desc : 제한시간 속성 상세 정보 조회
  277. * @param :
  278. * @return :
  279. * @---------------------------------------------------
  280. */
  281. function fSelLimtInfo(){
  282. var iRow = grd_limittmlist.row;
  283. if ( iRow >= grd_limittmlist.fixedRows && iRow <grd_limittmlist.rows ) {
  284. var limno = model.getValue("/root/main/limlist/liminfo[" + iRow + "]/limno");
  285. var limhistno = model.getValue("/root/main/limlist/liminfo[" + iRow + "]/limhistno");
  286. //copyNodeListType("/root/main/limheaderinfo", "/root/main/limlist/liminfo[" + iRow + "]", "replace", model, model);
  287. model.copyNode("/root/main/limheaderinfo", "/root/main/limlist/liminfo[" + iRow + "]");
  288. if( submit("TRMQP03602", true) ){
  289. model.refresh();
  290. fSetupControls();
  291. }
  292. }
  293. }
  294. function fAddLimTmList() {
  295. copyNodeListType("/root/main/limdetaillist", "/root/temp/limdetailinfo", "after");
  296. model.setValue("/root/main/limheaderinfo/cpgno" , opener.model.getValue("/root/main/cond/cpgno"));
  297. model.setValue("/root/main/limheaderinfo/cpghistseq", opener.model.getValue("/root/main/cond/cpghistseq"));
  298. model.setValue("/root/main/limheaderinfo/limno", "");
  299. model.setValue("/root/main/limheaderinfo/limhistno", "");
  300. //설정된 스텝번호를 파라메터로 셋팅해서 outline의 아이콘 불이 들어오도록 (2009.04.14)
  301. setParameter("SPMQP00300_before_stepno", "0");
  302. setParameter("SPMQP00300_after_stepno", model.getValue("/root/main/limheaderinfo/stepno"));
  303. }
  304. ]]>
  305. </script>
  306. </xhtml:head>
  307. <xhtml:body>
  308. <line id="line8" class="line_1" style="x1:0px; y1:215px; x2:345px; y2:215px; "/>
  309. <select1 id="rdo_limalertgrde" ref="/root/main/limheaderinfo/alertgrde" appearance="full" cellspacing="10" cols="1" rows="3" vcellspacing="3" overflow="visible" style="left:435px; top:398px; width:285px; height:58px; border-style:none; ">
  310. <choices>
  311. <itemset nodeset="/root/init/M0507/M0507">
  312. <label ref="cdnm"/>
  313. <value ref="cdid"/>
  314. </itemset>
  315. </choices>
  316. </select1>
  317. <line id="line9" class="line_1" style="x1:348px; y1:215px; x2:724px; y2:215px; "/>
  318. <line id="line12" class="line_2" style="x1:349px; y1:395px; x2:720px; y2:395px; "/>
  319. <caption id="cap_limstepsetupflag" class="cell_1" style="left:348px; top:220px; width:85px; height:40px; ">설정</caption>
  320. <select1 id="rdo_limtimes" ref="/root/main/limheaderinfo/alertcnt" navindex="10" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:435px; top:373px; width:145px; height:19px; border-style:none; ">
  321. <choices>
  322. <item>
  323. <label>1회</label>
  324. <value>1</value>
  325. </item>
  326. <item>
  327. <label>2회</label>
  328. <value>2</value>
  329. </item>
  330. <item>
  331. <label>3회</label>
  332. <value>3</value>
  333. </item>
  334. </choices>
  335. </select1>
  336. <line id="line14" class="line_2" style="x1:349px; y1:343px; x2:720px; y2:343px; "/>
  337. <select1 id="cmb_limstepno" ref="/root/main/limheaderinfo/stepno" disabled="true" navindex="1" appearance="minimal" style="left:514px; top:220px; width:210px; height:19px; ">
  338. <choices>
  339. <itemset nodeset="/root/init/stepinfo/info">
  340. <label ref="stepnm"/>
  341. <value ref="stepno"/>
  342. </itemset>
  343. </choices>
  344. <script type="javascript" ev:event="xforms-value-changed">
  345. <![CDATA[
  346. fGetLimDetailList("T");
  347. var keyNo = model.getValue("/root/main/limheaderinfo/limno");
  348. if( !isNull(keyNo) ){
  349. setParameter("SPMQP00300_before_stepno", model.getValue("/root/main/limlist/liminfo[" + grd_limittmlist.row + "]/stepno"));
  350. }else{
  351. setParameter("SPMQP00300_before_stepno", "0");
  352. }
  353. setParameter("SPMQP00300_after_stepno", cmb_limstepno.value);
  354. ]]>
  355. </script>
  356. </select1>
  357. <caption id="caption12" class="tit_2" style="left:0px; top:4px; width:165px; height:13px; ">제한시간 리스트</caption>
  358. <datagrid id="grd_limittmlist" nodeset="/root/main/limlist/liminfo" caption="스텝명^기준시점(코드)^기준시점^알람방법^설정" colsep="^" colwidth="139, 0, 382, 145, 39" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:725px; height:172px; ">
  359. <col ref="stepnm"/>
  360. <col disabled="true" ref="alertstndpntnflag" type="combo">
  361. <choices>
  362. <itemset nodeset="/root/init/M0511/M0511">
  363. <label ref="cdnm"/>
  364. <value ref="cdid"/>
  365. </itemset>
  366. </choices>
  367. </col>
  368. <col ref="title"/>
  369. <col disabled="true" ref="alertgrde" type="combo">
  370. <choices>
  371. <itemset nodeset="/root/init/M0507/M0507">
  372. <label ref="cdnm"/>
  373. <value ref="cdid"/>
  374. </itemset>
  375. </choices>
  376. </col>
  377. <col disabled="true" ref="stepsetupflag" type="combo">
  378. <choices>
  379. <item>
  380. <label>STEP 선택</label>
  381. <value>S</value>
  382. </item>
  383. <item>
  384. <label>해제</label>
  385. <value>U</value>
  386. </item>
  387. </choices>
  388. </col>
  389. <script type="javascript" ev:event="ondblclick">
  390. <![CDATA[
  391. fSelLimtInfo();
  392. ]]>
  393. </script>
  394. <script type="javascript" ev:event="onmousedown">
  395. <![CDATA[
  396. setPopupMenu("grd_limittmlist", false, "/root/limpoplist/menu/item", "name", "func");
  397. ]]>
  398. </script>
  399. </datagrid>
  400. <datagrid id="grd_limittmlistdetl" nodeset="/root/main/limdetaillist/limdetailinfo" autoresize="true" caption="선택^처방명^caption1^caption2^caption3^caption4" colsep="^" colwidth="34, 293, 0, 0, 0, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:220px; width:345px; height:237px; ">
  401. <col checkvalue="Y,N" ref="checkyn" type="checkbox"/>
  402. <col ref="prcpnm"/>
  403. <col ref="prcpcd"/>
  404. <col ref="setcdno"/>
  405. <col ref="settypecd"/>
  406. <col ref="setno"/>
  407. </datagrid>
  408. <caption id="cap_limtm" class="cell_1" style="left:348px; top:345px; width:85px; height:23px; ">설정완료</caption>
  409. <select1 id="rdo_limalertstndpntnflag" ref="/root/main/limheaderinfo/alertstndpntnflag" navindex="11" appearance="full" cellspacing="10" cols="1" rows="3" vcellspacing="3" overflow="visible" style="left:435px; top:265px; width:290px; height:58px; border-style:none; ">
  410. <choices>
  411. <itemset nodeset="/root/init/M0511/M0511">
  412. <label ref="cdnm"/>
  413. <value ref="cdid">ㄷ</value>
  414. </itemset>
  415. </choices>
  416. <script type="javascript" ev:event="xforms-value-changed">
  417. <![CDATA[
  418. fSetupControls("alertstndpntnflag");
  419. ]]>
  420. </script>
  421. </select1>
  422. <caption id="cap_limtimes" class="cell_1" style="left:349px; top:371px; width:85px; height:23px; ">알람횟수</caption>
  423. <line id="line4" class="line_2" style="x1:349px; y1:456px; x2:720px; y2:456px; "/>
  424. <select1 id="rdo_limtm" ref="/root/main/limheaderinfo/limtmunitflag" navindex="12" appearance="full" cellspacing="120" cols="2" overflow="visible" style="left:435px; top:347px; width:280px; height:19px; border-style:none; ">
  425. <choices>
  426. <itemset nodeset="/root/init/M0512/M0512">
  427. <label ref="cdnm"/>
  428. <value ref="cdid"/>
  429. </itemset>
  430. </choices>
  431. <script type="javascript" ev:event="xforms-value-changed">
  432. <![CDATA[
  433. fSetupControls("limtmunitflag");
  434. ]]>
  435. </script>
  436. </select1>
  437. <caption id="caption28" class="tit_2" style="left:350px; top:200px; width:142px; height:13px; ">모니터링 상세내역</caption>
  438. <caption id="cap_limalertgrde" class="cell_1" style="left:349px; top:397px; width:85px; height:58px; ">알람방법</caption>
  439. <caption id="caption29" class="tit_2" style="left:0px; top:200px; width:165px; height:13px; ">제한시간 리스트</caption>
  440. <caption id="cap_limalertstndpntnflag" class="cell_1" style="left:348px; top:263px; width:85px; height:79px; ">기준시점</caption>
  441. <line id="line6" class="line_2" style="x1:349px; y1:369px; x2:720px; y2:369px; "/>
  442. <line id="line7" class="line_2" style="x1:348px; y1:261px; x2:720px; y2:261px; "/>
  443. <button id="btn_alerttrgtdetl" class="icon_search" style="left:558px; top:306px; width:16px; height:16px; ">
  444. <caption/>
  445. <script type="javascript" ev:event="DOMActivate">
  446. <![CDATA[
  447. fGetLimDetailList("F");
  448. ]]>
  449. </script>
  450. </button>
  451. <input id="ipt_alerttrgtdetl" ref="/root/main/limheaderinfo/alerttrgtdetlcnts" disabled="true" navindex="8" style="left:580px; top:303px; width:145px; height:19px; "/>
  452. <select1 id="rdo_limstepsetupflag" ref="/root/main/limheaderinfo/stepsetupflag" navindex="9" appearance="full" cellspacing="10" cols="1" rows="3" vcellspacing="3" overflow="visible" style="left:435px; top:220px; width:80px; height:40px; border-style:none; ">
  453. <choices>
  454. <item>
  455. <label>STEP 선택</label>
  456. <value>S</value>
  457. </item>
  458. <item>
  459. <label>해제</label>
  460. <value>U</value>
  461. </item>
  462. </choices>
  463. <script type="javascript" ev:event="xforms-value-changed">
  464. <![CDATA[
  465. fSetupControls("stepsetupflag");
  466. ]]>
  467. </script>
  468. </select1>
  469. <input id="ipt_limtmunithh" ref="/root/main/limheaderinfo/limhh" style="left:643px; top:347px; width:55px; height:19px; ">
  470. <script type="javascript" ev:event="xforms-value-changed">
  471. <![CDATA[
  472. model.setValue("/root/main/limheaderinfo/limtm", model.getValue("/root/main/limheaderinfo/limhh"));
  473. ]]>
  474. </script>
  475. </input>
  476. <input id="ipt_limtmunitmm" ref="/root/main/limheaderinfo/limmm" style="left:478px; top:347px; width:55px; height:19px; ">
  477. <script type="javascript" ev:event="xforms-value-changed">
  478. <![CDATA[
  479. model.setValue("/root/main/limheaderinfo/limtm", model.getValue("/root/main/limheaderinfo/limmm"));
  480. ]]>
  481. </script>
  482. </input>
  483. <button id="btn_addlimattr" class="btn2_letter2" style="left:682px; top:196px; width:42px; height:19px; ">
  484. <caption>신규</caption>
  485. <script type="javascript" ev:event="DOMActivate">
  486. <![CDATA[
  487. var iRow = grd_limittmlist.row;
  488. if(iRow > 0){
  489. grd_limittmlist.isselected(iRow) = false;
  490. grd_limittmlist.row = -1;
  491. }
  492. model.resetInstanceNode("/root/main/limheaderinfo");
  493. model.removeNodeset("/root/main/limdetaillist/limdetailinfo");
  494. model.setValue("/root/main/limheaderinfo/cpgno", model.getValue("root/init/cpginfo/cpgno"));
  495. model.setValue("/root/main/limheaderinfo/cpghistseq", model.getValue("root/init/cpginfo/cpghistseq"));
  496. model.setValue("/root/main/limheaderinfo/stepsetupflag", "U");
  497. model.refresh();
  498. fSetupControls();
  499. ]]>
  500. </script>
  501. </button>
  502. <button id="btn_addlimdetaillist" class="btn2_letter2" style="left:302px; top:196px; width:42px; height:19px; ">
  503. <caption>추가</caption>
  504. <script type="javascript" ev:event="DOMActivate">
  505. <![CDATA[
  506. fGetLimDetailList("T");
  507. ]]>
  508. </script>
  509. </button>
  510. <caption id="cap_limtermtm" class="cell_1" style="left:580px; top:371px; width:85px; height:23px; ">알람간격</caption>
  511. <input id="ipt_limtermtm" ref="/root/main/limheaderinfo/limtermtm" format="###" style="left:667px; top:373px; width:35px; height:19px; ">
  512. <script type="javascript" ev:event="xforms-value-changed">
  513. <![CDATA[
  514. //model.setValue("/root/main/limheaderinfo/limtm", model.getValue("/root/main/limheaderinfo/limhh"));
  515. var totalM = "";
  516. var inputTerm = model.getValue("/root/main/limheaderinfo/limtermtm");
  517. if( isNull(inputTerm) ) return;
  518. if( isNull(model.getValue("/root/main/limheaderinfo/limtmunitflag")) ) {
  519. messageBox ( "알람 설정 단위(시간/분)를 먼저", "C001" );
  520. return;
  521. }else if( model.getValue("/root/main/limheaderinfo/limtmunitflag") == "M" ){
  522. var mm = model.getValue("/root/main/limheaderinfo/limmm");
  523. if( isNull(mm) ){
  524. messageBox ( "설정 시간(분)을 먼저", "C001" );
  525. return;
  526. }
  527. totalM = parseInt(mm);
  528. }else{
  529. var hh = model.getValue("/root/main/limheaderinfo/limhh");
  530. if( isNull( hh) ){
  531. messageBox ( "설정 시간을 먼저", "C001" );
  532. return;
  533. }
  534. totalM = parseInt( hh) * 60;
  535. }
  536. if( parseInt(inputTerm) >= totalM ){
  537. messageBox ( "알람 설정 시간(분)을", "E003" );
  538. model.setValue("/root/main/limheaderinfo/limtermtm", "");
  539. ipt_limtermtm.refresh();
  540. }
  541. ]]>
  542. </script>
  543. </input>
  544. <caption id="caption2" style="left:703px; top:374px; width:15px; height:20px; ">분</caption>
  545. </xhtml:body>
  546. </xhtml:html>