private Row CreateHeaderRowForExcel(List <ColumnMappingModel> columnMapping) { Row workRow = new Row(); foreach (var t in columnMapping) { workRow.Append(OpenXMLHelper.CreateCell(t.Name, 2U)); } return(workRow); }
private Row CreateHeaderRowForExcel() { Row workRow = new Row(); workRow.Append(OpenXMLHelper.CreateCell("Name", 2U)); workRow.Append(OpenXMLHelper.CreateCell("Deployment Status", 2U)); workRow.Append(OpenXMLHelper.CreateCell("Firmware", 2U)); workRow.Append(OpenXMLHelper.CreateCell("Start", 2U)); workRow.Append(OpenXMLHelper.CreateCell("End", 2U)); return(workRow); }
private Row GenerateRowForChildPartDetail(DeviceRegistryApiModel model, List <ColumnMappingModel> columnMapping) { Row tRow = new Row(); JObject modelObject = (JObject)JToken.FromObject(model); foreach (var map in columnMapping) { tRow.Append(OpenXMLHelper.CreateCell((string)modelObject.SelectToken(map.Mapping))); } return(tRow); }
private Row GenerateRowForChildPartDetail(DeviceDeploymentStatus testmodel) { Row tRow = new Row(); tRow.Append(OpenXMLHelper.CreateCell(testmodel.Name)); tRow.Append(OpenXMLHelper.CreateCell(testmodel.DeploymentStatus)); tRow.Append(OpenXMLHelper.CreateCell(testmodel.Firmware)); tRow.Append(OpenXMLHelper.CreateCell(testmodel.Start)); tRow.Append(OpenXMLHelper.CreateCell(testmodel.End)); return(tRow); }