개정판 e5ade387
issue #0000
저장 수정
Change-Id: Ic59c8fbcf59ba7baab52938bc97508686e61a2b3
ID2.Manager/ID2.Manager.Dapper/Repository/DocumentRepository.cs | ||
---|---|---|
436 | 436 |
|
437 | 437 |
foreach (AttFileInfo attFile in doc.AttFiles) |
438 | 438 |
{ |
439 |
attFile.RefID = refID; |
|
440 |
attFile.Creator = userId; |
|
439 |
if (string.IsNullOrEmpty(attFile.RefID)) |
|
440 |
{ |
|
441 |
attFile.RefID = refID; |
|
442 |
attFile.Creator = userId; |
|
441 | 443 |
|
442 |
query = $@" |
|
444 |
query = $@"
|
|
443 | 445 |
insert into dbo.AttachFIles (FileID,RefID,Category,FileType,FileName,FilePath,FileExtension,FileData,Creator) |
444 | 446 |
values |
445 | 447 |
( |
... | ... | |
454 | 456 |
,@Creator |
455 | 457 |
)"; |
456 | 458 |
|
457 |
base.Execute(query, attFile, transaction); |
|
459 |
base.Execute(query, attFile, transaction); |
|
460 |
} |
|
458 | 461 |
} |
459 | 462 |
} |
460 | 463 |
} |
ID2.Manager/ID2.Manager/Main.cs | ||
---|---|---|
261 | 261 |
AttFileInfo newFile = new AttFileInfo |
262 | 262 |
{ |
263 | 263 |
FileID = Guid.NewGuid().ToString(), |
264 |
RefID = doc.DocID, |
|
265 | 264 |
Category = category, |
266 | 265 |
FileType = "image/png", |
267 | 266 |
FileName = "ClipBoard", |
내보내기 Unified diff