More Header Common
This commit is contained in:
@ -120,9 +120,12 @@ function loadHeaderGridRunHeaders() {
|
||||
],
|
||||
columns: [
|
||||
{ key: "ID", dataType: "number", hidden: true },
|
||||
{ key: "ToolID", dataType: "number", hidden: true },
|
||||
{ key: "ToolName", dataType: "string", width: "10%" },
|
||||
{ key: "Title", dataType: "string", width: "70%" },
|
||||
{ key: "ToolTypeID", dataType: "number", hidden: true },
|
||||
{ key: "ToolTypeName", dataType: "string", width: "10%" },
|
||||
{ key: "Title", dataType: "string", width: "40%" },
|
||||
{ key: "Reactor", dataType: "string", width: "10%" },
|
||||
{ key: "RDS", dataType: "string", width: "10%" },
|
||||
{ key: "PSN", dataType: "string", width: "10%" },
|
||||
{ key: "InsertDate", dataType: "date", format: "dateTime", width: "20%" }
|
||||
],
|
||||
dataSource: headerURL,
|
||||
@ -139,7 +142,7 @@ function clearFieldsGridRunHeaders() {
|
||||
function headerSelectionChangedRunHeaders(evt, ui) {
|
||||
clearFieldsGridRunHeaders();
|
||||
var rowData = ui.owner.grid.dataSource.dataView()[ui.row.index];
|
||||
var url = _apiUrl + "/api/tooltypes/" + rowData.ToolID + "/headers/" + ui.row.id + "/fields";
|
||||
var url = _apiUrl + "/api/tooltypes/" + rowData.ToolTypeID + "/headers/" + ui.row.id + "/fields";
|
||||
$("#FieldsGrid").igGrid({
|
||||
autoGenerateColumns: false,
|
||||
primaryKey: "Column",
|
||||
|
Reference in New Issue
Block a user