初始化到新仓库
This commit is contained in:
@@ -173,6 +173,12 @@ Namespace UTSModule.Project
|
||||
project.InfoChanged = True
|
||||
End If
|
||||
|
||||
'Momo 2025-07-17 新增对项目有效期的修改检测
|
||||
MsgBox(DtpValidDate.Value)
|
||||
If String.Compare(project.EolDate.ToString, DtpValidDate.Value.ToString) <> 0 Then
|
||||
project.EolDate = DtpValidDate.Value
|
||||
project.InfoChanged = True
|
||||
End If
|
||||
|
||||
If project.Price <> NudPrice.Value Then
|
||||
project.Price = NudPrice.Value
|
||||
|
||||
@@ -859,8 +859,7 @@ Namespace UTSModule.Project
|
||||
Private Function ProjectExists(db As DbExecutor, dbName As String, project As ProjectInfo) As Boolean
|
||||
Dim tableName As String = DbTableModel.Customer.ProjectTable.TableName
|
||||
Dim colNames As String = $"Count(*)"
|
||||
Dim condition As String = $"`{DbTableModel.Customer.ProjectTable.ColNames.ProjectName}` = '{project.Name}' or
|
||||
`{DbTableModel.Customer.ProjectTable.ColNames.ID}` = '{project.Index}' "
|
||||
Dim condition As String = $"`{DbTableModel.Customer.ProjectTable.ColNames.ProjectName}` = '{project.Name}' or `{DbTableModel.Customer.ProjectTable.ColNames.ID}` = '{project.Index}' "
|
||||
Return CInt(db.ExecuteScalar(db.CmdHelper.DbSearch(dbName, colNames, tableName, condition))) > 0
|
||||
End Function
|
||||
|
||||
@@ -1045,9 +1044,7 @@ Namespace UTSModule.Project
|
||||
Private Function StationExists(db As DbExecutor, dbName As String, processStation As ProcessStation) As Boolean
|
||||
Dim tableName As String = DbTableModel.Customer.StationListTable.TableName
|
||||
Dim colName As String = "Count(*)"
|
||||
Dim condition As String = $"`{DbTableModel.Customer.StationListTable.ColNames.ProjectID}` = {processStation.ParentProject.Index}
|
||||
and (`{DbTableModel.Customer.StationListTable.ColNames.StationName}` = '{processStation.Name}'
|
||||
or `{DbTableModel.Customer.StationListTable.ColNames.ID}` = '{processStation.StationID}')"
|
||||
Dim condition As String = $"`{DbTableModel.Customer.StationListTable.ColNames.ProjectID}` = {processStation.ParentProject.Index} and (`{DbTableModel.Customer.StationListTable.ColNames.StationName}` = '{processStation.Name}' or `{DbTableModel.Customer.StationListTable.ColNames.ID}` = '{processStation.StationID}')"
|
||||
Return CInt(db.ExecuteScalar(db.CmdHelper.DbSearch(dbName, colName, tableName, condition))) > 0
|
||||
End Function
|
||||
|
||||
|
||||
Reference in New Issue
Block a user