diff --git a/Code/src/MineTec.ProManager.Application/BOM_Production/Dto/BOM_ProductionDto.cs b/Code/src/MineTec.ProManager.Application/BOM_Production/Dto/BOM_ProductionDto.cs index 321e9d9..5a0c616 100644 --- a/Code/src/MineTec.ProManager.Application/BOM_Production/Dto/BOM_ProductionDto.cs +++ b/Code/src/MineTec.ProManager.Application/BOM_Production/Dto/BOM_ProductionDto.cs @@ -6,6 +6,7 @@ using System.ComponentModel.DataAnnotations; namespace MineTec.ProManager.BOM_Production.Dto { [AutoMapFrom(typeof(Entitys.Order.BOM_Production.BOM_Production))] + public class BOM_ProductionDto : EntityDto { /// diff --git a/Code/src/MineTec.ProManager.Application/BOM_Production/Dto/CreateUpdateBOM_ProductionDto.cs b/Code/src/MineTec.ProManager.Application/BOM_Production/Dto/CreateUpdateBOM_ProductionDto.cs index 66d4e14..0e2331a 100644 --- a/Code/src/MineTec.ProManager.Application/BOM_Production/Dto/CreateUpdateBOM_ProductionDto.cs +++ b/Code/src/MineTec.ProManager.Application/BOM_Production/Dto/CreateUpdateBOM_ProductionDto.cs @@ -6,6 +6,7 @@ using System.ComponentModel.DataAnnotations; namespace MineTec.ProManager.BOM_Production.Dto { [AutoMapTo(typeof(Entitys.Order.BOM_Production.BOM_Production))] + public class CreateUpdateBOM_ProductionDto : EntityDto { /// diff --git a/Code/src/MineTec.ProManager.Application/CustomerOrder/CustomerOrderAppService.cs b/Code/src/MineTec.ProManager.Application/CustomerOrder/CustomerOrderAppService.cs index 495b5fd..2bf8b09 100644 --- a/Code/src/MineTec.ProManager.Application/CustomerOrder/CustomerOrderAppService.cs +++ b/Code/src/MineTec.ProManager.Application/CustomerOrder/CustomerOrderAppService.cs @@ -1,10 +1,125 @@ -using System; +using Abp.Application.Services; +using Abp.Application.Services.Dto; +using Abp.Collections.Extensions; +using Abp.Domain.Repositories; +using MineTec.ProManager.Commd; +using MineTec.ProManager.CustomerOrder.Dto; +using System; using System.Collections.Generic; +using System.Linq; using System.Text; namespace MineTec.ProManager.CustomerOrder { - class CustomerOrderAppService + + public class CustomerOrderAppService : AsyncCrudAppService, ICustomerOrderAppService + { + private readonly IRepository _CustomerOrderRepository; + + public CustomerOrderAppService(IRepository repository, IRepository CustomerOrderRepository) + : base(repository) + { + _CustomerOrderRepository = CustomerOrderRepository; + } + + public OutputBase CreateCustomerOrder(CreateUpdateCustomerOrder input) + { + var result = new OutputBase(); + try + { + var entity = _CustomerOrderRepository.GetAll().FirstOrDefault(a => a.ordername == input.ordername && a.isdelete == 0); + if (entity == null) + { + _CustomerOrderRepository.InsertAndGetId(ObjectMapper.Map(input)); + //base.CreateAsync(input); + result.code = 1;//成功 + result.msg = "保存成功!"; + } + else + { + result.code = 2;//重复 + result.msg = "已经存在相同的订单名称,请修改!"; + } + } + catch (Exception e) + { + result.code = 0;//失败 + result.msg = e.Message; + } + return result; + } + + public OutputBase CheckCustomerOrder(CreateUpdateCustomerOrder input) + { + var result = new OutputBase(); + try + { + var entity = _CustomerOrderRepository.GetAll().FirstOrDefault(a => a.ordername == input.ordername && a.isdelete == 0); + if (entity == null) + { + result.code = 1;//成功 + result.msg = "无重复数据!"; + } + else + { + result.code = 2;//重复 + result.msg = "已经存在相同的订单名称,请修改!"; + } + } + catch (Exception e) + { + result.code = 0;//失败 + result.msg = e.Message; + } + return result; + } + + public CustomerOrderOutPut GetAllCustomerOrder(GetAllCustomerOrder input) + { + var result = new CustomerOrderOutPut(); + try + { + var query = _CustomerOrderRepository.GetAll().Where(t => t.isdelete != 1).WhereIf(!string.IsNullOrEmpty(input.ordername), t => t.ordername.Contains(input.ordername)).WhereIf(!string.IsNullOrEmpty(input.suppliername), t => t.suppliername.Contains(input.suppliername)).WhereIf(!string.IsNullOrEmpty(input.clientname), t => t.clientname.Contains(input.clientname)); + var bomcount = query.Count(); + var bomlist = query.ToList(); + var list = ObjectMapper.Map>(bomlist); + result.code = 0; + result.count = bomcount; + result.data = list; + } + catch (Exception ex) + { + result.msg = ex.Message; + } + + return result; + } + + public OutputBase UpdateCustomerOrder(UpdateCustomerOrder input) + { + var result = new OutputBase(); + try + { + var query = _CustomerOrderRepository.GetAll().FirstOrDefault(a => a.Id == input.id); + if (input.isdelete == 1) + { + query.isdelete = 1; + } + query.updatetime = DateTime.Now; + query.updateuserid = input.updateuserid; + query.updateusername = input.updateusername; + + result.code = 1;//1成功0失败 + } + catch (Exception ex) + { + result.code = 0; + result.msg = ex.Message; + } + + return result; + } } } diff --git a/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/CreateUpdateCustomerOrder.cs b/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/CreateUpdateCustomerOrder.cs new file mode 100644 index 0000000..eb183aa --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/CreateUpdateCustomerOrder.cs @@ -0,0 +1,202 @@ +using Abp.Application.Services.Dto; +using Abp.AutoMapper; +using System; +using System.ComponentModel.DataAnnotations; + +namespace MineTec.ProManager.CustomerOrder.Dto +{ + [AutoMapTo(typeof(Entitys.Order.CustomerOrder.CustomerOrder))] + + public class CreateUpdateCustomerOrder : EntityDto + { + /// + /// 创建日期 + /// + public DateTime? createtime { get; set; } + + /// + /// 创建人ID + /// + [StringLength(50)] + public string createuserid { get; set; } + + /// + /// 创建人姓名 + /// + [StringLength(50)] + public string createusername { get; set; } + + /// + /// 修改日期 + /// + public DateTime? updatetime { get; set; } + + /// + /// 修改人ID + /// + [StringLength(50)] + public string updateuserid { get; set; } + + /// + /// 修改人名称 + /// + [StringLength(50)] + public string updateusername { get; set; } + + /// + /// 订单名称 + /// + [StringLength(50)] + public string ordername { get; set; } + + /// + /// 供方ID + /// + [StringLength(50)] + public string supplierid { get; set; } + + /// + /// 供方名称 + /// + [StringLength(50)] + public string suppliername { get; set; } + + /// + /// 供方地址 + /// + [StringLength(200)] + public string supplier_address { get; set; } + + /// + /// 供方社会统一信用代码 + /// + [StringLength(100)] + public string supplier_creditcode { get; set; } + + /// + /// 供方开户银行 + /// + [StringLength(50)] + public string supplier_bank { get; set; } + + /// + /// 供方账号 + /// + [StringLength(50)] + public string supplier_bankaccount { get; set; } + + /// + /// 供方电话 + /// + [StringLength(50)] + public string supplier_telnum { get; set; } + + /// + /// 供方传真 + /// + [StringLength(50)] + public string supplier_fax { get; set; } + + /// + /// 供方联系人 + /// + [StringLength(50)] + public string supplier_contactperson { get; set; } + + /// + /// 供方手机号 + /// + [StringLength(50)] + public string supplier_phonenum { get; set; } + + /// + /// 供方邮箱 + /// + [StringLength(50)] + public string supplier_email { get; set; } + + /// + /// 需方ID + /// + [StringLength(50)] + public string clientid { get; set; } + + /// + /// 需方名称 + /// + [StringLength(50)] + public string clientname { get; set; } + + /// + /// 需方地址 + /// + [StringLength(200)] + public string client_address { get; set; } + + /// + /// 需方社会统一信用代码 + /// + [StringLength(100)] + public string client_creditcode { get; set; } + + /// + /// 需方开户银行 + /// + [StringLength(50)] + public string client_bank { get; set; } + + /// + /// 需方账号 + /// + [StringLength(50)] + public string client_bankaccount { get; set; } + + /// + /// 需方电话 + /// + [StringLength(50)] + public string client_telnum { get; set; } + + /// + /// 需方传真 + /// + [StringLength(50)] + public string client_fax { get; set; } + + /// + /// 需方联系人 + /// + [StringLength(50)] + public string client_contactperson { get; set; } + + /// + /// 需方手机号 + /// + [StringLength(50)] + public string client_phonenum { get; set; } + + /// + /// 需方邮箱 + /// + [StringLength(50)] + public string client_email { get; set; } + + /// + /// 备注 + /// + [StringLength(500)] + public string remark { get; set; } + + /// + ///是否关联附件:0 否, 1 是 + /// + public int isannex { get; set; } + + /// + ///是否删除:0 否, 1 是 + /// + public int isdelete { get; set; } + + public DateTime CreationTime { get; set; } + } +} diff --git a/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/CustomerOrderDto.cs b/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/CustomerOrderDto.cs new file mode 100644 index 0000000..355e9e5 --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/CustomerOrderDto.cs @@ -0,0 +1,202 @@ +using Abp.Application.Services.Dto; +using Abp.AutoMapper; +using System; +using System.ComponentModel.DataAnnotations; + +namespace MineTec.ProManager.CustomerOrder.Dto +{ + [AutoMapFrom(typeof(Entitys.Order.CustomerOrder.CustomerOrder))] + + public class CustomerOrderDto : EntityDto + { + /// + /// 创建日期 + /// + public DateTime? createtime { get; set; } + + /// + /// 创建人ID + /// + [StringLength(50)] + public string createuserid { get; set; } + + /// + /// 创建人姓名 + /// + [StringLength(50)] + public string createusername { get; set; } + + /// + /// 修改日期 + /// + public DateTime? updatetime { get; set; } + + /// + /// 修改人ID + /// + [StringLength(50)] + public string updateuserid { get; set; } + + /// + /// 修改人名称 + /// + [StringLength(50)] + public string updateusername { get; set; } + + /// + /// 订单名称 + /// + [StringLength(50)] + public string ordername { get; set; } + + /// + /// 供方ID + /// + [StringLength(50)] + public string supplierid { get; set; } + + /// + /// 供方名称 + /// + [StringLength(50)] + public string suppliername { get; set; } + + /// + /// 供方地址 + /// + [StringLength(200)] + public string supplier_address { get; set; } + + /// + /// 供方社会统一信用代码 + /// + [StringLength(100)] + public string supplier_creditcode { get; set; } + + /// + /// 供方开户银行 + /// + [StringLength(50)] + public string supplier_bank { get; set; } + + /// + /// 供方账号 + /// + [StringLength(50)] + public string supplier_bankaccount { get; set; } + + /// + /// 供方电话 + /// + [StringLength(50)] + public string supplier_telnum { get; set; } + + /// + /// 供方传真 + /// + [StringLength(50)] + public string supplier_fax { get; set; } + + /// + /// 供方联系人 + /// + [StringLength(50)] + public string supplier_contactperson { get; set; } + + /// + /// 供方手机号 + /// + [StringLength(50)] + public string supplier_phonenum { get; set; } + + /// + /// 供方邮箱 + /// + [StringLength(50)] + public string supplier_email { get; set; } + + /// + /// 需方ID + /// + [StringLength(50)] + public string clientid { get; set; } + + /// + /// 需方名称 + /// + [StringLength(50)] + public string clientname { get; set; } + + /// + /// 需方地址 + /// + [StringLength(200)] + public string client_address { get; set; } + + /// + /// 需方社会统一信用代码 + /// + [StringLength(100)] + public string client_creditcode { get; set; } + + /// + /// 需方开户银行 + /// + [StringLength(50)] + public string client_bank { get; set; } + + /// + /// 需方账号 + /// + [StringLength(50)] + public string client_bankaccount { get; set; } + + /// + /// 需方电话 + /// + [StringLength(50)] + public string client_telnum { get; set; } + + /// + /// 需方传真 + /// + [StringLength(50)] + public string client_fax { get; set; } + + /// + /// 需方联系人 + /// + [StringLength(50)] + public string client_contactperson { get; set; } + + /// + /// 需方手机号 + /// + [StringLength(50)] + public string client_phonenum { get; set; } + + /// + /// 需方邮箱 + /// + [StringLength(50)] + public string client_email { get; set; } + + /// + /// 备注 + /// + [StringLength(500)] + public string remark { get; set; } + + /// + ///是否关联附件:0 否, 1 是 + /// + public int isannex { get; set; } + + /// + ///是否删除:0 否, 1 是 + /// + public int isdelete { get; set; } + + public DateTime CreationTime { get; set; } + } +} diff --git a/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/CustomerOrderOutPut.cs b/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/CustomerOrderOutPut.cs new file mode 100644 index 0000000..96d9905 --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/CustomerOrderOutPut.cs @@ -0,0 +1,12 @@ +using MineTec.ProManager.Commd; +using System; +using System.Collections.Generic; +using System.Text; + +namespace MineTec.ProManager.CustomerOrder.Dto +{ + public class CustomerOrderOutPut : OutputBase + { + public List data { get; set; } + } +} diff --git a/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/GetAllCustomerOrder.cs b/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/GetAllCustomerOrder.cs new file mode 100644 index 0000000..b85d504 --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/GetAllCustomerOrder.cs @@ -0,0 +1,17 @@ +using Abp.Application.Services.Dto; +using System; +using System.Collections.Generic; +using System.Text; + +namespace MineTec.ProManager.CustomerOrder.Dto +{ + + public class GetAllCustomerOrder : PagedResultRequestDto + { + public string ordername { get; set; } //用于订单名称搜索 + + public string suppliername { get; set; } //用于供方搜索 + + public string clientname { get; set; } //用于需方搜索 + } +} diff --git a/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/UpdateCustomerOrder.cs b/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/UpdateCustomerOrder.cs new file mode 100644 index 0000000..b12a15f --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/CustomerOrder/Dto/UpdateCustomerOrder.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace MineTec.ProManager.CustomerOrder.Dto +{ + public class UpdateCustomerOrder + { + public Guid id { get; set; } //主键 + + public string updateuserid { get; set; }//更新用户ID + + public string updateusername { get; set; }//更新用户姓名 + + public int isdelete { get; set; }//是否删除 + } +} diff --git a/Code/src/MineTec.ProManager.Application/CustomerOrder/ICustomerOrderAppService.cs b/Code/src/MineTec.ProManager.Application/CustomerOrder/ICustomerOrderAppService.cs index c18f40c..a44ce3b 100644 --- a/Code/src/MineTec.ProManager.Application/CustomerOrder/ICustomerOrderAppService.cs +++ b/Code/src/MineTec.ProManager.Application/CustomerOrder/ICustomerOrderAppService.cs @@ -1,10 +1,18 @@ -using System; +using Abp.Application.Services; +using Abp.Application.Services.Dto; +using MineTec.ProManager.CustomerOrder.Dto; +using System; using System.Collections.Generic; using System.Text; namespace MineTec.ProManager.CustomerOrder { - class ICustomerOrderAppService + public interface ICustomerOrderAppService : IAsyncCrudAppService //用于更新客户订单 { } } diff --git a/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/CustomerOrderDetailsAppService.cs b/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/CustomerOrderDetailsAppService.cs index 75d561f..5c52cca 100644 --- a/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/CustomerOrderDetailsAppService.cs +++ b/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/CustomerOrderDetailsAppService.cs @@ -1,10 +1,91 @@ -using System; +using Abp.Application.Services; +using Abp.Application.Services.Dto; +using Abp.Collections.Extensions; +using Abp.Domain.Repositories; +using MineTec.ProManager.Commd; +using MineTec.ProManager.CustomerOrderDetails.Dto; +using System; using System.Collections.Generic; +using System.Linq; using System.Text; namespace MineTec.ProManager.CustomerOrderDetails { - class CustomerOrderDetailsAppService + public class CustomerOrderDetailsAppService : AsyncCrudAppService, ICustomerOrderDetailsAppService + { + private readonly IRepository _CustomerOrderDetailsRepository; + + public CustomerOrderDetailsAppService(IRepository repository, IRepository CustomerOrderDetailsRepository) + : base(repository) + { + _CustomerOrderDetailsRepository = CustomerOrderDetailsRepository; + } + + public OutputBase CreateCustomerOrderDetails(CreateUpdateCustomerOrderDetailsDto input) + { + var result = new OutputBase(); + try + { + _CustomerOrderDetailsRepository.InsertAndGetId(ObjectMapper.Map(input)); + //base.CreateAsync(input); + result.code = 1;//成功 + result.msg = "保存成功!"; + } + catch (Exception e) + { + result.code = 0;//失败 + result.msg = e.Message; + } + return result; + } + + public CustomerOrderDetailsOutPut GetAllCustomerOrderDetails(GetAllCustomerOrderDetails input) + { + var result = new CustomerOrderDetailsOutPut(); + try + { + var query = base.CreateFilteredQuery(input).Where(t => t.isdelete != 1) + .WhereIf(!string.IsNullOrEmpty(input.customerorderid), t => t.customerorderid == input.customerorderid); + var CustomerOrderDetailscount = query.Count(); + var CustomerOrderDetailslist = query.ToList(); + var list = ObjectMapper.Map>(CustomerOrderDetailslist); + result.code = 0; + result.count = CustomerOrderDetailscount; + result.data = list; + } + catch (Exception ex) + { + result.msg = ex.Message; + } + + return result; + } + + public OutputBase UpdateCustomerOrderDetails(UpdateCustomerOrderDetails input) + { + var result = new OutputBase(); + try + { + var query = _CustomerOrderDetailsRepository.GetAll().FirstOrDefault(a => a.Id == input.id); + if (input.isdelete == 1) + { + query.isdelete = 1; + } + query.updatetime = DateTime.Now; + query.updateuserid = input.updateuserid; + query.updateusername = input.updateusername; + + result.code = 1;//1成功0失败 + } + catch (Exception ex) + { + result.code = 0; + result.msg = ex.Message; + } + + return result; + } } } diff --git a/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/CreateUpdateCustomerOrderDetailsDto.cs b/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/CreateUpdateCustomerOrderDetailsDto.cs new file mode 100644 index 0000000..59130f1 --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/CreateUpdateCustomerOrderDetailsDto.cs @@ -0,0 +1,122 @@ +using Abp.Application.Services.Dto; +using Abp.AutoMapper; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Text; + +namespace MineTec.ProManager.CustomerOrderDetails.Dto +{ + [AutoMapTo(typeof(Entitys.Order.CustomerOrder.CustomerOrderDetails))] + + public class CreateUpdateCustomerOrderDetailsDto : EntityDto + { + /// + /// 创建日期 + /// + public DateTime? createtime { get; set; } + + /// + /// 创建人ID + /// + [StringLength(50)] + public string createuserid { get; set; } + + /// + /// 创建人姓名 + /// + [StringLength(50)] + public string createusername { get; set; } + + /// + /// 修改日期 + /// + public DateTime? updatetime { get; set; } + + /// + /// 修改人ID + /// + [StringLength(50)] + public string updateuserid { get; set; } + + /// + /// 修改人名称 + /// + [StringLength(50)] + public string updateusername { get; set; } + + /// + /// 主表ID + /// + [StringLength(50)] + public string customerorderid { get; set; } + + /// + /// 代码 + /// + [StringLength(100)] + public string code { get; set; } + + /// + /// 所选BOMID + /// + [StringLength(50)] + public string bomid { get; set; } + + /// + /// 所选BOM名称 + /// + [StringLength(100)] + public string bomname { get; set; } + + /// + /// 规格型号 + /// + [StringLength(100)] + public string model { get; set; } + + /// + /// 单位 + /// + [StringLength(100)] + public string unit { get; set; } + + /// + /// 数量 + /// + public decimal? quantity { get; set; } + + /// + /// 单价 + /// + public decimal? price { get; set; } + + /// + /// 金额 + /// + public decimal? amount { get; set; } + + /// + /// 交货日期 + /// + public DateTime? deliverydates { get; set; } + + /// + /// 备注 + /// + [StringLength(500)] + public string remark { get; set; } + + /// + ///是否关联附件:0 否, 1 是 + /// + public int isannex { get; set; } + + /// + ///是否删除:0 否, 1 是 + /// + public int isdelete { get; set; } + + public DateTime CreationTime { get; set; } + } +} diff --git a/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/CustomerOrderDetailsDto.cs b/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/CustomerOrderDetailsDto.cs new file mode 100644 index 0000000..ba5e4f7 --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/CustomerOrderDetailsDto.cs @@ -0,0 +1,122 @@ +using Abp.Application.Services.Dto; +using Abp.AutoMapper; +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Text; + +namespace MineTec.ProManager.CustomerOrderDetails.Dto +{ + [AutoMapFrom(typeof(Entitys.Order.CustomerOrder.CustomerOrderDetails))] + + public class CustomerOrderDetailsDto : EntityDto + { + /// + /// 创建日期 + /// + public DateTime? createtime { get; set; } + + /// + /// 创建人ID + /// + [StringLength(50)] + public string createuserid { get; set; } + + /// + /// 创建人姓名 + /// + [StringLength(50)] + public string createusername { get; set; } + + /// + /// 修改日期 + /// + public DateTime? updatetime { get; set; } + + /// + /// 修改人ID + /// + [StringLength(50)] + public string updateuserid { get; set; } + + /// + /// 修改人名称 + /// + [StringLength(50)] + public string updateusername { get; set; } + + /// + /// 主表ID + /// + [StringLength(50)] + public string customerorderid { get; set; } + + /// + /// 代码 + /// + [StringLength(100)] + public string code { get; set; } + + /// + /// 所选BOMID + /// + [StringLength(50)] + public string bomid { get; set; } + + /// + /// 所选BOM名称 + /// + [StringLength(100)] + public string bomname { get; set; } + + /// + /// 规格型号 + /// + [StringLength(100)] + public string model { get; set; } + + /// + /// 单位 + /// + [StringLength(100)] + public string unit { get; set; } + + /// + /// 数量 + /// + public decimal? quantity { get; set; } + + /// + /// 单价 + /// + public decimal? price { get; set; } + + /// + /// 金额 + /// + public decimal? amount { get; set; } + + /// + /// 交货日期 + /// + public DateTime? deliverydates { get; set; } + + /// + /// 备注 + /// + [StringLength(500)] + public string remark { get; set; } + + /// + ///是否关联附件:0 否, 1 是 + /// + public int isannex { get; set; } + + /// + ///是否删除:0 否, 1 是 + /// + public int isdelete { get; set; } + + public DateTime CreationTime { get; set; } + } +} diff --git a/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/CustomerOrderDetailsOutPut.cs b/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/CustomerOrderDetailsOutPut.cs new file mode 100644 index 0000000..6454bcf --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/CustomerOrderDetailsOutPut.cs @@ -0,0 +1,13 @@ +using MineTec.ProManager.Commd; +using System; +using System.Collections.Generic; +using System.Text; + +namespace MineTec.ProManager.CustomerOrderDetails.Dto +{ + + public class CustomerOrderDetailsOutPut : OutputBase + { + public List data { get; set; } + } +} diff --git a/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/GetAllCustomerOrderDetails.cs b/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/GetAllCustomerOrderDetails.cs new file mode 100644 index 0000000..2ef60aa --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/GetAllCustomerOrderDetails.cs @@ -0,0 +1,17 @@ +using Abp.Application.Services.Dto; +using System; +using System.Collections.Generic; +using System.Text; + +namespace MineTec.ProManager.CustomerOrderDetails.Dto +{ + public class GetAllCustomerOrderDetails : PagedResultRequestDto + { + public string customerorderid { get; set; }//用于关联CustomerOrder主表ID搜索 + + public string bomname { get; set; } //用于bom名称搜索 + + public string code { get; set; } //用于代码搜索 + + } +} diff --git a/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/UpdateCustomerOrderDetails.cs b/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/UpdateCustomerOrderDetails.cs new file mode 100644 index 0000000..4f2f672 --- /dev/null +++ b/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/Dto/UpdateCustomerOrderDetails.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace MineTec.ProManager.CustomerOrderDetails.Dto +{ + public class UpdateCustomerOrderDetails + { + public Guid id { get; set; } //主键 + + public string updateuserid { get; set; }//更新用户ID + + public string updateusername { get; set; }//更新用户姓名 + + public int isdelete { get; set; }//是否删除 + + } +} diff --git a/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/ICustomerOrderDetailsAppService.cs b/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/ICustomerOrderDetailsAppService.cs index 1eb9e92..b61dc81 100644 --- a/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/ICustomerOrderDetailsAppService.cs +++ b/Code/src/MineTec.ProManager.Application/CustomerOrderDetails/ICustomerOrderDetailsAppService.cs @@ -1,10 +1,18 @@ -using System; +using Abp.Application.Services; +using Abp.Application.Services.Dto; +using MineTec.ProManager.CustomerOrderDetails.Dto; +using System; using System.Collections.Generic; using System.Text; namespace MineTec.ProManager.CustomerOrderDetails { - class ICustomerOrderDetailsAppService + public interface ICustomerOrderDetailsAppService : IAsyncCrudAppService //用于更新CustomerOrderDetails表单 { } } diff --git a/Code/src/MineTec.ProManager.Application/MineTec.ProManager.Application.csproj b/Code/src/MineTec.ProManager.Application/MineTec.ProManager.Application.csproj index 20c6a71..c7c927a 100644 --- a/Code/src/MineTec.ProManager.Application/MineTec.ProManager.Application.csproj +++ b/Code/src/MineTec.ProManager.Application/MineTec.ProManager.Application.csproj @@ -13,8 +13,4 @@ - - - - \ No newline at end of file