chore: 初始化东安动力MES采集程序
This commit is contained in:
@@ -0,0 +1,232 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
// /*该js文件用于处理"操作指南"业务逻辑处理*/
|
||||
|
||||
// bool IsShow = false;
|
||||
// //是否显示绿脸_全局变量
|
||||
// bool IsShowGreenSmile = false;
|
||||
// //是否显示红脸_全局变量
|
||||
// bool IsShowRedSmile = false;
|
||||
// //显示绿色笑脸
|
||||
|
||||
// //显示红色笑脸
|
||||
|
||||
|
||||
// //显示绿色笑脸
|
||||
// void ShowGreenSmile_match()
|
||||
// {
|
||||
// $('#RedAndGreenSmile_match').attr("src", "");
|
||||
// if (IsShowGreenSmile_match == true)
|
||||
// {
|
||||
// $('#RedAndGreenSmile_match').attr("src", "../images/img_MatchSuccess.png");
|
||||
// $('#RedAndGreenDiv_match').css({
|
||||
// "display": "block"
|
||||
// });
|
||||
// IsShowGreenSmile_match = false;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $('#RedAndGreenDiv_match').css({
|
||||
// "display": "none"
|
||||
// }); //设置不显示
|
||||
// }
|
||||
// }
|
||||
// //显示红色笑脸
|
||||
// void ShowRedSmile_match()
|
||||
// {
|
||||
// $('#RedAndGreenSmile_match').attr("src", "");
|
||||
// if (IsShowRedSmile_match == true)
|
||||
// {
|
||||
// $('#RedAndGreenSmile_match').attr("src", "../images/img_MatchFail.png");
|
||||
// $('#RedAndGreenDiv_match').css({
|
||||
// "display": "block"
|
||||
// }); //设置显示
|
||||
// IsShowRedSmile_match = false;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $('#RedAndGreenDiv_match').css({
|
||||
// "display": "none"
|
||||
// }); //设置不显示
|
||||
// }
|
||||
// }
|
||||
|
||||
// //初始化工艺卡
|
||||
// void initoperationcard()
|
||||
// {
|
||||
// var cardwidth = $("#div_tab_operationcard").width();
|
||||
// var cardheight = $("#div_tab_operationcard").height();
|
||||
// $("#pdf_operationcard").media({ width: cardwidth, height: cardheight });
|
||||
// }
|
||||
|
||||
// //初始化操作指南
|
||||
// void initProcessData()
|
||||
// {
|
||||
// var serialNumWidth = $("#div_tab_assembly_craft").width() * 0.1;
|
||||
// var processWidth = $("#div_tab_assembly_craft").width() * 0.4;
|
||||
// var technologyRequestWidth = $("#div_tab_assembly_craft").width() * 0.3;
|
||||
// var processPropetyWidth = $("#div_tab_assembly_craft").width() * 0.2;
|
||||
// $('#datagrid_processinfo').datagrid({
|
||||
// url: '',
|
||||
// title: '',
|
||||
// sortOrder: 'desc', //升序降序 //2017-01-03
|
||||
// idField: 'JSON_工步号',
|
||||
// fit: true,
|
||||
// fitColumns: true,
|
||||
// rownumbers: true,
|
||||
// columns:
|
||||
// [[
|
||||
// { title: "序号", field: 'JSON_工步号', width: 70, align: 'left', hidden: true },
|
||||
// { title: '工序内容', field: 'JSON_操作内容', width: 264, align: 'left', resizable: false },
|
||||
// { title: '工步属性', field: 'JSON_工步属性名称', width: 180, align: 'left', resizable: false }
|
||||
// ]],
|
||||
// nowrap: false,
|
||||
// fit: true,
|
||||
// singleSelect: true,
|
||||
// rowStyler: function(rowIndex, rowData) {
|
||||
// if (rowIndex % 2 == 0)
|
||||
// {
|
||||
// return 'background-color:#D0D8E8; height:45px';
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return 'background-color:#E9EDF4; height:45px';
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
// //初始化物料(物料拉动模块)
|
||||
// void initAssembleDataMaterrial()
|
||||
// {
|
||||
// var serialNumWidth = $("#div_tab_assembly_material").width() * 0.1;
|
||||
// var materialNumWidth = $("#div_tab_assembly_material").width() * 0.2;
|
||||
// var materialNameWidth = $("#div_tab_assembly_material").width() * 0.2;
|
||||
// var demandCountWidth = $("#div_tab_assembly_material").width() * 0.1;
|
||||
// var reserveCountWidth = $("#div_tab_assembly_material").width() * 0.2;
|
||||
// var batchNumWidth = $("#div_tab_assembly_material").width() * 0.2;
|
||||
// $('#datagridview_div_tab_distributematerrial').datagrid({
|
||||
// url: '',
|
||||
// title: '',
|
||||
// idField: 'JSON_标号',
|
||||
// columns:
|
||||
// [[
|
||||
// { title: '序号', field: 'JSON_标号', width: 60, align: 'left', hidden: true },
|
||||
// { title: '零件图号', field: 'JSON_零件图号', width: 150, align: 'left', resizable: false },
|
||||
// { title: '零件名称', field: 'JSON_零件名称', width: 150, align: 'left', resizable: false },
|
||||
// { title: '零件数量', field: 'JSON_零件数量', width: 60, align: 'left', resizable: false },
|
||||
// { title: '库存数量', field: 'JSON_库存数量', width: 60, align: 'left', hidden: false },
|
||||
// { title: '卡片条码', field: 'JSON_卡片条码', width: 150, align: 'left', hidden: false },
|
||||
// ]],
|
||||
// nowrap: false,
|
||||
// fit: true,fitColumns: true,
|
||||
// singleSelect: true,
|
||||
// rownumbers: true
|
||||
// });
|
||||
// }
|
||||
|
||||
//显示操作指南
|
||||
string ReceivedSignal_ProcessList(string opName)
|
||||
{
|
||||
|
||||
//url: '../submit/OpName.ashx?type=ProcessList&value=' + opName,
|
||||
var responseStr = _MesWebFun_base.ProcessRequest("ProcessList", opName);
|
||||
return responseStr;
|
||||
|
||||
}
|
||||
|
||||
//显示物料
|
||||
string ReceivedSignal_MaterialList(string opName)
|
||||
{
|
||||
// initAssembleData();
|
||||
// url: '../submit/OpName.ashx?type=MaterialList&value=' + opName,
|
||||
var responseStr = _MesWebFun_base.ProcessRequest("MaterialList", opName);
|
||||
return responseStr;
|
||||
|
||||
}
|
||||
|
||||
//显示操作图片√
|
||||
string ReceivedSignal_PictureShow(string opName)
|
||||
{
|
||||
//url: '../submit/OpName.ashx?type=PictureShow&value=' + opName,
|
||||
var responseStr = _MesWebFun_base.ProcessRequest("PictureShow", opName);
|
||||
return responseStr;
|
||||
|
||||
}
|
||||
|
||||
// void pdf_operationcardshowORhidden(title)
|
||||
// {
|
||||
// $("#div_tab_operationcard").toggle();
|
||||
// var tab = $('#div_tab').tabs('getSelected');
|
||||
// var launageType = $("#Hidden_language").val();
|
||||
// if (launageType == 1)
|
||||
// {
|
||||
// if (tab.title == "操作指南")
|
||||
// {
|
||||
// $('#div_tab').tabs('update', {
|
||||
// tab: tab,
|
||||
// options:
|
||||
// {
|
||||
// title: "工艺卡" // 新tab的title
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $('#div_tab').tabs('update', {
|
||||
// tab: tab,
|
||||
// options:
|
||||
// {
|
||||
// title: "操作指南" // 新tab的title
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// if (launageType == 2)
|
||||
// {
|
||||
// if (tab.title == "OperageGuid")
|
||||
// {
|
||||
// $('#div_tab').tabs('update', {
|
||||
// tab: tab,
|
||||
// options:
|
||||
// {
|
||||
// title: "ProcessCard" // 新tab的title
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $('#div_tab').tabs('update', {
|
||||
// tab: tab,
|
||||
// options:
|
||||
// {
|
||||
// title: "OperageGuid" // 新tab的title
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
////using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//////using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
////using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
|
||||
|
||||
/*该js文件用于处理显示"条码"业务逻辑处理*/
|
||||
|
||||
//MES主界面_扫描条码_点击扫描条码事件
|
||||
void scanbarcodesubmit()
|
||||
{
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// var value = $("#tbx_scanbarcode").val();
|
||||
// var sendmessage = "MSG,Barcode|" + opName + "|" + value;
|
||||
// sendMessage(sendmessage);
|
||||
//$.messager.show({
|
||||
// title: '提示',
|
||||
// msg: '条码扫描成功!',
|
||||
// timeout: 2000,
|
||||
// showType: 'slide'
|
||||
//});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,175 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
// /*该js文件用于处理显示"工件信息"业务逻辑处理*/
|
||||
// string isOpenMaterialPush = "0"; //是否启用物料拉动
|
||||
|
||||
// //显示托盘信息
|
||||
// void ShowPalletInfo(string m_Value)
|
||||
// {
|
||||
// var s_valueArrays = m_Value.Split('&');
|
||||
// if (s_valueArrays.Length > 0)
|
||||
// {
|
||||
// var s_palletinfo = s_valueArrays[0]; //托盘状态
|
||||
// switch (s_palletinfo)
|
||||
// {
|
||||
// case "0": //托盘错误
|
||||
// //$('#txt_status').val('托盘错误');
|
||||
// //$('#txt_status').css({ 'background-color': 'red' });
|
||||
// break;
|
||||
// case "1": //合格
|
||||
// //$('#txt_status').val('合格');
|
||||
// //$('#txt_status').css({ 'background-color': 'green' });
|
||||
// break;
|
||||
// case "2": //不合格
|
||||
// //$('#txt_status').val('不合格');
|
||||
// //$('#txt_status').css({ 'background-color': 'red' });
|
||||
// break;
|
||||
// case "3": //返修
|
||||
// //$('#txt_status').val('返修');
|
||||
// //$('#txt_status').css({ 'background-color': 'yellow' });
|
||||
// break;
|
||||
// case "4": //空托盘
|
||||
// //$('#txt_status').val('空托盘');
|
||||
// //$('#txt_status').css({ 'background-color': 'white' });
|
||||
// break;
|
||||
// default:
|
||||
// //$('#txt_status').val('系统错误');
|
||||
// //$('#txt_status').css({ 'background-color': 'red' });
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// //显示分线托盘信息
|
||||
// void ShowPalletInfo_Subline(m_Value)
|
||||
// { //2017-1-3
|
||||
// var s_valueArrays = m_Value.split('&');
|
||||
// if (s_valueArrays.length > 0)
|
||||
// {
|
||||
// var s_palletinfo = s_valueArrays[0]; //托盘状态
|
||||
// switch (s_palletinfo)
|
||||
// {
|
||||
// case "0": //托盘错误
|
||||
// $('#txt_status_subline').val('托盘错误');
|
||||
// $('#txt_status_subline').css({ 'background-color': 'red' });
|
||||
// document.getElementById("img_ForceMatch_SubLine").src = "../images/red.png";
|
||||
// break;
|
||||
// case "1": //合格
|
||||
// $('#txt_status_subline').val('合格');
|
||||
// $('#txt_status_subline').css({ 'background-color': 'green' });
|
||||
// document.getElementById("img_ForceMatch_SubLine").src = "../images/green.png";
|
||||
// break;
|
||||
// case "2": //不合格
|
||||
// $('#txt_status_subline').val('不合格');
|
||||
// $('#txt_status_subline').css({ 'background-color': 'red' });
|
||||
// document.getElementById("img_ForceMatch_SubLine").src = "../images/red.png";
|
||||
// break;
|
||||
// case "3": //返修
|
||||
// $('#txt_status_subline').val('返修');
|
||||
// $('#txt_status_subline').css({ 'background-color': 'yellow' });
|
||||
// document.getElementById("img_ForceMatch_SubLine").src = "../images/green.png";
|
||||
// break;
|
||||
// case "4": //空托盘
|
||||
// $('#txt_status_subline').val('空托盘');
|
||||
// $('#txt_status_subline').css({ 'background-color': 'white' });
|
||||
// document.getElementById("img_ForceMatch_SubLine").src = "../images/red.png";
|
||||
// break;
|
||||
// default:
|
||||
// $('#txt_status_subline').val('系统错误');
|
||||
// $('#txt_status_subline').css({ 'background-color': 'red' });
|
||||
// document.getElementById("img_ForceMatch_SubLine").src = "../images/red.png";
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
//显示托盘信息√
|
||||
string ReceivedSignal_MobySelect(string opName)
|
||||
{
|
||||
//url: '../submit/OpName.ashx?type=MobySelect&value=' + opName + '',
|
||||
var responseStr = _MesWebFun_base.ProcessRequest("MobySelect", opName);
|
||||
return responseStr;
|
||||
}
|
||||
|
||||
// //初始化时,显示当前工位、工件信息
|
||||
// void Init_ReceivedSignal_MobySelect()
|
||||
// {
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// $.ajax({
|
||||
// type: "POST",
|
||||
// url: '../submit/OpName.ashx?type=ShowOpNameMessage&value=' + opName + '',
|
||||
// success: function(data) {
|
||||
// if (data != "" && data != null)
|
||||
// {
|
||||
// var dataArrays = data.split('&'); //返回多参数,拆分
|
||||
// var craftname = dataArrays[0]; //工序名称
|
||||
// var operator = dataArrays[1]; //操作者工号
|
||||
// isOpenMaterialPush = dataArrays[2]; //是否启动物料拉动
|
||||
// $("#tbx_opnamediscription").val(craftname);
|
||||
// $("#tbt_operator").val(operator);
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// ReceivedSignal_MobySelect();//显示工件信息
|
||||
// }
|
||||
// //显示分线托盘信息√
|
||||
// void ReceivedSignal_MobySelect_Subline(m_Value)
|
||||
// {
|
||||
// var opName = m_Value;
|
||||
// $.ajax({
|
||||
// type: "POST",
|
||||
// url: '../submit/OpName.ashx?type=MobySelect&value=' + opName + '',
|
||||
// success: function(data) {
|
||||
// if (data != "" && data != null)
|
||||
// {
|
||||
// var dataArrays = data.split('&'); //返回多参数,拆分
|
||||
// var orderNum = dataArrays[0];
|
||||
// var EngineTypeID = dataArrays[1];
|
||||
// var EngineType = dataArrays[2];
|
||||
// var EngineID = dataArrays[3];
|
||||
// var PartPallet_Code = dataArrays[4];
|
||||
// var IsrepairBarcode = dataArrays[5];
|
||||
// var repairBarcode = dataArrays[6];
|
||||
// $("#txt_enginetype_subline").val(EngineType);
|
||||
// $("#txt_num_subline").val(EngineID);
|
||||
// $("#txt_num_subline_Pallet").val(PartPallet_Code);
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
//namespace MesWebFun_base
|
||||
//{
|
||||
// public partial class MisWebInterface
|
||||
// {
|
||||
|
||||
// /*该js文件用于处理显示"质量数据"业务逻辑处理*/
|
||||
|
||||
|
||||
// //初始化质量状态数据--主界面
|
||||
// void initQualityData()
|
||||
// {
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// var serialnumWidth = $("#div_quality").width() * 0.2;
|
||||
// var twistWidth = $("#div_quality").width() * 0.37;
|
||||
// var cornerWidth = $("#div_quality").width() * 0.37;
|
||||
// datagrid_Quality = $('#datagrid_quality').datagrid({
|
||||
// url: '',
|
||||
// title: '',
|
||||
// sortName: '', //按哪个字段排序,将把这个提交给服务器
|
||||
// sortOrder: 'desc', //升序降序
|
||||
// idField: '',
|
||||
// //columns: [[
|
||||
// // { title: "名称", field: 'JSON_名称', width: 60, align: 'center' },
|
||||
// // { title: '项目1', field: 'JSON_测量项目1', width: 50, align: 'center' },
|
||||
// // { title: '项目2', field: 'JSON_测量项目2', width: 50, align: 'center' },
|
||||
// // { title: '合格标志', field: 'JSON_合格标志', align: 'center', hidden: true }
|
||||
// // ]],
|
||||
// nowrap: false,
|
||||
// fit: true,fitColumns: true,
|
||||
// singleSelect: true,
|
||||
// rowStyler: function(index, row) {
|
||||
// if (row.JSON_合格标志 == "1")
|
||||
// {
|
||||
// return 'background-color:green';
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
|
||||
// return 'background-color:red';
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// }
|
||||
//}
|
||||
@@ -0,0 +1,187 @@
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
//namespace MesWebFun_base
|
||||
//{
|
||||
// public partial class MisWebInterface
|
||||
// {
|
||||
|
||||
|
||||
|
||||
// /*该js文件用于处理显示"当前时间"业务逻辑处理*/
|
||||
|
||||
// //js实时显示日期
|
||||
// void showtime_data()
|
||||
// {
|
||||
// var today, hour, second, minute, year, month, date;
|
||||
// var strDate;
|
||||
// today = new Date();
|
||||
// var n_day = today.getDay();
|
||||
// switch (n_day)
|
||||
// {
|
||||
// case 0:
|
||||
// {
|
||||
// strDate = "星期日"
|
||||
// }
|
||||
// break;
|
||||
// case 1:
|
||||
// {
|
||||
// strDate = "星期一"
|
||||
// }
|
||||
// break;
|
||||
// case 2:
|
||||
// {
|
||||
// strDate = "星期二"
|
||||
// }
|
||||
// break;
|
||||
// case 3:
|
||||
// {
|
||||
// strDate = "星期三"
|
||||
// }
|
||||
// break;
|
||||
// case 4:
|
||||
// {
|
||||
// strDate = "星期四"
|
||||
// }
|
||||
// break;
|
||||
// case 5:
|
||||
// {
|
||||
// strDate = "星期五"
|
||||
// }
|
||||
// break;
|
||||
// case 6:
|
||||
// {
|
||||
// strDate = "星期六"
|
||||
// }
|
||||
// break;
|
||||
// case 7:
|
||||
// {
|
||||
// strDate = "星期日"
|
||||
// }
|
||||
// break;
|
||||
// }
|
||||
// year = today.getFullYear();
|
||||
// month = today.getMonth() + 1;
|
||||
// date = today.getDate();
|
||||
// hour = today.getHours();
|
||||
// minute = today.getMinutes();
|
||||
// second = today.getSeconds();
|
||||
|
||||
// if (month < 10)
|
||||
// {
|
||||
// month_New = "0" + month;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// month_New = month;
|
||||
// }
|
||||
|
||||
// if (date < 10)
|
||||
// {
|
||||
// date_New = "0" + date;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// date_New = date;
|
||||
// }
|
||||
// document.getElementById('time').innerHTML = year + "-" + month_New + "-" + date_New; //显示时间
|
||||
// setTimeout("showtime_data();", 1000000); //设定函数自动执行时间为 1000 ms(1 s)
|
||||
// }
|
||||
|
||||
// //实时显示时间
|
||||
// void showtime_time()
|
||||
// {
|
||||
// var today, hour, second, minute, year, month, date;
|
||||
// var strDate;
|
||||
// today = new Date();
|
||||
// var n_day = today.getDay();
|
||||
// switch (n_day)
|
||||
// {
|
||||
// case 0:
|
||||
// {
|
||||
// strDate = "星期日"
|
||||
// }
|
||||
// break;
|
||||
// case 1:
|
||||
// {
|
||||
// strDate = "星期一"
|
||||
// }
|
||||
// break;
|
||||
// case 2:
|
||||
// {
|
||||
// strDate = "星期二"
|
||||
// }
|
||||
// break;
|
||||
// case 3:
|
||||
// {
|
||||
// strDate = "星期三"
|
||||
// }
|
||||
// break;
|
||||
// case 4:
|
||||
// {
|
||||
// strDate = "星期四"
|
||||
// }
|
||||
// break;
|
||||
// case 5:
|
||||
// {
|
||||
// strDate = "星期五"
|
||||
// }
|
||||
// break;
|
||||
// case 6:
|
||||
// {
|
||||
// strDate = "星期六"
|
||||
// }
|
||||
// break;
|
||||
// case 7:
|
||||
// {
|
||||
// strDate = "星期日"
|
||||
// }
|
||||
// break;
|
||||
// }
|
||||
// year = today.getFullYear();
|
||||
// month = today.getMonth() + 1;
|
||||
// date = today.getDate();
|
||||
// hour = today.getHours();
|
||||
// if (hour < 10)
|
||||
// {
|
||||
// hour_New = "0" + hour;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// hour_New = hour;
|
||||
// }
|
||||
// minute = today.getMinutes();
|
||||
// if (minute < 10)
|
||||
// {
|
||||
// minute_New = "0" + minute;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// minute_New = minute;
|
||||
// }
|
||||
// second = today.getSeconds();
|
||||
// if (second < 10)
|
||||
// {
|
||||
// second_New = "0" + second;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// second_New = second;
|
||||
// }
|
||||
// document.getElementById('Span_time').innerHTML = hour_New + ":" + minute_New + ":" + second_New + "  " + strDate; ; //显示时间
|
||||
// setTimeout("showtime_time();", 1000); //设定函数自动执行时间为 1000 ms(1 s)
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// }
|
||||
//}
|
||||
@@ -0,0 +1,327 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
// /*该js文件用于处理"详细具体指导(拧紧、检测、称重等业务指导)"业务逻辑处理*/
|
||||
|
||||
// ////////////////////////////////////////////////////////4
|
||||
|
||||
// var jsonArrayStatic; //全局json
|
||||
// var CircleDivList; //全局记录包含image的div
|
||||
// var CircleDivListCount = 0;
|
||||
// var CircleImageList; //全局记录全部的拧紧或者压装小圆圈图片
|
||||
// var CircleImageListCount = 0;
|
||||
|
||||
|
||||
//动态创建拧紧指导div
|
||||
string InitShowGuidCircle(string opName)
|
||||
{
|
||||
// url: '../submit/OpName.ashx?type=ShaftPosition&value=' + opName,
|
||||
var responseStr = _MesWebFun_base.ProcessRequest("ShaftPosition", opName);
|
||||
return responseStr;
|
||||
}
|
||||
// //创建div
|
||||
// void SetUpCircleDiv(data)
|
||||
// {
|
||||
// CircleDivList = { };
|
||||
// CircleImageList = { };
|
||||
// CircleImageListCount = 0;
|
||||
// CircleImageListCount = 0;
|
||||
|
||||
// var CircleImage = "<div></div>"; //默认
|
||||
// var CricleColor = "ni_png_0910"; //默认
|
||||
// var CricleColor_1 = "ni_png_0910"; //拧紧类型
|
||||
// var CricleColor_2 = "bluerectangle"; //其它类型
|
||||
// var height = $(window).height();
|
||||
// var width = $(window).width();
|
||||
// if (data != "" && data != null)
|
||||
// {
|
||||
|
||||
// for (var i = 0; i < data.length; i++)
|
||||
// {
|
||||
// var divImgWidth = $("#div_tab_assembly_craft_main").width();
|
||||
// var CircleDivID = "CircleDivID" + i;
|
||||
// var CircleImageID = "CircleImageID" + i;
|
||||
// var CircleLabelID = "CircleLabelID" + i;
|
||||
// var LocationX_data = (data[i].测量位置X / 1000) * width;
|
||||
// //var LocationX = divImgWidth + LocationX_data + 8;
|
||||
// var LocationX = divImgWidth + LocationX_data;
|
||||
// //var LocationY = data[i].测量位置Y + 115;
|
||||
// var LocationY = (data[i].测量位置Y / 760) * height;
|
||||
// var contrlosWidth = data[i].控件宽度;
|
||||
// var contrlosHeight = data[i].控件高度;
|
||||
// var instruction = data[i].说明;
|
||||
// var controlcode = data[i].控件类型;
|
||||
// var isrepaire = data[i].是否返修;
|
||||
|
||||
// var number = data[i].序号;
|
||||
|
||||
// if (controlcode == "1")
|
||||
// {//其它类型
|
||||
// CricleColor = CricleColor_1;
|
||||
// }
|
||||
|
||||
// else
|
||||
// {//其它类型
|
||||
// CricleColor = CricleColor_2;
|
||||
// }
|
||||
|
||||
// switch (data[i].拧紧完成)
|
||||
// {
|
||||
// case 1:
|
||||
// CricleColor = "green";
|
||||
// break;
|
||||
// default:
|
||||
// CricleColor = "ni_png_0910";
|
||||
// break;
|
||||
|
||||
// }
|
||||
|
||||
// //普通拧紧
|
||||
// if (isrepaire == 0)
|
||||
// {
|
||||
|
||||
// if (controlcode == "1")
|
||||
// {//拧紧类型
|
||||
// CircleImage = "<div "
|
||||
// + " id=" + "'" + CircleDivID + "'"
|
||||
// + ">"
|
||||
// + "<img src='../images/" + CricleColor + ".png'"
|
||||
// + " id=" + "'" + CircleImageID + "'"
|
||||
// + " />"
|
||||
// + "</div>"
|
||||
// }
|
||||
|
||||
// else
|
||||
// {//其它类型
|
||||
// CircleImage = "<div "
|
||||
// + " id=" + "'" + CircleDivID + "'"
|
||||
// + ">"
|
||||
// + "<label"
|
||||
// + " id='" + CircleLabelID + "'>" + instruction + "</label>"
|
||||
// + "<img src='../images/" + CricleColor + ".png'"
|
||||
// + " id=" + "'" + CircleImageID + "'"
|
||||
// + " />"
|
||||
// + "</div>"
|
||||
// }
|
||||
// }
|
||||
// //返修拧紧
|
||||
// else
|
||||
// {
|
||||
// if (data[i].拧紧完成 == "2")
|
||||
// {
|
||||
// CricleColor = "red";
|
||||
// }
|
||||
|
||||
// if (controlcode == "1")
|
||||
// {//拧紧类型
|
||||
// CircleImage = "<div "
|
||||
// + " id=" + "'" + CircleDivID + "'"
|
||||
// + ">"
|
||||
// + "<img src='../images/" + CricleColor + ".png'"
|
||||
// + " id=" + "'" + CircleImageID + "'"
|
||||
// + " />"
|
||||
// + "</div>"
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
|
||||
// $('#div_tab_assembly_craft').append(CircleImage);
|
||||
// $('#' + CircleDivID).css(
|
||||
// {
|
||||
// "top": LocationY + "px",
|
||||
// "left": LocationX + "px",
|
||||
// "z-index": "4",
|
||||
// "width": contrlosWidth,
|
||||
// "height": contrlosHeight,
|
||||
// "position": "absolute"
|
||||
// });
|
||||
|
||||
// $('#' + CircleImageID).css(
|
||||
// {
|
||||
// "width": contrlosWidth,
|
||||
// "height": contrlosHeight
|
||||
// }
|
||||
// );
|
||||
|
||||
// if (controlcode != "1")
|
||||
// {//其它类型
|
||||
// $('#' + CircleLabelID).css(
|
||||
// {
|
||||
// "top": 7 + "px",
|
||||
// "left": 17 + "px",
|
||||
// "z-index": "4",
|
||||
// "position": "absolute"
|
||||
// }
|
||||
// );
|
||||
// }
|
||||
|
||||
// CircleDivList[i] = CircleDivID;
|
||||
// CircleImageList[number] = CircleImageID; //改过[i]
|
||||
// CircleDivListCount++;
|
||||
// CircleImageListCount++;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// //移除控件
|
||||
// void ClearCircle()
|
||||
// {
|
||||
// //console.info(CircleDivListCount);
|
||||
// if (CircleDivListCount > 0)
|
||||
// {
|
||||
// for (var i = CircleDivListCount - 1; i >= 0; i--)
|
||||
// {
|
||||
// var id = CircleDivList[i];
|
||||
// $('#' + id).remove();
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// //获取第一次拧紧的组号和套筒号
|
||||
// void GetFirstGroupNumAndBoltCode(data)
|
||||
// {
|
||||
// var groupindex = 0;
|
||||
// var boltcode = 0;
|
||||
// var isfinish = 0; //拧紧完成
|
||||
|
||||
// var isOK = 0;//是否存在未拧紧轴
|
||||
// if (data != "" && data != null)
|
||||
// {
|
||||
// for (var j = 0; j < data.length; j++)
|
||||
// {
|
||||
// if (data[j].拧紧完成 == 0)
|
||||
// {
|
||||
// isOK = 1;
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
// for (var i = 0; i < data.length; i++)
|
||||
// {
|
||||
// isfinish = data[i].拧紧完成;
|
||||
// groupindex = data[i].组号;
|
||||
// boltcode = data[i].套筒号;
|
||||
|
||||
// if (isOK == 1)
|
||||
// {
|
||||
// if (isfinish == 0)
|
||||
// {
|
||||
// return groupindex;
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// if (isfinish == 2)
|
||||
// {
|
||||
// return groupindex;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// //根据序列号,显示对应的状态(status为0表示不合格,status为1为合格,status为2为还未开始,status为4为开始拧紧)
|
||||
// void ShowStep(GroupNum, status, jsonArray)
|
||||
// {
|
||||
|
||||
// //先判断是否还有未完成拧紧或者的位置
|
||||
// var imageid;
|
||||
// var imagesrc;
|
||||
// var Num;
|
||||
// var ReadGroupNum;
|
||||
// var boltCode; //套筒号
|
||||
// var controlcode; //控件类型
|
||||
|
||||
// // ShowAndHideFixAgainButton(false); //默认隐藏
|
||||
// if (CircleImageListCount > 0)
|
||||
// {
|
||||
// for (var i = 0; i < jsonArray.length; i++)
|
||||
// {
|
||||
// ReadGroupNum = jsonArray[i].组号;
|
||||
// if (GroupNum == ReadGroupNum)
|
||||
// {
|
||||
// Num = jsonArray[i].序号;
|
||||
// controlcode = jsonArray[i].控件类型;
|
||||
// imageid = CircleImageList[Num]; //改过-1
|
||||
|
||||
|
||||
// if (status == 0)
|
||||
// {
|
||||
// if (controlcode == "1")
|
||||
// {
|
||||
// imagesrc = "../images/red.png";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// imagesrc = "../images/redrectangle.png";
|
||||
// //清空套筒号
|
||||
// ClearBoltCode();
|
||||
// }
|
||||
// }
|
||||
// if (status == 1)
|
||||
// {
|
||||
// if (controlcode == "1")
|
||||
// {
|
||||
// imagesrc = "../images/green.png";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// imagesrc = "../images/greenrectangle.png";
|
||||
// //清空套筒号
|
||||
// ClearBoltCode();
|
||||
// }
|
||||
// //开始拧紧下一个
|
||||
// }
|
||||
// if (status == 2)
|
||||
// {
|
||||
// if (controlcode == "1")
|
||||
// {
|
||||
// imagesrc = "../images/ni_png_0910.png";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// imagesrc = "../images/bluerectangle.png";
|
||||
// //清空套筒号
|
||||
// ClearBoltCode();
|
||||
// }
|
||||
// }
|
||||
// if (status == 4)
|
||||
// {
|
||||
// if (controlcode == "1")
|
||||
// {
|
||||
// imagesrc = "../images/StartWorkCircle.gif";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// imagesrc = "../images/blinkrectangle.gif";
|
||||
// //清空套筒号
|
||||
// ClearBoltCode();
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
// $('#' + imageid).attr("src", imagesrc);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
816
Common/08WebFun_base/WebFun_base/MisWebInterfaceFunc/Web_Init.cs
Normal file
816
Common/08WebFun_base/WebFun_base/MisWebInterfaceFunc/Web_Init.cs
Normal file
@@ -0,0 +1,816 @@
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
//namespace MesWebFun_base
|
||||
//{
|
||||
// public partial class MisWebInterface
|
||||
// {
|
||||
|
||||
|
||||
// /*该js文件用于处理"页面初始化"业务逻辑处理*/
|
||||
|
||||
// //记录TabSelect时的Tab顺序
|
||||
// var Tab_Index = '操作指南';
|
||||
// //记录操作指南区域的先后顺序:1显示操作指南,0显示工艺卡
|
||||
// var Index = 1;
|
||||
// var btnconfig =
|
||||
// {
|
||||
// btn: {
|
||||
// close:'<span class="glyphicon glyphicon glyphicon-off" aria-hidden="true"></span> 重新工作',
|
||||
// comfrie:'<span class="glyphicon glyphicon glyphicon-ok" aria-hidden="true"></span> 继续工作'
|
||||
// }
|
||||
// }
|
||||
//var dditConfig = {
|
||||
// btn: {
|
||||
// close:'<span class="glyphicon glyphicon glyphicon-off" aria-hidden="true"></span> 重新工作',
|
||||
// comfrie:'<span class="glyphicon glyphicon glyphicon-ok" aria-hidden="true"></span> 继续工作'
|
||||
// },
|
||||
// hintLayer: {
|
||||
// icon: 7,
|
||||
// title: ["涂胶-拧紧超时报警","background-color:#4476A7"],
|
||||
// area: ['600px', '320px'],
|
||||
// skin: 'layui-layer-molv',
|
||||
// offset: '240px',
|
||||
// btn: [btnconfig.btn.comfrie, btnconfig.btn.close]
|
||||
// },
|
||||
// hintLayer1: {
|
||||
// icon: 1,
|
||||
// area: ['360px', '250px'],
|
||||
// title: "提示信息",
|
||||
// skin: 'layerStyle',
|
||||
// offset: '350px',
|
||||
// btn: ["确定登录", "取消登录"]
|
||||
//}
|
||||
//}
|
||||
////初始化MES界面
|
||||
//void loadingMes()
|
||||
//{
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// //初始化Mes界面_更新上面的数据
|
||||
// loadingMesData();
|
||||
// $.ajax({
|
||||
// url: '../submit/OpName.ashx?type=MesloadingSelect&value=' + opName,
|
||||
// data:
|
||||
// {
|
||||
// mainModule: 1, //主模块代码
|
||||
// MesWebCode: 2//页面代码
|
||||
// },
|
||||
// dataType: 'json',
|
||||
// success: function(data) {
|
||||
// if (data != null && data != "")
|
||||
// {
|
||||
// for (i = 0; i < data.length; i++)
|
||||
// {
|
||||
// switch (data[i].标签属性)
|
||||
// {
|
||||
// case "lbl":
|
||||
// {
|
||||
// updataLbl(data[i]);
|
||||
// }
|
||||
// break;
|
||||
// case "tab":
|
||||
// {
|
||||
// updataTab(data[i]);
|
||||
// }
|
||||
// break;
|
||||
// case "btn":
|
||||
// {
|
||||
// updataBtn(data[i]);
|
||||
// }
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
// //更新lbl
|
||||
// void updataLbl(data)
|
||||
//{
|
||||
// try
|
||||
// {
|
||||
// var key = data.标签ID;
|
||||
// var value = data.标签文字;
|
||||
// $('#' + key).text(value);
|
||||
// }
|
||||
// catch (Error)
|
||||
// {
|
||||
// }
|
||||
//}
|
||||
////更新btn
|
||||
//void updataBtn(data)
|
||||
//{
|
||||
// var key = data.标签ID;
|
||||
// var value = data.标签文字;
|
||||
// $('#' + key).val(value);
|
||||
//}
|
||||
////更新tab
|
||||
//void updataTab(data)
|
||||
//{
|
||||
// //第一步取到tab的控件
|
||||
// var tab_key = data.所属父级ID;
|
||||
// var launageType = data.语言编号;
|
||||
// $("#Hidden_language").val(launageType);
|
||||
// var value = data.模块描述;
|
||||
// //console.info(value);
|
||||
// var tab_index = data.模块编号;
|
||||
|
||||
// if (data.是否禁用 == 0 && data.是否禁用 != undefined)
|
||||
// {
|
||||
// var tab_child = $('#' + tab_key).tabs('getTab', value);
|
||||
// if (tab_child != null)
|
||||
// {
|
||||
// $('#' + tab_key).tabs('update', {
|
||||
// tab: tab_child,
|
||||
// options:
|
||||
// {
|
||||
// title: value // 新tab的title
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// } else
|
||||
//{
|
||||
// $('#' + tab_key).tabs('close', value);
|
||||
// $('#' + tab_key).tabs('select', 0);
|
||||
//}
|
||||
// }
|
||||
//}
|
||||
////初始化Mes界面_更新上面的input
|
||||
//void loadingMesData()
|
||||
//{
|
||||
//}
|
||||
|
||||
////打开功能按钮对话框
|
||||
//void OpenPanel()
|
||||
//{
|
||||
// $("#div_btnfunction_main").toggle();
|
||||
//}
|
||||
|
||||
////根据对象以及百分比获取实际absolutely长度大小
|
||||
//void FixWidth(sender, percent)
|
||||
//{
|
||||
// alert('0');
|
||||
// return $('#' + sender).width() * percent;
|
||||
//}
|
||||
|
||||
////获取html页面参数
|
||||
//void getvalue(name)
|
||||
//{
|
||||
// var str = window.location.search;
|
||||
// if (str.indexOf(name) != -1)
|
||||
// {
|
||||
// var pos_start = str.indexOf(name) + name.length + 1;
|
||||
// var pos_end = str.indexOf("&", pos_start);
|
||||
// if (pos_end == -1)
|
||||
// {
|
||||
// return str.substring(pos_start);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return str.substring(pos_start, pos_end)
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return "没有这个name值";
|
||||
// }
|
||||
//}
|
||||
|
||||
////初始化工步属性
|
||||
//void IniStepProperty()
|
||||
//{
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// $.ajax({
|
||||
// type: "POST",
|
||||
// url: '../submit/OpName.ashx?type=StepProperty&value=' + opName + '',
|
||||
// success: function(data) {
|
||||
// if (data != null && data != "")
|
||||
// {
|
||||
// var stepProperty = data.toString();
|
||||
// $("#Hidden_stepProperty").val(stepProperty);
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
//}
|
||||
|
||||
////在线,离线,启用点击事件
|
||||
//void show_Pannel_status1()
|
||||
//{
|
||||
// $('#combobox_btnfunction_status').combobox('showPanel');
|
||||
//}
|
||||
////功能按钮-从数据库中初始化在线/离线/屏蔽的combobox
|
||||
//void initOnlineOutlineCombobox()
|
||||
//{
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// $.ajax({
|
||||
// type: "POST",
|
||||
// url: "../submit/OpName.ashx?type=Init_OnlineOutline",
|
||||
// data:
|
||||
// {
|
||||
// opnameValue: opName
|
||||
// },
|
||||
// dataType: 'json',
|
||||
// success: function(data) {
|
||||
// if (data != null && data != "")
|
||||
// {
|
||||
// if (data.value == "2")
|
||||
// {
|
||||
// $("#btn_function").css("background-color", "red");
|
||||
// $("#combobox_btnfunction_status").combobox("setValue", "2");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $("#btn_function").css("background-color", "green");
|
||||
// $("#combobox_btnfunction_status").combobox("setValue", "0");
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
//}
|
||||
////初始化combox--功能按钮
|
||||
//void initCombobox()
|
||||
//{
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// var headwidth = $("#div_btnfunction_status").width();
|
||||
// var headheight = $("#div_btnfunction_status").height();
|
||||
// $("#combobox_btnfunction_status").combobox({
|
||||
// width: 130,
|
||||
// height: 35,
|
||||
// //panelHeight: headheight,
|
||||
// panelHeight: 80,
|
||||
// valueField: "id",
|
||||
// textField: "line",
|
||||
// value: "在线",
|
||||
// data:
|
||||
// [{
|
||||
// id: "0",
|
||||
// line: "在线"
|
||||
// }, {
|
||||
// id: "2",
|
||||
// line: "屏蔽"
|
||||
// }],
|
||||
// editable: false,
|
||||
// onSelect: function(record) {
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// var text = $("#combobox_btnfunction_status").combobox("getText");
|
||||
// var value = $("#combobox_btnfunction_status").combobox("getValue");
|
||||
// if (value == 2)
|
||||
// {
|
||||
// $("#btn_function").css("background-color", "red");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $("#btn_function").css("background-color", "green");
|
||||
// }
|
||||
// //插入到数据库
|
||||
// $.ajax({
|
||||
// type: "POST",
|
||||
// url: "../submit/OpName.ashx?type=Insert_OnlineOutline",
|
||||
// data:
|
||||
// {
|
||||
// opnameValue: opName,
|
||||
// selectValue: value
|
||||
// },
|
||||
// dataType: 'json',
|
||||
// success: function(data) {
|
||||
// if (data != null && data != "")
|
||||
// {
|
||||
// if (data.falg == "1")
|
||||
// {
|
||||
// //发送信号
|
||||
// var sendmessage = "MSG,OnLineState|" + opName + "|" + value;
|
||||
// sendMessage(sendmessage);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
//} //初始化tab
|
||||
|
||||
//var slectTabFlag = 1;
|
||||
|
||||
////初始化tab
|
||||
//void initTab()
|
||||
//{
|
||||
// var meswidth = $("#div_mes_main").width();
|
||||
// var timewidth = $("#div_time_main").width();
|
||||
// // var tabWidth = (meswidth - timewidth) * 0.975;
|
||||
// var tabWidth = (meswidth - timewidth) * 0.83;
|
||||
// var tabHeight = $("#div_time_main").height();
|
||||
// $('#div_tab').tabs({
|
||||
// border: false,
|
||||
// tabWidth: tabWidth / 6,
|
||||
// tabHeight: tabHeight,
|
||||
// onSelect: function(title, index) {
|
||||
// switch (title)
|
||||
// {
|
||||
// case '操作指南':
|
||||
// SettingIndex(title);
|
||||
// initProcessData();
|
||||
// initAssembleData();
|
||||
// ShowCraft();
|
||||
// break;
|
||||
// case '工艺卡':
|
||||
// SettingIndex(title);
|
||||
// ShowCraft();
|
||||
// break;
|
||||
// case '订单完工':
|
||||
// SettingIndex(title);
|
||||
// initOrderInfoData();
|
||||
// ReloadOrderInfoData();
|
||||
// break;
|
||||
// case '物料拉动':
|
||||
// SettingIndex(title);
|
||||
// initOrderInfoData();
|
||||
// ReloadOrderInfoData();
|
||||
// break;
|
||||
// case '质量查询':
|
||||
// SettingIndex(title);
|
||||
// IniQualityButtons_bgColor();
|
||||
// initStationdata();
|
||||
// repairMark = 0;
|
||||
// break;
|
||||
// case '设备管理':
|
||||
// SettingIndex(title);
|
||||
// initMaintainInfodata();
|
||||
// var tab = $('#div_tab').tabs('getSelected');
|
||||
// tab.panel('refresh');
|
||||
// break;
|
||||
// case 'ANDON':
|
||||
// SettingIndex(title);
|
||||
// ///测试
|
||||
// init_Combobox_ando_call();
|
||||
// init_combobox_ando_reset();
|
||||
// InitMaterailAndo();
|
||||
// //alert($("#tbx_opname").val());
|
||||
// $('#div_andon_table_material').css({
|
||||
// "left": "0px"
|
||||
// });
|
||||
////初始化物料ando弹出的div
|
||||
//Init_ando_popup();
|
||||
////初始化质量ando弹出的div
|
||||
//Init_ando_quality_popup();
|
||||
////初始化设备ando弹出的div
|
||||
//Init_ando_machine_popup();
|
||||
//break;
|
||||
// case '返修管理':
|
||||
// SettingIndex(title);
|
||||
//initStationdataRepair();
|
||||
//IniQualityButtons_bgColorRepair();
|
||||
//repairMark = 1;
|
||||
//break;
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
//}
|
||||
|
||||
////点击Tab设置Index
|
||||
//void SettingIndex(index)
|
||||
//{
|
||||
// switch (index)
|
||||
// {
|
||||
// case '操作指南': //操作指南
|
||||
// if (Tab_Index != '操作指南')
|
||||
// {
|
||||
// Index = 0;
|
||||
// Tab_Index = '操作指南';
|
||||
// return;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// if (Index == 1)
|
||||
// {
|
||||
// Index = 0;
|
||||
// return;
|
||||
// }
|
||||
// if (Index == 0)
|
||||
// {
|
||||
// Index = 1;
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// break;
|
||||
// case '工艺卡': //工艺卡
|
||||
// if (Tab_Index != '工艺卡')
|
||||
// {
|
||||
// Index = 0;
|
||||
// Tab_Index = '操作指南';
|
||||
// return;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// if (Index == 1)
|
||||
// {
|
||||
// Index = 0;
|
||||
// return;
|
||||
// }
|
||||
// if (Index == 0)
|
||||
// {
|
||||
// Index = 1;
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
// break;
|
||||
// case '订单完工': //订单完工
|
||||
// Tab_Index = index;
|
||||
// Index = 0;
|
||||
// return;
|
||||
// break;
|
||||
// case '物料拉动': //物料拉动
|
||||
// Tab_Index = index;
|
||||
// Index = 0;
|
||||
// return;
|
||||
// break;
|
||||
// case '质量查询': //质量查询
|
||||
// Tab_Index = index;
|
||||
// Index = 0;
|
||||
// return;
|
||||
// break;
|
||||
// case '设备管理': //设备管理
|
||||
// Tab_Index = index;
|
||||
// Index = 0;
|
||||
// return;
|
||||
// break;
|
||||
// case 'ANDON': //Andon
|
||||
// Tab_Index = index;
|
||||
// Index = 0;
|
||||
// return;
|
||||
// break;
|
||||
// case '返修管理': //返修管理
|
||||
// Tab_Index = index;
|
||||
// Index = 0;
|
||||
// return;
|
||||
// break;
|
||||
// default:
|
||||
// Tab_Index = 0;
|
||||
// Index = 0;
|
||||
// return;
|
||||
// break;
|
||||
// }
|
||||
//}
|
||||
|
||||
////显示工序卡和操作指南头
|
||||
//void ShowCraft()
|
||||
//{
|
||||
// if (Index == 0)
|
||||
// {
|
||||
// var tab = $('#div_tab').tabs('getSelected');
|
||||
// var launageType = $("#Hidden_language").val();
|
||||
// if (launageType == 1)
|
||||
// {
|
||||
// $('#div_tab').tabs('update', {
|
||||
// tab: tab,
|
||||
// options:
|
||||
// {
|
||||
// title: "操作指南" // 新tab的title
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// if (launageType == 2)
|
||||
//{
|
||||
// $('#div_tab').tabs('update', {
|
||||
// tab: tab,
|
||||
// options:
|
||||
// {
|
||||
// title: "OperageGuid" // 新tab的title
|
||||
// }
|
||||
// });
|
||||
//}
|
||||
// $("#div_tab_operationcard").css({
|
||||
// "display": "none"
|
||||
// });
|
||||
// }
|
||||
// else
|
||||
//{
|
||||
// //20170331 CORBIN
|
||||
// var opName = $('#tbx_opname').val();
|
||||
|
||||
// $.ajax({
|
||||
// type: "POST",
|
||||
// url: '../submit/OpName.ashx?type=GetPdfSrc&value=' + opName,
|
||||
// success: function(data) {
|
||||
// if (data != "" || data == null)
|
||||
// {
|
||||
// if (document.getElementById('pdf_operationcard') != null)
|
||||
// {
|
||||
// $('#pdf_operationcard').attr("src", data);
|
||||
// initoperationcard();
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $('#pdf_operationcard').attr("src", "../pdf/确认是否上传PDF.pdf");
|
||||
// initoperationcard();
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
|
||||
// //20170331 CORBIN
|
||||
|
||||
// $("#div_tab_operationcard").css({
|
||||
// "display": "block"
|
||||
// });
|
||||
// var tab = $('#div_tab').tabs('getSelected');
|
||||
// var launageType = $("#Hidden_language").val();
|
||||
// if (launageType == 1)
|
||||
// {
|
||||
// $('#div_tab').tabs('update', {
|
||||
// tab: tab,
|
||||
// options:
|
||||
// {
|
||||
// title: "工艺卡" // 新tab的title
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// if (launageType == 2)
|
||||
// {
|
||||
// $('#div_tab').tabs('update', {
|
||||
// tab: tab,
|
||||
// options:
|
||||
// {
|
||||
// title: "ProcessCard" // 新tab的title
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
//}
|
||||
//}
|
||||
|
||||
////测试虚拟键盘
|
||||
//void test_tbx_scanbarcode()
|
||||
//{
|
||||
// VirtualKeyboard.toggle('', 'softkey');
|
||||
// $("#kb_langselector,#kb_mappingselector,#copyrights").css("display", "none");
|
||||
//}
|
||||
|
||||
////工位刚登入时,将一些信息复位掉
|
||||
//void Web_Login()
|
||||
//{
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// $.ajax({
|
||||
// type: "POST",
|
||||
// url: '../submit/OpName.ashx?type=WebLoginIn&value=' + opName + '',
|
||||
// success: function(data) {
|
||||
// if (data != null && data != "")
|
||||
// {
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
////初始化界面
|
||||
////显示操作指南 ph- 2014年11月18日
|
||||
//ReceivedSignal_ProcessList(); //显示操作指南
|
||||
//ReceivedSignal_MaterialList(); //显示物料
|
||||
//ReceivedSignal_PictureShow(); //显示操作图片
|
||||
//ShowLEDNotice(); //初始化LED
|
||||
//}
|
||||
|
||||
//void InitMaterialLeave_dialog()
|
||||
//{
|
||||
// //open方法
|
||||
// layer.open({
|
||||
// icon: 7,
|
||||
// closeBtn: 1,
|
||||
// skin: 'layui-layer-lan',
|
||||
// area:['600px', '350px'],
|
||||
// content: $("#MaterialLeave_dialog").html(),
|
||||
// btn:["确定" ],
|
||||
// yes: function(index, layero) {
|
||||
// layer.close(index);
|
||||
// }
|
||||
// });
|
||||
//}
|
||||
////质量门
|
||||
//void MaterailQuality_dialoga()
|
||||
//{
|
||||
// //open方法
|
||||
// layer.open({
|
||||
// icon: 7,
|
||||
// closeBtn: 1,
|
||||
// skin: 'layui-layer-lan',
|
||||
// area:['600px', '350px'],
|
||||
// content: $("#MaterailQuality_dialog").html(),
|
||||
// btn:["确定"],
|
||||
// yes: function(index, layero) {
|
||||
// layer.close(index);
|
||||
// }
|
||||
// });
|
||||
//}
|
||||
////涂胶延时提醒
|
||||
//void InitdelayTime_dialog()
|
||||
//{
|
||||
// //open方法
|
||||
// layer.open({
|
||||
// icon: 7,
|
||||
// title:["延时提醒提示"],
|
||||
// closeBtn: 1,
|
||||
// skin: 'layui-layer-lan',
|
||||
// area:['600px', '350px'],
|
||||
// content: $("#delayTime_dialog").html(),
|
||||
// btn:["继续工作", "重新工作", ],
|
||||
// yes: function(index, layero) {
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// var sendmessage = "MSG,ContinueFixAllow|" + opName + "|1";
|
||||
// sendMessage(sendmessage);
|
||||
// layer.close(index);
|
||||
// },
|
||||
// btn2: function(index, layero) {
|
||||
// layer.close(index);
|
||||
// },
|
||||
// });
|
||||
//}
|
||||
////打印条码提醒
|
||||
//void InitPrintConfirm_dialog()
|
||||
//{
|
||||
// $('#PrintConfirm_dialog').dialog({
|
||||
// title: '打印条码扫描验证错误',
|
||||
// width: 600,
|
||||
// height: 270,
|
||||
// modal: true,
|
||||
// closed: true,
|
||||
// buttons:
|
||||
// [{
|
||||
// text: '继续工作',
|
||||
// iconCls: 'icon-ok',
|
||||
// handler: function() {
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// var sendmessage = "MSG,PrinterrorAlter|" + opName + "|1";
|
||||
// sendMessage(sendmessage);
|
||||
// $('#PrintConfirm_dialog').dialog('close');
|
||||
// }
|
||||
// }, {
|
||||
// text: '重新工作',
|
||||
// iconCls: 'icon-cancel',
|
||||
// handler: function() {
|
||||
// $('#PrintConfirm_dialog').dialog('close');
|
||||
// }
|
||||
// }]
|
||||
// });
|
||||
//}
|
||||
////OP2150涂胶延时提醒
|
||||
//void InitTightdelayTime_dialog()
|
||||
//{
|
||||
// //open方法
|
||||
// layer.open({
|
||||
// icon: 7,
|
||||
// title:["涂胶延时提醒"],
|
||||
// closeBtn: 1,
|
||||
// skin: 'layui-layer-lan',
|
||||
// area:['600px', '350px'],
|
||||
// content: $("#tightTime_dialog").html(),
|
||||
// btn:["继续工作", "重新工作",],
|
||||
// yes: function(index, layero) {
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// var sendmessage = "MSG,ContinueFixAllow|" + opName + "|1";
|
||||
// sendMessage(sendmessage);
|
||||
// layer.close(index);
|
||||
// },
|
||||
// btn2: function(index, layero) {
|
||||
// layer.close(index);
|
||||
// },
|
||||
// });
|
||||
//}
|
||||
////涂胶时间不足提醒
|
||||
//void InitNotenough_dialog()
|
||||
//{
|
||||
// //open方法
|
||||
// layer.open({
|
||||
// icon: 7,
|
||||
// title:["涂胶-测试台架时间不足"],
|
||||
// closeBtn: 1,
|
||||
// skin: 'layui-layer-lan',
|
||||
// area:['600px', '350px'],
|
||||
// content: $("#Notenough_dialog").html(),
|
||||
// btn:["继续工作", "重新工作", ],
|
||||
// yes: function(index, layero) {
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// var sendmessage = "MSG,ContinueFixAllow|" + opName + "|1";
|
||||
// sendMessage(sendmessage);
|
||||
// layer.close(index);
|
||||
// },
|
||||
// btn2: function(index, layero) {
|
||||
// layer.close(index);
|
||||
// },
|
||||
// });
|
||||
//}
|
||||
////OP4150打标重复报警
|
||||
//void InitMarking_dialog()
|
||||
//{
|
||||
// //open方法
|
||||
// layer.open({
|
||||
// icon: 7,
|
||||
// title:["打标工件编号重复"],
|
||||
// closeBtn: 1,
|
||||
// skin: 'layui-layer-lan',
|
||||
// area:['600px', '350px'],
|
||||
// content: $("#Marking_dialog").html(),
|
||||
// btn:["继续工作", "重新工作", ],
|
||||
// yes: function(index, layero) {
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// var sendmessage = "MSG,ContinueFixAllow|" + opName + "|1";
|
||||
// sendMessage(sendmessage);
|
||||
// layer.close(index);
|
||||
// },
|
||||
// btn2: function(index, layero) {
|
||||
// layer.close(index);
|
||||
// },
|
||||
// });
|
||||
//}
|
||||
////二维码零件未扫描
|
||||
//void InitNoScan_dialog()
|
||||
//{
|
||||
// $('#NoScanMats_dialog').dialog({
|
||||
// title: '物料未扫描完全',
|
||||
// width: 600,
|
||||
// height: 270,
|
||||
// modal: true,
|
||||
// closed: true,
|
||||
// buttons:
|
||||
// [{
|
||||
// text: '确定',
|
||||
// iconCls: 'icon-ok',
|
||||
// handler: function() {
|
||||
// $('#NoScanMats_dialog').dialog('close');
|
||||
// }
|
||||
// }]
|
||||
// });
|
||||
//}
|
||||
////删除排队
|
||||
//void button_Orderdele()
|
||||
//{
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// var orderengine_num = $("#txt_orderengine_num").val();
|
||||
// $.ajax({
|
||||
// type: 'post',
|
||||
// url: '../submit/OpName.ashx?type=OrderlistDelete&value=' + opName + '&orderengine_num=' + orderengine_num,
|
||||
// dataType: 'json',
|
||||
// success: function(data) {
|
||||
// $("#txt_orderengine_num").val('');
|
||||
// }
|
||||
// });
|
||||
//sendMessage(sendmessage);
|
||||
// $.messager.show({
|
||||
//title: '提示',
|
||||
// msg: '删除成功!',
|
||||
// timeout: 2000,
|
||||
// showType: 'slide'
|
||||
// });
|
||||
//}
|
||||
|
||||
////线外工位质量数据、物料数据
|
||||
//void InitLineout_dialog()
|
||||
//{
|
||||
// $('#Lineout_dialog').dialog({
|
||||
// title: '线外工装数据显示',
|
||||
// width: 860,
|
||||
// height: 610,
|
||||
// closed: false,
|
||||
// cache: false,
|
||||
// modal: true
|
||||
// });
|
||||
//IniQualityButtons_bgColor_alert();
|
||||
//initStationdata_alert();
|
||||
|
||||
//}
|
||||
|
||||
//void btn_Lineout_dialog_Cancel()
|
||||
//{
|
||||
// $('#Lineout_dialog').dialog({
|
||||
// closed: true,
|
||||
// });
|
||||
//}
|
||||
|
||||
//void btn_Lineout_dialog_Continue()
|
||||
//{
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// var barcode = $("#Lineout_barcode").val();
|
||||
// var sendmessage = "MSG,ContinueFixAllow|" + opName + "|" + barcode;
|
||||
// sendMessage(sendmessage);
|
||||
// $('#Lineout_dialog').dialog({
|
||||
// closed: true,
|
||||
// });
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// }
|
||||
//}
|
||||
@@ -0,0 +1,155 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
|
||||
// /*该js文件用于处理"物料检测"业务逻辑处理*/
|
||||
|
||||
// var jsonArrayStatic_MaterialCheck; //全局json_物料检测
|
||||
// var CircleDivList_MaterialCheck; //全局记录包含image的div
|
||||
// var CircleDivListCount_MaterialCheck = 0;
|
||||
// var CircleImageList_MaterialCheck; //全局记录全部的物料检测小圆圈图片
|
||||
// var CircleImageListCount_MaterialCheck = 0;
|
||||
|
||||
//初始化物料检测指导
|
||||
string InitMaterialCheck(string opName)
|
||||
{
|
||||
//url: '../submit/OpName.ashx?type=MaterialCheckPosition&value=' + opName,
|
||||
var responseStr = _MesWebFun_base.ProcessRequest("MaterialCheckPosition", opName);
|
||||
return responseStr;
|
||||
|
||||
}
|
||||
|
||||
|
||||
// //创建div(MaterialCheck)
|
||||
// void SetUpCircleDiv_MaterialCheck(data)
|
||||
// {
|
||||
// CircleDivList_MaterialCheck = { };
|
||||
// CircleImageList_MaterialCheck = { };
|
||||
// CircleImageListCount_MaterialCheck = 0;
|
||||
// CircleImageListCount_MaterialCheck = 0;
|
||||
|
||||
// var CircleImage = "<div></div>"; //默认
|
||||
// var CricleColor = "checkred"; //默认
|
||||
|
||||
// for (var i = 0; i < data.length; i++)
|
||||
// {
|
||||
// var divImgWidth = $("#div_tab_assembly_craft_main").width();
|
||||
// var CircleDivID = "CheckMaterialDivID" + i;
|
||||
// var CircleImageID = "CheckMaterialImageID" + i;
|
||||
// var LocationX_data = data[i].测量位置X;
|
||||
// var LocationX = divImgWidth + LocationX_data;
|
||||
// var LocationY = data[i].测量位置Y;
|
||||
// var contrlosWidth = data[i].控件宽度;
|
||||
// var contrlosHeight = data[i].控件高度;
|
||||
|
||||
// CircleImage = "<div "
|
||||
// + " id=" + "'" + CircleDivID + "'"
|
||||
// + ">"
|
||||
// + "<img src='../images/" + CricleColor + ".gif'"
|
||||
// + " id=" + "'" + CircleImageID + "'"
|
||||
// + " />"
|
||||
// + "</div>"
|
||||
|
||||
// $('#div_tab_assembly_craft').append(CircleImage);
|
||||
// $('#' + CircleDivID).css(
|
||||
// {
|
||||
// "top": LocationY + "px",
|
||||
// "left": LocationX + "px",
|
||||
// "z-index": "4",
|
||||
// "width": contrlosWidth,
|
||||
// "height": contrlosHeight,
|
||||
// "position": "absolute"
|
||||
// });
|
||||
|
||||
// $('#' + CircleImageID).css(
|
||||
// {
|
||||
// "width": contrlosWidth,
|
||||
// "height": contrlosHeight
|
||||
// }
|
||||
// );
|
||||
|
||||
// //赋值变量
|
||||
// CircleDivList_MaterialCheck[i] = CircleDivID;
|
||||
// CircleImageList_MaterialCheck[i] = CircleImageID;
|
||||
// CircleDivListCount_MaterialCheck++;
|
||||
// CircleImageListCount_MaterialCheck++;
|
||||
// }
|
||||
// }
|
||||
|
||||
// //移除控件
|
||||
// void ClearCircle_MaterialCheck()
|
||||
// {
|
||||
// if (CircleDivListCount_MaterialCheck > 0)
|
||||
// {
|
||||
// for (var i = CircleDivListCount_MaterialCheck - 1; i >= 0; i--)
|
||||
// {
|
||||
// var id = CircleDivList_MaterialCheck[i];
|
||||
// $('#' + id).remove();
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
// //根据传递的物料检测信息
|
||||
// void ShowMaterialCheck(m_Value)
|
||||
// {
|
||||
|
||||
// //先判断是否还有未完成拧紧或者的位置
|
||||
// var imageid;
|
||||
// var imagesrc;
|
||||
// var Num;
|
||||
// var check;
|
||||
|
||||
// var s_valueArrays = m_Value.split('&'); //将接收到的检测信息split
|
||||
// if (CircleImageListCount_MaterialCheck > 0)
|
||||
// {
|
||||
// if (s_valueArrays.length > 0)
|
||||
// {
|
||||
// for (var i = 0; i < jsonArrayStatic_MaterialCheck.length; i++)
|
||||
// {
|
||||
// Num = jsonArrayStatic_MaterialCheck[i].物料检测; //检测序号
|
||||
// imageid = CircleImageList_MaterialCheck[Num];
|
||||
// if (Num <= (s_valueArrays.length - 1))
|
||||
// {
|
||||
// check = s_valueArrays[Num];
|
||||
// if (check == 0)
|
||||
// {//未能检测到显示红色动画
|
||||
// imagesrc = "../images/checkred.gif";
|
||||
// }
|
||||
// if (check == 1)
|
||||
// {//检测到显示绿色动画
|
||||
// imagesrc = "../images/checkgreen.gif";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// imagesrc = "../images/checkred.gif";
|
||||
// }
|
||||
// $('#' + imageid).attr("src", imagesrc);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
|
||||
/*该js文件用于处理"弹窗消息"业务逻辑处理*/
|
||||
string ShowWindowNotice(string opName)
|
||||
{
|
||||
//url: '../submit/OpName.ashx?type=ShowWindowNotice&value=' + opName,
|
||||
var responseStr = _MesWebFun_base.ProcessRequest("ShowWindowNotice", opName);
|
||||
return responseStr;
|
||||
}
|
||||
|
||||
//LED消息提醒
|
||||
string ShowLEDNotice(string opName)
|
||||
{
|
||||
// url: '../submit/OpName.ashx?type=ShowLEDNotice&value=' + opName,
|
||||
var responseStr = _MesWebFun_base.ProcessRequest("ShowLEDNotice", opName);
|
||||
return responseStr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,420 @@
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
//namespace MesWebFun_base
|
||||
//{
|
||||
// public partial class MisWebInterface
|
||||
// {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// //初始化返修上线dialog
|
||||
// void Initdiv_RepairPartLoad_dialg()
|
||||
// {
|
||||
// $('#div_RepairPartLoad_dialg').dialog({
|
||||
// title: '返修上线',
|
||||
// width: 600,
|
||||
// height: 350,
|
||||
// closed: true
|
||||
// });
|
||||
// }
|
||||
// //获取日期字符串
|
||||
// void RepairPartLoad_GetDate()
|
||||
// {
|
||||
// var today, hour, second, minute, year, month, date;
|
||||
// var strDate;
|
||||
// today = new Date();
|
||||
// year = today.getFullYear();
|
||||
// month = today.getMonth() + 1;
|
||||
// date = today.getDate();
|
||||
// hour = today.getHours();
|
||||
// minute = today.getMinutes();
|
||||
// second = today.getSeconds();
|
||||
|
||||
// if (month < 10)
|
||||
// {
|
||||
// month_New = "0" + month;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// month_New = month;
|
||||
// }
|
||||
|
||||
// if (date < 10)
|
||||
// {
|
||||
// date_New = "0" + date;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// date_New = date;
|
||||
// }
|
||||
// // var date3 = document.getElementById('input_RepairPartLoad_EngineID_date').value = year + "-" + month_New + "-" + date_New; //显示时间
|
||||
// }
|
||||
|
||||
|
||||
// //更新返修状态
|
||||
// void update_RepairStatus(data)
|
||||
// {
|
||||
// var opName = $("#tbx_opname").val(); //工位号
|
||||
// var str0 = data;
|
||||
// var str1 = new Array();
|
||||
// str1 = str0.split("_");
|
||||
// var opname = str1[1]
|
||||
// var btnColor = document.getElementById("" + data + "").style.backgroundColor;
|
||||
// var status = 0;
|
||||
|
||||
// if (btnColor == "lime")
|
||||
// {
|
||||
// status = 1;
|
||||
|
||||
// }
|
||||
// if (btnColor == "")
|
||||
// {
|
||||
// status = 0;
|
||||
// }
|
||||
|
||||
// //更新到数据库中
|
||||
// $.ajax({
|
||||
// url: '../submit/OpName.ashx?type=updateRepairStatus&value=' + opName
|
||||
// + '&opname=' + opname
|
||||
// + '&status=' + status,
|
||||
// success: function(data) {
|
||||
|
||||
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// //全选
|
||||
// void SelectAllBtn()
|
||||
// {
|
||||
// var btn_Str = "";
|
||||
// var repairtags = document.getElementsByName("RepairBtn");
|
||||
// var str_value = "";
|
||||
// for (var i = 0; i < repairtags.length; i++)
|
||||
// {
|
||||
// repairtags[i].style.backgroundColor = "green";
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
// //清空
|
||||
// void RemoveAllBtn()
|
||||
// {
|
||||
// var btn_Str = "";
|
||||
// var repairtags = document.getElementsByName("RepairBtn");
|
||||
// var str_value = "";
|
||||
// for (var i = 0; i < repairtags.length; i++)
|
||||
// {
|
||||
// repairtags[i].style.backgroundColor = "gray";
|
||||
// }
|
||||
// }
|
||||
|
||||
// //反选
|
||||
// void ReverseSelectBtn()
|
||||
// {
|
||||
// var btn_Str = "";
|
||||
// var repairtags = document.getElementsByName("RepairBtn");
|
||||
// var str_value = "";
|
||||
// for (var i = 0; i < repairtags.length; i++)
|
||||
// {
|
||||
// var btnColor = repairtags[i].style.backgroundColor;
|
||||
// if (btnColor == "green")//判断按钮背景色
|
||||
// {
|
||||
// repairtags[i].style.backgroundColor = "gray";
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// repairtags[i].style.backgroundColor = "green";
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// //保存返修数据
|
||||
// void RepairPartLoad_Confirm()
|
||||
// {
|
||||
// var btn_Str = "";
|
||||
// var repairtags = document.getElementsByName("RepairBtn");
|
||||
// var str_value = "";
|
||||
// for (var i = 0; i < repairtags.length; i++)
|
||||
// {
|
||||
// var btnColor = repairtags[i].style.backgroundColor;
|
||||
// if (btnColor == "green")//判断按钮背景色
|
||||
// {
|
||||
// str_value = repairtags[i].value + "^" + "1" + "|" + str_value;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// str_value = repairtags[i].value + "^" + "0" + "|" + str_value;
|
||||
// }
|
||||
// }
|
||||
// var RepairMethod = $("input[name='RepairMethod']:checked").val();
|
||||
// var engineID = $("#text_selectByID").val();
|
||||
// var OpNanme_Str = btn_Str.split("|");
|
||||
// var engineType = $("#text_engingeType").val();
|
||||
// var OpName = $("#tbx_opname").val(); //工位号
|
||||
// $.ajax({
|
||||
// url: '../submit/OpName.ashx?type=SaveRepairStatus&str_value=' + str_value + '&engineID=' + engineID + '&RepairMethod=' + RepairMethod + '&engineType=' + engineType + '&OpName=' + OpName,
|
||||
// success: function(data) {
|
||||
|
||||
// if (data == "True")
|
||||
// {
|
||||
// $.messager.show({
|
||||
// title: '提示',
|
||||
// msg: "返修上线数据保存成功!",
|
||||
// timeout: 5000,
|
||||
// showType: 'slide'
|
||||
// });
|
||||
// $('#div_RepairPartLoad_dialg').dialog({
|
||||
|
||||
// closed: true
|
||||
// });
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// var value = $("#text_selectByID").val();
|
||||
// var m_value = value + "/" + RepairMethod;
|
||||
// var sendmessage = "MSG,RepairMarks|" + opName + "|" + m_value;
|
||||
// sendMessage(sendmessage);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $.messager.show({
|
||||
// title: '提示',
|
||||
// msg: "返修上线数据保存失败!",
|
||||
// timeout: 5000,
|
||||
// showType: 'slide'
|
||||
// });
|
||||
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
// //初始化返修上线弹出框的动态按钮
|
||||
// void Initdiv_RepairPartLoadBtn()
|
||||
// {
|
||||
// var opName = $("#tbx_opname").val(); //工位号
|
||||
// var text_selectByID = $("#text_selectByID").val(); //工件编号
|
||||
// if (text_selectByID == "")
|
||||
// {
|
||||
// return;
|
||||
// }
|
||||
// $.ajax({
|
||||
// url: '../submit/OpName.ashx?type=RepairStatusInit&value=' + opName + '&text_selectByID=' + text_selectByID,
|
||||
// success: function(data)
|
||||
// {
|
||||
// if (data != null && data != "")
|
||||
// {
|
||||
// document.getElementById("div_RepairPartLoad_zbz").innerHTML = '' + data + '';
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
|
||||
// }
|
||||
// //关闭弹窗
|
||||
// void RepairPartLoad_Cancel()
|
||||
// {
|
||||
|
||||
// $('#div_RepairPartLoad_dialg').dialog({
|
||||
|
||||
// closed: true
|
||||
// });
|
||||
|
||||
// }
|
||||
|
||||
// //点击返修上线按钮
|
||||
// void btn_outlinerepair()
|
||||
// {
|
||||
// /////////////////////返修上线////////////////////
|
||||
// //弹出返修上线dialog
|
||||
|
||||
// $("#div_RepairPartLoad_dialg").dialog("open");
|
||||
|
||||
// }
|
||||
|
||||
|
||||
// void RepairBtnClick(data)
|
||||
// {
|
||||
|
||||
// var opname = data.value;
|
||||
// var btnColor = document.getElementById("Btn_" + opname + "").style.backgroundColor;
|
||||
// if (btnColor == "green")//判断按钮背景色
|
||||
// {
|
||||
// $('#Btn_' + opname).css({
|
||||
// "background-color": "gray"//设置背景色为空
|
||||
// });
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// $('#Btn_' + opname).css({
|
||||
// "background-color": "green"
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
// //初始化质量查询返修
|
||||
// void initStationdataRepair()
|
||||
// {
|
||||
// //console.info("质量查询的tab");
|
||||
// var opNumWidth = $("#div_tab_stationdata").width() * 0.3;
|
||||
// var measureDataWidth = $("#div_tab_stationdata").width() * 0.2;
|
||||
// var measureNameWidth = $("#div_tab_stationdata").width() * 0.3;
|
||||
// var qualifiedMarkWidth = $("#div_tab_stationdata").width() * 0.19;
|
||||
// $('#datagridview_stationdata_repair').datagrid({
|
||||
// url: '',
|
||||
// title: '',
|
||||
// sortName: '', //按哪个字段排序,把这个提交给服务器
|
||||
// sortOrder: 'desc', //升序降序
|
||||
// idField: '',
|
||||
// fit: true,
|
||||
// fitColumns: true,
|
||||
// columns:
|
||||
// [[
|
||||
// { title: '工位号', field: 'JSON_工位号', width: 70, align: 'center' },
|
||||
// { title: '测量位置', field: 'JSON_测量位置', width: 110, align: 'center' },
|
||||
// { title: '测量数据', field: 'JSON_测量值', width: 80, align: 'center' },
|
||||
// { title: '测量名称', field: 'JSON_测量项目', width: 75, align: 'center' },
|
||||
// { title: '是否合格', field: 'JSON_合格标志', width: 70, align: 'center' }
|
||||
// ]],
|
||||
|
||||
// rowStyler: function(index, row) {
|
||||
// if (index % 2 == 0 && row.JSON_合格标志 == "OK")
|
||||
// {
|
||||
// return 'background-color:#D0D8E8';
|
||||
// }
|
||||
// else if (index % 2 != 0 && row.JSON_合格标志 == "OK")
|
||||
// {
|
||||
// return 'background-color:#E9EDF4';
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return 'background-color:red';
|
||||
// }
|
||||
// }
|
||||
|
||||
// })
|
||||
//}
|
||||
// //更新质量查询模块按钮颜色返修界面
|
||||
// void IniQualityButtons_bgColorRepair()
|
||||
// {
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// $.ajax({
|
||||
// url: '../submit/OpName.ashx?type=QualityDataButton_bgColor_Select&value=' + opName + '&v=' + new Date().getTime(),
|
||||
// success: function(data) {
|
||||
// if (data != null && data != "")
|
||||
// {
|
||||
// document.getElementById("div_tab_station_Repair").innerHTML = data;
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// //更新质量查询模块按钮颜色返修
|
||||
// void IniQualityButtons_bgColor_byenergineID_Repair()
|
||||
// {
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// var energineID = $("#text_selectByID").val();
|
||||
// $.ajax({
|
||||
// type: 'post',
|
||||
// url: '../submit/OpName.ashx?type=QualityDataButton_bgColor_Select_ByEnergineID&value=' + opName + '&energineID=' + energineID + '&v=' + new Date().getTime(),
|
||||
// success: function(data) {
|
||||
// if (data != null && data != "")
|
||||
// {
|
||||
// //document.getElementById("div_tab_station_Repair").innerHTML = data;
|
||||
// $("#div_tab_station_Repair").html(data);
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// //显示 机型
|
||||
// $.ajax({
|
||||
// type: 'post',
|
||||
// url: '../submit/OpName.ashx?type=Select_engineType_ByEnergineID&value=' + opName + '&energineID=' + energineID + '&v=' + new Date().getTime(),
|
||||
// success: function(data) {
|
||||
// if (data != null && data != "")
|
||||
// {
|
||||
// var engineType = data.engineType; //机型
|
||||
// $("#text_engingeType").val(engineType);
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
// //对应返修质量数据查询
|
||||
// void QualityDataSelectRepair(opname)
|
||||
// {
|
||||
// var opName = $("#tbx_opname").val(); //当前工位号
|
||||
// var opname = opname; //选择工位号
|
||||
// $.ajax({
|
||||
// type: 'post',
|
||||
// url: '../submit/OpName.ashx?type=QualityDataSelect&value=' + opName + '&opname=' + opname,
|
||||
// dataType: 'json',
|
||||
// success: function(data) {
|
||||
// if (data != null && data != "")
|
||||
// {
|
||||
// $("#datagridview_stationdata_repair").datagrid("loadData", data);
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
//}
|
||||
|
||||
|
||||
// var time = 0;
|
||||
// //根据发动机号查询质量数据
|
||||
// void qualityDataSelect()
|
||||
// {
|
||||
|
||||
// if (time == 0)
|
||||
// {
|
||||
// document.getElementById('button_select').style.background = 'green';
|
||||
// QualityDataSelectRepair('0000'); //用于清空缓存数据
|
||||
// IniQualityButtons_bgColor_byenergineID_Repair();
|
||||
// time = 2;
|
||||
// }
|
||||
// if (time == 1)
|
||||
// {
|
||||
|
||||
// document.getElementById('button_select').style.background = 'gray';
|
||||
// QualityDataSelectRepair('0000');
|
||||
// document.getElementById('text_selectByID').value = "";
|
||||
// document.getElementById('text_engingeType').value = "";
|
||||
// IniQualityButtons_bgColorRepair();
|
||||
// time = 0;
|
||||
// }
|
||||
// if (time == 2)
|
||||
// {
|
||||
// time = 1;
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
// //更新质量查询模块按钮颜色返修用
|
||||
// void IniQualityButtons_bgColorRepair()
|
||||
// {
|
||||
// var opName = $("#tbx_opname").val();
|
||||
// $.ajax({
|
||||
// url: '../submit/OpName.ashx?type=QualityDataButton_bgColor_Select&value=' + opName + '&v=' + new Date().getTime(),
|
||||
// success: function(data) {
|
||||
// if (data != null && data != "")
|
||||
// {
|
||||
// document.getElementById("div_tab_station_Repair").innerHTML = data;
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// }
|
||||
//}
|
||||
@@ -0,0 +1,189 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace MesWebFun_base
|
||||
{
|
||||
public partial class MisWebInterface
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public static MesWebFun_base _MesWebFun_base = new MesWebFun_base();
|
||||
|
||||
|
||||
public string WebSocket_Function(string msg)
|
||||
{
|
||||
var responseStr = "";
|
||||
try
|
||||
{
|
||||
//返回的数据msg.data,包含了协议中的4部分9
|
||||
var arrays_signal = msg.Split('|');
|
||||
var m_Source = arrays_signal[0];
|
||||
var m_Command = arrays_signal[1];
|
||||
var m_Opname = arrays_signal[2];
|
||||
var m_Value = arrays_signal[3];
|
||||
// var opName = $("#tbx_opname").val();
|
||||
switch (m_Source)
|
||||
{
|
||||
case "MES":
|
||||
|
||||
switch (m_Command)
|
||||
{
|
||||
//显示托盘信息 √
|
||||
case "ShowMoby":
|
||||
try
|
||||
{
|
||||
responseStr = ReceivedSignal_MobySelect( m_Opname);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
//ApplicationLog.WriteLog("信息提示" + "|" + "错误断点:ShowMoby" + "|" + "info");
|
||||
}
|
||||
break;
|
||||
//显示操作指南√
|
||||
case "ProcessList":
|
||||
try
|
||||
{
|
||||
responseStr = ReceivedSignal_ProcessList(m_Opname);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
//ApplicationLog.WriteLog("信息提示" + "|" + "错误断点:ProcessList" + "|" + "info");
|
||||
}
|
||||
break;
|
||||
//显示物料√
|
||||
case "MaterialList":
|
||||
try
|
||||
{
|
||||
responseStr = ReceivedSignal_MaterialList(m_Opname);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
//ApplicationLog.WriteLog("信息提示" + "|" + "错误断点:MaterialList" + "|" + "info");
|
||||
}
|
||||
break;
|
||||
//显示操作图片√
|
||||
case "PicShow":
|
||||
try
|
||||
{
|
||||
responseStr = ReceivedSignal_PictureShow(m_Opname);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
//ApplicationLog.WriteLog("信息提示" + "|" + "错误断点:PicShow" + "|" + "info");
|
||||
}
|
||||
break;
|
||||
//显示拧紧位置√
|
||||
case "ShaftPosition":
|
||||
try
|
||||
{
|
||||
responseStr = InitShowGuidCircle(m_Opname);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
//ApplicationLog.WriteLog("信息提示" + "|" + "错误断点:ShaftPosition" + "|" + "info");
|
||||
}
|
||||
break;
|
||||
//实时显示质量数据√
|
||||
case "ShowTimelyQuality":
|
||||
try
|
||||
{
|
||||
// url: '../submit/OpName.ashx?type=ShowTimelyQuality&value=' + opName,
|
||||
responseStr = _MesWebFun_base.ProcessRequest("ShowTimelyQuality", m_Opname);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
//ApplicationLog.WriteLog("信息提示" + "|" + "错误断点:ShowTimelyQuality" + "|" + "info");
|
||||
}
|
||||
break;
|
||||
//手动拧紧实时显示质量数据√
|
||||
case "ShowTimelyQuality_Tight":
|
||||
try
|
||||
{
|
||||
// url: '../submit/OpName.ashx?type=ShowTimelyQuality&value=' + opName,
|
||||
responseStr = _MesWebFun_base.ProcessRequest("ShowTimelyQuality", m_Opname);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
//ApplicationLog.WriteLog("信息提示" + "|" + "错误断点:ShowTimelyQuality_Tight" + "|" + "info");
|
||||
}
|
||||
break;
|
||||
|
||||
//√
|
||||
case "OrderFormList":
|
||||
try
|
||||
{
|
||||
// ReloadOrderInfoData();
|
||||
//url: '../submit/OpName.ashx?type=OrderFormList&value=' + opName,
|
||||
responseStr = _MesWebFun_base.ProcessRequest("OrderFormList", m_Opname);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
//ApplicationLog.WriteLog("信息提示" + "|" + "错误断点:OrderFormList" + "|" + "info");
|
||||
}
|
||||
break;
|
||||
//弹窗消息√
|
||||
case "Notice":
|
||||
try
|
||||
{
|
||||
responseStr = ShowWindowNotice(m_Opname);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
//ApplicationLog.WriteLog("信息提示" + "|" + "错误断点:Notice" + "|" + "info");
|
||||
}
|
||||
break;
|
||||
//LED消息提醒√
|
||||
case "ScrollNotice":
|
||||
try
|
||||
{
|
||||
responseStr = ShowLEDNotice(m_Opname);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
//ApplicationLog.WriteLog("信息提示" + "|" + "错误断点:ScrollNotice" + "|" + "info");
|
||||
}
|
||||
break;
|
||||
//物料检测初始化√
|
||||
case "MaterialCheckPosition":
|
||||
responseStr = InitMaterialCheck(m_Opname);
|
||||
break;
|
||||
//返修质量数据显示√
|
||||
case "RepairQuality":
|
||||
try
|
||||
{
|
||||
// IniQualityButtons_bgColor_byenergineID_socket(m_Value);
|
||||
//url: '../submit/OpName.ashx?type=QualityDataButton_bgColor_Select_ByEnergineID&value=' + opName + '&energineID=' + energineID + '&v=' + new Date().getTime(),
|
||||
responseStr = _MesWebFun_base.ProcessRequest("QualityDataButton_bgColor_Select_ByEnergineID", m_Opname);
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
//ApplicationLog.WriteLog("信息提示" + "|" + "错误断点:RepairQuality" + "|" + "info");
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
// Web_Socket_Interface(m_Opname, msg);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
var error = exception.ToString();
|
||||
//ApplicationLog.WriteLog("信息提示" + "|" + "系统出现错误,接受onmessage:" + "|" + error + "|" + "info");
|
||||
responseStr = "";
|
||||
}
|
||||
return responseStr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Linq;
|
||||
//using System.Text;
|
||||
//using System.Threading.Tasks;
|
||||
//using SystemFramework;
|
||||
|
||||
//namespace MesWebFun_base
|
||||
//{
|
||||
// public partial class MisWebInterface
|
||||
// {
|
||||
|
||||
|
||||
// /*该js文件用于处理"弹窗消息"业务逻辑处理*/
|
||||
|
||||
// //接口函数
|
||||
// void Web_Socket_Interface(opName, msg)
|
||||
// {
|
||||
// //获取工位号对应Fun类型
|
||||
// $.ajax({
|
||||
// type: "POST",
|
||||
// url: '../submit/OpName.ashx?type=' + opName + '&value=' + opName,
|
||||
// success: function(data) {
|
||||
// if (data != null && data != "")
|
||||
// {
|
||||
// switch (data)
|
||||
// {
|
||||
// case "01":
|
||||
// Web_Socket_Fun01(opName, msg);
|
||||
// break;
|
||||
// case "02":
|
||||
// Web_Socket_Fun02(opName, msg);
|
||||
// break;
|
||||
// case "03":
|
||||
// Web_Socket_Fun03(opName, msg);
|
||||
// break;
|
||||
// case "04":
|
||||
// Web_Socket_Fun04(opName, msg);
|
||||
// break;
|
||||
// case "05":
|
||||
// Web_Socket_Fun05(opName, msg);
|
||||
// break;
|
||||
// case "06":
|
||||
// Web_Socket_Fun06(opName, msg);
|
||||
// break;
|
||||
// case "07":
|
||||
// Web_Socket_Fun07(opName, msg);
|
||||
// break;
|
||||
// case "08":
|
||||
// Web_Socket_Fun08(opName, msg);
|
||||
// break;
|
||||
// case "09":
|
||||
// Web_Socket_Fun09(opName, msg);
|
||||
// break;
|
||||
// case "10":
|
||||
// Web_Socket_Fun10(opName, msg);
|
||||
// break;
|
||||
// case "11":
|
||||
// Web_Socket_Fun11(opName, msg);
|
||||
// break;
|
||||
// case "12":
|
||||
// Web_Socket_Fun12(opName, msg);
|
||||
// break;
|
||||
// case "13":
|
||||
// Web_Socket_Fun13(opName, msg);
|
||||
// break;
|
||||
// case "14":
|
||||
// Web_Socket_Fun14(opName, msg);
|
||||
// break;
|
||||
// case "15":
|
||||
// Web_Socket_Fun15(opName, msg);
|
||||
// break
|
||||
// case "16":
|
||||
// Web_Socket_Fun16(opName, msg);
|
||||
// break;
|
||||
// case "17":
|
||||
// Web_Socket_Fun17(opName, msg);
|
||||
// break;
|
||||
// default:
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
|
||||
//}
|
||||
|
||||
// //特殊functionjs处理
|
||||
// void Web_Socket_MesWebFun_Interface(opName, msg)
|
||||
// {
|
||||
|
||||
// //获取工位号对应Fun类型
|
||||
// $.ajax({
|
||||
// type: "POST",
|
||||
// url: '../submit/OpName.ashx?type=' + opName + '&value=' + opName,
|
||||
// success: function(data) {
|
||||
// if (data != null && data != "")
|
||||
// {
|
||||
// switch (data)
|
||||
// {
|
||||
// case "01":
|
||||
// Web_Socket_MesWebFun01(opName, msg);
|
||||
// break;
|
||||
// case "02":
|
||||
// Web_Socket_MesWebFun02(opName, msg);
|
||||
// break;
|
||||
// case "03":
|
||||
// Web_Socket_MesWebFun03(opName, msg);
|
||||
// break;
|
||||
// case "04":
|
||||
// Web_Socket_MesWebFun04(opName, msg);
|
||||
// break;
|
||||
// case "05":
|
||||
// Web_Socket_MesWebFun05(opName, msg);
|
||||
// break;
|
||||
// case "06":
|
||||
// Web_Socket_MesWebFun06(opName, msg);
|
||||
// break;
|
||||
// case "07":
|
||||
// Web_Socket_MesWebFun07(opName, msg);
|
||||
// break;
|
||||
// case "08":
|
||||
// Web_Socket_MesWebFun08(opName, msg);
|
||||
// break;
|
||||
// case "09":
|
||||
// Web_Socket_MesWebFun09(opName, msg);
|
||||
// break;
|
||||
// case "10":
|
||||
// Web_Socket_MesWebFun10(opName, msg);
|
||||
// break;
|
||||
// case "11":
|
||||
// Web_Socket_MesWebFun11(opName, msg);
|
||||
// break;
|
||||
// case "12":
|
||||
// Web_Socket_MesWebFun12(opName, msg);
|
||||
// break;
|
||||
// case "13":
|
||||
// Web_Socket_MesWebFun13(opName, msg);
|
||||
// break;
|
||||
// case "14":
|
||||
// Web_Socket_MesWebFun14(opName, msg);
|
||||
// break;
|
||||
// case "15":
|
||||
// Web_Socket_MesWebFun15(opName, msg);
|
||||
// break;
|
||||
// case "16":
|
||||
// Web_Socket_MesWebFun16(opName, msg);
|
||||
// break;
|
||||
// case "17":
|
||||
// Web_Socket_MesWebFun17(opName, msg);
|
||||
// break;
|
||||
// default:
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// })
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// }
|
||||
//}
|
||||
Reference in New Issue
Block a user