2022-10-12 组件二维码导入修改,三维界面修改。

This commit is contained in:
2022-10-12 18:36:04 +08:00
parent 0e42d35160
commit 6d0290896e
10 changed files with 67 additions and 32 deletions
@@ -166,6 +166,26 @@ namespace BLL
var newVersion = MaxVersion + 0.1m;
return newVersion;
}
public static string Getlatest3DModelNameByUnitWorkId(string UnitWorkId )
{
string result = "";
var q = (from x in Funs.DB.HJGL_DataImport
where x.UnitWorkId == UnitWorkId && x.ImportType == "1"
group x by x.UnitWorkId into tt
from t in tt.DefaultIfEmpty()
select new
{
FileName = (from x2 in tt where x2.Version == tt.Max(x => x.Version ) select x2.FileName).FirstOrDefault()
}
).FirstOrDefault();
//where t.Key == UnitWorkId & x.FileType == "1" select x.Version).Distinct().ToList();
if (!string.IsNullOrEmpty(q.FileName))
{
result=q.FileName.Substring (0,q.FileName.LastIndexOf('.'));
}
return result;
}
public static void InitVersionDownList(FineUIPro.DropDownList dropName, string UnitWorkId)
{