只需一个窗体一个dataGridView控件,即可实现系统中所有基础数据的维护操作,真是太简单实用了,还不快Get了?
1、公共类User.cs:
public abstract class DBUser
{public static string sServer;public static string sDBName;public static string sUser;public static string sPasswd;
}
public abstract class dataGrid
{public static int ROW, COL;public static string rKey, Text, PID;public static int flag;public static int Count;
}
public abstract class DBTable
{public static int wStatus;public static string dbTableName;//表名称public static string dbViewName;//数据库试图名称public static string[] dbFields;//字段public static string[] dbCFields;//中文字段,用来代替数据库试图public static int[] fStatus;//字段是否为标识public static bool[] IsNull;//字段是否为空public static int FieldCount;//字段数目public static string Proc_insert;//插入数