using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEA_Core.FreeDB; using WIDESEA_Entity.DomainModels; namespace WIDESEA_WCS.JobsPart.Common { public class LocationCreation { FreeDB freeDB = new FreeDB(); public void HCJCreation() { try { List stationinfos = new List(); for (int i = 1; i <= 3; i++) { for (int j = 1; j <= 3; j++) { dt_stationinfo stationinfo = new dt_stationinfo(); stationinfo.id = Guid.NewGuid(); stationinfo.stationCode = "X0" + i + (i <= 9 ? "00" + i : "0" + i) + (j <= 9 ? "00" + j : "0" + j); stationinfo.area = "5"; stationinfo.enable = true; stationinfo.line = i; stationinfo.column = j; stationinfos.Add(stationinfo); } } freeDB.AddRange(stationinfos); } catch (Exception ex) { throw; } } } }