DataSet1.cs
资源名称:VCSDB.rar [点击查看]
上传用户:hjieqiu
上传日期:2013-05-11
资源大小:16494k
文件大小:161k
源码类别:
企业管理
开发平台:
C#
- }
- public void Set长Null() {
- this[this.table物料主文件.长Column] = System.Convert.DBNull;
- }
- public bool Is宽Null() {
- return this.IsNull(this.table物料主文件.宽Column);
- }
- public void Set宽Null() {
- this[this.table物料主文件.宽Column] = System.Convert.DBNull;
- }
- public bool Is高Null() {
- return this.IsNull(this.table物料主文件.高Column);
- }
- public void Set高Null() {
- this[this.table物料主文件.高Column] = System.Convert.DBNull;
- }
- public bool Is净重Null() {
- return this.IsNull(this.table物料主文件.净重Column);
- }
- public void Set净重Null() {
- this[this.table物料主文件.净重Column] = System.Convert.DBNull;
- }
- public bool Is品牌Null() {
- return this.IsNull(this.table物料主文件.品牌Column);
- }
- public void Set品牌Null() {
- this[this.table物料主文件.品牌Column] = System.Convert.DBNull;
- }
- public bool Is颜色Null() {
- return this.IsNull(this.table物料主文件.颜色Column);
- }
- public void Set颜色Null() {
- this[this.table物料主文件.颜色Column] = System.Convert.DBNull;
- }
- public bool Is等级Null() {
- return this.IsNull(this.table物料主文件.等级Column);
- }
- public void Set等级Null() {
- this[this.table物料主文件.等级Column] = System.Convert.DBNull;
- }
- public bool Is进货提前期Null() {
- return this.IsNull(this.table物料主文件.进货提前期Column);
- }
- public void Set进货提前期Null() {
- this[this.table物料主文件.进货提前期Column] = System.Convert.DBNull;
- }
- public bool Is准备周期Null() {
- return this.IsNull(this.table物料主文件.准备周期Column);
- }
- public void Set准备周期Null() {
- this[this.table物料主文件.准备周期Column] = System.Convert.DBNull;
- }
- public bool Is生产周期Null() {
- return this.IsNull(this.table物料主文件.生产周期Column);
- }
- public void Set生产周期Null() {
- this[this.table物料主文件.生产周期Column] = System.Convert.DBNull;
- }
- public bool Is最小包装量Null() {
- return this.IsNull(this.table物料主文件.最小包装量Column);
- }
- public void Set最小包装量Null() {
- this[this.table物料主文件.最小包装量Column] = System.Convert.DBNull;
- }
- public bool Is最低销售量Null() {
- return this.IsNull(this.table物料主文件.最低销售量Column);
- }
- public void Set最低销售量Null() {
- this[this.table物料主文件.最低销售量Column] = System.Convert.DBNull;
- }
- public bool Is批量Null() {
- return this.IsNull(this.table物料主文件.批量Column);
- }
- public void Set批量Null() {
- this[this.table物料主文件.批量Column] = System.Convert.DBNull;
- }
- public bool Is最高库存Null() {
- return this.IsNull(this.table物料主文件.最高库存Column);
- }
- public void Set最高库存Null() {
- this[this.table物料主文件.最高库存Column] = System.Convert.DBNull;
- }
- public bool Is最低库存Null() {
- return this.IsNull(this.table物料主文件.最低库存Column);
- }
- public void Set最低库存Null() {
- this[this.table物料主文件.最低库存Column] = System.Convert.DBNull;
- }
- public bool Is库存期限Null() {
- return this.IsNull(this.table物料主文件.库存期限Column);
- }
- public void Set库存期限Null() {
- this[this.table物料主文件.库存期限Column] = System.Convert.DBNull;
- }
- public bool Is录入者Null() {
- return this.IsNull(this.table物料主文件.录入者Column);
- }
- public void Set录入者Null() {
- this[this.table物料主文件.录入者Column] = System.Convert.DBNull;
- }
- public bool Is录入日期Null() {
- return this.IsNull(this.table物料主文件.录入日期Column);
- }
- public void Set录入日期Null() {
- this[this.table物料主文件.录入日期Column] = System.Convert.DBNull;
- }
- public bool Is低层码Null() {
- return this.IsNull(this.table物料主文件.低层码Column);
- }
- public void Set低层码Null() {
- this[this.table物料主文件.低层码Column] = System.Convert.DBNull;
- }
- public bool Is指定供货商Null() {
- return this.IsNull(this.table物料主文件.指定供货商Column);
- }
- public void Set指定供货商Null() {
- this[this.table物料主文件.指定供货商Column] = System.Convert.DBNull;
- }
- public bool Is定货策略Null() {
- return this.IsNull(this.table物料主文件.定货策略Column);
- }
- public void Set定货策略Null() {
- this[this.table物料主文件.定货策略Column] = System.Convert.DBNull;
- }
- 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备注;
- 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结束日期;
- }
- }
- 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备注;
- }
- }
- 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 物料编号, int 年份, int 计划期, int 开始日期, int 结束日期, System.Decimal 需求数量, string 记帐人, int 修改日期, string 状态, string 备注) {
- 主需求计划Row row主需求计划Row = ((主需求计划Row)(this.NewRow()));
- row主需求计划Row.ItemArray = new object[] {
- 编号,
- 物料编号,
- 年份,
- 计划期,
- 开始日期,
- 结束日期,
- 需求数量,
- 记帐人,
- 修改日期,
- 状态,
- 备注};
- this.Rows.Add(row主需求计划Row);
- return row主需求计划Row;
- }
- public 主需求计划Row FindBy物料编号年份计划期(string 物料编号, int 年份, int 计划期) {
- 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["备注"];
- }
- private void InitClass() {
- 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(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(System.Decimal), 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(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物料编号,
- this.column年份,
- this.column计划期}, true));
- this.column物料编号.AllowDBNull = false;
- 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 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 {
- return ((string)(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 {
- 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;
- }
- }
- public System.Decimal 需求数量 {
- get {
- return ((System.Decimal)(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 int 修改日期 {
- get {
- try {
- return ((int)(this[this.table主需求计划.修改日期Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- 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 bool Is编号Null() {
- return this.IsNull(this.table主需求计划.编号Column);
- }
- public void Set编号Null() {
- this[this.table主需求计划.编号Column] = System.Convert.DBNull;
- }
- public bool Is开始日期Null() {
- return this.IsNull(this.table主需求计划.开始日期Column);
- }
- public void Set开始日期Null() {
- this[this.table主需求计划.开始日期Column] = System.Convert.DBNull;
- }
- public bool Is结束日期Null() {
- return this.IsNull(this.table主需求计划.结束日期Column);
- }
- public void Set结束日期Null() {
- this[this.table主需求计划.结束日期Column] = System.Convert.DBNull;
- }
- public bool Is记帐人Null() {
- return this.IsNull(this.table主需求计划.记帐人Column);
- }
- public void Set记帐人Null() {
- this[this.table主需求计划.记帐人Column] = System.Convert.DBNull;
- }
- public bool Is修改日期Null() {
- return this.IsNull(this.table主需求计划.修改日期Column);
- }
- public void Set修改日期Null() {
- this[this.table主需求计划.修改日期Column] = System.Convert.DBNull;
- }
- 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 columnMPS数量;
- 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结束日期;
- }
- }
- internal DataColumn 期初库存Column {
- get {
- return this.column期初库存;
- }
- }
- internal DataColumn 需求数量Column {
- get {
- return this.column需求数量;
- }
- }
- internal DataColumn MPS数量Column {
- get {
- return this.columnMPS数量;
- }
- }
- 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审核日期;
- }
- }
- internal DataColumn 状态Column {
- get {
- return this.column状态;
- }
- }
- internal DataColumn 备注Column {
- get {
- return this.column备注;
- }
- }
- 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 编号,
- int 年份,
- int 计划期,
- int 开始日期,
- int 结束日期,
- System.Decimal 期初库存,
- System.Decimal 需求数量,
- System.Decimal MPS数量,
- System.Decimal 生产单数量,
- System.Decimal 预计库存,
- string 记帐人,
- int 修改日期,
- string 审核人,
- int 审核日期,
- string 状态,
- string 备注) {
- 主生产计划Row row主生产计划Row = ((主生产计划Row)(this.NewRow()));
- row主生产计划Row.ItemArray = new object[] {
- 物料编号,
- 编号,
- 年份,
- 计划期,
- 开始日期,
- 结束日期,
- 期初库存,
- 需求数量,
- MPS数量,
- 生产单数量,
- 预计库存,
- 记帐人,
- 修改日期,
- 审核人,
- 审核日期,
- 状态,
- 备注};
- this.Rows.Add(row主生产计划Row);
- return row主生产计划Row;
- }
- public 主生产计划Row FindBy物料编号年份计划期(string 物料编号, int 年份, int 计划期) {
- 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.columnMPS数量 = this.Columns["MPS数量"];
- 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(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(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(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column期初库存);
- this.column需求数量 = new DataColumn("需求数量", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column需求数量);
- this.columnMPS数量 = new DataColumn("MPS数量", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.columnMPS数量);
- this.column生产单数量 = new DataColumn("生产单数量", typeof(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column生产单数量);
- this.column预计库存 = new DataColumn("预计库存", typeof(System.Decimal), 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(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(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物料编号,
- this.column年份,
- this.column计划期}, true));
- this.column物料编号.AllowDBNull = false;
- this.column年份.AllowDBNull = false;
- this.column计划期.AllowDBNull = false;
- this.columnMPS数量.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 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 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 {
- 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;
- }
- }
- public System.Decimal 期初库存 {
- get {
- try {
- return ((System.Decimal)(this[this.table主生产计划.期初库存Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table主生产计划.期初库存Column] = value;
- }
- }
- public System.Decimal 需求数量 {
- get {
- try {
- return ((System.Decimal)(this[this.table主生产计划.需求数量Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table主生产计划.需求数量Column] = value;
- }
- }
- public System.Decimal MPS数量 {
- get {
- return ((System.Decimal)(this[this.table主生产计划.MPS数量Column]));
- }
- set {
- this[this.table主生产计划.MPS数量Column] = value;
- }
- }
- public System.Decimal 生产单数量 {
- get {
- try {
- return ((System.Decimal)(this[this.table主生产计划.生产单数量Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table主生产计划.生产单数量Column] = value;
- }
- }
- public System.Decimal 预计库存 {
- get {
- try {
- return ((System.Decimal)(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 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 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 bool Is编号Null() {
- return this.IsNull(this.table主生产计划.编号Column);
- }
- public void Set编号Null() {
- this[this.table主生产计划.编号Column] = System.Convert.DBNull;
- }
- public bool Is开始日期Null() {
- return this.IsNull(this.table主生产计划.开始日期Column);
- }
- public void Set开始日期Null() {
- this[this.table主生产计划.开始日期Column] = System.Convert.DBNull;
- }
- public bool Is结束日期Null() {
- return this.IsNull(this.table主生产计划.结束日期Column);
- }
- public void Set结束日期Null() {
- this[this.table主生产计划.结束日期Column] = System.Convert.DBNull;
- }
- public bool Is期初库存Null() {
- return this.IsNull(this.table主生产计划.期初库存Column);
- }
- public void Set期初库存Null() {
- this[this.table主生产计划.期初库存Column] = System.Convert.DBNull;
- }
- public bool Is需求数量Null() {
- return this.IsNull(this.table主生产计划.需求数量Column);
- }
- public void Set需求数量Null() {
- this[this.table主生产计划.需求数量Column] = System.Convert.DBNull;
- }
- public bool Is生产单数量Null() {
- return this.IsNull(this.table主生产计划.生产单数量Column);
- }
- public void Set生产单数量Null() {
- this[this.table主生产计划.生产单数量Column] = System.Convert.DBNull;
- }
- public bool Is预计库存Null() {
- return this.IsNull(this.table主生产计划.预计库存Column);
- }
- public void Set预计库存Null() {
- this[this.table主生产计划.预计库存Column] = System.Convert.DBNull;
- }
- public bool Is记帐人Null() {
- return this.IsNull(this.table主生产计划.记帐人Column);
- }
- public void Set记帐人Null() {
- this[this.table主生产计划.记帐人Column] = System.Convert.DBNull;
- }
- public bool Is修改日期Null() {
- return this.IsNull(this.table主生产计划.修改日期Column);
- }
- public void Set修改日期Null() {
- this[this.table主生产计划.修改日期Column] = System.Convert.DBNull;
- }
- public bool Is审核人Null() {
- return this.IsNull(this.table主生产计划.审核人Column);
- }
- public void Set审核人Null() {
- this[this.table主生产计划.审核人Column] = System.Convert.DBNull;
- }
- public bool Is审核日期Null() {
- return this.IsNull(this.table主生产计划.审核日期Column);
- }
- public void Set审核日期Null() {
- this[this.table主生产计划.审核日期Column] = System.Convert.DBNull;
- }
- 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 columnbom状态;
- private DataColumn columnbom信息状态;
- 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损耗率;
- }
- }
- internal DataColumn bom状态Column {
- get {
- return this.columnbom状态;
- }
- }
- internal DataColumn bom信息状态Column {
- get {
- return this.columnbom信息状态;
- }
- }
- 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展开标记;
- }
- }
- 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 物料编号, System.Decimal 需要数量, string 领料车间, string 领料库房, System.Decimal 损耗率, string bom状态, string bom信息状态, string 审核者, int 审核日期, string 其它事项, int 低层码, bool 展开标记) {
- 物料清单Row row物料清单Row = ((物料清单Row)(this.NewRow()));
- row物料清单Row.ItemArray = new object[] {
- 父项编号,
- 物料编号,
- 需要数量,
- 领料车间,
- 领料库房,
- 损耗率,
- bom状态,
- bom信息状态,
- 审核者,
- 审核日期,
- 其它事项,
- 低层码,
- 展开标记};
- this.Rows.Add(row物料清单Row);
- return row物料清单Row;
- }
- public 物料清单Row FindBy父项编号物料编号(string 父项编号, 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.columnbom状态 = this.Columns["bom状态"];
- this.columnbom信息状态 = this.Columns["bom信息状态"];
- 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(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(System.Decimal), 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(System.Decimal), null, System.Data.MappingType.Element);
- this.Columns.Add(this.column损耗率);
- this.columnbom状态 = new DataColumn("bom状态", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.columnbom状态);
- this.columnbom信息状态 = new DataColumn("bom信息状态", typeof(string), null, System.Data.MappingType.Element);
- this.Columns.Add(this.columnbom信息状态);
- 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(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(bool), 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;
- }
- 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 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 System.Decimal 需要数量 {
- get {
- return ((System.Decimal)(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 System.Decimal 损耗率 {
- get {
- try {
- return ((System.Decimal)(this[this.table物料清单.损耗率Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料清单.损耗率Column] = value;
- }
- }
- public string bom状态 {
- get {
- try {
- return ((string)(this[this.table物料清单.bom状态Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料清单.bom状态Column] = value;
- }
- }
- public string bom信息状态 {
- get {
- try {
- return ((string)(this[this.table物料清单.bom信息状态Column]));
- }
- catch (InvalidCastException e) {
- throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
- }
- }
- set {
- this[this.table物料清单.bom信息状态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 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 bool 展开标记 {
- get {
- try {
- return ((bool)(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;
- }
- public bool Is领料库房Null() {
- return this.IsNull(this.table物料清单.领料库房Column);
- }
- public void Set领料库房Null() {
- this[this.table物料清单.领料库房Column] = System.Convert.DBNull;
- }
- public bool Is损耗率Null() {
- return this.IsNull(this.table物料清单.损耗率Column);
- }
- public void Set损耗率Null() {
- this[this.table物料清单.损耗率Column] = System.Convert.DBNull;
- }
- public bool Isbom状态Null() {
- return this.IsNull(this.table物料清单.bom状态Column);
- }
- public void Setbom状态Null() {
- this[this.table物料清单.bom状态Column] = System.Convert.DBNull;
- }
- public bool Isbom信息状态Null() {
- return this.IsNull(this.table物料清单.bom信息状态Column);
- }
- public void Setbom信息状态Null() {
- this[this.table物料清单.bom信息状态Column] = System.Convert.DBNull;
- }
- public bool Is审核者Null() {
- return this.IsNull(this.table物料清单.审核者Column);
- }
- public void Set审核者Null() {
- this[this.table物料清单.审核者Column] = System.Convert.DBNull;
- }
- public bool Is审核日期Null() {
- return this.IsNull(this.table物料清单.审核日期Column);
- }
- public void Set审核日期Null() {
- this[this.table物料清单.审核日期Column] = System.Convert.DBNull;
- }
- public bool Is其它事项Null() {
- return this.IsNull(this.table物料清单.其它事项Column);
- }
- public void Set其它事项Null() {
- this[this.table物料清单.其它事项Column] = System.Convert.DBNull;
- }
- public bool Is低层码Null() {
- return this.IsNull(this.table物料清单.低层码Column);
- }
- public void Set低层码Null() {
- this[this.table物料清单.低层码Column] = System.Convert.DBNull;
- }
- 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;
- }
- }
- }
- }
- }