| | |
| | | /// </summary> |
| | | [Display(Name = "龿¡æº")] |
| | | [Column(TypeName = "bit")] |
| | | |
| | | [Editable(true)] |
| | | public bool skip_op_3 { get; set; } |
| | | |
| | | /// <summary> |
| | | ///AGV宿æ°é |
| | | /// </summary> |
| | | [Display(Name = "AGV宿æ°é")] |
| | | [Column(TypeName = "int")] |
| | | [Editable(true)] |
| | | public int? agv_finishNum { get; set; } |
| | | } |
| | | } |
| | |
| | | return; |
| | | } |
| | | #region ä¿¡æ¯äº¤äº |
| | | info_interaction.wheeldata(client); |
| | | /*info_interaction.wheeldata(client); |
| | | info_interaction.scan(client); |
| | | info_interaction.labeller(client); |
| | | info_interaction.labeller(client);*/ |
| | | #endregion |
| | | #region 车轮信æ¯è¿½æº¯ |
| | | Wheel_info_trace.Wheel_online(client); |
| | | /*Wheel_info_trace.Wheel_online(client); |
| | | Wheel_info_trace.Wheel_machine(client); |
| | | Wheel_info_trace.Wheel_offline(client); |
| | | Wheel_info_trace.Wheel_offline(client);*/ |
| | | #endregion |
| | | |
| | | |
| | | #region ä¿¡æ¯éé |
| | | WheelDBItem.VK4WheelDBItem = GetDate.GetWheelDate(client); |
| | | VKDBItem.VK4DBItem = GetDate.GetVKDate(client); |
| | |
| | | return; |
| | | } |
| | | #region ä¿¡æ¯äº¤äº |
| | | info_interaction.wheeldata(client); |
| | | /*info_interaction.wheeldata(client); |
| | | info_interaction.scan(client); |
| | | info_interaction.labeller(client); |
| | | info_interaction.labeller(client);*/ |
| | | #endregion |
| | | #region 车轮信æ¯è¿½æº¯ |
| | | Wheel_info_trace.Wheel_online(client); |
| | | /* Wheel_info_trace.Wheel_online(client); |
| | | Wheel_info_trace.Wheel_machine(client); |
| | | Wheel_info_trace.Wheel_offline(client); |
| | | Wheel_info_trace.Wheel_offline(client);*/ |
| | | #endregion |
| | | #region ä¿¡æ¯éé |
| | | WheelDBItem.VK5WheelDBItem = GetDate.GetWheelDate(client); |
| | |
| | | { |
| | | foreach (var mes_head in mes_head_jjgs) |
| | | { |
| | | var inventorys = inventoryRepository.Find(x => x.jobID == mes_head.jobID).ToList(); |
| | | if (inventorys.Count == mes_head.quantity || inventorys.Count==0) |
| | | if (mes_head.quantity == mes_head.agv_finishNum) |
| | | AddHtyMesWork(mes_head, mes_HeadRepository); |
| | | } |
| | | var k = "å è½½å®æ"; |
| | | } |
| | | #endregion |
| | | } |
| | |
| | | "Connection": { |
| | | "DBType": "MsSql", //MySql/MsSql/PgSql //æ°æ®åºç±»åï¼å¦æä½¿ç¨çæ¯sqlserveræ¤å¤åºè®¾ç½®ä¸ºMsSql |
| | | //sqlserverè¿æ¥å符串P@ssw0rd |
| | | //"DbConnectionString": "Data Source=192.168.12.101;Initial Catalog=WIDESEA_DB;Persist Security Info=True;User ID=sa;Password=123456;Connect Timeout=500;", |
| | | "DbConnectionString": "Data Source=.;Initial Catalog=WIDESEA_DB_TY_TY;Persist Security Info=True;User ID=sa;Password=123456;Connect Timeout=500;", |
| | | "DbConnectionString": "Data Source=192.168.12.101;Initial Catalog=WIDESEA_DB;Persist Security Info=True;User ID=sa;Password=123456;Connect Timeout=500;", |
| | | //"DbConnectionString": "Data Source=.;Initial Catalog=WIDESEA_DB_TY_TY;Persist Security Info=True;User ID=sa;Password=123456;Connect Timeout=500;", |
| | | |
| | | //mysqlè¿æ¥å符串(å级EFCore3.1å°æ¶å·²å°mysqlè¿æ¥å符串修æ¹,2019-12-20) |
| | | // "DbConnectionString": " Data Source=127.0.0.1;Database=netcoredev;AllowLoadLocalInfile=true;User ID=root;Password=123456;allowPublicKeyRetrieval=true;pooling=true;CharSet=utf8;port=3306;sslmode=none;", |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <!-- |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ä¸å¡è¯·å¨@/extension/widesea_wcs/tomes/dt_mes_detail.jsæ¤å¤ç¼å |
| | | --> |
| | | <template> |
| | | <view-grid ref="grid" |
| | | :columns="columns" |
| | | :detail="detail" |
| | | :editFormFields="editFormFields" |
| | | :editFormOptions="editFormOptions" |
| | | :searchFormFields="searchFormFields" |
| | | :searchFormOptions="searchFormOptions" |
| | | :table="table" |
| | | :extend="extend"> |
| | | </view-grid> |
| | | </template> |
| | | <script> |
| | | import extend from "@/extension/widesea_wcs/tomes/dt_mes_detail.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'mes_detail_id', |
| | | footer: "Foots", |
| | | cnName: 'å·¥åå表', |
| | | name: 'tomes/dt_mes_detail', |
| | | url: "/dt_mes_detail/", |
| | | sortName: "mes_detail_id" |
| | | }); |
| | | const editFormFields = ref({}); |
| | | const editFormOptions = ref([]); |
| | | const searchFormFields = ref({}); |
| | | const searchFormOptions = ref([]); |
| | | const columns = ref([{field:'mes_detail_id',title:'å·¥åæç»ID',type:'guid',sort:true,width:110,hidden:true,readonly:true,require:true,align:'left'}, |
| | | {field:'jobID',title:'å·¥åç¼å·',type:'string',width:110,align:'left',sort:true}, |
| | | {field:'heatID',title:'ç代å·',type:'string',width:110,align:'left'}, |
| | | {field:'billetID',title:'é¢å¯å·',type:'int',width:110,align:'left'}, |
| | | {field:'SN',title:'车轮SNå·',type:'string',width:110,align:'left'}, |
| | | {field:'heatBatchID',title:'çå¤çæ¹æ¬¡',type:'string',width:110,align:'left'}, |
| | | {field:'mes_headID',title:'å·¥å头表ID',type:'guid',width:110,align:'left'}, |
| | | {field:'Status',title:'å·¥åç¶æ',type:'string',width:110,align:'left'}, |
| | | {field:'FinishTime',title:'宿æ¶é´',type:'datetime',width:150,align:'left',sort:true}]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "" |
| | | }); |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | }; |
| | | }, |
| | | }); |
| | | </script> |
| | |
| | | |
| | | namespace WIDESEA_Entity.DomainModels |
| | | { |
| | | [Entity(TableCnName = "å·¥å详ç»ä¿¡æ¯", TableName = "dt_mes_detail")] |
| | | public partial class dt_mes_detail : BaseEntity |
| | | [Entity(TableCnName = "å·¥åå表",TableName = "dt_mes_detail")] |
| | | public partial class dt_mes_detail:BaseEntity |
| | | { |
| | | /// <summary> |
| | | ///å·¥åæç»ID |
| | | /// </summary> |
| | | [Key] |
| | | [Display(Name = "mes_detail_id")] |
| | | [Column(TypeName = "uniqueidentifier")] |
| | | [Required(AllowEmptyStrings = false)] |
| | | public Guid mes_detail_id { get; set; } |
| | | ///å·¥åæç»ID |
| | | /// </summary> |
| | | [Key] |
| | | [Display(Name ="å·¥åæç»ID")] |
| | | [Column(TypeName="uniqueidentifier")] |
| | | [Editable(true)] |
| | | [Required(AllowEmptyStrings=false)] |
| | | public Guid mes_detail_id { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å·¥å头表ID |
| | | /// </summary> |
| | | [Display(Name = "mes_headID")] |
| | | [Column(TypeName = "uniqueidentifier")] |
| | | [Required(AllowEmptyStrings = false)] |
| | | public Guid mes_headID { get; set; } |
| | | /// <summary> |
| | | ///å·¥åç¼å· |
| | | /// </summary> |
| | | [Display(Name ="å·¥åç¼å·")] |
| | | [MaxLength(40)] |
| | | [Column(TypeName="nvarchar(40)")] |
| | | [Editable(true)] |
| | | public string jobID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å·¥ååå· |
| | | /// </summary> |
| | | [Display(Name = "jobID")] |
| | | [MaxLength(40)] |
| | | [Column(TypeName = "nvarchar(40)")] |
| | | [Editable(true)] |
| | | public string jobID { get; set; } |
| | | /// <summary> |
| | | ///çä»£å· |
| | | /// </summary> |
| | | [Display(Name ="ç代å·")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName="nvarchar(20)")] |
| | | [Editable(true)] |
| | | public string heatID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///çä»£å· |
| | | /// </summary> |
| | | [Display(Name = "ç代å·")] |
| | | [MaxLength(50)] |
| | | [Column(TypeName = "nvarchar(50)")] |
| | | [Editable(true)] |
| | | public string heatID { get; set; } |
| | | /// <summary> |
| | | ///é¢å¯å· |
| | | /// </summary> |
| | | [Display(Name ="é¢å¯å·")] |
| | | [Column(TypeName="int")] |
| | | [Editable(true)] |
| | | public int? billetID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///é¢å¯å· |
| | | /// </summary> |
| | | [Display(Name = "é¢å¯å·")] |
| | | [Column(TypeName = "int")] |
| | | [Editable(true)] |
| | | public int? billetID { get; set; } |
| | | /// <summary> |
| | | ///车轮SNå· |
| | | /// </summary> |
| | | [Display(Name ="车轮SNå·")] |
| | | [MaxLength(50)] |
| | | [Column(TypeName="nvarchar(50)")] |
| | | [Editable(true)] |
| | | public string SN { get; set; } |
| | | |
| | | /// <summary> |
| | | ///车轮SNå· |
| | | /// </summary> |
| | | [Display(Name = "车轮SNå·")] |
| | | [MaxLength(50)] |
| | | [Column(TypeName = "nvarchar(50)")] |
| | | [Editable(true)] |
| | | public string SN { get; set; } |
| | | /// <summary> |
| | | ///çå¤çæ¹æ¬¡ |
| | | /// </summary> |
| | | [Display(Name ="çå¤çæ¹æ¬¡")] |
| | | [MaxLength(30)] |
| | | [Column(TypeName="nvarchar(30)")] |
| | | [Editable(true)] |
| | | public string heatBatchID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///çå¤çæ¹æ¬¡ |
| | | /// </summary> |
| | | [Display(Name = "çå¤çæ¹æ¬¡")] |
| | | [MaxLength(30)] |
| | | [Column(TypeName = "varchar(30)")] |
| | | [Editable(true)] |
| | | public string heatBatchID { get; set; } |
| | | /// <summary> |
| | | ///å·¥å头表ID |
| | | /// </summary> |
| | | [Display(Name ="å·¥å头表ID")] |
| | | [Column(TypeName="uniqueidentifier")] |
| | | [Editable(true)] |
| | | public Guid? mes_headID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///宿æ¶é´ |
| | | /// </summary> |
| | | [Display(Name = "宿æ¶é´")] |
| | | [Column(TypeName = "datetime")] |
| | | [Editable(true)] |
| | | public DateTime? FinishTime { get; set; } |
| | | /// <summary> |
| | | ///å·¥åç¶æ |
| | | /// </summary> |
| | | [Display(Name ="å·¥åç¶æ")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName="nvarchar(20)")] |
| | | public string Status { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å·¥åç¶æ |
| | | /// </summary> |
| | | [Display(Name = "å·¥åç¶æ")] |
| | | [MaxLength(20)] |
| | | [Column(TypeName = "nvarchar(20)")] |
| | | [Editable(true)] |
| | | public string Status { get; set; } |
| | | /// <summary> |
| | | ///宿æ¶é´ |
| | | /// </summary> |
| | | [Display(Name ="宿æ¶é´")] |
| | | [Column(TypeName="datetime")] |
| | | public DateTime? FinishTime { get; set; } |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | [Column(TypeName = "bit")] |
| | | [Editable(true)] |
| | | public bool skip_op_3 { get; set; } |
| | | |
| | | /// <summary> |
| | | ///AGV宿æ°é |
| | | /// </summary> |
| | | [Display(Name = "AGV宿æ°é")] |
| | | [Column(TypeName = "int")] |
| | | [Editable(true)] |
| | | public int? agv_finishNum { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using WIDESEA_Entity.MappingConfiguration; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using Microsoft.EntityFrameworkCore.Metadata.Builders; |
| | | |
| | | namespace WIDESEA_Entity.MappingConfiguration |
| | | { |
| | | public class dt_mes_detailMapConfig : EntityMappingConfiguration<dt_mes_detail> |
| | | { |
| | | public override void Map(EntityTypeBuilder<dt_mes_detail> |
| | | builderTable) |
| | | { |
| | | //b.Property(x => x.StorageName).HasMaxLength(45); |
| | | } |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | using WIDESEA_Entity.MappingConfiguration; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using Microsoft.EntityFrameworkCore.Metadata.Builders; |
| | | |
| | | namespace WIDESEA_Entity.MappingConfiguration |
| | | { |
| | | public class dt_mes_headMapConfig : EntityMappingConfiguration<dt_mes_head> |
| | | { |
| | | public override void Map(EntityTypeBuilder<dt_mes_head> |
| | | builderTable) |
| | | { |
| | | //b.Property(x => x.StorageName).HasMaxLength(45); |
| | | } |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *Repositoryæä¾æ°æ®åºæä½ï¼å¦æè¦å¢å æ°æ®åºæä½è¯·å¨å½åç®å½ä¸Partialæä»¶å¤¹Idt_mes_detailRepositoryç¼åæ¥å£ |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | namespace WIDESEA_WCS.IRepositories |
| | | { |
| | | public partial interface Idt_mes_detailRepository : IDependency,IRepository<dt_mes_detail> |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WCS.IServices |
| | | { |
| | | public partial interface Idt_mes_detailService : IService<dt_mes_detail> |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *ææå
³äºdt_mes_detailç±»çä¸å¡ä»£ç æ¥å£åºå¨æ¤å¤ç¼å |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_Core.Utilities; |
| | | using System.Linq.Expressions; |
| | | namespace WIDESEA_WCS.IServices |
| | | { |
| | | public partial interface Idt_mes_detailService |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *Repositoryæä¾æ°æ®åºæä½ï¼å¦æè¦å¢å æ°æ®åºæä½è¯·å¨å½åç®å½ä¸Partialæä»¶å¤¹dt_mes_detailRepositoryç¼å代ç |
| | | */ |
| | | using WIDESEA_WCS.IRepositories; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.EFDbContext; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WCS.Repositories |
| | | { |
| | | public partial class dt_mes_detailRepository : RepositoryBase<dt_mes_detail> , Idt_mes_detailRepository |
| | | { |
| | | public dt_mes_detailRepository(VOLContext dbContext) |
| | | : base(dbContext) |
| | | { |
| | | |
| | | } |
| | | public static Idt_mes_detailRepository Instance |
| | | { |
| | | get { return AutofacContainerModule.GetService<Idt_mes_detailRepository>(); } } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *ææå
³äºdt_mes_detailç±»çä¸å¡ä»£ç åºå¨æ¤å¤ç¼å |
| | | *å¯ä½¿ç¨repository.è°ç¨å¸¸ç¨æ¹æ³ï¼è·åEF/Dapperçä¿¡æ¯ |
| | | *妿éè¦äºå¡è¯·ä½¿ç¨repository.DbContextBeginTransaction |
| | | *ä¹å¯ä½¿ç¨DBServerProvider.æå¨è·åæ°æ®åºç¸å
³ä¿¡æ¯ |
| | | *ç¨æ·ä¿¡æ¯ãæéãè§è²ç使ç¨UserContext.Currentæä½ |
| | | *dt_mes_detailService对å¢ãå ãæ¹æ¥ã导å
¥ã导åºãå®¡æ ¸ä¸å¡ä»£ç æ©å±åç
§ServiceFunFilter |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using System.Linq; |
| | | using WIDESEA_Core.Utilities; |
| | | using System.Linq.Expressions; |
| | | using WIDESEA_Core.Extensions; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.AspNetCore.Http; |
| | | using WIDESEA_WCS.IRepositories; |
| | | |
| | | namespace WIDESEA_WCS.Services |
| | | { |
| | | public partial class dt_mes_detailService |
| | | { |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | private readonly Idt_mes_detailRepository _repository;//è®¿é®æ°æ®åº |
| | | |
| | | [ActivatorUtilitiesConstructor] |
| | | public dt_mes_detailService( |
| | | Idt_mes_detailRepository dbRepository, |
| | | IHttpContextAccessor httpContextAccessor |
| | | ) |
| | | : base(dbRepository) |
| | | { |
| | | _httpContextAccessor = httpContextAccessor; |
| | | _repository = dbRepository; |
| | | //å¤ç§æ·ä¼ç¨å°è¿init代ç ï¼å
¶ä»æ
åµå¯ä»¥ä¸ç¨ |
| | | //base.Init(dbRepository); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,æ¤å¤ä»»ä½æ´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ææä¸å¡ç¼åå
¨é¨åºå¨Partialæä»¶å¤¹ä¸dt_mes_detailServiceä¸Idt_mes_detailServiceä¸ç¼å |
| | | */ |
| | | using WIDESEA_WCS.IRepositories; |
| | | using WIDESEA_WCS.IServices; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WCS.Services |
| | | { |
| | | public partial class dt_mes_detailService : ServiceBase<dt_mes_detail, Idt_mes_detailRepository> |
| | | , Idt_mes_detailService, IDependency |
| | | { |
| | | public dt_mes_detailService(Idt_mes_detailRepository repository) |
| | | : base(repository) |
| | | { |
| | | Init(repository); |
| | | } |
| | | public static Idt_mes_detailService Instance |
| | | { |
| | | get { return AutofacContainerModule.GetService<Idt_mes_detailService>(); } } |
| | | } |
| | | } |
| | |
| | | using WIDESEA_WMS.IRepositories; |
| | | using WIDESEA_WMS.Repositories; |
| | | using static FreeSql.Internal.GlobalFilter; |
| | | using static System.Collections.Specialized.BitVector32; |
| | | |
| | | namespace WIDESEA_WMS.Common |
| | | { |
| | |
| | | VOLContext context = new VOLContext(); |
| | | Idt_agvtask_htyRepository htyRepository = new dt_agvtask_htyRepository(context); |
| | | Idt_agvtaskRepository repository = new dt_agvtaskRepository(context); |
| | | Idt_mes_headRepository idt_Mes_Head = new dt_mes_headRepository(context); |
| | | Idt_mes_detailRepository idt_Mes_Detail=new dt_mes_detailRepository(context); |
| | | |
| | | if (task.agv_worktype == 17) |
| | | { |
| | | string[] bindSNs = task.bindSN.Split(","); |
| | | foreach (var item in bindSNs) |
| | | { |
| | | var mes_detail = idt_Mes_Detail.Find(x => x.SN == item).FirstOrDefault(); |
| | | var mes_head= idt_Mes_Head.Find(x=>x.jobID==mes_detail.jobID).FirstOrDefault(); |
| | | if(mes_head != null) |
| | | { |
| | | |
| | | mes_head.agv_finishNum = mes_head.agv_finishNum == null ? task.agv_qty : mes_head.agv_finishNum + task.agv_qty; |
| | | idt_Mes_Head.Update(mes_head, x => new { x.agv_finishNum }, true); |
| | | break; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | dt_agvtask_hty agvtask_Hty = new dt_agvtask_hty() |
| | | { |
| | | hty_pkid = Guid.NewGuid(), |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *Repositoryæä¾æ°æ®åºæä½ï¼å¦æè¦å¢å æ°æ®åºæä½è¯·å¨å½åç®å½ä¸Partialæä»¶å¤¹Idt_mes_detailRepositoryç¼åæ¥å£ |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | namespace WIDESEA_WMS.IRepositories |
| | | { |
| | | public partial interface Idt_mes_detailRepository : IDependency,IRepository<dt_mes_detail> |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *Repositoryæä¾æ°æ®åºæä½ï¼å¦æè¦å¢å æ°æ®åºæä½è¯·å¨å½åç®å½ä¸Partialæä»¶å¤¹Idt_mes_headRepositoryç¼åæ¥å£ |
| | | */ |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | namespace WIDESEA_WMS.IRepositories |
| | | { |
| | | public partial interface Idt_mes_headRepository : IDependency,IRepository<dt_mes_head> |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *ææå
³äºdt_mes_headsç±»çä¸å¡ä»£ç æ¥å£åºå¨æ¤å¤ç¼å |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_Core.Utilities; |
| | | using System.Linq.Expressions; |
| | | namespace WIDESEA_WMS.IServices |
| | | { |
| | | public partial interface Idt_mes_headsService |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WMS.IServices |
| | | { |
| | | public partial interface Idt_mes_detailService : IService<dt_mes_detail> |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WMS.IServices |
| | | { |
| | | public partial interface Idt_mes_headService : IService<dt_mes_head> |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *ææå
³äºdt_mes_detailç±»çä¸å¡ä»£ç æ¥å£åºå¨æ¤å¤ç¼å |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_Core.Utilities; |
| | | using System.Linq.Expressions; |
| | | namespace WIDESEA_WMS.IServices |
| | | { |
| | | public partial interface Idt_mes_detailService |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *ææå
³äºdt_mes_headç±»çä¸å¡ä»£ç æ¥å£åºå¨æ¤å¤ç¼å |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_Core.Utilities; |
| | | using System.Linq.Expressions; |
| | | namespace WIDESEA_WMS.IServices |
| | | { |
| | | public partial interface Idt_mes_headService |
| | | { |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *Repositoryæä¾æ°æ®åºæä½ï¼å¦æè¦å¢å æ°æ®åºæä½è¯·å¨å½åç®å½ä¸Partialæä»¶å¤¹dt_mes_detailRepositoryç¼å代ç |
| | | */ |
| | | using WIDESEA_WMS.IRepositories; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.EFDbContext; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WMS.Repositories |
| | | { |
| | | public partial class dt_mes_detailRepository : RepositoryBase<dt_mes_detail> , Idt_mes_detailRepository |
| | | { |
| | | public dt_mes_detailRepository(VOLContext dbContext) |
| | | : base(dbContext) |
| | | { |
| | | |
| | | } |
| | | public static Idt_mes_detailRepository Instance |
| | | { |
| | | get { return AutofacContainerModule.GetService<Idt_mes_detailRepository>(); } } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *Repositoryæä¾æ°æ®åºæä½ï¼å¦æè¦å¢å æ°æ®åºæä½è¯·å¨å½åç®å½ä¸Partialæä»¶å¤¹dt_mes_headRepositoryç¼å代ç |
| | | */ |
| | | using WIDESEA_WMS.IRepositories; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.EFDbContext; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WMS.Repositories |
| | | { |
| | | public partial class dt_mes_headRepository : RepositoryBase<dt_mes_head> , Idt_mes_headRepository |
| | | { |
| | | public dt_mes_headRepository(VOLContext dbContext) |
| | | : base(dbContext) |
| | | { |
| | | |
| | | } |
| | | public static Idt_mes_headRepository Instance |
| | | { |
| | | get { return AutofacContainerModule.GetService<Idt_mes_headRepository>(); } } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *ææå
³äºdt_mes_detailç±»çä¸å¡ä»£ç åºå¨æ¤å¤ç¼å |
| | | *å¯ä½¿ç¨repository.è°ç¨å¸¸ç¨æ¹æ³ï¼è·åEF/Dapperçä¿¡æ¯ |
| | | *妿éè¦äºå¡è¯·ä½¿ç¨repository.DbContextBeginTransaction |
| | | *ä¹å¯ä½¿ç¨DBServerProvider.æå¨è·åæ°æ®åºç¸å
³ä¿¡æ¯ |
| | | *ç¨æ·ä¿¡æ¯ãæéãè§è²ç使ç¨UserContext.Currentæä½ |
| | | *dt_mes_detailService对å¢ãå ãæ¹æ¥ã导å
¥ã导åºãå®¡æ ¸ä¸å¡ä»£ç æ©å±åç
§ServiceFunFilter |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using System.Linq; |
| | | using WIDESEA_Core.Utilities; |
| | | using System.Linq.Expressions; |
| | | using WIDESEA_Core.Extensions; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.AspNetCore.Http; |
| | | using WIDESEA_WMS.IRepositories; |
| | | |
| | | namespace WIDESEA_WMS.Services |
| | | { |
| | | public partial class dt_mes_detailService |
| | | { |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | private readonly Idt_mes_detailRepository _repository;//è®¿é®æ°æ®åº |
| | | |
| | | [ActivatorUtilitiesConstructor] |
| | | public dt_mes_detailService( |
| | | Idt_mes_detailRepository dbRepository, |
| | | IHttpContextAccessor httpContextAccessor |
| | | ) |
| | | : base(dbRepository) |
| | | { |
| | | _httpContextAccessor = httpContextAccessor; |
| | | _repository = dbRepository; |
| | | //å¤ç§æ·ä¼ç¨å°è¿init代ç ï¼å
¶ä»æ
åµå¯ä»¥ä¸ç¨ |
| | | //base.Init(dbRepository); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *ææå
³äºdt_mes_headç±»çä¸å¡ä»£ç åºå¨æ¤å¤ç¼å |
| | | *å¯ä½¿ç¨repository.è°ç¨å¸¸ç¨æ¹æ³ï¼è·åEF/Dapperçä¿¡æ¯ |
| | | *妿éè¦äºå¡è¯·ä½¿ç¨repository.DbContextBeginTransaction |
| | | *ä¹å¯ä½¿ç¨DBServerProvider.æå¨è·åæ°æ®åºç¸å
³ä¿¡æ¯ |
| | | *ç¨æ·ä¿¡æ¯ãæéãè§è²ç使ç¨UserContext.Currentæä½ |
| | | *dt_mes_headService对å¢ãå ãæ¹æ¥ã导å
¥ã导åºãå®¡æ ¸ä¸å¡ä»£ç æ©å±åç
§ServiceFunFilter |
| | | */ |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using System.Linq; |
| | | using WIDESEA_Core.Utilities; |
| | | using System.Linq.Expressions; |
| | | using WIDESEA_Core.Extensions; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.AspNetCore.Http; |
| | | using WIDESEA_WMS.IRepositories; |
| | | |
| | | namespace WIDESEA_WMS.Services |
| | | { |
| | | public partial class dt_mes_headService |
| | | { |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | private readonly Idt_mes_headRepository _repository;//è®¿é®æ°æ®åº |
| | | |
| | | [ActivatorUtilitiesConstructor] |
| | | public dt_mes_headService( |
| | | Idt_mes_headRepository dbRepository, |
| | | IHttpContextAccessor httpContextAccessor |
| | | ) |
| | | : base(dbRepository) |
| | | { |
| | | _httpContextAccessor = httpContextAccessor; |
| | | _repository = dbRepository; |
| | | //å¤ç§æ·ä¼ç¨å°è¿init代ç ï¼å
¶ä»æ
åµå¯ä»¥ä¸ç¨ |
| | | //base.Init(dbRepository); |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,æ¤å¤ä»»ä½æ´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ææä¸å¡ç¼åå
¨é¨åºå¨Partialæä»¶å¤¹ä¸dt_mes_detailServiceä¸Idt_mes_detailServiceä¸ç¼å |
| | | */ |
| | | using WIDESEA_WMS.IRepositories; |
| | | using WIDESEA_WMS.IServices; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WMS.Services |
| | | { |
| | | public partial class dt_mes_detailService : ServiceBase<dt_mes_detail, Idt_mes_detailRepository> |
| | | , Idt_mes_detailService, IDependency |
| | | { |
| | | public dt_mes_detailService(Idt_mes_detailRepository repository) |
| | | : base(repository) |
| | | { |
| | | Init(repository); |
| | | } |
| | | public static Idt_mes_detailService Instance |
| | | { |
| | | get { return AutofacContainerModule.GetService<Idt_mes_detailService>(); } } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *Authorï¼jxx |
| | | *Contactï¼283591387@qq.com |
| | | *代ç ç±æ¡æ¶çæ,æ¤å¤ä»»ä½æ´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *ææä¸å¡ç¼åå
¨é¨åºå¨Partialæä»¶å¤¹ä¸dt_mes_headServiceä¸Idt_mes_headServiceä¸ç¼å |
| | | */ |
| | | using WIDESEA_WMS.IRepositories; |
| | | using WIDESEA_WMS.IServices; |
| | | using WIDESEA_Core.BaseProvider; |
| | | using WIDESEA_Core.Extensions.AutofacManager; |
| | | using WIDESEA_Entity.DomainModels; |
| | | |
| | | namespace WIDESEA_WMS.Services |
| | | { |
| | | public partial class dt_mes_headService : ServiceBase<dt_mes_head, Idt_mes_headRepository> |
| | | , Idt_mes_headService, IDependency |
| | | { |
| | | public dt_mes_headService(Idt_mes_headRepository repository) |
| | | : base(repository) |
| | | { |
| | | Init(repository); |
| | | } |
| | | public static Idt_mes_headService Instance |
| | | { |
| | | get { return AutofacContainerModule.GetService<Idt_mes_headService>(); } } |
| | | } |
| | | } |
| | |
| | | { |
| | | remark = remark + "ç»ç¹å·²å®æ"; |
| | | task.agv_finishedtime = DateTime.Now; |
| | | |
| | | |
| | | HandleTask.Updateinventory(task); |
| | | #region 忥MESåºå
¥åºä¿¡æ¯ |
| | | HandleTask_Mes.UploadMESInfo(task); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *æ¥å£ç¼åå¤... |
| | | *妿æ¥å£éè¦åActionçæééªè¯ï¼è¯·å¨Actionä¸ä½¿ç¨å±æ§ |
| | | *å¦: [ApiActionPermission("dt_mes_detail",Enums.ActionPermissionOptions.Search)] |
| | | */ |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Threading.Tasks; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.AspNetCore.Http; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_WMS.IServices; |
| | | |
| | | namespace WIDESEA_WMS.Controllers |
| | | { |
| | | public partial class dt_mes_detailController |
| | | { |
| | | private readonly Idt_mes_detailService _service;//访é®ä¸å¡ä»£ç |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | |
| | | [ActivatorUtilitiesConstructor] |
| | | public dt_mes_detailController( |
| | | Idt_mes_detailService service, |
| | | IHttpContextAccessor httpContextAccessor |
| | | ) |
| | | : base(service) |
| | | { |
| | | _service = service; |
| | | _httpContextAccessor = httpContextAccessor; |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *æ¥å£ç¼åå¤... |
| | | *妿æ¥å£éè¦åActionçæééªè¯ï¼è¯·å¨Actionä¸ä½¿ç¨å±æ§ |
| | | *å¦: [ApiActionPermission("dt_mes_head",Enums.ActionPermissionOptions.Search)] |
| | | */ |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Threading.Tasks; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.AspNetCore.Http; |
| | | using WIDESEA_Entity.DomainModels; |
| | | using WIDESEA_WMS.IServices; |
| | | |
| | | namespace WIDESEA_WMS.Controllers |
| | | { |
| | | public partial class dt_mes_headController |
| | | { |
| | | private readonly Idt_mes_headService _service;//访é®ä¸å¡ä»£ç |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | |
| | | [ActivatorUtilitiesConstructor] |
| | | public dt_mes_headController( |
| | | Idt_mes_headService service, |
| | | IHttpContextAccessor httpContextAccessor |
| | | ) |
| | | : base(service) |
| | | { |
| | | _service = service; |
| | | _httpContextAccessor = httpContextAccessor; |
| | | } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *妿è¦å¢å æ¹æ³è¯·å¨å½åç®å½ä¸Partialæä»¶å¤¹dt_mes_detailControllerç¼å |
| | | */ |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core.Controllers.Basic; |
| | | using WIDESEA_Entity.AttributeManager; |
| | | using WIDESEA_WMS.IServices; |
| | | namespace WIDESEA_WMS.Controllers |
| | | { |
| | | [Route("api/dt_mes_detail")] |
| | | [PermissionTable(Name = "dt_mes_detail")] |
| | | public partial class dt_mes_detailController : ApiBaseController<Idt_mes_detailService> |
| | | { |
| | | public dt_mes_detailController(Idt_mes_detailService service) |
| | | : base(service) |
| | | { |
| | | } |
| | | } |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /* |
| | | *代ç ç±æ¡æ¶çæ,任使´æ¹é½å¯è½å¯¼è´è¢«ä»£ç çæå¨è¦ç |
| | | *妿è¦å¢å æ¹æ³è¯·å¨å½åç®å½ä¸Partialæä»¶å¤¹dt_mes_headControllerç¼å |
| | | */ |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using WIDESEA_Core.Controllers.Basic; |
| | | using WIDESEA_Entity.AttributeManager; |
| | | using WIDESEA_WMS.IServices; |
| | | namespace WIDESEA_WMS.Controllers |
| | | { |
| | | [Route("api/dt_mes_head")] |
| | | [PermissionTable(Name = "dt_mes_head")] |
| | | public partial class dt_mes_headController : ApiBaseController<Idt_mes_headService> |
| | | { |
| | | public dt_mes_headController(Idt_mes_headService service) |
| | | : base(service) |
| | | { |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <Folder Include="Controllers\WIDESEA_WCS\Partial\" /> |
| | | <Folder Include="Controllers\WIDESEA_WCS\" /> |
| | | </ItemGroup> |
| | | |
| | | |