123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>수익.인원 마감</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- </main>
- <send>
- <enddate/>
- <ordflag>O</ordflag>
- <endkind>1</endkind>
- <modulenm/>
- <prgmid/>
- <endflag>U</endflag>
- <befodt/>
- </send>
- <temp>
- <result/>
- </temp>
- </root>
- </instance>
- <submission id="TXPAE00101" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" resultref="root/temp/result"/>
- <submission id="TXPAE00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRPAE00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
- <script type="javascript">
- <![CDATA[
-
- var gRepeatTimerID = ""; // 자동 조회용 타이머
- var progres = ".";
-
- model.setValue("root/send/enddate", getCurrentDate());
-
- var beforeDate = model.getValue("root/send/enddate").toDate().getAddDate(-1, 'D');
- beforeDate = beforeDate.getDateFormat("YYYYMMDD");
- model.setValue("root/send/befodt", beforeDate);
- model.refresh();
-
- function fEndExecute() {
- var result = messageBox(" 마감일자 : '" + model.getValue("/root/send/enddate") + "'" +
- " 마감종류 : '" + cmb_endkind.label + "'" +
- " 입원/외래구분 : '" + combo1.label + "' 의 조건으로 마감하시겠습니까..?","Q000","");
- if ( result == "6" ) {
- if ( model.getValue("root/send/endkind") == '1' ) {
- // 수익마감
- if (submit("TXPAE00102")) {
- if ( model.getValue("root/temp/endstat/endgubn") == 'Y' ) {
- var result = messageBox("마감 Data가 존재합니다. 기존 마감내역을 취소하고 재마감 하시겠습니까..?","Q000","");
- if (result == "6") {
- submit("TXPAE00101");
- //fSetAutoRepeat();
- } else {
- return;
- }
- } else {
- submit("TXPAE00101");
- //fSetAutoRepeat();
- }
- } else {
- return;
- }
- } else {
- // 인원마감
- submit("TXPAE00101");
- //fSetAutoRepeat();
- }
- }
- }
-
- function fSetAutoRepeat() {
- if (gRepeatTimerID == "") {
- gRepeatTimerID = window.setInterval("fGetEndPrcsStat()",5000);
- } else {
- window.clearInterval(gRepeatTimerID);
- }
- }
-
- function fGetEndPrcsStat() {
- var modulenm;
- var prgmid;
-
- if (model.getValue("/root/send/endkind") == "1" ) {
- modulenm = model.setValue("/root/send/modulenm", "pamendstatsmgr");
- prgmid = model.setValue("/root/send/prgmid", "PamEndStatsbatch");
- } else {
- modulenm = model.setValue("/root/send/modulenm", "pampsnnostatsmngtmgr");
- prgmid = model.setValue("/root/send/prgmid", "OrdPsnNoEndbatch");
- }
-
- var result;
-
-
- submit("TRPAE00101");
- result = model.getValue("/root/temp/result/prcsstat");
-
- if ( result == "E" ) {
- caption26.text = "성공적으로 마감되었습니다..!";
- gRepeatTimerID = "E"
- } else if ( result == "F" ) {
- caption26.text = "마감작업 중 에러 발생..작업을 중단합니다..!";
- gRepeatTimerID = "F"
- } else {
- progres = progres + ".....";
- caption26.text = "마감 작업 중." + progres;
- if ( caption26.text.length > 50) {
- progres = "."
- }
- gRepeatTimerID = ""
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="400" pageheight="200" guideline="1,721;1,720;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <caption id="caption1" class="tit_2" style="left:20px; top:25px; width:121px; height:13px; ">수익마감</caption>
- <caption id="caption5" class="cell_1" style="left:15px; top:50px; width:115px; height:23px; vertical-align:middle; ">마감일자</caption>
- <line id="line1" class="line_1" style="x1:15px; y1:45px; x2:290px; y2:45px; "/>
- <button id="btn_confirm" class="btn4_letter2" navindex="7" style="left:235px; top:20px; width:56px; height:22px; ">
- <caption>마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fEndExecute();
- ]]>
- </script>
- </button>
- <button id="button1" style="left:300px; top:20px; width:100px; height:20px; ">
- <caption>배치 팝업</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- zsbfOpenBatchLogPopup("pamendstatsmgr.PamEndStatsbatch");
- ]]>
- </script>
- </button>
- <line id="line2" class="line_3" style="x1:15px; y1:76px; x2:290px; y2:76px; "/>
- <caption id="caption26" style="left:15px; top:155px; width:282px; height:19px; vertical-align:middle; background-color:#ffff99; ">* 마감일자를 확인하세요...</caption>
- <input id="ipt_enddate" ref="/root/send/enddate" class="input_default" navindex="5" inputtype="date" appearance="input" style="left:135px; top:52px; width:157px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("root/send/befodt", model.getValue("root/send/enddate") - 1);
- ]]>
- </script>
- </input>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:98px; height:14px; ">수익 마감</caption>
- <caption id="caption2" class="cell_1" style="left:15px; top:80px; width:115px; height:23px; vertical-align:middle; ">마감종류</caption>
- <line id="line3" class="line_3" style="x1:15px; y1:105px; x2:290px; y2:105px; "/>
- <caption id="caption3" class="cell_1" style="left:16px; top:108px; width:115px; height:23px; vertical-align:middle; ">외래/입원 구분</caption>
- <line id="line4" class="line_3" style="x1:15px; y1:135px; x2:290px; y2:135px; "/>
- <select1 id="combo1" ref="/root/send/ordflag" class="combo_default" appearance="minimal" style="left:135px; top:110px; width:157px; height:19px; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_endkind" ref="/root/send/endkind" class="combo_default" appearance="minimal" style="left:135px; top:80px; width:157px; height:19px; ">
- <choices>
- <item>
- <label>수익마감</label>
- <value>1</value>
- </item>
- <item>
- <label>인원마감</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- </xhtml:body>
- </xhtml:html>
|