sync
This commit is contained in:
@ -16,20 +16,6 @@
|
||||
content: '\e631';
|
||||
}
|
||||
|
||||
.cupbutton {
|
||||
background-color: rgb(249, 189, 117);
|
||||
border: none;
|
||||
padding-top: 5px;
|
||||
padding-bottom: 5px;
|
||||
margin-left: 10px;
|
||||
cursor: pointer;
|
||||
width: 60px;
|
||||
}
|
||||
|
||||
.cupbutton:hover {
|
||||
background: #d7690E;
|
||||
}
|
||||
|
||||
.labeltdstyle {
|
||||
text-align: right;
|
||||
padding-top: 10px;
|
||||
@ -46,47 +32,6 @@
|
||||
color: #2140fb;
|
||||
}
|
||||
|
||||
.dialog .dialog-title .dialog-close {
|
||||
float: right;
|
||||
margin-right: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.dialog .dialog-title .dialog-close:before {
|
||||
content: '\e600';
|
||||
}
|
||||
|
||||
.dialog-content table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.dialog-content table td.label {
|
||||
width: 150px;
|
||||
text-align: right;
|
||||
padding-right: 10px;
|
||||
line-height: 24px;
|
||||
height: 24px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.dialog-content table td input,
|
||||
.dialog-content table td textarea {
|
||||
border: 1px solid #a9a9a9;
|
||||
width: 200px;
|
||||
height: 18px;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
.dialog-content table td input[type="checkbox"] {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.dialog-content table td textarea {
|
||||
height: 100px;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
#dialogdatatb td {
|
||||
padding-top: 5px;
|
||||
}
|
||||
@ -107,7 +52,6 @@
|
||||
</style>
|
||||
<script src="../js/jquery.datetimepicker.full.js"></script>
|
||||
<script src="<%=GetFileUrlWithVersion("js/inputdatactr.js")%>" type="text/javascript"></script>
|
||||
<script src="<%=GetFileUrlWithVersion("../js/editableselect.js")%>" type="text/javascript"></script>
|
||||
<%--<script src="<%=GetFileUrlWithVersion("js/attachments.js")%>" type="text/javascript"></script>--%>
|
||||
<script type="text/javascript">
|
||||
|
||||
@ -277,11 +221,11 @@
|
||||
}
|
||||
|
||||
function GetRecordesbymachineID() {
|
||||
showloading(true);
|
||||
if ($('#mid').val() == "") {
|
||||
showAlert(GetTextByKey("P_MRM_SAVEWORKORDERFIRST", "Please select an Asset."), GetTextByKey("P_MRM_SYSTEMINFORMATION", "System Information"));
|
||||
return false;
|
||||
}
|
||||
showloading(true);
|
||||
$.ajax(
|
||||
{
|
||||
type: "POST",
|
||||
@ -327,20 +271,14 @@
|
||||
r[j] = { DisplayValue: r["StrForMaintenanceDate"], Value: r[j] };
|
||||
}
|
||||
}
|
||||
var fr = { Values: r };
|
||||
rows.push(fr);
|
||||
rows.push(r);
|
||||
}
|
||||
|
||||
grid_dt.setData(rows);
|
||||
}
|
||||
var grid_dt;
|
||||
function InitGridData() {
|
||||
grid_dt = new GridView('#recordlist');
|
||||
grid_dt.lang = {
|
||||
all: GetTextByKey("P_GRID_ALL", "(All)"),
|
||||
ok: GetTextByKey("P_GRID_OK", "OK"),
|
||||
reset: GetTextByKey("P_GRID_RESET", "Reset")
|
||||
};
|
||||
grid_dt = createGridView('#recordlist');
|
||||
var list_columns = [
|
||||
{ name: 'MaintenanceDate', caption: GetTextByKey("P_MRM_DATE", "Date"), valueIndex: 'MaintenanceDate', css: { 'width': 90, 'text-align': 'left' } },
|
||||
{ name: 'LogType', caption: GetTextByKey("P_MRM_MAINTENANCETYPE", "Maintenance Type"), valueIndex: 'LogType', css: { 'width': 120, 'text-align': 'left' } },
|
||||
@ -366,8 +304,10 @@
|
||||
col.align = list_columns[hd].css["text-align"]
|
||||
col.key = list_columns[hd].valueIndex;
|
||||
if (col.name === "Edit") {
|
||||
col.isurl = true;
|
||||
col.text = "\uf044";
|
||||
col.sortable = false;
|
||||
col.resizable = false;
|
||||
col.type = GridView.ColumnTypes.Icon;
|
||||
col.text = "edit";
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
OnEdit();
|
||||
@ -379,8 +319,10 @@
|
||||
col.attrs = { 'title': GetTextByKey("P_MRM_EDIT", 'Edit') };
|
||||
}
|
||||
else if (col.name === "Delete") {
|
||||
col.isurl = true;
|
||||
col.text = "\uf00d";
|
||||
col.sortable = false;
|
||||
col.resizable = false;
|
||||
col.type = GridView.ColumnTypes.Icon;
|
||||
col.text = "times";
|
||||
col.events = {
|
||||
onclick: function () {
|
||||
OnDelete(this);
|
||||
@ -393,16 +335,10 @@
|
||||
}
|
||||
columns.push(col);
|
||||
}
|
||||
grid_dt.canMultiSelect = false;
|
||||
grid_dt.multiSelect = false;
|
||||
grid_dt.columns = columns;
|
||||
grid_dt.init();
|
||||
grid_dt.rowdblclick = OnEdit;
|
||||
|
||||
grid_dt.selectedrowchanged = function (rowindex) {
|
||||
var rowdata = grid_dt.source[rowindex];
|
||||
if (rowdata) {
|
||||
}
|
||||
}
|
||||
grid_dt.onRowDblClicked = OnEdit;
|
||||
}
|
||||
|
||||
|
||||
@ -510,7 +446,7 @@
|
||||
.showDialogRight();
|
||||
}
|
||||
function OnEdit() {
|
||||
var record = grid_dt.source[grid_dt.selectedIndex].Values;
|
||||
var record = grid_dt.source[grid_dt.selectedIndex];
|
||||
|
||||
doIFrameFunc("init", [record.MachineID, record.MaintenanceID], "iframemaintenancerecord");
|
||||
|
||||
@ -562,7 +498,7 @@
|
||||
<span style="margin-left: 10px;" data-lgid="P_MRM_TYPE_COLON">Type: </span>
|
||||
<select class="selectinput" id="typeselectinput" style="width: 150px;"></select>
|
||||
<input id="searchinputtxt" autocomplete="off" style="width: 500px; padding: 0px; height: 18px; margin: 0px; border: 1px solid #b0b0b0;" />
|
||||
<input class="search cupbutton" type="button" onclick="OnSearch();" value="Search" data-lgid="P_MRM_SEARCH" />
|
||||
<input class="funcctionbtn" type="button" onclick="OnSearch();" value="Search" data-lgid="P_MRM_SEARCH" />
|
||||
<span id="currentmachineID"></span>
|
||||
<div style="position: absolute; top: -10px; left: 10px; background-color: Window;" data-lgid="P_MRM_SEARCHASSET">Search Asset</div>
|
||||
<div id="dropDIV" style="border: 1px solid #b0b0b0; width: 500px; height: 400px; overflow: auto; position: absolute; top: 43px; left: 200px; background-color: Window; display: none; z-index: 10;">
|
||||
@ -616,8 +552,8 @@
|
||||
</div>
|
||||
<div style="border: 1px solid #b0b0b0; position: relative; padding-top: 0px; padding-bottom: 10px;">
|
||||
<div style="float: right; margin-top: 10px; margin-bottom: 10px; padding-right: 20px;">
|
||||
<input type="button" class="cupbutton" onclick="OnAdd();" value="Add" data-lgid="P_MRM_ADD" />
|
||||
<input type="button" class="cupbutton" onclick="GetRecordesbymachineID();" value="Refresh" data-lgid="P_MRM_REFRESH" />
|
||||
<input type="button" class="funcctionbtn" onclick="OnAdd();" value="Add" data-lgid="P_MRM_ADD" />
|
||||
<input type="button" class="funcctionbtn" onclick="GetRecordesbymachineID();" value="Refresh" data-lgid="P_MRM_REFRESH" />
|
||||
</div>
|
||||
<div id="recordlist" style="margin-top: 50px;"></div>
|
||||
<div style="position: absolute; top: -10px; left: 10px; background-color: Window;" data-lgid="P_MAINTENANCERECORDS">Maintenance Records</div>
|
||||
|
Reference in New Issue
Block a user