userzhechehistoryset.cs
来自「独立完成考勤管理软件加打卡系统(C#) 是打卡加管理系统软件 」· CS 代码 · 共 595 行 · 第 1/2 页
CS
595 行
this.column修改 = this.Columns["修改"];
this.column状态 = this.Columns["状态"];
}
private void InitClass() {
this.column编号 = new DataColumn("编号", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.column编号);
this.column日期 = new DataColumn("日期", typeof(System.DateTime), null, System.Data.MappingType.Element);
this.Columns.Add(this.column日期);
this.column时间 = new DataColumn("时间", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column时间);
this.column用户名 = new DataColumn("用户名", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column用户名);
this.column密码 = new DataColumn("密码", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column密码);
this.column添加 = new DataColumn("添加", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column添加);
this.column删除 = new DataColumn("删除", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column删除);
this.column修改 = new DataColumn("修改", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column修改);
this.column状态 = new DataColumn("状态", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column状态);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.column编号}, true));
this.column编号.AllowDBNull = false;
this.column编号.Unique = true;
}
public UserZheCheHistoryRow NewUserZheCheHistoryRow() {
return ((UserZheCheHistoryRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new UserZheCheHistoryRow(builder);
}
protected override System.Type GetRowType() {
return typeof(UserZheCheHistoryRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.UserZheCheHistoryRowChanged != null)) {
this.UserZheCheHistoryRowChanged(this, new UserZheCheHistoryRowChangeEvent(((UserZheCheHistoryRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.UserZheCheHistoryRowChanging != null)) {
this.UserZheCheHistoryRowChanging(this, new UserZheCheHistoryRowChangeEvent(((UserZheCheHistoryRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.UserZheCheHistoryRowDeleted != null)) {
this.UserZheCheHistoryRowDeleted(this, new UserZheCheHistoryRowChangeEvent(((UserZheCheHistoryRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.UserZheCheHistoryRowDeleting != null)) {
this.UserZheCheHistoryRowDeleting(this, new UserZheCheHistoryRowChangeEvent(((UserZheCheHistoryRow)(e.Row)), e.Action));
}
}
public void RemoveUserZheCheHistoryRow(UserZheCheHistoryRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class UserZheCheHistoryRow : DataRow {
private UserZheCheHistoryDataTable tableUserZheCheHistory;
internal UserZheCheHistoryRow(DataRowBuilder rb) :
base(rb) {
this.tableUserZheCheHistory = ((UserZheCheHistoryDataTable)(this.Table));
}
public int 编号 {
get {
return ((int)(this[this.tableUserZheCheHistory.编号Column]));
}
set {
this[this.tableUserZheCheHistory.编号Column] = value;
}
}
public System.DateTime 日期 {
get {
try {
return ((System.DateTime)(this[this.tableUserZheCheHistory.日期Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUserZheCheHistory.日期Column] = value;
}
}
public string 时间 {
get {
try {
return ((string)(this[this.tableUserZheCheHistory.时间Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUserZheCheHistory.时间Column] = value;
}
}
public string 用户名 {
get {
try {
return ((string)(this[this.tableUserZheCheHistory.用户名Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUserZheCheHistory.用户名Column] = value;
}
}
public string 密码 {
get {
try {
return ((string)(this[this.tableUserZheCheHistory.密码Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUserZheCheHistory.密码Column] = value;
}
}
public string 添加 {
get {
try {
return ((string)(this[this.tableUserZheCheHistory.添加Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUserZheCheHistory.添加Column] = value;
}
}
public string 删除 {
get {
try {
return ((string)(this[this.tableUserZheCheHistory.删除Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUserZheCheHistory.删除Column] = value;
}
}
public string 修改 {
get {
try {
return ((string)(this[this.tableUserZheCheHistory.修改Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUserZheCheHistory.修改Column] = value;
}
}
public string 状态 {
get {
try {
return ((string)(this[this.tableUserZheCheHistory.状态Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableUserZheCheHistory.状态Column] = value;
}
}
public bool Is日期Null() {
return this.IsNull(this.tableUserZheCheHistory.日期Column);
}
public void Set日期Null() {
this[this.tableUserZheCheHistory.日期Column] = System.Convert.DBNull;
}
public bool Is时间Null() {
return this.IsNull(this.tableUserZheCheHistory.时间Column);
}
public void Set时间Null() {
this[this.tableUserZheCheHistory.时间Column] = System.Convert.DBNull;
}
public bool Is用户名Null() {
return this.IsNull(this.tableUserZheCheHistory.用户名Column);
}
public void Set用户名Null() {
this[this.tableUserZheCheHistory.用户名Column] = System.Convert.DBNull;
}
public bool Is密码Null() {
return this.IsNull(this.tableUserZheCheHistory.密码Column);
}
public void Set密码Null() {
this[this.tableUserZheCheHistory.密码Column] = System.Convert.DBNull;
}
public bool Is添加Null() {
return this.IsNull(this.tableUserZheCheHistory.添加Column);
}
public void Set添加Null() {
this[this.tableUserZheCheHistory.添加Column] = System.Convert.DBNull;
}
public bool Is删除Null() {
return this.IsNull(this.tableUserZheCheHistory.删除Column);
}
public void Set删除Null() {
this[this.tableUserZheCheHistory.删除Column] = System.Convert.DBNull;
}
public bool Is修改Null() {
return this.IsNull(this.tableUserZheCheHistory.修改Column);
}
public void Set修改Null() {
this[this.tableUserZheCheHistory.修改Column] = System.Convert.DBNull;
}
public bool Is状态Null() {
return this.IsNull(this.tableUserZheCheHistory.状态Column);
}
public void Set状态Null() {
this[this.tableUserZheCheHistory.状态Column] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class UserZheCheHistoryRowChangeEvent : EventArgs {
private UserZheCheHistoryRow eventRow;
private DataRowAction eventAction;
public UserZheCheHistoryRowChangeEvent(UserZheCheHistoryRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public UserZheCheHistoryRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?