摘要: 设计理念 高内聚,低耦合 模块:模块是按业务系统划分,可以颗粒化,方法,类都可以称之为模块。 内聚:泛指模块内的关系 耦合:泛指模块之间的关系 高内聚:模块内尽量以围绕着完成一个具体功能为目的,不涵盖与之没有较大关系的功能方法 低耦合:模块之间的关系不紧密,模块A改变的同时不会影响到关联模块B,反之 阅读全文
posted @ 2018-08-22 13:37 小09牛 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 全排序 1 static void AllSort(int[] arr, string rtnStr) 2 { 3 if (arr.Length == 0) 4 { 5 Console.WriteLine(rtnStr); 6 return; 7 } 8 9 int i = -1;10 string temp = rtnStr;11 12 while ((++i) < ... 阅读全文
posted @ 2013-05-30 10:43 小09牛 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 冒泡 1 static void BubbleSort() 2 { 3 int[] array = new int[] { 7, 3, 5, 8, 2 }; 4 5 for (int i = 0; i < array.Length; i++) 6 { 7 for (int j = 0; j < array.Length - i - 1; j++) 8 { 9 if (array[j] > array[... 阅读全文
posted @ 2013-05-29 16:02 小09牛 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 数据库的外联和内联及自联inner join & outer join自联:自联数据的来源不是多个表,而是一个表中两个字段的关系自联中一个表被虚拟成2个表(两张表之间存在关系-》找出一张表的某行或多行)select worker.name||'work for'||manager.namefrom employee.worker,employee.managerwhere worker.m... 阅读全文
posted @ 2010-08-15 15:37 小09牛 阅读(623) 评论(0) 推荐(0) 编辑
摘要: .net中两种常用数据配置(待扩展)1.与access的连接provider=microsoft.jet.oledb4.0,datasource=c:\\northwind.mdb;datasource的标准形式为:mydrive:mypath\myfile.mdb;2.与sqlserver的连接设置sa账户及密码connectionString="Data Source=abc;Initial ... 阅读全文
posted @ 2010-08-15 15:35 小09牛 阅读(151) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace quanpaixu{    class Program {         static void Mai... 阅读全文
posted @ 2010-08-15 15:34 小09牛 阅读(480) 评论(0) 推荐(0) 编辑
摘要: //第一个是循环值,第二个是输出值,第三个是你要检索的字符串private void RandomSort1(int j,string s1,string test) {                  for (int i1 = j; i1 < test.Length; i1++... 阅读全文
posted @ 2010-08-15 15:33 小09牛 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 一、下载jdk并配置环境class_path是java_home\lib类路径path是java_home\bin执行路径二、安装apache 和tomcat注意二者之间的整合下载mod_jk将mod_jk-1.2.28-httpd-2.2.3.so拷贝至%apache_home%\modules(... 阅读全文
posted @ 2010-02-01 15:27 小09牛 阅读(448) 评论(0) 推荐(0) 编辑
摘要: EditGrid数据的更改这里以删除为例(使用到了ajax技术)var Admin= new Ext.grid.EditorGridPanel在form中添加工具栏Ext.form.Formpanel({tbar:[{text:'删除',handler:function(){var sel=admin.getSelectionModel().getSelections();//获取选择的行var ... 阅读全文
posted @ 2010-01-26 14:55 小09牛 阅读(353) 评论(0) 推荐(0) 编辑
摘要: s扩充之后的脚本有三个基本js库(从官网下api)ext-base.js,ext-all.js及一个css文件ext-all.css常用到得有grid,form,store;学习extjs之前首先要了解它所采用的数据格式——json它主要格式是 name:namevalue,前者name表示属性名,后面namevalue表示属性值一般用大括号为一个包含点{name:chen... 阅读全文
posted @ 2010-01-08 14:15 小09牛 阅读(324) 评论(0) 推荐(0) 编辑