分支自 SuZhouGuanHong/TaiYuanTaiZhong

dengjunjie
2024-01-16 a0f3b5aa29fa51ac9d61b1cf56a5b34624a780cd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
 
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()
}