This commit is contained in:
2024-03-26 15:56:31 +08:00
parent 634e8b71ab
commit 0855ae42cd
547 changed files with 94818 additions and 60463 deletions

View File

@ -271,8 +271,7 @@
r[j] = { DisplayValue: r["QtyOnTruckStr"], Value: r[j] };
}
}
var fr = { Values: r };
rows.push(fr);
rows.push(r);
}
var height = 28 * data.length;
@ -283,12 +282,7 @@
}
function InitGridData() {
grid_fddt = new GridView('#fueldetaillist');
grid_fddt.lang = {
all: GetTextByKey("P_GRID_ALL", "(All)"),
ok: GetTextByKey("P_GRID_OK", "OK"),
reset: GetTextByKey("P_GRID_RESET", "Reset")
};
grid_fddt = createGridView('#fueldetaillist');
var list_columns = [
{ name: 'AssetName', caption: GetTextByKey("P_IPT_EQUIPMENT", "Equipment #"), valueIndex: 'AssetName', css: { 'width': 150, 'text-align': 'left' } },
{ name: 'AssetMeter', caption: GetTextByKey("P_IPT_HOURMETERODOMETER", "Hour Meter/Odometer"), valueIndex: 'AssetMeter', css: { 'width': 136, 'text-align': 'right' } },
@ -316,12 +310,6 @@
grid_fddt.canMultiSelect = false;
grid_fddt.columns = columns;
grid_fddt.init();
grid_fddt.selectedrowchanged = function (rowindex) {
var rowdata = grid_fddt.source[rowindex];
if (rowdata) {
}
}
}
@ -333,10 +321,9 @@
r.Selected = false;
for (var j in r) {
if (j === "UID")
r[j] = { DisplayValue: r["Name"] + "(" + r["ID"] + ")", Value: r[j] };
r[j] = { DisplayValue: r["Name"] + "(" + r["ID"] + ")", Value: r["Name"] + "(" + r["ID"] + ")" };
}
var fr = { Values: r };
rows.push(fr);
rows.push(r);
}
$("#contactlist").css("height", 270);
@ -345,12 +332,7 @@
var grid_dtemail;
function InitEmailGridData() {
grid_dtemail = new GridView('#contactlist');
grid_dtemail.lang = {
all: GetTextByKey("P_GRID_ALL", "(All)"),
ok: GetTextByKey("P_GRID_OK", "OK"),
reset: GetTextByKey("P_GRID_RESET", "Reset")
};
grid_dtemail = createGridView('#contactlist');
var list_columns = [
{ name: 'UID', caption: GetTextByKey("P_IPT_CONTACTNAME", "Contact Name"), valueIndex: 'UID', css: { 'width': 320, 'text-align': 'left' } },
//{ name: 'ContactType', caption: GetTextByKey("P_IPT_CONTACTTYPE", "Contact Type"), valueIndex: 'ContactType', css: { 'width': 148, 'text-align': 'left' } },
@ -376,12 +358,6 @@
grid_dtemail.canMultiSelect = false;
grid_dtemail.columns = columns;
grid_dtemail.init();
grid_dtemail.selectedrowchanged = function (rowindex) {
var rowdata = grid_dtemail.source[rowindex];
if (rowdata) {
}
}
}
$(function () {
@ -444,6 +420,7 @@
$('#button-dl').hide();
}
$('input[placeholder=Search]').attr("placeholder", GetTextByKey("P_AM_SEARCH", "Search"));
});
function GetFuelReport() {
showmaskbg(true);
@ -562,8 +539,9 @@
}
}
for (var i = 0; i < grid_dtemail.source.length; i++) {
var ct = grid_dtemail.source[i].Values;
var tempsource = grid_dtemail.source;
for (var i = 0; i < tempsource.length; i++) {
var ct = tempsource[i];
if (ct.Selected)
emailaddress.push(ct.ID);
}
@ -602,7 +580,7 @@
<tr>
<td style="width: 100px;"><%=Logo2 %></td>
<td>
<h1>Fuel Log * Shipping Paper</h1>
<h1 data-lgid="P_IPT_FUELLOGSHIPPINGPAPER">Fuel Log * Shipping Paper</h1>
</td>
</tr>
</table>
@ -678,20 +656,20 @@
</div>
<div id="mask_bg" style="display: none;"><div class="loading c-spin"></div></div>
<div id="right_popup" style="display: none; position: absolute; top: 0; right: 0; bottom: 0; background-color: white; overflow: auto;">
<div id="right_popup" style="display: none; position: absolute; top: 0; right: 0; bottom: 0; background-color: white; overflow: auto; z-index: 3;">
</div>
<iframe id="ifdiv" style="height: 1px; width: 1px; display: none;"></iframe>
<iframe id="ifdiv" style="height: 1px; width: 1px; display: none; z-index: 3;"></iframe>
<div class="dialog" id="dialog_sendemail" style="display: none; width: 320px;">
<div class="dialog" id="dialog_sendemail" style="display: none; width: 510px;">
<div class="dialog-title"><span class="title" data-lgid="P_IPT_SENDEMAIL">Send Email</span><em class="dialog-close"></em></div>
<div class="dialog-content" style="height: 378px;">
<table style="line-height: 25px;">
<div class="dialog-content">
<table style="line-height: 24px;">
<tr>
<td colspan="2" data-lgid="P_IPT_SENDTHISTO">Who do you want to send this to? Select from existing relationships or manual entry.</td>
</tr>
<tr>
<td colspan="2">
<input type="text" id="sendlocation_search" style="width: 445px; margin-left: 10px;" placeholder="Search" /></td>
<input type="text" id="sendlocation_search" style="width: 470px; margin-left: 10px;" placeholder="Search" /></td>
</tr>
<tr>
<td colspan="2">
@ -702,10 +680,10 @@
<td colspan="2" data-lgid="P_IPT_EMAILADDRESSESTIPS">Separate multiple manually entered email or text addresses with a semi-colon (;).</td>
</tr>
<tr style="height: 24px;">
<td><span data-lgid="P_IPT_OTHEREMAILADDRESS">Other Email Address</span>
<td style="text-align:right;padding-right:5px;"><span data-lgid="P_IPT_OTHEREMAILADDRESS">Other Email Address</span>
</td>
<td>
<input type="text" id="sendlocation_otheremailaddress" style="width: 312px;" autocomplete="off" /></td>
<input type="text" id="sendlocation_otheremailaddress" style="width: 350px;" autocomplete="off" /></td>
</tr>
</table>
</div>