|
|
@ -1059,10 +1059,12 @@ namespace _24Hour.Controllers.Common |
|
|
|
if (System.IO.File.Exists(filepath)) |
|
|
|
if (System.IO.File.Exists(filepath)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var basestr = Elight.Utility.Encrypt.DataEncryption.Decryptiones(filepath); |
|
|
|
var basestr = Elight.Utility.Encrypt.DataEncryption.Decryptiones(filepath); |
|
|
|
|
|
|
|
var filename = Path.GetFileName(filepath); |
|
|
|
|
|
|
|
filename = Path.ChangeExtension(filename, ".jpg"); |
|
|
|
await twentyClient.UploadImage(new UploadDto() |
|
|
|
await twentyClient.UploadImage(new UploadDto() |
|
|
|
{ |
|
|
|
{ |
|
|
|
Bmsah = registerinfo.bmsah, |
|
|
|
Bmsah = registerinfo.bmsah, |
|
|
|
FileName = Path.GetFileName(filepath), |
|
|
|
FileName = filename, |
|
|
|
Code = typecode, |
|
|
|
Code = typecode, |
|
|
|
Bhdlbm = registerinfo.bhdlbh, |
|
|
|
Bhdlbm = registerinfo.bhdlbh, |
|
|
|
UnitCode = registerinfo.dwbm, |
|
|
|
UnitCode = registerinfo.dwbm, |
|
|
|