自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 资源 (6)
  • 收藏
  • 关注

原创 ExtJs教程----带复选框的菜单

先来张效果图:代码如下:需要注意的是:需要先定义TreeStore,再定义MenuTestTree,最后定义MenuTestWithCheckBox//定义获取菜单数据的storevar MenuStore = Ext.create('Ext.data.TreeStore', { proxy: { type: 'ajax', ur

2016-09-26 17:01:04 1673

原创 C# 将List转化为Json

//其中StudentInfo是实体类,可以换成自己的实体类,public static string ListToJson(List list, string rootProperty) { StringBuilder Json = new StringBuilder(); if (list.Count > 0)

2016-09-26 15:04:25 4611

原创 ExtJS教程----自定义下载组件

自定义下载组件Ext.define('ExtJS5Example.view.FileDownloader', { extend: 'Ext.Component', alias: 'widget.FileDownloader', autoEl: { tag: 'iframe', cls: 'x-hidden', src: E

2016-09-26 14:23:05 458

原创 ExJs教程----列表中选择多条记录和单条记录,选择性禁止用户选择复选框

1.选择单条记录Ext.define('ExtJS5Example.view.selectStudentInfo', { extend: 'Ext.window.Window', alias: 'widget.selectStudentInfo', requires: ['Ext.form.Panel'], title: '选择学生信息', width:

2016-09-26 11:54:32 907

原创 ExtJS教程----自定义金钱格式的文本框

添加如下内容Ext.define('Ext.ux.NumberFieldFormat', { extend: 'Ext.form.NumberField', //'Ext.form.NumberField' alias: 'widget.numberFieldFormat', hideTrigger: true, baseChars: '0123456789,'

2016-09-23 17:43:58 954

原创 ExtJs教程----控件介绍:文本框,下拉框,时间框,列表,弹窗

1.普通文本框textfield xtype: 'textfield',//控件类型 fieldLabel: '申请人姓名(中文名)',//控件左边的描述文字 padding: '5 10 5 0',//内边距 value:"张三"//控件的默认显示值 labelWidth: 140,//控件左边的描述文字的宽度 readOnly: true,//是否只读,控件变灰 edita

2016-09-23 15:28:03 3695

原创 ExtJs教程----设置表单控件的只读

1.setDisabled(): Ext.ComponentQuery.query("#Name")[0].setDisabled(true); Ext.ComponentQuery.query("#Name")[0].setDisabled(false); 注意:当给某一个控件设置Disabled为true,使用form.submit()时,该控件的值是不能

2016-09-23 11:23:37 4373

原创 ExtJs教程--提示框

1.最普通的提示框 Ext.MessageBox.show({ title: '警告', msg: '请选择一条记录', icon: Ext.MessageBox.WARNING, buttons: Ext.Msg.OK});或者Ext.Msg.alert('Status', 'Changes saved successfully.');2.

2016-09-23 10:57:41 383

原创 ExtJs教程----Ext.data.Model的Ajax

1.定义ModelExt.define('ExtJs5Example.model.Student', { extend: 'Ext.data.Model', alias: 'widget.Student', fields: [ { name: 'StudentID', type: 'string' }, { name: 'Name', t

2016-09-23 10:37:28 984

原创 【Sql Server】创建游标

--定义变量 declare @StudentName varchar(100) --定义游标 declare UpdateTeacherName Cursor for select StudentName from StudentInfo --打开游标open UpdateTeacherName--遍历游标,且将获取的数据赋值到定义的变量中fetch next from

2016-09-21 17:33:54 920

转载 C#反射

今天稍微看了下反射的东西,虽然还不是很明白,但也写写随笔,加深下印象。       1、反射是什么东西?      Reflection,中文翻译为反射。      这是.Net中获取运行时类型信息的方式,.Net的应用程序由几个部分:‘程序集(Assembly)’、‘模块(Module)’、‘类型(class)’组成,而反射提供一种编程的方式,让程序员可以在程序运行期获得这几个组成部

2016-09-19 16:23:02 197

原创 给Web应用程序设置Cache

1.新建一ASP.NET MVC4 Web Application,如下2.添加如下文件CacheHelper:定义了设置cache和获取cache的方法using System;using System.Web;namespace CacheExample.Common{ #region CacheHelper public clas

2016-09-14 17:47:22 1328

原创 Sprint.Net ——依赖注入

1.首先我们创建一个控制台应用程序,并且添加Spring.Aop,Spring.Core,Spring.Data,Common.Loggin四个dll文件2.创建Person实体类using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Spr...

2016-09-14 15:47:27 459

翻译 Singleton和Prototype的区别

对象可以通过两种模式布署:singleton和非singleton(或者叫做prototype)当一个对象被定义为singleton时,容器中就只会有一个共享的实例,任何时候通过id或别名请求该对象都会返回这个共享实例的引用(也就是说这个对象只会被创建一次)。假如某个类有成员变量,那么这个成员变量的值是各个线程共享的(有点类似于static的样子了),当线程A往给变量赋了一个值以后,线程B...

2016-09-14 10:39:01 679

原创 添加引用时出现one of its dependencies,requires a later version of the .NET Framework than the one specified

在给项添加引用时出现one of its dependencies,requires a later version of the .NET Framework than the one specified in the project.You can change the .NET Framework target by clicking Properties on the project me

2016-09-13 17:07:49 913

原创 ExtJs教程----如何改变各个区域的背景色

下面是整个页面的组成部件:Ext.define('ExtJS5Example.view.portal.BodyPanel', { extend: 'Ext.container.Container', layout: 'border', style: 'background-color:white', items: [{ xtype: 'porta

2016-09-08 16:51:21 5065

原创 C#代码获取web.config中的配置信息

1.在web.Config的节点下面添加 节点 2.获取appSettings节点下面的子节点的信息       public static string GetNode1Value() { return ConfigurationSettings.AppSettings["Node1

2016-09-06 17:33:37 3941

原创 将不同的log(infoLog,errorLog,debugLog等)写入到txt文件中

Step1:创建log类using System;using System.Collections.Generic;using System.Text;using System.IO;using System.Configuration;namespace Framework{ public class Logger { public Logger(T

2016-09-06 17:26:45 2074

原创 ExtJs教程----创建Store

创建StoreExt.define('common.EnterpriseLevel', { extend: 'Ext.data.Store', alias: 'widget.EnterpriseLevel', autoLoad: true, autoSync: false, model: 'model.CustomerModel', prox

2016-09-06 17:08:29 491

原创 ExtJs教程----Ajax.request方法

Ext.Ajax.request({            url: '/Customer/Register',            params: {                 CustomerName: CustomerName             },            method: 'POST',            //method:'GET'

2016-09-06 16:59:45 341

原创 使用OpenXml操作Excel,创建Excel,导入DataTable的数据

using System;using System.Collections.Generic;using System.Data;using System.Data.OleDb;using System.IO;using System.Linq;using System.Reflection;using System.Runtime.InteropServices;using Do...

2016-09-06 16:48:51 7472 1

mybatisplus-01.zip

将spring boot 和mybatisplus结合的实例。使用了mysql数据库

2019-09-29

DevExpress Demo

1.使用UnboundColumnExpressionEditorForm对表格数据进行行检验 2.使用EditFormUserControl编辑表格行数据

2018-03-30

ExtJs5+Spring.Net+MVC项目搭建笔记2

ExtJs5+Spring.Net+MVC项目搭建笔记2

2016-09-22

ExtJs5+Spring.Net+MVC项目搭建笔记

ExtJs5+Spring.Net+MVC项目搭建笔记

2016-09-22

Spring .Net 控制反转

Spring .Net 控制反转

2016-09-21

五笔字型PPT教学课件

有利于新手学习五笔,是一份很好的资源。欢迎踊跃下载

2013-06-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除