Project

General

Profile

Feature/Enhancement #21354 » Interface Function Matrix-Battery Management system (1).html

malini C, 03/03/2021 07:20 PM

 




<script type="text/javascript">
var lblOK = "Ok";
var lblCANCEL = "Cancel";
var Sessionurl = "https://qa46a.ewqims.com//";
var SessionWebVir = "W";
var VarClose = "Close";
var lblEwqims = "EwQIMS";
var lblYES = "Yes";
var lblNO = "No";
var lblLoading = "Loading";
var lblNoDataFound = "No Data Found";
</script>
<link href="/Content/ScriptLibraryCSS?v=KD-uT5EmA7XeymaVyKfZqZUumhCWsABzWC3JHK2-MTA1" rel="stylesheet"/>
<script src="/bundles/ScriptLibrary?v=4vbgImJPz7sTc0RWknd0OkujGJhiYCOfNvaMJ3tndZ41"></script>
<script src="/Common/EwIMS.Controls/Scripts/Datatables/dataTables.scroller.min.js"></script>
<script src="/App_Themes/Bootstrap-Theme/assets/plugins/fontawesome/all.min.js" type="text/javascript"></script>
<script src="/App_Themes/Bootstrap-Theme/assets/plugins/fontawesome/v4-shims.min.js" type="text/javascript"></script>

<link rel="stylesheet" type="text/css" href="https://qa46a.ewqims.com//Common/FunctionalSafety/Content/Site.css" />



<link rel="stylesheet" type="text/css" href="https://qa46a.ewqims.com//Common/FlowDown/Content/contextMenuStyle.css" />
<script type="text/javascript" src="https://qa46a.ewqims.com//Common/FunctionalSafety/Scripts/documentcolumn_hide_show.js"></script>
<script type="text/javascript" src="https://qa46a.ewqims.com//Common/FunctionalSafety/Scripts/jquery.contextMenu.js"></script>

<style type="text/css">
body {
margin: 0;
padding: 0;
}

.ClsTable th.row-header {
width: auto;
border-bottom: 1px solid #ccc;
border-left: 1px solid #ccc;
font-size: 11px;
font-family: Tahoma;
color: #2f5d87;
}

.ClsTable th.colom-header {
width: auto;
border-bottom: 1px solid #ccc;
border-top: 1px solid #ccc;
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
font-size: 11px;
font-family: Tahoma;
color: #2f5d87;
min-width: 75px;
background-color: #e2f1fb;
}

.ClsTable td {
width: 30px;
min-height: 25px;
max-height: 25px;
height: 25px;
border-bottom: 1px solid #ccc;
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;
vertical-align: middle;
text-align: center;
}

.ClsTable td.color-green {
background-color: #84974A;
font-size: 11px;
font-family: Tahoma;
color: #000;
}

.ClsTable td.color-orange {
background-color: #E6AD13;
font-size: 11px;
font-family: Tahoma;
color: #000;
}

.ClsTable td.color-blue {
background-color: #00A6E3;
font-size: 11px;
font-family: Tahoma;
color: #000;
}

.ClsTable td.rotate-45 {
height: 120px;
width: 60px;
min-width: 23px;
max-width: 27px;
/*position: relative;*/
vertical-align: bottom;
padding: 0;
font-size: 11px;
font-family: Tahoma;
line-height: 0.9;
}

tr.active > td .rotate-45 {
background-color: none;
}


.ClsTable td.rotate-45 > div {
position: relative;
top: 0px;
left: 69px; /* 80 * tan(45) / 2 = 40 where 80 is the height on the cell and 45 is the transform angle*/
height: 130px;
-ms-transform: skew(-45deg,0deg);
-moz-transform: skew(-45deg,0deg);
-webkit-transform: skew(-45deg,0deg);
-o-transform: skew(-45deg,0deg);
transform: skew(-45deg,0deg);
overflow: hidden;
border-left: 1px solid #ccc;
/*border-right: 1px solid #ccc;*/
/*border-top: 1px solid #ccc;*/
/*border-bottom: 1px solid #ccc;*/
background-color: #F8F8F8;
}

.ClsTable td.rotate-45 span {
-ms-transform: skew(45deg,0deg) rotate(315deg);
-moz-transform: skew(45deg,0deg) rotate(315deg);
-webkit-transform: skew(45deg,0deg) rotate(315deg);
-o-transform: skew(45deg,0deg) rotate(315deg);
transform: skew(45deg,0deg) rotate(315deg);
position: absolute;
color: #2f5d87;
bottom: 20px; /* 40 cos(45) = 28 with an additional 2px margin*/
left: -31px; /*Because it looked good, but there is probably a mathematical link here as well*/
display: inline-block;
/* width: 100%;*/
width: 115px; /* 80 / cos(45) - 40 cos (45) = 85 where 80 is the height of the cell, 40 the width of the cell and 45 the transform angle*/
text-align: left;
white-space: nowrap; /*whether to display in one line or not*/
padding: 0px 0px 15px 5px;
}


#Function_col_head {
background-color: transparent !important;
}

#Requirement_col_head {
background-color: transparent !important;
text-align: left;
}

.rotate-45 {
background-color: transparent !important;
}
</style>

<script type="text/javascript">
var verticalTextCss = '.css-vertical-text';
var IsEditNotNeeded = false;
var lblDeleteFunction = "Delete Function";
var lblDecomposeFunction = "Decompose Function";
var lblEditRequirement = "Edit Requirement";
var lblDeleteRequirement = "Delete Requirement";
var lblAllocateASIL = "Allocate ASIL";
var THLAddRemove = "Add/Remove Elements";
var lblDeAllocateASIL = "DeAllocate ASIL";
var lblAddASIL = "Add ASIL";
var LblOk = "OK";
var LblCancel = "Cancel";
var LblClose = "Close";
var lblINSBRANCH = "Insert Branch";
var lblDELBRANCH = "Delete Branch";
var lblSelectContext = "Select Context Element";

var parentURL = "https://qa46a.ewqims.com//FunctionalSafety/FunctionMatrix/AddUpdate";
var ActionURL = "https://qa46a.ewqims.com//FunctionalSafety/FunctionMatrix/AddUpdate";
var DeleteURL = "https://qa46a.ewqims.com//FunctionalSafety/FunctionMatrix/Delete";
var parentDeleteURL = "https://qa46a.ewqims.com//FunctionalSafety/FunctionMatrix/Delete";
var ColorPicker = "https://qa46a.ewqims.com//FunctionalSafety/CellCode/Index";
var AllocationTypes = "https://qa46a.ewqims.com//FunctionalSafety/CellCode/AllocationTypes";
var AllocateRequirement = "https://qa46a.ewqims.com//FunctionalSafety/FunctionMatrix/AllocateRequirement";
var DeleteAllocation = "https://qa46a.ewqims.com//FunctionalSafety/FunctionMatrix/DeleteAllocation";
var getValues = "https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/FunctionRequirement";
var CreateFunction = "https://qa46a.ewqims.com//FunctionalSafety/FunctionMatrix/AddUpdateDialogValues";



var lblCreateFunction = "Functions";
var lblCreateRequirement = "Requirements";
var CreateRequirement = "https://qa46a.ewqims.com//FunctionalSafety/FunctionMatrix/AddUpdateDialogValues";
var DeleteFunction = "https://qa46a.ewqims.com//FunctionalSafety/FunctionMatrix/DeleteFunction";
var DeleteRequirement = "https://qa46a.ewqims.com//FunctionalSafety/FunctionMatrix/DeleteRequirement";
var showParentBOMTree = "https://qa46a.ewqims.com//FunctionalSafety/BOMTree/ProductionItemTreeView";
var showSaveItems = "https://qa46a.ewqims.com//FunctionalSafety/PreliminaryArchitecture/showSaveItemDefinition";


var lblDuplicateReq = "Duplicate function-requirement mapping";
var IsRootURL = "https://qa46a.ewqims.com//FunctionalSafety/BOMTree/IsRootElement";

function appendTdheader(Name, Id, IsExternal, IsInterface, ParentID) {
var bgcolor = "";
var strTitle = "";
if (IsExternal == "True")
bgcolor = " background-color:#fe854f; color:white;";


if (IsInterface == "True") {
bgcolor = " background-color:#8bc5c5; color:white;";
}
strTitle = Name;

if (Name.length > 20) {

Name = Name.substring(0, 20) + "...";

}

var trident = navigator.userAgent.match(/Trident\/(\d+)/);
if (trident) {
var ieVersion = parseInt(trident[1], 10) + 4;
if (ieVersion >= 11)
verticalTextCss = '.css-vertical-text-new'
}
//$(".ClsTable tbody tr").first().append("<td class='hidecontext' data-IsInterface='" + IsInterface + "' data-IsExternal='" + IsExternal + "' id='BOM" + Id + "' title='" + strTitle + "'> <p id=" + ParentID + " style='" + bgcolor + "' class='" + verticalTextCss.replace('.', '') + "'>" + Name + "</p></td>");
$(".ClsTable tbody tr").first().append("<td class='hidecontext rotate-45 context-menu-disabled' style='border-color:rgb(255, 255, 255); width:28px; background-color:transparent !important' data-IsInterface='" + IsInterface + "' data-IsExternal='" + IsExternal + "' id='BOM" + Id + "' ><div title='" + strTitle + "' style='" + bgcolor + "' ><span id=" + ParentID + " style='" + bgcolor + "' class='" + verticalTextCss.replace('.', '') + "'>" + Name + "</span></div></td>");

$(".rotate-45").click(function () {
return false;
});
$(".rotate-45").dblclick(function () {
return false;
});



}

$(document).ready(function () {

var columns = [{ name: 'Id', minWidth: '0px', hidden: true }, { name: 'Code', minWidth: '30px', hidden: false, bgcolor: true, color: true }, { name: 'Description', minWidth: '70px', hidden: false }, { name: 'INFMEA', minWidth: '70px', hidden: false }],
allocationTypes = [];
$.ajax({
dataType: 'json',
type: 'POST',
url: AllocationTypes + "?ProductionItemId=" + $("#TopicElemId").val() + "&IsDesignFlow=false",
contentType: 'application/json; charset=utf-8',
data: null,
success: function (data) {
if (data.Status = "Success") {
for (var i = 0; i < data.Items.length; i++) {
var allocationtype = [data.Items[i].UID, data.Items[i].Code, data.Items[i].Description, data.Items[i].INFMEA, data.Items[i].FontColor, data.Items[0].BackGroundColor];
allocationTypes.push(allocationtype);
}
}
}
});


});



function triggerevents() {
$(document).on("keypress", "td.cellcode input", function (e) {
var txtBox = $(this);
$(this).mcautocomplete({
showHeader: true,
columns: columns,
source: allocationTypes,
select: function (event, ui) {
var Ids = txtBox.parent().attr("id").split('_');
if (Ids != null && Ids.length > 1 && Ids[1] == "0" && txtBox.parent().parent().find("hdnRequirementUsageId").val() != null && txtBox.parent().parent().find("hdnRequirementUsageId").val() != "0") Ids[1] = txtBox.parent().parent().find("hdnRequirementUsageId").val();
$.ajax({
dataType: 'json',
type: 'POST',
url: AllocateRequirement + "?ProductionItemId=" + $("#TopicElemId").val() + "&RequirementUsageId=" + Ids[1] + "&AnalysisItemId=" + Ids[0].replace("BOM", "") + "&AllocationTypeId=" + ui.item[0],
contentType: 'application/json; charset=utf-8',
data: null,
success: function (data) {
$(this).parent().html(ui.item[1]).attr("style", "background-color:" + ui.item[4] + "; color:" + ui.item[4] + "; width:30px;")

}
});

}
});
});

}


</script>


<style type="text/css">
body {
margin: 0;
padding: 0;
}

Select {
min-width: 200px;
max-width: 200px;
}


table.ClsTable tr td {
min-height: 15px;
height: 15px;
}


table.ClsTable {
/*margin-left: 20px !important;
margin-top: 20px !important;*/
text-align: left;
}

.ui-autocomplete-input {
width: 30px;
}

.ui-autocomplete {
max-width: 500px;
max-height: 220px;
overflow-y: auto;
/* prevent horizontal scrollbar */
overflow-x: hidden;
}
/* IE 6 doesn't support max-height
* we use height instead, but this forces the menu to always be this tall
*/
* html .ui-autocomplete {
height: 100px;
}

.ClsTable td.row-header {
width: auto;
border-bottom: 1px solid #ccc;
border-left: 1px solid #ccc;
font-size: 11px;
font-family: Tahoma;
color: #2f5d87;
}

.ClsTable td.colom-header {
width: auto;
border-bottom: 1px solid #ccc;
border-top: 1px solid #ccc;
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
font-size: 11px;
font-family: Tahoma;
color: #2f5d87;
background-color: #e2f1fb;
padding: 0px;
vertical-align: bottom;
}

.spclCase {
font-weight: bold;
white-space: nowrap;
font-size: 11px;
}

.requirementaisl {
font-weight: bold;
color: #000;
white-space: nowrap;
}

.ClsTable td {
width: 30px;
min-height: 25px;
max-height: 25px;
height: 25px;
/*border-bottom: 1px solid #ccc;
border-left: 1px solid #ccc;
border-right: 1px solid #ccc;*/
vertical-align: middle;
text-align: center;
}

table.ClsTable tr td {
padding: 0px;
border-bottom: 0px solid #ccc;
border-top: 1px solid #E0E0E0;
border-right: 1px solid #E0E0E0;
background-color: transparent;
}



p.css-vertical-text {
color: #333;
text-align: right;
writing-mode: tb-lr;
-ms-transform: rotate(270deg); /* IE 9 */
-moz-transform: rotate(270deg); /* Firefox */
-webkit-transform: rotate(270deg); /* Safari and Chrome */
-o-transform: rotate(270deg); /* Opera */
white-space: nowrap;
display: block;
bottom: 0;
width: 20px;
height: 150px;
font-family: Tahoma;
font-size: 12px;
font-weight: normal;
text-shadow: 0px 0px 1px #333;
}

p.css-vertical-text-new {
color: #333;
text-align: right;
writing-mode: tb-lr;
transform: translateX(0) rotate(0deg); /* IE 11 */
-moz-transform: rotate(270deg); /* Firefox */
-webkit-transform: rotate(270deg); /* Safari and Chrome */
-o-transform: rotate(270deg); /* Opera */
white-space: nowrap;
display: block;
bottom: 0;
width: 20px;
height: 150px;
font-family: Tahoma;
font-size: 12px;
font-weight: normal;
text-shadow: 0px 0px 1px #333;
}

.ClsTable td.rotate-45 {
height: 120px;
width: 60px;
/*min-width: 60px;
max-width: 60px;*/
position: relative;
vertical-align: bottom;
padding: 0;
font-size: 12px;
font-family: Tahoma;
line-height: 2;
border: 0px solid #ccc;
}


.ClsIFM {
width: 200px;
min-width: 200px;
max-width: 200px;
}

table.ClsTable tr:last-child td {
border-bottom: 1px solid #e0e0e0 !important;
}
.down_icon {
display:none;
}
</style>

<div style="width: 100%; height: 100%; position: absolute;pointer-events: none;" ></div>
<div class="divContentPane" id="divContentPane" style="width: 100%; margin: 0px; margin-bottom: 200px; background-color: #fff;">
<table class="clstbl divHeaderContentPane" style="border: 0px solid #fff;">
<tr class="ui-widget-header">
<th>Interface Function Matrix
</th>
</tr>
</table>

<table class="" style="display: none">
<tr>
<td>FMEA Name</td>
<td><input id="FMEAName" name="FMEAName" type="text" value="" /></td>
<td>FMEA #</td>
<td><input id="FMEADesc" name="FMEADesc" type="text" value="" /></td>
<td>FMEA Status</td>
<td><input id="FMEAStatus" name="FMEAStatus" type="text" value="0" /></td>
</tr>
<tr>
<td>Responsible Engineer</td>
<td><input id="ResponsibleEngineer" name="ResponsibleEngineer" type="text" value="" />
<input id="ResponsibleEngineerId" name="ResponsibleEngineerId" type="hidden" value="0" />
</td>
<td>Prepared By</td>
<td><input id="PreparedBy" name="PreparedBy" type="text" value="" />
<input id="PreparedById" name="PreparedById" type="hidden" value="0" />
</td>
<td>Complete Date</td>
<td><input id="CompleteDate" name="CompleteDate" type="text" value="" /></td>
</tr>
</table>

<input id="hdnInterfacelen" name="hdnInterfacelen" type="hidden" value="3" />
<input id="hdnbomlen" name="hdnbomlen" type="hidden" value="2" />
<table class="ClsTable FirstTbl" cellpadding="0" cellspacing="0" style="border: 1px solid #dee2e6; padding: 0;" id="Tbl_IFM"><tr class="" id="Tr_IFM" style="border: 1px solid #aaaaaa/*{borderColorHeader}*/; background: #cccccc/*{bgColorHeader}*/ url(images/ui-bg_highlight-soft_75_cccccc_1x100.png"><td id="Function_col_head" data-disabled="True" class="context-menu-disabled hidecontext" style="width:200px;">Functions<img class="down_icon" src="https://qa46a.ewqims.com//Common/flowdown/images/elem-down.png" /><img class="up_icon" style="display:none" src="https://qa46a.ewqims.com//Common/flowdown/images/elem-up.png" /><div id="Function_col_span" style="BORDER-RIGHT: #e0e0e0 1px solid; float:right;" onmousedown="column_resizeable('Function_col_span')" class="ColumnResize" /></td><td id="Requirement_col_head" data-disabled="True" class="context-menu-disabled hidecontext" style="width:100px;">Requirements<img class="down_icon" src="https://qa46a.ewqims.com//Common/flowdown/images/elem-down.png" /><img class="up_icon" style="display:none" src="https://qa46a.ewqims.com//Common/flowdown/images/elem-up.png" /><div id="Requirement_col_span" style="BORDER-RIGHT: #e0e0e0 1px solid; float:right;" onmousedown="column_resizeable('Requirement_col_span')" class="ColumnResize" /></td></tr><tr Class="Search" /><tr id="tr_IFM_47281" Class="thllIFM"><td id="FunctionName0" class="Function_col InsBranch" data-disabled="False" data-required="False" style=" width:200px;" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Functions&amp;tableValue=0">BMS Function 02<input type="hidden" id="hdnFunctionUsageId" value="47282" /></td><td id="FuncId0" data-disabled="False" style="display:none;" data-required="False" data-select="False">47281<input type="hidden" id="hdn" value="47281" /></td><td class="Requirement_col Requirements" data-disabled="False" data-required="False" style="padding:0px 0px 0px 0px;" Colspan="4" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0"><table class="SecondTbl" style="width:100%; height:100%; border-collapse: collapse;" cellpadding="0" cellspacing="0"><tr><td style="padding:0px 0px 0px 0px;border:1px solid #ccc; padding:0px 0px 0px 0px; border-bottom:1px solid #ccc; width:100px;" data-required="False" data-disabled="False" id="RequirementName0" class="Requirement_col Requirements" min-height="15px" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0">BMS Requirement 02<input type="hidden" id="hdnRequirementUsageId" value="47284" /></td><td id="ReqId0" style="display:none;">47283</td></tr></table></td><td id="IFM1" data-disabled="False" style="display:none;" data-required="False" data-select="False">47281<input type="hidden" id="hdn" value="47281" /></td></tr><tr id="tr_IFM_47775" Class="thllIFM"><td id="FunctionName2" class="Function_col InsBranch" data-disabled="False" data-required="False" style=" width:200px;" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Functions&amp;tableValue=0">Convey temperature information to vehicle ECU<input type="hidden" id="hdnFunctionUsageId" value="47776" /></td><td id="FuncId2" data-disabled="False" style="display:none;" data-required="False" data-select="False">47775<input type="hidden" id="hdn" value="47775" /></td><td class="Requirement_col Requirements" data-disabled="False" data-required="False" style="padding:0px 0px 0px 0px;" Colspan="4" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0"><table class="SecondTbl" style="width:100%; height:100%; border-collapse: collapse;" cellpadding="0" cellspacing="0"><tr><td style="padding:0px 0px 0px 0px;border:1px solid #ccc; padding:0px 0px 0px 0px; border-bottom:1px solid #ccc; width:100px;" data-required="False" data-disabled="False" id="RequirementName2" class="Requirement_col Requirements" min-height="15px" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0">Convey/Transmit battery module temperature information for regulating flow of coolant<input type="hidden" id="hdnRequirementUsageId" value="47778" /></td><td id="ReqId2" style="display:none;">47777</td></tr></table></td><td id="IFM3" data-disabled="False" style="display:none;" data-required="False" data-select="False">47775<input type="hidden" id="hdn" value="47775" /></td></tr><tr id="tr_IFM_47765" Class="thllIFM"><td id="FunctionName4" class="Function_col InsBranch" data-disabled="False" data-required="False" style=" width:200px;" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Functions&amp;tableValue=0">Function of BMS Software-MBS EMC Filter<input type="hidden" id="hdnFunctionUsageId" value="47288" /></td><td id="FuncId4" data-disabled="False" style="display:none;" data-required="False" data-select="False">47765<input type="hidden" id="hdn" value="47765" /></td><td class="Requirement_col Requirements" data-disabled="False" data-required="False" style="padding:0px 0px 0px 0px;" Colspan="4" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0"><table class="SecondTbl" style="width:100%; height:100%; border-collapse: collapse;" cellpadding="0" cellspacing="0"><tr><td style="padding:0px 0px 0px 0px;border:1px solid #ccc; padding:0px 0px 0px 0px; border-bottom:1px solid #ccc; width:100px;" data-required="False" data-disabled="False" id="RequirementName4" class="Requirement_col Requirements" min-height="15px" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0">BMS branch 01<input type="hidden" id="hdnRequirementUsageId" value="47291" /></td><td id="ReqId4" style="display:none;">47290</td></tr><tr><td style="padding:0px 0px 0px 0px;border:1px solid #ccc; padding:0px 0px 0px 0px; border-bottom:1px solid #ccc; width:100px;" data-required="False" data-disabled="False" id="RequirementName5" class="Requirement_col Requirements" min-height="15px" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0">Requirement of BMS Software-MBS EMC Filter<input type="hidden" id="hdnRequirementUsageId" value="47289" /></td><td id="ReqId5" style="display:none;">47766</td></tr></table></td><td id="IFM6" data-disabled="False" style="display:none;" data-required="False" data-select="False">47765<input type="hidden" id="hdn" value="47765" /></td></tr><tr id="tr_IFM_47885" Class="thllIFM"><td id="FunctionName7" class="Function_col InsBranch" data-disabled="False" data-required="False" style=" width:200px;" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Functions&amp;tableValue=0">Interface Function of Battery Module-BMS Hardware(P)<input type="hidden" id="hdnFunctionUsageId" value="47886" /></td><td id="FuncId7" data-disabled="False" style="display:none;" data-required="False" data-select="False">47885<input type="hidden" id="hdn" value="47885" /></td><td class="Requirement_col Requirements" data-disabled="False" data-required="False" style="padding:0px 0px 0px 0px;" Colspan="4" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0"><table class="SecondTbl" style="width:100%; height:100%; border-collapse: collapse;" cellpadding="0" cellspacing="0"><tr><td style="padding:0px 0px 0px 0px;border:1px solid #ccc; padding:0px 0px 0px 0px; border-bottom:1px solid #ccc; width:100px;" data-required="False" data-disabled="False" id="RequirementName7" class="Requirement_col Requirements" min-height="15px" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0">Interface Requirement of Battery Module-BMS Hardware(P)<input type="hidden" id="hdnRequirementUsageId" value="47888" /></td><td id="ReqId7" style="display:none;">47887</td></tr></table></td><td id="IFM8" data-disabled="False" style="display:none;" data-required="False" data-select="False">47885<input type="hidden" id="hdn" value="47885" /></td></tr><tr id="tr_IFM_47891" Class="thllIFM"><td id="FunctionName9" class="Function_col InsBranch" data-disabled="False" data-required="False" style=" width:200px;" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Functions&amp;tableValue=0">Interface Function of BMS Software-Battery Module(P)<input type="hidden" id="hdnFunctionUsageId" value="47892" /></td><td id="FuncId9" data-disabled="False" style="display:none;" data-required="False" data-select="False">47891<input type="hidden" id="hdn" value="47891" /></td><td class="Requirement_col Requirements" data-disabled="False" data-required="False" style="padding:0px 0px 0px 0px;" Colspan="4" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0"><table class="SecondTbl" style="width:100%; height:100%; border-collapse: collapse;" cellpadding="0" cellspacing="0"><tr><td style="padding:0px 0px 0px 0px;border:1px solid #ccc; padding:0px 0px 0px 0px; border-bottom:1px solid #ccc; width:100px;" data-required="False" data-disabled="False" id="RequirementName9" class="Requirement_col Requirements" min-height="15px" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0">Interface Requirement of BMS Software-Battery Module(P)<input type="hidden" id="hdnRequirementUsageId" value="47894" /></td><td id="ReqId9" style="display:none;">47893</td></tr></table></td><td id="IFM10" data-disabled="False" style="display:none;" data-required="False" data-select="False">47891<input type="hidden" id="hdn" value="47891" /></td></tr><tr id="tr_IFM_47896" Class="thllIFM"><td id="FunctionName11" class="Function_col InsBranch" data-disabled="False" data-required="False" style=" width:200px;" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Functions&amp;tableValue=0">Interface Function of HW 1-SW 1(P)<input type="hidden" id="hdnFunctionUsageId" value="47897" /></td><td id="FuncId11" data-disabled="False" style="display:none;" data-required="False" data-select="False">47896<input type="hidden" id="hdn" value="47896" /></td><td class="Requirement_col Requirements" data-disabled="False" data-required="False" style="padding:0px 0px 0px 0px;" Colspan="4" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0"><table class="SecondTbl" style="width:100%; height:100%; border-collapse: collapse;" cellpadding="0" cellspacing="0"><tr><td style="padding:0px 0px 0px 0px;border:1px solid #ccc; padding:0px 0px 0px 0px; border-bottom:1px solid #ccc; width:100px;" data-required="False" data-disabled="False" id="RequirementName11" class="Requirement_col Requirements" min-height="15px" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0">Interface Requirement of HW 1-SW 1(P)<input type="hidden" id="hdnRequirementUsageId" value="47899" /></td><td id="ReqId11" style="display:none;">47898</td></tr></table></td><td id="IFM12" data-disabled="False" style="display:none;" data-required="False" data-select="False">47896<input type="hidden" id="hdn" value="47896" /></td></tr><tr id="tr_IFM_47780" Class="thllIFM"><td id="FunctionName13" class="Function_col InsBranch" data-disabled="False" data-required="False" style=" width:200px;" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Functions&amp;tableValue=0">Kinetic Energy Recovery<input type="hidden" id="hdnFunctionUsageId" value="47781" /></td><td id="FuncId13" data-disabled="False" style="display:none;" data-required="False" data-select="False">47780<input type="hidden" id="hdn" value="47780" /></td><td class="Requirement_col Requirements" data-disabled="False" data-required="False" style="padding:0px 0px 0px 0px;" Colspan="4" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0"><table class="SecondTbl" style="width:100%; height:100%; border-collapse: collapse;" cellpadding="0" cellspacing="0"><tr><td style="padding:0px 0px 0px 0px;border:1px solid #ccc; padding:0px 0px 0px 0px; border-bottom:1px solid #ccc; width:100px;" data-required="False" data-disabled="False" id="RequirementName13" class="Requirement_col Requirements" min-height="15px" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0">Recover energy during planned braking scenario<input type="hidden" id="hdnRequirementUsageId" value="47783" /></td><td id="ReqId13" style="display:none;">47782</td></tr></table></td><td id="IFM14" data-disabled="False" style="display:none;" data-required="False" data-select="False">47780<input type="hidden" id="hdn" value="47780" /></td></tr><tr id="tr_IFM_47768" Class="thllIFM"><td id="FunctionName15" class="Function_col InsBranch" data-disabled="False" data-required="False" style=" width:200px;" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Functions&amp;tableValue=0">Prevent risk of electric shorts by design<input type="hidden" id="hdnFunctionUsageId" value="47769" /></td><td id="FuncId15" data-disabled="False" style="display:none;" data-required="False" data-select="False">47768<input type="hidden" id="hdn" value="47768" /></td><td class="Requirement_col Requirements" data-disabled="False" data-required="False" style="padding:0px 0px 0px 0px;" Colspan="4" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0"><table class="SecondTbl" style="width:100%; height:100%; border-collapse: collapse;" cellpadding="0" cellspacing="0"><tr><td style="padding:0px 0px 0px 0px;border:1px solid #ccc; padding:0px 0px 0px 0px; border-bottom:1px solid #ccc; width:100px;" data-required="False" data-disabled="False" id="RequirementName15" class="Requirement_col Requirements" min-height="15px" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0">Follow material selection per SP 1458 to prevent electric shorts<input type="hidden" id="hdnRequirementUsageId" value="47773" /></td><td id="ReqId15" style="display:none;">47772</td></tr><tr><td style="padding:0px 0px 0px 0px;border:1px solid #ccc; padding:0px 0px 0px 0px; border-bottom:1px solid #ccc; width:100px;" data-required="False" data-disabled="False" id="RequirementName16" class="Requirement_col Requirements" min-height="15px" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0">Follow SDR #3156 for line spacing requirements<input type="hidden" id="hdnRequirementUsageId" value="47771" /></td><td id="ReqId16" style="display:none;">47770</td></tr></table></td><td id="IFM17" data-disabled="False" style="display:none;" data-required="False" data-select="False">47768<input type="hidden" id="hdn" value="47768" /></td></tr><tr id="tr_IFM_47761" Class="thllIFM"><td id="FunctionName18" class="Function_col InsBranch" data-disabled="False" data-required="False" style=" width:200px;" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Functions&amp;tableValue=0">Relay state of health information to vehicle ECU accurately<input type="hidden" id="hdnFunctionUsageId" value="47762" /></td><td id="FuncId18" data-disabled="False" style="display:none;" data-required="False" data-select="False">47761<input type="hidden" id="hdn" value="47761" /></td><td class="Requirement_col Requirements" data-disabled="False" data-required="False" style="padding:0px 0px 0px 0px;" Colspan="4" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0"><table class="SecondTbl" style="width:100%; height:100%; border-collapse: collapse;" cellpadding="0" cellspacing="0"><tr><td style="padding:0px 0px 0px 0px;border:1px solid #ccc; padding:0px 0px 0px 0px; border-bottom:1px solid #ccc; width:100px;" data-required="False" data-disabled="False" id="RequirementName18" class="Requirement_col Requirements" min-height="15px" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0">Meet radiation susceptibility requirement IEC 6100043-<input type="hidden" id="hdnRequirementUsageId" value="47764" /></td><td id="ReqId18" style="display:none;">47763</td></tr></table></td><td id="IFM19" data-disabled="False" style="display:none;" data-required="False" data-select="False">47761<input type="hidden" id="hdn" value="47761" /></td></tr><tr id="tr_IFM_47759" Class="thllIFM"><td id="FunctionName20" class="Function_col InsBranch" data-disabled="False" data-required="False" style=" width:200px;" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Functions&amp;tableValue=0">SOH information calculation (flowDown from Mercury Battery Pack System<input type="hidden" id="hdnFunctionUsageId" value="47278" /></td><td id="FuncId20" data-disabled="False" style="display:none;" data-required="False" data-select="False">47759<input type="hidden" id="hdn" value="47759" /></td><td class="Requirement_col Requirements" data-disabled="False" data-required="False" style="padding:0px 0px 0px 0px;" Colspan="4" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0"><table class="SecondTbl" style="width:100%; height:100%; border-collapse: collapse;" cellpadding="0" cellspacing="0"><tr><td style="padding:0px 0px 0px 0px;border:1px solid #ccc; padding:0px 0px 0px 0px; border-bottom:1px solid #ccc; width:100px;" data-required="False" data-disabled="False" id="RequirementName20" class="Requirement_col Requirements" min-height="15px" data-select="True" data-url="https://qa46a.ewqims.com//FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0">Convert electric reading values to SOH information based on table #11908\<input type="hidden" id="hdnRequirementUsageId" value="47280" /></td><td id="ReqId20" style="display:none;">47760</td></tr></table></td><td id="IFM21" data-disabled="False" style="display:none;" data-required="False" data-select="False">47759<input type="hidden" id="hdn" value="47759" /></td></tr></table>

<script type="text/javascript">
appendTdheader('BMS Hardware', '47853', "False", "False", "47269");
</script>
<script type="text/javascript">
appendTdheader('BMS Software', '47854', "False", "False", "47271");
</script>
<script type="text/javascript">
appendTdheader(' between HW 1 and SW 1', '47895', "True", "True", "0");
</script>
<script type="text/javascript">
appendTdheader(' between Battery Module and BMS Hardware', '47884', "False", "True", "0");
</script>
<script type="text/javascript">
appendTdheader(' between BMS Software and Battery Module', '47890', "False", "True", "0");
</script>
</div>
<input type="hidden" id="pgType" value="MATRIX" />
<input type="hidden" id="FMEAStatus" value="0" />
<input type="hidden" value="" id="hdnShowSafetyFunc" />
<input id="Hdn_Mode" name="Hdn_Mode" type="hidden" value="19" />
<input id="Hdn_ProductionItemID" name="Hdn_ProductionItemID" type="hidden" value="0" />
<input id="Hdn_RootDirectory" name="Hdn_RootDirectory" type="hidden" value="C:\OmnexSystems\EwQIMS_Inst1\\" />

<div id="divDocProPublishSetting" style="display: none">
</div>

<div id="divDocProLevelSelect" style="display: none">
<iframe id="IFrameDocProLevelSelect" width="100%" height="100%" frameborder="0" scrolling="yes"></iframe>
</div>
<div id="divPublishedDocumentDetails" style="display: none">
<iframe id="IFramePublishedDocumentDetails" width="100%" height="100%" frameborder="0" scrolling="yes"></iframe>
</div>
<script type="text/javascript">
var lblMatrixCells = "Matrix Cell Values";
var lblIFM = "Interface Function Matrix";
var BaseUrl = "https://qa46a.ewqims.com//";
$(".ClsTable tr:first td:first-child").css("width", "300px");
$(".ClsTable tr:first td:first-child").css("height", "120px");
$(".ClsTable tr:first td:first-child").css("min-height", "120px");
$(".ClsTable tr:first td:first-child").css("max-height", "120px");
$(".ClsTable tr:first td:first-child").css("font-weight", "bold");
$(".ClsTable tr:first td:first-child").css("vertical-align", "bottom");
$(".ClsTable tr:first td:first-child").css("padding-bottom", "10px");
$(".ClsTable tr:first td:first-child").next().css("width", "240px");
$(".ClsTable tr:first td:first-child").next().css("height", "120px");
$(".ClsTable tr:first td:first-child").next().css("min-height", "120px");
$(".ClsTable tr:first td:first-child").next().css("max-height", "120px");
$(".ClsTable tr:first td:first-child").next().css("border-right", "0px solid #fff");
$(".ClsTable tr:first td:first-child").next().css("font-weight", "bold");
$(".ClsTable tr:first td:first-child").next().css("vertical-align", "bottom");
$(".ClsTable tr:first td:first-child").next().css("padding-bottom", "10px");
$(".ClsTable tr:first").attr('style', '');
$(".ClsTable tr:first").attr('style', 'background-color:#E2F1FB');

$(document).on("click", "#FMCOLORCODE", function (e) {
try {

var url = siteBaseUrl + "/FunctionalSafety/CellCode/Index?ProductionItemId=" + $("#TopicElemId").val();
var dialog = $("#dialog");
if ($("#dialog").length == 0) {
dialog = $('<div id="dialog" style="display:hidden"></div>').appendTo('body');
}
jQuery.ajaxSetup({ cache: false });
dialog.load(
url,
function (responseText, textStatus, XMLHttpRequest) {
dialog.dialog({
open: function (e, v) {
$(".sp-container").show();
$('body').css('overflow', 'hidden')
},
close: function (event, ui) {
$(".sp-container").hide();
if ($("#divColorCodeDialog_IFM").is(':ui-dialog') == true)
$("#divColorCodeDialog_IFM").dialog("destroy");
ActionURL = parentURL;
DeleteURL = parentDeleteURL;
$("#dialog").remove();
$('body').css('overflow', 'auto')
},
modal: true,
title: lblMatrixCells,
width: 600,
height: 400
});
});
return false;
}
catch (e) {
}
});

var reqlen = $(".ClsTable >tbody> tr >td> table> tbody > tr> td").length - 1;
var bomlen = parseInt($("#hdnbomlen").val()) + parseInt($("#hdnInterfacelen").val());

var reservations = [];
var props = [];
var reqUsages = $(".ClsTable >tbody> tr >td> table> tbody > tr> td");

if (reqUsages.length == 0) {

var str = '<td class="Requirements" data-disabled="False" data-required="False" style="padding:0px 0px 0px 0px;" Colspan="2" data-select="True" data-url="' + BaseUrl + '/FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0">';
var htmlString = str + '<table class="SecondTbl" style="width:100%; height:100%; border-collapse: collapse;" cellpadding="0" cellspacing="0"><tr><td style="padding:0px 0px 0px 0px;border:1px solid #ccc; padding:0px 0px 0px 0px; border-bottom:1px solid #ccc; width:100px;" data-required="False" data-disabled="False" id="RequirementName0" class="Requirements Requirement_col" min-height="15px" data-select="True" data-url="' + BaseUrl + '/FunctionalSafety/FSTCommon/getDropdownValues?topicElem=0&amp;param=Requirements&amp;tableValue=0"><input type="hidden" id="hdnRequirementUsageId" value="" /></td></tr></table></td>';
$(".ClsTable").find(".Requirements").remove();
$(".ClsTable").find(".InsBranch").parent().append(htmlString);
reqUsages = $(".ClsTable >tbody> tr >td> table> tbody > tr> td");
$($("#FunctionName0").parent("tr")).attr("class", "thllIFM");

}
$.each(reqUsages, function (i, tdReq) {

var tdobj = new Object();
tdobj.ReqUsageId = tdReq.id;
for (var j = 2; j < parseInt(bomlen) + 2 ; j++) {
tdobj[$(".ClsTable tbody tr:first td")[j].id] = "";
}
reservations.push(tdobj);
});
var tbody = $('.ClsTable tbody');
for (var j = 2; j < parseInt(bomlen) + 2 ; j++) {
props.push($(".ClsTable tbody tr:first td")[j].id);
}


$.each(reservations, function (i, reservation) {
var DisableEditElem = "";
var tdHide = reservation["ReqUsageId"];
if ($("#" + tdHide).parent().parent().find(".ShowHide").length != 0)
DisableEditElem = $("#" + tdHide).parent().parent().find(".ShowHide")[0].innerText;

if (reservation["ReqUsageId"] != null && reservation["ReqUsageId"].indexOf('ReqId') < 0 && reservation["ReqUsageId"].indexOf('ShowSafetyReq') < 0) {
var trid = reservation["ReqUsageId"];
if ($("#" + trid).length <= 0) {
var tr = $('<tr>').attr("id", trid);
$.each(props, function (i, prop) {
var tdid = prop.replace(/\s/g, '');
$('<td>').html(reservation[prop]).attr("id", tdid).appendTo(tr);
});
tbody.append(tr);
}
else if ($("#" + trid).length == 1) {
var tr = $('#' + trid);
$('#' + trid).parent().parent().parent().parent().attr("colspan", parseInt(bomlen) + 1)
$.each(props, function (i, prop) {
var tdid = prop.replace(/\s/g, '');
var hdnval = "0";
if ($("td#" + trid).find("input[type='hidden']").length != 0)
hdnval = $("td#" + trid).find("input[type='hidden']")[0].value;
$('<td>').html(reservation[prop]).attr("class", "cellcode spclCase").attr("data-IsDesignFlow", false).attr("id", tdid + '_' + hdnval).attr("data-IsExternal", $("#" + tdid).attr("data-IsExternal")).attr("data-IsInterface", $("#" + tdid).attr("data-IsInterface")).attr("style", "width:10px;min-width:10px; text-align:center;max-width:10px;height:25px;min-height:25px; max-height:25px;").appendTo($('td#' + trid).parent());
});
}
else {
$.each(props, function (i, prop) {
var tdid = prop.replace(/\s/g, '');
if ($("#" + trid).find("td#" + tdid).length == 0 && tdid != "ReqUsageId") {
if ($("#" + trid).parent().parent().parent().parent().find("td#" + tdid).find("table").find("tr").length == 0) {
var stvalue = "";
var bgcolor = "#ffffff";
if (reservation[prop] != undefined) {
stvalue = reservation[prop];

}
$('<td style="height: ' + $("#" + trid).find("td").height() + 'px; line-height: ' + $("#" + trid).find("td").height() + 'px; color: #000; font-weight:bold; ">').html("<table class='ClsNoBorder' style='width:100%; height:100%;'><tr style='height: 100%;'><td style=' height:100%;text-align:center; position:relative; background-color:" + bgcolor + ";' class='fillheight'><div style='height:100%; text-align:center;'>" + stvalue + "</div></td></tr></table>").attr("id", tdid).appendTo($("#" + trid).parent().parent().parent().parent())
}
else {
var stvalue = "";
var bgcolor = "#ffffff";
if (reservation[prop] != undefined) {
stvalue = reservation[prop];

}
$('<tr style="height: ' + $("#" + trid).find("td").height() + 'px;">').html("<td style='height:" + $('#' + trid).find('td').height() + "px; line-height: " + $('#' + trid).find('td').height() + "px; color: #000; font-weight:bold; background-color:" + bgcolor + "; position:relative;' class='fillheight'><div style='height:100%; text-align:center;'>" + stvalue + "</div></td>").attr("id", tdid).appendTo($("#" + trid).parent().parent().parent().parent().find("td#" + tdid).find("table"))
}
}
else {
var stvalue = "&nbsp;";
if (reservation[prop] != undefined)
stvalue = reservation[prop];
$("#" + trid).find("td#" + tdid).html(stvalue);
}
});
}
}
});

</script>


<script type="text/javascript">



var strCode;
strCode = 'L';
if (strCode.length > 5) {
strCode = strCode.substring(0, 5) + "...";
}

if (strCode != null && strCode != undefined && strCode != "") {

$("#BOM47895_47894").attr("style", $("#BOM47895_47894").
attr("style") + "; background-color:green; color:black;").html(strCode).
attr("title", 'Low risk');

}
else {

if (typeof siteBaseUrl == "undefined") siteBaseUrl = parent.siteBaseUrl;
var strDesignFlowIndicator = '';
if (strDesignFlowIndicator == "1") {
$("#BOM47895_47894").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-red.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
else if (strDesignFlowIndicator == "2") {
$("#BOM47895_47894").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-yellow.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

} else if (strDesignFlowIndicator == "3") {
$("#BOM47895_47894").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-green.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
else {
$("#BOM47895_47894").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-gray.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
}



</script>
<script type="text/javascript">



var strCode;
strCode = '';
if (strCode.length > 5) {
strCode = strCode.substring(0, 5) + "...";
}

if (strCode != null && strCode != undefined && strCode != "") {

$("#BOM47853_47783").attr("style", $("#BOM47853_47783").
attr("style") + "; background-color:; color:;").html(strCode).
attr("title", '');

}
else {

if (typeof siteBaseUrl == "undefined") siteBaseUrl = parent.siteBaseUrl;
var strDesignFlowIndicator = '3';
if (strDesignFlowIndicator == "1") {
$("#BOM47853_47783").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-red.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
else if (strDesignFlowIndicator == "2") {
$("#BOM47853_47783").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-yellow.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

} else if (strDesignFlowIndicator == "3") {
$("#BOM47853_47783").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-green.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
else {
$("#BOM47853_47783").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-gray.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
}



</script>
<script type="text/javascript">



var strCode;
strCode = '';
if (strCode.length > 5) {
strCode = strCode.substring(0, 5) + "...";
}

if (strCode != null && strCode != undefined && strCode != "") {

$("#BOM47854_47773").attr("style", $("#BOM47854_47773").
attr("style") + "; background-color:; color:;").html(strCode).
attr("title", '');

}
else {

if (typeof siteBaseUrl == "undefined") siteBaseUrl = parent.siteBaseUrl;
var strDesignFlowIndicator = '2';
if (strDesignFlowIndicator == "1") {
$("#BOM47854_47773").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-red.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
else if (strDesignFlowIndicator == "2") {
$("#BOM47854_47773").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-yellow.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

} else if (strDesignFlowIndicator == "3") {
$("#BOM47854_47773").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-green.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
else {
$("#BOM47854_47773").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-gray.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
}



</script>
<script type="text/javascript">



var strCode;
strCode = '';
if (strCode.length > 5) {
strCode = strCode.substring(0, 5) + "...";
}

if (strCode != null && strCode != undefined && strCode != "") {

$("#BOM47853_47773").attr("style", $("#BOM47853_47773").
attr("style") + "; background-color:; color:;").html(strCode).
attr("title", '');

}
else {

if (typeof siteBaseUrl == "undefined") siteBaseUrl = parent.siteBaseUrl;
var strDesignFlowIndicator = '2';
if (strDesignFlowIndicator == "1") {
$("#BOM47853_47773").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-red.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
else if (strDesignFlowIndicator == "2") {
$("#BOM47853_47773").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-yellow.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

} else if (strDesignFlowIndicator == "3") {
$("#BOM47853_47773").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-green.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
else {
$("#BOM47853_47773").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-gray.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
}



</script>
<script type="text/javascript">



var strCode;
strCode = 'H';
if (strCode.length > 5) {
strCode = strCode.substring(0, 5) + "...";
}

if (strCode != null && strCode != undefined && strCode != "") {

$("#BOM47853_47291").attr("style", $("#BOM47853_47291").
attr("style") + "; background-color:red; color:white;").html(strCode).
attr("title", 'High risk');

}
else {

if (typeof siteBaseUrl == "undefined") siteBaseUrl = parent.siteBaseUrl;
var strDesignFlowIndicator = '';
if (strDesignFlowIndicator == "1") {
$("#BOM47853_47291").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-red.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
else if (strDesignFlowIndicator == "2") {
$("#BOM47853_47291").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-yellow.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

} else if (strDesignFlowIndicator == "3") {
$("#BOM47853_47291").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-green.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
else {
$("#BOM47853_47291").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-gray.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
}



</script>
<script type="text/javascript">



var strCode;
strCode = 'M';
if (strCode.length > 5) {
strCode = strCode.substring(0, 5) + "...";
}

if (strCode != null && strCode != undefined && strCode != "") {

$("#BOM47895_47289").attr("style", $("#BOM47895_47289").
attr("style") + "; background-color:yellow; color:black;").html(strCode).
attr("title", 'Medium risk');

}
else {

if (typeof siteBaseUrl == "undefined") siteBaseUrl = parent.siteBaseUrl;
var strDesignFlowIndicator = '';
if (strDesignFlowIndicator == "1") {
$("#BOM47895_47289").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-red.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
else if (strDesignFlowIndicator == "2") {
$("#BOM47895_47289").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-yellow.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

} else if (strDesignFlowIndicator == "3") {
$("#BOM47895_47289").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-green.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
else {
$("#BOM47895_47289").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-gray.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
}



</script>
<script type="text/javascript">



var strCode;
strCode = '';
if (strCode.length > 5) {
strCode = strCode.substring(0, 5) + "...";
}

if (strCode != null && strCode != undefined && strCode != "") {

$("#BOM47854_47284").attr("style", $("#BOM47854_47284").
attr("style") + "; background-color:; color:;").html(strCode).
attr("title", '');

}
else {

if (typeof siteBaseUrl == "undefined") siteBaseUrl = parent.siteBaseUrl;
var strDesignFlowIndicator = '2';
if (strDesignFlowIndicator == "1") {
$("#BOM47854_47284").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-red.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
else if (strDesignFlowIndicator == "2") {
$("#BOM47854_47284").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-yellow.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

} else if (strDesignFlowIndicator == "3") {
$("#BOM47854_47284").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-green.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
else {
$("#BOM47854_47284").attr("data-IsDesignFlow", true).html("<img src=\"" + siteBaseUrl + "/Common/FlowDown/Images/right-gray.png\" style='width:8px; height:8px; float:right; margin-top:12px;'/>");

}
}



</script>

<script>

$(document).ready(function () {

if ($(".rotate-45").length != 0) {

$('.divHeaderContentPane').width($('.divHeaderContentPane').width() + 165);

}
else {

$('.divHeaderContentPane').width($('.divHeaderContentPane').width());

}
});

</script>

<input id="Hdn_ProductionItemID" name="Hdn_ProductionItemID" type="hidden" value="47260" />
<input id="Hdn_ProductionItemName" name="Hdn_ProductionItemName" type="hidden" value="Battery Management system" />
(8-8/9)