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
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user