• 发货源资源网

    [质量:5|效率:5|态度:5 ]

  • 当前位置:首页 > 源码集市 > 学教实践 >
    收藏商品 分享到:
    举报
    开源框架完美组合小型企业网站Demo源码
    • 售  价:
    • 免费
    • 语  言:
    • C#
    • 数 据 库:
    • SQL2008
    • 品  牌:
    • WebForm
    • 最后更新:
    • 2012-12-10 12:12:12
    • 大  小:
    • 4.47MB MB
    • 演示网站:

      自动发货商品,随时可以购买,零等待。

      购买本商品,交易成功后可获赠积分。

      担保交易,有问题不解决24小时内可申请退款,安全保证。

    商品详情 交易评价 交易规则

    发货源资源网

    • 16Aspx源码必读.txt[63.69KB]
    • from.gif[2.69KB]
    • 最新Asp.Net源码下载.url[0.17KB]

    开源框架完美组合之Spring.NET+NHibernate+ASP.NET MVC+jQuery+easyUI中英文双语言小型企业网站Demo源码介绍:

    热衷于开源框架探索的我发现ASP.NET MVC与jQuery easyUI的组合很给力。由于原先一直受Ext JS框架的licence所苦恼,于是痛下决心寻找一个完全免费的js框架——easyUI。它有完整的demo和强大AIP手册,使我在开发过程中得心应手。以下是这篇博文Demo程序的演示效果:

      解决方案如图1所示

    图1

     

      Domain:领域模型

      Dao:持久层

      Service:服务层

      WebSite:表示层

      Common:通用类

     

      首页如图2所示,可以选择中文和English。

    图2

     

      英文首页如图3所示

    图3

     

      公司简介效果如图4所示

    图4

     

      后台登陆页面如图5所示

    图5

     

     

      后台首页如图6所示

    图6

     

      后台首页的代码html为:

     

    function showChangePasswordWin() {
                $(
    ''#winPassword'').window(''open'');
            }

            
    function changePassword() {
                
    var oldPassword = $("#iptOldPassword").val();
                
    if (oldPassword == "") {
                    $.messager.alert(
    ''提示''''请输入旧密码!'');
                    
    return;
                }

                
    var password = $("#iptPassword").val();
                
    if (password == "") {
                    $.messager.alert(
    ''提示''''请输入新密码!'');
                    
    return;
                }

                
    var newPassword = $("#iptNewPassword").val();
                
    if (newPassword == "") {
                    $.messager.alert(
    ''提示''''请确认密码!'');
                    
    return;
                }

                
    if (newPassword != password) {
                    $.messager.alert(
    ''提示''''两次密码不一致,请重新输入!'');
                    
    return;
                }
                
    var parm = { password: password, oldPassword: oldPassword };
                $.ajax({
                    type: 
    "POST",
                    url: 
    "/Home/ChangedPassword/",
                    data: parm,
                    success: 
    function (msg) {
                        
    if (msg.IsSuccess) {
                            $.messager.alert(
    ''提示''''修改成功!''"info"function () {
                                $(
    ''#winPassword'').window(''close'');
                                $(
    "#iptOldPassword").val("");
                                $(
    "#iptPassword").val("");
                                $(
    "#iptNewPassword").val("");
                            });
                        } 
    else {
                            $.messager.alert(
    ''提示''''密码错误,请重新输入!''"info");
                        }
                    },
                    error: 
    function () {
                        $.messager.alert(
    ''错误''''修改失败!''"error");
                    }
                });
            }

            
    function showTab(url, title) {
                
    var tab = $(''#tab'');
                
    if (tab.tabs(''exists'', title)) {
                    tab.tabs(
    ''select'', title);
                }
                
    else {
                    tab.tabs(
    ''add'', {
                        title: title,
                        content: 
    "<iframe scrolling=''yes'' frameborder=''0'' src=''/"
                            
    + url + "/Index/'' style=''width:100%;height:100%;''/>",
                        closable: 
    true
                    });

                }
            }

            
    function showArticle(id, title) {
                
    var tab = $(''#tab'');
                
    if (tab.tabs(''exists'', title)) {
                    tab.tabs(
    ''select'', title);
                }
                
    else {
                    tab.tabs(
    ''add'', {
                        title: title,
                        content: 
    "<iframe scrolling=''yes'' frameborder=''0'' src=''/Article/Admin/"
                           
    + id + "/'' style=''width:100%;height:100%;''/>",
                        closable: 
    true
                    });
                }
            }
     
     
    <body class="easyui-layout">
        
    <div region="north" border="false" style="height: 100px; background-color: #E0ECFF;">
            
    <div style="height: 80px; clear: both;">
                
    <div style="width: 150px;">
                
    </div>
                
    <div style="text-align: center; width: 150px; line-height: 80px;">
                   
    <img alt="logo" src="/Images/logo_small.jpg" onclick="window.open(''/Index.html'')" />
                
    </div>
            
    </div>
            
    <div style="height: 20px;text-align:right">
            
    <div>
            登陆用户:
    <href="#" onclick=""><%= ((dynamic)ViewData["User"]).Name %></a>&nbsp;&nbsp;
                    
    <href="#" onclick="showChangePasswordWin();">修改密码</a>&nbsp;&nbsp; <href="/Home/LogOut/">
                        退出系统
    </a>
                        
    &nbsp;&nbsp;<href="http://member.webweb.com/" target="_blank">空间管理</a>&nbsp;&nbsp;
                        
    <href="http://new.cnzz.com/" target="_blank">站长在线</a>&nbsp;&nbsp;&nbsp;&nbsp;
                        
    </div>
            
    </div>
        
    </div>
        
    <div region="west" split="true" title="<font color=''#993333''>系统菜单</font>" style="width: 150px;">
            
    <div class="easyui-accordion" fit="true" border="false" style="background-color: #E0ECFF;
                background-repeat: repeat-x;"
    >
                
    <div title="资料管理" style="overflow: auto;">
                    
    <table border="0" cellspacing="1" cellpadding="1" align="center">
                        
    <tr>
                            
    <td height="23">
                                
    <href="#" onclick="showTab(''Forum'',$(this).html());">版块管理</a>
                            
    </td>
                        
    </tr>
                        
    <tr>
                            
    <td height="23">
                                
    <href="#" onclick="showTab(''Category'',$(this).html());">分类管理</a>
                            
    </td>
                        
    </tr>
                    
    </table>
                
    </div>
                
    <% foreach (var item in (this.ViewData["CategoryList"as IList<Domain.Category>).GroupBy(g => g.Forum))
                   { 
    %>
                
    <div title="<%= item.Key.Name %>" style="overflow: auto;">
                    
    <table border="0" cellspacing="1" cellpadding="1" align="center">
                        
    <%foreach (var value in item)
                          {  
    %>
                        
    <tr>
                            
    <td height="23">
                                
    <href="#" onclick="showArticle(''<%= value.ID %>'',$(this).html());"><%= value.Name %></a>
                            
    </td>
                        
    </tr>
                        
    <% } %>
                    
    </table>
                
    </div>
                
    <% } %>
                
    <div title="系统管理" style="overflow: auto;">
                    
    <table border="0" cellspacing="1" cellpadding="1" align="center">
                        
    <tr>
                            
    <td height="23">
                                
    <href="#" onclick="showTab(''UserInfo'',$(this).html());">管理员用户管理</a>
                            
    </td>
                        
    </tr>
                    
    </table>
                
    </div>
            
    </div>
        
    </div>
        
    <div region="south" border="false" style="height: 20px; background: #A9FACD; text-align: center;
            line-height: 20px; background-image: url(/Images/bg_bottom.gif);"
    >
            Copy Right ®2010-2011
    </div>
        
    <div region="center">
            
    <div id="tab" class="easyui-tabs" fit="true" border="false">
                
    <div title="首页" style="padding: 20px; overflow: hidden;">
                    
    <table width="98%" border="0" cellpadding="3" align="center" cellspacing="0" bgcolor="#F1EAE0">
                        
    <tr>
                            
    <td width="100%" bgcolor="#cccccc" height="5">
                            
    </td>
                        
    </tr>
                        
    <tr>
                            
    <td width="100%" class="change_td" style="cursor: hand">
                                服务器参数
                            
    </td>
                        
    </tr>
                    
    </table>
                    
    <table cellspacing="1" cellpadding="3" width="98%" align="center" bgcolor="#ffffff"
                        border
    ="0">
                        
    <tbody>
                            
    <tr>
                                
    <td class="th1" align="center" colspan="2" style="height: 25px">
                                    服务器信息统计
                                
    </td>
                            
    </tr>
                            
    <tr bgcolor="#f9fbf0">
                                
    <td width="50%" style="height: 24px">
                                    
    &nbsp;<strong>服务器名</strong><%=System.Environment.MachineName%>
                                
    </td>
                                
    <td width="50%" style="height: 24px">
                                    
    &nbsp;<b>服务器端口:</b><%= HttpContext.Current.Request.ServerVariables["Server_Port"].ToString() %>
                                
    </td>
                            
    </tr>
                            
    <tr bgcolor="#f9fbf0">
                                
    <td width="50%" style="height: 23px">
                                    
    &nbsp;<b>脚本解释引擎:</b><%=System.Environment.Version%>
                                
    </td>
                                
    <td width="50%" style="height: 23px">
                                    
    <b>&nbsp;站点物理路径:</b><%=HttpContext.Current.Request.PhysicalApplicationPath.ToString() %>
                                
    </td>
                            
    </tr>
                            
    <tr bgcolor="#f9fbf0">
                                
    <td width="50%" style="height: 23px">
                                    
    &nbsp;<b>服务器CPU个数:</b><%=System.Environment.ProcessorCount %>
                                
    </td>
                                
    <td width="50%" style="height: 23px">
                                    
    &nbsp;<b>服务器IIS版本:</b><%=Request.ServerVariables["SERVER_SOFTWARE"]%>
                                
    </td>
                            
    </tr>
                            
    <tr bgcolor="#f9fbf0">
                                
    <td width="50%">
                                    
    &nbsp;<b>开机运行时长</b><%=(System.Environment.TickCount/3600000).ToString("N2")%>
                                    小时
                                
    </td>
                                
    <td width="50%">
                                    
    <b>&nbsp;服务器时间:</b><%=DateTime.Now.ToString() %>
                                
    </td>
                            
    </tr>
                            
    <tr bgcolor="#f9fbf0">
                                
    <td colspan="2">
                                    
    &nbsp;<b>服务器操作系统:</b><span>
                                        
    <%=System.Environment.OSVersion.ToString()%></span>
                                
    </td>
                            
    </tr>
                            
    <tr bgcolor="#f9fbf0">
                                
    <td colspan="2">
                                    
    &nbsp;
                                
    </td>
                            
    </tr>
                        
    </tbody>
                    
    </table>
                
    </div>
            
    </div>
        
    </div>
        
    <div id="winPassword" class="easyui-window" closed="true" modal="true" title="修改密码"
            style
    ="width: 280px; height: 160px;" collapsible="false" minimizable="false"
            maximizable
    ="false">
            
    <div class="easyui-layout" fit="true">
                
    <div region="center" border="false" style="padding: 10px; background: #fff; border: 1px solid #ccc;">
                    
    <table>
                        
    <tr>
                            
    <td>
                                旧密码:
                            
    </td>
                            
    <td>
                                
    <input type="password" id="iptOldPassword" />
                            
    </td>
                        
    </tr>
                        
    <tr>
                            
    <td>
                                新密码:
                            
    </td>
                            
    <td>
                                
    <input type="password" id="iptPassword" />
                            
    </td>
                        
    </tr>
                        
    <tr>
                            
    <td>
                                确认密码:
                            
    </td>
                            
    <td>
                                
    <input type="password" id="iptNewPassword" />
                            
    </td>
                        
    </tr>
                    
    </table>
                
    </div>
                
    <div region="south" border="false" style="text-align: right; height: 30px; line-height: 30px;">
                    
    <class="easyui-linkbutton" iconcls="icon-ok" href="javascript:void(0)" onclick="changePassword()">
                        确定
    </a> <class="easyui-linkbutton" iconcls="icon-cancel" href="javascript:void(0)"
                            onclick
    ="$(''#winPassword'').window(''close'');">取消</a>
                
    </div>
            
    </div>
        
    </div>
    </body>

     

      可以进行版块和分类的管理,如图7和图8所示。

    图7

     

     

    图8

     

       选择列表模式的分类可以添加列表内容,如图9所示。

     

    图9

     

      easyUI的datagrid代码如下:

      

     $(''#grid'').datagrid({
                    title: 
    ''<%= ((Domain.Category)this.ViewData["entity"]).Name %>信息'',
                    iconCls: 
    ''icon-save'',
                    nowrap: 
    false,
                    striped: 
    true,
                    url: 
    ''/Article/LoadAllByPage/'',
                    sortName: 
    ''CreateDate'',
                    sortOrder: 
    ''desc'',
                    remoteSort: 
    true,
                    fitColumns: 
    true,
                    fit: 
    true,
                    idField: 
    ''ID'',
                    queryParams: { categoryId: 
    ''<%= ((Domain.Category)this.ViewData["entity"]).ID %>'' },
                    frozenColumns: [[
                        { field: 
    ''ID'', checkbox: true }
                    ]],

                    columns: [[
                        { field: 
    ''CreateDate'', title: ''建立日期'', width: 100,
                            formatter: 
    function (value, rec) {
                                
    return eval("new " + value.substr(1, value.length - 2)).toLocaleDateString();
                            }
                        },
                        { field: 
    ''Name'', title: ''中文标题'', width: 80, align: ''right'' },
                        { field: 
    ''NameEn'', title: ''英文标题'', width: 80, align: ''right'' },
                        { field: 
    ''IsFirst'', title: ''是否置顶'', width: 40, align: ''right'',
                            formatter: 
    function (value, rec) {
                                
    return value ? '''' : '''';
                            }
                        },
                        { field: 
    ''IsEnabled'', title: ''状态'', width: 40, align: ''right'',
                            formatter: 
    function (value, rec) {
                                
    return value ? ''显示'' : ''隐藏'';
                            }
                        },
                        { field: 
    ''From'', title: ''来源'', width: 80, align: ''right'' },
                        { field: 
    ''ViewCount'', title: ''浏览次数'', width: 40, align: ''left'' },
                        { field: 
    ''UpdateDate'', title: ''最后更新日期'', width: 100,
                            formatter: 
    function (value, rec) {
                                
    return eval("new " + value.substr(1, value.length - 2)).toLocaleDateString();
                            }
                        }
                    ]],
                    pagination: 
    true,
                    rownumbers: 
    true,
                    toolbar: [
    ''-'', {
                        id: 
    ''btnSave'',
                        text: 
    ''添加'',
                        iconCls: 
    ''icon-add'',
                        handler: 
    function () {
                            
    this.href = ''/Article/View/?categoryId=<%= ((Domain.Category)this.ViewData["entity"]).ID %>'';
                        }
                    }, 
    ''-'', {
                        id: 
    ''btnUpdate'',
                        text: 
    ''修改'',
                        iconCls: 
    ''icon-save'',
                        handler: 
    function () {

                            
    var row = $(''#grid'').datagrid(''getSelected'');
                            
    if (row) {
                                
    this.href = ''/Article/View/'' + row.ID + ''/?categoryId=<%= ((Domain.Category)this.ViewData["entity"]).ID %>'';
                            }
                            
    else {
                                $.messager.alert(
    ''提示''''请选择要修改的数据'');
                                
    return;
                            }

                        }
                    }, 
    ''-'', {
                        id: 
    ''btnDelete'',
                        text: 
    ''删除'',
                        disabled: 
    false,
                        iconCls: 
    ''icon-cut'',
                        handler: 
    function () {

                            
    var rows = $(''#grid'').datagrid(''getSelections'');
                            
    if (!rows || rows.length == 0) {
                                $.messager.alert(
    ''提示''''请选择要删除的数据'');
                                
    return;
                            }
                            
    var parm;
                            $.each(rows, 
    function (i, n) {
                                
    if (i == 0) {
                                    parm 
    = "idList=" + n.ID;
                                }
                                
    else {
                                    parm 
    += "&idList=" + n.ID;
                                }
                            });
                            $.messager.confirm(
    ''提示''''是否删除这些数据?''function (r) {
                                
    if (!r) {
                                    
    return;
                                }

                                $.ajax({
                                    type: 
    "POST",
                                    url: 
    "/Article/Delete/",
                                    data: parm,
                                    success: 
    function (msg) {
                                        
    if (msg.IsSuccess) {
                                            $.messager.alert(
    ''提示''''删除成功!''"info"function () {
                                                $(
    ''#grid'').datagrid("reload");
                                            });
                                        }
                                    },
                                    error: 
    function () {
                                        $.messager.alert(
    ''错误''''删除失败!''"error");
                                    }
                                });
                            });
                        }
                    }, 
    ''-'']

     

      Controller的载入JSON数据的代码为:

      

            [Authorize]
            
    public ActionResult LoadAllByPage(Guid categoryId, int page, int rows, string order, string sort)
            {
                
    long total = 0;
                var list 
    = this.ArticleManager.LoadAllByPage(out total, categoryId, page, rows, order, sort).Select(entity => new
                {
                    entity.Name,
                    entity.NameEn,
                    entity.ID,
                    entity.CreateDate,
                    entity.UpdateDate,
                    entity.IsEnabled,
                    entity.IsFirst,
                    entity.ViewCount,
                    entity.From,
                    CategoryId 
    = entity.Category.ID,
                    CategoryName 
    = entity.Category.Name
                });

                var result 
    = new { total = total, rows = list.ToList() };

                
    return Json(result);
            }

      开发环境为VS2010,数据库是根据NHibernate的方言任意配置,我使用的是SQLite数据库。

     

        <!--SQLite-->
        
    <add key="provider" value="System.Data.SQLite" />
        
    <add key="connectionString" value="Data Source=|DataDirectory|DataBase.db;Version=3;FailIfMissing=False;" />
        
    <add key="dialect" value="NHibernate.Dialect.SQLiteDialect" />
        
    <add key="driver_class" value="NHibernate.Driver.SQLite20Driver" />


        
    <!--自动建表-->
        
    <add key="hbm2ddl.auto" value="update" />
    交易评价
      (0)
      <

      1/5

      >
    交易规则
    • 交易流程
    • 发货方式
    • 1、自动:在上方保障服务中标有自动发货的商品,拍下后,将会自动收到来自卖家的商品获取(下载)链接;

      2、手动:未标有自动发货的的商品,拍下后,卖家会收到邮件、短信提醒,也可通过QQ或订单中的电话联系对方。

    • 退款说明
    • 1、描述:源码描述(含标题)与实际源码不一致的(例:描述PHP实际为ASP、描述的功能实际缺少、版本不符等);

      2、演示:有演示站时,与实际源码小于95%一致的(但描述中有"不保证完全一样、有变化的可能性"类似显著声明的除外);

      3、发货:手动发货源码,在卖家未发货前,已申请退款的;

      4、服务:卖家不提供安装服务或需额外收费的(但描述中有显著声明的除外);

      5、其他:如质量方面的硬性常规问题等。

      注:经核实符合上述任一,均支持退款,但卖家予以积极解决问题则除外。交易中的商品,卖家无法对描述进行修改!

    • 注意事项
    • 1、在未拍下前,双方在QQ上所商定的内容,亦可成为纠纷评判依据(商定与描述冲突时,商定为准);

      2、在商品同时有网站演示与图片演示,且站演与图演不一致时,默认按图演作为纠纷评判依据(特别声明或有商定除外);

      3、在没有"无任何正当退款依据"的前提下,写有"一旦售出,概不支持退款"等类似的声明,视为无效声明;

      4、虽然交易产生纠纷的几率很小,但请尽量保留如聊天记录这样的重要信息,以防产生纠纷时便于16Aspx源码介入快速处理。

    • 16Aspx源码声明
    • 1、16Aspx源码作为第三方中介平台,依据交易合同(商品描述、交易前商定的内容)来保障交易的安全及买卖双方的权益;

      2、非平台线上交易的项目,出现任何后果均与16Aspx源码无关;无论卖家以何理由要求线下交易的,请联系管理举报。

  • 宝贝数量:7422
  • 创店时间:2017/5/26 16:11:00
  • 联系客服

    330199865

    店内搜索
  • 商品:
  • 价格: -
  • 本店销量榜

    1微信公众平台Bee.WeiXin开发源码

    2BS拖拽工作流设计及研发源码

    3通用权限管理系统(含文档、数据库)源码

    4Easyui之权限系统源码

    5ASP.NETMVC+EF框架+EasyUI实现权限管理源码

    6通用OA系统增强源码

    7Entity Framework4.1+MVC3+Jquery EasyUI的DEMO源码

    8基于FineUI的通用权限管理框架源码

    9WPF仿迅雷7界面UI效果

    10WEB在线流程图设计器GOOFLOW源码

    广而告之