[牛尾] 课程新增 课程分类2

master
xiaochanghai 4 months ago
parent ea6f669a9f
commit 604271bd70
  1. 29
      Model/Tiobon.Web.pdm
  2. 10
      Tiobon.Core.Api/Tiobon.Core.Model.xml
  3. 8
      Tiobon.Core.Model/Base/Ghre/Ghre_Course.Dto.Base.cs
  4. 8
      Tiobon.Core.Model/Models/Ghre/Ghre_Course.cs
  5. 1
      Tiobon.Core.Services/Ghre/Ghre_CourseServices.cs
  6. 10
      Tiobon.Core/Tiobon.Core.Model.xml

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<?PowerDesigner AppLocale="UTF16" ID="{C294868A-C3F3-41AD-98CC-78B6D4E0CC40}" Label="" LastModificationDate="1740385917" Name="Tiobon" Objects="3196" Symbols="123" Target="Microsoft SQL Server 2008" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="15.0.0.2613"?> <?PowerDesigner AppLocale="UTF16" ID="{C294868A-C3F3-41AD-98CC-78B6D4E0CC40}" Label="" LastModificationDate="1740627216" Name="Tiobon" Objects="3197" Symbols="121" Target="Microsoft SQL Server 2008" Type="{CDE44E21-9669-11D1-9914-006097355D9B}" signature="PDM_DATA_MODEL_XML" version="15.0.0.2613"?>
<!-- do not edit this file --> <!-- do not edit this file -->
<Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object"> <Model xmlns:a="attribute" xmlns:c="collection" xmlns:o="object">
@ -13888,7 +13888,7 @@ LABL 0 Arial Unicode MS,8,N</a:FontList>
<a:Code>Ghre_Course</a:Code> <a:Code>Ghre_Course</a:Code>
<a:CreationDate>1713839845</a:CreationDate> <a:CreationDate>1713839845</a:CreationDate>
<a:Creator>Administrator</a:Creator> <a:Creator>Administrator</a:Creator>
<a:ModificationDate>1740024007</a:ModificationDate> <a:ModificationDate>1740626894</a:ModificationDate>
<a:Modifier>Administrator</a:Modifier> <a:Modifier>Administrator</a:Modifier>
<a:Comment>课程</a:Comment> <a:Comment>课程</a:Comment>
<c:Columns> <c:Columns>
@ -14051,17 +14051,6 @@ LABL 0 Arial Unicode MS,8,N</a:FontList>
<a:Length>64</a:Length> <a:Length>64</a:Length>
</o:Column> </o:Column>
<o:Column Id="o331"> <o:Column Id="o331">
<a:ObjectID>C7365459-E3F3-49CA-8372-60D1FCEDF4A0</a:ObjectID>
<a:Name>课程分类ID2</a:Name>
<a:Code>CourseClassId2</a:Code>
<a:CreationDate>1717723947</a:CreationDate>
<a:Creator>Administrator</a:Creator>
<a:ModificationDate>1717723991</a:ModificationDate>
<a:Modifier>Administrator</a:Modifier>
<a:Comment>课程分类ID</a:Comment>
<a:DataType>bigint</a:DataType>
</o:Column>
<o:Column Id="o332">
<a:ObjectID>1335D331-DAA5-4CD0-9A46-A58317A9F23F</a:ObjectID> <a:ObjectID>1335D331-DAA5-4CD0-9A46-A58317A9F23F</a:ObjectID>
<a:Name>课程分类ID</a:Name> <a:Name>课程分类ID</a:Name>
<a:Code>CourseClassId</a:Code> <a:Code>CourseClassId</a:Code>
@ -14073,6 +14062,18 @@ LABL 0 Arial Unicode MS,8,N</a:FontList>
<a:DataType>nvarchar(2000)</a:DataType> <a:DataType>nvarchar(2000)</a:DataType>
<a:Length>2000</a:Length> <a:Length>2000</a:Length>
</o:Column> </o:Column>
<o:Column Id="o332">
<a:ObjectID>C7365459-E3F3-49CA-8372-60D1FCEDF4A0</a:ObjectID>
<a:Name>课程分类2</a:Name>
<a:Code>CourseClass2</a:Code>
<a:CreationDate>1717723947</a:CreationDate>
<a:Creator>Administrator</a:Creator>
<a:ModificationDate>1740627216</a:ModificationDate>
<a:Modifier>Administrator</a:Modifier>
<a:Comment>课程分类2</a:Comment>
<a:DataType>nvarchar(32)</a:DataType>
<a:Length>32</a:Length>
</o:Column>
<o:Column Id="o333"> <o:Column Id="o333">
<a:ObjectID>7A5BBC82-D331-4B1E-9332-138AA3B4BC05</a:ObjectID> <a:ObjectID>7A5BBC82-D331-4B1E-9332-138AA3B4BC05</a:ObjectID>
<a:Name>课程场景ID</a:Name> <a:Name>课程场景ID</a:Name>
@ -51813,7 +51814,7 @@ Ghra_staff_InsureBase
<o:Column Ref="o290"/> <o:Column Ref="o290"/>
</c:Object1> </c:Object1>
<c:Object2> <c:Object2>
<o:Column Ref="o332"/> <o:Column Ref="o331"/>
</c:Object2> </c:Object2>
</o:ReferenceJoin> </o:ReferenceJoin>
</c:Joins> </c:Joins>

@ -2895,6 +2895,11 @@
预留字段12 预留字段12
</summary> </summary>
</member> </member>
<member name="P:Tiobon.Core.Model.Models.Ghre_CourseBase.CourseClass2">
<summary>
课程分类2
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghre_CourseClassBase"> <member name="T:Tiobon.Core.Model.Models.Ghre_CourseClassBase">
<summary> <summary>
课程分类 (Dto.Base) 课程分类 (Dto.Base)
@ -17981,6 +17986,11 @@
预留字段12 预留字段12
</summary> </summary>
</member> </member>
<member name="P:Tiobon.Core.Model.Models.Ghre_Course.CourseClass2">
<summary>
课程分类2
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghre_CourseClass"> <member name="T:Tiobon.Core.Model.Models.Ghre_CourseClass">
<summary> <summary>
课程分类 (Model) 课程分类 (Model)

@ -6,7 +6,7 @@
* *
* Ver * Ver
* *
*V0.01 2025/2/6 14:16:52 SimonHsiao *V0.01 2025/2/27 11:34:49 SimonHsiao
* *
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. * Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
* *
@ -263,4 +263,10 @@ public class Ghre_CourseBase
/// 预留字段12 /// 预留字段12
/// </summary> /// </summary>
public int? ReverseI2 { get; set; } public int? ReverseI2 { get; set; }
/// <summary>
/// 课程分类2
/// </summary>
[Display(Name = "CourseClass2"), Description("课程分类2"), MaxLength(32, ErrorMessage = "课程分类2 不能超过 32 个字符")]
public string CourseClass2 { get; set; }
} }

@ -6,7 +6,7 @@
* *
* Ver * Ver
* *
*V0.01 2025/2/6 14:16:52 SimonHsiao *V0.01 2025/2/27 11:34:49 SimonHsiao
* *
* Copyright(c) 2025 Tiobon Corporation. All Rights Reserved. * Copyright(c) 2025 Tiobon Corporation. All Rights Reserved.
* *
@ -264,4 +264,10 @@ public class Ghre_Course : BasePoco
/// 预留字段12 /// 预留字段12
/// </summary> /// </summary>
public int? ReverseI2 { get; set; } public int? ReverseI2 { get; set; }
/// <summary>
/// 课程分类2
/// </summary>
[Display(Name = "CourseClass2"), Description("课程分类2"), MaxLength(32, ErrorMessage = "课程分类2 不能超过 32 个字符")]
public string CourseClass2 { get; set; }
} }

@ -167,6 +167,7 @@ public class Ghre_CourseServices : BaseServices<Ghre_Course, Ghre_CourseDto, Ins
data.ForEach(async x => data.ForEach(async x =>
{ {
x.ChargeMethodLabel = await GetParaLabel("CourseChargeMethod", x.ChargeMethod); x.ChargeMethodLabel = await GetParaLabel("CourseChargeMethod", x.ChargeMethod);
x.CourseClass2 = await GetParaLabel("TrainingCourseClass2", x.ChargeMethod);
x.InOrOutLabel = await GetParaLabel("CourseInOrOut", x.InOrOut); x.InOrOutLabel = await GetParaLabel("CourseInOrOut", x.InOrOut);
x.IsOPenLabel = x.IsOpen == "1" ? "是" : "否"; x.IsOPenLabel = x.IsOpen == "1" ? "是" : "否";
var courseClass = classs.Where(a => x.CourseClassId.Contains(a.Id.ToString())).ToList(); var courseClass = classs.Where(a => x.CourseClassId.Contains(a.Id.ToString())).ToList();

@ -2895,6 +2895,11 @@
预留字段12 预留字段12
</summary> </summary>
</member> </member>
<member name="P:Tiobon.Core.Model.Models.Ghre_CourseBase.CourseClass2">
<summary>
课程分类2
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghre_CourseClassBase"> <member name="T:Tiobon.Core.Model.Models.Ghre_CourseClassBase">
<summary> <summary>
课程分类 (Dto.Base) 课程分类 (Dto.Base)
@ -17981,6 +17986,11 @@
预留字段12 预留字段12
</summary> </summary>
</member> </member>
<member name="P:Tiobon.Core.Model.Models.Ghre_Course.CourseClass2">
<summary>
课程分类2
</summary>
</member>
<member name="T:Tiobon.Core.Model.Models.Ghre_CourseClass"> <member name="T:Tiobon.Core.Model.Models.Ghre_CourseClass">
<summary> <summary>
课程分类 (Model) 课程分类 (Model)

Loading…
Cancel
Save