📄 dataset1.cs
字号:
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(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(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.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.column年份,
this.column计划期}, true));
this.column年份.AllowDBNull = false;
this.column计划期.AllowDBNull = false;
this.column开始日期.AllowDBNull = false;
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 int 计划期 {
get {
return ((int)(this[this.table工厂日历.计划期Column]));
}
set {
this[this.table工厂日历.计划期Column] = value;
}
}
public int 开始日期 {
get {
return ((int)(this[this.table工厂日历.开始日期Column]));
}
set {
this[this.table工厂日历.开始日期Column] = value;
}
}
public int 结束日期 {
get {
return ((int)(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 bool Is备注Null() {
return this.IsNull(this.table工厂日历.备注Column);
}
public void Set备注Null() {
this[this.table工厂日历.备注Column] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 工厂日历RowChangeEvent : EventArgs {
private 工厂日历Row eventRow;
private DataRowAction eventAction;
public 工厂日历RowChangeEvent(工厂日历Row row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public 工厂日历Row Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 物料主文件DataTable : DataTable, System.Collections.IEnumerable {
private DataColumn column物料编号;
private DataColumn column条码;
private DataColumn column物料名称;
private DataColumn column拼音编码;
private DataColumn column计量单位;
private DataColumn column规格型号;
private DataColumn column计划类别;
private DataColumn column状态类别;
private DataColumn column归属类别;
private DataColumn column价值类别;
private DataColumn column物料特性a;
private DataColumn column物料特性b;
private DataColumn column物料特性c;
private DataColumn column物料特性d;
private DataColumn column长;
private DataColumn column宽;
private DataColumn column高;
private DataColumn column净重;
private DataColumn column品牌;
private DataColumn column颜色;
private DataColumn column等级;
private DataColumn column进货提前期;
private DataColumn column准备周期;
private DataColumn column生产周期;
private DataColumn column最小包装量;
private DataColumn column最低销售量;
private DataColumn column批量;
private DataColumn column最高库存;
private DataColumn column最低库存;
private DataColumn column库存期限;
private DataColumn column录入者;
private DataColumn column录入日期;
private DataColumn column低层码;
private DataColumn column指定供货商;
private DataColumn column定货策略;
private DataColumn column生产车间;
internal 物料主文件DataTable() :
base("物料主文件") {
this.InitClass();
}
internal 物料主文件DataTable(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 物料编号Column {
get {
return this.column物料编号;
}
}
internal DataColumn 条码Column {
get {
return this.column条码;
}
}
internal DataColumn 物料名称Column {
get {
return this.column物料名称;
}
}
internal DataColumn 拼音编码Column {
get {
return this.column拼音编码;
}
}
internal DataColumn 计量单位Column {
get {
return this.column计量单位;
}
}
internal DataColumn 规格型号Column {
get {
return this.column规格型号;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -