Merge branch 'master' of http://scddns.f3322.net:13000/sc/Audit_APP
This commit is contained in:
commit
f9a9bb1723
10 files changed
+97
-25
No files matched your search
@@ -25,11 +25,16 @@ namespace Models
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public List<DyelotsBulkedRecipe> Selectsql(DyelotsBulkedRecipe t)
|
||||
{
|
||||
string sqlselect = "select * from DyelotsBulkedRecipe Where Dyelot = "+"'"+ t.Dyelot.ToString()+"'";
|
||||
return db.DyelotsBulkedRecipe.SqlQuery(sqlselect).ToList();//查询前100条
|
||||
}
|
||||
|
||||
public List<DyelotsBulkedRecipe> Select()
|
||||
{
|
||||
return db.DyelotsBulkedRecipe.SqlQuery("select TOP (100) * from DyelotsBulkedRecipe").ToList();//查询前100条
|
||||
}
|
||||
|
||||
public int Update(DyelotsBulkedRecipe t)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
@@ -32,9 +32,29 @@ namespace Models
|
||||
|
||||
public List<Dyelots> Select()
|
||||
{
|
||||
return db.Dyelots.SqlQuery("select TOP (100) * from Dyelots").ToList();//查询前100条
|
||||
string sqlselect= "select TOP (300) * from Dyelots Where CreationTime > '" + DateTime.Now.ToString("yyyy-MM-dd") + "'";
|
||||
return db.Dyelots.SqlQuery(sqlselect).ToList();
|
||||
}
|
||||
|
||||
public List<Dyelots> Selectsql(Dyelots t)
|
||||
{
|
||||
string sqlselect = "select * from Dyelots Where Dyelot = " + "'" + t.Dyelot.ToString() + "'";
|
||||
return db.Dyelots.SqlQuery(sqlselect).ToList();
|
||||
}
|
||||
|
||||
public List<Dyelots> Selecttime(Dyelots t)
|
||||
{
|
||||
string sqlselect = "select * from Dyelots Where CreationTime < " + "'" + t.EndTime.ToString()
|
||||
+ "' and CreationTime > '" + t.StartTime.ToString() + "'";
|
||||
return db.Dyelots.SqlQuery(sqlselect).ToList();
|
||||
}
|
||||
|
||||
public List<Dyelots> SelectMachine(Dyelots t)
|
||||
{
|
||||
string sqlselect = "select * from Dyelots Where CreationTime < " + "'" + t.EndTime.ToString()
|
||||
+ "' and CreationTime > '" + t.StartTime.ToString() + "' and Machine = '" + t.Machine.ToString() + "'";
|
||||
return db.Dyelots.SqlQuery(sqlselect).ToList();
|
||||
}
|
||||
public int Update(Dyelots t)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ namespace Models
|
||||
/// </summary>
|
||||
/// <param name="t"></param>
|
||||
/// <returns></returns>
|
||||
//int Select(T t);
|
||||
List<T> Selectsql(T t);
|
||||
|
||||
/// <summary>
|
||||
/// 插入一条记录
|
||||
|
||||
@@ -25,6 +25,10 @@ namespace Models
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public List<Machines> Selectsql(Machines t)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
public int Update(Machines t)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
@@ -46,6 +46,11 @@ namespace Models
|
||||
{
|
||||
return db.Product.SqlQuery("select * from Product where ProductType = 2").ToList();//查询
|
||||
}
|
||||
|
||||
public List<Product> Selectsql(Product t)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
public int Update(Product t)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
@@ -25,6 +25,10 @@ namespace Models
|
||||
return db.UserAccount.ToList();
|
||||
}
|
||||
|
||||
public List<UserAccount> Selectsql(UserAccount t)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
public int Update(UserAccount t)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
Reference in new issue
Block a user