|
@@ -2799,11 +2799,12 @@ namespace SiteCore
|
|
|
timerSql.AppendFormat("SELECT * FROM CE_ErpSupplierProductTime WHERE supplierId={0}", entity.SupplierId);
|
|
timerSql.AppendFormat("SELECT * FROM CE_ErpSupplierProductTime WHERE supplierId={0}", entity.SupplierId);
|
|
|
DataTable timerTable = DbHelper.DbConn.ExecuteDataset(timerSql.ToString()).Tables[0];
|
|
DataTable timerTable = DbHelper.DbConn.ExecuteDataset(timerSql.ToString()).Tables[0];
|
|
|
//没有设置时间则不判断
|
|
//没有设置时间则不判断
|
|
|
|
|
+ dt.Columns.Add(new DataColumn("default", typeof(int)));
|
|
|
|
|
+
|
|
|
if (timerTable == null || timerTable.Rows.Count == 0)
|
|
if (timerTable == null || timerTable.Rows.Count == 0)
|
|
|
{
|
|
{
|
|
|
return dt;
|
|
return dt;
|
|
|
}
|
|
}
|
|
|
- dt.Columns.Add(new DataColumn("default", typeof(int)));
|
|
|
|
|
foreach (DataRow dr in dt.Rows)
|
|
foreach (DataRow dr in dt.Rows)
|
|
|
{
|
|
{
|
|
|
dr["default"] = 0;
|
|
dr["default"] = 0;
|