📄 dataset1.cs
字号:
public 职员基本信息表Row this[int index] {
get {
return ((职员基本信息表Row)(this.Rows[index]));
}
}
public event 职员基本信息表RowChangeEventHandler 职员基本信息表RowChanged;
public event 职员基本信息表RowChangeEventHandler 职员基本信息表RowChanging;
public event 职员基本信息表RowChangeEventHandler 职员基本信息表RowDeleted;
public event 职员基本信息表RowChangeEventHandler 职员基本信息表RowDeleting;
public void Add职员基本信息表Row(职员基本信息表Row row) {
this.Rows.Add(row);
}
public 职员基本信息表Row Add职员基本信息表Row(
string 职员编号,
string 姓名,
string 姓名简码,
string 性别,
int 出生日期,
int 年龄,
string 籍贯,
string 民族,
string 文化程度,
string 毕业学校,
string 健康状况,
string 婚姻状况,
string 身份证号码,
string 家庭电话,
string 办公电话,
string 手机,
string 电子邮件地址,
string 职工账号,
string 单位编号,
string 备注) {
职员基本信息表Row row职员基本信息表Row = ((职员基本信息表Row)(this.NewRow()));
row职员基本信息表Row.ItemArray = new object[] {
null,
职员编号,
姓名,
姓名简码,
性别,
出生日期,
年龄,
籍贯,
民族,
文化程度,
毕业学校,
健康状况,
婚姻状况,
身份证号码,
家庭电话,
办公电话,
手机,
电子邮件地址,
职工账号,
单位编号,
备注};
this.Rows.Add(row职员基本信息表Row);
return row职员基本信息表Row;
}
public 职员基本信息表Row FindBy职员编号(string 职员编号) {
return ((职员基本信息表Row)(this.Rows.Find(new object[] {
职员编号})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
职员基本信息表DataTable cln = ((职员基本信息表DataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new 职员基本信息表DataTable();
}
internal void InitVars() {
this.column内部编号 = this.Columns["内部编号"];
this.column职员编号 = this.Columns["职员编号"];
this.column姓名 = this.Columns["姓名"];
this.column姓名简码 = this.Columns["姓名简码"];
this.column性别 = this.Columns["性别"];
this.column出生日期 = this.Columns["出生日期"];
this.column年龄 = this.Columns["年龄"];
this.column籍贯 = this.Columns["籍贯"];
this.column民族 = this.Columns["民族"];
this.column文化程度 = this.Columns["文化程度"];
this.column毕业学校 = this.Columns["毕业学校"];
this.column健康状况 = this.Columns["健康状况"];
this.column婚姻状况 = this.Columns["婚姻状况"];
this.column身份证号码 = this.Columns["身份证号码"];
this.column家庭电话 = this.Columns["家庭电话"];
this.column办公电话 = this.Columns["办公电话"];
this.column手机 = this.Columns["手机"];
this.column电子邮件地址 = this.Columns["电子邮件地址"];
this.column职工账号 = this.Columns["职工账号"];
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(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(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.column出生日期);
this.column年龄 = new DataColumn("年龄", typeof(int), 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.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内部编号.AutoIncrement = true;
this.column内部编号.AllowDBNull = false;
this.column内部编号.ReadOnly = true;
this.column职员编号.AllowDBNull = false;
this.column职员编号.Unique = true;
this.column姓名.AllowDBNull = false;
}
public 职员基本信息表Row New职员基本信息表Row() {
return ((职员基本信息表Row)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new 职员基本信息表Row(builder);
}
protected override System.Type GetRowType() {
return typeof(职员基本信息表Row);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.职员基本信息表RowChanged != null)) {
this.职员基本信息表RowChanged(this, new 职员基本信息表RowChangeEvent(((职员基本信息表Row)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.职员基本信息表RowChanging != null)) {
this.职员基本信息表RowChanging(this, new 职员基本信息表RowChangeEvent(((职员基本信息表Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.职员基本信息表RowDeleted != null)) {
this.职员基本信息表RowDeleted(this, new 职员基本信息表RowChangeEvent(((职员基本信息表Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.职员基本信息表RowDeleting != null)) {
this.职员基本信息表RowDeleting(this, new 职员基本信息表RowChangeEvent(((职员基本信息表Row)(e.Row)), e.Action));
}
}
public void Remove职员基本信息表Row(职员基本信息表Row row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 职员基本信息表Row : DataRow {
private 职员基本信息表DataTable table职员基本信息表;
internal 职员基本信息表Row(DataRowBuilder rb) :
base(rb) {
this.table职员基本信息表 = ((职员基本信息表DataTable)(this.Table));
}
public int 内部编号 {
get {
return ((int)(this[this.table职员基本信息表.内部编号Column]));
}
set {
this[this.table职员基本信息表.内部编号Column] = value;
}
}
public string 职员编号 {
get {
return ((string)(this[this.table职员基本信息表.职员编号Column]));
}
set {
this[this.table职员基本信息表.职员编号Column] = value;
}
}
public string 姓名 {
get {
return ((string)(this[this.table职员基本信息表.姓名Column]));
}
set {
this[this.table职员基本信息表.姓名Column] = value;
}
}
public string 姓名简码 {
get {
try {
return ((string)(this[this.table职员基本信息表.姓名简码Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table职员基本信息表.姓名简码Column] = value;
}
}
public string 性别 {
get {
try {
return ((string)(this[this.table职员基本信息表.性别Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table职员基本信息表.性别Column] = value;
}
}
public int 出生日期 {
get {
try {
return ((int)(this[this.table职员基本信息表.出生日期Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table职员基本信息表.出生日期Column] = value;
}
}
public int 年龄 {
get {
try {
return ((int)(this[this.table职员基本信息表.年龄Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.table职员基本信息表.年龄Column] = value;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -