123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAYS05100_사회사업업무총집계표.xrw
- * 설 명 : 사회상업업무총집계표
- * 작 성 자 : 박성호
- * 작 성 일 : 2008.10.14
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <cmbcond>
- </cmbcond>
- <fthendlist>
- <fthendlistinfo>
- <endym/>
- <workstat/>
- <enddg/>
- <enddt/>
- <endpsn/>
- <medicntrtrsmdt/>
- <medicntrtrsmpsn/>
- <endrem/>
- </fthendlistinfo>
- </fthendlist>
- <cond>
- <endym/>
- <medicntrtrsmpsn/>
- <from/>
- <to/>
- <endyy/>
- <endmm/>
- <entryy/>
- <qurtyy/>
- <enddd/>
- <enddg/>
- <btnflag/>
- <batchflag/>
- <fromdd/>
- <todd/>
- <bizflag/>
- </cond>
- </main>
- <send>
- <reqdata/>
- </send>
- <init>
- </init>
- <hidden/>
- <temp>
- <rtninfo>
- <rtnflag/>
- </rtninfo>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fInit();
-
- ]]>
- </script>
- <submission id="TRSDT06101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" replace="instance" resultref="/root/temp"/>
- <submission id="TRSDT06102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" replace="instance" resultref="/root/main/fthendlist"/>
- <submission id="TRSDT06103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" replace="instance" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /**========================================================================================================================================
- * 화면 오픈시
- =========================================================================================================================================*/
- function fInit() {
- var menuparam = getScreenMenuParameter();
- //alert(menuparam);
- // 메뉴파라미터에 따른 사회사회, 의료협력 이력
- if (menuparam == "03")
- {
- document.title = "의료협력마감이력";
- caption6.attribute("text") = "의료협력마감이력";
- // 사회사업은 02, 의료협력:03
- model.setValue("/root/main/cond/bizflag", menuparam);
- }
- else
- {
- document.title = "사회사업마감이력";
- caption6.attribute("text") = "사회사업마감이력";
- // 사회사업은 02, 의료협력:03
- model.setValue("/root/main/cond/bizflag", "02");
- }
-
- //그리드 초기화
- model.removeNodeset("/root/main/fthendlist/fthendlistinfo");
- grd_fthendlist.refresh();
-
- //사용자명 (입력자 또는 로그인한 사용자명)
- var usernm = getUserInfo("usernm");
- model.setValue(ipt_medicntrtrsmpsn.attribute("ref"), usernm);
- model.refresh();
-
- var CurrentDate = getCurrentDate();
- var lstDate=CurrentDate.toDate().getAddDate(-1,"M").getDateFormat();
- var LastDate=lstDate.substr(0,6);
- model.setValue("/root/main/cond/endym", LastDate);
- model.refresh();
-
- //마감월 조회기간 세팅
- //var CurrentDate = getCurrentDate();
-
- model.setValue("/root/main/cond/from", LastDate );
- model.setValue("/root/main/cond/to" , LastDate );
-
- model.refresh();
- }
-
- /**========================================================================================================================================
- * 조회
- =========================================================================================================================================*/
- function fGetFthEndYM(){
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRSDT06102");
- }
-
- /**========================================================================================================================================
- * 그리드 초기화
- =========================================================================================================================================*/
-
- function fClear(){
- model.resetInstanceNode("/root/main/fthendlist/fthendlistinfo");
- model.resetInstanceNode("/root/main/cond");
-
- fInit();
- model.refresh();
-
- }
- /**========================================================================================================================================
- * 마감
- =========================================================================================================================================*/
- function fEnd()
- {
- //model.setValue("/root/main/cond/btnflag", "01");
-
- var endym = model.getValue("/root/main/cond/endym");
- var endyy = model.getValue("/root/main/cond/endyy");
- var endmm = model.getValue("/root/main/cond/endmm");
-
- model.setValue("/root/main/cond/endym",endym.substr(0, 6) );
- model.setValue("/root/main/cond/endyy",endym.substr(0, 4) );
- model.setValue("/root/main/cond/endmm",endym.substr(4, 2) );
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- // 상태 체크
- submit("TRSDT06103", false);
- rtnflag = model.getValue("/root/temp/rtninfo/rtnflag");
-
- if(rtnflag == "00"){
- messageBox("마감중입니다.","E");
- return;
- }
- else if(rtnflag =="01"){
- messageBox("마감에러 상태입니다.","E");
- return;
- }
- else if(rtnflag =="02"){ //마감완료상태
- //마감버튼
- var vbYes = messageBox("마감 완료된 상태입니다.마감을", "Q004");
-
- if(vbYes == 6){
- }
- else{
- return;
- }
- }
- else if(rtnflag =="03"){ //의료원송신에러상태
- var vbYes = messageBox("마감 완료된 상태입니다.마감을", "Q004");
- if(vbYes == 6){
- }
- else{
- return;
- }
- }
- else if(rtnflag =="04"){ //의료원송신완료상태
- var vbYes = messageBox("의료원송신 완료된 상태입니다.마감을", "Q004");
- if(vbYes == 6){
- }
- else{
- return;
- }
- }
- // else if(rtnflag =="05"){
- // messageBox("사회사업마감 데이터가 존재하지 않습니다.","E");
- // }
-
- if (submit("TRSDT06101", false)) {
- rtnflag = model.getValue("/root/temp/rtninfo/rtnflag");
- if (rtnflag =="99"){
- messageBox("마감이 정상적으로 실행되었습니다.","I");
- model.refresh();
- }
- }
- else {
- return;
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:225px; height:14px; ">사회사업마감이력</caption>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption21" class="tit_2" style="left:0px; top:55px; width:209px; height:13px; ">마감작업 LIST</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:78px; x2:1189px; y2:77px; "/>
- <datagrid id="grd_fthendlist" nodeset="/root/main/fthendlist/fthendlistinfo" caption="마감년월^마감차수^상태^마감일시^마감자^비고^장소^장소^장소^장소명^장소^담당자" colsep="^" colwidth="111, 115, 100, 140, 117, 311" dataheight="25" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:1px; top:80px; width:1190px; height:640px; ">
- <col ref="endym" format="yyyy-mm" style="text-align:center; "/>
- <col ref="enddg" style="text-align:center; "/>
- <col ref="workstat" style="text-align:center; "/>
- <col ref="enddt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="endpsn" style="text-align:center; "/>
- <col ref="endrem" style="text-align:left; "/>
- </datagrid>
- <group id="group4" navindex="1" style="left:0px; top:5px; width:1194px; height:40px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1189px; height:40px; "/>
- <caption id="caption26" class="search_name" style="left:10px; top:10px; width:85px; height:17px; ">작업월 :</caption>
- <input id="ipt_medicntrtrsmpsn" ref="/root/main/cond/medicntrtrsmpsn" class="output_fix" disabled="true" navindex="2" style="left:303px; top:10px; width:100px; height:19px; "/>
- <input id="ipt_endym" ref="/root/main/cond/endym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:92px; top:10px; width:100px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:225px; top:10px; width:85px; height:17px; ">마감자 :</caption>
- <input id="ipt_endyy" ref="/root/main/cond/endyy" class="input_search" visibility="hidden" inputtype="date" format="yyyy" style="left:405px; top:10px; width:55px; height:19px; "/>
- <input id="ipt_endmm" ref="/root/main/cond/endmm" class="input_search" visibility="hidden" inputtype="date" format="mm" style="left:460px; top:10px; width:50px; height:19px; "/>
- </group>
- <button id="button3" class="btn5_letter2" navindex="5" style="left:1148px; top:54px; width:42px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetFthEndYM();
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/main/cond/to" class="input_default" navindex="4" inputtype="date" format="yyyy-mm" style="left:1042px; top:54px; width:100px; height:19px; "/>
- <caption id="caption2" class="search_no_b" style="left:1027px; top:54px; width:12px; height:17px; ">~</caption>
- <caption id="caption29" class="cell_1" style="left:839px; top:52px; width:79px; height:21px; text-align:center; vertical-align:middle; ">마감월</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/from" class="input_default" navindex="3" inputtype="date" format="yyyy-mm" style="left:924px; top:54px; width:100px; height:19px; "/>
- <button id="btn_end" class="btn4_letter2" navindex="2" style="left:1115px; top:15px; width:56px; height:22px; ">
- <caption>마감</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fEnd();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn3_letter6" style="left:1080px; top:720px; width:104px; height:22px; ">
- <caption>마감로그조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMZSB00201", 1,100, 100);
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|