sync
This commit is contained in:
@ -7,40 +7,6 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.edit-content table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.edit-content table td.label {
|
||||
width: 200px;
|
||||
text-align: right;
|
||||
padding-right: 10px;
|
||||
line-height: 24px;
|
||||
height: 24px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.edit-content table td input,
|
||||
.edit-content table td textarea {
|
||||
border: 1px solid #a9a9a9;
|
||||
width: 320px;
|
||||
height: 18px;
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
.edit-content table td input[type="checkbox"] {
|
||||
border: none;
|
||||
height: 13px;
|
||||
}
|
||||
|
||||
.edit-content table td textarea {
|
||||
height: 150px;
|
||||
resize: none;
|
||||
width: 600px;
|
||||
/*max-width: 200px;*/
|
||||
}
|
||||
|
||||
.a {
|
||||
text-decoration: none;
|
||||
color: #2140fb;
|
||||
@ -73,15 +39,6 @@
|
||||
margin-left: 16px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.div_filter .dropdown {
|
||||
width: 322px;
|
||||
margin: 2px 0 0 0px;
|
||||
}
|
||||
|
||||
.div_panel {
|
||||
min-width: 322px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script src="<%=GetFileUrlWithVersion("../js/controls.js")%>" type="text/javascript"></script>
|
||||
@ -89,8 +46,6 @@
|
||||
var IsDealer = <%=IsDealer ?"true":"false"%>;
|
||||
var contractorid;
|
||||
var machinetypes;
|
||||
var editmultiselect_type;
|
||||
var assettypeparam;
|
||||
|
||||
jobsitelimitquery = function (method, param, callback, error, nolog) {
|
||||
_network.request("JobSite/AddJobsiteLimit.aspx", -1, method, param, callback, error || function (e) {
|
||||
@ -123,8 +78,7 @@
|
||||
$('#dialog_endtimeminute').val('00');
|
||||
$('#dialog_mintrucks').val('');
|
||||
$('#dialog_maxtrucks').val('');
|
||||
if (editmultiselect_type)
|
||||
editmultiselect_type.setValues([]);
|
||||
$("#dialog_assettype").dropdownVals([]);
|
||||
$('#dialog_notes').val('');
|
||||
}
|
||||
|
||||
@ -140,9 +94,9 @@
|
||||
$('#dialog_mintrucks').val(jobsitelimit.MinTrucks);
|
||||
$('#dialog_maxtrucks').val(jobsitelimit.MaxTrucks);
|
||||
var types = [];
|
||||
types = jobsitelimit.AssetTypes.split(',');
|
||||
if (assettypeparam)
|
||||
editmultiselect_type.setValues(types);
|
||||
if (jobsitelimit.AssetTypes)
|
||||
types = jobsitelimit.AssetTypes.split(',');
|
||||
$("#dialog_assettype").dropdownVals(types);
|
||||
$('#dialog_notes').val(jobsitelimit.Notes);
|
||||
}
|
||||
|
||||
@ -152,9 +106,7 @@
|
||||
var start_minute = $('#dialog_starttimeminute').val();
|
||||
var end_hour = $('#dialog_endtimehour').val();
|
||||
var end_minute = $('#dialog_endtimeminute').val();
|
||||
var typeary = [];
|
||||
if (assettypeparam)
|
||||
typeary = assettypeparam.selectedvalue;
|
||||
var typeary = $("#dialog_assettype").dropdownVals();
|
||||
var assettypes = typeary.join(',');
|
||||
var item = {
|
||||
'JobSiteID': $('#dialog_jobsite').val(),
|
||||
@ -204,7 +156,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
showloading(false);
|
||||
showloading(false);
|
||||
var param = JSON.stringify(item);
|
||||
param = htmlencode(param);
|
||||
jobsitelimitquery("SaveJobsiteLimit", contractorid + String.fromCharCode(170) + param, function (data) {
|
||||
@ -247,13 +199,7 @@
|
||||
showAlert(data, GetTextByKey("P_M3_ERROR", 'Error'));
|
||||
return;
|
||||
}
|
||||
assettypeparam = {
|
||||
items: data,
|
||||
selectedvalue: [],
|
||||
allowall: false
|
||||
};
|
||||
editmultiselect_type = editmultiselect(assettypeparam);
|
||||
$('#dialog_assettype').append(editmultiselect_type);
|
||||
$("#dialog_assettype").dropdownSource(data);
|
||||
}, function (err) {
|
||||
});
|
||||
}
|
||||
@ -309,10 +255,19 @@
|
||||
}
|
||||
|
||||
$(function () {
|
||||
$("#dialog_assettype").css('width', 324).dropdown([], {
|
||||
search: true,
|
||||
multiselect: true,
|
||||
allowselectall: false,
|
||||
textKey: 'Value',
|
||||
valueKey: 'Key'
|
||||
});
|
||||
|
||||
GetMachineTypes();
|
||||
GetActiveJobsites();
|
||||
init();
|
||||
initTime();
|
||||
|
||||
function resizeContent() {
|
||||
$('#divcontent').css('height', $(window).height() - $('#divcontent').offset().top - 4);
|
||||
}
|
||||
@ -324,7 +279,9 @@
|
||||
</script>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
|
||||
<div id="mask_bg" style="display: none;"><div class="loading c-spin"></div></div>
|
||||
<div id="mask_bg" style="display: none;">
|
||||
<div class="loading c-spin"></div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="function_title">
|
||||
<span class="sbutton iconsave" onclick="OnSave(0);" data-lgid="P_M3_SAVE">Save</span>
|
||||
@ -342,7 +299,7 @@
|
||||
<tr>
|
||||
<td class="label" data-lgid="P_M3_JOBSITE_COLON">JobSite:</td>
|
||||
<td>
|
||||
<select id="dialog_jobsite" tabindex="1" style="width: 322px;"></select></td>
|
||||
<select id="dialog_jobsite" tabindex="1" style="width: 322px; height: 22px;"></select></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="label"></td>
|
||||
|
Reference in New Issue
Block a user