学 赵 1 year ago
parent
commit
7fbed0c48d
  1. BIN
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/assets/导入模版.zip
  2. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js
  3. 100
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/inventory/adjust.js
  4. 46
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/inventory/inventory.js
  5. 89
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/inventory/log.js
  6. 12
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/inventory/vmi.js
  7. 8
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/invoiceState.js
  8. 55
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_ba_service.js
  9. 55
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_ba_service.js
  10. 77
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_ba_service.js
  11. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js
  12. 16
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_relationship.js
  13. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js
  14. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/business.js
  15. 41
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/inventory/log.js
  16. 2
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/jit-hbpo/settlement/hbpo_jit_pub_ba_service.js
  17. 44
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisBBACSeEdiCompareAppService.cs
  18. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_DETAIL.cs
  19. 5
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_EDI.cs
  20. 5401
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810081159_20230810-3.Designer.cs
  21. 56
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810081159_20230810-3.cs
  22. 10
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

BIN
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/assets/导入模版.zip

Binary file not shown.

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/components/form/form-input.js

@ -30,7 +30,7 @@ export default {
<el-option v-for="item in options" :key="item.key" :label="item.label" :value="item.value" />
</el-select>
</template>
<template v-else-if="getInput(schema)==='month'">
<template v-else-if="getInput(schema)==='month'||getInput(schema)==='datetime'">
<el-date-picker v-model="model[prop]" :type="schema.input" :value-format="schema.format" />
</template>
<template v-else-if="getInput(schema)==='number'">

100
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/inventory/adjust.js

@ -1,4 +1,4 @@
import { billType, codeType, changedType, subBillType } from "./inventory.js";
import { billType, codeType, subBillType } from "./inventory.js";
const schema = {
title: "寄售库存调整",
@ -7,30 +7,26 @@ const schema = {
logType: {
title: "库存事务分类",
type: "string",
default: "Type500",
hidden: true,
},
changedNumber: {
title: "变动单号",
changedType: {
title: "变动类型",
type: "string",
rules: [
{
required: true,
},
],
default: "in",
hidden: true,
},
changedTime: {
title: "变动时间",
partCode: {
title: "LU零件号",
type: "string",
input: "datetime",
rules: [
{
required: true,
},
],
},
changedType,
changedBy: {
title: "变动人",
customerPartCode: {
title: "客户零件号",
type: "string",
rules: [
{
@ -38,26 +34,25 @@ const schema = {
},
],
},
partCode: {
title: "调整LU零件号",
type: "string",
codeType,
billType,
qty: {
title: "数量",
type: "number",
input: "number",
rules: [
{
required: true,
},
],
},
customerPartCode: {
title: "调整客户零件号",
billTime: {
title: "发运日期",
type: "string",
rules: [
{
required: true,
},
],
input: "datetime",
},
orderNum: {
title: "EDI原始订单号",
changedNumber: {
title: "变动单号",
type: "string",
rules: [
{
@ -65,20 +60,18 @@ const schema = {
},
],
},
billType,
subBillType,
reMark: {
title: "备注",
changedTime: {
title: "变动时间",
type: "string",
input: "textarea",
rules: [
{
required: true,
input: "datetime",
},
],
deliverTime: {
title: "订单日期",
type: "string",
input: "datetime",
},
vinCode: {
title: "调整生产码",
erpToLoc: {
title: "ERP库位",
type: "string",
rules: [
{
@ -86,18 +79,17 @@ const schema = {
},
],
},
codeType,
qty: {
title: "数量",
type: "number",
orderNum: {
title: "EDI原始订单号",
type: "string",
rules: [
{
required: true,
},
],
},
billTime: {
title: "发运日期",
changedBy: {
title: "变动人",
type: "string",
rules: [
{
@ -105,27 +97,23 @@ const schema = {
},
],
},
billNum: {
title: "WMS发运单号",
subBillType,
reMark: {
title: "备注",
type: "string",
rules: [
{
required: true,
},
],
input: "textarea",
},
deliverTime: {
title: "订单日期",
vinCode: {
title: "EDI订单生产码",
type: "string",
input: "datetime",
rules: [
{
required: true,
},
],
},
erpToLoc: {
title: "ERP库位",
billNum: {
title: "WMS发运单号",
type: "string",
rules: [
{
@ -139,7 +127,7 @@ const schema = {
const baseUrl = "settleaccount/vmi";
const queryUrl = `${baseUrl}/log`;
const detailsUrl = `${baseUrl}/get/%s`;
const createUrl = `${baseUrl}/create`;
const createUrl = "settleaccount/vmi/edit-balance";
const updateUrl = `${baseUrl}/update/%s`;
const deleteUrl = `${baseUrl}/delete-list`;
const importUrl = `${baseUrl}/code-setting-upload-excel-import`;

46
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/inventory/inventory.js

@ -29,13 +29,41 @@ const options3 = [
{ value: 9, label: "JIT直供件BBAC" },
{ value: 10, label: "JIT直供件HBPO" },
];
const options4 = [
{ value: "In", label: "入库" },
{ value: "Out", label: "出库" },
];
const billType = { title: "发货类型", type: "number", input: "select", options: options1, clearable: true };
const codeType = { title: "生产码类型", type: "string", input: "select", options: options2, clearable: true };
const subBillType = { title: "发货子类型", type: "number", input: "select", options: options3, clearable: true };
const changedType = { title: "变动类型", type: "string", input: "select", options: options4, clearable: true };
const billType = {
title: "发货类型",
type: "number",
input: "select",
options: options1,
clearable: true,
rules: [
{
required: true,
},
],
};
const codeType = {
title: "生产码类型",
type: "string",
input: "select",
options: options2,
clearable: true,
rules: [
{
required: true,
},
],
};
const subBillType = {
title: "发货子类型",
type: "number",
input: "select",
options: options3,
clearable: true,
rules: [
{
required: true,
},
],
};
export { billType, codeType, subBillType, changedType };
export { billType, codeType, subBillType };

89
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/inventory/log.js

@ -1,4 +1,4 @@
import { billType, codeType, changedType, subBillType } from "./inventory.js";
import { billType, codeType, subBillType } from "./inventory.js";
//变动单据号、发生时间、生产码类型、、订单号、库位、变动数、EDI顺序号、备注、变动类型(In、Out标识)、发货类型(JIS\JIT\买单件\备件等)、
//实扣LU零件号、实扣客户零件号、结算LU零件号、结算客户零件号、实扣生产码、结算生产码
@ -7,47 +7,16 @@ const schema = {
title: "库存事务日志",
type: "object",
properties: {
changedNumber: {
title: "变动单号",
type: "string",
},
changedTime: {
title: "变动时间",
type: "string",
input: "datetime",
},
changedType,
changedBy: {
title: "变动人",
type: "string",
},
partCode: {
title: "LU零件号",
type: "string",
},
partCode2: {
title: "结算厂内零件号",
type: "string",
},
customerPartCode: {
title: "结算客户零件号",
type: "string",
},
realCode: {
title: "WMS实发生产码",
type: "string",
},
vinCode: {
title: "EDI订单生产码",
type: "string",
},
settlementVinCode: {
title: "结算生产码",
title: "客户零件号",
type: "string",
},
codeType,
billType,
subBillType,
qty: {
title: "数量",
type: "number",
@ -62,6 +31,10 @@ const schema = {
type: "string",
input: "datetime",
},
erpToLoc: {
title: "ERP库位",
type: "string",
},
seq: {
title: "EDI顺序号",
type: "string",
@ -82,14 +55,40 @@ const schema = {
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",
},
erpToLoc: {
title: "ERP库位",
type: "string",
},
configcode: {
title: "配置码",
type: "string",
@ -156,10 +155,24 @@ export default function () {
{
logic: "and",
column: "billTime",
action: "like",
action: "BiggerThanOrEqual",
value: null,
readOnly: true,
},
{
logic: "and",
column: "billTime",
action: "SmallThanOrEqual",
value: null,
readOnly: true,
},
{
logic: "and",
column: "isReplenished",
action: "equal",
value: true,
readOnly: true,
},
{
logic: "and",
column: "billType",

12
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/inventory/vmi.js

@ -18,10 +18,6 @@ export default function () {
title: "LU零件号",
type: "string",
},
vinCode: {
title: "生产码",
type: "string",
},
customerPartCode: {
title: "客户零件号",
type: "string",
@ -83,6 +79,14 @@ export default function () {
title: "WMS实发生产码",
type: "string",
},
vinCode: {
title: "EDI订单生产码",
type: "string",
},
settlementVinCode: {
title: "结算生产码",
type: "string",
},
},
};
}

8
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/invoiceState.js

@ -0,0 +1,8 @@
const options1 = [
{ value: 1, label: "正常" },
{ value: 2, label: "报废" },
{ value: 3, label: "提交" },
];
const invoiceState = { title: "发票状态", type: "string", input: "select", options: options1 };
export default invoiceState;

55
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-bbac/settlement/bbac_ba_service.js

@ -1,51 +1,42 @@
import version from "../../version.js";
import { state2, state3 } from "../../state.js";
import { state2 as state, state3 } from "../../state.js";
import businessType from "../../businessType.js";
import invoiceState from "../../invoiceState.js";
const schema = {
title: "商务审批",
type: "object",
properties: {
settleBillNum: {
title: "关联结算单号",
version,
realnvBillNum: {
title: "金税发票号",
type: "string",
},
site: {
title: "工厂地点",
invbillNum: {
title: "系统发票号",
type: "string",
},
version,
state2,
price: {
title: "单价",
type: "decimal",
amt: {
title: "未税金额",
type: "number",
},
billNum: {
title: "结算单号",
type: "string",
},
settleDate: {
title: "结算日期",
type: "DateTime",
taxAmt: {
title: "税后金额",
type: "number",
},
invGroupNum: {
title: "发票分组号",
type: "string",
},
lu: {
title: "零件号",
type: "string",
},
pn: {
title: "生产号",
type: "string",
type: "number",
},
qty: {
title: "结算数量",
type: "decimal",
businessType,
state,
invoiceState,
taxDiff: {
title: "发票税后尾差",
type: "number",
},
groupNum: {
title: "结算分组号",
clientCode: {
title: "客户代码",
type: "string",
},
},

55
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/jis-hbpo/settlement/hbpo_ba_service.js

@ -1,51 +1,42 @@
import version from "../../version.js";
import { state2, state3 } from "../../state.js";
import { state2 as state, state3 } from "../../state.js";
import businessType from "../../businessType.js";
import invoiceState from "../../invoiceState.js";
const schema = {
title: "不可结算单",
type: "object",
properties: {
state2,
settleBillNum: {
title: "关联结算单号",
version,
realnvBillNum: {
title: "金税发票号",
type: "string",
},
site: {
title: "工厂地点",
invbillNum: {
title: "系统发票号",
type: "string",
},
version,
price: {
title: "单价",
type: "decimal",
amt: {
title: "未税金额",
type: "number",
},
billNum: {
title: "结算单号",
type: "string",
},
settleDate: {
title: "结算日期",
type: "DateTime",
taxAmt: {
title: "税后金额",
type: "number",
},
invGroupNum: {
title: "发票分组号",
type: "string",
},
lu: {
title: "零件号",
type: "string",
},
pn: {
title: "生产号",
type: "string",
type: "number",
},
qty: {
title: "结算数量",
type: "decimal",
businessType,
state,
invoiceState,
taxDiff: {
title: "发票税后尾差",
type: "number",
},
groupNum: {
title: "结算分组号",
clientCode: {
title: "客户代码",
type: "string",
},
},

77
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/pub_ba_service.js

@ -1,75 +1,46 @@
import version from "./version.js";
import { state2, state3 } from "./state.js";
import { state2 as state, state3 } from "./state.js";
import businessType from "./businessType.js";
import invoiceState from "./invoiceState.js";
const schema = {
title: "结算数据",
title: "不可结算单",
type: "object",
properties: {
settleBillNum: {
title: "关联结算单号",
version,
realnvBillNum: {
title: "金税发票号",
type: "string",
},
site: {
title: "工厂地点",
invbillNum: {
title: "系统发票号",
type: "string",
},
businessType: {
title: "业务分类",
type: "EnumBusinessType",
},
version,
state2,
price: {
title: "价格",
type: "decimal",
},
billNum: {
title: "结算单号",
type: "string",
amt: {
title: "未税金额",
type: "number",
},
settleDate: {
title: "下线日期",
type: "DateTime",
taxAmt: {
title: "税后金额",
type: "number",
},
invGroupNum: {
title: "发票分组号",
type: "string",
type: "number",
},
lu: {
title: "零件号",
type: "string",
},
pn: {
title: "发货单号",
type: "string",
businessType,
state,
invoiceState,
taxDiff: {
title: "发票税后尾差",
type: "number",
},
keycode: {
title: "键值",
type: "string",
},
qty: {
title: "结算数量",
type: "decimal",
},
groupNum: {
title: "结算分组号",
type: "decimal",
},
entend1: {
title: "扩展1",
type: "string",
},
entend2: {
title: "扩展2",
type: "string",
},
entend3: {
title: "扩展3",
clientCode: {
title: "客户代码",
type: "string",
},
},
};
const queryUrl = "settleaccount/pub_ba_service/main-query";
const exportUrl = "settleaccount/pub_ba_service/export";
const invoiceUrl = "settleaccount/pub_ba_service/generate-invoice";

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_re-parts-relationship_service.js

@ -5,11 +5,11 @@ const schema = {
type: "object",
properties: {
lu: {
title: "客户物料号",
title: "厂内物料号",
type: "string",
},
repLU: {
title: "替换客户物料号",
title: "替换厂内物料号",
type: "string",
},
businessType: {

16
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/models/tb_relationship.js

@ -3,7 +3,7 @@ const schema = {
type: "object",
properties: {
project: {
title: "项目",
title: "业务类别",
type: "string",
readOnly: true,
showForList: true,
@ -14,7 +14,7 @@ const schema = {
],
},
value: {
title: "",
title: "库位",
type: "string",
readOnly: true,
showForList: true,
@ -24,18 +24,6 @@ const schema = {
},
],
},
description: {
title: "描述",
type: "string",
input: "textarea",
showForList: true,
rules: [
{
required: true,
},
{ max: 60 },
],
},
},
};

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/base-data.js

@ -245,7 +245,7 @@ export default [
path: "tb_re-parts-relationship_service",
meta: {
type: "page",
title: "客户替换件关系",
title: "厂内替换件关系",
icon: "file",
children: [
{

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/router/business.js

@ -3671,7 +3671,7 @@ export default [
},
},
{
path: "data-export",
path: "dataExport",
meta: {
type: "button",
title: "补货数据导出",

41
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/inventory/log.js

@ -1,15 +1,52 @@
import AppList from "../../../components/list/index.js";
import html from "html";
import useConfig from "../../../models/inventory/log.js";
import { reactive, ref } from "vue";
import request from "../../request/index.js";
import { schemaToModel } from "../../utils/index.js";
export default {
components: { AppList },
template: html`<app-list :config="config" @command="onCommand" />`,
template: html`<app-list :config="config" @command="onCommand" />
<el-dialog v-model="dialog" width="45%" title="补货数据导出">
<el-form :model="exportModel" style="height:100%;">
<el-form-item label="" label-width="100px">
开始时间<el-date-picker v-model="exportModel.startDatetime" value-format="YYYY-MM-DD" />
<span style="margin:0 .5em;">-</span>
结束时间<el-date-picker v-model="exportModel.endDatetime" value-format="YYYY-MM-DD" />
</el-form-item>
<el-button type="primary" @click="openDialog" style="margin-left: 10px;">确定</el-button>
</el-form>
</el-dialog> `,
setup() {
const defaultExportModel = {
startDatetime: "",
endDatetime: "",
};
const exportModel = ref(defaultExportModel);
const config = useConfig();
const dialog = ref(false);
const prop = ref("");
const queryModel = ref(schemaToModel(config.query.schema));
function buildQuery() {
const postData = JSON.parse(JSON.stringify(queryModel.value));
return postData;
}
const openDialog = async () => {
// const url =
// const method =
// const postData = buildQuery();
const response = await request(url, postData, { method });
if (!response.errors) {
window.open(getUrl(`settleaccount/getblobfile/download/${response.data}`));
}
dialog.value = false;
};
const onCommand = async (item, rows) => {
prop.value = item.path;
dialog.value = true;
console.log(item.path, item, rows);
};
return { config, onCommand };
return { config, onCommand, dialog, prop, exportModel, openDialog };
},
};

2
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/wwwroot/views/jit/jit-hbpo/settlement/hbpo_jit_pub_ba_service.js

@ -1,6 +1,6 @@
import AppList from "../../../../components/list/index.js";
import html from "html";
import useConfig from "../../../../models/pub_ba_detail_service.js";
import useConfig from "../../../../models/pub_ba_service.js";
export default {
components: { AppList },

44
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/JisBBACSeEdiCompareAppService.cs

@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Coravel.Invocable;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using SettleAccount.Domain.BQ;
using Volo.Abp.Application.Services;
namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs;
/// <summary>
/// JisBBAC 发运数据与EDI数据对比
/// </summary>
[ApiExplorerSettings(IgnoreApi = true)]
public class JisBBACSeEdiCompareAppService : ApplicationService, IInvocable
{
private readonly IServiceProvider _serviceProvider;
public JisBBACSeEdiCompareAppService(IServiceProvider serviceProvider)
{
_serviceProvider = serviceProvider;
}
/// <summary>
/// 执行
/// </summary>
public async Task Invoke()
{
using var serviceScope = _serviceProvider.CreateScope();
var db = serviceScope.ServiceProvider.GetRequiredService<SettleAccountDbContext>();
var query = db.Set<BBAC_SE_DETAIL>().Join(db.Set<BBAC_SE_EDI>(), a => new { a.PN, a.LU, a.Qty }, b => new { b.PN, b.LU, b.Qty }, (se, edi) => new { se, edi }).Where(t => t.se.IsHaveEdiData == false && t.edi.IsHaveSeData == false);
var ses = query.Select(t => t.se);
var edis = query.Select(t => t.edi);
ses.ForEach(t => t.IsHaveEdiData = true);
edis.ForEach(t => t.IsHaveSeData = true);
db.Set<BBAC_SE_DETAIL>().UpdateRange(ses);
db.Set<BBAC_SE_EDI>().UpdateRange(edis);
await db.SaveChangesAsync().ConfigureAwait(false);
}
}

6
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_DETAIL.cs

@ -194,6 +194,12 @@ public class BBAC_SE_DETAIL:SE_BASE
[Display(Name = "客户位置")]
public string Position { get; set; }
/// <summary>
/// 是否有EDI数据
/// </summary>
[Display(Name = "是否有EDI数据")]
public bool IsHaveEdiData { get; set; }
public BBAC_SE_DETAIL(Guid guid, string keyCode, int version, string lU, string pN, string seqNumber, string assemblyCode, string injectionCode, decimal qty, DateTime beginDate, DateTime shippingDate, string wmsBillNum)
{
Id= guid;

5
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_EDI.cs

@ -44,6 +44,11 @@ public class BBAC_SE_EDI:FullAuditedAggregateRoot<Guid>
public string Extend3 { set; get; }
public string Extend4 { set; get; }
/// <summary>
/// 是否有发运数据
/// </summary>
[Display(Name = "是否有发运数据")]
public bool IsHaveSeData { get; set; }
public BBAC_SE_EDI()
{ }

5401
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810081159_20230810-3.Designer.cs

File diff suppressed because it is too large

56
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20230810081159_20230810-3.cs

@ -0,0 +1,56 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win.Sfs.SettleAccount.Migrations
{
public partial class _202308103 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "Set_VmiBalance",
keyColumn: "Id",
keyValue: new Guid("96b1beec-0eef-4ae5-880b-23678addb759"));
migrationBuilder.AddColumn<bool>(
name: "IsHaveSeData",
table: "Set_BBAC_SE_EDI",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "IsHaveEdiData",
table: "Set_BBAC_SE_DETAIL",
type: "bit",
nullable: false,
defaultValue: false);
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("824c911a-6915-42a3-8bb2-bcb4aca93545"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "1d0093aa74814ffd982671a5ac362c52", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "Set_VmiBalance",
keyColumn: "Id",
keyValue: new Guid("824c911a-6915-42a3-8bb2-bcb4aca93545"));
migrationBuilder.DropColumn(
name: "IsHaveSeData",
table: "Set_BBAC_SE_EDI");
migrationBuilder.DropColumn(
name: "IsHaveEdiData",
table: "Set_BBAC_SE_DETAIL");
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("96b1beec-0eef-4ae5-880b-23678addb759"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "ebf2d34687e14358a9d63dbe3df7abd3", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null });
}
}
}

10
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

@ -672,6 +672,9 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<bool>("IsHaveEdiData")
.HasColumnType("bit");
b.Property<string>("KeyCode")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
@ -833,6 +836,9 @@ namespace Win.Sfs.SettleAccount.Migrations
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<bool>("IsHaveSeData")
.HasColumnType("bit");
b.Property<string>("KeyCode")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
@ -4384,10 +4390,10 @@ namespace Win.Sfs.SettleAccount.Migrations
b.HasData(
new
{
Id = new Guid("96b1beec-0eef-4ae5-880b-23678addb759"),
Id = new Guid("824c911a-6915-42a3-8bb2-bcb4aca93545"),
BillTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
BillType = 1,
ConcurrencyStamp = "ebf2d34687e14358a9d63dbe3df7abd3",
ConcurrencyStamp = "1d0093aa74814ffd982671a5ac362c52",
DeliverTime = new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
ErpToLoc = "ErpToLoc",
OrderNum = "OrderNum",

Loading…
Cancel
Save