// Decompiled with JetBrains decompiler
// Type: SE0085.Q2CdB.mdsbodq2c
// Assembly: SE0085Q2CdB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: A5680110-30A2-457F-A920-E4C024719231
// Assembly location: C:\Users\Abishek\Downloads\SchneiderCode_Breaker_09292016\Breaker Schedule-20160930T014118Z\Breaker Schedule\Solution for gathering Breaker Data\DMS\bin\Debug\SE0085Q2CdB.dll

using Microsoft.VisualBasic.CompilerServices;
using System;
using System.Data.Objects.DataClasses;
using System.Diagnostics;
using System.Runtime.Serialization;

namespace SE0085.Q2CdB
{
  [DataContract(IsReference = true)]
  [EdmEntityType(Name = "mdsbodq2c", NamespaceName = "MDSS_dbmor_dModel")]
  [Serializable]
  public class mdsbodq2c : EntityObject
  {
    private string _q2c_nbr;
    private int _bom_nbr;
    private string _ln_itm;
    private string _sub_ln_itm_id;
    private string _shp_sched_id;
    private string _cntry_cd;
    private DateTime? _orig_onsite_dt;
    private DateTime? _curr_onsite_dt;
    private DateTime? _actl_onsite_dt;
    private DateTime? _orig_appdrw_sent_dt;
    private DateTime? _curr_appdrw_sent_dt;
    private DateTime? _actl_appdrw_sent_dt;
    private DateTime? _orig_appdrw_rtn_dt;
    private DateTime? _curr_appdrw_rtn_dt;
    private DateTime? _actl_appdrw_rtn_dt;
    private DateTime? _prod_info_cmpl_dt;
    private DateTime? _rls_dt;
    private DateTime? _carr_pkup_dt;
    private double? _unit_matl_cost;
    private double? _unit_labor_cost;
    private double? _unit_fix_brdn_cost;
    private double? _unit_var_brdn_cost;
    private double? _curr_unit_list_prc;
    private double? _unit_markup_cost;
    private double? _unit_purch_cost;
    private double? _unit_mfg_brdn_cost;
    private string _lqdt_dmg_ind;
    private string _commit_shp_rqstd;
    private DateTime? _shpd_dt;
    private string _insd_sprt_nm;
    private string _sls_rep_id;
    private string _final_leg_cd;
    private DateTime _load_dt;
    private DateTime? _rqstd_plnt_appdrw_sent_dt;
    private DateTime? _apprvd_plnt_appdrw_sent_dt;
    private DateTime? _rqstd_rlsmfg_appdrw_rtn_dt;
    private DateTime? _apprvd_rlsmfg_appdrw_rtn_dt;
    private string _carr;
    private int? _estm_shpschd_dy;
    private int? _estm_aprvl_drw_dy;
    private string _dlvry_cd;
    private string _mfg_loc;
    private short? _co_rev_nbr;
    private short? _ln_nbr;
    private short _carr_lead_tm_dy;
    private string _shpg_loc;
    private DateTime? _asmbly_actl_start_dt;
    private DateTime? _asmbly_schd_start_dt;
    private DateTime? _rlse_shop_actl_dt;
    private DateTime? _rlse_shop_schd_dt;
    private short? _no_of_bays;
    private short _prod_lead_tm_dy;
    private string _ln_cd;
    private Decimal _ext_net_prc;
    private string _srce_loc;
    private DateTime _ord_entry_dt;
    private string _purch_id;
    private DateTime _orig_prom_dt;
    private DateTime _curr_prom_dt;
    private Decimal _ext_list_prc;
    private int _tot_unfld_ord_qty;
    private string _catlg_nbr;
    private string _purch_po_nbr;
    private DateTime _rqst_dt;
    private string _propsl_base_ind;
    private string _terr_cd;
    private DateTime _not_b4_dt;
    private string _prpsl_nm;
    private string _hold_ord_ind;
    private string _q2c_intrnl_id;
    private string _employee_id;

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public string q2c_nbr
    {
      get
      {
        return this._q2c_nbr;
      }
      set
      {
        if (Operators.CompareString(this._q2c_nbr, value, false) == 0)
          return;
        this.ReportPropertyChanging("q2c_nbr");
        this._q2c_nbr = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("q2c_nbr");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public int bom_nbr
    {
      get
      {
        return this._bom_nbr;
      }
      set
      {
        if (this._bom_nbr == value)
          return;
        this.ReportPropertyChanging("bom_nbr");
        this._bom_nbr = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("bom_nbr");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public string ln_itm
    {
      get
      {
        return this._ln_itm;
      }
      set
      {
        if (Operators.CompareString(this._ln_itm, value, false) == 0)
          return;
        this.ReportPropertyChanging("ln_itm");
        this._ln_itm = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("ln_itm");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public string sub_ln_itm_id
    {
      get
      {
        return this._sub_ln_itm_id;
      }
      set
      {
        if (Operators.CompareString(this._sub_ln_itm_id, value, false) == 0)
          return;
        this.ReportPropertyChanging("sub_ln_itm_id");
        this._sub_ln_itm_id = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("sub_ln_itm_id");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public string shp_sched_id
    {
      get
      {
        return this._shp_sched_id;
      }
      set
      {
        if (Operators.CompareString(this._shp_sched_id, value, false) == 0)
          return;
        this.ReportPropertyChanging("shp_sched_id");
        this._shp_sched_id = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("shp_sched_id");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public string cntry_cd
    {
      get
      {
        return this._cntry_cd;
      }
      set
      {
        if (Operators.CompareString(this._cntry_cd, value, false) == 0)
          return;
        this.ReportPropertyChanging("cntry_cd");
        this._cntry_cd = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("cntry_cd");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public DateTime? orig_onsite_dt
    {
      get
      {
        return this._orig_onsite_dt;
      }
      set
      {
        this.ReportPropertyChanging("orig_onsite_dt");
        this._orig_onsite_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("orig_onsite_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? curr_onsite_dt
    {
      get
      {
        return this._curr_onsite_dt;
      }
      set
      {
        this.ReportPropertyChanging("curr_onsite_dt");
        this._curr_onsite_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("curr_onsite_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? actl_onsite_dt
    {
      get
      {
        return this._actl_onsite_dt;
      }
      set
      {
        this.ReportPropertyChanging("actl_onsite_dt");
        this._actl_onsite_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("actl_onsite_dt");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public DateTime? orig_appdrw_sent_dt
    {
      get
      {
        return this._orig_appdrw_sent_dt;
      }
      set
      {
        this.ReportPropertyChanging("orig_appdrw_sent_dt");
        this._orig_appdrw_sent_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("orig_appdrw_sent_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? curr_appdrw_sent_dt
    {
      get
      {
        return this._curr_appdrw_sent_dt;
      }
      set
      {
        this.ReportPropertyChanging("curr_appdrw_sent_dt");
        this._curr_appdrw_sent_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("curr_appdrw_sent_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? actl_appdrw_sent_dt
    {
      get
      {
        return this._actl_appdrw_sent_dt;
      }
      set
      {
        this.ReportPropertyChanging("actl_appdrw_sent_dt");
        this._actl_appdrw_sent_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("actl_appdrw_sent_dt");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public DateTime? orig_appdrw_rtn_dt
    {
      get
      {
        return this._orig_appdrw_rtn_dt;
      }
      set
      {
        this.ReportPropertyChanging("orig_appdrw_rtn_dt");
        this._orig_appdrw_rtn_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("orig_appdrw_rtn_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? curr_appdrw_rtn_dt
    {
      get
      {
        return this._curr_appdrw_rtn_dt;
      }
      set
      {
        this.ReportPropertyChanging("curr_appdrw_rtn_dt");
        this._curr_appdrw_rtn_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("curr_appdrw_rtn_dt");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public DateTime? actl_appdrw_rtn_dt
    {
      get
      {
        return this._actl_appdrw_rtn_dt;
      }
      set
      {
        this.ReportPropertyChanging("actl_appdrw_rtn_dt");
        this._actl_appdrw_rtn_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("actl_appdrw_rtn_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? prod_info_cmpl_dt
    {
      get
      {
        return this._prod_info_cmpl_dt;
      }
      set
      {
        this.ReportPropertyChanging("prod_info_cmpl_dt");
        this._prod_info_cmpl_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("prod_info_cmpl_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? rls_dt
    {
      get
      {
        return this._rls_dt;
      }
      set
      {
        this.ReportPropertyChanging("rls_dt");
        this._rls_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("rls_dt");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public DateTime? carr_pkup_dt
    {
      get
      {
        return this._carr_pkup_dt;
      }
      set
      {
        this.ReportPropertyChanging("carr_pkup_dt");
        this._carr_pkup_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("carr_pkup_dt");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public double? unit_matl_cost
    {
      get
      {
        return this._unit_matl_cost;
      }
      set
      {
        this.ReportPropertyChanging("unit_matl_cost");
        this._unit_matl_cost = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("unit_matl_cost");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public double? unit_labor_cost
    {
      get
      {
        return this._unit_labor_cost;
      }
      set
      {
        this.ReportPropertyChanging("unit_labor_cost");
        this._unit_labor_cost = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("unit_labor_cost");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public double? unit_fix_brdn_cost
    {
      get
      {
        return this._unit_fix_brdn_cost;
      }
      set
      {
        this.ReportPropertyChanging("unit_fix_brdn_cost");
        this._unit_fix_brdn_cost = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("unit_fix_brdn_cost");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public double? unit_var_brdn_cost
    {
      get
      {
        return this._unit_var_brdn_cost;
      }
      set
      {
        this.ReportPropertyChanging("unit_var_brdn_cost");
        this._unit_var_brdn_cost = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("unit_var_brdn_cost");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public double? curr_unit_list_prc
    {
      get
      {
        return this._curr_unit_list_prc;
      }
      set
      {
        this.ReportPropertyChanging("curr_unit_list_prc");
        this._curr_unit_list_prc = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("curr_unit_list_prc");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public double? unit_markup_cost
    {
      get
      {
        return this._unit_markup_cost;
      }
      set
      {
        this.ReportPropertyChanging("unit_markup_cost");
        this._unit_markup_cost = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("unit_markup_cost");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public double? unit_purch_cost
    {
      get
      {
        return this._unit_purch_cost;
      }
      set
      {
        this.ReportPropertyChanging("unit_purch_cost");
        this._unit_purch_cost = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("unit_purch_cost");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public double? unit_mfg_brdn_cost
    {
      get
      {
        return this._unit_mfg_brdn_cost;
      }
      set
      {
        this.ReportPropertyChanging("unit_mfg_brdn_cost");
        this._unit_mfg_brdn_cost = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("unit_mfg_brdn_cost");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public string lqdt_dmg_ind
    {
      get
      {
        return this._lqdt_dmg_ind;
      }
      set
      {
        this.ReportPropertyChanging("lqdt_dmg_ind");
        this._lqdt_dmg_ind = StructuralObject.SetValidValue(value, true);
        this.ReportPropertyChanged("lqdt_dmg_ind");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public string commit_shp_rqstd
    {
      get
      {
        return this._commit_shp_rqstd;
      }
      set
      {
        this.ReportPropertyChanging("commit_shp_rqstd");
        this._commit_shp_rqstd = StructuralObject.SetValidValue(value, true);
        this.ReportPropertyChanged("commit_shp_rqstd");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? shpd_dt
    {
      get
      {
        return this._shpd_dt;
      }
      set
      {
        this.ReportPropertyChanging("shpd_dt");
        this._shpd_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("shpd_dt");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public string insd_sprt_nm
    {
      get
      {
        return this._insd_sprt_nm;
      }
      set
      {
        this.ReportPropertyChanging("insd_sprt_nm");
        this._insd_sprt_nm = StructuralObject.SetValidValue(value, true);
        this.ReportPropertyChanged("insd_sprt_nm");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public string sls_rep_id
    {
      get
      {
        return this._sls_rep_id;
      }
      set
      {
        this.ReportPropertyChanging("sls_rep_id");
        this._sls_rep_id = StructuralObject.SetValidValue(value, true);
        this.ReportPropertyChanged("sls_rep_id");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public string final_leg_cd
    {
      get
      {
        return this._final_leg_cd;
      }
      set
      {
        this.ReportPropertyChanging("final_leg_cd");
        this._final_leg_cd = StructuralObject.SetValidValue(value, true);
        this.ReportPropertyChanged("final_leg_cd");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public DateTime load_dt
    {
      get
      {
        return this._load_dt;
      }
      set
      {
        if (DateTime.Compare(this._load_dt, value) == 0)
          return;
        this.ReportPropertyChanging("load_dt");
        this._load_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("load_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? rqstd_plnt_appdrw_sent_dt
    {
      get
      {
        return this._rqstd_plnt_appdrw_sent_dt;
      }
      set
      {
        this.ReportPropertyChanging("rqstd_plnt_appdrw_sent_dt");
        this._rqstd_plnt_appdrw_sent_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("rqstd_plnt_appdrw_sent_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? apprvd_plnt_appdrw_sent_dt
    {
      get
      {
        return this._apprvd_plnt_appdrw_sent_dt;
      }
      set
      {
        this.ReportPropertyChanging("apprvd_plnt_appdrw_sent_dt");
        this._apprvd_plnt_appdrw_sent_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("apprvd_plnt_appdrw_sent_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? rqstd_rlsmfg_appdrw_rtn_dt
    {
      get
      {
        return this._rqstd_rlsmfg_appdrw_rtn_dt;
      }
      set
      {
        this.ReportPropertyChanging("rqstd_rlsmfg_appdrw_rtn_dt");
        this._rqstd_rlsmfg_appdrw_rtn_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("rqstd_rlsmfg_appdrw_rtn_dt");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public DateTime? apprvd_rlsmfg_appdrw_rtn_dt
    {
      get
      {
        return this._apprvd_rlsmfg_appdrw_rtn_dt;
      }
      set
      {
        this.ReportPropertyChanging("apprvd_rlsmfg_appdrw_rtn_dt");
        this._apprvd_rlsmfg_appdrw_rtn_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("apprvd_rlsmfg_appdrw_rtn_dt");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public string carr
    {
      get
      {
        return this._carr;
      }
      set
      {
        this.ReportPropertyChanging("carr");
        this._carr = StructuralObject.SetValidValue(value, true);
        this.ReportPropertyChanged("carr");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public int? estm_shpschd_dy
    {
      get
      {
        return this._estm_shpschd_dy;
      }
      set
      {
        this.ReportPropertyChanging("estm_shpschd_dy");
        this._estm_shpschd_dy = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("estm_shpschd_dy");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public int? estm_aprvl_drw_dy
    {
      get
      {
        return this._estm_aprvl_drw_dy;
      }
      set
      {
        this.ReportPropertyChanging("estm_aprvl_drw_dy");
        this._estm_aprvl_drw_dy = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("estm_aprvl_drw_dy");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public string dlvry_cd
    {
      get
      {
        return this._dlvry_cd;
      }
      set
      {
        this.ReportPropertyChanging("dlvry_cd");
        this._dlvry_cd = StructuralObject.SetValidValue(value, true);
        this.ReportPropertyChanged("dlvry_cd");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public string mfg_loc
    {
      get
      {
        return this._mfg_loc;
      }
      set
      {
        this.ReportPropertyChanging("mfg_loc");
        this._mfg_loc = StructuralObject.SetValidValue(value, true);
        this.ReportPropertyChanged("mfg_loc");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public short? co_rev_nbr
    {
      get
      {
        return this._co_rev_nbr;
      }
      set
      {
        this.ReportPropertyChanging("co_rev_nbr");
        this._co_rev_nbr = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("co_rev_nbr");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public short? ln_nbr
    {
      get
      {
        return this._ln_nbr;
      }
      set
      {
        this.ReportPropertyChanging("ln_nbr");
        this._ln_nbr = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("ln_nbr");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public short carr_lead_tm_dy
    {
      get
      {
        return this._carr_lead_tm_dy;
      }
      set
      {
        if ((int) this._carr_lead_tm_dy == (int) value)
          return;
        this.ReportPropertyChanging("carr_lead_tm_dy");
        this._carr_lead_tm_dy = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("carr_lead_tm_dy");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public string shpg_loc
    {
      get
      {
        return this._shpg_loc;
      }
      set
      {
        if (Operators.CompareString(this._shpg_loc, value, false) == 0)
          return;
        this.ReportPropertyChanging("shpg_loc");
        this._shpg_loc = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("shpg_loc");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? asmbly_actl_start_dt
    {
      get
      {
        return this._asmbly_actl_start_dt;
      }
      set
      {
        this.ReportPropertyChanging("asmbly_actl_start_dt");
        this._asmbly_actl_start_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("asmbly_actl_start_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? asmbly_schd_start_dt
    {
      get
      {
        return this._asmbly_schd_start_dt;
      }
      set
      {
        this.ReportPropertyChanging("asmbly_schd_start_dt");
        this._asmbly_schd_start_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("asmbly_schd_start_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? rlse_shop_actl_dt
    {
      get
      {
        return this._rlse_shop_actl_dt;
      }
      set
      {
        this.ReportPropertyChanging("rlse_shop_actl_dt");
        this._rlse_shop_actl_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("rlse_shop_actl_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public DateTime? rlse_shop_schd_dt
    {
      get
      {
        return this._rlse_shop_schd_dt;
      }
      set
      {
        this.ReportPropertyChanging("rlse_shop_schd_dt");
        this._rlse_shop_schd_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("rlse_shop_schd_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    public short? no_of_bays
    {
      get
      {
        return this._no_of_bays;
      }
      set
      {
        this.ReportPropertyChanging("no_of_bays");
        this._no_of_bays = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("no_of_bays");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public short prod_lead_tm_dy
    {
      get
      {
        return this._prod_lead_tm_dy;
      }
      set
      {
        if ((int) this._prod_lead_tm_dy == (int) value)
          return;
        this.ReportPropertyChanging("prod_lead_tm_dy");
        this._prod_lead_tm_dy = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("prod_lead_tm_dy");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public string ln_cd
    {
      get
      {
        return this._ln_cd;
      }
      set
      {
        if (Operators.CompareString(this._ln_cd, value, false) == 0)
          return;
        this.ReportPropertyChanging("ln_cd");
        this._ln_cd = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("ln_cd");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public Decimal ext_net_prc
    {
      get
      {
        return this._ext_net_prc;
      }
      set
      {
        if (Decimal.Compare(this._ext_net_prc, value) == 0)
          return;
        this.ReportPropertyChanging("ext_net_prc");
        this._ext_net_prc = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("ext_net_prc");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public string srce_loc
    {
      get
      {
        return this._srce_loc;
      }
      set
      {
        if (Operators.CompareString(this._srce_loc, value, false) == 0)
          return;
        this.ReportPropertyChanging("srce_loc");
        this._srce_loc = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("srce_loc");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public DateTime ord_entry_dt
    {
      get
      {
        return this._ord_entry_dt;
      }
      set
      {
        if (DateTime.Compare(this._ord_entry_dt, value) == 0)
          return;
        this.ReportPropertyChanging("ord_entry_dt");
        this._ord_entry_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("ord_entry_dt");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public string purch_id
    {
      get
      {
        return this._purch_id;
      }
      set
      {
        if (Operators.CompareString(this._purch_id, value, false) == 0)
          return;
        this.ReportPropertyChanging("purch_id");
        this._purch_id = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("purch_id");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public DateTime orig_prom_dt
    {
      get
      {
        return this._orig_prom_dt;
      }
      set
      {
        if (DateTime.Compare(this._orig_prom_dt, value) == 0)
          return;
        this.ReportPropertyChanging("orig_prom_dt");
        this._orig_prom_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("orig_prom_dt");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public DateTime curr_prom_dt
    {
      get
      {
        return this._curr_prom_dt;
      }
      set
      {
        if (DateTime.Compare(this._curr_prom_dt, value) == 0)
          return;
        this.ReportPropertyChanging("curr_prom_dt");
        this._curr_prom_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("curr_prom_dt");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public Decimal ext_list_prc
    {
      get
      {
        return this._ext_list_prc;
      }
      set
      {
        if (Decimal.Compare(this._ext_list_prc, value) == 0)
          return;
        this.ReportPropertyChanging("ext_list_prc");
        this._ext_list_prc = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("ext_list_prc");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public int tot_unfld_ord_qty
    {
      get
      {
        return this._tot_unfld_ord_qty;
      }
      set
      {
        if (this._tot_unfld_ord_qty == value)
          return;
        this.ReportPropertyChanging("tot_unfld_ord_qty");
        this._tot_unfld_ord_qty = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("tot_unfld_ord_qty");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public string catlg_nbr
    {
      get
      {
        return this._catlg_nbr;
      }
      set
      {
        if (Operators.CompareString(this._catlg_nbr, value, false) == 0)
          return;
        this.ReportPropertyChanging("catlg_nbr");
        this._catlg_nbr = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("catlg_nbr");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public string purch_po_nbr
    {
      get
      {
        return this._purch_po_nbr;
      }
      set
      {
        if (Operators.CompareString(this._purch_po_nbr, value, false) == 0)
          return;
        this.ReportPropertyChanging("purch_po_nbr");
        this._purch_po_nbr = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("purch_po_nbr");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public DateTime rqst_dt
    {
      get
      {
        return this._rqst_dt;
      }
      set
      {
        if (DateTime.Compare(this._rqst_dt, value) == 0)
          return;
        this.ReportPropertyChanging("rqst_dt");
        this._rqst_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("rqst_dt");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public string propsl_base_ind
    {
      get
      {
        return this._propsl_base_ind;
      }
      set
      {
        if (Operators.CompareString(this._propsl_base_ind, value, false) == 0)
          return;
        this.ReportPropertyChanging("propsl_base_ind");
        this._propsl_base_ind = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("propsl_base_ind");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public string terr_cd
    {
      get
      {
        return this._terr_cd;
      }
      set
      {
        if (Operators.CompareString(this._terr_cd, value, false) == 0)
          return;
        this.ReportPropertyChanging("terr_cd");
        this._terr_cd = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("terr_cd");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public DateTime not_b4_dt
    {
      get
      {
        return this._not_b4_dt;
      }
      set
      {
        if (DateTime.Compare(this._not_b4_dt, value) == 0)
          return;
        this.ReportPropertyChanging("not_b4_dt");
        this._not_b4_dt = StructuralObject.SetValidValue(value);
        this.ReportPropertyChanged("not_b4_dt");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    [DataMember]
    public string prpsl_nm
    {
      get
      {
        return this._prpsl_nm;
      }
      set
      {
        if (Operators.CompareString(this._prpsl_nm, value, false) == 0)
          return;
        this.ReportPropertyChanging("prpsl_nm");
        this._prpsl_nm = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("prpsl_nm");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public string hold_ord_ind
    {
      get
      {
        return this._hold_ord_ind;
      }
      set
      {
        if (Operators.CompareString(this._hold_ord_ind, value, false) == 0)
          return;
        this.ReportPropertyChanging("hold_ord_ind");
        this._hold_ord_ind = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("hold_ord_ind");
      }
    }

    [DataMember]
    [EdmScalarProperty(EntityKeyProperty = true, IsNullable = false)]
    public string q2c_intrnl_id
    {
      get
      {
        return this._q2c_intrnl_id;
      }
      set
      {
        if (Operators.CompareString(this._q2c_intrnl_id, value, false) == 0)
          return;
        this.ReportPropertyChanging("q2c_intrnl_id");
        this._q2c_intrnl_id = StructuralObject.SetValidValue(value, false);
        this.ReportPropertyChanged("q2c_intrnl_id");
      }
    }

    [EdmScalarProperty(EntityKeyProperty = false, IsNullable = true)]
    [DataMember]
    public string employee_id
    {
      get
      {
        return this._employee_id;
      }
      set
      {
        this.ReportPropertyChanging("employee_id");
        this._employee_id = StructuralObject.SetValidValue(value, true);
        this.ReportPropertyChanged("employee_id");
      }
    }

    [DebuggerNonUserCode]
    public mdsbodq2c()
    {
    }

    public static mdsbodq2c Createmdsbodq2c(string q2c_nbr, int bom_nbr, string ln_itm, string sub_ln_itm_id, string shp_sched_id, string cntry_cd, DateTime load_dt, short carr_lead_tm_dy, string shpg_loc, short prod_lead_tm_dy, string ln_cd, Decimal ext_net_prc, string srce_loc, DateTime ord_entry_dt, string purch_id, DateTime orig_prom_dt, DateTime curr_prom_dt, Decimal ext_list_prc, int tot_unfld_ord_qty, string catlg_nbr, string purch_po_nbr, DateTime rqst_dt, string propsl_base_ind, string terr_cd, DateTime not_b4_dt, string prpsl_nm, string hold_ord_ind, string q2c_intrnl_id)
    {
      return new mdsbodq2c() { q2c_nbr = q2c_nbr, bom_nbr = bom_nbr, ln_itm = ln_itm, sub_ln_itm_id = sub_ln_itm_id, shp_sched_id = shp_sched_id, cntry_cd = cntry_cd, load_dt = load_dt, carr_lead_tm_dy = carr_lead_tm_dy, shpg_loc = shpg_loc, prod_lead_tm_dy = prod_lead_tm_dy, ln_cd = ln_cd, ext_net_prc = ext_net_prc, srce_loc = srce_loc, ord_entry_dt = ord_entry_dt, purch_id = purch_id, orig_prom_dt = orig_prom_dt, curr_prom_dt = curr_prom_dt, ext_list_prc = ext_list_prc, tot_unfld_ord_qty = tot_unfld_ord_qty, catlg_nbr = catlg_nbr, purch_po_nbr = purch_po_nbr, rqst_dt = rqst_dt, propsl_base_ind = propsl_base_ind, terr_cd = terr_cd, not_b4_dt = not_b4_dt, prpsl_nm = prpsl_nm, hold_ord_ind = hold_ord_ind, q2c_intrnl_id = q2c_intrnl_id };
    }
  }
}
