代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
using FineUIPro;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace BLL
|
||||
@@ -28,7 +26,7 @@ namespace BLL
|
||||
(string.IsNullOrEmpty(table.UnitId) || x.UnitId.Contains(table.UnitId)) &&
|
||||
(string.IsNullOrEmpty(table.FactoryCode) || x.FactoryCode.Contains(table.FactoryCode)) &&
|
||||
(string.IsNullOrEmpty(table.FactoryName) || x.FactoryName.Contains(table.FactoryName)) &&
|
||||
(string.IsNullOrEmpty(table.Address) || x.Address.Contains(table.Address))
|
||||
(string.IsNullOrEmpty(table.Address) || x.Address.Contains(table.Address))
|
||||
select x
|
||||
;
|
||||
|
||||
@@ -36,8 +34,8 @@ namespace BLL
|
||||
}
|
||||
public static List<Model.Base_Factory> GetBase_FactoryList()
|
||||
{
|
||||
var q = (from x in Funs.DB.Base_Factory orderby x.FactoryCode select x).ToList();
|
||||
|
||||
var q = (from x in Funs.DB.Base_Factory orderby x.FactoryCode select x).ToList();
|
||||
|
||||
|
||||
return q;
|
||||
}
|
||||
@@ -73,10 +71,10 @@ namespace BLL
|
||||
{
|
||||
return Funs.DB.Base_Factory.FirstOrDefault(x => x.FactoryId == FactoryId);
|
||||
}
|
||||
public static string GetBase_FactoryNameById(object FactoryId)
|
||||
public static string GetBase_FactoryNameById(object FactoryId)
|
||||
{
|
||||
string name = string.Empty;
|
||||
if (FactoryId!=null)
|
||||
if (FactoryId != null)
|
||||
{
|
||||
var model = Funs.DB.Base_Factory.FirstOrDefault(x => x.FactoryId == FactoryId.ToString());
|
||||
if (model != null)
|
||||
@@ -85,9 +83,9 @@ namespace BLL
|
||||
}
|
||||
|
||||
}
|
||||
return name;
|
||||
return name;
|
||||
}
|
||||
public static Model.Base_Factory GetBase_FactoryByCode(string FactoryCode)
|
||||
public static Model.Base_Factory GetBase_FactoryByCode(string FactoryCode)
|
||||
{
|
||||
return Funs.DB.Base_Factory.FirstOrDefault(x => x.FactoryCode == FactoryCode);
|
||||
}
|
||||
@@ -101,7 +99,7 @@ namespace BLL
|
||||
FactoryCode = newtable.FactoryCode,
|
||||
FactoryName = newtable.FactoryName,
|
||||
Address = newtable.Address,
|
||||
MapCoordinates= newtable.MapCoordinates,
|
||||
MapCoordinates = newtable.MapCoordinates,
|
||||
};
|
||||
Funs.DB.Base_Factory.InsertOnSubmit(table);
|
||||
Funs.DB.SubmitChanges();
|
||||
|
||||
Reference in New Issue
Block a user