You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
286 lines
12 KiB
286 lines
12 KiB
namespace Warehouse.Models.mesModel
|
|
{
|
|
using System;
|
|
using System.Data.Entity;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
|
|
public partial class mesModel : DbContext
|
|
{
|
|
public mesModel()
|
|
: base("name=mesConn")
|
|
{
|
|
}
|
|
|
|
public virtual DbSet<assembly_basis> assembly_basis { get; set; }
|
|
public virtual DbSet<assembly_status> assembly_status { get; set; }
|
|
public virtual DbSet<cfg_time_cnstrnt_by_wkstype> cfg_time_cnstrnt_by_wkstype { get; set; }
|
|
public virtual DbSet<cfg_time_cnstrnt_by_wo> cfg_time_cnstrnt_by_wo { get; set; }
|
|
public virtual DbSet<config_bom> config_bom { get; set; }
|
|
public virtual DbSet<config_bom_mfg> config_bom_mfg { get; set; }
|
|
public virtual DbSet<config_defect_group> config_defect_group { get; set; }
|
|
public virtual DbSet<config_defect_type> config_defect_type { get; set; }
|
|
public virtual DbSet<config_finalgrade> config_finalgrade { get; set; }
|
|
public virtual DbSet<config_marklabels> config_marklabels { get; set; }
|
|
public virtual DbSet<config_mat_bks> config_mat_bks { get; set; }
|
|
public virtual DbSet<config_mat_cell> config_mat_cell { get; set; }
|
|
public virtual DbSet<config_mat_eva> config_mat_eva { get; set; }
|
|
public virtual DbSet<config_mat_frame> config_mat_frame { get; set; }
|
|
public virtual DbSet<config_mat_glass> config_mat_glass { get; set; }
|
|
public virtual DbSet<config_mat_jbox> config_mat_jbox { get; set; }
|
|
public virtual DbSet<config_pack_rule> config_pack_rule { get; set; }
|
|
public virtual DbSet<config_pack_rule_hist> config_pack_rule_hist { get; set; }
|
|
public virtual DbSet<config_power> config_power { get; set; }
|
|
public virtual DbSet<config_power_current> config_power_current { get; set; }
|
|
public virtual DbSet<config_power_group> config_power_group { get; set; }
|
|
public virtual DbSet<config_process> config_process { get; set; }
|
|
public virtual DbSet<config_process_group> config_process_group { get; set; }
|
|
public virtual DbSet<config_product_process> config_product_process { get; set; }
|
|
public virtual DbSet<config_products> config_products { get; set; }
|
|
public virtual DbSet<config_report_grade> config_report_grade { get; set; }
|
|
public virtual DbSet<config_valid_supplier> config_valid_supplier { get; set; }
|
|
public virtual DbSet<config_wks_attr_allowed> config_wks_attr_allowed { get; set; }
|
|
public virtual DbSet<config_wo_grdcode> config_wo_grdcode { get; set; }
|
|
public virtual DbSet<config_wo_pwrcode> config_wo_pwrcode { get; set; }
|
|
public virtual DbSet<config_workstation> config_workstation { get; set; }
|
|
public virtual DbSet<config_workstation_attribute> config_workstation_attribute { get; set; }
|
|
public virtual DbSet<config_workstation_idle> config_workstation_idle { get; set; }
|
|
public virtual DbSet<defect> defects { get; set; }
|
|
public virtual DbSet<df_areas> df_areas { get; set; }
|
|
public virtual DbSet<df_familys> df_familys { get; set; }
|
|
public virtual DbSet<df_instance_attribute> df_instance_attribute { get; set; }
|
|
public virtual DbSet<df_lines> df_lines { get; set; }
|
|
public virtual DbSet<df_miscellaneous> df_miscellaneous { get; set; }
|
|
public virtual DbSet<df_pallet_status> df_pallet_status { get; set; }
|
|
public virtual DbSet<df_processes> df_processes { get; set; }
|
|
public virtual DbSet<df_serial_status> df_serial_status { get; set; }
|
|
public virtual DbSet<df_shift_type> df_shift_type { get; set; }
|
|
public virtual DbSet<df_source> df_source { get; set; }
|
|
public virtual DbSet<df_source_group> df_source_group { get; set; }
|
|
public virtual DbSet<df_status_container> df_status_container { get; set; }
|
|
public virtual DbSet<df_wo_status> df_wo_status { get; set; }
|
|
public virtual DbSet<df_wo_type> df_wo_type { get; set; }
|
|
public virtual DbSet<error_log> error_log { get; set; }
|
|
public virtual DbSet<labor_output> labor_output { get; set; }
|
|
public virtual DbSet<oem_assemblies> oem_assemblies { get; set; }
|
|
public virtual DbSet<oem_assembly> oem_assembly { get; set; }
|
|
public virtual DbSet<oem_assembly_2> oem_assembly_2 { get; set; }
|
|
public virtual DbSet<oem_assembly_control> oem_assembly_control { get; set; }
|
|
public virtual DbSet<oem_assembly_status> oem_assembly_status { get; set; }
|
|
public virtual DbSet<oem_assembly_upload> oem_assembly_upload { get; set; }
|
|
public virtual DbSet<oem_pallets> oem_pallets { get; set; }
|
|
public virtual DbSet<pack_containers> pack_containers { get; set; }
|
|
public virtual DbSet<pack_material_lot> pack_material_lot { get; set; }
|
|
public virtual DbSet<pack_pallets> pack_pallets { get; set; }
|
|
public virtual DbSet<pallets_check> pallets_check { get; set; }
|
|
public virtual DbSet<pallets_check_deleted_hist> pallets_check_deleted_hist { get; set; }
|
|
public virtual DbSet<pallets_deleted_hist> pallets_deleted_hist { get; set; }
|
|
public virtual DbSet<pallets_module_replace> pallets_module_replace { get; set; }
|
|
public virtual DbSet<pallets_recyclable> pallets_recyclable { get; set; }
|
|
public virtual DbSet<qc_visit> qc_visit { get; set; }
|
|
public virtual DbSet<rfid_readlog> rfid_readlog { get; set; }
|
|
public virtual DbSet<rfid_writedlog> rfid_writedlog { get; set; }
|
|
public virtual DbSet<seq_ctrl_assembly> seq_ctrl_assembly { get; set; }
|
|
public virtual DbSet<seq_ctrl_assembly_jy> seq_ctrl_assembly_jy { get; set; }
|
|
public virtual DbSet<seq_ctrl_assembly_oem> seq_ctrl_assembly_oem { get; set; }
|
|
public virtual DbSet<seq_ctrl_checknbr> seq_ctrl_checknbr { get; set; }
|
|
public virtual DbSet<seq_ctrl_container> seq_ctrl_container { get; set; }
|
|
public virtual DbSet<seq_ctrl_container_jy> seq_ctrl_container_jy { get; set; }
|
|
public virtual DbSet<seq_ctrl_container_oem> seq_ctrl_container_oem { get; set; }
|
|
public virtual DbSet<seq_ctrl_material_lot> seq_ctrl_material_lot { get; set; }
|
|
public virtual DbSet<seq_ctrl_pallet> seq_ctrl_pallet { get; set; }
|
|
public virtual DbSet<seq_ctrl_pallet_jy> seq_ctrl_pallet_jy { get; set; }
|
|
public virtual DbSet<seq_ctrl_pallet_oem> seq_ctrl_pallet_oem { get; set; }
|
|
public virtual DbSet<seq_ctrl_wo> seq_ctrl_wo { get; set; }
|
|
public virtual DbSet<seq_ctrl_wo_zx> seq_ctrl_wo_zx { get; set; }
|
|
public virtual DbSet<trace_componnet_lot> trace_componnet_lot { get; set; }
|
|
public virtual DbSet<trace_workstation_visit> trace_workstation_visit { get; set; }
|
|
public virtual DbSet<valid_plant> valid_plant { get; set; }
|
|
public virtual DbSet<wks_component> wks_component { get; set; }
|
|
public virtual DbSet<wo_material_issue> wo_material_issue { get; set; }
|
|
public virtual DbSet<wo_mfg> wo_mfg { get; set; }
|
|
public virtual DbSet<wo_miscellaneous> wo_miscellaneous { get; set; }
|
|
public virtual DbSet<df_check_status> df_check_status { get; set; }
|
|
public virtual DbSet<df_pallet_station> df_pallet_station { get; set; }
|
|
public virtual DbSet<df_wks_visit_type> df_wks_visit_type { get; set; }
|
|
public virtual DbSet<pallets_check_temp> pallets_check_temp { get; set; }
|
|
public virtual DbSet<df_order_type> df_order_type { get; set; }
|
|
//bomid表 add by xue lei on 2019-12-28
|
|
public virtual DbSet<config_bom_id> config_bom_id { get; set; }
|
|
protected override void OnModelCreating(DbModelBuilder modelBuilder)
|
|
{
|
|
//bomid表 add by xue lei on 2019-12-28
|
|
modelBuilder.Entity<config_bom_id>()
|
|
.Property(e => e.serial_requirement)
|
|
.HasPrecision(4, 2);
|
|
|
|
modelBuilder.Entity<config_bom_id>()
|
|
.Property(e => e.lost_ratio)
|
|
.HasPrecision(5, 2);
|
|
|
|
modelBuilder.Entity<config_bom>()
|
|
.Property(e => e.serial_requirement)
|
|
.HasPrecision(4, 2);
|
|
|
|
modelBuilder.Entity<config_bom>()
|
|
.Property(e => e.lost_ratio)
|
|
.HasPrecision(5, 2);
|
|
|
|
modelBuilder.Entity<config_bom_mfg>()
|
|
.Property(e => e.serial_requirement)
|
|
.HasPrecision(4, 2);
|
|
|
|
modelBuilder.Entity<config_bom_mfg>()
|
|
.Property(e => e.lost_ratio)
|
|
.HasPrecision(5, 2);
|
|
|
|
modelBuilder.Entity<config_power>()
|
|
.Property(e => e.lower_power)
|
|
.HasPrecision(5, 2);
|
|
|
|
modelBuilder.Entity<config_power>()
|
|
.Property(e => e.upper_power)
|
|
.HasPrecision(5, 2);
|
|
|
|
modelBuilder.Entity<config_power_current>()
|
|
.Property(e => e.lower_current)
|
|
.HasPrecision(6, 4);
|
|
|
|
modelBuilder.Entity<config_power_current>()
|
|
.Property(e => e.upper_current)
|
|
.HasPrecision(6, 4);
|
|
|
|
modelBuilder.Entity<config_wo_pwrcode>()
|
|
.Property(e => e.lower_power)
|
|
.HasPrecision(5, 2);
|
|
|
|
modelBuilder.Entity<config_wo_pwrcode>()
|
|
.Property(e => e.upper_power)
|
|
.HasPrecision(5, 2);
|
|
|
|
modelBuilder.Entity<oem_assemblies>()
|
|
.Property(e => e.pmax)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assemblies>()
|
|
.Property(e => e.voc)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assemblies>()
|
|
.Property(e => e.isc)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assemblies>()
|
|
.Property(e => e.ff)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assemblies>()
|
|
.Property(e => e.vpm)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assemblies>()
|
|
.Property(e => e.ipm)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assemblies>()
|
|
.Property(e => e.env_temp)
|
|
.HasPrecision(6, 4);
|
|
|
|
modelBuilder.Entity<oem_assemblies>()
|
|
.Property(e => e.surf_temp)
|
|
.HasPrecision(6, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly>()
|
|
.Property(e => e.pmax)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly>()
|
|
.Property(e => e.voc)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly>()
|
|
.Property(e => e.isc)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly>()
|
|
.Property(e => e.ff)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly>()
|
|
.Property(e => e.vpm)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly>()
|
|
.Property(e => e.ipm)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly>()
|
|
.Property(e => e.env_temp)
|
|
.HasPrecision(6, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly>()
|
|
.Property(e => e.surf_temp)
|
|
.HasPrecision(6, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly_2>()
|
|
.Property(e => e.pmax)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly_2>()
|
|
.Property(e => e.voc)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly_2>()
|
|
.Property(e => e.isc)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly_2>()
|
|
.Property(e => e.ff)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly_2>()
|
|
.Property(e => e.vpm)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly_2>()
|
|
.Property(e => e.ipm)
|
|
.HasPrecision(7, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly_2>()
|
|
.Property(e => e.env_temp)
|
|
.HasPrecision(6, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly_2>()
|
|
.Property(e => e.surf_temp)
|
|
.HasPrecision(6, 4);
|
|
|
|
modelBuilder.Entity<oem_assembly_control>()
|
|
.Property(e => e.visit_type)
|
|
.IsFixedLength();
|
|
|
|
modelBuilder.Entity<oem_assembly_status>()
|
|
.Property(e => e.serial_nbr)
|
|
.IsFixedLength();
|
|
|
|
modelBuilder.Entity<pack_material_lot>()
|
|
.Property(e => e.lot_qty)
|
|
.HasPrecision(10, 4);
|
|
|
|
modelBuilder.Entity<pack_material_lot>()
|
|
.Property(e => e.lot_qty_remaining)
|
|
.HasPrecision(10, 4);
|
|
|
|
modelBuilder.Entity<pack_material_lot>()
|
|
.Property(e => e.serial_requirement)
|
|
.HasPrecision(4, 2);
|
|
|
|
modelBuilder.Entity<pallets_recyclable>()
|
|
.Property(e => e.in_use)
|
|
.IsFixedLength();
|
|
|
|
modelBuilder.Entity<wo_material_issue>()
|
|
.Property(e => e.issue_qty)
|
|
.HasPrecision(10, 0);
|
|
}
|
|
}
|
|
}
|
|
|