diff --git a/MESWebSite/HttpHandlers/ZP_MK_PlanHandler.ashx.cs b/MESWebSite/HttpHandlers/ZP_MK_PlanHandler.ashx.cs
index 2ddeb73..75d0df8 100644
--- a/MESWebSite/HttpHandlers/ZP_MK_PlanHandler.ashx.cs
+++ b/MESWebSite/HttpHandlers/ZP_MK_PlanHandler.ashx.cs
@@ -117,7 +117,7 @@ namespace MESWebSite.HttpHandlers
tb_ZP_MK_Plan zpp = new tb_ZP_MK_Plan
{
-
+ ID = int.Parse(id),
PartNo = partNo,
OrderDate = orderDate,
OrderCount = orderCount,
diff --git a/MESWebSite/Manage/ZP_MK_Plan.aspx b/MESWebSite/Manage/ZP_MK_Plan.aspx
index 087cff8..2d34d91 100644
--- a/MESWebSite/Manage/ZP_MK_Plan.aspx
+++ b/MESWebSite/Manage/ZP_MK_Plan.aspx
@@ -61,7 +61,7 @@
零件号:
|
- 装配日期:
+ | 装配时间:
|
@@ -108,7 +108,7 @@
|
@@ -129,7 +129,9 @@
-
+ *
|
@@ -139,7 +141,9 @@
-
+ *
|
@@ -155,7 +159,7 @@
- 装配日期:
+ 装配时间:
|
@@ -188,6 +192,7 @@
});
// 下拉框加载
+ reloadline_station();
//reload_station_no('#station_no');
reload_part_no('#part_no');
//新增按钮点击
@@ -308,14 +313,12 @@
function SaveInfo(isEdit) {
var ID = isEdit == true ? PrimaryID : 0;
- var PartNo = $('#part_no').combo('getValue');
- //var StationID = $('#station_no').combo('getValue');
- var OrderDate = $('#OrderDate').datebox('getValue');
- //var IsOneMore = checkboxValue($('#IsOneMore'));
+ var PartNo = $('#part_no').combo('getValue');
+ var OrderDate = $('#OrderDate').datebox('getValue');
var OrderCount = $('#OrderCount').val();
var OrderName = $('#OrderName').val();
- var Line = $('#Line').val();
- var Station = $('#Station').val();
+ var Line = $('#line_id').combo('getText');
+ var Station = $('#station_id').combo('getText');
if (PartNo == "") {
$.messager.alert('提示', '零件不能为空,请重新输入', 'warning');
@@ -413,8 +416,8 @@
//toggleChecked('#IsOneMore', row.IsOneMore);
$('#OrderCount').val(row.OrderCount);
$('#OrderName').val(row.OrderName);
- $('#Line').val(row.Line);
- $('#Station').val(row.Station);
+ $('#line_id').combobox('select', row.Line);
+ $('#station_id').combobox('select', row.Station);
var pa = /.*\((.*)\)/;
var unixtime = row.OrderDate.match(pa)[1].substring(0, 10);
$('#OrderDate').datetimebox('setValue', getTime(unixtime).substring(0, 19));
@@ -467,8 +470,8 @@
$('#OrderDate').datebox('setValue', '');
$('#OrderCount').val('');
$('#OrderName').val('');
- $('#Line').val('');
- $('#Station').val('');
+ $('#line_id').combo('clear');
+ $('#station_id').combo('clear');
}
function toggleChecked(id, checked) {
@@ -482,7 +485,7 @@
* 加载产品下拉信息
**/
function reload_part_no(ctl) {
- base_reload_combobox(ctl, '/HttpHandlers/ProductHandler.ashx?method=GetComboboxProduct4');
+ base_reload_combobox(ctl, '/HttpHandlers/ProductHandler.ashx?method=QueryForCombobox&ProductTypeNo=6000');
}
function reload_station_no(ctl) {
@@ -507,6 +510,27 @@
document.body.appendChild(temp_form);
temp_form.submit();
}
+
+ function reloadline_station() {
+
+ $('#line_id').combobox({
+ url: '/HttpHandlers/LineHandler.ashx?method=QueryForCombobox',
+ onLoadSuccess: function () {
+ var val = $(this).combobox('getData');
+ $(this).combobox('select', val[0].LineID);
+ },
+ onSelect: function (row) {
+ $('#station_id').combobox({
+ url: '/HttpHandlers/StationHandler.ashx?method=QueryForComboboxByLineIDNew&&LineID=' + row.LineID + '',
+ onLoadSuccess: function () {
+ //var val = $(this).combobox('getData');
+ //$(this).combobox('select', val[0].ID);
+ },
+
+ });
+ }
+ });
+ }
|