|
function stack_runnig_Btn_StartClick(username) {
|
|
var line = document.getElementById("stack_runnig_toline").value;
|
var column = document.getElementById("stack_runnig_tocolumn").value;
|
var layer = document.getElementById("stack_runnig_tolayer").value;
|
|
if (line == "" || line == null) {
|
ShowMessage("请输入巷道!");
|
return;
|
}
|
|
$.ajax({
|
type: "post",
|
url: "/AJAX/StackOperation.ashx",
|
data: { action: "RunningProcess", username: username, toline: line, tocolumn: column, tolayer: layer },
|
async: false,
|
success: function (msg) {
|
if (msg.length != "") {
|
ShowMessage("下发运行失败:" + msg);
|
}
|
else {
|
ShowMessage("下发运行成功!");
|
}
|
}
|
});
|
}
|
|
function stack_release_Btn_StartClick(username) {
|
|
var line = document.getElementById("stack_release_toline").value;
|
var column = document.getElementById("stack_release_tocolumn").value;
|
var layer = document.getElementById("stack_release_tolayer").value;
|
var station = document.getElementById("stack_release_tostation").value;
|
|
|
$.ajax({
|
type: "post",
|
url: "/AJAX/StackOperation.ashx",
|
data: { action: "ReleaseProcess", username: username, toline: line, tocolumn: column, tolayer: layer, tostation: station },
|
async: false,
|
success: function (msg) {
|
if (msg.length != "") {
|
ShowMessage("下发放货失败:" + msg);
|
}
|
else {
|
ShowMessage("下发放货成功!");
|
}
|
}
|
});
|
}
|
|
function stack_pickup_Btn_StartClick(username) {
|
|
var line = document.getElementById("stack_pickup_fromline").value;
|
var column = document.getElementById("stack_pickup_fromcolumn").value;
|
var layer = document.getElementById("stack_pickup_fromlayer").value;
|
var station = document.getElementById("stack_pickup_fromstation").value;
|
|
|
$.ajax({
|
type: "post",
|
url: "/AJAX/StackOperation.ashx",
|
data: { action: "PickUpProcess", fromline: line, fromcolumn: column, fromlayer: layer, fromstation: station, username: username },
|
async: false,
|
success: function (msg) {
|
if (msg.length != "") {
|
ShowMessage("下发取货失败:" + msg);
|
}
|
else {
|
ShowMessage("下发取货成功!");
|
}
|
}
|
});
|
}
|
|
|
function stack_pickupandrealse_Btn_StartClick(username) {
|
|
var toline = document.getElementById("stack_pickupandrealse_toline").value;
|
var tocolumn = document.getElementById("stack_pickupandrealse_tocolumn").value;
|
var tolayer = document.getElementById("stack_pickupandrealse_tolayer").value;
|
var tostation = document.getElementById("stack_pickupandrealse_tostation").value;
|
|
var fromline = document.getElementById("stack_pickupandrealse_fromline").value;
|
var fromcolumn = document.getElementById("stack_pickupandrealse_fromcolumn").value;
|
var fromlayer = document.getElementById("stack_pickupandrealse_fromlayer").value;
|
var fromstation = document.getElementById("stack_pickupandrealse_fromstation").value;
|
|
|
$.ajax({
|
type: "post",
|
url: "/AJAX/StackOperation.ashx",
|
data: { action: "PickUpAndReleaseProcess", toline: toline, tocolumn: tocolumn, tolayer: tolayer, tostation: tostation, fromline: fromline, fromcolumn: fromcolumn, fromlayer: fromlayer, fromstation: fromstation, username: username },
|
async: false,
|
success: function (msg) {
|
if (msg.length != "") {
|
ShowMessage("下发取放货失败:" + msg);
|
}
|
else {
|
ShowMessage("下发取放货成功!");
|
}
|
}
|
});
|
}
|
|
|
|
function stackstartingClick(username) {
|
|
$.ajax({
|
type: "post",
|
url: "/AJAX/StackOperation.ashx",
|
data: { action: "StartingProcess", username: username },
|
async: false,
|
success: function (msg) {
|
if (msg.length != "") {
|
ShowMessage("联机启动失败:" + msg);
|
}
|
else {
|
ShowMessage("联机启动成功!");
|
}
|
}
|
});
|
}
|
|
function stackcancelClick(username) {
|
|
$.ajax({
|
type: "post",
|
url: "/AJAX/StackOperation.ashx",
|
data: { action: "CancelProcess", username: username },
|
async: false,
|
success: function (msg) {
|
if (msg.length != "") {
|
ShowMessage("任务取消失败:" + msg);
|
}
|
else {
|
ShowMessage("任务取消成功!");
|
}
|
}
|
});
|
}
|
|
function stackresetClick(username) {
|
|
$.ajax({
|
type: "post",
|
url: "/AJAX/StackOperation.ashx",
|
data: { action: "ResetProcess", username: username },
|
async: false,
|
success: function (msg) {
|
if (msg.length != "") {
|
ShowMessage("故障复位失败:" + msg);
|
}
|
else {
|
ShowMessage("故障复位成功!");
|
}
|
}
|
});
|
}
|
|
|
function ShowMessage(msg) {
|
alertMsg({ style: 'info', text: '' + msg, title: 'Tip', callback: function () { } }).init()
|
}
|