wzp
2021-11-30 f0a773e75016d08684a5c1fdd70d81f68141845d
RPT的处理
25个文件已添加
27个文件已修改
1个文件已删除
490 ■■■■■ 已修改文件
web/.vs/Web/v16/.suo 补丁 | 查看 | 原始文档 | blame | 历史
web/App_Code/obj/Debug/App_Code.csproj.AssemblyReference.cache 补丁 | 查看 | 原始文档 | blame | 历史
web/Dao/GwRptCodeDao.cs 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/Dao/RptCode.cs 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/Dao/obj/Debug/Dao.csproj.AssemblyReference.cache 补丁 | 查看 | 原始文档 | blame | 历史
web/Dao/obj/Debug/Dao.csproj.CoreCompileInputs.cache 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/Dao/obj/Debug/Dao.csproj.FileListAbsolute.txt 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/Dao/obj/Debug/Dao.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/Dao/obj/Debug/Dao.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/Dao/obj/Debug/build.force 补丁 | 查看 | 原始文档 | blame | 历史
web/Lib/Dao.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/Lib/Dao.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/Lib/Model.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/Lib/Model.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/Model/obj/Debug/Model.csproj.AssemblyReference.cache 补丁 | 查看 | 原始文档 | blame | 历史
web/Model/obj/Debug/Model.csproj.CoreCompileInputs.cache 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/Model/obj/Debug/Model.csproj.FileListAbsolute.txt 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/Model/obj/Debug/Model.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/Model/obj/Debug/Model.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/UMCLib/obj/Debug/UMCLib.csproj.AssemblyReference.cache 补丁 | 查看 | 原始文档 | blame | 历史
web/web/App_Data/PublishProfiles/FolderProfile.pubxml 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/App_Code.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/App_Code.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Dao.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Dao.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Model.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Model.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/GwProduct.ashx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/GwProduct.aspx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/bin/App_Web_4i0kypqm.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/bin/App_Web_q523jmfh.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/bin/App_Web_xulj0wec.dll 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/bin/gwproduct.ashx.cdcab7d2.compiled 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/bin/gwproduct.aspx.cdcab7d2.compiled 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/static/images/img/avatar.jpg 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/static/images/img/balance-48.png 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/static/images/img/certified-16.png 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/static/images/img/certified-32.png 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/static/images/img/email-16.png 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/static/images/img/money.png 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/static/images/img/phone-16.png 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/static/images/img/unauthorized-16.png 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/static/images/img/unauthorized-32.png 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/static/images/img/user-16.png 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/static/images/productIcon/VerificationCodeSMS-32.png 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/static/images/productIcon/marketingSMS-32.png 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/Release/Publish/static/images/productIcon/noticeSMS-32.png 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Bin/UMCLib.pdb 补丁 | 查看 | 原始文档 | blame | 历史
web/web/GwRptAccount.aspx 98 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/web/GwRptAccount.aspx.cs 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/web/GwRptAccountUpdate.aspx 123 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/web/GwRptAccountUpdate.aspx.cs 140 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/web/Index.aspx 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/.vs/Web/v16/.suo
Binary files differ
web/App_Code/obj/Debug/App_Code.csproj.AssemblyReference.cache
Binary files differ
web/Dao/GwRptCodeDao.cs
@@ -29,6 +29,41 @@
      return list;
    }
        /// <summary>
        /// 获取账号比例
        /// </summary>
        /// <returns></returns>
        public List<RptAccount> LoadRptAccountList()
        {
            List<RptAccount> list = new List<RptAccount>();
            using (OracleDataReader reader = OracleHelper.ExecuteReader("SELECT * FROM GW_RPT_ACCOUNT ORDER BY CREATETIME ASC", OracleHelper.Connection))
            {
                while (reader != null && ((DbDataReader)reader).Read())
                {
                    OracleReaderWrapper oracleReaderWrapper = new OracleReaderWrapper(reader);
                    list.Add(new RptAccount()
                    {
                        Spid = oracleReaderWrapper.GetString("SPID", ""),
                        Proportion = oracleReaderWrapper.GetString("Proportion", ""),
                        CreateTime = oracleReaderWrapper.GetDateTime("CREATETIME")
                    });
                }
            }
            return list;
        }
        public bool AddAccountCode(RptAccount code)
        {
            return OracleHelper.ExecuteSql("INSERT INTO GW_RPT_ACCOUNT(SPID,PROPORTION,CREATETIME) VALUES(:SPID,:PROPORTION,SYSDATE)", OracleHelper.Connection, new OracleParameter(":SPID", (object)code.Spid), new OracleParameter(":PROPORTION", (object)code.Proportion)) > 0;
        }
        public bool DeleteAccount(string spid)
        {
            return OracleHelper.ExecuteSql("DELETE FROM GW_RPT_ACCOUNT WHERE SPID = :SPID", OracleHelper.Connection, new OracleParameter(":SPID", (object)spid)) > 0;
        }
    public void Dispose()
    {
    }
web/Dao/RptCode.cs
@@ -13,4 +13,13 @@
    public string Remark { get; set; }
  }
    public class RptAccount
    {
        public string Spid { get; set; }
        public string Proportion { get; set; }
        public DateTime CreateTime { get; set; }
    }
}
web/Dao/obj/Debug/Dao.csproj.AssemblyReference.cache
Binary files differ
web/Dao/obj/Debug/Dao.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
d73caa8eb865873d8d000d2031e4a931de8cbd56
43d05d7d9c29e436978c39f631255cf56ad1e8a9
web/Dao/obj/Debug/Dao.csproj.FileListAbsolute.txt
@@ -59,3 +59,10 @@
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewCode\web\Dao\obj\Debug\Dao.csproj.CopyComplete
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewCode\web\Dao\obj\Debug\Dao.dll
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewCode\web\Dao\obj\Debug\Dao.pdb
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewWeb\web\Lib\Dao.dll
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewWeb\web\Lib\Dao.pdb
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewWeb\web\Dao\obj\Debug\Dao.csproj.AssemblyReference.cache
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewWeb\web\Dao\obj\Debug\Dao.csproj.CoreCompileInputs.cache
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewWeb\web\Dao\obj\Debug\Dao.csproj.CopyComplete
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewWeb\web\Dao\obj\Debug\Dao.dll
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewWeb\web\Dao\obj\Debug\Dao.pdb
web/Dao/obj/Debug/Dao.dll
Binary files differ
web/Dao/obj/Debug/Dao.pdb
Binary files differ
web/Dao/obj/Debug/build.force
web/Lib/Dao.dll
Binary files differ
web/Lib/Dao.pdb
Binary files differ
web/Lib/Model.dll
Binary files differ
web/Lib/Model.pdb
Binary files differ
web/Model/obj/Debug/Model.csproj.AssemblyReference.cache
Binary files differ
web/Model/obj/Debug/Model.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
09dd05148f9283f925d778d0f350ab6575172786
6af597a13fdb848e58fc339638f9e6f7dfd89007
web/Model/obj/Debug/Model.csproj.FileListAbsolute.txt
@@ -41,3 +41,10 @@
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewCode\web\Model\obj\Debug\Model.csproj.CopyComplete
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewCode\web\Model\obj\Debug\Model.dll
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewCode\web\Model\obj\Debug\Model.pdb
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewWeb\web\Lib\Model.dll
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewWeb\web\Lib\Model.pdb
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewWeb\web\Model\obj\Debug\Model.csproj.CoreCompileInputs.cache
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewWeb\web\Model\obj\Debug\Model.csproj.CopyComplete
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewWeb\web\Model\obj\Debug\Model.dll
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewWeb\web\Model\obj\Debug\Model.pdb
C:\Users\mac\Desktop\Work-Archives\SMGW\SMGW_NewWeb\web\Model\obj\Debug\Model.csproj.AssemblyReference.cache
web/Model/obj/Debug/Model.dll
Binary files differ
web/Model/obj/Debug/Model.pdb
Binary files differ
web/UMCLib/obj/Debug/UMCLib.csproj.AssemblyReference.cache
Binary files differ
web/web/App_Data/PublishProfiles/FolderProfile.pubxml
New file
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
此文件由 Web 项目的发布/打包过程使用。可以通过编辑此 MSBuild 文件
自定义此过程的行为。为了解与此相关的更多内容,请访问 https://go.microsoft.com/fwlink/?LinkID=208121。
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
</Project>
web/web/Bin/App_Code.dll
Binary files differ
web/web/Bin/App_Code.pdb
Binary files differ
web/web/Bin/Dao.dll
Binary files differ
web/web/Bin/Dao.pdb
Binary files differ
web/web/Bin/Model.dll
Binary files differ
web/web/Bin/Model.pdb
Binary files differ
web/web/Bin/Release/Publish/GwProduct.ashx
New file
@@ -0,0 +1 @@
这是预编译工具生成的标记文件,不应删除!
web/web/Bin/Release/Publish/GwProduct.aspx
New file
@@ -0,0 +1 @@
这是预编译工具生成的标记文件,不应删除!
web/web/Bin/Release/Publish/bin/App_Web_4i0kypqm.dll
Binary files differ
web/web/Bin/Release/Publish/bin/App_Web_q523jmfh.dll
Binary files differ
web/web/Bin/Release/Publish/bin/App_Web_xulj0wec.dll
Binary files differ
web/web/Bin/Release/Publish/bin/gwproduct.ashx.cdcab7d2.compiled
New file
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<preserve resultType="2" virtualPath="/web/GwProduct.ashx" hash="ffffffff89671860" filehash="ffffc1dffecee306" flags="110000" assembly="App_Web_4i0kypqm" type="GwProductHandler">
    <filedeps>
        <filedep name="/web/GwProduct.ashx" />
    </filedeps>
</preserve>
web/web/Bin/Release/Publish/bin/gwproduct.aspx.cdcab7d2.compiled
New file
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<preserve resultType="3" virtualPath="/web/GwProduct.aspx" hash="fffffff0f8c188f4" filehash="c74694aaf2e03028" flags="110000" assembly="App_Web_q523jmfh" type="ASP.gwproduct_aspx">
    <filedeps>
        <filedep name="/web/GwProduct.aspx" />
        <filedep name="/web/GwProduct.aspx.cs" />
        <filedep name="/web/Main.master" />
        <filedep name="/web/Main.master.cs" />
    </filedeps>
</preserve>
web/web/Bin/Release/Publish/static/images/img/avatar.jpg
web/web/Bin/Release/Publish/static/images/img/balance-48.png
web/web/Bin/Release/Publish/static/images/img/certified-16.png
web/web/Bin/Release/Publish/static/images/img/certified-32.png
web/web/Bin/Release/Publish/static/images/img/email-16.png
web/web/Bin/Release/Publish/static/images/img/money.png
web/web/Bin/Release/Publish/static/images/img/phone-16.png
web/web/Bin/Release/Publish/static/images/img/unauthorized-16.png
web/web/Bin/Release/Publish/static/images/img/unauthorized-32.png
web/web/Bin/Release/Publish/static/images/img/user-16.png
web/web/Bin/Release/Publish/static/images/productIcon/VerificationCodeSMS-32.png
web/web/Bin/Release/Publish/static/images/productIcon/marketingSMS-32.png
web/web/Bin/Release/Publish/static/images/productIcon/noticeSMS-32.png
web/web/Bin/UMCLib.pdb
Binary files differ
web/web/GwRptAccount.aspx
New file
@@ -0,0 +1,98 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GwRptAccount.aspx.cs" Inherits="GwRptCode" %>
<!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>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="renderer" content="webkit" /><meta http-equiv="Cache-Control" content="no-siteapp" />
<title>状态处理</title>
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link rel="shortcut icon" href="favicon.ico" /><link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet" />
    <link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet" /><link href="css/plugins/iCheck/custom.css" rel="stylesheet" />
    <link href="css/animate.min.css" rel="stylesheet" /><link href="css/style.min862f.css?v=4.1.0" rel="stylesheet" />
    <link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet" /><link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet" />
    <link href="css/jquery.numberedtextarea.css" rel="stylesheet" />
    <script src="js/loading.js" type="text/javascript"></script>
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/json.js"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/content.min.js?v=1.0.0"></script>
    <script src="js/plugins/iCheck/icheck.min.js"></script>
    <script src="js/plugins/sweetalert/sweetalert.min.js"></script>
    <script src="js/plugins/datapicker/bootstrap-datepicker.js"></script>
    <script type="text/javascript" src="/js/jquery-loading.js"></script>
    <script type="text/javascript" src="/js/jquery-form.js"></script>
    <script type="text/javascript" src="/js/jquery.numberedtextarea.js"></script>
    <script type="text/javascript" src="/js/mytek-pager.js"></script>
    <script src="js/mytek-pagination.js?r=11" type="text/javascript"></script>
    <style>
        body { font-size: 12px; color: #111111; }
        .mask { position: absolute; top: 0px; filter: alpha(opacity=60); background-color: #777; z-index: 1002; left: 0px; opacity: 0.5; -moz-opacity: 0.5; text-align: center; display: none; }
        .mask span { height: 70%; display: inline-block; vertical-align: middle; }
        .mask span img { vertical-align: middle; }
    </style>
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content">
    <div class="ibox-title">
               状态报告处理
        </div>
    <div class="line-white">
    </div>
    <form name="Form_ID" method="post" action="GwRptCode.aspx" id="Form_ID">
    <div class="listCanvas">
        <table  class="table table-striped table-bordered table-hover">
            <tr class="header">
                <th >
                    账号
                </th>
                <th >
                    比例
                </th>
                 <th >
                    创建时间
                </th>
                <th  colspan="2">
                    操作
                </th>
            </tr>
            <%=ViewState["list"] %>
        </table>
    </div>
    </form>
            <!-- .pageBar -->
        <div class="operatorBar">
            <input class="btn btn-primary"value="添  加" onclick="disAdd();" type="button" />&nbsp;
        </div>
        <!-- .operatorBar -->
    <script type="text/javascript" language="javascript">
        function disAdd() {
            location.href = "GwRptAccountUpdate.aspx?action=add";
        }
        //function disEdit(code) {
        //    location.href = "GwRptCodeUpdate.aspx?action=edit&OldCode=" + code;
        //}
        function disDel(spid) {
            if (confirm("你确定要删除吗?")) {
                location.href = "GwRptAccountUpdate.aspx?action=del&Spid=" + spid;
            }
        }
    </script>
     </div>
</body>
</html>
web/web/GwRptAccount.aspx.cs
New file
@@ -0,0 +1,40 @@

using Common;
using Dao;
using Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Web.Profile;
using System.Web.SessionState;
using System.Web.UI.HtmlControls;
public partial class GwRptCode : PageBase<SysUser>, IRequiresSessionState
{
    protected void Page_Load(object sender, EventArgs e)
    {
        this.CheckRight("103", FailedOperation.HistoryGoBack);
        if (this.IsPostBack)
            return;
        this.LoadRptAccountList();
    }
    private void LoadRptAccountList()
    {
        using (GwRptCodeDao gwRptCodeDao = new GwRptCodeDao())
        {
            List<RptAccount> list = gwRptCodeDao.LoadRptAccountList();
            StringBuilder stringBuilder = new StringBuilder();
            int num = 0;
            foreach (RptAccount rptAcc in list)
            {
                stringBuilder.AppendFormat("<tr class=\"row-{0}\"><td>{1}</td><td>{2}</td><td>{3}</td>", (object)(num++ % 2), (object)rptAcc.Spid, (object)rptAcc.Proportion+"%", (object)rptAcc.CreateTime);
                stringBuilder.AppendFormat("<td><a href=\"javascript:disDel('{0}');\" class=\"action-delete btn btn-xs btn-default operator\">删除</a></td></tr>", (object)rptAcc.Spid);
            }
            this.ViewState["list"] = (object)stringBuilder.ToString();
        }
    }
}
web/web/GwRptAccountUpdate.aspx
New file
@@ -0,0 +1,123 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GwRptAccountUpdate.aspx.cs" Inherits="GwRptCodeUpdate" %>
 <!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>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<meta name="renderer" content="webkit" /><meta http-equiv="Cache-Control" content="no-siteapp" />
<title>编辑扣量代码转化代码</title>
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link rel="shortcut icon" href="favicon.ico" /><link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet" />
    <link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet" /><link href="css/plugins/iCheck/custom.css" rel="stylesheet" />
    <link href="css/animate.min.css" rel="stylesheet" /><link href="css/style.min862f.css?v=4.1.0" rel="stylesheet" />
    <link href="css/plugins/sweetalert/sweetalert.css" rel="stylesheet" /><link href="css/plugins/datapicker/datepicker3.css" rel="stylesheet" />
    <link href="css/jquery.numberedtextarea.css" rel="stylesheet" />
    <script src="js/loading.js" type="text/javascript"></script>
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/json.js"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/content.min.js?v=1.0.0"></script>
    <script src="js/plugins/iCheck/icheck.min.js"></script>
    <script src="js/plugins/sweetalert/sweetalert.min.js"></script>
    <script src="js/plugins/datapicker/bootstrap-datepicker.js"></script>
    <script type="text/javascript" src="/js/jquery-loading.js"></script>
    <script type="text/javascript" src="/js/jquery-form.js"></script>
    <script type="text/javascript" src="/js/jquery.numberedtextarea.js"></script>
    <script type="text/javascript" src="/js/mytek-pager.js"></script>
    <script src="js/mytek-pagination.js?r=11" type="text/javascript"></script>
    <style>
        body { font-size: 12px; color: #111111; }
        .mask { position: absolute; top: 0px; filter: alpha(opacity=60); background-color: #777; z-index: 1002; left: 0px; opacity: 0.5; -moz-opacity: 0.5; text-align: center; display: none; }
        .mask span { height: 70%; display: inline-block; vertical-align: middle; }
        .mask span img { vertical-align: middle; }
        #Remark
        {
            width: 328px;
        }
        .style6
        {
            width: 160px;
        }
        </style>
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content">
    <form name="Form_ID" method="post" action="GwRptAccountUpdate.aspx" id="Form_ID">
    <%if (Action == "edit")
      {%>
    <input type="hidden" name="action" value="editDeal" id="action" />
    <%}
      else
      { %>
    <input type="hidden" name="action" value="addDeal" id="action" />
    <%} %>
    <div class="editCanvas">
    <div class="ibox-title">
          <h5>
                       添加- 报告处理
            </h5>
        </div>
      <table  class="table table-striped table-bordered table-hover">
            <tr>
                <td class="style6">
                    账号:
                </td>
                <td >
                    <input type="text" name="Spid" id="Spid" maxlength="50" />
                </td>
            </tr>
        </table>
         <table  class="table table-striped table-bordered table-hover">
             <tr>
                <td class="style6">
                    比例:
                </td>
                <td>
                    <input type="text" name="Proportion" id="Proportion" maxlength="50" value="" />%
                </td>
            </tr>
        </table>
       <div>
       <table>
        <tr>
                <td colspan="3"><br />
                    <input class="btn btn-primary"value="保  存" type="submit" />
                    <input class="btn btn-primary"value="返  回" onclick="history.back();" type="button" /></td>
            </tr>
        </table>
        </div>
    </div>
    </form>
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {
            $("#checkAll").click(function () {
                $("input[name='MenuID']").attr("checked", $(this).attr("checked"));
            });
        });
    </script>
</body>
</html>
web/web/GwRptAccountUpdate.aspx.cs
New file
@@ -0,0 +1,140 @@

using Common;
using Dao;
using Model;
using System;
using System.Web;
using System.Web.Profile;
using System.Web.SessionState;
public partial class GwRptCodeUpdate : PageBase<SysUser>, IRequiresSessionState
{
    public RptCode CurrentCode { get; set; }
    public string Action { get; set; }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.IsPostBack)
            return;
        this.Action = this.Request["action"];
        if (this.Action == "addDeal")
        {
            this.CheckRight("1031", FailedOperation.ErrorMsgOnly);
            this.SaveAddForm();
        }
        else if (this.Action == "editDeal")
        {
            this.CheckRight("1032", FailedOperation.ErrorMsgOnly);
            this.SaveEditForm();
        }
        else if (this.Action == "edit")
        {
            this.CheckRight("1032", FailedOperation.ErrorMsgOnly);
            using (GwRptCodeDao gwRptCodeDao = new GwRptCodeDao())
            {
                string oldCode = Convert.ToString(this.Request["OldCode"]);
                this.CurrentCode = gwRptCodeDao.GetRptCode(oldCode);
            }
        }
        else if (this.Action == "del")
        {
            this.CheckRight("1034", FailedOperation.ErrorMsgOnly);
            using (GwRptCodeDao gwRptCodeDao = new GwRptCodeDao())
            {
                string spid = Convert.ToString(this.Request["Spid"]);
                if (gwRptCodeDao.DeleteAccount(spid))
                {
                    this.Response.Write("<script type='text/javascript'>alert('删除成功!');location.href='GwRptAccount.aspx';</script>");
                    this.Response.End();
                }
                else
                {
                    this.Response.Write("<script type='text/javascript'>alert('删除失败!');location.href='GwRptAccount.aspx';</script>");
                    this.Response.End();
                }
            }
        }
        else if (this.Action == "delSelect")
        {
            this.CheckRight("1034", FailedOperation.ErrorMsgOnly);
            using (GwRptCodeDao gwRptCodeDao = new GwRptCodeDao())
            {
                string[] strArray = Convert.ToString(this.Request["OldCode"]).Split(",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries);
                bool flag = false;
                foreach (string oldCode in strArray)
                {
                    if (!gwRptCodeDao.DeleteCode(oldCode))
                        flag = true;
                }
                if (flag)
                {
                    this.Response.Write("<script type='text/javascript'>alert('删除成功!');location.href='GwRptCode.aspx';</script>");
                    this.Response.End();
                }
                else
                {
                    this.Response.Write("<script type='text/javascript'>alert('删除失败!');location.href='GwRptCode.aspx';</script>");
                    this.Response.End();
                }
            }
        }
        else
        {
            this.CheckRight("1031", FailedOperation.ErrorMsgOnly);
            this.CurrentCode = new RptCode();
        }
    }
    /// <summary>
    /// 添加
    /// </summary>
    protected void SaveAddForm()
    {
        RptAccount rc = new RptAccount();
        rc.Spid = this.Request["Spid"];
        rc.Proportion = this.Request["Proportion"];
        using (GwRptCodeDao gwRptCodeDao = new GwRptCodeDao())
        {
            if (string.IsNullOrEmpty(rc.Proportion) || (string.IsNullOrEmpty(rc.Proportion) ))
            {
                this.Response.Write("<script type='text/javascript'>alert('不能为空!');history.go(-1);</script>");
                this.Response.End();
            }
            if (gwRptCodeDao.AddAccountCode(rc))
            {
                this.Response.Write("<script type='text/javascript'>alert('添加成功!');location.href='GwRptAccount.aspx';</script>");
                this.Response.End();
            }
            else
            {
                this.Response.Write("<script type='text/javascript'>alert('添加失败!');history.go(-1);</script>");
                this.Response.End();
            }
        }
    }
    protected void SaveEditForm()
    {
        RptCode code = new RptCode();
        code.OldCode = this.Request["OldCode"];
        code.NewCode = this.Request["NewCode"];
        code.Remark = this.Request["Remark"];
        using (GwRptCodeDao gwRptCodeDao = new GwRptCodeDao())
        {
            if (gwRptCodeDao.UpdateCode(code))
            {
                this.Response.Write("<script type='text/javascript'>alert('修改成功!');location.href='GwRptCode.aspx';</script>;");
                this.Response.End();
            }
            else
            {
                this.Response.Write("<script type='text/javascript'>alert('修改失败!');history.go(-1);</script>");
                this.Response.End();
            }
        }
    }
}
web/web/Index.aspx
@@ -188,7 +188,8 @@
                            <li><a href="GwDiverter.aspx" class="J_menuItem">导流策略配置</a> </li>
                            <li><a href="GwBlackPool.aspx" class="J_menuItem">黑名单管理</a> </li>
                            <li><a href="GwTransfer.aspx" class="J_menuItem">携号转网配置</a> </li>
                            <!--<li><a href="GwRptCode.aspx" class="J_menuItem">扣量状态设置</a> </li>-->
                            <li><a href="GwRptCode.aspx" class="J_menuItem">状态设置</a> </li>
                            <li><a href="GwRptAccount.aspx" class="J_menuItem">新状态设置</a> </li>
                            <li><a href="GwMobileArea.aspx" class="J_menuItem">区域号段管理</a> </li>
                            <li><a href="SysUser.aspx" class="J_menuItem">系统账号管理</a> </li>
                            <li><a href="tablespace.aspx" class="J_menuItem">数据库表空间</a> </li>