123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAYS05100_원목업무총집계표.xrw
- * 설 명 : 원목업무총집계표
- * 작 성 자 : 김다영
- * 작 성 일 : 2008.07.16
- * 수정이력 :
- * 기 타 :
- -->
- <?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/>
- <enddg/>
- <senddg/>
- <workstat/>
- <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="TRSDT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" replace="instance" resultref="/root/temp"/>
- <submission id="TRSDT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/temp"/>
- <submission id="TRSDT00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" replace="instance" resultref="/root/main/fthendlist"/>
- <submission id="TXSDT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" replace="instance" resultref="/root/temp"/>
- <submission id="TRSDT00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" replace="instance" resultref="/root/temp"/>
- <submission id="TRSDT00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" replace="instance" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /**========================================================================================================================================
- * 화면 오픈시
- =========================================================================================================================================*/
- function fInit() {
-
- //그리드 초기화
- 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();
- model.setValue("/root/main/cond/endym", CurrentDate.substr(0, 6) + "01");
- model.refresh();
- */
- var CurrentDate=getCurrentDate();
- var LastDate=CurrentDate.toDate().getAddDate(-1,"M").getDateFormat(); //현재 월-1월을 셋팅
- var LastDateYM=LastDate.substr(0,6);
- model.makeValue("/root/main/cond/endym",LastDateYM);
- model.refresh();
-
- //마감월 조회기간 세팅
- var CurrentDate = getCurrentDate();
- //model.setValue("/root/main/cond/from", CurrentDate.substr(0, 6) );
- //model.setValue("/root/main/cond/to" , CurrentDate.substr(0, 6) );
- model.setValue("/root/main/cond/from", LastDateYM );
- model.setValue("/root/main/cond/to" , LastDateYM );
-
- // 메뉴 파라미터(업무구분)
- var menuparam = getScreenMenuParameter();
-
- if (menuparam == "02")
- {
- model.setValue("/root/main/cond/bizflag", menuparam );
- //btn_medi.disabled = true;
-
- }
- else
- {
- model.setValue("/root/main/cond/bizflag", "01" );
- //btn_medi.disabled = false;
- }
- //btn_medi.visible=false;
-
-
- model.refresh();
-
- }
-
- /**========================================================================================================================================
- * 조회
- =========================================================================================================================================*/
- function fGetFthEndYM(){
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRSDT00103");
- }
-
- /**========================================================================================================================================
- * 그리드 초기화
- =========================================================================================================================================*/
-
- function fClear(){
- model.resetInstanceNode("/root/main/fthendlist/fthendlistinfo");
- model.resetInstanceNode("/root/main/cond");
-
- fInit();
- model.refresh();
-
- }
-
-
- ]]>
- </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="102, 100, 100, 100, 140, 100, 140, 100, 311" dataheight="25" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:81px; width:1190px; height:640px; ">
- <col ref="endym" format="yyyy-mm" style="text-align:center; "/>
- <col ref="enddg" style="text-align:center; "/>
- <col ref="senddg" 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="medicntrtrsmdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="medicntrtrsmpsn" style="text-align:center; "/>
- <col ref="endrem" style="text-align:left; "/>
- </datagrid>
- <group id="group4" 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" style="left:303px; top:10px; width:100px; height:19px; "/>
- <input id="ipt_endym" ref="/root/main/cond/endym" class="input_search" 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" 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="2" 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="1" inputtype="date" format="yyyy-mm" style="left:924px; top:54px; width:100px; height:19px; "/>
- <button id="btn_end" class="btn4_letter2" style="left:1015px; top:15px; width:56px; height:22px; ">
- <caption>마감</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- 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("TRSDT00105", false);
- rtnflag = model.getValue("/root/temp/rtninfo/rtnflag");
- if(rtnflag == "00"){
- messageBox("원목마감중입니다.","E");
- return;
- }
- else if(rtnflag =="01"){
- messageBox("원목마감에러 상태입니다.","E");
- }
- //마감완료상태
- 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 =="88"){
- var vbYes = messageBox("의료원송신중입니다. 마감을", "Q004");
- if(vbYes == 6){
- }
- else{
- return;
- }
- }
- // else if(rtnflag =="05"){
- // messageBox("원목마감 데이터가 존재하지 않습니다.","E");
- // }
-
-
- if (submit("TRSDT00101", false)) {
- rtnflag = model.getValue("/root/temp/rtninfo/rtnflag");
- if (rtnflag =="99"){
- messageBox("원목마감이 정상적으로 실행되었습니다.","I");
- model.refresh();
- }
- }
- else {
- return;
- }
- ]]>
- </script>
- </button>
- <button id="btn_medi" class="btn4_letter5" visibility="visible" style="left:1080px; top:15px; width:92px; height:22px; ">
- <caption>의료원송신</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/main/cond/btnflag", "02");
-
- 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("TRSDT00105", false);
- rtnflag = model.getValue("/root/temp/rtninfo/rtnflag");
-
- if(rtnflag == "88"){
- messageBox("의료원 송신중입니다.","E");
- return;
- }
- //의료원송신완료상태
- else if(rtnflag =="04"){
- //의료원송신 버튼
- var vbYes = messageBox("의료원송신 완료된 상태입니다.의료원 송신을", "Q004");
-
- if(vbYes == 6){
- }
- else{
- return;
- }
- }
- else if(rtnflag == "00"){
- messageBox("원목마감중입니다.","E");
- return;
- }
-
- // else if(rtnflag =="05"){
- // messageBox("원목마감 데이터가 존재하지 않습니다.","E");
- // }
-
-
- if (submit("TRSDT00104", false)) {
- rtnflag = model.getValue("/root/temp/rtninfo/rtnflag");
- if (rtnflag =="77"){
- messageBox("의료원송신이 정상적으로 실행되었습니다.","I");
- model.refresh();
- }
- }
- else {
- return;
- }
-
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|