<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PreCostSettingManage.aspx.cs" Inherits="M_Main.ChargesNew.PreCostSettingManage" %>

<!DOCTYPE html>

<html>
<head id="Head1" runat="server">
    <title></title>
    <script src="../jscript/jquery-1.11.3.min.js"></script>
    <script src="../jscript/jquery.tool.js" type="text/javascript"></script>
    <script src="../jscript/JSClient.js" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="../Jscript-Ui/jquery-easyui-1.4.4/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../Jscript-Ui/jquery-easyui-1.4.4/themes/icon.css">
    <script type="text/javascript" src="../Jscript-Ui/jquery-easyui-1.4.4/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../Jscript-Ui/jquery-easyui-1.4.4/locale/easyui-lang-zh_CN.js"></script>
    <link rel="stylesheet" type="text/css" href="../Jscript-Ui/jquery-easyui-1.4.4/demo/demo.css">
    <script src="../jscript/Dialog.js" type="text/javascript"></script>
    <link href="../css/button.css" type="text/css" rel="stylesheet" />
    <script src="../jscript/Dialog.js" type="text/javascript"></script>
    <style type="text/css">
        body {
            margin: 0px;
            margin-top: 0px;
            overflow: hidden;
            background-color: #ffffff;
            padding: 5px;
        }

        .Container {
            width: 100%;
            height: auto;
            margin-top: 5px;
            font-size: 12px;
            font-family: 微软雅黑;
        }

            .Container ul {
                margin: 0px auto;
                clear: both;
            }

                .Container ul .InputTitle {
                    list-style-type: none;
                    float: left;
                    text-align: center;
                    margin-bottom: 10px;
                    min-height: 22px;
                    line-height: 22px;
                    width: 120px;
                    text-align: right;
                }

                .Container ul .Content {
                    list-style-type: none;
                    float: left;
                    text-align: left;
                    margin-bottom: 10px;
                    width: 60%;
                }

            .Container .Content textarea {
                width: 99%;
                height: 50px;
                padding-left: 2px;
                resize: none;
            }


            .Container ul .Submit {
                list-style-type: none;
                text-align: center;
                padding-top: 4px;
                width: 80%;
                height: 40px;
            }


            .Container .Content input {
                width: 99%;
                border: 1px solid #cccccc;
                height: 22px;
                padding-left: 2px;
            }
    </style>
</head>
<body style="overflow-y: auto;">
    <form id="frmForm" runat="server">

        <div class="Container">

            <ul>
                <li class="InputTitle">项目名称：</li>
                <li class="Content">
                    <input id="CommName" name="CommName" class="easyui-validatebox" style="border: 1px solid #cccccc;" disabled="disabled" runat="server" />
                </li>
            </ul>
            <ul>
                <li class="InputTitle">预算费用起算日期：</li>
                <li class="Content">
                    <select id="nYear1" name="nYear1" runat="server" class="" data-options="editable:false,panelHeight: '100'" style="width: 60px;">
                        <option selected></option>
                    </select>年<select id="nMonth1" name="nMonth1" runat="server" class="" data-options="editable:false,panelHeight: '100'" style="width: 45px;">
                        <option selected></option>
                    </select>月<select id="nDay1" name="nDay1" runat="server" class="" data-options="editable:false,panelHeight: '100'" style="width: 45px;">
                        <option selected></option>
                    </select>日
                </li>
            </ul>

            <ul>
                <li class="InputTitle">目标金额（元）：</li>
                <li class="Content">
                    <input id="Amount" name="Amount" runat="server" class="easyui-validatebox " value="" data-options="required:true" />
                </li>
            </ul>
            <ul>
                <li class="Submit">
                    <input name="BtnSave" type="button" id="BtnSave" class="button" value="保存" />
                </li>
            </ul>
        </div>

        <input type="hidden" id="CommID" name="CommID" runat="server" />
        <input type="hidden" id="OpType" name="OpType" value="edit" runat="server" />
        <input type="hidden" id="ID" name="ID" runat="server" />


        <script type="text/javascript">
            //更新
            $("#BtnSave").click(function () {
                Update();
            });

            function Update() {
                $.tool.DataPost('PreCostSetting', 'SavePreCostSettingList', $('#frmForm').serialize(),
                    function Init() {
                    },
                    function callback(_Data) {
                        if (_Data == "true") {
                            HDialog.Info('保存成功');
                            HDialog.Close("true");
                        }
                        else {
                            HDialog.Info('保存失败');
                        }
                    },
                    function completeCallback() {
                    },
                    function errorCallback() {
                    });
            }

        </script>
    </form>
</body>
</html>

