| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="workcalendarset.aspx.cs"
- Inherits="SysSettings_workcalendarset" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head id="Head1" runat="server">
- <title></title>
- <link href="../scripts/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
- <link href="../_css/messagebox.css" rel="stylesheet" type="text/css" />
- <script src="../Scripts/ui/js/jquery-1.3.2.min.js" type="text/javascript"></script>
- <script src="../scripts/ui/js/core/base.js" type="text/javascript"></script>
- <script src="../scripts/ui/js/ligerui.min.js" type="text/javascript"></script>
- <link href="../scripts/ui/skins/Tab/css/tab.css" rel="stylesheet" type="text/css" />
- <link href="../scripts/ui/skins/Tab/css/grid.css" rel="stylesheet" type="text/css" />
- <script src="../scripts/ui/js/plugins/ligerGrid.js" type="text/javascript"></script>
- <link href="../scripts/ui/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
- <link href="../images/style.css" rel="stylesheet" type="text/css" />
- <script src="../Scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
- <script src="../_javascripts/globalctrl.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(function() {
- LoadList();
- });
- function LoadList() {
- try {
- $.ajax({
- type: 'get',
- url: '/HttpHandel/CommonHelp.ashx?action=getcalendarlist&strdate=' + document.getElementById("txtYear").value + "-" + document.getElementById("txtMonth").value + "-01",
- data: { userid: '' },
- dataType: 'html',
- async: false,
- cache: false,
- success: function(res) {
- document.getElementById("divDataItems").innerHTML = res;
- $("#pageloading").hide();
- }
- });
- }
- catch (e) {
- alert(e.Message);
- }
- }
- function changeState(e) {
- $.ligerDialog.confirm('确定修改[' + e.id + ']的工作日设置吗?', function(yes) {
- if (yes) {
- $.ajax({
- type: "post",
- url: "/HttpHandel/CommonHelp.ashx?action=changworkingday&dateid=" + e.id,
- async: true,
- cache: false,
- success: function(data, states) {
- if (states == "success") {
- if (data == "True") {
- if (e.color == "#000000" || e.color == "black" || e.color == "Black") {
- e.color = "red";
- }
- else {
- e.color = "black";
- }
- }
- }
- }
- });
- }
- });
- }
- function PreYear() {
- var year = document.getElementById("txtYear").value;
- document.getElementById("txtYear").value = parseInt(year) - 1;
- LoadList();
- }
- function NextYear() {
- var year = document.getElementById("txtYear").value;
- document.getElementById("txtYear").value = parseInt(year) + 1;
- LoadList();
- }
- function PreMonth() {
- var year = document.getElementById("txtYear").value;
- var month = document.getElementById("txtMonth").value;
- document.getElementById("txtMonth").value = parseInt(month) - 1;
- if (parseInt(document.getElementById("txtMonth").value) < 1) {
- document.getElementById("txtMonth").value = 12;
- document.getElementById("txtYear").value = parseInt(year) - 1;
- }
- LoadList();
- }
- function NextMonth() {
- var year = document.getElementById("txtYear").value;
- var month = document.getElementById("txtMonth").value;
- document.getElementById("txtMonth").value = parseInt(month) + 1;
- if (parseInt(document.getElementById("txtMonth").value) > 12) {
- document.getElementById("txtMonth").value = parseInt(document.getElementById("txtMonth").value) % 12;
- document.getElementById("txtYear").value = parseInt(year) + 1;
- }
- LoadList();
- }
- function NextMonth1() {
- var strdate = document.getElementById("txtYear").value + "-" + document.getElementById("txtMonth").value + "-01";
- LoadList();
- }
- </script>
- <script type="text/javascript">
- var divmark = "";
- divmark += "<div id=\"divLock\" style=\"z-index:1;background-color:#AAA;filter:alpha(opacity=50);position: absolute;width:expression(this.parentNode.scrollWidth);top:expression(this.parentNode.scrollTop); left:0; height:100%;right:0; bottom:0; display:none;\"></div>";
- divmark += "<div id=\"divMessageBox\" onmousedown=\"MM_dragLayer('divMessageBox','',0,0,0,0,true,false,-1,-1,-1,-1,false,false,0,'',false,'')\" style=\"display:none;position: absolute;top:expression(this.parentNode.scrollHeight/2-100);left:expression(this.parentNode.scrollWidth/2-100);z-index:2;\">";
- divmark += "<div class=\"wbox\"><div class=\"lbox\"><h1 class=\"tbox\"><span id=\"spanTitle\"></span><img src=\"../_images/dialogclose.gif\" style=\"cursor:hand;\" onclick=\"MessageBoxClose();\" /></h1>";
- divmark += "<div id=\"divContent\" class=\"nrbox\"></div></div></div></div>";
- document.write(divmark);
- function OpenMessage(strid, strtitle, strmessage, strwidth, btnstyle, _height, _top) {
- var btnstr = "";
- switch (btnstyle) {
- case 0:
- btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();'>确 定</button></div>";
- break;
- case 1:
- btnstr = "<br /><div style='padding-bottom:15px; text-align:center;'><img alt='加载数据中' style='width:180px;' src='../_imgs/inprogress.gif'></div><br />";
- break;
- case 2:
- btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();pagination(1);'>确 定</button></div>";
- break;
- case 3:
- btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();LoadingData();'>确 定</button></div>";
- break;
- case 4:
- btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();DeleteOpt();'>确 定</button> <button style='width: 65px;' onclick='MessageBoxClose();'>取 消</button></div>";
- break;
- case 5:
- btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();ReloadData();'>确 定</button></div>";
- break;
- case 6:
- btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();DeleteDictOpt();'>确 定</button> <button style='width: 65px;' onclick='MessageBoxClose();'>取 消</button></div>";
- break;
- case 7:
- btnstr = "<div style='padding-bottom:10px; text-align:center;'><button style='width: 65px;' onclick='MessageBoxClose();SaveClose();'>确 定</button></div>";
- break;
- default:
- break;
- }
- if (_height != null) {
- strmessage = "<div style='padding:0px;'>" + strmessage + "</div>" + btnstr;
- document.getElementById("divMessageBox").style.height = _height;
- }
- else {
- strmessage = "<div style='padding:10px;'>" + strmessage + "</div>" + btnstr;
- document.getElementById("divMessageBox").style.height = 50;
- _height = 120;
- }
- document.getElementById("spanTitle").innerHTML = strtitle;
- document.getElementById("divContent").innerHTML = strmessage;
- document.getElementById("divMessageBox").style.width = strwidth;
- try {
- if (_top != null) {
- document.getElementById("divMessageBox").style.top = (document.body.clientHeight - _height) / 2 + _top;
- }
- else {
- document.getElementById("divMessageBox").style.top = (document.body.clientHeight - _height) / 2;
- if (_height > 350) {
- document.getElementById("divMessageBox").style.top = 5;
- }
- }
- document.getElementById("divMessageBox").style.left = (document.body.clientWidth - strwidth) / 2;
- }
- catch (e)
- { }
- document.getElementById("divLock").style.display = "block";
- document.getElementById("divMessageBox").style.display = "block";
- }
- function OpenWindowPage(_title, _id, _width, _height, _url) {
- var html = "<iframe id='" + _id + "' src='" + _url + "' style='width:100%; height:" + _height + ";'></iframe>";
- OpenMessage(_id, _title, html, _width, -1, _height);
- }
- function OpenWindowPage(_title, _id, _width, _height, _url, _top) {
- var html = "<iframe id='" + _id + "' src='" + _url + "' style='width:100%; height:" + _height + ";'></iframe>";
- OpenMessage(_id, _title, html, _width, -1, _height, _top);
- }
- function MessageBoxClose() {
- document.getElementById("divLock").style.display = "none";
- document.getElementById("divMessageBox").style.display = "none";
- document.getElementById("divContent").innerHTML = "";
- }
- function CloseWindowPage(type) {
- MessageBoxClose();
- }
- </script>
- </head>
- <body style="margin: 0px; padding: 0px; overflow: hidden;">
- <form id="form1" runat="server">
- <div class="l-loading" style="display: block" id="pageloading">
- </div>
- <div class="tools_box">
- <div class="tools_bar">
- <div style="width: 100%; text-align: center; padding-top: 8px; color: Red; font-size: 16px;">
- 红色的为非工作日,点击日期对日期进行设置</div>
- </div>
- </div>
- <div style="width: 100%; border: solid 1px #cccccc; height: 38px; padding-top: 10px;
- text-align: center;">
- <img src="../images/page_FL1.gif" style="cursor: pointer;" onclick="PreYear();" alt="上一年"
- title="上一年" /> <img src="../images/page_L1.gif" onclick="PreMonth()" style="cursor: pointer;"
- alt="上一月" title="上一月" /> <asp:TextBox ID="txtYear" runat="server" CssClass="txtInput"
- Width="50px" ReadOnly="true"></asp:TextBox> - <asp:TextBox ID="txtMonth"
- runat="server" CssClass="txtInput" Width="50px" ReadOnly="true"></asp:TextBox> <img
- src="../images/page_R1.gif" onclick="NextMonth();" style="cursor: pointer;" alt="下一月"
- title="下一月" /> <img src="../images/page_LL1.gif" onclick="NextYear();"
- style="cursor: pointer;" alt="下一年" title="下一年" />
- </div>
- <div id="divDataItems" style="width: 100%;">
- </div>
- <div id="divTimes" style="width: 100%; border: solid 1px #cccccc; height: 120px; padding-top: 10px;
- text-align: center;">
- <span style="font-size:14px; display:inline-block; line-height:35px; height:35px;">
- 上午:<asp:TextBox ID="txtAMSTime" runat="server" CssClass="txt Wdate" Style="width: 200px;" onclick="WdatePicker({el:'txtAMSTime',dateFmt:'HH:mm'})"></asp:TextBox>
- -
- <asp:TextBox ID="txtAMETime" runat="server" CssClass="txt Wdate" Style="width: 200px;" onclick="WdatePicker({el:'txtAMETime',dateFmt:'HH:mm'})"></asp:TextBox>
- </span>
- <br />
- <span style="font-size:14px; display:inline-block; line-height:35px; height:35px;">
- 下午:<asp:TextBox ID="txtPMSTime" runat="server" CssClass="txt Wdate" Style="width: 200px;" onclick="WdatePicker({el:'txtPMSTime',dateFmt:'HH:mm'})"></asp:TextBox>
- -
- <asp:TextBox ID="txtPMETime" runat="server" CssClass="txt Wdate" Style="width: 200px;" onclick="WdatePicker({el:'txtPMETime',dateFmt:'HH:mm'})"></asp:TextBox>
- </span>
- <br />
- <span style="font-size:14px; display:inline-block; line-height:35px; height:35px;">
- <asp:Button ID="btnSave" runat="server" Text="保存" CssClass="btn" Style="width: 80px; height: 23px;" OnClick="btnSave_Click" /></span>
- </div>
- </form>
- </body>
- </html>
|