<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OutOff_Edit.aspx.cs" Inherits="TotCms.Web.Office.Financial.OutOff_Edit" %>
<!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>
<title>发送即时信息</title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <script src="../js/common.js" type="text/javascript"></script>
    <script src="../../js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-ui-1.8.10/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <link href="../../js/jquery-ui-1.8.10/css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery-ui-1.8.10/js/i18n/jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
    <script type="text/javascript">
      $(function () {
        $('.dates').datepicker($.datepicker.regional["zh-CN"]);
        $("#dialog:ui-dialog").dialog("destroy");
        $("#dialog-win").dialog({
          autoOpen: false,
          height: 350,
          width: 450,
          modal: true,
          buttons: {
            "关闭窗口": function () {
              $(this).dialog("close");
            }
          },
          close: function () {

          }
        });

        $("#selclass").click(function () {
          $("#dialog-win").dialog("open");
        });
      });

      function CloseFrame() {
        $("#dialog-win").dialog("close");
      }
      function ReturnValue(v, t) {
        $('#tbStaffs').val(t);
        $('#tbStaffId').val(v);
        CloseFrame();
      }
	</script>
</head>
<body>
<form id="form1" runat="server">
<div class="br"></div>
    <div id="dialog-win" title="选择员工">
        <iframe src="../Staff/Staff_Select.aspx" width="370" height="350" frameborder="0"
            scrolling="auto"></iframe>
    </div>
    <div>
        <table cellpadding="0" cellspacing="1" border="0" width="100%" class="border">
             <tr class="suphead">
                <td colspan="2">
                    <h3>财务支出信息</h3>
                </td>
            </tr>
            <tr>
                <td width="11%" class="fields_text">
                    员工：</td>
                <td width="89%" class="fields_input">
                    <asp:TextBox ID="tbStaffs" runat="server" CssClass="input_middle" ></asp:TextBox>
                    <asp:TextBox ID="tbStaffId" runat="server" CssClass="hidden">0</asp:TextBox>
                    <input id="selclass" name="selclass" type="button" value="选择" class="selclass" /> </td>
            </tr>
            <tr>
      <td class="fields_text">
          标题：</td>
      <td class="fields_input">
        <asp:TextBox ID="tbTitle" runat="server" CssClass="input_middle"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
          ControlToValidate="tbTitle" ErrorMessage="请填写标题" SetFocusOnError="True"></asp:RequiredFieldValidator>
      </td>
    </tr>
    <tr>
                <td width="11%" class="fields_text">
                    金额：</td>
                <td width="89%" class="fields_input">
                    <asp:TextBox ID="tbMoney" runat="server" CssClass="input_middle" >0.00</asp:TextBox>
                    
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                      ControlToValidate="tbMoney" ErrorMessage="限数字" ValidationExpression="\d+\.*\d*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
      <td class="fields_text">
          日期：</td>
      <td class="fields_input">
        <asp:TextBox ID="tbDate" runat="server" CssClass="dates"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
          ControlToValidate="tbDate" ErrorMessage="必填项"></asp:RequiredFieldValidator>
      </td>
    </tr>
            
            <tr>
              <td align="center" bgcolor="#F5F5F5">&nbsp;</td>
              <td height="32" align="left" bgcolor="#F5F5F5"><asp:Button ID="btnSubmit" runat="server" Text="确定" CssClass="button_blue" OnClick="btnSubmit_Click" />              
              &nbsp;<input type="button" class="button_gray" onclick="javascript:history.back();" value="返 回" /></td>
            </tr>
        </table>
</div>
    </form>
</body>
</html>