mahao
1 year ago
38 changed files with 16906 additions and 393 deletions
@ -1,31 +1,24 @@ |
|||
import AppList from "../../components/list/index.js"; |
|||
import html from "html"; |
|||
import useConfig from "../../models/job-item.js"; |
|||
import { ref, nextTick, onMounted, onUnmounted } from "vue"; |
|||
import { ref, onMounted, onUnmounted } from "vue"; |
|||
import useConfig2 from "../../models/job-log.js"; |
|||
|
|||
export default { |
|||
components: { AppList }, |
|||
template: html`<app-list v-if="refresh" :config="config" @command="onCommand" />`, |
|||
template: html`<app-list ref="appListRef" :config="config" @command="onCommand" />`, |
|||
setup() { |
|||
const config = useConfig(); |
|||
const onCommand = async (item, rows, load, showList) => { |
|||
console.log(item.path, item, rows); |
|||
console.log(showList); |
|||
const config = useConfig2(); |
|||
config.query.schema.properties.filters.default[0].value = rows[0].id; |
|||
showList({ test: "test" }, "/base-data/job-log", config); |
|||
}; |
|||
const refresh = ref(true); |
|||
onMounted(async () => { |
|||
PubSub.subscribe("JobItem", () => { |
|||
refresh.value = false; |
|||
nextTick(() => (refresh.value = true)); |
|||
}); |
|||
}); |
|||
onUnmounted(() => { |
|||
PubSub.unsubscribe(onMonitor); |
|||
}); |
|||
return { config, onCommand, refresh }; |
|||
//
|
|||
const appListRef = ref(null); |
|||
const event = "JobItem"; |
|||
onMounted(() => PubSub.subscribe(event, async () => await appListRef.value.load())); |
|||
onUnmounted(() => PubSub.unsubscribe(event)); |
|||
return { config, onCommand, appListRef }; |
|||
}, |
|||
}; |
|||
|
@ -0,0 +1,67 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using EFCore.BulkExtensions; |
|||
using Microsoft.EntityFrameworkCore; |
|||
using SettleAccount.Bases; |
|||
using SettleAccount.Domain.BQ; |
|||
using Volo.Abp.Application.Dtos; |
|||
using Volo.Abp.Domain.Repositories; |
|||
using Volo.Abp.Domain.Services; |
|||
using Win.Sfs.Shared.RepositoryBase; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Entities.BQ.Managers; |
|||
public class BBAC_PD_MNG:DomainService |
|||
|
|||
|
|||
{ |
|||
|
|||
private readonly INormalEfCoreRepository<BBAC_PD, Guid> _repository; |
|||
private readonly INormalEfCoreRepository<BBAC_PD_DETAIL, Guid> _detailRepository; |
|||
|
|||
|
|||
|
|||
protected BBAC_PD_MNG( |
|||
INormalEfCoreRepository<BBAC_PD, Guid> repository, |
|||
|
|||
INormalEfCoreRepository<BBAC_PD_DETAIL, Guid> detailRepository |
|||
|
|||
) |
|||
{ |
|||
_repository = repository; |
|||
_detailRepository = detailRepository; |
|||
} |
|||
|
|||
public BBAC_PD_MNG() |
|||
{ |
|||
} |
|||
|
|||
public virtual async Task<BBAC_PD> GetMainAsync(string billNum) |
|||
{ |
|||
return await _repository.Where(p => p.InvGroupNum == billNum).FirstOrDefaultAsync(); |
|||
} |
|||
|
|||
public virtual async Task<List<BBAC_PD_DETAIL>> GetDetailAsync(string billNum) |
|||
{ |
|||
return await _detailRepository.Where(p => p.InvGroupNum == billNum).ToListAsync(); |
|||
} |
|||
|
|||
public virtual bool InsertMain(BBAC_PD p_pd) |
|||
{ |
|||
_repository.DbContext.BulkInsert(new List<BBAC_PD> { p_pd }); |
|||
return true; |
|||
} |
|||
|
|||
public virtual bool InsertDetail(List<BBAC_PD_DETAIL> p_list) |
|||
{ |
|||
_repository.DbContext.BulkInsert(p_list); |
|||
return false; |
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,38 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class vmi10 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<DateTime>( |
|||
name: "HeartBeat", |
|||
table: "Set_JobItem", |
|||
type: "datetime2", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|||
column: "ConcurrencyStamp", |
|||
value: "2cc9803a5a8e420b80134104653ecde0"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "HeartBeat", |
|||
table: "Set_JobItem"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|||
column: "ConcurrencyStamp", |
|||
value: "887ca64c266c48ac82dca90534f64225"); |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,58 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class _202308070001 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.AddColumn<string>( |
|||
name: "InvbillNum", |
|||
table: "Set_PUB_CAN_SA_DETAIL", |
|||
type: "nvarchar(max)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "InvbillNum", |
|||
table: "Set_HBPO_CAN_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "InvbillNum", |
|||
table: "Set_BBAC_CAN_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|||
column: "ConcurrencyStamp", |
|||
value: "2e626de3941048399abf1f76c051f8a4"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropColumn( |
|||
name: "InvbillNum", |
|||
table: "Set_PUB_CAN_SA_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "InvbillNum", |
|||
table: "Set_HBPO_CAN_SA_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "InvbillNum", |
|||
table: "Set_BBAC_CAN_SA_DETAIL"); |
|||
|
|||
migrationBuilder.UpdateData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("ea936b34-ecd0-7dbd-85a9-57cd8b730873"), |
|||
column: "ConcurrencyStamp", |
|||
value: "887ca64c266c48ac82dca90534f64225"); |
|||
} |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,106 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class _202308080001 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Set_BBAC_PD", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, 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), |
|||
Version = table.Column<int>(type: "int", nullable: false), |
|||
BillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
SettleBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
State = table.Column<int>(type: "int", nullable: false), |
|||
InvGroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
Site = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Set_BBAC_PD", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Set_HBPO_PD", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, 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), |
|||
Version = table.Column<int>(type: "int", nullable: false), |
|||
BillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
SettleBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
State = table.Column<int>(type: "int", nullable: false), |
|||
InvGroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
Site = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Set_HBPO_PD", x => x.Id); |
|||
}); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "Set_PUB_PD", |
|||
columns: table => new |
|||
{ |
|||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, 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), |
|||
Version = table.Column<int>(type: "int", nullable: false), |
|||
BillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
SettleBillNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
State = table.Column<int>(type: "int", nullable: false), |
|||
InvGroupNum = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|||
Site = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_Set_PUB_PD", x => x.Id); |
|||
}); |
|||
|
|||
|
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "Set_BBAC_PD"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "Set_HBPO_PD"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "Set_PUB_PD"); |
|||
|
|||
|
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue