mahao
1 year ago
61 changed files with 12897 additions and 1761 deletions
Binary file not shown.
@ -1,6 +0,0 @@ |
|||
[meta] |
|||
dir = "./data/meta" |
|||
|
|||
[data] |
|||
dir = "./data/data" |
|||
wal-dir = "./data/wal" |
@ -1,11 +0,0 @@ |
|||
@echo off |
|||
|
|||
tasklist|find /i "influxd.exe" |
|||
|
|||
if %errorlevel% == 0 ( |
|||
¡¡¡¡exit |
|||
) |
|||
|
|||
%1 start mshta vbscript:createobject("wscript.shell").run("""%~0"" ::",0)(window.close)&&exit |
|||
|
|||
start /b ./influxd.exe -config ./influxdb.conf |
@ -1,3 +0,0 @@ |
|||
@ECHO OFF |
|||
|
|||
taskkill /im influxd.exe /f /t |
@ -1,262 +0,0 @@ |
|||
import { billType, codeType, subBillType } from "./inventory.js"; |
|||
|
|||
const schema = { |
|||
title: "寄售库存调整", |
|||
type: "object", |
|||
properties: { |
|||
logType: { |
|||
title: "库存事务分类", |
|||
type: "string", |
|||
default: "Type500", |
|||
hidden: true, |
|||
}, |
|||
changedType: { |
|||
title: "变动类型", |
|||
type: "string", |
|||
default: "in", |
|||
hidden: true, |
|||
}, |
|||
partCode: { |
|||
title: "LU零件号", |
|||
type: "string", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
customerPartCode: { |
|||
title: "客户零件号", |
|||
type: "string", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
codeType, |
|||
billType, |
|||
qty: { |
|||
title: "数量", |
|||
type: "number", |
|||
input: "number", |
|||
}, |
|||
billTime: { |
|||
title: "发运日期", |
|||
type: "string", |
|||
input: "datetime", |
|||
}, |
|||
changedNumber: { |
|||
title: "变动单号", |
|||
type: "string", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
changedTime: { |
|||
title: "变动时间", |
|||
type: "string", |
|||
input: "datetime", |
|||
}, |
|||
deliverTime: { |
|||
title: "订单日期", |
|||
type: "string", |
|||
input: "datetime", |
|||
}, |
|||
erpToLoc: { |
|||
title: "ERP库位", |
|||
type: "string", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
orderNum: { |
|||
title: "EDI原始订单号", |
|||
type: "string", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
changedBy: { |
|||
title: "变动人", |
|||
type: "string", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
subBillType, |
|||
reMark: { |
|||
title: "备注", |
|||
type: "string", |
|||
input: "textarea", |
|||
}, |
|||
vinCode: { |
|||
title: "EDI订单生产码", |
|||
type: "string", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
billNum: { |
|||
title: "WMS发运单号", |
|||
type: "string", |
|||
rules: [ |
|||
{ |
|||
required: true, |
|||
}, |
|||
], |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/vmi"; |
|||
const queryUrl = `${baseUrl}/log`; |
|||
const detailsUrl = `${baseUrl}/get/%s`; |
|||
const createUrl = "settleaccount/vmi/edit-balance"; |
|||
const updateUrl = `${baseUrl}/update/%s`; |
|||
const deleteUrl = `${baseUrl}/delete-list`; |
|||
const importUrl = `${baseUrl}/import`; |
|||
const exportUrl = `${baseUrl}/export`; |
|||
const queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
const importMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "通用代码", |
|||
type: "object", |
|||
properties: { |
|||
logTypes: { type: "array", hidden: true, default: ["Type500", "Type600"] }, |
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "erpToLoc", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "createdDate", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "lu", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "tmpe4", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "vinCode", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "codeType", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "proType", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
// {
|
|||
// logic: "and",
|
|||
// column: "logType",
|
|||
// action: "in",
|
|||
// value: "Type500, Type600",
|
|||
// readOnly: true,
|
|||
// },
|
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
importUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
importMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,139 +0,0 @@ |
|||
import useVmi from "./vmi.js"; |
|||
|
|||
const schema = useVmi(); |
|||
|
|||
const baseUrl = "settleaccount/vmi"; |
|||
const queryUrl = `${baseUrl}/backup`; |
|||
const detailsUrl = `${baseUrl}/get/%s`; |
|||
const createUrl = `${baseUrl}/create`; |
|||
const updateUrl = `${baseUrl}/update/%s`; |
|||
const deleteUrl = `${baseUrl}/delete-list`; |
|||
const importUrl = `${baseUrl}/code-setting-upload-excel-import`; |
|||
const exportUrl = `${baseUrl}/backup-export`; |
|||
const invokeUrl = "settleaccount/vmi/invoke"; |
|||
const queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
const importMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
const invokeMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
autoSubmit: true, |
|||
disableQueryOnLoad: true, |
|||
schema: { |
|||
title: "时点库存余额查询", |
|||
type: "object", |
|||
properties: { |
|||
name: { |
|||
title: "时间", |
|||
type: "string", |
|||
input: "select", |
|||
url: "settleaccount/vmi/snapshot", |
|||
value: "name", |
|||
label: "name", |
|||
defaultSelected: true, |
|||
clearable: false, |
|||
}, |
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "erpToLoc", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "partCode", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "vinCode", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "codeType", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "billType", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
importUrl, |
|||
exportUrl, |
|||
invokeUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
importMethod, |
|||
exportMethod, |
|||
invokeMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,123 +0,0 @@ |
|||
import useVmi from "./vmi.js"; |
|||
|
|||
const schema = useVmi(); |
|||
|
|||
const baseUrl = "settleaccount/vmi"; |
|||
const queryUrl = `${baseUrl}/balance`; |
|||
const detailsUrl = `${baseUrl}/get/%s`; |
|||
const createUrl = `${baseUrl}/create`; |
|||
const updateUrl = `${baseUrl}/update/%s`; |
|||
const deleteUrl = `${baseUrl}/delete-list`; |
|||
const importUrl = `${baseUrl}/code-setting-upload-excel-import`; |
|||
const exportUrl = `${baseUrl}/balance-export`; |
|||
const queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
const importMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "寄售库存", |
|||
type: "object", |
|||
properties: { |
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "erpToLoc", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "partCode", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "vinCode", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "codeType", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "billType", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
importUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
importMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,248 +0,0 @@ |
|||
import { billType, codeType, subBillType } from "./inventory.js"; |
|||
|
|||
//变动单据号、发生时间、生产码类型、、订单号、库位、变动数、EDI顺序号、备注、变动类型(In、Out标识)、发货类型(JIS\JIT\买单件\备件等)、
|
|||
//实扣LU零件号、实扣客户零件号、结算LU零件号、结算客户零件号、实扣生产码、结算生产码
|
|||
//库位、开始结束时间段、发货类型、生产码、生产码类型、LU零件号、订单号
|
|||
const options = [ |
|||
{ value: null, label: "" }, |
|||
{ value: true, label: "是" }, |
|||
{ value: false, label: "否" }, |
|||
]; |
|||
const schema = { |
|||
title: "库存事务日志", |
|||
type: "object", |
|||
properties: { |
|||
partCode: { |
|||
title: "LU零件号", |
|||
type: "string", |
|||
}, |
|||
customerPartCode: { |
|||
title: "客户零件号", |
|||
type: "string", |
|||
}, |
|||
codeType, |
|||
billType, |
|||
qty: { |
|||
title: "数量", |
|||
type: "number", |
|||
}, |
|||
billTime: { |
|||
title: "发运日期", |
|||
type: "string", |
|||
input: "datetime", |
|||
}, |
|||
deliverTime: { |
|||
title: "订单日期", |
|||
type: "string", |
|||
input: "datetime", |
|||
}, |
|||
erpToLoc: { |
|||
title: "ERP库位", |
|||
type: "string", |
|||
}, |
|||
seq: { |
|||
title: "EDI顺序号", |
|||
type: "string", |
|||
}, |
|||
orderNum: { |
|||
title: "客户订单号", |
|||
type: "string", |
|||
}, |
|||
uniqueCode: { |
|||
title: "塑件唯一码", |
|||
type: "string", |
|||
}, |
|||
matchNumber: { |
|||
title: "EDI总成号", |
|||
type: "string", |
|||
}, |
|||
pjsNum: { |
|||
title: "PJIS生产顺序号", |
|||
type: "string", |
|||
}, |
|||
changedNumber: { |
|||
title: "变动单号", |
|||
type: "string", |
|||
}, |
|||
changedTime: { |
|||
title: "变动时间", |
|||
type: "string", |
|||
input: "datetime", |
|||
}, |
|||
changedBy: { |
|||
title: "变动人", |
|||
type: "string", |
|||
}, |
|||
partCode2: { |
|||
title: "结算厂内零件号", |
|||
type: "string", |
|||
}, |
|||
realCode: { |
|||
title: "WMS实发生产码", |
|||
type: "string", |
|||
}, |
|||
vinCode: { |
|||
title: "EDI订单生产码", |
|||
type: "string", |
|||
}, |
|||
settlementVinCode: { |
|||
title: "结算生产码", |
|||
type: "string", |
|||
}, |
|||
subBillType, |
|||
isReplenished: { |
|||
title: "是否补货", |
|||
type: "boolean", |
|||
input: "select", |
|||
options, |
|||
}, |
|||
configcode: { |
|||
title: "配置码", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
|
|||
const baseUrl = "settleaccount/vmi"; |
|||
const queryUrl = `${baseUrl}/log`; |
|||
const detailsUrl = `${baseUrl}/get/%s`; |
|||
const createUrl = `${baseUrl}/create`; |
|||
const updateUrl = `${baseUrl}/update/%s`; |
|||
const deleteUrl = `${baseUrl}/delete-list`; |
|||
const importUrl = `${baseUrl}/log-import`; |
|||
const exportUrl = `${baseUrl}/log-export`; |
|||
const queryMethod = "POST"; |
|||
const detailsMethod = "POST"; |
|||
const createMethod = "POST"; |
|||
const updateMethod = "POST"; |
|||
const deleteMethod = "POST"; |
|||
const importMethod = "POST"; |
|||
const exportMethod = "POST"; |
|||
|
|||
export default function () { |
|||
return { |
|||
query: { |
|||
url: queryUrl, |
|||
method: queryMethod, |
|||
hasFilter: true, |
|||
schema: { |
|||
title: "通用代码", |
|||
type: "object", |
|||
properties: { |
|||
// logTypes: { type: "array", hidden: true, default: ["Type200", "Type400"] },
|
|||
filters: { |
|||
title: "项目", |
|||
type: "array", |
|||
hidden: true, |
|||
items: { |
|||
type: "object", |
|||
properties: { |
|||
logic: { |
|||
type: "int", |
|||
}, |
|||
column: { |
|||
type: "string", |
|||
}, |
|||
action: { |
|||
type: "int", |
|||
}, |
|||
value: { |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}, |
|||
default: [ |
|||
{ |
|||
logic: "and", |
|||
column: "erpToLoc", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "billType", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "vinCode", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "codeType", |
|||
action: "equal", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "partCode", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "orderNum", |
|||
action: "like", |
|||
value: null, |
|||
readOnly: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "billTime", |
|||
action: "biggerThanOrEqual", |
|||
value: null, |
|||
readOnly: true, |
|||
hidden: true, |
|||
}, |
|||
{ |
|||
logic: "and", |
|||
column: "billTime", |
|||
action: "smallThanOrEqual", |
|||
value: null, |
|||
readOnly: true, |
|||
hidden: true, |
|||
}, |
|||
], |
|||
}, |
|||
skipCount: { |
|||
hidden: true, |
|||
default: 0, |
|||
}, |
|||
maxResultCount: { |
|||
hidden: true, |
|||
default: 10, |
|||
}, |
|||
sorting: { |
|||
hidden: true, |
|||
}, |
|||
}, |
|||
}, |
|||
}, |
|||
table: { |
|||
schema: schema, |
|||
}, |
|||
edit: { |
|||
detailsUrl, |
|||
createUrl, |
|||
updateUrl, |
|||
deleteUrl, |
|||
importUrl, |
|||
exportUrl, |
|||
detailsMethod, |
|||
createMethod, |
|||
updateMethod, |
|||
deleteMethod, |
|||
importMethod, |
|||
exportMethod, |
|||
schema: schema, |
|||
}, |
|||
}; |
|||
} |
@ -1,92 +0,0 @@ |
|||
import { billType, codeType, subBillType } from "./inventory.js"; |
|||
|
|||
export default function () { |
|||
return { |
|||
title: "寄售库存", |
|||
type: "object", |
|||
properties: { |
|||
// id: {
|
|||
// type: "string",
|
|||
// hidden: true,
|
|||
// showForList: false,
|
|||
// },
|
|||
// lu: {
|
|||
// title: "LU零件号",
|
|||
// type: "string",
|
|||
// },
|
|||
partCode: { |
|||
title: "LU零件号", |
|||
type: "string", |
|||
}, |
|||
customerPartCode: { |
|||
title: "客户零件号", |
|||
type: "string", |
|||
}, |
|||
codeType, |
|||
billType, |
|||
qty: { |
|||
title: "数量", |
|||
type: "string", |
|||
}, |
|||
billTime: { |
|||
title: "发运日期", |
|||
type: "string", |
|||
input: "datetime", |
|||
}, |
|||
deliverTime: { |
|||
title: "订单日期", |
|||
type: "string", |
|||
input: "datetime", |
|||
}, |
|||
erpToLoc: { |
|||
title: "ERP库位", |
|||
type: "string", |
|||
}, |
|||
seq: { |
|||
title: "EDI顺序号", |
|||
type: "string", |
|||
}, |
|||
orderNum: { |
|||
title: "客户订单号", |
|||
type: "string", |
|||
}, |
|||
uniqueCode: { |
|||
title: "塑件唯一码", |
|||
type: "string", |
|||
}, |
|||
matchNumber: { |
|||
title: "EDI总成号", |
|||
type: "string", |
|||
}, |
|||
pjsNum: { |
|||
title: "PJIS生产顺序号", |
|||
type: "string", |
|||
}, |
|||
reMark: { |
|||
title: "备注", |
|||
type: "string", |
|||
}, |
|||
configcode: { |
|||
title: "配置码", |
|||
type: "string", |
|||
}, |
|||
factory: { |
|||
title: "工厂", |
|||
type: "string", |
|||
}, |
|||
subBillType, |
|||
realCode: { |
|||
title: "WMS实发生产码", |
|||
type: "string", |
|||
}, |
|||
vinCode: { |
|||
title: "EDI订单生产码", |
|||
type: "string", |
|||
}, |
|||
settlementVinCode: { |
|||
title: "结算生产码", |
|||
type: "string", |
|||
}, |
|||
}, |
|||
}; |
|||
} |
@ -0,0 +1,33 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Entities; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
|||
|
|||
public class VmiSyncTask : Entity<Guid>, IHasConcurrencyStamp |
|||
{ |
|||
public VmiSyncTask() |
|||
{ |
|||
ConcurrencyStamp = Guid.NewGuid().ToString("N"); |
|||
} |
|||
|
|||
public VmiSyncTask(Guid id) : base(id) |
|||
{ |
|||
ConcurrencyStamp = Guid.NewGuid().ToString("N"); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 任务名称
|
|||
/// </summary>
|
|||
public string Name { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 同步数据时间戳初始起点
|
|||
/// </summary>
|
|||
public string Number { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 最后同步时间
|
|||
/// </summary>
|
|||
public DateTime LastUpdate { get; set; } |
|||
public string ConcurrencyStamp { get; set; } |
|||
} |
@ -0,0 +1,22 @@ |
|||
using System; |
|||
using Volo.Abp.Domain.Entities; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
|||
|
|||
public class VmiMessage : Entity<Guid>, IHasConcurrencyStamp |
|||
{ |
|||
public VmiMessage() |
|||
{ |
|||
ConcurrencyStamp = Guid.NewGuid().ToString("N"); |
|||
} |
|||
|
|||
public VmiMessage(Guid id) : base(id) |
|||
{ |
|||
ConcurrencyStamp = Guid.NewGuid().ToString("N"); |
|||
} |
|||
public long Number { get; set; } |
|||
public string Message { get; set; } |
|||
public bool isConsumed { get; set; } |
|||
public DateTime CreatedTime { get; set; } = DateTime.Now; |
|||
public string ConcurrencyStamp { get; set; } |
|||
} |
@ -1,25 +0,0 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using Win.Sfs.SettleAccount.Entities.BQ.Vmi; |
|||
|
|||
namespace Win.Sfs.SettleAccount.EntityFrameworkCore; |
|||
|
|||
public class VmiSqliteContext : DbContext |
|||
{ |
|||
private readonly string _connectionString; |
|||
|
|||
public VmiSqliteContext(string connectionString) |
|||
{ |
|||
this._connectionString = connectionString; |
|||
} |
|||
|
|||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) |
|||
{ |
|||
optionsBuilder.UseSqlite(this._connectionString); |
|||
} |
|||
|
|||
protected override void OnModelCreating(ModelBuilder modelBuilder) |
|||
{ |
|||
modelBuilder.Entity<VmiBalance>().HasKey(o => o.Id); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,236 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class vmi12 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropIndex( |
|||
name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DeleteData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("daf33f05-698e-49cf-b688-9288f5e94be5")); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CustomerPartCode", |
|||
table: "Set_VmiLog"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "BackupTime", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "SubBillType", |
|||
table: "Set_VmiLog", |
|||
newName: "DeliverSubBillType"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "PartCode2", |
|||
table: "Set_VmiLog", |
|||
newName: "SettlementPartCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "PartCode", |
|||
table: "Set_VmiLog", |
|||
newName: "RealPartCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "GroupId", |
|||
table: "Set_VmiLog", |
|||
newName: "CustPartCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "DeliverTime", |
|||
table: "Set_VmiLog", |
|||
newName: "AssembleData"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "BillType", |
|||
table: "Set_VmiLog", |
|||
newName: "DeliverBillType"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "SubBillType", |
|||
table: "Set_VmiBalance", |
|||
newName: "DeliverSubBillType"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "PartCode", |
|||
table: "Set_VmiBalance", |
|||
newName: "RealPartCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "DeliverTime", |
|||
table: "Set_VmiBalance", |
|||
newName: "AssembleData"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CustomerPartCode", |
|||
table: "Set_VmiBalance", |
|||
newName: "SettlementVinCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "BillType", |
|||
table: "Set_VmiBalance", |
|||
newName: "DeliverBillType"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "CustPartCode", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<bool>( |
|||
name: "IsReplenished", |
|||
table: "Set_VmiBalance", |
|||
type: "bit", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "SettlementPartCode", |
|||
table: "Set_VmiBalance", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Set_VmiMessage", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Number = table.Column<long>(type: "bigint", nullable: false) |
|||
.Annotation("SqlServer:Identity", "1, 1"), |
|||
Message = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
isConsumed = table.Column<bool>(type: "bit", nullable: false), |
|||
CreatedTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Set_VmiMessage", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, |
|||
values: new object[] { new Guid("1fad01d0-8122-42d3-bb8f-5fff76230eea"), null, null, null, "302d775f40154c279dbf7bbd37489b46", null, null, 1, null, "ErpToLoc", null, null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Set_VmiBalance_DeliverBillType_CodeType_RealPartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "DeliverBillType", "CodeType", "RealPartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode" }, |
|||
unique: true, |
|||
filter: "[DeliverBillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [RealPartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "Set_VmiMessage"); |
|||
|
|||
migrationBuilder.DropIndex( |
|||
name: "IX_Set_VmiBalance_DeliverBillType_CodeType_RealPartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DeleteData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("1fad01d0-8122-42d3-bb8f-5fff76230eea")); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CustPartCode", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "IsReplenished", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "SettlementPartCode", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "SettlementPartCode", |
|||
table: "Set_VmiLog", |
|||
newName: "PartCode2"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "RealPartCode", |
|||
table: "Set_VmiLog", |
|||
newName: "PartCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "DeliverSubBillType", |
|||
table: "Set_VmiLog", |
|||
newName: "SubBillType"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "DeliverBillType", |
|||
table: "Set_VmiLog", |
|||
newName: "BillType"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "CustPartCode", |
|||
table: "Set_VmiLog", |
|||
newName: "GroupId"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "AssembleData", |
|||
table: "Set_VmiLog", |
|||
newName: "DeliverTime"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "SettlementVinCode", |
|||
table: "Set_VmiBalance", |
|||
newName: "CustomerPartCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "RealPartCode", |
|||
table: "Set_VmiBalance", |
|||
newName: "PartCode"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "DeliverSubBillType", |
|||
table: "Set_VmiBalance", |
|||
newName: "SubBillType"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "DeliverBillType", |
|||
table: "Set_VmiBalance", |
|||
newName: "BillType"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "AssembleData", |
|||
table: "Set_VmiBalance", |
|||
newName: "DeliverTime"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "CustomerPartCode", |
|||
table: "Set_VmiLog", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "BackupTime", |
|||
table: "Set_VmiBalance", |
|||
type: "datetime2", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, |
|||
values: new object[] { new Guid("daf33f05-698e-49cf-b688-9288f5e94be5"), null, null, 1, null, "2232ce1052044e5db3c50a381547b2bc", null, null, null, "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, null, null, "VinCode", null }); |
|||
|
|||
migrationBuilder.CreateIndex( |
|||
name: "IX_Set_VmiBalance_BillType_CodeType_PartCode_VinCode_ErpToLoc_OrderNum_factory_Configcode", |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "BillType", "CodeType", "PartCode", "VinCode", "ErpToLoc", "OrderNum", "factory", "Configcode" }, |
|||
unique: true, |
|||
filter: "[BillType] IS NOT NULL AND [CodeType] IS NOT NULL AND [PartCode] IS NOT NULL AND [VinCode] IS NOT NULL AND [ErpToLoc] IS NOT NULL AND [OrderNum] IS NOT NULL AND [factory] IS NOT NULL AND [Configcode] IS NOT NULL"); |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,242 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class vmi13 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DeleteData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("1fad01d0-8122-42d3-bb8f-5fff76230eea")); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "Path", |
|||
table: "Set_VmiSnapshot", |
|||
newName: "Description"); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "End", |
|||
table: "Set_VmiSnapshot", |
|||
type: "datetime2", |
|||
nullable: false, |
|||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "Start", |
|||
table: "Set_VmiSnapshot", |
|||
type: "datetime2", |
|||
nullable: false, |
|||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "CreatedTime", |
|||
table: "Set_VmiLog", |
|||
type: "datetime2", |
|||
nullable: false, |
|||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "UpdatedTime", |
|||
table: "Set_VmiLog", |
|||
type: "datetime2", |
|||
nullable: false, |
|||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "CreatedTime", |
|||
table: "Set_VmiBalance", |
|||
type: "datetime2", |
|||
nullable: false, |
|||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "LastUpdate", |
|||
table: "Set_VmiBalance", |
|||
type: "datetime2", |
|||
nullable: false, |
|||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|||
|
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "UpdatedTime", |
|||
table: "Set_VmiBalance", |
|||
type: "datetime2", |
|||
nullable: false, |
|||
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Set_VmiSyncTask", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
Name = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
Number = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
LastUpdate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Set_VmiSyncTask", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), |
|||
column: "ConcurrencyStamp", |
|||
value: "9fd0847f12d44ca0888ec5468cffe209"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), |
|||
column: "ConcurrencyStamp", |
|||
value: "c25d4ff8ba1d4f4fab5ca41211d77fa3"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), |
|||
column: "ConcurrencyStamp", |
|||
value: "67acda8899f543e0866fd36aa29fd631"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), |
|||
column: "ConcurrencyStamp", |
|||
value: "448d1c6b6105465b9688434d1ea931ec"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), |
|||
column: "ConcurrencyStamp", |
|||
value: "53abb840e287470a8f7b641010ab2316"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), |
|||
column: "ConcurrencyStamp", |
|||
value: "25bf9614ce2c42bb90499a28d9666db3"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), |
|||
column: "ConcurrencyStamp", |
|||
value: "55f5f3c94e374afcb8409decbfbd2ca0"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), |
|||
column: "ConcurrencyStamp", |
|||
value: "335f6624aaf94c5ba8fead27577b14cc"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), |
|||
column: "ConcurrencyStamp", |
|||
value: "1893ae6d3ffb410c9ac2bdb293cb1367"); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_JobItem", |
|||
columns: new[] { "Id", "ConcurrencyStamp", "Cron", "HeartBeat", "IsDisabled", "IsRunning", "Name", "Service" }, |
|||
values: new object[,] |
|||
{ |
|||
{ new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), "0a86eea1216549839d882d9acb0e5e03", "0 0/1 * * * ?", null, false, false, "同步库存", "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncBalanceService" }, |
|||
{ new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), "637639f7ef6844789186e40ea883c0b5", "0 0/1 * * * ?", null, false, false, "消息监控", "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" }, |
|||
{ new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794"), "022cd0d93f234af8bb31afe5ffa94221", "0 0/5 * * * ? *", null, false, false, "库存事务同步", "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" }, |
|||
{ new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c"), "30efce301b314bc5b46511dca438048a", "0 0/5 * * * ? *", null, false, false, "库存余额同步", "Win.Sfs.SettleAccount.Entities.BQ.VmiAsyncMessageService" } |
|||
}); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "LastUpdate", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, |
|||
values: new object[] { new Guid("b3183f11-1cb2-48b0-8970-aa641eb5771d"), null, null, null, "a7cae35c36f14f5790ff8895f394fa3c", null, null, 1, null, "ErpToLoc", null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_VmiSyncTask", |
|||
columns: new[] { "Id", "ConcurrencyStamp", "LastUpdate", "Name", "Number" }, |
|||
values: new object[,] |
|||
{ |
|||
{ new Guid("08de7a37-5ede-f524-cb3d-3c80888fd7d8"), "2cebf1e28ade4a82a6becea62a0e7a64", new DateTime(2023, 8, 18, 0, 0, 0, 0, DateTimeKind.Local), "库存事务备份", "Set_VmiLog" }, |
|||
{ new Guid("b8ba69e3-f5a3-c95e-8f82-c9c2fec960b4"), "245f452a0bd640c2a5fae8be9f72e806", new DateTime(2023, 8, 18, 0, 0, 0, 0, DateTimeKind.Local), "库存余额备份", "Set_VmiBalance" } |
|||
}); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "Set_VmiSyncTask"); |
|||
|
|||
migrationBuilder.DeleteData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716")); |
|||
|
|||
migrationBuilder.DeleteData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31")); |
|||
|
|||
migrationBuilder.DeleteData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("8e1cb5a9-8bcf-17fd-97e3-4c10532a5794")); |
|||
|
|||
migrationBuilder.DeleteData( |
|||
table: "Set_JobItem", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("c3fe2b66-28cc-c612-eca6-a362769ae90c")); |
|||
|
|||
migrationBuilder.DeleteData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("b3183f11-1cb2-48b0-8970-aa641eb5771d")); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "End", |
|||
table: "Set_VmiSnapshot"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "Start", |
|||
table: "Set_VmiSnapshot"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CreatedTime", |
|||
table: "Set_VmiLog"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "UpdatedTime", |
|||
table: "Set_VmiLog"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "CreatedTime", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "LastUpdate", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "UpdatedTime", |
|||
table: "Set_VmiBalance"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "Description", |
|||
table: "Set_VmiSnapshot", |
|||
newName: "Path"); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "Id", "AssembleData", "BillTime", "CodeType", "ConcurrencyStamp", "Configcode", "CustPartCode", "DeliverBillType", "DeliverSubBillType", "ErpToLoc", "IsReplenished", "MatchNumber", "OrderNum", "PjsNum", "Qty", "ReMark", "RealCode", "RealPartCode", "Seq", "SettlementPartCode", "SettlementVinCode", "UniqueCode", "VinCode", "factory" }, |
|||
values: new object[] { new Guid("1fad01d0-8122-42d3-bb8f-5fff76230eea"), null, null, null, "302d775f40154c279dbf7bbd37489b46", null, null, 1, null, "ErpToLoc", null, null, "OrderNum", null, 0m, null, null, "PartCode", null, null, null, null, "VinCode", null }); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue