This commit is contained in:
sc committed 2022-03-09 00:06:37 +08:00
commit f9a9bb1723
10 files changed
+97 -25

No files matched your search

+6 -1
View File
@@ -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();
+21 -1
View File
@@ -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
View File
@@ -23,7 +23,7 @@ namespace Models
/// </summary>
/// <param name="t"></param>
/// <returns></returns>
//int Select(T t);
List<T> Selectsql(T t);
/// <summary>
/// 插入一条记录
+4
View File
@@ -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();
+5
View File
@@ -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();
+4
View File
@@ -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();