123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <list>
- <item>
- <testnm/>
- <testroom/>
- <p_day01/>
- <p_day02/>
- <p_day03/>
- <p_day04/>
- <p_day05/>
- <p_day06/>
- <p_day07/>
- <p_day08/>
- <p_day09/>
- <p_day10/>
- <p_day11/>
- <p_day12/>
- <p_day13/>
- <p_day14/>
- <p_day15/>
- <p_day16/>
- <p_day17/>
- <p_day18/>
- <p_day19/>
- <p_day20/>
- <p_day21/>
- <p_day22/>
- <p_day23/>
- <p_day24/>
- <p_day25/>
- <p_day26/>
- <p_day27/>
- <p_day28/>
- <p_day29/>
- <p_day30/>
- <p_day31/>
- <p_daysum/>
- </item>
- </list>
- </main>
- <send>
- <srchdate/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <suppdeptcd/>
- <execfromdd/>
- <execfromyy/>
- <srchyy/>
- <srchmm/>
- </send>
- <inti/>
- <hidden/>
- </root>
- </instance>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <submission id="TRPMOCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/session" replace="instance" resultref="/root/init"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- aezfSetSuppDeptcd();
- model.removenode("/root/main/list/item");
-
- model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
-
- // model.setValue("/root/send/execfromdd", todd);
- // model.setValue("/root/send/execfromyy", toyy);
-
- mkDate();
-
- fSetDay();
-
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRAES00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- // var d = new Date();
- // var m = d.getMonth();
- // setWeek(m);
- ]]>
- </script>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fSetDay() {
-
- var toyy = model.getValue("/root/send/srchyy");
- var tomm = model.getValue("/root/send/srchmm");
- var sToDate = toyy + tomm + "01";
- var m = sToDate.toDate().getMonth();
- setWeek(toyy, m);
- }
-
- //
- function setWeek(toyy, m) {
-
- var str = "일,월,화,수,목,금,토";
- var endM = new Array(31,28,31,30,31,30,31,31,30,31,30,31);
- var days = new Array("일","월","화","수","목","금","토");
- var week = str.split(",");
-
- var orgCap = "구분^검사실명^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^합계|구분^검사실명";
- var setCap = "";
- var cnt = timeCalculate(toyy, m);
- // if(cnt < 1) {
- // cnt = 6;
- // }
- for(i=1; i<=31; i++) {
- setCap = setCap+"^"+days[cnt];
- cnt++;
- if(cnt > 6) {
- cnt = 0;
- }
- }
- orgCap = orgCap+setCap+"^합계";
- grd_list.caption = orgCap;
-
- if(endM[m] > 30) {
- grd_list.colHidden(grd_list.colRef("p_day29")) = false;
- grd_list.colHidden(grd_list.colRef("p_day30")) = false;
- grd_list.colHidden(grd_list.colRef("p_day31")) = false;
- }else if(endM[m] < 30) {
- grd_list.colHidden(grd_list.colRef("p_day29")) = true;
- grd_list.colHidden(grd_list.colRef("p_day30")) = true;
- grd_list.colHidden(grd_list.colRef("p_day31")) = true;
- }else {
- grd_list.colHidden(grd_list.colRef("p_day29")) = false;
- grd_list.colHidden(grd_list.colRef("p_day30")) = false;
- grd_list.colHidden(grd_list.colRef("p_day31")) = true;
- }
- }
-
-
- function timeCalculate(toyy, m) {
- var c = new Date(toyy,m,"1");
- var weeknm = c.getDay();
- var dayOfWeek = parseInt(weeknm)-2;
- return weeknm;
- }
- function mkDate(){
- var startyy = "";
-
- for(i=8; 0<=i; i--) {
- startyy = getCurrentDate().toDate().getAddDate(-i,"Y").getDateFormat().substr(0,4);
- addComboItem("cmb_srchdd",startyy +"년",startyy,"above");
- }
- cmb_srchdd.value = getCurrentDate().substr(0,4);
- cmb_srchmm.value = getCurrentDate().substr(4,2);
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">당일검사현황(예약검사)</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:50px; width:200px; height:14px; ">당일검사현황(예약검사)</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1195px; y2:65px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:30px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:7px; width:86px; height:17px; ">조회기간 :</caption>
- <line id="line13" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:25px; "/>
- <button id="btn_sea" class="btn1_letter2" navindex="4" style="left:1120px; top:4px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var srchyy = model.getValue("/root/send/srchyy");
- var srchmm = model.getValue("/root/send/srchmm");
- model.setValue("/root/send/execfromdd", srchyy + srchmm);
-
- model.removenode("/root/main/list");
-
- if (submit("TRAES00601")) {
- var cnt = getNodesetCount("/root/main/list/item");
- if (cnt > 1) {
- for ( i = 1; i <= cnt; i++ ) {
- grd_list.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
- grd_list.rowstyle( i , "data" , "color" ) = "#000000";
- }
-
- grd_list.colSort(0) = "asc";
- grd_list.sort(0, 0, grd_list.rows, grd_list.cols) = "usersort";
-
- for(i=3; i<35; i++) {
- grd_list.subtotal("sum", -1, i, "#,###", "background-color:#CCFFCC; color:#0000ff; font-weight:bold; ", 1, "총계");
- }
- grd_list.mergeByFree(grd_list.rows-1, 1 , grd_list.rows-1, 2);
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_srchdd" ref="/root/send/srchyy" appearance="minimal" style="left:107px; top:6px; width:73px; height:19px; ">
- <choices>
- <itemset nodeset="/root/inti_com/srchdate/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetDay();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_srchmm" ref="/root/send/srchmm" appearance="minimal" style="left:183px; top:6px; width:73px; height:19px; ">
- <choices>
- <item>
- <label>1월</label>
- <value>01</value>
- </item>
- <item>
- <label>2월</label>
- <value>02</value>
- </item>
- <item>
- <label>3월</label>
- <value>03</value>
- </item>
- <item>
- <label>4월</label>
- <value>04</value>
- </item>
- <item>
- <label>5월</label>
- <value>05</value>
- </item>
- <item>
- <label>6월</label>
- <value>06</value>
- </item>
- <item>
- <label>7월</label>
- <value>07</value>
- </item>
- <item>
- <label>8월</label>
- <value>08</value>
- </item>
- <item>
- <label>9월</label>
- <value>09</value>
- </item>
- <item>
- <label>10월</label>
- <value>10</value>
- </item>
- <item>
- <label>11월</label>
- <value>11</value>
- </item>
- <item>
- <label>12월</label>
- <value>12</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetDay();
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:45px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_list.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_list" nodeset="/root/main/list/item" caption="구분^검사실명^1^2^3^4^5^6^7^8^9^10^11^12^13^14^15^16^17^18^19^20^21^22^23^24^25^26^27^28^29^30^31^합계|구분^검사실명^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^수^목^금^토^일^월^화^합계" colsep="^" colwidth="75, 110, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 50" extendlastcol="scroll" mergecells="byrestriccol" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" style="left:0px; top:70px; width:1195px; height:670px; ">
- <col ref="testnm" style="text-align:center; "/>
- <col ref="testroom"/>
- <col ref="p_day01" style="text-align:right; "/>
- <col ref="p_day02" style="text-align:right; "/>
- <col ref="p_day03" style="text-align:right; "/>
- <col ref="p_day04" style="text-align:right; "/>
- <col ref="p_day05" style="text-align:right; "/>
- <col ref="p_day06" style="text-align:right; "/>
- <col ref="p_day07" style="text-align:right; "/>
- <col ref="p_day08" style="text-align:right; "/>
- <col ref="p_day09" style="text-align:right; "/>
- <col ref="p_day10" style="text-align:right; "/>
- <col ref="p_day11" style="text-align:right; "/>
- <col ref="p_day12" style="text-align:right; "/>
- <col ref="p_day13" style="text-align:right; "/>
- <col ref="p_day14" style="text-align:right; "/>
- <col ref="p_day15" style="text-align:right; "/>
- <col ref="p_day16" style="text-align:right; "/>
- <col ref="p_day17" style="text-align:right; "/>
- <col ref="p_day18" style="text-align:right; "/>
- <col ref="p_day19" style="text-align:right; "/>
- <col ref="p_day20" style="text-align:right; "/>
- <col ref="p_day21" style="text-align:right; "/>
- <col ref="p_day22" style="text-align:right; "/>
- <col ref="p_day23" style="text-align:right; "/>
- <col ref="p_day24" style="text-align:right; "/>
- <col ref="p_day25" style="text-align:right; "/>
- <col ref="p_day26" style="text-align:right; "/>
- <col ref="p_day27" style="text-align:right; "/>
- <col ref="p_day28" style="text-align:right; "/>
- <col ref="p_day29" style="text-align:right; "/>
- <col ref="p_day30" style="text-align:right; "/>
- <col ref="p_day31" style="text-align:right; "/>
- <col ref="p_daysum" style="text-align:right; "/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|