www.pudn.com > FORU(SMS).rar > ChkDataSet.Designer.cs
//------------------------------------------------------------------------------ //// 此代码由工具生成。 // 运行库版本:2.0.50727.832 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // //------------------------------------------------------------------------------ #pragma warning disable 1591 namespace FORU_SMS_.CrystalReport { using System; [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [Serializable()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.ComponentModel.ToolboxItem(true)] [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] [System.Xml.Serialization.XmlRootAttribute("ChkDataSet")] [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] public partial class ChkDataSet : System.Data.DataSet { private V_CheckDataTable tableV_Check; private System.Data.SchemaSerializationMode _schemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; [System.Diagnostics.DebuggerNonUserCodeAttribute()] public ChkDataSet() { this.BeginInit(); this.InitClass(); System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); base.Tables.CollectionChanged += schemaChangedHandler; base.Relations.CollectionChanged += schemaChangedHandler; this.EndInit(); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected ChkDataSet(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context, false) { if ((this.IsBinarySerialized(info, context) == true)) { this.InitVars(false); System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); this.Tables.CollectionChanged += schemaChangedHandler1; this.Relations.CollectionChanged += schemaChangedHandler1; return; } string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); if ((this.DetermineSchemaSerializationMode(info, context) == System.Data.SchemaSerializationMode.IncludeSchema)) { System.Data.DataSet ds = new System.Data.DataSet(); ds.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema))); if ((ds.Tables["V_Check"] != null)) { base.Tables.Add(new V_CheckDataTable(ds.Tables["V_Check"])); } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; this.Locale = ds.Locale; this.CaseSensitive = ds.CaseSensitive; this.EnforceConstraints = ds.EnforceConstraints; this.Merge(ds, false, System.Data.MissingSchemaAction.Add); this.InitVars(); } else { this.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema))); } this.GetSerializationData(info, context); System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); base.Tables.CollectionChanged += schemaChangedHandler; this.Relations.CollectionChanged += schemaChangedHandler; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.Browsable(false)] [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)] public V_CheckDataTable V_Check { get { return this.tableV_Check; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.BrowsableAttribute(true)] [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)] public override System.Data.SchemaSerializationMode SchemaSerializationMode { get { return this._schemaSerializationMode; } set { this._schemaSerializationMode = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)] public new System.Data.DataTableCollection Tables { get { return base.Tables; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)] public new System.Data.DataRelationCollection Relations { get { return base.Relations; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override void InitializeDerivedDataSet() { this.BeginInit(); this.InitClass(); this.EndInit(); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public override System.Data.DataSet Clone() { ChkDataSet cln = ((ChkDataSet)(base.Clone())); cln.InitVars(); cln.SchemaSerializationMode = this.SchemaSerializationMode; return cln; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override bool ShouldSerializeTables() { return false; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override bool ShouldSerializeRelations() { return false; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override void ReadXmlSerializable(System.Xml.XmlReader reader) { if ((this.DetermineSchemaSerializationMode(reader) == System.Data.SchemaSerializationMode.IncludeSchema)) { this.Reset(); System.Data.DataSet ds = new System.Data.DataSet(); ds.ReadXml(reader); if ((ds.Tables["V_Check"] != null)) { base.Tables.Add(new V_CheckDataTable(ds.Tables["V_Check"])); } this.DataSetName = ds.DataSetName; this.Prefix = ds.Prefix; this.Namespace = ds.Namespace; this.Locale = ds.Locale; this.CaseSensitive = ds.CaseSensitive; this.EnforceConstraints = ds.EnforceConstraints; this.Merge(ds, false, System.Data.MissingSchemaAction.Add); this.InitVars(); } else { this.ReadXml(reader); this.InitVars(); } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() { System.IO.MemoryStream stream = new System.IO.MemoryStream(); this.WriteXmlSchema(new System.Xml.XmlTextWriter(stream, null)); stream.Position = 0; return System.Xml.Schema.XmlSchema.Read(new System.Xml.XmlTextReader(stream), null); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars() { this.InitVars(true); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars(bool initTable) { this.tableV_Check = ((V_CheckDataTable)(base.Tables["V_Check"])); if ((initTable == true)) { if ((this.tableV_Check != null)) { this.tableV_Check.InitVars(); } } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitClass() { this.DataSetName = "ChkDataSet"; this.Prefix = ""; this.Namespace = "http://tempuri.org/ChkDataSet.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; this.tableV_Check = new V_CheckDataTable(); base.Tables.Add(this.tableV_Check); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private bool ShouldSerializeV_Check() { return false; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) { if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) { this.InitVars(); } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs) { ChkDataSet ds = new ChkDataSet(); System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType(); System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence(); xs.Add(ds.GetSchemaSerializable()); System.Xml.Schema.XmlSchemaAny any = new System.Xml.Schema.XmlSchemaAny(); any.Namespace = ds.Namespace; sequence.Items.Add(any); type.Particle = sequence; return type; } public delegate void V_CheckRowChangeEventHandler(object sender, V_CheckRowChangeEvent e); [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [System.Serializable()] [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] public partial class V_CheckDataTable : System.Data.DataTable, System.Collections.IEnumerable { private System.Data.DataColumn column产品编号; private System.Data.DataColumn column产品名称; private System.Data.DataColumn column库存数量; private System.Data.DataColumn column盘点实数; private System.Data.DataColumn column盘点日期; [System.Diagnostics.DebuggerNonUserCodeAttribute()] public V_CheckDataTable() { this.TableName = "V_Check"; this.BeginInit(); this.InitClass(); this.EndInit(); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal V_CheckDataTable(System.Data.DataTable table) { this.TableName = 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; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected V_CheckDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataColumn 产品编号Column { get { return this.column产品编号; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataColumn 产品名称Column { get { return this.column产品名称; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataColumn 库存数量Column { get { return this.column库存数量; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataColumn 盘点实数Column { get { return this.column盘点实数; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataColumn 盘点日期Column { get { return this.column盘点日期; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public V_CheckRow this[int index] { get { return ((V_CheckRow)(this.Rows[index])); } } public event V_CheckRowChangeEventHandler V_CheckRowChanging; public event V_CheckRowChangeEventHandler V_CheckRowChanged; public event V_CheckRowChangeEventHandler V_CheckRowDeleting; public event V_CheckRowChangeEventHandler V_CheckRowDeleted; [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void AddV_CheckRow(V_CheckRow row) { this.Rows.Add(row); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public V_CheckRow AddV_CheckRow(string 产品编号, string 产品名称, int 库存数量, int 盘点实数, System.DateTime 盘点日期) { V_CheckRow rowV_CheckRow = ((V_CheckRow)(this.NewRow())); rowV_CheckRow.ItemArray = new object[] { 产品编号, 产品名称, 库存数量, 盘点实数, 盘点日期}; this.Rows.Add(rowV_CheckRow); return rowV_CheckRow; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public virtual System.Collections.IEnumerator GetEnumerator() { return this.Rows.GetEnumerator(); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public override System.Data.DataTable Clone() { V_CheckDataTable cln = ((V_CheckDataTable)(base.Clone())); cln.InitVars(); return cln; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override System.Data.DataTable CreateInstance() { return new V_CheckDataTable(); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars() { this.column产品编号 = base.Columns["产品编号"]; this.column产品名称 = base.Columns["产品名称"]; this.column库存数量 = base.Columns["库存数量"]; this.column盘点实数 = base.Columns["盘点实数"]; this.column盘点日期 = base.Columns["盘点日期"]; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitClass() { this.column产品编号 = new System.Data.DataColumn("产品编号", typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this.column产品编号); this.column产品名称 = new System.Data.DataColumn("产品名称", typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this.column产品名称); this.column库存数量 = new System.Data.DataColumn("库存数量", typeof(int), null, System.Data.MappingType.Element); base.Columns.Add(this.column库存数量); this.column盘点实数 = new System.Data.DataColumn("盘点实数", typeof(int), null, System.Data.MappingType.Element); base.Columns.Add(this.column盘点实数); this.column盘点日期 = new System.Data.DataColumn("盘点日期", typeof(System.DateTime), null, System.Data.MappingType.Element); base.Columns.Add(this.column盘点日期); this.column产品编号.AllowDBNull = false; this.column产品编号.MaxLength = 20; this.column产品名称.AllowDBNull = false; this.column产品名称.MaxLength = 50; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public V_CheckRow NewV_CheckRow() { return ((V_CheckRow)(this.NewRow())); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) { return new V_CheckRow(builder); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override System.Type GetRowType() { return typeof(V_CheckRow); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.V_CheckRowChanged != null)) { this.V_CheckRowChanged(this, new V_CheckRowChangeEvent(((V_CheckRow)(e.Row)), e.Action)); } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.V_CheckRowChanging != null)) { this.V_CheckRowChanging(this, new V_CheckRowChangeEvent(((V_CheckRow)(e.Row)), e.Action)); } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.V_CheckRowDeleted != null)) { this.V_CheckRowDeleted(this, new V_CheckRowChangeEvent(((V_CheckRow)(e.Row)), e.Action)); } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.V_CheckRowDeleting != null)) { this.V_CheckRowDeleting(this, new V_CheckRowChangeEvent(((V_CheckRow)(e.Row)), e.Action)); } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void RemoveV_CheckRow(V_CheckRow row) { this.Rows.Remove(row); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) { System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType(); System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence(); ChkDataSet ds = new ChkDataSet(); xs.Add(ds.GetSchemaSerializable()); System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny(); any1.Namespace = "http://www.w3.org/2001/XMLSchema"; any1.MinOccurs = new decimal(0); any1.MaxOccurs = decimal.MaxValue; any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny(); any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; any2.MinOccurs = new decimal(1); any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute(); attribute1.Name = "namespace"; attribute1.FixedValue = ds.Namespace; type.Attributes.Add(attribute1); System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "V_CheckDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; return type; } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public partial class V_CheckRow : System.Data.DataRow { private V_CheckDataTable tableV_Check; [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal V_CheckRow(System.Data.DataRowBuilder rb) : base(rb) { this.tableV_Check = ((V_CheckDataTable)(this.Table)); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public string 产品编号 { get { return ((string)(this[this.tableV_Check.产品编号Column])); } set { this[this.tableV_Check.产品编号Column] = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public string 产品名称 { get { return ((string)(this[this.tableV_Check.产品名称Column])); } set { this[this.tableV_Check.产品名称Column] = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public int 库存数量 { get { try { return ((int)(this[this.tableV_Check.库存数量Column])); } catch (System.InvalidCastException e) { throw new System.Data.StrongTypingException("表“V_Check”中列“库存数量”的值为 DBNull。", e); } } set { this[this.tableV_Check.库存数量Column] = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public int 盘点实数 { get { try { return ((int)(this[this.tableV_Check.盘点实数Column])); } catch (System.InvalidCastException e) { throw new System.Data.StrongTypingException("表“V_Check”中列“盘点实数”的值为 DBNull。", e); } } set { this[this.tableV_Check.盘点实数Column] = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.DateTime 盘点日期 { get { try { return ((System.DateTime)(this[this.tableV_Check.盘点日期Column])); } catch (System.InvalidCastException e) { throw new System.Data.StrongTypingException("表“V_Check”中列“盘点日期”的值为 DBNull。", e); } } set { this[this.tableV_Check.盘点日期Column] = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool Is库存数量Null() { return this.IsNull(this.tableV_Check.库存数量Column); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void Set库存数量Null() { this[this.tableV_Check.库存数量Column] = System.Convert.DBNull; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool Is盘点实数Null() { return this.IsNull(this.tableV_Check.盘点实数Column); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void Set盘点实数Null() { this[this.tableV_Check.盘点实数Column] = System.Convert.DBNull; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool Is盘点日期Null() { return this.IsNull(this.tableV_Check.盘点日期Column); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void Set盘点日期Null() { this[this.tableV_Check.盘点日期Column] = System.Convert.DBNull; } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public class V_CheckRowChangeEvent : System.EventArgs { private V_CheckRow eventRow; private System.Data.DataRowAction eventAction; [System.Diagnostics.DebuggerNonUserCodeAttribute()] public V_CheckRowChangeEvent(V_CheckRow row, System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public V_CheckRow Row { get { return this.eventRow; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataRowAction Action { get { return this.eventAction; } } } } } namespace FORU_SMS_.CrystalReport.ChkDataSetTableAdapters { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.ComponentModel.ToolboxItem(true)] [System.ComponentModel.DataObjectAttribute(true)] [System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public partial class V_CheckTableAdapter : System.ComponentModel.Component { private System.Data.SqlClient.SqlDataAdapter _adapter; private System.Data.SqlClient.SqlConnection _connection; private System.Data.SqlClient.SqlCommand[] _commandCollection; private bool _clearBeforeFill; [System.Diagnostics.DebuggerNonUserCodeAttribute()] public V_CheckTableAdapter() { this.ClearBeforeFill = true; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private System.Data.SqlClient.SqlDataAdapter Adapter { get { if ((this._adapter == null)) { this.InitAdapter(); } return this._adapter; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal System.Data.SqlClient.SqlConnection Connection { get { if ((this._connection == null)) { this.InitConnection(); } return this._connection; } set { this._connection = value; if ((this.Adapter.InsertCommand != null)) { this.Adapter.InsertCommand.Connection = value; } if ((this.Adapter.DeleteCommand != null)) { this.Adapter.DeleteCommand.Connection = value; } if ((this.Adapter.UpdateCommand != null)) { this.Adapter.UpdateCommand.Connection = value; } for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { if ((this.CommandCollection[i] != null)) { ((System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; } } } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected System.Data.SqlClient.SqlCommand[] CommandCollection { get { if ((this._commandCollection == null)) { this.InitCommandCollection(); } return this._commandCollection; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool ClearBeforeFill { get { return this._clearBeforeFill; } set { this._clearBeforeFill = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitAdapter() { this._adapter = new System.Data.SqlClient.SqlDataAdapter(); System.Data.Common.DataTableMapping tableMapping = new System.Data.Common.DataTableMapping(); tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "V_Check"; tableMapping.ColumnMappings.Add("产品编号", "产品编号"); tableMapping.ColumnMappings.Add("产品名称", "产品名称"); tableMapping.ColumnMappings.Add("库存数量", "库存数量"); tableMapping.ColumnMappings.Add("盘点实数", "盘点实数"); tableMapping.ColumnMappings.Add("盘点日期", "盘点日期"); this._adapter.TableMappings.Add(tableMapping); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitConnection() { this._connection = new System.Data.SqlClient.SqlConnection(); this._connection.ConnectionString = global::FORU_SMS_.Properties.Settings.Default.FORUSMSConnectionString; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitCommandCollection() { this._commandCollection = new System.Data.SqlClient.SqlCommand[1]; this._commandCollection[0] = new System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT 产品编号, 产品名称, 库存数量, 盘点实数, 盘点日期\r\nFROM V_Check"; this._commandCollection[0].CommandType = System.Data.CommandType.Text; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, true)] public virtual int Fill(ChkDataSet.V_CheckDataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)] public virtual ChkDataSet.V_CheckDataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; ChkDataSet.V_CheckDataTable dataTable = new ChkDataSet.V_CheckDataTable(); this.Adapter.Fill(dataTable); return dataTable; } } } #pragma warning restore 1591