📄 dsstat.cs
字号:
this.columnAdminName = new DataColumn("AdminName", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnAdminName);
this.columnChargeTime = new DataColumn("ChargeTime", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnChargeTime);
this.columnMoney = new DataColumn("Money", typeof(System.Double), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnMoney);
}
public ChargeInfoRow NewChargeInfoRow() {
return ((ChargeInfoRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new ChargeInfoRow(builder);
}
protected override System.Type GetRowType() {
return typeof(ChargeInfoRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.ChargeInfoRowChanged != null)) {
this.ChargeInfoRowChanged(this, new ChargeInfoRowChangeEvent(((ChargeInfoRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.ChargeInfoRowChanging != null)) {
this.ChargeInfoRowChanging(this, new ChargeInfoRowChangeEvent(((ChargeInfoRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.ChargeInfoRowDeleted != null)) {
this.ChargeInfoRowDeleted(this, new ChargeInfoRowChangeEvent(((ChargeInfoRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.ChargeInfoRowDeleting != null)) {
this.ChargeInfoRowDeleting(this, new ChargeInfoRowChangeEvent(((ChargeInfoRow)(e.Row)), e.Action));
}
}
public void RemoveChargeInfoRow(ChargeInfoRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class ChargeInfoRow : DataRow {
private ChargeInfoDataTable tableChargeInfo;
internal ChargeInfoRow(DataRowBuilder rb) :
base(rb) {
this.tableChargeInfo = ((ChargeInfoDataTable)(this.Table));
}
public string ItemName {
get {
try {
return ((string)(this[this.tableChargeInfo.ItemNameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableChargeInfo.ItemNameColumn] = value;
}
}
public string StuNumber {
get {
try {
return ((string)(this[this.tableChargeInfo.StuNumberColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableChargeInfo.StuNumberColumn] = value;
}
}
public string Name {
get {
try {
return ((string)(this[this.tableChargeInfo.NameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableChargeInfo.NameColumn] = value;
}
}
public string AdminName {
get {
try {
return ((string)(this[this.tableChargeInfo.AdminNameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableChargeInfo.AdminNameColumn] = value;
}
}
public string ChargeTime {
get {
try {
return ((string)(this[this.tableChargeInfo.ChargeTimeColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableChargeInfo.ChargeTimeColumn] = value;
}
}
public System.Double Money {
get {
try {
return ((System.Double)(this[this.tableChargeInfo.MoneyColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableChargeInfo.MoneyColumn] = value;
}
}
public bool IsItemNameNull() {
return this.IsNull(this.tableChargeInfo.ItemNameColumn);
}
public void SetItemNameNull() {
this[this.tableChargeInfo.ItemNameColumn] = System.Convert.DBNull;
}
public bool IsStuNumberNull() {
return this.IsNull(this.tableChargeInfo.StuNumberColumn);
}
public void SetStuNumberNull() {
this[this.tableChargeInfo.StuNumberColumn] = System.Convert.DBNull;
}
public bool IsNameNull() {
return this.IsNull(this.tableChargeInfo.NameColumn);
}
public void SetNameNull() {
this[this.tableChargeInfo.NameColumn] = System.Convert.DBNull;
}
public bool IsAdminNameNull() {
return this.IsNull(this.tableChargeInfo.AdminNameColumn);
}
public void SetAdminNameNull() {
this[this.tableChargeInfo.AdminNameColumn] = System.Convert.DBNull;
}
public bool IsChargeTimeNull() {
return this.IsNull(this.tableChargeInfo.ChargeTimeColumn);
}
public void SetChargeTimeNull() {
this[this.tableChargeInfo.ChargeTimeColumn] = System.Convert.DBNull;
}
public bool IsMoneyNull() {
return this.IsNull(this.tableChargeInfo.MoneyColumn);
}
public void SetMoneyNull() {
this[this.tableChargeInfo.MoneyColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class ChargeInfoRowChangeEvent : EventArgs {
private ChargeInfoRow eventRow;
private DataRowAction eventAction;
public ChargeInfoRowChangeEvent(ChargeInfoRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public ChargeInfoRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class SarrListDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnItemName;
private DataColumn columnType;
private DataColumn columnMajor;
private DataColumn columnEnroYear;
internal SarrListDataTable() :
base("SarrList") {
this.InitClass();
}
internal SarrListDataTable(DataTable table) :
base(table.TableName) {
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
this.DisplayExpression = table.DisplayExpression;
}
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
internal DataColumn ItemNameColumn {
get {
return this.columnItemName;
}
}
internal DataColumn TypeColumn {
get {
return this.columnType;
}
}
internal DataColumn MajorColumn {
get {
return this.columnMajor;
}
}
internal DataColumn EnroYearColumn {
get {
return this.columnEnroYear;
}
}
public SarrListRow this[int index] {
get {
return ((SarrListRow)(this.Rows[index]));
}
}
public event SarrListRowChangeEventHandler SarrListRowChanged;
public event SarrListRowChangeEventHandler SarrListRowChanging;
public event SarrListRowChangeEventHandler SarrListRowDeleted;
public event SarrListRowChangeEventHandler SarrListRowDeleting;
public void AddSarrListRow(SarrListRow row) {
this.Rows.Add(row);
}
public SarrListRow AddSarrListRow(string ItemName, string Type, string Major, string EnroYear) {
SarrListRow rowSarrListRow = ((SarrListRow)(this.NewRow()));
rowSarrListRow.ItemArray = new object[] {
ItemName,
Type,
Major,
EnroYear};
this.Rows.Add(rowSarrListRow);
return rowSarrListRow;
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
SarrListDataTable cln = ((SarrListDataTable)(base.Clone()));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -