学 赵
1 year ago
258 changed files with 11689 additions and 29796 deletions
@ -1,4 +1,5 @@ |
|||
export default { |
|||
enableLocale: false, |
|||
baseURL: "http://dev.ccwin-in.com:10582/api", |
|||
//baseURL: "http://localhost:10130/api",
|
|||
}; |
|||
|
@ -0,0 +1,86 @@ |
|||
const schema = { |
|||
title: "通用代码", |
|||
type: "object", |
|||
properties: { |
|||
userName: { |
|||
title: "项目", |
|||
type: "string", |
|||
readOnly: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
userName: { |
|||
title: "值", |
|||
type: "string", |
|||
readOnly: true, |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
name: { |
|||
title: "描述", |
|||
type: "string", |
|||
showForList: true, |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const url = "base/code-settings"; |
|||
const createUrl = url; |
|||
const updateUrl = url; |
|||
const deleteUrl = url; |
|||
const method = "GET"; |
|||
const createMethod = "POST"; |
|||
const updateMethod = "PUT"; |
|||
const deleteMethod = "DELETE"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url, |
|||
method, |
|||
schema: { |
|||
title: "通用代码", |
|||
type: "object", |
|||
properties: { |
|||
filter: { |
|||
title: "项目", |
|||
type: "string", |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,113 @@ |
|||
const messages = { |
|||
default: "%s验证失败", |
|||
required: "%s是必填项", |
|||
enum: "%s必须是%s之一", |
|||
whitespace: "%s不能为空", |
|||
// date: {
|
|||
// format: '%s date %s is invalid for format %s',
|
|||
// parse: '%s date could not be parsed, %s is invalid ',
|
|||
// invalid: '%s date %s is invalid',
|
|||
// },
|
|||
types: { |
|||
string: "%s不是有效的字符串", |
|||
method: "%s不是有效的函数", |
|||
array: "%s不是有效的数组", |
|||
object: "%s不是有效的对象", |
|||
number: "%s不是有效的数字", |
|||
date: "%s不是有效的日期", |
|||
boolean: "%s不是有效的布尔值", |
|||
integer: "%s不是有效的整数", |
|||
float: "%s不是有效的浮点数", |
|||
regexp: "%s不是有效的正则表达式", |
|||
email: "%s不是有效的邮箱", |
|||
url: "%s不是有效的 url", |
|||
hex: "%s不是有效的十六进制", |
|||
}, |
|||
string: { |
|||
len: "%s长度必须是%s", |
|||
min: "%s最小长度为%s", |
|||
max: "%s最大长度为%s", |
|||
range: "%s长度必须在%s和%s之间", |
|||
}, |
|||
number: { |
|||
len: "%s必须等于%s", |
|||
min: "%s不小于%s", |
|||
max: "%s不大于%s", |
|||
range: "%s必须在%s和%s之间", |
|||
}, |
|||
array: { |
|||
len: "%s的数量必须是%s", |
|||
min: "%s的数量不小于%s", |
|||
max: "%s的数量不大于%s", |
|||
range: "%s的数量必须在%s和%s之间", |
|||
}, |
|||
pattern: { |
|||
mismatch: "%s的值 %s 不匹配模式 %s", |
|||
}, |
|||
clone: function clone() { |
|||
const cloned = JSON.parse(JSON.stringify(this)); |
|||
cloned.clone = this.clone; |
|||
return cloned; |
|||
}, |
|||
//
|
|||
compare: "%s 和 %s 输入必须一致", |
|||
true: "%s必须选中", |
|||
remote: "%s远程验证失败", |
|||
}; |
|||
|
|||
const validators = { |
|||
compare(rule, value, callback, source, options) { |
|||
const errors = []; |
|||
if (value && value !== rule.data[rule.compare]) { |
|||
const message = format(options.messages.compare, rule.title, rule.schema.properties[rule.compare].title); |
|||
errors.push(new Error(message)); |
|||
} |
|||
callback(errors); |
|||
}, |
|||
true(rule, value, callback, source, options) { |
|||
const errors = []; |
|||
if (!value) { |
|||
const message = format(options.messages.true, rule.title); |
|||
errors.push(new Error(message)); |
|||
} |
|||
callback(errors); |
|||
}, |
|||
remote(rule, value, callback, source, options) { |
|||
const errors = []; |
|||
const message = format(options.messages.remote, rule.title); |
|||
if (!value) { |
|||
callback(errors); |
|||
} else { |
|||
const config = { |
|||
url: rule.url, |
|||
method: rule.method ?? "GET", |
|||
}; |
|||
const data = { [rule.field]: value }; |
|||
if (config.method === "GET") { |
|||
config.params = data; |
|||
} else { |
|||
config.data = data; |
|||
} |
|||
request |
|||
.request(config) |
|||
.then((response) => { |
|||
if (response.status === 200) { |
|||
if (response.data.code) { |
|||
if (response.data.code !== 200) { |
|||
errors.push(new Error(1 + response.data.message)); |
|||
} |
|||
} |
|||
} else { |
|||
errors.push(new Error(2 + response.data)); |
|||
} |
|||
callback(errors); |
|||
}) |
|||
.catch((o) => { |
|||
errors.push(o.response?.data?.message ?? message ?? o.message); |
|||
callback(errors); |
|||
}); |
|||
} |
|||
}, |
|||
}; |
|||
|
|||
export { messages }; |
@ -0,0 +1,28 @@ |
|||
import AppList from "../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../models/code-setting.js"; |
|||
import request from "../../request/index.js"; |
|||
import { format } from "../../utils/index.js"; |
|||
import { ElMessage } from "element-plus"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
// 变量定义
|
|||
const config = useConfig(); |
|||
// 函数定义
|
|||
const onCommand = async (item, rows) => { |
|||
console.log(item.path, item, rows); |
|||
if (item.path === "%s/reset-password") { |
|||
const url = format(item.path, rows[0].id); |
|||
await request(`base/user/${url}`, null, { method: item.meta.method }); |
|||
ElMessage({ |
|||
type: "info", |
|||
message: format("用户%s的密码已经成功重置为123456", rows[0].userName), |
|||
}); |
|||
} |
|||
}; |
|||
return { config, onCommand }; |
|||
}, |
|||
}; |
@ -0,0 +1,55 @@ |
|||
using IdentityModel.Client; |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Microsoft.Extensions.Configuration; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using System.Net.Http; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Services; |
|||
|
|||
namespace BaseService.UserManagement |
|||
{ |
|||
[Route("api/base/token")] |
|||
public class UserAppService : ApplicationService |
|||
{ |
|||
private readonly IHttpClientFactory _httpClientFactory; |
|||
private readonly IConfiguration _configuration; |
|||
|
|||
public UserAppService(IHttpClientFactory httpClientFactory, IConfiguration configuration) |
|||
{ |
|||
this._httpClientFactory = httpClientFactory; |
|||
this._configuration = configuration; |
|||
} |
|||
|
|||
[HttpPost, AllowAnonymous, IgnoreAntiforgeryToken] |
|||
public async Task<TokenResponse> CreateAsync(LoginModel model) |
|||
{ |
|||
var address = _configuration["AuthServer:Authority"]; |
|||
var clientId = _configuration["AuthServer:ClientId"]; |
|||
var clientSecret = _configuration["AuthServer:ClientSecret"]; |
|||
|
|||
var result = await _httpClientFactory.CreateClient().RequestPasswordTokenAsync(new PasswordTokenRequest |
|||
{ |
|||
Address = $"{address.TrimEnd('/')}/connect/token", |
|||
GrantType = "password", |
|||
ClientId = clientId, |
|||
ClientSecret = clientSecret, |
|||
UserName = model.UserName, |
|||
Password = model.Password |
|||
}).ConfigureAwait(false); |
|||
|
|||
return result; |
|||
} |
|||
|
|||
public class LoginModel |
|||
{ |
|||
[Display] |
|||
[Required] |
|||
public string UserName { get; set; } |
|||
|
|||
[Display] |
|||
[Required] |
|||
public string Password { get; set; } |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,12 @@ |
|||
{ |
|||
"version": 1, |
|||
"isRoot": true, |
|||
"tools": { |
|||
"dotnet-ef": { |
|||
"version": "7.0.8", |
|||
"commands": [ |
|||
"dotnet-ef" |
|||
] |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,155 @@ |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos |
|||
{ |
|||
/// <summary>
|
|||
/// BBAC发运
|
|||
/// </summary>
|
|||
public class BBAC_SE_DETAIL_DTO |
|||
{ |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
[Display(Name = "期间")] |
|||
public int Version { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 发货时间
|
|||
/// </summary>
|
|||
[Display(Name = "发货时间")] |
|||
public DateTime ShippingDate { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 发运单号
|
|||
/// </summary>
|
|||
[Display(Name = "发运单号")] |
|||
public string WmsBillNum { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
[Display(Name = "零件号")] |
|||
public string LU { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 生产号
|
|||
/// </summary>
|
|||
[Display(Name = "生产号")] |
|||
public string PN { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 组合键值(LU+PN)
|
|||
/// </summary>
|
|||
[Display(Name = "组合键值(LU+PN)")] |
|||
public string KeyCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 数量
|
|||
/// </summary>
|
|||
[Display(Name = "数量")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 日顺序号
|
|||
/// </summary>
|
|||
[Display(Name = "日顺序号")] |
|||
public string SeqNumber { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 小总成号
|
|||
/// </summary>
|
|||
[Display(Name = "小总成号")] |
|||
public string AssemblyCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 注塑码
|
|||
/// </summary>
|
|||
[Display(Name = "注塑码")] |
|||
public string InjectionCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 订单时间
|
|||
/// </summary>
|
|||
[Display(Name = "订单时间")] |
|||
public DateTime BeginDate { get; set; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 导出
|
|||
/// </summary>
|
|||
public class BBAC_SE_DETAIL_EXPORT_DTO |
|||
{ |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "日顺序号")] |
|||
public int Version { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 发货时间
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "日顺序号")] |
|||
public DateTime ShippingDate { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 发运单号
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "日顺序号")] |
|||
public string WmsBillNum { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "日顺序号")] |
|||
public string LU { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 生产号
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "日顺序号")] |
|||
public string PN { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 组合键值(LU+PN)
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "日顺序号")] |
|||
public string KeyCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 数量
|
|||
/// </summary>
|
|||
[ExporterHeader(DisplayName = "日顺序号")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 日顺序号
|
|||
/// </summary>
|
|||
[Display(Name = "日顺序号")] |
|||
[ExporterHeader(DisplayName = "日顺序号")] |
|||
public string SeqNumber { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 小总成号
|
|||
/// </summary>
|
|||
[Display(Name = "小总成号")] |
|||
[ExporterHeader(DisplayName = "小总成号")] |
|||
public string AssemblyCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 注塑码
|
|||
/// </summary>
|
|||
[Display(Name = "注塑码")] |
|||
[ExporterHeader(DisplayName = "注塑码")] |
|||
public string InjectionCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 订单时间
|
|||
/// </summary>
|
|||
[Display(Name = "订单时间")] |
|||
[ExporterHeader(DisplayName = "订单时间")] |
|||
public DateTime BeginDate { get; set; } |
|||
} |
|||
|
|||
} |
@ -0,0 +1,136 @@ |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos |
|||
{ |
|||
/// <summary>
|
|||
/// BBAC的EDI数据
|
|||
/// </summary>
|
|||
public class BBAC_SE_EDI_DTO |
|||
{ |
|||
/// <summary>
|
|||
/// LU+生产码
|
|||
/// </summary>
|
|||
[Display(Name = "LU+生产码")] |
|||
public string KeyCode { get; set; } = null!; |
|||
|
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
[Display(Name = "期间")] |
|||
public int Version { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
[Display(Name = "零件号")] |
|||
public string LU { get; set; } = null!; |
|||
|
|||
/// <summary>
|
|||
/// 生产码
|
|||
/// </summary>
|
|||
[Display(Name = "生产码")] |
|||
public string PN { get; set; } = null!; |
|||
|
|||
/// <summary>
|
|||
/// 日顺序号
|
|||
/// </summary>
|
|||
[Display(Name = "日顺序号")] |
|||
public string SeqNumber { get; set; } = null!; |
|||
|
|||
/// <summary>
|
|||
/// 小总成号
|
|||
/// </summary>
|
|||
[Display(Name = "小总成号")] |
|||
public string AssemblyCode { get; set; } = null!; |
|||
|
|||
/// <summary>
|
|||
/// 注塑码
|
|||
/// </summary>
|
|||
[Display(Name = "注塑码")] |
|||
public string InjectionCode { get; set; } = null!; |
|||
|
|||
/// <summary>
|
|||
/// EDI数量
|
|||
/// </summary>
|
|||
[Display(Name = "EDI数量")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 订货时间
|
|||
/// </summary>
|
|||
[Display(Name = "订货时间")] |
|||
public DateTime BeginDate { get; set; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 导出
|
|||
/// </summary>
|
|||
public class BBAC_SE_EDI_EXPORT_DTO |
|||
{ |
|||
/// <summary>
|
|||
/// LU+生产码
|
|||
/// </summary>
|
|||
[Display(Name = "LU+生产码")] |
|||
[ExporterHeader(DisplayName = "LU+生产码")] |
|||
public string KeyCode { get; set; } = null!; |
|||
|
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
[Display(Name = "期间")] |
|||
[ExporterHeader(DisplayName = "期间")] |
|||
public int Version { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
[Display(Name = "零件号")] |
|||
[ExporterHeader(DisplayName = "零件号")] |
|||
public string LU { get; set; } = null!; |
|||
|
|||
/// <summary>
|
|||
/// 生产码
|
|||
/// </summary>
|
|||
[Display(Name = "生产码")] |
|||
[ExporterHeader(DisplayName = "生产码")] |
|||
public string PN { get; set; } = null!; |
|||
|
|||
/// <summary>
|
|||
/// 日顺序号
|
|||
/// </summary>
|
|||
[Display(Name = "日顺序号")] |
|||
[ExporterHeader(DisplayName = "日顺序号")] |
|||
public string SeqNumber { get; set; } = null!; |
|||
|
|||
/// <summary>
|
|||
/// 小总成号
|
|||
/// </summary>
|
|||
[Display(Name = "小总成号")] |
|||
[ExporterHeader(DisplayName = "小总成号")] |
|||
public string AssemblyCode { get; set; } = null!; |
|||
|
|||
/// <summary>
|
|||
/// 注塑码
|
|||
/// </summary>
|
|||
[Display(Name = "注塑码")] |
|||
[ExporterHeader(DisplayName = "注塑码")] |
|||
public string InjectionCode { get; set; } = null!; |
|||
|
|||
/// <summary>
|
|||
/// EDI数量
|
|||
/// </summary>
|
|||
[Display(Name = "EDI数量")] |
|||
[ExporterHeader(DisplayName = "EDI数量")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 订货时间
|
|||
/// </summary>
|
|||
[Display(Name = "订货时间")] |
|||
[ExporterHeader(DisplayName = "订货时间")] |
|||
public DateTime BeginDate { get; set; } |
|||
} |
|||
|
|||
} |
@ -0,0 +1,166 @@ |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos |
|||
{ |
|||
/// <summary>
|
|||
/// HBPO发运单
|
|||
/// </summary>
|
|||
public class HBPO_SE_DETAIL_DTO |
|||
{ |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
[Display(Name = "期间")] |
|||
public int Version { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 发货时间
|
|||
/// </summary>
|
|||
[Display(Name = "发货时间")] |
|||
public DateTime ShippingDate { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 发运单号
|
|||
/// </summary>
|
|||
[Display(Name = "发运单号")] |
|||
public string WmsBillNum { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
[Display(Name = "零件号")] |
|||
public string LU { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 生产号
|
|||
/// </summary>
|
|||
[Display(Name = "生产号")] |
|||
public string PN { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 组合键值(LU+PN)
|
|||
/// </summary>
|
|||
[Display(Name = "组合键值(LU+PN)")] |
|||
public string KeyCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 数量
|
|||
/// </summary>
|
|||
[Display(Name = "数量")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 日顺序号
|
|||
/// </summary>
|
|||
[Display(Name = "日顺序号")] |
|||
public string SeqNumber { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 小总成号
|
|||
/// </summary>
|
|||
[Display(Name = "小总成号")] |
|||
public string AssemblyCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 注塑码
|
|||
/// </summary>
|
|||
[Display(Name = "注塑码")] |
|||
public string InjectionCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 订单时间
|
|||
/// </summary>
|
|||
[Display(Name = "订单时间")] |
|||
public DateTime BeginDate { get; set; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 导出
|
|||
/// </summary>
|
|||
public class HBPO_SE_DETAIL_EXPORT_DTO |
|||
{ |
|||
/// <summary>
|
|||
/// 期间
|
|||
/// </summary>
|
|||
[Display(Name = "期间")] |
|||
[ExporterHeader(DisplayName = "期间")] |
|||
public int Version { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 发货时间
|
|||
/// </summary>
|
|||
[Display(Name = "发货时间")] |
|||
[ExporterHeader(DisplayName = "发货时间")] |
|||
public DateTime ShippingDate { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 发运单号
|
|||
/// </summary>
|
|||
[Display(Name = "发运单号")] |
|||
[ExporterHeader(DisplayName = "发运单号")] |
|||
public string WmsBillNum { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
[Display(Name = "零件号")] |
|||
[ExporterHeader(DisplayName = "零件号")] |
|||
public string LU { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 生产号
|
|||
/// </summary>
|
|||
[Display(Name = "生产号")] |
|||
[ExporterHeader(DisplayName = "生产号")] |
|||
public string PN { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 组合键值(LU+PN)
|
|||
/// </summary>
|
|||
[Display(Name = "组合键值(LU+PN)")] |
|||
[ExporterHeader(DisplayName = "组合键值(LU+PN)")] |
|||
public string KeyCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 数量
|
|||
/// </summary>
|
|||
[Display(Name = "数量")] |
|||
[ExporterHeader(DisplayName = "数量")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 日顺序号
|
|||
/// </summary>
|
|||
[Display(Name = "日顺序号")] |
|||
[ExporterHeader(DisplayName = "日顺序号")] |
|||
public string SeqNumber { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 小总成号
|
|||
/// </summary>
|
|||
[Display(Name = "小总成号")] |
|||
[ExporterHeader(DisplayName = "小总成号")] |
|||
public string AssemblyCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 注塑码
|
|||
/// </summary>
|
|||
[Display(Name = "注塑码")] |
|||
[ExporterHeader(DisplayName = "注塑码")] |
|||
public string InjectionCode { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 订单时间
|
|||
/// </summary>
|
|||
[Display(Name = "订单时间")] |
|||
[ExporterHeader(DisplayName = "订单时间")] |
|||
public DateTime BeginDate { get; set; } |
|||
} |
|||
|
|||
} |
@ -0,0 +1,65 @@ |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Win.Sfs.Shared.DtoBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos |
|||
{ |
|||
/// <summary>
|
|||
/// 采购价格单
|
|||
/// </summary>
|
|||
public class PURCHASE_PRICE_DTO |
|||
{ |
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
[Display(Name = "零件号")] |
|||
public string LU { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 价格
|
|||
/// </summary>
|
|||
[Display(Name = "价格")] |
|||
public decimal Price { get; set; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 导入
|
|||
/// </summary>
|
|||
public class PURCHASE_PRICE_IMPORT_DTO |
|||
{ |
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
[Display(Name = "零件号")] |
|||
[ImporterHeader(Name = "零件号")] |
|||
public string LU { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 价格
|
|||
/// </summary>
|
|||
[Display(Name = "价格")] |
|||
[ImporterHeader(Name = "价格")] |
|||
public decimal Price { get; set; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 导出
|
|||
/// </summary>
|
|||
public class PURCHASE_PRICE_EXPORT_DTO |
|||
{ |
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
[Display(Name = "零件号")] |
|||
[ExporterHeader(DisplayName = "零件号")] |
|||
public string LU { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 价格
|
|||
/// </summary>
|
|||
[Display(Name = "价格")] |
|||
[ExporterHeader(DisplayName = "价格")] |
|||
public decimal Price { get; set; } |
|||
} |
|||
|
|||
} |
@ -0,0 +1,8 @@ |
|||
using Win.Sfs.Shared.DtoBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos |
|||
{ |
|||
public class RequestDto : RequestDtoBase |
|||
{ |
|||
} |
|||
} |
@ -0,0 +1,104 @@ |
|||
using Magicodes.ExporterAndImporter.Core; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos |
|||
{ |
|||
/// <summary>
|
|||
/// 客户替换件关系
|
|||
/// </summary>
|
|||
public class TB_RePartsRelationship_DTO |
|||
{ |
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
[Display(Name = "零件号")] |
|||
public string LU { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 替换零件号
|
|||
/// </summary>
|
|||
[Display(Name = "替换零件号")] |
|||
public string RepLU { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 客户编码
|
|||
/// </summary>
|
|||
[Display(Name = "客户编码")] |
|||
public string ClientCode { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 业务类型
|
|||
/// </summary>
|
|||
[Display(Name = "业务类型")] |
|||
public string BusinessType { set; get; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 导入
|
|||
/// </summary>
|
|||
public class TB_RePartsRelationship_IMPORT_DTO |
|||
{ |
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
[Display(Name = "零件号")] |
|||
[ImporterHeader(Name = "零件号")] |
|||
public string LU { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 替换零件号
|
|||
/// </summary>
|
|||
[Display(Name = "替换零件号")] |
|||
[ImporterHeader(Name = "替换零件号")] |
|||
public string RepLU { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 客户编码
|
|||
/// </summary>
|
|||
[Display(Name = "客户编码")] |
|||
[ImporterHeader(Name = "客户编码")] |
|||
public string ClientCode { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 业务类型
|
|||
/// </summary>
|
|||
[Display(Name = "业务类型")] |
|||
[ImporterHeader(Name = "业务类型")] |
|||
public string BusinessType { set; get; } |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 导出
|
|||
/// </summary>
|
|||
public class TB_RePartsRelationship_EXPORT_DTO |
|||
{ |
|||
/// <summary>
|
|||
/// 零件号
|
|||
/// </summary>
|
|||
[Display(Name = "零件号")] |
|||
[ExporterHeader(DisplayName = "零件号")] |
|||
public string LU { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 替换零件号
|
|||
/// </summary>
|
|||
[Display(Name = "替换零件号")] |
|||
[ExporterHeader(DisplayName = "替换零件号")] |
|||
public string RepLU { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 客户编码
|
|||
/// </summary>
|
|||
[Display(Name = "客户编码")] |
|||
[ExporterHeader(DisplayName = "客户编码")] |
|||
public string ClientCode { set; get; } |
|||
|
|||
/// <summary>
|
|||
/// 业务类型
|
|||
/// </summary>
|
|||
[Display(Name = "业务类型")] |
|||
[ExporterHeader(DisplayName = "业务类型")] |
|||
public string BusinessType { set; get; } |
|||
} |
|||
|
|||
} |
@ -1,22 +1,6 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Services; |
|||
using Win.Sfs.SettleAccount.MaterialRelationships; |
|||
using Win.Sfs.Shared.ApplicationBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.MaterialRelationships |
|||
namespace Win.Sfs.SettleAccount.Entities.MaterialRelationships |
|||
{ |
|||
public interface IMaterialRelationshipAppService : ICrudAppService<MaterialRelationshipDto, |
|||
MaterialRelationshipDto, |
|||
Guid, |
|||
MaterialRelationshipRequestDto, |
|||
MaterialRelationshipCreateDto, |
|||
MaterialRelationshipUpdateDto>, |
|||
IBranchBaseDataAppService<MaterialRelationshipDto, Guid> |
|||
|
|||
public interface IMaterialRelationshipAppService |
|||
{ |
|||
} |
|||
} |
|||
|
@ -0,0 +1,80 @@ |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using SettleAccount.Domain.BQ; |
|||
using Shouldly; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Application.Services; |
|||
using Win.Sfs.BaseData.ImportExcelCommon; |
|||
using Win.Sfs.SettleAccount.Entities.BQ.Dtos; |
|||
using Win.Sfs.SettleAccount.ExcelImporter; |
|||
using Win.Sfs.Shared.RepositoryBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ |
|||
{ |
|||
/// <summary>
|
|||
/// BBAC发运单
|
|||
/// </summary>
|
|||
[AllowAnonymous] |
|||
[Route("api/settleaccount/BBAC_SE_DETAIL_SERVICE")] |
|||
public class BBAC_SE_DETAIL_SERVICE : ApplicationService |
|||
{ |
|||
/// <summary>
|
|||
/// BBAC发运单仓储
|
|||
/// </summary>
|
|||
private readonly INormalEfCoreRepository<BBAC_SE_DETAIL, Guid> _repository; |
|||
|
|||
/// <summary>
|
|||
/// excel服务
|
|||
/// </summary>
|
|||
private readonly IExcelImportAppService _excelImportService; |
|||
|
|||
/// <summary>
|
|||
/// 构造
|
|||
/// </summary>
|
|||
public BBAC_SE_DETAIL_SERVICE(INormalEfCoreRepository<BBAC_SE_DETAIL, Guid> repository, IExcelImportAppService excelImportService) |
|||
{ |
|||
_repository = repository; |
|||
_excelImportService = excelImportService; |
|||
} |
|||
|
|||
#region 导出
|
|||
/// <summary>
|
|||
/// 导出
|
|||
/// </summary>
|
|||
[HttpPost] |
|||
[Route("Export")] |
|||
public async Task<string> ExportAsync(RequestDto input) |
|||
{ |
|||
string fileName = $"BBAC发运单_{Guid.NewGuid()}.xlsx"; |
|||
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, 0, true); |
|||
var dtos = ObjectMapper.Map<List<BBAC_SE_DETAIL>, List<BBAC_SE_DETAIL_EXPORT_DTO>>(entities); |
|||
|
|||
ExportImporter _exportImporter = new ExportImporter(); |
|||
var result = await _exportImporter.ExcelExporter(dtos); |
|||
result.ShouldNotBeNull(); |
|||
|
|||
await _excelImportService.SaveBlobAsync(new SaveExcelImportInputDto { Name = fileName, Content = result }); |
|||
return fileName; |
|||
} |
|||
#endregion
|
|||
|
|||
#region 查询
|
|||
/// <summary>
|
|||
/// 获取列表
|
|||
/// </summary>
|
|||
[HttpPost] |
|||
[Route("list")] |
|||
public async Task<PagedResultDto<BBAC_SE_DETAIL_DTO>> GetListAsync(RequestDto input) |
|||
{ |
|||
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount, true); |
|||
var totalCount = await _repository.GetCountByFilterAsync(input.Filters); |
|||
var dtos = ObjectMapper.Map<List<BBAC_SE_DETAIL>, List<BBAC_SE_DETAIL_DTO>>(entities); |
|||
return new PagedResultDto<BBAC_SE_DETAIL_DTO>(totalCount, dtos); |
|||
} |
|||
#endregion
|
|||
|
|||
} |
|||
} |
@ -1,17 +1,80 @@ |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Components; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using SettleAccount.Domain.BQ; |
|||
using Shouldly; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Application.Services; |
|||
using Win.Sfs.BaseData.ImportExcelCommon; |
|||
using Win.Sfs.SettleAccount.Entities.BQ.Dtos; |
|||
using Win.Sfs.SettleAccount.ExcelImporter; |
|||
using Win.Sfs.Shared.RepositoryBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ |
|||
{ |
|||
/// <summary>
|
|||
/// BBAC的EDI数据
|
|||
/// </summary>
|
|||
[AllowAnonymous] |
|||
[Route("api/settleaccount/bbac_se_edi_service")] |
|||
public class BBAC_SE_EDI_SERVICE : ApplicationService |
|||
{ |
|||
/// <summary>
|
|||
/// BBAC的EDI数据仓储
|
|||
/// </summary>
|
|||
private readonly INormalEfCoreRepository<BBAC_SE_EDI, Guid> _repository; |
|||
|
|||
/// <summary>
|
|||
/// excel服务
|
|||
/// </summary>
|
|||
private readonly IExcelImportAppService _excelImportService; |
|||
|
|||
/// <summary>
|
|||
/// 构造
|
|||
/// </summary>
|
|||
public BBAC_SE_EDI_SERVICE(INormalEfCoreRepository<BBAC_SE_EDI, Guid> repository, IExcelImportAppService excelImportService) |
|||
{ |
|||
_repository = repository; |
|||
_excelImportService = excelImportService; |
|||
} |
|||
|
|||
#region 导出
|
|||
/// <summary>
|
|||
/// 导出
|
|||
/// </summary>
|
|||
[HttpPost] |
|||
[Route("Export")] |
|||
public async Task<string> ExportAsync(RequestDto input) |
|||
{ |
|||
string fileName = $"BBAC的EDI数据_{Guid.NewGuid()}.xlsx"; |
|||
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, 0, true); |
|||
var dtos = ObjectMapper.Map<List<BBAC_SE_EDI>, List<BBAC_SE_EDI_EXPORT_DTO>>(entities); |
|||
|
|||
ExportImporter _exportImporter = new ExportImporter(); |
|||
var result = await _exportImporter.ExcelExporter(dtos); |
|||
result.ShouldNotBeNull(); |
|||
|
|||
await _excelImportService.SaveBlobAsync(new SaveExcelImportInputDto { Name = fileName, Content = result }); |
|||
return fileName; |
|||
} |
|||
#endregion
|
|||
|
|||
#region 查询
|
|||
/// <summary>
|
|||
/// 获取列表
|
|||
/// </summary>
|
|||
[HttpPost] |
|||
[Route("list")] |
|||
public async Task<PagedResultDto<BBAC_SE_EDI_DTO>> GetListAsync(RequestDto input) |
|||
{ |
|||
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount, true); |
|||
var totalCount = await _repository.GetCountByFilterAsync(input.Filters); |
|||
var dtos = ObjectMapper.Map<List<BBAC_SE_EDI>, List<BBAC_SE_EDI_DTO>>(entities); |
|||
return new PagedResultDto<BBAC_SE_EDI_DTO>(totalCount, dtos); |
|||
} |
|||
#endregion
|
|||
|
|||
} |
|||
} |
|||
|
@ -0,0 +1,77 @@ |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using SettleAccount.Domain.BQ; |
|||
using Shouldly; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Application.Services; |
|||
using Win.Sfs.BaseData.ImportExcelCommon; |
|||
using Win.Sfs.SettleAccount.Entities.BQ.Dtos; |
|||
using Win.Sfs.SettleAccount.ExcelImporter; |
|||
using Win.Sfs.Shared.RepositoryBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ |
|||
{ |
|||
/// <summary>
|
|||
/// HBPO发运单
|
|||
/// </summary>
|
|||
[AllowAnonymous] |
|||
[Route("api/settleaccount/HBPO_SE_DETAIL_SERVICE")] |
|||
public class HBPO_SE_DETAIL_SERVICE : ApplicationService |
|||
{ |
|||
/// <summary>
|
|||
/// HBPO发运单仓储
|
|||
/// </summary>
|
|||
private readonly INormalEfCoreRepository<HBPO_SE_DETAIL, Guid> _repository; |
|||
|
|||
/// <summary>
|
|||
/// excel服务
|
|||
/// </summary>
|
|||
private readonly IExcelImportAppService _excelImportService; |
|||
|
|||
public HBPO_SE_DETAIL_SERVICE(INormalEfCoreRepository<HBPO_SE_DETAIL, Guid> repository, IExcelImportAppService excelImportService) |
|||
{ |
|||
_repository = repository; |
|||
_excelImportService = excelImportService; |
|||
} |
|||
|
|||
#region 导出
|
|||
/// <summary>
|
|||
/// 导出
|
|||
/// </summary>
|
|||
[HttpPost] |
|||
[Route("Export")] |
|||
public async Task<string> ExportAsync(RequestDto input) |
|||
{ |
|||
string fileName = $"HBPO发运单_{Guid.NewGuid()}.xlsx"; |
|||
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, 0, true); |
|||
var dtos = ObjectMapper.Map<List<HBPO_SE_DETAIL>, List<HBPO_SE_DETAIL_EXPORT_DTO>>(entities); |
|||
|
|||
ExportImporter _exportImporter = new ExportImporter(); |
|||
var result = await _exportImporter.ExcelExporter(dtos); |
|||
result.ShouldNotBeNull(); |
|||
|
|||
await _excelImportService.SaveBlobAsync(new SaveExcelImportInputDto { Name = fileName, Content = result }); |
|||
return fileName; |
|||
} |
|||
#endregion
|
|||
|
|||
#region 查询
|
|||
/// <summary>
|
|||
/// 获取列表
|
|||
/// </summary>
|
|||
[HttpPost] |
|||
[Route("list")] |
|||
public async Task<PagedResultDto<HBPO_SE_DETAIL_DTO>> GetListAsync(RequestDto input) |
|||
{ |
|||
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount, true); |
|||
var totalCount = await _repository.GetCountByFilterAsync(input.Filters); |
|||
var dtos = ObjectMapper.Map<List<HBPO_SE_DETAIL>, List<HBPO_SE_DETAIL_DTO>>(entities); |
|||
return new PagedResultDto<HBPO_SE_DETAIL_DTO>(totalCount, dtos); |
|||
} |
|||
#endregion
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,129 @@ |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using SettleAccount.Domain.BQ; |
|||
using Shouldly; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Caching; |
|||
using Win.Abp.Snowflakes; |
|||
using Win.Sfs.BaseData.ImportExcelCommon; |
|||
using Win.Sfs.SettleAccount.CommonManagers; |
|||
using Win.Sfs.SettleAccount.Constant; |
|||
using Win.Sfs.SettleAccount.Entities.BQ.Dtos; |
|||
using Win.Sfs.SettleAccount.ExcelImporter; |
|||
using Win.Sfs.SettleAccount.ExportReports; |
|||
using Win.Sfs.Shared.RepositoryBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ |
|||
{ |
|||
/// <summary>
|
|||
/// 采购价格单
|
|||
/// </summary>
|
|||
[AllowAnonymous] |
|||
[Route("api/settleaccount/PURCHASE_PRICE_LIST_Service")] |
|||
public class PURCHASE_PRICE_SERVICE : SettleAccountApplicationBase<PURCHASE_PRICE> |
|||
{ |
|||
/// <summary>
|
|||
/// 采购价格单仓储
|
|||
/// </summary>
|
|||
private readonly INormalEfCoreRepository<PURCHASE_PRICE, Guid> _repository; |
|||
|
|||
public PURCHASE_PRICE_SERVICE( |
|||
INormalEfCoreRepository<PURCHASE_PRICE, Guid> repository, |
|||
IDistributedCache<PURCHASE_PRICE> cache, |
|||
IExcelImportAppService excelImportService, |
|||
ISnowflakeIdGenerator snowflakeIdGenerator, |
|||
ICommonManager commonManager |
|||
) : base(cache, excelImportService, snowflakeIdGenerator, commonManager) |
|||
{ |
|||
_repository = repository; |
|||
} |
|||
|
|||
#region 导入、导出
|
|||
/// <summary>
|
|||
/// 导入
|
|||
/// </summary>
|
|||
[HttpPost] |
|||
[Route("Import")] |
|||
public async Task<string> ImportAsync([FromForm] IFormFileCollection files) |
|||
{ |
|||
ExportImporter _exportImporter = new ExportImporter(); |
|||
var result = await _exportImporter.UploadExcelImport<PURCHASE_PRICE_IMPORT_DTO>(files, _excelImportService); |
|||
var _ls = ObjectMapper.Map<List<PURCHASE_PRICE_IMPORT_DTO>, List<PURCHASE_PRICE>>(result); |
|||
List<string> _errorList = new List<string>(); |
|||
var checkList = new List<ErrorExportDto>(); |
|||
|
|||
if (_ls.Count > 0) |
|||
{ |
|||
var query = from arc in _ls |
|||
group arc by new { arc.LU } |
|||
into g |
|||
where g.Count() > 1 |
|||
|
|||
select g; |
|||
foreach (var itm in query) |
|||
{ |
|||
checkList.Add(new ErrorExportDto(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Format("物料号{0}有重复", itm.Key.LU), string.Empty)); |
|||
} |
|||
} |
|||
foreach (var itm in _ls) |
|||
{ |
|||
var _first = _repository.FirstOrDefault(p => p.LU == itm.LU); |
|||
if (_first != null) |
|||
{ |
|||
_first.Update(itm.Price); |
|||
await _repository.UpdateAsync(_first); |
|||
} |
|||
else |
|||
{ |
|||
await _repository.InsertAsync(itm); |
|||
} |
|||
} |
|||
if (checkList.Count > 0) |
|||
{ |
|||
return await ExportErrorReportAsync(checkList); |
|||
} |
|||
return ApplicationConsts.SuccessStr; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 导出
|
|||
/// </summary>
|
|||
[HttpPost] |
|||
[Route("Export")] |
|||
public async Task<string> ExportAsync(RequestDto input) |
|||
{ |
|||
string fileName = $"采购价格单_{Guid.NewGuid()}.xlsx"; |
|||
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, 0, true); |
|||
var dtos = ObjectMapper.Map<List<PURCHASE_PRICE>, List<PURCHASE_PRICE_EXPORT_DTO>>(entities); |
|||
|
|||
ExportImporter _exportImporter = new ExportImporter(); |
|||
var result = await _exportImporter.ExcelExporter(dtos); |
|||
result.ShouldNotBeNull(); |
|||
|
|||
await _excelImportService.SaveBlobAsync(new SaveExcelImportInputDto { Name = fileName, Content = result }); |
|||
return fileName; |
|||
} |
|||
#endregion
|
|||
|
|||
#region CURD
|
|||
/// <summary>
|
|||
/// 获取列表
|
|||
/// </summary>
|
|||
[HttpPost] |
|||
[Route("list")] |
|||
public async Task<PagedResultDto<PURCHASE_PRICE_DTO>> GetListAsync(RequestDto input) |
|||
{ |
|||
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount, true); |
|||
var totalCount = await _repository.GetCountByFilterAsync(input.Filters); |
|||
var dtos = ObjectMapper.Map<List<PURCHASE_PRICE>, List<PURCHASE_PRICE_DTO>>(entities); |
|||
return new PagedResultDto<PURCHASE_PRICE_DTO>(totalCount, dtos); |
|||
} |
|||
#endregion
|
|||
|
|||
} |
|||
} |
@ -0,0 +1,126 @@ |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using SettleAccount.Domain.BQ; |
|||
using Shouldly; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Caching; |
|||
using Win.Abp.Snowflakes; |
|||
using Win.Sfs.BaseData.ImportExcelCommon; |
|||
using Win.Sfs.SettleAccount.CommonManagers; |
|||
using Win.Sfs.SettleAccount.Constant; |
|||
using Win.Sfs.SettleAccount.Entities.BQ.Dtos; |
|||
using Win.Sfs.SettleAccount.ExcelImporter; |
|||
using Win.Sfs.SettleAccount.ExportReports; |
|||
using Win.Sfs.Shared.RepositoryBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ |
|||
{ |
|||
/// <summary>
|
|||
/// 客户替换件关系
|
|||
/// </summary>
|
|||
[AllowAnonymous] |
|||
[Route("api/settleaccount/[controller]/[action]")]
|
|||
public class TB_RePartsRelationship_SERVICE : SettleAccountApplicationBase<TB_RePartsRelationship> |
|||
{ |
|||
/// <summary>
|
|||
/// 客户替换件关系仓储
|
|||
/// </summary>
|
|||
private readonly INormalEfCoreRepository<TB_RePartsRelationship, Guid> _repository; |
|||
|
|||
public TB_RePartsRelationship_SERVICE( |
|||
INormalEfCoreRepository<TB_RePartsRelationship, Guid> repository, |
|||
IDistributedCache<TB_RePartsRelationship> cache, |
|||
IExcelImportAppService excelImportService, |
|||
ISnowflakeIdGenerator snowflakeIdGenerator, |
|||
ICommonManager commonManager |
|||
) : base(cache, excelImportService, snowflakeIdGenerator, commonManager) |
|||
{ |
|||
_repository = repository; |
|||
} |
|||
|
|||
#region 导入、导出
|
|||
/// <summary>
|
|||
/// 导入
|
|||
/// </summary>
|
|||
[HttpPost] |
|||
public async Task<string> ImportAsync([FromForm] IFormFileCollection files) |
|||
{ |
|||
ExportImporter _exportImporter = new ExportImporter(); |
|||
var result = await _exportImporter.UploadExcelImport<TB_RePartsRelationship_IMPORT_DTO>(files, _excelImportService); |
|||
var _ls = ObjectMapper.Map<List<TB_RePartsRelationship_IMPORT_DTO>, List<TB_RePartsRelationship>>(result); |
|||
List<string> _errorList = new List<string>(); |
|||
var checkList = new List<ErrorExportDto>(); |
|||
|
|||
if (_ls.Count > 0) |
|||
{ |
|||
var query = from arc in _ls |
|||
group arc by new { arc.LU } |
|||
into g |
|||
where g.Count() > 1 |
|||
|
|||
select g; |
|||
foreach (var itm in query) |
|||
{ |
|||
checkList.Add(new ErrorExportDto(string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Empty, string.Format("物料号{0}有重复", itm.Key.LU), string.Empty)); |
|||
} |
|||
} |
|||
foreach (var itm in _ls) |
|||
{ |
|||
var _first = _repository.FirstOrDefault(p => p.LU == itm.LU); |
|||
if (_first != null) |
|||
{ |
|||
_first.Update(itm.LU, itm.RepLU, itm.ClientCode, itm.BusinessType); |
|||
await _repository.UpdateAsync(_first); |
|||
} |
|||
else |
|||
{ |
|||
await _repository.InsertAsync(itm); |
|||
} |
|||
} |
|||
if (checkList.Count > 0) |
|||
{ |
|||
return await ExportErrorReportAsync(checkList); |
|||
} |
|||
return ApplicationConsts.SuccessStr; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 导出
|
|||
/// </summary>
|
|||
[HttpPost] |
|||
public async Task<string> ExportAsync(RequestDto input) |
|||
{ |
|||
string fileName = $"客户替换件关系_{Guid.NewGuid()}.xlsx"; |
|||
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, int.MaxValue, 0, true); |
|||
var dtos = ObjectMapper.Map<List<TB_RePartsRelationship>, List<TB_RePartsRelationship_EXPORT_DTO>>(entities); |
|||
|
|||
ExportImporter _exportImporter = new ExportImporter(); |
|||
var result = await _exportImporter.ExcelExporter(dtos); |
|||
result.ShouldNotBeNull(); |
|||
|
|||
await _excelImportService.SaveBlobAsync(new SaveExcelImportInputDto { Name = fileName, Content = result }); |
|||
return fileName; |
|||
} |
|||
#endregion
|
|||
|
|||
#region CURD
|
|||
/// <summary>
|
|||
/// 获取列表
|
|||
/// </summary>
|
|||
[HttpGet] |
|||
public async Task<PagedResultDto<TB_RePartsRelationship_DTO>> GetListAsync(RequestDto input) |
|||
{ |
|||
var entities = await _repository.GetListByFilterAsync(input.Filters, input.Sorting, input.MaxResultCount, input.SkipCount, true); |
|||
var totalCount = await _repository.GetCountByFilterAsync(input.Filters); |
|||
var dtos = ObjectMapper.Map<List<TB_RePartsRelationship>, List<TB_RePartsRelationship_DTO>>(entities); |
|||
return new PagedResultDto<TB_RePartsRelationship_DTO>(totalCount, dtos); |
|||
} |
|||
#endregion
|
|||
|
|||
} |
|||
} |
@ -1,11 +1,33 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
|
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Volo.Abp.Domain.Entities.Auditing; |
|||
|
|||
namespace SettleAccount.Domain.BQ; |
|||
|
|||
/// <summary>
|
|||
/// 采购价格单
|
|||
/// </summary>
|
|||
[Display(Name = "采购价格单")] |
|||
|
|||
public class PURCHASE_PRICE |
|||
public class PURCHASE_PRICE : FullAuditedAggregateRoot<Guid> |
|||
{ |
|||
/// <summary>
|
|||
/// 物料号
|
|||
/// </summary>
|
|||
[Display(Name = "物料号")] |
|||
public string LU { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 价格
|
|||
/// </summary>
|
|||
[Display(Name = "价格")] |
|||
public decimal Price { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 更新
|
|||
/// </summary>
|
|||
public void Update(decimal price) |
|||
{ |
|||
Price = price; |
|||
} |
|||
|
|||
} |
|||
|
File diff suppressed because it is too large
@ -0,0 +1,39 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class _202307112 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "Set_PURCHASE_PRICE", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
LU = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Set_PURCHASE_PRICE", x => x.Id); |
|||
}); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "Set_PURCHASE_PRICE"); |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,41 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class _202307121 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.CreateTable( |
|||
name: "Set_TB_RePartsRelationship", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
LU = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
RepLU = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ClientCode = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
BusinessType = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), |
|||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), |
|||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
|||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), |
|||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Set_TB_RePartsRelationship", x => x.Id); |
|||
}); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "Set_TB_RePartsRelationship"); |
|||
} |
|||
} |
|||
} |
@ -1,4 +0,0 @@ |
|||
// <autogenerated />
|
|||
using System; |
|||
using System.Reflection; |
|||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v5.0", FrameworkDisplayName = ".NET 5.0")] |
@ -1,20 +0,0 @@ |
|||
//------------------------------------------------------------------------------
|
|||
// <auto-generated>
|
|||
// 此代码由工具生成。
|
|||
// 运行时版本:4.0.30319.42000
|
|||
//
|
|||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
|||
// 重新生成代码,这些更改将会丢失。
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
using System; |
|||
using System.Reflection; |
|||
|
|||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] |
|||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] |
|||
[assembly: System.Reflection.AssemblyTitleAttribute("Win.Abp.Snowflakes")] |
|||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] |
|||
|
|||
// 由 MSBuild WriteCodeFragment 类生成。
|
|||
|
@ -1 +0,0 @@ |
|||
dd45d7419542ed747e383f3acb2b9bf5ef266736 |
@ -1,11 +0,0 @@ |
|||
is_global = true |
|||
build_property.TargetFramework = netcoreapp5 |
|||
build_property.TargetPlatformMinVersion = |
|||
build_property.UsingMicrosoftNETSdkWeb = |
|||
build_property.ProjectTypeGuids = |
|||
build_property.InvariantGlobalization = |
|||
build_property.PlatformNeutralAssembly = |
|||
build_property.EnforceExtendedAnalyzerRules = |
|||
build_property._SupportedPlatformList = Linux,macOS,Windows |
|||
build_property.RootNamespace = |
|||
build_property.ProjectDir = C:\Users\Administrator\Source\Repos\BeiJinSettleAccount\code\src\Shared\Win.Abp.Snowflakes\ |
Binary file not shown.
Binary file not shown.
@ -1,74 +0,0 @@ |
|||
{ |
|||
"format": 1, |
|||
"restore": { |
|||
"E:\\我的工作\\B_BJBQJS\\BJBQJS\\code\\src\\Shared\\Win.Abp.Snowflakes\\Win.Abp.Snowflakes.csproj": {} |
|||
}, |
|||
"projects": { |
|||
"E:\\我的工作\\B_BJBQJS\\BJBQJS\\code\\src\\Shared\\Win.Abp.Snowflakes\\Win.Abp.Snowflakes.csproj": { |
|||
"version": "1.0.0", |
|||
"restore": { |
|||
"projectUniqueName": "E:\\我的工作\\B_BJBQJS\\BJBQJS\\code\\src\\Shared\\Win.Abp.Snowflakes\\Win.Abp.Snowflakes.csproj", |
|||
"projectName": "Win.Abp.Snowflakes", |
|||
"projectPath": "E:\\我的工作\\B_BJBQJS\\BJBQJS\\code\\src\\Shared\\Win.Abp.Snowflakes\\Win.Abp.Snowflakes.csproj", |
|||
"packagesPath": "D:\\ProgramData\\NuGet\\packages", |
|||
"outputPath": "E:\\我的工作\\B_BJBQJS\\BJBQJS\\code\\src\\Shared\\Win.Abp.Snowflakes\\obj\\", |
|||
"projectStyle": "PackageReference", |
|||
"fallbackFolders": [ |
|||
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" |
|||
], |
|||
"configFilePaths": [ |
|||
"C:\\Users\\Administrator\\AppData\\Roaming\\NuGet\\NuGet.Config", |
|||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", |
|||
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" |
|||
], |
|||
"originalTargetFrameworks": [ |
|||
"netcoreapp5" |
|||
], |
|||
"sources": { |
|||
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, |
|||
"https://api.nuget.org/v3/index.json": {} |
|||
}, |
|||
"frameworks": { |
|||
"net5.0": { |
|||
"targetAlias": "netcoreapp5", |
|||
"projectReferences": {} |
|||
} |
|||
}, |
|||
"warningProperties": { |
|||
"warnAsError": [ |
|||
"NU1605" |
|||
] |
|||
} |
|||
}, |
|||
"frameworks": { |
|||
"net5.0": { |
|||
"targetAlias": "netcoreapp5", |
|||
"dependencies": { |
|||
"Volo.Abp.Core": { |
|||
"target": "Package", |
|||
"version": "[4.0.0, )" |
|||
} |
|||
}, |
|||
"imports": [ |
|||
"portable-net45+win8+wp8+wpa81", |
|||
"net461", |
|||
"net462", |
|||
"net47", |
|||
"net471", |
|||
"net472", |
|||
"net48", |
|||
"net481" |
|||
], |
|||
"assetTargetFallback": true, |
|||
"warn": true, |
|||
"frameworkReferences": { |
|||
"Microsoft.NETCore.App": { |
|||
"privateAssets": "all" |
|||
} |
|||
}, |
|||
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.200\\RuntimeIdentifierGraph.json" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
@ -1,16 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?> |
|||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> |
|||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess> |
|||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool> |
|||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile> |
|||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">D:\ProgramData\NuGet\packages</NuGetPackageRoot> |
|||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">D:\ProgramData\NuGet\packages;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders> |
|||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> |
|||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.5.0</NuGetToolVersion> |
|||
</PropertyGroup> |
|||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' "> |
|||
<SourceRoot Include="D:\ProgramData\NuGet\packages\" /> |
|||
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" /> |
|||
</ItemGroup> |
|||
</Project> |
@ -1,2 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?> |
|||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" /> |
File diff suppressed because it is too large
@ -1,64 +0,0 @@ |
|||
{ |
|||
"version": 2, |
|||
"dgSpecHash": "Ub4JQ58b10+xiFEHhFzG6d6yEoGhQ90WlHa0QLExy5UwBYfOAou1jOGc006kixczlWN+OUEoirHCniYH+f7bpQ==", |
|||
"success": true, |
|||
"projectFilePath": "E:\\我的工作\\B_BJBQJS\\BJBQJS\\code\\src\\Shared\\Win.Abp.Snowflakes\\Win.Abp.Snowflakes.csproj", |
|||
"expectedPackageFiles": [ |
|||
"D:\\ProgramData\\NuGet\\packages\\jetbrains.annotations\\2020.1.0\\jetbrains.annotations.2020.1.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.configuration\\5.0.0\\microsoft.extensions.configuration.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.configuration.abstractions\\5.0.0\\microsoft.extensions.configuration.abstractions.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.configuration.binder\\5.0.0\\microsoft.extensions.configuration.binder.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.configuration.commandline\\5.0.0\\microsoft.extensions.configuration.commandline.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.configuration.environmentvariables\\5.0.0\\microsoft.extensions.configuration.environmentvariables.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.configuration.fileextensions\\5.0.0\\microsoft.extensions.configuration.fileextensions.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.configuration.json\\5.0.0\\microsoft.extensions.configuration.json.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.configuration.usersecrets\\5.0.0\\microsoft.extensions.configuration.usersecrets.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.dependencyinjection\\5.0.0\\microsoft.extensions.dependencyinjection.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.dependencyinjection.abstractions\\5.0.0\\microsoft.extensions.dependencyinjection.abstractions.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.fileproviders.abstractions\\5.0.0\\microsoft.extensions.fileproviders.abstractions.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.fileproviders.physical\\5.0.0\\microsoft.extensions.fileproviders.physical.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.filesystemglobbing\\5.0.0\\microsoft.extensions.filesystemglobbing.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.hosting.abstractions\\5.0.0\\microsoft.extensions.hosting.abstractions.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.localization\\5.0.0\\microsoft.extensions.localization.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.localization.abstractions\\5.0.0\\microsoft.extensions.localization.abstractions.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.logging\\5.0.0\\microsoft.extensions.logging.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.logging.abstractions\\5.0.0\\microsoft.extensions.logging.abstractions.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.options\\5.0.0\\microsoft.extensions.options.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.options.configurationextensions\\5.0.0\\microsoft.extensions.options.configurationextensions.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.extensions.primitives\\5.0.0\\microsoft.extensions.primitives.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.netcore.platforms\\1.1.0\\microsoft.netcore.platforms.1.1.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\microsoft.netcore.targets\\1.1.0\\microsoft.netcore.targets.1.1.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\nito.asyncex.context\\5.0.0\\nito.asyncex.context.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\nito.asyncex.coordination\\5.0.0\\nito.asyncex.coordination.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\nito.asyncex.tasks\\5.0.0\\nito.asyncex.tasks.5.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\nito.collections.deque\\1.0.4\\nito.collections.deque.1.0.4.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\nito.disposables\\2.0.0\\nito.disposables.2.0.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.collections\\4.3.0\\system.collections.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.collections.immutable\\1.7.1\\system.collections.immutable.1.7.1.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.componentmodel.annotations\\4.7.0\\system.componentmodel.annotations.4.7.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.diagnostics.debug\\4.3.0\\system.diagnostics.debug.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.globalization\\4.3.0\\system.globalization.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.io\\4.3.0\\system.io.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.linq\\4.3.0\\system.linq.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.linq.dynamic.core\\1.1.5\\system.linq.dynamic.core.1.1.5.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.linq.expressions\\4.3.0\\system.linq.expressions.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.linq.queryable\\4.3.0\\system.linq.queryable.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.objectmodel\\4.3.0\\system.objectmodel.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.reflection\\4.3.0\\system.reflection.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.reflection.emit\\4.3.0\\system.reflection.emit.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.reflection.emit.ilgeneration\\4.3.0\\system.reflection.emit.ilgeneration.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.reflection.emit.lightweight\\4.3.0\\system.reflection.emit.lightweight.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.reflection.extensions\\4.3.0\\system.reflection.extensions.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.reflection.primitives\\4.3.0\\system.reflection.primitives.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.reflection.typeextensions\\4.3.0\\system.reflection.typeextensions.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.resources.resourcemanager\\4.3.0\\system.resources.resourcemanager.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.runtime\\4.3.0\\system.runtime.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.runtime.extensions\\4.3.0\\system.runtime.extensions.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.runtime.loader\\4.3.0\\system.runtime.loader.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.text.encoding\\4.3.0\\system.text.encoding.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.threading\\4.3.0\\system.threading.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\system.threading.tasks\\4.3.0\\system.threading.tasks.4.3.0.nupkg.sha512", |
|||
"D:\\ProgramData\\NuGet\\packages\\volo.abp.core\\4.0.0\\volo.abp.core.4.0.0.nupkg.sha512" |
|||
], |
|||
"logs": [] |
|||
} |
@ -1,4 +0,0 @@ |
|||
// <autogenerated />
|
|||
using System; |
|||
using System.Reflection; |
|||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")] |
@ -1,23 +0,0 @@ |
|||
//------------------------------------------------------------------------------
|
|||
// <auto-generated>
|
|||
// 此代码由工具生成。
|
|||
// 运行时版本:4.0.30319.42000
|
|||
//
|
|||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
|||
// 重新生成代码,这些更改将会丢失。
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
using System; |
|||
using System.Reflection; |
|||
|
|||
[assembly: System.Reflection.AssemblyCompanyAttribute("Win.Abp.SerialNumber.Test")] |
|||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] |
|||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] |
|||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] |
|||
[assembly: System.Reflection.AssemblyProductAttribute("Win.Abp.SerialNumber.Test")] |
|||
[assembly: System.Reflection.AssemblyTitleAttribute("Win.Abp.SerialNumber.Test")] |
|||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] |
|||
|
|||
// 由 MSBuild WriteCodeFragment 类生成。
|
|||
|
@ -1 +0,0 @@ |
|||
1a654d04530100f52d8ecd654e3f9dfc5b5c638e |
Binary file not shown.
@ -1 +0,0 @@ |
|||
2095721497ba41d4da5fb7bd02b3551dbedca11a |
@ -1,73 +0,0 @@ |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\appsettings.json |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Win.Abp.SerialNumber.Test.exe |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Win.Abp.SerialNumber.Test.deps.json |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Win.Abp.SerialNumber.Test.runtimeconfig.json |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Win.Abp.SerialNumber.Test.runtimeconfig.dev.json |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Win.Abp.SerialNumber.Test.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Win.Abp.SerialNumber.Test.pdb |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\CSRedisCore.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\JetBrains.Annotations.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Configuration.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Configuration.Abstractions.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Configuration.Binder.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Configuration.CommandLine.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Configuration.EnvironmentVariables.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Configuration.FileExtensions.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Configuration.Json.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Configuration.UserSecrets.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.DependencyInjection.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.DependencyInjection.Abstractions.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.FileProviders.Abstractions.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.FileProviders.Physical.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.FileSystemGlobbing.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Hosting.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Hosting.Abstractions.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Localization.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Localization.Abstractions.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Logging.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Logging.Abstractions.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Logging.Configuration.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Logging.Console.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Logging.Debug.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Logging.EventLog.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Logging.EventSource.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Options.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Options.ConfigurationExtensions.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Microsoft.Extensions.Primitives.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Newtonsoft.Json.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Nito.AsyncEx.Context.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Nito.AsyncEx.Coordination.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Nito.AsyncEx.Tasks.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Nito.Collections.Deque.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Nito.Disposables.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Pipelines.Sockets.Unofficial.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\SafeObjectPool.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Serilog.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Serilog.Extensions.Logging.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Serilog.Sinks.Console.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Serilog.Sinks.File.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\StackExchange.Redis.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\System.Collections.Immutable.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\System.Configuration.ConfigurationManager.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\System.Diagnostics.DiagnosticSource.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\System.Diagnostics.EventLog.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\System.Diagnostics.PerformanceCounter.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\System.IO.Pipelines.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\System.Linq.Dynamic.Core.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\System.Security.Cryptography.ProtectedData.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\System.Security.Permissions.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\System.Text.Json.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Volo.Abp.Core.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\runtimes\win\lib\netcoreapp2.0\System.Diagnostics.EventLog.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\runtimes\win\lib\netcoreapp2.0\System.Diagnostics.PerformanceCounter.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\runtimes\win\lib\netstandard2.0\System.Security.Cryptography.ProtectedData.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Win.Abp.SerialNumber.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\bin\Debug\netcoreapp3.1\Win.Abp.SerialNumber.pdb |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\obj\Debug\netcoreapp3.1\Win.Abp.SerialNumber.Test.csprojAssemblyReference.cache |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\obj\Debug\netcoreapp3.1\Win.Abp.SerialNumber.Test.AssemblyInfoInputs.cache |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\obj\Debug\netcoreapp3.1\Win.Abp.SerialNumber.Test.AssemblyInfo.cs |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\obj\Debug\netcoreapp3.1\Win.Abp.SerialNumber.Test.csproj.CoreCompileInputs.cache |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\obj\Debug\netcoreapp3.1\Win.Abp.SerialNumber.Test.csproj.CopyComplete |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\obj\Debug\netcoreapp3.1\Win.Abp.SerialNumber.Test.dll |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\obj\Debug\netcoreapp3.1\Win.Abp.SerialNumber.Test.pdb |
|||
H:\wms123\src\Shared\Win.Abp\Win.Abp.SerialNumber.Test\obj\Debug\netcoreapp3.1\Win.Abp.SerialNumber.Test.genruntimeconfig.cache |
Binary file not shown.
Binary file not shown.
@ -1 +0,0 @@ |
|||
54e70cc76f209add602448f67165d969f59d488e |
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue