2023-03-09 实业工厂增加坐标
This commit is contained in:
@@ -104,6 +104,7 @@ namespace BLL
|
||||
FactoryCode = newtable.FactoryCode,
|
||||
FactoryName = newtable.FactoryName,
|
||||
Address = newtable.Address,
|
||||
MapCoordinates= newtable.MapCoordinates,
|
||||
};
|
||||
db.Base_Factory.InsertOnSubmit(table);
|
||||
db.SubmitChanges();
|
||||
@@ -128,6 +129,7 @@ namespace BLL
|
||||
table.FactoryCode = newtable.FactoryCode;
|
||||
table.FactoryName = newtable.FactoryName;
|
||||
table.Address = newtable.Address;
|
||||
table.MapCoordinates = newtable.MapCoordinates;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
|
||||
@@ -154,6 +154,7 @@ namespace BLL
|
||||
Item.FactoryCode = BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).FactoryCode;
|
||||
Item.FactoryName = BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).FactoryName;
|
||||
Item.Address = BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).Address;
|
||||
Item.MapCoordinates= BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).MapCoordinates;
|
||||
Item.SafetyMnaHours = data.SafetyMnaHours.HasValue ? data.SafetyMnaHours.Value : 0;
|
||||
Item.GeneralRiskNum = data.GeneralRiskNum.HasValue ? data.GeneralRiskNum.Value : 0;
|
||||
Item.LowRiskNum = data.LowRiskNum.HasValue ? data.LowRiskNum.Value : 0;
|
||||
|
||||
Reference in New Issue
Block a user