dsmain.designer.cs
来自「C#简单练习进销存代码」· CS 代码 · 共 748 行 · 第 1/3 页
CS
748 行
any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "IN020DataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
if (xs.Contains(dsSchema.TargetNamespace)) {
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
try {
global::System.Xml.Schema.XmlSchema schema = null;
dsSchema.Write(s1);
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
s2.SetLength(0);
schema.Write(s2);
if ((s1.Length == s2.Length)) {
s1.Position = 0;
s2.Position = 0;
for (; ((s1.Position != s1.Length)
&& (s1.ReadByte() == s2.ReadByte())); ) {
;
}
if ((s1.Position == s1.Length)) {
return type;
}
}
}
}
finally {
if ((s1 != null)) {
s1.Close();
}
if ((s2 != null)) {
s2.Close();
}
}
}
xs.Add(dsSchema);
return type;
}
}
/// <summary>
///Represents strongly named DataRow class.
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public partial class IN020Row : global::System.Data.DataRow {
private IN020DataTable tableIN020;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal IN020Row(global::System.Data.DataRowBuilder rb) :
base(rb) {
this.tableIN020 = ((IN020DataTable)(this.Table));
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.DateTime C_DATE {
get {
try {
return ((global::System.DateTime)(this[this.tableIN020.C_DATEColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("表“IN020”中列“C_DATE”的值为 DBNull。", e);
}
}
set {
this[this.tableIN020.C_DATEColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string PR_NAME {
get {
try {
return ((string)(this[this.tableIN020.PR_NAMEColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("表“IN020”中列“PR_NAME”的值为 DBNull。", e);
}
}
set {
this[this.tableIN020.PR_NAMEColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string RE_NAME {
get {
try {
return ((string)(this[this.tableIN020.RE_NAMEColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("表“IN020”中列“RE_NAME”的值为 DBNull。", e);
}
}
set {
this[this.tableIN020.RE_NAMEColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public decimal PRICE {
get {
try {
return ((decimal)(this[this.tableIN020.PRICEColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("表“IN020”中列“PRICE”的值为 DBNull。", e);
}
}
set {
this[this.tableIN020.PRICEColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public int QTY {
get {
try {
return ((int)(this[this.tableIN020.QTYColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("表“IN020”中列“QTY”的值为 DBNull。", e);
}
}
set {
this[this.tableIN020.QTYColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public decimal TA {
get {
try {
return ((decimal)(this[this.tableIN020.TAColumn]));
}
catch (global::System.InvalidCastException e) {
throw new global::System.Data.StrongTypingException("表“IN020”中列“TA”的值为 DBNull。", e);
}
}
set {
this[this.tableIN020.TAColumn] = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsC_DATENull() {
return this.IsNull(this.tableIN020.C_DATEColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetC_DATENull() {
this[this.tableIN020.C_DATEColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsPR_NAMENull() {
return this.IsNull(this.tableIN020.PR_NAMEColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetPR_NAMENull() {
this[this.tableIN020.PR_NAMEColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsRE_NAMENull() {
return this.IsNull(this.tableIN020.RE_NAMEColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetRE_NAMENull() {
this[this.tableIN020.RE_NAMEColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsPRICENull() {
return this.IsNull(this.tableIN020.PRICEColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetPRICENull() {
this[this.tableIN020.PRICEColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsQTYNull() {
return this.IsNull(this.tableIN020.QTYColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetQTYNull() {
this[this.tableIN020.QTYColumn] = global::System.Convert.DBNull;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsTANull() {
return this.IsNull(this.tableIN020.TAColumn);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetTANull() {
this[this.tableIN020.TAColumn] = global::System.Convert.DBNull;
}
}
/// <summary>
///Row event argument class
///</summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public class IN020RowChangeEvent : global::System.EventArgs {
private IN020Row eventRow;
private global::System.Data.DataRowAction eventAction;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public IN020RowChangeEvent(IN020Row row, global::System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public IN020Row Row {
get {
return this.eventRow;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
#pragma warning restore 1591
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?