2022-10-12 组件二维码导入修改,三维界面修改。
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user