03 2012 档案
摘要:string namespacestr="SKY.MODEL.UserModel";//命名空间 string methodname="GetValueByID";//方法名称 string str = namespacestr.Substring(0, namespacestr.LastIndexOf(".") ); //Type t = System.Type.GetType("SKY.MODEL.UserModel,SKY.MODEL"); try { Type t = System.Type.GetType
阅读全文
摘要:[PropertyDescription("物料编号", ProperVlaue = "MATERIAL_ID", DefaultValue = "MaterialId")] public int MATERIAL_ID { get; set; }用来自定义属性的描叙信息,该属性信息可以通过反射获取,自定义的类如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using
阅读全文
摘要:在做项目时,常常需要配置一些属性的,这就需要用到反射机制,下面是项目中常用到一些基本的放射方法:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Reflection;using System.Collections;namespace SKY.DEFINITION{ /// <summary> /// 该类是用来实现反射的 /// 范小军 /// </summary> public class ReflectionAbou...
阅读全文
摘要:需要从一个价格库表中,根据条件查询出相应的价格信息。价格库表结构如下:create table T_PriceLibrary( PLId int IDENTITY(1,1), --自价格库ID MaterialId int, --已报价物料Id SupplierId int, --已报价供应商Id PriceType int, --价格类型 Price decimal(13, 6), --...
阅读全文