duheng
2024-06-25 43e88ef24c6b3a7988c495d1740e68e33ce52f84
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
using HStation.CAL;
using Yw.DAL.Basic;
 
namespace HStation.BLL
{
    /// <summary>
    ///
    /// </summary>
    public class XhsProject : IXhsProject
    {
        private readonly HStation.CAL.IXhsProject _cal = CALCreateHelper.CreateCAL<HStation.CAL.IXhsProject>();
 
        #region Query
 
        /// <summary>
        ///
        /// </summary>
        public async Task<List<XhsProjectDto>> GetAll()
        {
            return await _cal.GetAll();
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<XhsProjectDto> GetByID(long ID)
        {
            return await _cal.GetByID(ID);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<List<XhsProjectDto>> GetByIds(List<long> Ids)
        {
            return await _cal.GetByIds(Ids);
        }
 
        #endregion Query
 
        #region Insert
 
        /// <summary>
        ///
        /// </summary>
        public async Task<long> Insert(AddXhsProjectInput model)
        {
            return await _cal.Insert(model);
        }
 
        public async Task<long> InsertEx(AddXhsProjectInput projectInput, AddXhsProjectItemInput itemInput, AddXhsProjectItemModelInput modelInput, AddXhsProjectItemModelMapInput MapInput)
        {
            return await _cal.InsertEx(projectInput, itemInput, modelInput, MapInput);
        }
 
        public async Task<bool> DeleteEx(long ID)
        {
            return await _cal.DeleteEx(ID);
        }
 
        public async Task<bool> UpdateEx(UpdateXhsProjectInput projectInput, UpdateXhsProjectItemInput itemInput)
        {
            return await _cal.UpdateEx(projectInput, itemInput);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> Inserts(List<AddXhsProjectInput> list)
        {
            return await _cal.Inserts(list);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> BulkInserts(List<AddXhsProjectInput> list)
        {
            return await _cal.BulkInserts(list);
        }
 
        #endregion Insert
 
        #region Update
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> Update(UpdateXhsProjectInput model)
        {
            return await _cal.Update(model);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> Updates(List<UpdateXhsProjectInput> list)
        {
            return await _cal.Updates(list);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> BulkUpdates(List<UpdateXhsProjectInput> list)
        {
            return await _cal.BulkUpdates(list);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> UpdateSortCode(long ID, int SortCode)
        {
            return await _cal.UpdateSortCode(ID, SortCode);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> UpdateSorter(List<UpdateSortCodeInput> Sorters)
        {
            return await _cal.UpdateSorter(Sorters);
        }
 
        /// <summary>
        ///
        /// </summary>
        public Task<bool> UpdateParas(long ID, Dictionary<string, string> Paras)
        {
            return _cal.UpdateParas(ID, Paras);
        }
 
        /// <summary>
        ///
        /// </summary>
        public Task<bool> UpdateFlags(long ID, List<string> Flags)
        {
            return _cal.UpdateFlags(ID, Flags);
        }
 
        /// <summary>
        ///
        /// </summary>
        public Task<bool> UpdateTagName(long ID, string TagName)
        {
            return _cal.UpdateTagName(ID, TagName);
        }
 
        #endregion Update
 
        #region Delete
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> DeleteByID(long ID)
        {
            return await _cal.DeleteByID(ID);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> DeleteByIds(List<long> Ids)
        {
            return await _cal.DeleteByIds(Ids);
        }
 
        /// <summary>
        ///
        /// </summary>
        public async Task<bool> DeleteAll()
        {
            return await _cal.DeleteAll();
        }
 
        /// <summary>
        ///
        /// </summary>
        public Task<bool> UpdateUseStatus(long ID, int UseStatus)
        {
            return _cal.UpdateUseStatus(ID, UseStatus);
        }
 
        #endregion Delete
    }
}