当前位置: 首页 > news >正文

基于mvc的jsp网站开发华龙网重庆网络问政平台

基于mvc的jsp网站开发,华龙网重庆网络问政平台,wamp做网站,吴江住宅城乡建设局网站这个示例程序估计很多人都用过。没有用过的话可以从 http://www.microsoft.com/downloads/details.aspx?FamilyID966C3279-2EE9-4E14-A4F7-D4807239A396displaylangen 下载一个简单的股票买卖程序#xff0c;数据库访问和部分业务逻辑提供了 COM 企业服务和 DotNet Remo…这个示例程序估计很多人都用过。没有用过的话可以从 http://www.microsoft.com/downloads/details.aspx?FamilyID966C3279-2EE9-4E14-A4F7-D4807239A396displaylangen 下载一个简单的股票买卖程序数据库访问和部分业务逻辑提供了 COM 企业服务和 DotNet Remoting 两种方式。具体的架构参考一下图两种分布式应用有一下特征呵呵。 msdn 说得ASP.NET 应用程序通过 IIS承载远程组件以利用进程回收等功能和应用程序配置。 通过 HTTP 信道使用二进制格式化程序进行远程调用。使用 HTTP 信道将能够使用 IIS 承载组件而二进制格式化程序的性能优于 SOAP 格式化程序。 GAM 和 BLL 对象都是无状态的这使得可以在 Application Center 群集中承载它们。 虽然 GAM 和 BLL 对象是无状态的但 Fitch and Mather 7.0 使用实例方法与静态方法相对以便能够远程处理方法调用。静态方法总是在本地执行即与调用方在同一个 AppDomain 类中执行。有关更多信息请参见。 当然对于第一点你也可以host  Remoting 对象在一个 console 应用程序或者 windows 服务中。从而可以使用 TCP/Binary. 缺点TCP 需要自己去考虑安全监听。我觉得有几点写的不错1。清晰的应用程序架构由于问题比较简单。很容易整理清楚2。 很好的coding 风格。最近在整理公司的代码规范发现 FMStocks7 的代码注释确实不错。比如一下是 买一个新股票的 DAO 代码         /**////    summary        ///    Purchase shares of a specific stock.                /// param nameaccountIDThe accountID number/param        ///    param nametxIDThe transaction ID/param        ///    param nametickerThe ticker symbol to be purchased/param        ///    param namesharesAmount of shares/param        ///    param namesharePriceThe share price/param        ///    param namecommissionThe buy commission/param        ///    returnsBrokerStatus enum value/returns        /// /summary        public BrokerStatus Buy( int accountID, int txID, string ticker, int shares, decimal sharePrice, decimal commission )        {            Debug.Assert( sproc  null );            try    {                BrokerStatus status;                            // Initialize order info                Order order;                order.AccountID   accountID;                order.TxID        txID;                order.Ticker      ticker;                order.Shares      shares;                order.SharePrice  sharePrice;                order.Commission  commission;                // Debit account balance                decimal debitAmt  ( decimal )order.Shares * order.SharePrice  order.Commission;                GAM gam  new GAM();                if ( gam.DebitAccountBalance( order.AccountID, debitAmt  )  0 )                {                    status  BrokerStatus.InsufficientFunds;                    ContextUtil.SetAbort();                }                else                {                      // Create parameter array                    SqlParameter[] parameters                     {                        new SqlParameter( TxID,       SqlDbType.Int,   4 ), // 0                        new SqlParameter( AccountID,  SqlDbType.Int,   4 ), // 1                        new SqlParameter( Ticker,     SqlDbType.NChar, 6 ), // 2                        new SqlParameter( Shares,     SqlDbType.Int,   4 ), // 3                        new SqlParameter( SharePrice, SqlDbType.Money, 8 ), // 4                        new SqlParameter( Commission, SqlDbType.Money, 8 ), // 5                    };                    // Set parameter values and directions                    parameters[ 0 ].Value  order.TxID;                    parameters[ 1 ].Value  order.AccountID;                    parameters[ 2 ].Value  order.Ticker;                    parameters[ 3 ].Value  order.Shares;                    parameters[ 4 ].Value  order.SharePrice;                    parameters[ 5 ].Value  order.Commission;                    // Run the stored procedure                    sproc  new StoredProcedure( Broker_Buy, parameters );                    int error  sproc.Run();                    Debug.Assert( error  0 );                    status  BrokerStatus.Success;                    ContextUtil.SetComplete();                }                return status;            }            catch            {                ContextUtil.SetAbort();                throw;            }        } 有几点很符合代码规范1。合理的使用断言2。// 注释风格3。异常处理4。。。。
http://www.zqtcl.cn/news/968833/

相关文章:

  • 新兴网站建设招商网站建设多少钱
  • 商城网站页面模板网页设计的首页如何设计官网
  • 我的世界做外国壁纸网站嘉兴推广公司
  • 网站制作在哪里找怎样上传wordpress模板
  • 网站设计时尚博业建站网
  • 网站建设前期如何规划免费的源代码分享有哪些网站
  • 长春网络培训seo
  • 江苏网站开发建设电话公司网站需求说明书
  • 河北建设厅网站首页个人或主题网站建设实验体会
  • 网站后台文章栏目做外汇消息面的网站
  • 白酒营销网站用asp.net做简易网站
  • 做seo需要建网站吗上传PDF到wordpress网站
  • 湘潭网站网站建设龙岩网站建设馨烨
  • 本地网站建设教程xampperp软件是什么意思啊
  • 网站没有流量房地产广告设计网站
  • 北京学网站开发企业官网设计规范
  • wordpress google插件广州seo
  • 网站制作平台专门做推广的软文
  • 怎么用目录建wordpress站点怎样开发wordpress主题
  • 免费网站排名优化在线南通科技网站建设
  • 辽宁网站建设招标怎么建设像天猫的网站
  • 新闻类网站排版网站建设东莞正规网站建设
  • 网站开发亿玛酷出名5重庆公司买深圳社保
  • 网站建设开发报价单苏州网上注册公司流程
  • 网站开发包含河南洛阳网络公司
  • 个人网站建设方案书使用几号纸网站出租目录做菠菜 有什么坏处
  • 烟台做网站案例产品设计欣赏
  • 长安网站建设多少钱室内设计学校培训的
  • 驻马店北京网站建设怎么用网站做转换服务器
  • 成都网站建设cdxwcx百度搜索关键词排名优化推广