chore: 初始化平芝550kVMesProject项目
This commit is contained in:
225
Common/07WebBusinessFacade/BusinessFacade/Web/Buttons.cs
Normal file
225
Common/07WebBusinessFacade/BusinessFacade/Web/Buttons.cs
Normal file
@@ -0,0 +1,225 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public class Buttons
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static string Createbuttons(DataTable dt)//相当于在该DIV内动态画table
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();//动态分配长度
|
||||
if (dt != null)
|
||||
{
|
||||
if (dt.Rows.Count > 0)
|
||||
{
|
||||
sb.Append("<table style=\"width:100%;height:100%\"><tr>");
|
||||
for (int i = 0; i < dt.Rows.Count; i++)
|
||||
{
|
||||
//标签id
|
||||
string id = "button_OPs" + dt.Rows[i]["工位号"].ToString();
|
||||
|
||||
//标签类型
|
||||
string type = "button";
|
||||
|
||||
//标签样式
|
||||
string style = "height:98%;width:98%;font-family:微软雅黑;font-size:15px;border-color: #99CCFF";
|
||||
|
||||
string style_td = "width:20%; height:35px";
|
||||
|
||||
//标签值
|
||||
string value = dt.Rows[i]["工位号"].ToString();
|
||||
|
||||
//标签点击事件
|
||||
string onclick = "QualityDataSelect(value)";
|
||||
|
||||
string bgc = "background-color: #CCCCCC";//默认按钮背景色
|
||||
if (dt.Rows[i]["合格标志"].ToString() == "NOK")
|
||||
{
|
||||
bgc = "background-color: red";
|
||||
}
|
||||
else if (dt.Rows[i]["合格标志"].ToString() == "OK")
|
||||
{
|
||||
bgc = "background-color: green";
|
||||
}
|
||||
else
|
||||
{
|
||||
bgc = "background-color: #CCCCCC";
|
||||
}
|
||||
//对行按钮数进行处理,保证五个换行
|
||||
if (i % 4 == 3)
|
||||
{
|
||||
|
||||
sb.Append("<td style=\"" + style_td + "\"><input id=\"" + id + "\" type=\"" + type + "\" style=\"" + style + ";" + bgc + "\" value=\"" + value + "\" onclick=\"" + onclick + "\" /></td>");
|
||||
sb.Append("</tr>\r\n<tr>");
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.Append("<td style=\"" + style_td + "\"><input id=\"" + id + "\" type=\"" + type + "\" style=\"" + style + ";" + bgc + "\" value=\"" + value + "\" onclick=\"" + onclick + "\" /></td>");
|
||||
}
|
||||
}
|
||||
sb.Append("</tr></table>");
|
||||
}
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
public static string CreateNewbuttons(DataTable dt)//相当于在该DIV内动态画table
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();//动态分配长度
|
||||
if (dt != null)
|
||||
{
|
||||
if (dt.Rows.Count > 0)
|
||||
{
|
||||
sb.Append("<table style=\"width:100%;height:100%\"><tr>");
|
||||
for (int i = 0; i < dt.Rows.Count; i++)
|
||||
{
|
||||
//标签id
|
||||
string id = "button_OPs" + dt.Rows[i]["工位号"].ToString();
|
||||
|
||||
//标签类型
|
||||
string type = "button";
|
||||
|
||||
//标签样式
|
||||
string style = "height:98%;width:98%;font-family:微软雅黑;font-size:15px;border-color: #99CCFF";
|
||||
|
||||
string style_td = "width:15%; height:30px";
|
||||
|
||||
//标签值
|
||||
string value = dt.Rows[i]["工位号"].ToString();
|
||||
|
||||
//标签点击事件
|
||||
string onclick = "QualityDataSelect(value)";
|
||||
|
||||
string bgc = "background-color: #CCCCCC";//默认按钮背景色
|
||||
if (dt.Rows[i]["合格标志"].ToString() == "NOK")
|
||||
{
|
||||
bgc = "background-color: red";
|
||||
}
|
||||
else if (dt.Rows[i]["合格标志"].ToString() == "OK")
|
||||
{
|
||||
bgc = "background-color: green";
|
||||
}
|
||||
else
|
||||
{
|
||||
bgc = "background-color: #CCCCCC";
|
||||
}
|
||||
//对行按钮数进行处理,保证五个换行
|
||||
if (i % 5 == 4)
|
||||
{
|
||||
|
||||
sb.Append("<td style=\"" + style_td + "\"><input id=\"" + id + "\" type=\"" + type + "\" style=\"" + style + ";" + bgc + "\" value=\"" + value + "\" onclick=\"" + onclick + "\" /></td>");
|
||||
sb.Append("</tr>\r\n<tr>");
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.Append("<td style=\"" + style_td + "\"><input id=\"" + id + "\" type=\"" + type + "\" style=\"" + style + ";" + bgc + "\" value=\"" + value + "\" onclick=\"" + onclick + "\" /></td>");
|
||||
}
|
||||
}
|
||||
sb.Append("</tr></table>");
|
||||
}
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
/// <summary>
|
||||
/// 物料原因模块按钮创建
|
||||
/// </summary>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static string CreateMaterialsButtons(DataTable dt)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (dt != null)
|
||||
{
|
||||
if (dt.Rows.Count > 0)
|
||||
{
|
||||
sb.Append("<table style=\"width: 1000px\" ><tr style=\"height: 150px\">");
|
||||
for (int i = 0; i < dt.Rows.Count; i++)
|
||||
{
|
||||
string id = (string)dt.Rows[i]["id"];
|
||||
string type = (string)dt.Rows[i]["type"];
|
||||
string style = (string)dt.Rows[i]["style"];
|
||||
string value = (string)dt.Rows[i]["零件名称"];
|
||||
string onclick = (string)dt.Rows[i]["onclick"];
|
||||
string bgc = "";//默认按钮背景色
|
||||
sb.Append("<td><button id=\"" + id + "\" onclick=\"" + onclick + "\" value=\"" + value + "\" style=\"" + style + ";" + bgc + "\"><font size=\"5px\"> " + value + " </font></button></td>");
|
||||
}
|
||||
sb.Append("</tr></table>");
|
||||
}
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static string Createbuttons_alert(DataTable dt)//相当于在该DIV内动态画table
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();//动态分配长度
|
||||
if (dt != null)
|
||||
{
|
||||
if (dt.Rows.Count > 0)
|
||||
{
|
||||
sb.Append("<table style=\"width:100%;\" cellpadding='0' cellspacing='0'><tr>");
|
||||
for (int i = 0; i < dt.Rows.Count; i++)
|
||||
{
|
||||
//标签id
|
||||
string id = "button_OPs" + dt.Rows[i]["工位号"].ToString();
|
||||
|
||||
//标签类型
|
||||
string type = "button";
|
||||
|
||||
//标签样式
|
||||
string style = "height:40px;line-height:35px;width:98%;font-family:'微软雅黑';font-size:15px;border-color:#99CCFF";
|
||||
|
||||
string style_td = "width:20%; height:35px";
|
||||
|
||||
//标签值
|
||||
string value = dt.Rows[i]["工位号"].ToString();
|
||||
|
||||
//标签点击事件
|
||||
string onclick = "QualityDataSelect_alert(value)";
|
||||
|
||||
string bgc = "background-color: #CCCCCC";//默认按钮背景色
|
||||
if (dt.Rows[i]["合格标志"].ToString() == "NOK")
|
||||
{
|
||||
bgc = "background-color: red";
|
||||
}
|
||||
else if (dt.Rows[i]["合格标志"].ToString() == "OK")
|
||||
{
|
||||
bgc = "background-color: green";
|
||||
}
|
||||
else
|
||||
{
|
||||
bgc = "background-color: #CCCCCC";
|
||||
}
|
||||
//对行按钮数进行处理,保证五个换行
|
||||
if (i % 4 == 3)
|
||||
{
|
||||
|
||||
sb.Append("<td style=\"" + style_td + "\"><input id=\"" + id + "\" type=\"" + type + "\" style=\"" + style + ";" + bgc + "\" value=\"" + value + "\" onclick=\"" + onclick + "\" /></td>");
|
||||
sb.Append("</tr>\r\n<tr>");
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.Append("<td style=\"" + style_td + "\"><input id=\"" + id + "\" type=\"" + type + "\" style=\"" + style + ";" + bgc + "\" value=\"" + value + "\" onclick=\"" + onclick + "\" /></td>");
|
||||
}
|
||||
}
|
||||
sb.Append("</tr></table>");
|
||||
}
|
||||
}
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
237
Common/07WebBusinessFacade/BusinessFacade/Web/Login.cs
Normal file
237
Common/07WebBusinessFacade/BusinessFacade/Web/Login.cs
Normal file
@@ -0,0 +1,237 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public class UserLogin
|
||||
{
|
||||
/// <summary>
|
||||
/// 登陆者查询_Easyui
|
||||
/// </summary>
|
||||
/// <param name="opName">登陆名</param>
|
||||
/// <param name="message">密码</param>
|
||||
/// <param name="IsSuccess"></param>
|
||||
/// <returns></returns>
|
||||
public static bool Getlogin(string opName, string message, out int IsSuccess)
|
||||
{
|
||||
IsSuccess = 0;
|
||||
string produceName = "MES_用户管理_人员登录_扫码";
|
||||
SqlParameter[] thisParms = new SqlParameter[3];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@条码", message);
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@是否符合", IsSuccess);
|
||||
thisParms[2].Direction = ParameterDirection.Output;
|
||||
if (DataAccess.ExecuteStoredProcedure(produceName, ref thisParms))
|
||||
{
|
||||
IsSuccess = Convert.ToInt32(thisParms[2].Value);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static void GetUrl(string opname, out DataTable tb)
|
||||
{
|
||||
string sql = "SELECT TOP 1 [WebHtml],[工位号],[工步属性],[服务器IP],[通讯端口] FROM [dbo].[MES_计划BOM_工位与名称_视图] WHERE [工位号]='" + opname + "'";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
tb = null;
|
||||
DataAccess.ExecuteDataTable(sql, out tb);
|
||||
}
|
||||
public static bool ConfirmClass(string classes, out string confirmclass)
|
||||
{
|
||||
string procedureName = "AMES_物料拉动_人员班组管理_班次信息_查询";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
confirmclass = "";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[1];
|
||||
sqlParameters[0] = new SqlParameter("@班次", SqlDbType.NVarChar, 50);
|
||||
sqlParameters[0].Direction = ParameterDirection.Output;
|
||||
if (DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters))
|
||||
{
|
||||
confirmclass = sqlParameters[0].Value.ToString();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public static void ClassName_Select(string ClassCode, out DataTable dt)
|
||||
{
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
string sql;
|
||||
sql = "SELECT top 1 班次描述 FROM [dbo].[AMES_物料拉动_人员班组管理_班次信息] WHERE [班次代码]='" + ClassCode + "'";
|
||||
dt = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
/// <summary>
|
||||
/// 修改新密码
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="tb"></param>
|
||||
public static void updatePassWord(string userName, string passWord, out DataTable tb)
|
||||
{
|
||||
string sql = "update [dbo].[MES_用户管理_人员] set 密码='" + passWord + "' WHERE [用户名]='" + userName + "'";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
tb = null;
|
||||
DataAccess.ExecuteDataTable(sql, out tb);
|
||||
}
|
||||
/// <summary>
|
||||
/// 登陆界面设置窗口提交
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="tb"></param>
|
||||
public static void InitLoginCombobox(string clientIp,out DataTable tb)
|
||||
{
|
||||
string sql = "SELECT [工位代码],[工位号] FROM [dbo].[MES_计划BOM_工位与名称_视图] WHERE [工控机IP]='" + clientIp + "'";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
tb = null;
|
||||
DataAccess.ExecuteDataTable(sql, out tb);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 登陆界面设置窗口提交
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="tb"></param>
|
||||
public static void submitSetOk(string opNum,string opName,string serverIp,string serverPort,string manchineIp, out DataTable tb)
|
||||
{
|
||||
string sql = "update [dbo].[MES_计划BOM_工位与名称] set 工位代码='" + opNum + "',工控机IP='" + manchineIp + "',工位号='" + opName + "',服务器IP='" + serverIp + "',通讯端口='" + serverPort + "' WHERE [工位号]='" + opName + "'";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
tb = null;
|
||||
DataAccess.ExecuteDataTable(sql, out tb);
|
||||
}
|
||||
/// <summary>
|
||||
/// 初始化设置串口的工位号
|
||||
/// </summary>
|
||||
/// <param name="tb"></param>
|
||||
public static void InitSetCombobox(out DataTable tb)
|
||||
{
|
||||
string sql = "SELECT [工位代码],[工位号] FROM [dbo].[MES_计划BOM_工位与名称_视图]";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
tb = null;
|
||||
DataAccess.ExecuteDataTable(sql, out tb);
|
||||
}
|
||||
/// <summary>
|
||||
/// 登陆者查询_Easyui
|
||||
/// </summary>
|
||||
/// <param name="loginUser">登陆名</param>
|
||||
/// <param name="passWord">密码</param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool loginUserSelect(string loginUser, string passWord, out DataTable tb)
|
||||
{
|
||||
string procedureName = "登陆者查询_Easyui";
|
||||
//string connectionString = ApplicationConfig.ConnectionString_MES;
|
||||
DataSet ds;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@登陆名", loginUser);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@密码", passWord);
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
tb = null;
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public static void ClassCode_Select(string ClassName, out DataTable dt)
|
||||
{
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
string sql;
|
||||
sql = "SELECT top 1 班次代码 FROM AMES_物料拉动_人员班组管理_班次信息 WHERE [班次描述]='" + ClassName + "'";
|
||||
dt = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询是否登录过
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static void SearchUrl(string opname, out DataTable dt)
|
||||
{
|
||||
string procedureName;
|
||||
procedureName = "测量数据工位_监控系统_操作者工号_查询";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[1];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// [测量数据工位_监控系统_员工在线信息表_员工下线]
|
||||
/// </summary>
|
||||
/// <param name="Opname"></param>
|
||||
/// <param name="OperatorName"></param>
|
||||
/// <param name="OperatorManger"></param>
|
||||
/// <param name="Password"></param>
|
||||
/// <param name="Type"></param>
|
||||
/// <param name="Msg"></param>
|
||||
/// <returns></returns>
|
||||
public static bool Getoff_WorkingHours(string Opname, string OperatorName, string OperatorManger, string Password, int Type, out string Msg)
|
||||
{
|
||||
string procedureName = "AMES_物料拉动_测量数据工位_监控系统_员工在线信息表_员工下线";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
Msg = "";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[6];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@操作者工号", OperatorName);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@管理者工号", OperatorManger);
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@工位号", Opname);
|
||||
sqlParameters[3] = new System.Data.SqlClient.SqlParameter("@密码", Password);
|
||||
sqlParameters[4] = new System.Data.SqlClient.SqlParameter("@下线类型", Type);
|
||||
sqlParameters[5] = new SqlParameter("@Result", SqlDbType.NVarChar, 50);
|
||||
sqlParameters[5].Direction = ParameterDirection.Output;
|
||||
|
||||
if (DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters))
|
||||
{
|
||||
Msg = sqlParameters[5].Value.ToString();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 查询班次
|
||||
/// </summary>
|
||||
/// <param name="tb"></param>
|
||||
public static void Getclasses(out DataTable tb)
|
||||
{
|
||||
string sql = "SELECT [班次代码],[班次描述] FROM [dbo].[AMES_物料拉动_人员班组管理_班次信息] ORDER BY 班次代码 ";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
tb = null;
|
||||
DataAccess.ExecuteDataTable(sql, out tb);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
656
Common/07WebBusinessFacade/BusinessFacade/Web/MES.Functions.cs
Normal file
656
Common/07WebBusinessFacade/BusinessFacade/Web/MES.Functions.cs
Normal file
@@ -0,0 +1,656 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
using System.Web;
|
||||
using Microsoft.SqlServer.Server;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public partial class MES
|
||||
{
|
||||
/// <summary>
|
||||
/// 测量数据工位_监控系统_MOBY_查询
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="IsAllowWork"></param>
|
||||
/// <returns></returns>
|
||||
public static void Moby_Select(string opName, out string orderNum,
|
||||
out int EngineTypeID, out string EngineType, out string EngineID, out string PartPallet_Code,
|
||||
out int IsrepairBarcode, out string repairBarcode,
|
||||
out string workCode,out string projectName,out string splitCode,out string unidCode, out string engineType,out string engineTypeModel,out string startTime)
|
||||
{
|
||||
orderNum = "";
|
||||
EngineTypeID = 0;
|
||||
EngineType = "";
|
||||
EngineID = "";
|
||||
PartPallet_Code = "";
|
||||
IsrepairBarcode = 0;
|
||||
repairBarcode = "";
|
||||
workCode = ""; // 制造编号
|
||||
projectName = ""; // 项目名称
|
||||
splitCode = ""; // 间隔号
|
||||
unidCode = ""; // 单元号
|
||||
engineType = ""; // 本体类型
|
||||
engineTypeModel = ""; // 附件类型
|
||||
startTime = ""; // 开始时间
|
||||
|
||||
try
|
||||
{
|
||||
string procedureName;
|
||||
procedureName = "测量数据工位_监控系统_MOBY_查询";
|
||||
SqlParameter[] thisParms = new SqlParameter[15];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@订单号", SqlDbType.NVarChar, 50, "订单号");
|
||||
thisParms[1].Direction = ParameterDirection.Output;
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@产品型号代码", SqlDbType.Int, 4, "产品型号代码");
|
||||
thisParms[2].Direction = ParameterDirection.Output;
|
||||
thisParms[3] = new System.Data.SqlClient.SqlParameter("@发动机型号", SqlDbType.NVarChar, 50, "发动机型号");
|
||||
thisParms[3].Direction = ParameterDirection.Output;
|
||||
thisParms[4] = new System.Data.SqlClient.SqlParameter("@发动机号", SqlDbType.NVarChar, 50, "发动机号");
|
||||
thisParms[4].Direction = ParameterDirection.Output;
|
||||
thisParms[5] = new System.Data.SqlClient.SqlParameter("@托盘号", SqlDbType.NVarChar, 50, "托盘号");
|
||||
thisParms[5].Direction = ParameterDirection.Output;
|
||||
thisParms[6] = new System.Data.SqlClient.SqlParameter("@拆解标志", SqlDbType.Int, 4, "拆解标志");
|
||||
thisParms[6].Direction = ParameterDirection.Output;
|
||||
thisParms[7] = new System.Data.SqlClient.SqlParameter("@拆解返修条码", SqlDbType.NVarChar, 50, "拆解返修条码");
|
||||
thisParms[7].Direction = ParameterDirection.Output;
|
||||
thisParms[8] = new System.Data.SqlClient.SqlParameter("@制造编号", SqlDbType.NVarChar, 50, "制造编号");
|
||||
thisParms[8].Direction = ParameterDirection.Output;
|
||||
thisParms[9] = new System.Data.SqlClient.SqlParameter("@间隔号", SqlDbType.NVarChar, 50, "间隔号");
|
||||
thisParms[9].Direction = ParameterDirection.Output;
|
||||
thisParms[10] = new System.Data.SqlClient.SqlParameter("@单元号", SqlDbType.NVarChar, 50, "单元号");
|
||||
thisParms[10].Direction = ParameterDirection.Output;
|
||||
thisParms[11] = new System.Data.SqlClient.SqlParameter("@项目名称", SqlDbType.NVarChar, 50, "项目名称");
|
||||
thisParms[11].Direction = ParameterDirection.Output;
|
||||
thisParms[12] = new System.Data.SqlClient.SqlParameter("@本体类型", SqlDbType.NVarChar, 50, "本体类型");
|
||||
thisParms[12].Direction = ParameterDirection.Output;
|
||||
thisParms[13] = new System.Data.SqlClient.SqlParameter("@附件类型", SqlDbType.NVarChar, 50, "附件类型");
|
||||
thisParms[13].Direction = ParameterDirection.Output;
|
||||
thisParms[14] = new System.Data.SqlClient.SqlParameter("@开始时间", SqlDbType.NVarChar, 50, "开始时间");
|
||||
thisParms[14].Direction = ParameterDirection.Output;
|
||||
DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms);
|
||||
if (thisParms[1].Value != null && thisParms[2].Value != null && thisParms[3].Value != null && thisParms[4].Value != null && thisParms[5].Value != null && thisParms[6].Value != null && thisParms[7].Value != null)
|
||||
{
|
||||
orderNum = thisParms[1].Value.ToString();
|
||||
EngineTypeID = Convert.ToInt32(thisParms[2].Value); ;
|
||||
EngineType = thisParms[3].Value.ToString();
|
||||
EngineID = thisParms[4].Value.ToString();
|
||||
PartPallet_Code = thisParms[5].Value.ToString();
|
||||
IsrepairBarcode = Convert.ToInt32(thisParms[6].Value);
|
||||
repairBarcode = thisParms[7].Value.ToString();
|
||||
workCode = thisParms[8].Value.ToString(); // 制造编号
|
||||
projectName = thisParms[9].Value.ToString(); // 项目名称
|
||||
splitCode = thisParms[10].Value.ToString();// 间隔号
|
||||
unidCode = thisParms[11].Value.ToString(); // 单元号
|
||||
engineType = thisParms[12].Value.ToString(); // 本体类型
|
||||
engineTypeModel = thisParms[13].Value.ToString(); // 附件类型
|
||||
startTime = thisParms[14].Value.ToString(); // 开始时间
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
orderNum = "";
|
||||
EngineTypeID = 0;
|
||||
EngineType = "";
|
||||
EngineID = "";
|
||||
PartPallet_Code = "";
|
||||
IsrepairBarcode = 0;
|
||||
repairBarcode = "";
|
||||
workCode = ""; // 制造编号
|
||||
projectName = ""; // 项目名称
|
||||
splitCode = ""; // 间隔号
|
||||
unidCode = ""; // 单元号
|
||||
engineType = ""; // 本体类型
|
||||
engineTypeModel = ""; // 附件类型
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 基本数据_工作日历_班次产量查询_Web页面显示_初始化查询
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="IsAllowWork"></param>
|
||||
/// <returns></returns>
|
||||
public static void InitOpNameOuputCount(string opName, out int outputValue, out int nowOutputValue,
|
||||
out int opNameBeatValue, out int NowOpNameBeatValue, out int classNumber)
|
||||
{
|
||||
outputValue = 0;//工位产量
|
||||
nowOutputValue = 0;//在线产量
|
||||
opNameBeatValue = 0;//工位节拍
|
||||
NowOpNameBeatValue = 0;//在线节拍
|
||||
classNumber = 0;//班次
|
||||
try
|
||||
{
|
||||
string procedureName;
|
||||
procedureName = "Web页面显示_计划产量初始化查询";
|
||||
SqlParameter[] thisParms = new SqlParameter[6];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@工位产量", SqlDbType.Int, 4, "工位产量");
|
||||
thisParms[1].Direction = ParameterDirection.Output;
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@工位节拍", SqlDbType.Int, 4, "工位节拍");
|
||||
thisParms[2].Direction = ParameterDirection.Output;
|
||||
thisParms[3] = new System.Data.SqlClient.SqlParameter("@在线产量", SqlDbType.Int, 4, "在线产量");
|
||||
thisParms[3].Direction = ParameterDirection.Output;
|
||||
thisParms[4] = new System.Data.SqlClient.SqlParameter("@在线节拍", SqlDbType.Int, 4, "在线节拍");
|
||||
thisParms[4].Direction = ParameterDirection.Output;
|
||||
thisParms[5] = new System.Data.SqlClient.SqlParameter("@班次代码", SqlDbType.Int, 4, "班次代码");
|
||||
thisParms[5].Direction = ParameterDirection.Output;
|
||||
DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms);
|
||||
if (thisParms[1].Value != null && thisParms[2].Value != null && thisParms[3].Value != null && thisParms[4].Value != null && thisParms[5].Value != null)
|
||||
{
|
||||
outputValue = Convert.ToInt32(thisParms[1].Value);
|
||||
opNameBeatValue = Convert.ToInt32(thisParms[2].Value);
|
||||
nowOutputValue = Convert.ToInt32(thisParms[3].Value);
|
||||
NowOpNameBeatValue = Convert.ToInt32(thisParms[4].Value);
|
||||
classNumber = Convert.ToInt32(thisParms[5].Value);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
outputValue = 0;
|
||||
opNameBeatValue = 0;
|
||||
nowOutputValue = 0;
|
||||
NowOpNameBeatValue = 0;
|
||||
classNumber = 0;
|
||||
}
|
||||
}
|
||||
|
||||
static public bool MaterialsDelete(string engineID, string engineType)
|
||||
{
|
||||
string procedureName = "轴系返修零件_删除";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工件编号", engineID);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@产品型号", engineType);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测量数据工位_监控系统_手动转线_增加
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="outLineRepair1"></param>
|
||||
/// <returns></returns>
|
||||
static public bool AskManualTransfer(string opName, int manualTransfer1, int applyOffLine, int updateOptions1)
|
||||
{
|
||||
string procedureName = "测量数据工位_监控系统_手动转线_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[4];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@是否启动转线", manualTransfer1);
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@是否强制下线", applyOffLine);
|
||||
thisParms[3] = new System.Data.SqlClient.SqlParameter("@更新项目", updateOptions1);
|
||||
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 电子看板_工序内容_查询
|
||||
/// </summary>
|
||||
/// <param name="opName">工位号</param>
|
||||
/// <param name="engineTypeID">产品型号代码</param>
|
||||
/// <param name="dt"></param>
|
||||
static public void Process_Select(string opName, int engineTypeID, string EngineType, out DataTable dt)
|
||||
{
|
||||
dt = null;
|
||||
string sql = "exec 电子看板_工序内容_查询 '" + opName + "'," + engineTypeID.ToString() + ",'" + EngineType + "'";
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 生产计划_派工订单_查询_工位执行
|
||||
/// </summary>
|
||||
/// <param name="opName">工位号</param>
|
||||
/// <param name="dt"></param>
|
||||
static public void OrderFormList_Select(string opName, out DataTable dt)
|
||||
{
|
||||
dt = null;
|
||||
string sql = "exec 生产计划_派工订单_查询_工位执行 '" + opName + "'";
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 电子看板_装配零件_物料验证_查询 20131231
|
||||
/// </summary>
|
||||
/// <param name="opName">工位号</param>
|
||||
/// <param name="engineID">发动机号</param>
|
||||
/// <param name="dt"></param>
|
||||
static public bool PartMaterialVerify_Select(string opName, int engineTypeID, string engineType, out DataTable dt)
|
||||
{
|
||||
dt = null;
|
||||
string procedureName;
|
||||
procedureName = "电子看板_装配零件_临时表_查询";
|
||||
SqlParameter[] thisParms = new SqlParameter[3];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@产品型号代码", engineTypeID);
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@发动机型号", engineType);
|
||||
//thisParms[1] = new System.Data.SqlClient.SqlParameter("@发动机号", engineID);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 电子看板_工位机型_质量数据测量位置_查询_工作顺序
|
||||
/// </summary>
|
||||
/// <param name="opNum">工位号</param>
|
||||
/// <param name="EngineTypeID">产品型号代码</param>
|
||||
/// <param name="dt"></param>
|
||||
static public bool ShaftPositionSelect(string opNum, int EngineTypeID, out DataTable dt)
|
||||
{
|
||||
string procedureName = "电子看板_工位机型_质量数据测量位置_临时表_查询";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opNum);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@产品型号代码", EngineTypeID);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 电子看板_工位机型_物料检测测量位置_查询_物料检测
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
static public bool MaterialCheckSelect(string opName, out DataTable dt)
|
||||
{
|
||||
string procedureName = "电子看板_工位机型_物料检测测量位置_查询_物料检测";
|
||||
SqlParameter[] thisParms = new SqlParameter[1];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测量数据合格_查询
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="engineID"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
static public bool QualitySelect(string opName, string engineID, out DataTable dt)
|
||||
{
|
||||
string procedureName = "测量数据合格_查询";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@发动机号", engineID);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 启用拧紧
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="orderNum"></param>
|
||||
/// <returns></returns>
|
||||
static public bool IsBackWork_Add(string opName, int IsBackWork)
|
||||
{
|
||||
string procedureName = "测量数据工位_监控系统_拧紧与返修拧紧_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@是否启用备用模式", IsBackWork);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 将手动转线/申请下线/返修上线更新到数据库中
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="manualValue"></param>
|
||||
/// <param name="outlineValue"></param>
|
||||
/// <param name="repairVaule"></param>
|
||||
/// <returns></returns>
|
||||
static public bool updataCbxFunction_add(string opName, int manualValue, int outlineValue, int repairVaule)
|
||||
{
|
||||
string procedureName = "测量数据工位_监控系统_上线下线转线_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[4];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@申请下线", outlineValue);
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@返修上线", repairVaule);
|
||||
thisParms[3] = new System.Data.SqlClient.SqlParameter("@手动转线", manualValue);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测量数据工位_监控系统_订单号_增加
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="orderNum"></param>
|
||||
/// <returns></returns>
|
||||
static public bool OrderNum_Add(string opName, string orderNum)
|
||||
{
|
||||
string procedureName = "测量数据工位_监控系统_订单号_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@订单号", orderNum);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测量数据工位_监控系统_订单号_增加
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="orderNum"></param>
|
||||
/// <returns></returns>
|
||||
static public bool Insert_OnlineOutline(string opName, int orderNum)
|
||||
{
|
||||
string procedureName = "测量数据工位_监控系统_在线离线屏蔽_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@工位状态", orderNum);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 功能按钮-从数据库中更新在线/离线/屏蔽
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="tb"></param>
|
||||
public static void Init_OnlineOutline(string opname, out DataTable tb)
|
||||
{
|
||||
string sql = "SELECT [工位状态] FROM [dbo].[测量数据工位_监控系统_在线离线屏蔽] WHERE [工位号]='" + opname + "'";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
tb = null;
|
||||
DataAccess.ExecuteDataTable(sql, out tb);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 电子看板_工位机型_质量数据测量位置_查询_返修
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="engineTypeId"></param>
|
||||
/// <param name="engineType"></param>
|
||||
/// <param name="tb"></param>
|
||||
public static void Init_TreeData1(string opName, int engineTypeId, string engineType, out DataTable tb)
|
||||
{
|
||||
string sql = "SELECT [序号],[说明] FROM [dbo].[电子看板_工位机型_质量数据测量位置] WHERE [工位号]='" + opName + "' and [产品型号代码]=" + engineTypeId + " and [发动机型号]='" + engineType + "'";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
tb = null;
|
||||
DataAccess.ExecuteDataTable(sql, out tb);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 电子看板_工位机型_质量数据测量位置_查询_返修
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
static public bool Init_TreeData(string opName, out DataTable dt)
|
||||
{
|
||||
string procedureName = "电子看板_工位机型_质量数据测量位置_查询_返修";
|
||||
SqlParameter[] thisParms = new SqlParameter[1];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测量数据工位_监控系统_发动机型号_增加
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="enginetype"></param>
|
||||
/// <param name="enginetypeID"></param>
|
||||
/// <returns></returns>
|
||||
static public bool EngineNum_Add(string opName, string enginetype, int enginetypeID)
|
||||
{
|
||||
string procedureName = "测量数据工位_监控系统_发动机型号_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[3];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@发动机型号", enginetype);
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@产品型号代码", enginetypeID);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测量数据工位_监控系统_手动打印_增加
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="year"></param>
|
||||
/// <param name="month"></param>
|
||||
/// <param name="day"></param>
|
||||
/// <param name="num"></param>
|
||||
/// <returns></returns>
|
||||
public static bool OpName_MIS_Manual_Insert(string opName, int year, int month, int day, int num)
|
||||
{
|
||||
string produceName = "测量数据工位_监控系统_手动打印_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[5];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@年", year);
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@月", month);
|
||||
thisParms[3] = new System.Data.SqlClient.SqlParameter("@日", day);
|
||||
thisParms[4] = new System.Data.SqlClient.SqlParameter("@流水号", num);
|
||||
return DataAccess.ExecuteStoredProcedure(produceName, ref thisParms);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测量数据工位_监控系统_订单号_查询
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static bool OpName_MIS_OrderForm_Select(string opName, out DataTable dt)
|
||||
{
|
||||
string sql = "select top 1 订单号 from 测量数据工位_监控系统_订单号 where 工位号='" + opName + "'";
|
||||
return DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测量数据工位_监控系统_发动机型号_查询
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static bool OpName_MIS_EngineType_Select(string opName, out DataTable dt)
|
||||
{
|
||||
string sql = "select top 1 产品型号代码,发动机型号 from 测量数据工位_监控系统_发动机型号 where 工位号='" + opName + "'";
|
||||
return DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测量数据工位_监控系统_系统初始化
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <returns></returns>
|
||||
public static bool WebLoginIn(string opName)
|
||||
{
|
||||
string produceName = "测量数据工位_监控系统_系统初始化";
|
||||
SqlParameter[] thisParms = new SqlParameter[1];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
return DataAccess.ExecuteStoredProcedure(produceName, ref thisParms);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得工位对应的返修工位号
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="tb"></param>
|
||||
public static void GetopRepairName(string opname, out DataTable tb)
|
||||
{
|
||||
string sql = "SELECT TOP 1 [返修工位号] FROM [dbo].[MES_计划BOM_工位与名称_视图] WHERE [工位号]='" + opname + "'";
|
||||
//string connectionString =ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
tb = null;
|
||||
DataAccess.ExecuteDataTable(sql, out tb);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测量数据工位_监控系统_离线返修_增加
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="outLineRepair1"></param>
|
||||
/// <returns></returns>
|
||||
static public bool AskOutLineRepair(string opName, int outLineRepair1)
|
||||
{
|
||||
string procedureName = "测量数据工位_监控系统_离线返修_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@离线返修", outLineRepair1);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 电子看板_装配零件_修改_零件批号
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="engineType"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static bool Material_Betch_Update(string opName, string engineType, DataTable dt)
|
||||
{
|
||||
string produceName = "电子看板_装配零件_修改_零件批号";
|
||||
SqlParameter[] thisParms = new SqlParameter[5];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@零件图号", SqlDbType.NVarChar, 50, "零件图号");
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@零件批号", SqlDbType.NVarChar, 50, "零件批号");
|
||||
thisParms[3] = new System.Data.SqlClient.SqlParameter("@生产厂家", SqlDbType.NVarChar, 50, "生产厂家");
|
||||
thisParms[4] = new System.Data.SqlClient.SqlParameter("@发动机型号", engineType);
|
||||
return DataAccess.ExecuteStoredProcedure(produceName, ref thisParms, dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 电子看板_工位机型_质量数据测量位置_临时表_修改_返修
|
||||
/// </summary>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static bool Insert_selectTreeData(DataTable dt)
|
||||
{
|
||||
string produceName = "电子看板_工位机型_质量数据测量位置_临时表_修改_返修";
|
||||
SqlParameter[] thisParms = new SqlParameter[3];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", SqlDbType.NVarChar, 50, "工位号");
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@产品型号代码", SqlDbType.Int, 4, "产品型号代码");
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@序号", SqlDbType.Int, 4, "序号");
|
||||
return DataAccess.ExecuteStoredProcedure(produceName, ref thisParms, dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返修上线插入界面选择的工位合格标志
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="tb"></param>
|
||||
public static bool Insert_RepairPartLoad_OpInfo(string opname, string zbz_parameter, string csq_parameter, string zzx_parameter, string jcx_parameter)
|
||||
{
|
||||
string sql = "UPDATE [电子看板_发动机号_线首工位_工位合格标志] SET [轴部装线]=" + zbz_parameter
|
||||
+ " ,[差速器线]=" + csq_parameter
|
||||
+ " ,[总装线]=" + zzx_parameter
|
||||
+ " ,[检测线]=" + jcx_parameter
|
||||
+ " WHERE [工位号]='" + opname + "'";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
return DataAccess.ExecuteSQL(sql);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返修上线插入界面选择的工位合格标志
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="dt"></param>
|
||||
public static bool Select_RepairLoadBtn(string opname, out DataTable dt)
|
||||
{
|
||||
string sql = "SELECT [轴部装线],[差速器线],[总装线],[检测线] FROM [电子看板_发动机号_线首工位_工位合格标志] WHERE 工位号='" + opname + "'";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
return DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获得返修数量信息
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static bool OpName_MIS_RepiareNum_Select(string opName, out DataTable dt)
|
||||
{
|
||||
string sql = "select top 1 设置数量,当前数量 from 测量数据工位_监控系统_批量返修 where 工位号='" + opName + "'";
|
||||
return DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 插入返修数量信息
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="RepiareNum"></param>
|
||||
/// <returns></returns>
|
||||
static public bool Insert_RepiareNum(string opName, int RepiareNum)
|
||||
{
|
||||
string procedureName = "测量数据工位_监控系统_批量返修_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@返修数量", RepiareNum);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 生产计划_派工订单_查询_工位执行_完工判断
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="isCompleted"></param>
|
||||
/// <param name="num_plan"></param>
|
||||
/// <param name="num_complete"></param>
|
||||
public static void Select_OrderFormList_OrderComplete(string opName, out int isCompleted, out int num_plan, out int num_complete)
|
||||
{
|
||||
isCompleted = 0;//订单数量是否完全上线
|
||||
num_plan = 0;//计划数量
|
||||
num_complete = 0;//上线数量
|
||||
try
|
||||
{
|
||||
string procedureName;
|
||||
procedureName = "生产计划_派工订单_查询_工位执行_完工判断";
|
||||
SqlParameter[] thisParms = new SqlParameter[4];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@ISCOMPLETE", SqlDbType.Int, 4, "ISCOMPLETE");
|
||||
thisParms[1].Direction = ParameterDirection.Output;
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@NUM_PLAN", SqlDbType.Int, 4, "NUM_PLAN");
|
||||
thisParms[2].Direction = ParameterDirection.Output;
|
||||
thisParms[3] = new System.Data.SqlClient.SqlParameter("@NUM_COMPLETE", SqlDbType.Int, 4, "NUM_COMPLETE");
|
||||
thisParms[3].Direction = ParameterDirection.Output;
|
||||
|
||||
DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms);
|
||||
if (thisParms[1].Value != null && thisParms[2].Value != null && thisParms[3].Value != null)
|
||||
{
|
||||
isCompleted = Convert.ToInt32(thisParms[1].Value);
|
||||
num_plan = Convert.ToInt32(thisParms[2].Value);
|
||||
num_complete = Convert.ToInt32(thisParms[3].Value);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
isCompleted = 0;
|
||||
num_plan = 0;
|
||||
num_complete = 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// WEB根据工位号和线外扫描主物料查询质量数据合格索引(包括了分线的信息、存储过程中根据工位类型区分) 20170318 corbin
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="lineout_barcode"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static bool QualityDataButton_bgColor_alert_Select(string opname, out DataTable dt)
|
||||
{
|
||||
string procedureName = "显示测量数据_工位号_根据线外工位验证_查询";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[1];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
//sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@发动机号", lineout_barcode);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 显示物料数据_根据_工位号_发动机型号_查询_分线数据
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
static public bool MaterialDataSelect_F_EnergineID(string opname, string energineID, out DataTable dt)
|
||||
{
|
||||
string procedureName;
|
||||
procedureName = "显示物料数据_根据_工位号_发动机型号_查询_分线数据";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@发动机号", energineID);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,684 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public partial class MaterialPull
|
||||
{
|
||||
#region
|
||||
//---------------------------------MES.Function中的----------------------------------
|
||||
/// <summary>
|
||||
/// 物料拉动_工位物料需求单_转移_查询_单号
|
||||
/// </summary>
|
||||
/// <param name="opName">工位号</param>
|
||||
/// <param name="opName_Checked">1</param>
|
||||
/// <param name="dt"></param>
|
||||
static public void MaterialPush_ListNumer_Select(int orderNum_Check, string orderNum, int opName_Checked, string opName,int type_Check,string type, out DataTable dt)
|
||||
{
|
||||
dt = null;
|
||||
string sql = "物料拉动_工位物料需求单_转移_查询_单号 " + orderNum_Check + ",'" + orderNum + "'," + opName_Checked + ",'" + opName + "'," + type_Check + ",'" + type+"'";
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 物料拉动_工位物料需求单_转移_查询
|
||||
/// </summary>
|
||||
/// <param name="opName">工位号</param>
|
||||
/// <param name="dt"></param>
|
||||
static public void MaterialPush_Details_Select(string listNumber,string opName, out DataTable dt)
|
||||
{
|
||||
dt = null;
|
||||
string sql = "物料拉动_工位物料需求单_转移_查询 '" + listNumber + "','" + opName + "'";
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 物料拉动_线边库存_接受物料_物料需求单
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="DistributionNum"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool DistributionNum(string opName, string DistributionNum)
|
||||
{
|
||||
string produceName = "物料拉动_线边库存_接受物料_物料需求单";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@配送单号", DistributionNum);
|
||||
return DataAccess.ExecuteStoredProcedure(produceName, ref thisParms);
|
||||
}
|
||||
/// <summary>
|
||||
/// 配送单实时同步表数据增加
|
||||
/// </summary>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
static public bool MaterialPull_DocumentInfo_Add(DataTable dt)
|
||||
{
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string produceName = "AMES_物料拉动_配送物料接收_配送物料信息_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[12];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@仓库地址", SqlDbType.NVarChar, 50, "WAREHOUSE_CODE");
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@创建时间", SqlDbType.DateTime, 50, "CREATION_DATE");
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@订单号", SqlDbType.NVarChar, 50, "ORDER_NUMBER");
|
||||
thisParms[3] = new System.Data.SqlClient.SqlParameter("@工位号", SqlDbType.NVarChar, 50, "DISTRIBUTE_WKC_CODE");
|
||||
thisParms[4] = new System.Data.SqlClient.SqlParameter("@供应商代码", SqlDbType.NVarChar, 50, "SUPPLIER_CODE");
|
||||
thisParms[5] = new System.Data.SqlClient.SqlParameter("@卡片条码", SqlDbType.NVarChar, 50, "BARCODE");
|
||||
thisParms[6] = new System.Data.SqlClient.SqlParameter("@类型", SqlDbType.NVarChar, 50, "IS_DOCUMENT");
|
||||
thisParms[7] = new System.Data.SqlClient.SqlParameter("@配送单号", SqlDbType.NVarChar, 50, "DOCUMENT_NUM");
|
||||
thisParms[8] = new System.Data.SqlClient.SqlParameter("@配送数量", SqlDbType.Int, 50, "QUANTITY");
|
||||
thisParms[9] = new System.Data.SqlClient.SqlParameter("@批次号", SqlDbType.NVarChar, 50, "LOT_NUMBER");
|
||||
thisParms[10] = new System.Data.SqlClient.SqlParameter("@条码数量", SqlDbType.Int, 50, "BARCODE_QTY");
|
||||
thisParms[11] = new System.Data.SqlClient.SqlParameter("@物料号", SqlDbType.NVarChar, 50, "ITEM_CODE");
|
||||
if (DataAccess.ExecuteStoredProcedure(produceName, ref thisParms, dt))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取卡片一览信息查询
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="itemCode"></param>
|
||||
/// <param name="dt"></param>
|
||||
public static bool getMaterialNumInfo(string opName, string itemCode, out DataTable dt)
|
||||
{
|
||||
string errorMessage;
|
||||
string sql;
|
||||
//string connectionString_MES = ApplicationConfig.ConnectionString;
|
||||
sql = "SELECT 线边库存流水号,订单号,工位号,物料号,卡片条码,批次号,当前数量 AS '库存数量',卡片数量,使用标志 FROM dbo.AMES_物料拉动_线边库存 WHERE 工位号='" + opName + "' AND 物料号='" + itemCode + "' ORDER BY 使用标志 DESC";
|
||||
return DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
/// <summary>
|
||||
/// 物料号一览信息查询
|
||||
/// </summary>
|
||||
/// <param name="opcnum"></param>
|
||||
/// <param name="dt"></param>
|
||||
public static void InitMaterial_Dialog_MaterialNum(string opcnum, out DataTable dt)
|
||||
{
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
string sql;
|
||||
dt = null;
|
||||
sql = "SELECT DISTINCT 物料号 FROM dbo.AMES_物料拉动_线边库存 WHERE 工位号='" + opcnum + "' GROUP BY 物料号 ORDER BY 物料号 ";
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 查询班次
|
||||
/// </summary>
|
||||
/// <param name="tb"></param>
|
||||
public static void Getclasses(out DataTable tb)
|
||||
{
|
||||
string sql = "SELECT [班次代码],[班次描述] FROM [dbo].[AMES_物料拉动_人员班组管理_班次信息] ORDER BY 班次代码 ";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
tb = null;
|
||||
DataAccess.ExecuteDataTable(sql, out tb);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查询打卡上线人数
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="dt"></param>
|
||||
public static void Search_OnlineInfo(string opname, out DataTable dt)
|
||||
{
|
||||
string sql = "SELECT [工位号] ,[操作者工号],[操作者姓名] ,[班次] ,[操作时间] FROM [dbo].[AMES_物料拉动_测量数据工位_监控系统_员工在线信息表] WHERE [工位号]='" + opname + "'";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
dt = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
public static void ClassName_Select(string ClassCode, out DataTable dt)
|
||||
{
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
string sql;
|
||||
sql = "SELECT top 1 班次描述 FROM AMES_物料拉动_人员班组管理_班次信息 WHERE [班次代码]='" + ClassCode + "'";
|
||||
dt = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
public static bool ConfirmClass( out string confirmclass)
|
||||
{
|
||||
string procedureName = "AMES_物料拉动_人员班组管理_班次信息_查询";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
confirmclass = "";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[1];
|
||||
sqlParameters[0] = new SqlParameter("@班次", SqlDbType.NVarChar, 50);
|
||||
sqlParameters[0].Direction = ParameterDirection.Output;
|
||||
if (DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters))
|
||||
{
|
||||
confirmclass = sqlParameters[0].Value.ToString();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// [测量数据工位_监控系统_员工在线信息表_增加]
|
||||
/// </summary>
|
||||
/// <param name="OperatorName"></param>
|
||||
/// <param name="Password"></param>
|
||||
/// <param name="Classes"></param>
|
||||
/// <param name="Msg"></param>
|
||||
/// <returns></returns>
|
||||
public static bool Insert_WorkingHours(string Opname, string OperatorName, string Password, string Classes, out string Msg)
|
||||
{
|
||||
string procedureName = "AMES_物料拉动_测量数据工位_监控系统_员工在线信息表_员工上线";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
Msg = "";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[5];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@操作者工号", OperatorName);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@工位号", Opname);
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@员工密码", Password);
|
||||
sqlParameters[3] = new System.Data.SqlClient.SqlParameter("@班次", Classes);
|
||||
sqlParameters[4] = new SqlParameter("@Result", SqlDbType.NVarChar, 50);
|
||||
sqlParameters[4].Direction = ParameterDirection.Output;
|
||||
|
||||
if (DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters))
|
||||
{
|
||||
Msg = sqlParameters[4].Value.ToString();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region
|
||||
//---------------------------------login中的----------------------------------
|
||||
/// <summary>
|
||||
/// 查询工作中心
|
||||
/// </summary>
|
||||
/// <param name="barcode"></param>
|
||||
/// <param name="dt"></param>
|
||||
public static DataTable DirectUpload_WorkCenterCode_Select()
|
||||
{
|
||||
DataTable dt = null;
|
||||
string sql;
|
||||
sql = "SELECT top 1 工作中心 FROM dbo.AMES_物料拉动_MES_工厂与工作中心 ";
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
return dt;
|
||||
}
|
||||
|
||||
//新增直供上线
|
||||
public static bool DirectUpload_VerifyTempTable_Delete(string opName)
|
||||
{
|
||||
string produceName = "AMES_物料拉动_直供上线_验证临时表_删除";
|
||||
SqlParameter[] thisParms = new SqlParameter[1];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
|
||||
return DataAccess.ExecuteStoredProcedure(produceName, ref thisParms);
|
||||
}
|
||||
//新增直供上线
|
||||
public static bool DirectUpload_VerifyTempTable_Add(string opName, DataTable dt)
|
||||
{
|
||||
string produceName = "AMES_物料拉动_直供上线_验证临时表_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[18];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@仓库地址", SqlDbType.NVarChar, 50, "WAREHOUSE_CODE");
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@是否标准", SqlDbType.NVarChar, 50, "NOTIFICATION_TYPE_MEAN");
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@允许接收", SqlDbType.NVarChar, 50, "IS_NEED_VALIDATING");
|
||||
thisParms[3] = new System.Data.SqlClient.SqlParameter("@工厂", SqlDbType.NVarChar, 50, "PLANT_ID");
|
||||
thisParms[4] = new System.Data.SqlClient.SqlParameter("@工作中心", SqlDbType.NVarChar, 50, "PROD_LINE_CODE");
|
||||
thisParms[5] = new System.Data.SqlClient.SqlParameter("@卡片条码", SqlDbType.NVarChar, 50, "SGL_CODE");
|
||||
thisParms[6] = new System.Data.SqlClient.SqlParameter("@物料号", SqlDbType.NVarChar, 50, "ITEM_CODE");
|
||||
thisParms[7] = new System.Data.SqlClient.SqlParameter("@物料描述", SqlDbType.NVarChar, 50, "DESCRIPTIONS");
|
||||
thisParms[8] = new System.Data.SqlClient.SqlParameter("@卡片数量", SqlDbType.NVarChar, 50, "QUANTITY");
|
||||
thisParms[9] = new System.Data.SqlClient.SqlParameter("@批次号", SqlDbType.NVarChar, 50, "LOT_NUMBER");
|
||||
thisParms[10] = new System.Data.SqlClient.SqlParameter("@供应商代码", SqlDbType.NVarChar, 50, "SUPPLIER_CODE");
|
||||
thisParms[11] = new System.Data.SqlClient.SqlParameter("@工位号", SqlDbType.NVarChar, 50, "DISTRIBUTE_WKC_CODE");
|
||||
thisParms[12] = new System.Data.SqlClient.SqlParameter("@配送单号", SqlDbType.NVarChar, 50, "ATTRIBUTE9");
|
||||
thisParms[13] = new System.Data.SqlClient.SqlParameter("@订单号", SqlDbType.NVarChar, 50, "ORDER_NUMBER");
|
||||
thisParms[14] = new System.Data.SqlClient.SqlParameter("@线边地址", SqlDbType.NVarChar, 50, "WAREHOUSE_CODE1");
|
||||
thisParms[15] = new System.Data.SqlClient.SqlParameter("@创建时间", SqlDbType.NVarChar, 50, "CREATION_DATE");
|
||||
thisParms[16] = new System.Data.SqlClient.SqlParameter("@条码状态", SqlDbType.NVarChar, 50, "STATUS");
|
||||
thisParms[17] = new System.Data.SqlClient.SqlParameter("@验证工位号", opName);
|
||||
return DataAccess.ExecuteStoredProcedure(produceName, ref thisParms, dt);
|
||||
}
|
||||
//新增直供上线
|
||||
public static bool DirectUpload_VerifyTempTable_Select(string opName, string document_Num, out string process_Message, out DataTable dt)
|
||||
{
|
||||
process_Message = "";
|
||||
string procedureName = "AMES_物料拉动_直供上线_验证临时表_查询_送货单行";
|
||||
SqlParameter[] thisParms = new SqlParameter[3];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@配送单号", document_Num);
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@PROCESS_MESSGE", SqlDbType.NVarChar, 200);
|
||||
thisParms[2].Direction = ParameterDirection.Output;
|
||||
if (DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms, out dt))
|
||||
{
|
||||
process_Message = thisParms[2].Value.ToString();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool DirectUpload_VerifyTempTable_Barcode_Select(string opName, string document_Num, string barcode, out string process_Message, out DataTable dt)
|
||||
{
|
||||
process_Message = "";
|
||||
string procedureName = "AMES_物料拉动_直供上线_验证临时表_查询_料箱标签";
|
||||
SqlParameter[] thisParms = new SqlParameter[4];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@配送单号", document_Num);
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@卡片条码", barcode);
|
||||
thisParms[3] = new System.Data.SqlClient.SqlParameter("@PROCESS_MESSGE", SqlDbType.NVarChar, 200);
|
||||
thisParms[3].Direction = ParameterDirection.Output;
|
||||
if (DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms, out dt))
|
||||
{
|
||||
process_Message = thisParms[3].Value.ToString();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool DirectUpload_VerifyTempTable_VerifyOK(string opName, string document_Num, out string process_Message)
|
||||
{
|
||||
process_Message = "";
|
||||
string procedureName = "AMES_物料拉动_直供上线_验证临时表_验证成功";
|
||||
SqlParameter[] thisParms = new SqlParameter[3];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@配送单号", document_Num);
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@PROCESS_MESSGE", SqlDbType.NVarChar, 200);
|
||||
thisParms[2].Direction = ParameterDirection.Output;
|
||||
if (DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms))
|
||||
{
|
||||
process_Message = thisParms[2].Value.ToString();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static bool DirectUpload_ReceiveRecord_Select(string opName, string document_Num, string groupId, out DataTable dt)
|
||||
{
|
||||
|
||||
string procedureName = "AMES_物料拉动_直供上线_接收记录_查询";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@配送单号", document_Num);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@GroupID", groupId);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms, out dt);
|
||||
}
|
||||
public static bool DirectUpload_VerifyTempTable_NoticeOK(string opName, string document_Num, string groupId, int isOk, string outResult)
|
||||
{
|
||||
string produceName = "AMES_物料拉动_直供上线_验证临时表_调用成功";
|
||||
SqlParameter[] thisParms = new SqlParameter[5];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@配送单号", document_Num);
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@GROUPID", groupId);
|
||||
thisParms[3] = new System.Data.SqlClient.SqlParameter("@是否成功", isOk);
|
||||
thisParms[4] = new System.Data.SqlClient.SqlParameter("@PROCESS_MESSGE", outResult);
|
||||
return DataAccess.ExecuteStoredProcedure(produceName, ref thisParms);
|
||||
}
|
||||
|
||||
public static DataTable DirectUpload_OpName_Select(string opName)
|
||||
{
|
||||
DataTable dt = null;
|
||||
string sql;
|
||||
sql = "SELECT top 1 指南工位号 FROM MES_计划BOM_工位与名称 WHERE 工位号='" + opName + "'";
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
return dt;
|
||||
}
|
||||
/// <summary>
|
||||
/// 物料拉动_库存盘点_物料号查询
|
||||
/// </summary>
|
||||
/// <param name="tb"></param>
|
||||
|
||||
public static void Init_MaterialNumCombobox(string Opname, out DataTable dt_MaterialNum)
|
||||
{
|
||||
string sql = "SELECT DISTINCT ROW_NUMBER() OVER (ORDER BY 物料号 )AS ID,[物料号] FROM AMES_物料拉动_线边库存 WHERE 工位号='" + Opname + "' GROUP BY 物料号 ORDER BY 物料号 ";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
dt_MaterialNum = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt_MaterialNum);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 物料拉动_库存盘点_消耗
|
||||
/// </summary>
|
||||
/// <param name="OrderNumber"></param>
|
||||
/// <param name="ConsumeNum"></param>
|
||||
/// <returns></returns>
|
||||
public static bool Consume_StockCount(string OrderNumber, string ConsumeNum, string Opname, string CardNum)
|
||||
{
|
||||
string procedureName = "[AMES_物料拉动_线边库存_消耗_人工盘点]";
|
||||
//string connectionString = ApplicationConfig.ConnectionString_MES;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[4];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@订单号", OrderNumber);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@消耗数量", ConsumeNum);
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@盘点工位号", Opname);
|
||||
sqlParameters[3] = new System.Data.SqlClient.SqlParameter("@卡片条码", CardNum);
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters);
|
||||
if (isOK)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static public bool MaterialPull_DocumentInfo_ReceiveRecord_Select(string document_Num, string groupId, out DataTable dt)
|
||||
{
|
||||
//此存储过程与直供上线通用
|
||||
string procedureName = "AMES_物料拉动_直供上线_接收记录_查询";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@配送单号", document_Num);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@GroupID", groupId);
|
||||
if (DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms, out dt))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
//调用成功
|
||||
static public bool MaterialPull_DocumentInfo_NoticeOK(string document_Num, string groupId, int isOk, string outResult)
|
||||
{
|
||||
string process_Message = "";
|
||||
string produceName = "AMES_物料拉动_配送物料接收_调用成功";
|
||||
SqlParameter[] thisParms = new SqlParameter[4];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@配送单号", document_Num);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@GROUPID", groupId);
|
||||
thisParms[2] = new System.Data.SqlClient.SqlParameter("@是否成功", isOk);
|
||||
thisParms[3] = new System.Data.SqlClient.SqlParameter("@PROCESS_MESSGE", outResult);
|
||||
if (DataAccess.ExecuteStoredProcedure(produceName, ref thisParms))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public static bool DocumentOutLineInfo_Select(string distributionNum, out DataTable dt)
|
||||
{
|
||||
string sql;
|
||||
sql = "SELECT * FROM AMES_物料拉动_线边库存_备份 WHERE 配送单号='" + distributionNum + "'";
|
||||
dt = null;
|
||||
return DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
|
||||
public static bool WorkStationInfo_Select(out DataTable dt)
|
||||
{
|
||||
string sql;
|
||||
sql = "SELECT top 1 工作中心 FROM AMES_物料拉动_MES_工厂与工作中心 ";
|
||||
return DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
//物料拉动_库存盘点_初始化 DataGrid
|
||||
public static void init_StockCount(string opname, string MaterialNum, out DataTable dt_StockCount)
|
||||
{
|
||||
string sql = "SELECT DISTINCT A.线边库存流水号,A.工位号, A.订单号,A.当前数量, A.物料号, B.物料描述, A.卡片条码 FROM AMES_物料拉动_线边库存 as A INNER JOIN dbo.AMES_物料拉动_生产计划_派工订单BOM_分配到工位 AS B ON A.物料号 = B.物料号 where A.工位号='" + opname + "'and A.物料号='" + MaterialNum + "' ORDER BY [物料号]";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
dt_StockCount = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt_StockCount);
|
||||
}
|
||||
/// <summary>
|
||||
/// 物料拉动_库存盘点_订单号查询
|
||||
/// </summary>
|
||||
/// <param name="dt_OrderNumber"></param>
|
||||
public static void Init_FinalOrderNumberCombobox(out DataTable dt_OrderNumber)
|
||||
{
|
||||
string dateString = DateTime.Now.ToString("yyyy-MM-01");
|
||||
string sql = "SELECT DISTINCT ROW_NUMBER() OVER (ORDER BY 订单号 )AS ID,订单号 FROM [dbo].[AMES_物料拉动_生产计划_派工订单完工统计] WHERE 操作时间 > '" + dateString + "' GROUP BY 订单号 ORDER BY [订单号]";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
dt_OrderNumber = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt_OrderNumber);
|
||||
}
|
||||
/// <summary>
|
||||
/// FTT总成编号查询
|
||||
/// </summary>
|
||||
/// <param name="dt_EngineNum"></param>
|
||||
public static void Init_FinalListCombobox(string opName, out DataTable dt_EngineNum)
|
||||
{
|
||||
string sql;
|
||||
sql = "SELECT TOP 20 ROW_NUMBER() OVER (ORDER BY 发动机号 )AS ID, 发动机号 FROM [dbo].[测量数据发动机在线状态_跟踪发动机条码状态]" + "WHERE 工位号='" + opName + "' ORDER BY 发动机号 DESC";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
dt_EngineNum = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt_EngineNum);
|
||||
}
|
||||
/// <summary>
|
||||
/// 缺陷代码查询
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="dt_EngineNum"></param>
|
||||
public static void Init_DefectCodeCombobox(string opName, out DataTable dt_DefectCode)
|
||||
{
|
||||
string sql;
|
||||
sql = "SELECT [编号],[编号描述] FROM [dbo].[ANDON_类型_编号]where 工位号='" + opName + "'AND [安东类型代码]=2 ";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
dt_DefectCode = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt_DefectCode);
|
||||
}
|
||||
/// <summary>
|
||||
/// 质量管理_质量FTT_不合格品补录_临时表_增加
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="andoTypeCode"></param>
|
||||
/// <param name="EngineNum"></param>
|
||||
/// <param name="group_Number"></param>
|
||||
/// <param name="defect_Number"></param>
|
||||
/// <param name="ProblemDate"></param>
|
||||
/// <param name="callCount"></param>
|
||||
/// <param name="Msg"></param>
|
||||
/// <returns></returns>
|
||||
public static bool Insert_FTTInformation(string opname, string andoTypeCode, string EngineNum, string group_Number, string defect_Number, string ProblemDate, int callCount, out string Msg)
|
||||
{
|
||||
string procedureName = "质量管理_质量FTT_不合格品补录_临时表_增加";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
Msg = "";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[8];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@代码组", group_Number);
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@代码", defect_Number);
|
||||
sqlParameters[3] = new System.Data.SqlClient.SqlParameter("@呼叫数量", callCount);
|
||||
sqlParameters[4] = new System.Data.SqlClient.SqlParameter("@安东类型代码", andoTypeCode);
|
||||
sqlParameters[5] = new System.Data.SqlClient.SqlParameter("@工件编号", EngineNum);
|
||||
sqlParameters[6] = new System.Data.SqlClient.SqlParameter("@问题日期", ProblemDate);
|
||||
sqlParameters[7] = new SqlParameter("@Msg", SqlDbType.NVarChar, 50);
|
||||
sqlParameters[7].Direction = ParameterDirection.Output;
|
||||
|
||||
if (DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters))
|
||||
{
|
||||
Msg = sqlParameters[7].Value.ToString();
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
|
||||
}
|
||||
|
||||
static public bool MaterialPull_DocumentInfo_CreateRecord(string document_Num, out string process_Message)
|
||||
{
|
||||
process_Message = "";
|
||||
string procedureName = "AMES_物料拉动_配送物料接收_产生接收记录";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@配送单号", document_Num);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@PROCESS_MESSGE", SqlDbType.NVarChar, 200);
|
||||
thisParms[1].Direction = ParameterDirection.Output;
|
||||
if (DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms))
|
||||
{
|
||||
process_Message = thisParms[1].Value.ToString();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 校验发动机号
|
||||
/// </summary>
|
||||
/// <param name="Final_EngineNum"></param>
|
||||
/// <param name="dt_DefectCode"></param>
|
||||
public static void Confirm_EngineNum(string Final_EngineNum, string DefectGroup, string DefectCode, string Opname, out DataTable dt_DefectCode)
|
||||
{
|
||||
string sql;
|
||||
sql = " SELECT COUNT(*)FROM 质量管理_质量FTT_不合格品_临时表 WHERE 产品序列号 ='" + Final_EngineNum + "' AND 代码='" + DefectCode + "' AND 代码组='" + DefectGroup + "' AND 工位号='" + Opname + "' ";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
dt_DefectCode = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt_DefectCode);
|
||||
}
|
||||
/// 查询指南工位号
|
||||
/// </summary>
|
||||
/// <param name="Final_EngineNum"></param>
|
||||
/// <param name="dt_DefectCode"></param>
|
||||
public static void OpName_Convert_Select(string opname, out DataTable dt_ConvertOpname)
|
||||
{
|
||||
|
||||
string errorMessage;
|
||||
string sql;
|
||||
sql = " SELECT 指南工位号 FROM MES_计划BOM_工位与名称 WHERE 工位号='" + opname + "' ";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
dt_ConvertOpname = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt_ConvertOpname);
|
||||
|
||||
}
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// 订单机型查询
|
||||
/// </summary>
|
||||
/// <param name="startTime"></param>
|
||||
/// <param name="endTime"></param>
|
||||
/// <param name="dt"></param>
|
||||
public static void Init_OrderNum_Query(string startTime, string endTime, out DataTable dt)
|
||||
{
|
||||
string sql;
|
||||
sql = "SELECT [订单号] ,[产品型号] FROM dbo.AMES_物料拉动_生产计划_派工订单_订单历史 where 计划开始时间>='" + startTime + "'and 计划开始时间<='" + endTime + "' ORDER BY 计划开始时间";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
dt = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
/// <summary>
|
||||
/// 工位工时补报统计
|
||||
/// </summary>
|
||||
/// <param name="orderNum"></param>
|
||||
/// <param name="Opname"></param>
|
||||
/// <param name="dt"></param>
|
||||
public static void Init_Worktime(string orderNum, string Opname, int Num, out DataTable dt)
|
||||
{
|
||||
string procedureName;
|
||||
procedureName = "AMES_物料拉动_生产计划_派工订单完工统计_工时统计";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[3];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@订单号", orderNum);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@工位号", Opname);
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@Workplace", Num);
|
||||
DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
public static void workTime_CompleteCount(string OrderNum, out DataTable dt)
|
||||
{
|
||||
string sql = "SELECT SUM(报工数量) FROM [dbo].[测量数据发动机在线状态_跟踪发动机条码状态] WHERE [订单号]='" + OrderNum + "'AND [工位标识]='O' AND [使用标志]='1' AND 是否禁用=0";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
dt = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
public static void init_Statistics(string orderNum, string Opname, out DataTable dt)
|
||||
{
|
||||
string procedureName;
|
||||
procedureName = "AMES_物料拉动_测量数据发动机在线状态_跟踪发动机条码状态_工时补报统计";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@订单号", orderNum);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@工位号", Opname);
|
||||
|
||||
DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
/// <summary>
|
||||
/// 校验工时补录人员[MES_用户管理_人员]
|
||||
/// </summary>
|
||||
/// <param name="OperatorName"></param>
|
||||
/// <param name="dt"></param>
|
||||
public static void Confirm_Person(string OperatorName, out DataTable dt)
|
||||
{
|
||||
string sql = "SELECT COUNT(*) FROM [dbo].[MES_用户管理_人员] WHERE [用户名]='" + OperatorName + "'";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
dt = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
/// <summary>
|
||||
/// AMES_物料拉动_生产计划_派工订单_查询_根据订单
|
||||
/// </summary>
|
||||
/// <param name="orderNum"></param>
|
||||
/// <param name="dt"></param>
|
||||
public static void Init_Ordernum_data(string orderNum, out DataTable dt)
|
||||
{
|
||||
string procedureName;
|
||||
procedureName = "AMES_物料拉动_生产计划_派工订单_查询_根据订单";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[1];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@订单号", orderNum);
|
||||
DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
|
||||
public static void ClassCode_Select(string ClassName, out DataTable dt)
|
||||
{
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
string sql;
|
||||
sql = "SELECT top 1 班次代码 FROM AMES_物料拉动_人员班组管理_班次信息 WHERE [班次描述]='" + ClassName + "'";
|
||||
dt = null;
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
|
||||
public static bool Workinghours_Insert(string OrderNum, string EngineType, string Opname, int Count, string OperatorName, string Classes, string UploadTime)
|
||||
{
|
||||
string procedureName = "AMES_物料拉动_测量数据发动机在线状态_跟踪发动机条码状态_工时补报_增加";
|
||||
//string connectionString = ApplicationConfig.ConnectionString_MES;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[7];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@订单号", OrderNum);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@发动机型号", EngineType);
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@工位号", Opname);
|
||||
sqlParameters[3] = new System.Data.SqlClient.SqlParameter("@报工数量", Count);
|
||||
sqlParameters[4] = new System.Data.SqlClient.SqlParameter("@操作者工号", OperatorName);
|
||||
sqlParameters[5] = new System.Data.SqlClient.SqlParameter("@班次", Classes);
|
||||
sqlParameters[6] = new System.Data.SqlClient.SqlParameter("@报工时间", UploadTime);
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters);
|
||||
if (isOK)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 物料拉动工位库存查询
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="itemCode"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static void getWorkStationMaterialInfo(string opName, out DataTable dt)
|
||||
{
|
||||
string procedureName;
|
||||
procedureName = "AMES_电子看板_装配零件_库存信息_查询";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[1];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
748
Common/07WebBusinessFacade/BusinessFacade/Web/MES.cs
Normal file
748
Common/07WebBusinessFacade/BusinessFacade/Web/MES.cs
Normal file
@@ -0,0 +1,748 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public partial class MES
|
||||
{
|
||||
/// <summary>
|
||||
///电子看板_发动机号_合格放行_记录_增加
|
||||
/// </summary>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static bool InsertRecord_ComfirmOkGO(string opName, string userName, string type)
|
||||
{
|
||||
string procedureName = "电子看板_发动机号_合格放行_记录_增加";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[3];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
sqlParameters[0].Direction = ParameterDirection.Input;
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@放行者工号", userName);
|
||||
sqlParameters[1].Direction = ParameterDirection.Input;
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@放行类别", type);
|
||||
sqlParameters[2].Direction = ParameterDirection.Input;
|
||||
bool isOK;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters);
|
||||
if (isOK)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 操作指南-手动转线-增加
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="Cbx_ManualTurnLine"></param>
|
||||
/// <returns></returns>
|
||||
public static bool ManualTurnLine_Insert(string opname, int Cbx_ManualTurnLine)
|
||||
{
|
||||
|
||||
string procedureName = "测量数据工位_监控系统_手动转线_增加";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[0].Direction = ParameterDirection.Input;
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@是否启用转线", Cbx_ManualTurnLine);
|
||||
sqlParameters[1].Direction = ParameterDirection.Input;
|
||||
bool isOK;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters);
|
||||
if (isOK)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 操作指南-离线返修-增加
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="Cbx_ManualTurnLine"></param>
|
||||
/// <returns></returns>
|
||||
public static bool OutLineRepair_Insert(string opname, int Cbx_OutLineRepair)
|
||||
{
|
||||
|
||||
string procedureName = "测量数据工位_监控系统_离线返修_增加";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[0].Direction = ParameterDirection.Input;
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@离线返修", Cbx_OutLineRepair);
|
||||
sqlParameters[1].Direction = ParameterDirection.Input;
|
||||
bool isOK;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters);
|
||||
if (isOK)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 显示测量数据_工位号_根据发动机型号_查询
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="engineID"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
static public bool QualityDataSelect_engineID(string opName, string engineID, out DataTable dt)
|
||||
{
|
||||
string procedureName;
|
||||
procedureName = "显示测量数据_工位号_根据发动机型号_查询";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@发动机号", engineID);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
/// <summary>
|
||||
/// StudentSelect
|
||||
/// </summary>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static bool getopname(string opname, out DataTable dt)
|
||||
{
|
||||
string procedureName = "MES_计划BOM_工位与名称_查询_根据工位号";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[1];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排产计划_查询计划
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="selectDate"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool GetPlan(string opname,string selectDate, out DataTable tb)
|
||||
{
|
||||
string procedureName = "排产计划_查询计划";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
DataSet ds;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
tb = null;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@转生产订单日期", selectDate);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName,ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// [电子看板_发动机号_线首工位_分线订单主表_数据_查询]
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="selectDate"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool GetPlan_Cap(string opname, out DataTable tb)
|
||||
{
|
||||
string procedureName = "电子看板_发动机号_线首工位_分线订单主表_数据_查询";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
DataSet ds;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
tb = null;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[1];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 电子看板_发动机号_工位队列表_查询_根据工位号(数据源工位) 20140709 wt
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool GetQueue(string opname, out DataTable tb)
|
||||
{
|
||||
string procedureName = "电子看板_发动机号_工位队列表_查询_根据工位号";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
DataSet ds;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
tb = null;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[1];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@数据源工位", opname);
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 电子看板_发动机号_工位队列表_增加 20140709 wt ClearQueue
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="engineId"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool InsertQueue(string opname, string engineId)
|
||||
{
|
||||
|
||||
string procedureName = "电子看板_发动机号_工位队列表_增加";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@数据源工位", opname);
|
||||
sqlParameters[0].Direction = ParameterDirection.Input;
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@发动机号", engineId);
|
||||
sqlParameters[1].Direction = ParameterDirection.Input;
|
||||
bool isOK;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters);
|
||||
if (isOK)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 电子看板_发动机号_工位队列表_清空 20140709 wt
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="engineId"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
//public static bool ClearQueue()
|
||||
//{
|
||||
|
||||
// string procedureName = "电子看板_发动机号_工位队列表_清空";
|
||||
// //string connectionString = ApplicationConfig.ConnectionString;
|
||||
// string errorMessage;
|
||||
// bool isOK;
|
||||
// isOK = DataAccess.ExecuteNonQuery(procedureName);
|
||||
// if (isOK)
|
||||
// {
|
||||
// return true;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// return false;
|
||||
// }
|
||||
//}
|
||||
/// <summary>
|
||||
/// 测量数据合格_查询_WEB页面显示 20140622 wt
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="selectDate"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool GetCurrentQuality_Select(string engineID,string opname, out DataTable tb)
|
||||
{
|
||||
string procedureName = "测量数据合格_查询_WEB页面显示";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
DataSet ds;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
tb = null;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@发动机号", engineID);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
///// <summary>
|
||||
///// WEB查询按钮的信息 20140625 wt
|
||||
///// </summary>
|
||||
///// <param name="tb"></param>
|
||||
///// <returns></returns>
|
||||
//public static bool OpnameSelect_Buttons(out DataTable tb)
|
||||
//{
|
||||
// string procedureName = "WEB_质量查询模块_按钮基础信息_查询";
|
||||
// //string connectionString = ApplicationConfig.ConnectionString;
|
||||
// DataSet ds;
|
||||
// string errorMessage;
|
||||
// bool isOK;
|
||||
|
||||
// isOK = DataAccess.ExecuteStoredProcedure(procedureName, out ds);
|
||||
// if (isOK)
|
||||
// {
|
||||
// tb = ds.Tables[0];
|
||||
// return true;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// tb = null;
|
||||
// return false;
|
||||
// }
|
||||
|
||||
//}
|
||||
/// <summary>
|
||||
/// WEB_安东模块_物料原因按钮基础信息_查询 20140707 wt
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="engineId"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool MaterialProblemButtons_Select(string opname, string engineId, out DataTable tb)
|
||||
{
|
||||
|
||||
string procedureName = "WEB_安东模块_物料原因按钮基础信息_查询";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@发动机号", engineId);
|
||||
DataSet ds;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
tb = null;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// WEB_安东模块_物料ANDON信息_插入 20140708 wt
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="engineId"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool MaterialProblemButtons_Insert(string opname, string materialname)
|
||||
{
|
||||
|
||||
string procedureName = "WEB_安东模块_物料ANDON信息_插入";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[0].Direction = ParameterDirection.Input;
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@物料描述", materialname);
|
||||
sqlParameters[1].Direction = ParameterDirection.Input;
|
||||
bool isOK;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters);
|
||||
if (isOK)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// WEB根据工位名称和发动机号查询质量数据 20140625 wt
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="engineId"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool QualityData_Select(string opname, string engineId, out DataTable tb)
|
||||
{
|
||||
|
||||
string procedureName = "WEB_质量查询模块_测量数据合格_查询";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@发动机号", engineId);
|
||||
DataSet ds;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
tb = null;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// WEB根据工位名称和发动机号查询质量数据合格索引(包括了分线的信息、存储过程中根据工位类型区分) 20140626 wt
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="engineId"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool QualityDataButton_bgColor_Select(string opname, out DataTable dt)
|
||||
{
|
||||
string procedureName = "显示测量数据_工位号_查询";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[1];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// MES界面显示_弹窗消息_查询
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool ShowWindowNotice(string opname, out DataTable dt)
|
||||
{
|
||||
string procedureName = "MES界面显示_弹窗消息_查询";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[1];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// MES界面显示_消息滚动_查询
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool ShowLEDNotice(string opname, out DataTable dt)
|
||||
{
|
||||
string procedureName = "MES界面显示_消息滚动_查询";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[1];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 上线临时表插入数据 20140609 通过页面直接插入数据库
|
||||
/// </summary>
|
||||
/// <param name="opName">工位号</param>
|
||||
/// <param name="engineID">发动机号</param>
|
||||
static public bool SubOnLoadTemp_Insert(string opName, string orderNum, string engineType, string sublineOrderID, out DataTable tb)
|
||||
{
|
||||
string procedureName = "电子看板_发动机号_上线临时表_增加";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
DataSet ds;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
tb = null;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[4];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@订单号", orderNum);
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@发动机型号", engineType);
|
||||
sqlParameters[3] = new System.Data.SqlClient.SqlParameter("@分线主表数据ID", Convert.ToInt32(sublineOrderID));
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// [电子看板_发动机号_线首工位_查询_根据发动机号和工位号] 20140604 王可心
|
||||
/// </summary>
|
||||
/// <param name="engineID"></param>
|
||||
/// <param name="opName"></param>
|
||||
static public bool GetEngineIDOpName_Select(string engineID, string opName, out DataTable dt)
|
||||
{
|
||||
string errorMessage = "";
|
||||
DataSet ds;
|
||||
bool isOK;
|
||||
dt = null;
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string procedureName;
|
||||
procedureName = "电子看板_发动机号_线首工位_查询_根据发动机号和工位号";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@发动机号", engineID);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
isOK= DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
dt = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 电子看板_工序内容_查询
|
||||
/// </summary>
|
||||
/// <param name="opName">工位号</param>
|
||||
/// <param name="engineTypeID">产品型号代码</param>
|
||||
/// <param name="dt"></param>
|
||||
static public void Process_Select(string opName, int engineTypeID, out DataTable dt)
|
||||
{
|
||||
dt = null;
|
||||
string sql = "exec 电子看板_工序内容_查询 '" + opName + "'," + engineTypeID.ToString();
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 电子看板_装配零件_物料验证_查询 20131231
|
||||
/// </summary>
|
||||
/// <param name="opName">工位号</param>
|
||||
/// <param name="engineID">发动机号</param>
|
||||
/// <param name="dt"></param>
|
||||
static public bool PartMaterialVerify_Select(string opName, out DataTable dt)
|
||||
{
|
||||
string errorMessage = "";
|
||||
DataSet ds;
|
||||
dt = null;
|
||||
bool isOK;
|
||||
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
|
||||
string procedureName;
|
||||
procedureName = "电子看板_装配零件_物料验证_查询";
|
||||
SqlParameter[] thisParms = new SqlParameter[1];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
//thisParms[1] = new System.Data.SqlClient.SqlParameter("@发动机号", engineID);
|
||||
|
||||
isOK= DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
dt = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设备管理_设备维护内容_查询
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="MachineType"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>ShowMaintainPic
|
||||
static public bool LoadMachineType(string opName,out DataTable dt)
|
||||
{
|
||||
string procedureName;
|
||||
procedureName = "设备管理_设备维护初始化_查询";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[1];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设备管理_设备维护内容_查询
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="MachineType"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>ShowMaintainPic
|
||||
static public bool ShowMaintainData(string opName, string MachineType, out DataTable dt)
|
||||
{
|
||||
string procedureName;
|
||||
procedureName = "设备管理_设备维护内容_查询";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@保养类型代码", MachineType);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设备管理_设备维护图片_查询
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="MachineType"></param>
|
||||
/// <param name="pic"></param>
|
||||
static public void GetMaintainImageFile(string opName, string MachineType, out byte[] pic)
|
||||
{
|
||||
string sql;
|
||||
DataTable dt;
|
||||
pic = null;
|
||||
sql = "exec 设备管理_设备维护图片_查询 '" + opName + "'," + MachineType;
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
if (dt != null)
|
||||
{
|
||||
if (dt.Rows.Count > 0)
|
||||
{
|
||||
pic = (byte[])dt.Rows[0]["保养图片"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 显示测量数据_工位数据_查询
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
static public bool QualityDataSelect(string opName, string opname, out DataTable dt)
|
||||
{
|
||||
string procedureName;
|
||||
procedureName = "显示测量数据_工位数据_查询";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@查询工位号", opname);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 显示物料数据_工位数据_查询
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
static public bool MaterialDataSelect(string opName, string opname, out DataTable dt)
|
||||
{
|
||||
string procedureName;
|
||||
procedureName = "显示物料数据_工位数据_查询";
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@查询工位号", opname);
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out dt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 操作指南-
|
||||
/// </summary>
|
||||
/// <param name="opName">工位号</param>
|
||||
/// <param name="IsNormalOrRepair">是否启用备用模式</param>
|
||||
/// <returns></returns>
|
||||
public static bool Assembel_RadioNormal_Insert(string opName, int IsNormalOrRepair)
|
||||
{
|
||||
string produceName = "测量数据工位_监控系统_拧紧与返修拧紧_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@是否启用备用模式", IsNormalOrRepair);
|
||||
return DataAccess.ExecuteStoredProcedure(produceName, ref thisParms);
|
||||
}
|
||||
/// <summary>
|
||||
/// 测量数据工位_监控系统_返修上下线_上线_增加
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="upLine"></param>
|
||||
/// <returns></returns>
|
||||
public static bool AssembelRadioNormalWork_Insert(string opName, int upLine)
|
||||
{
|
||||
string produceName = "测量数据工位_监控系统_返修上下线_上线_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@是否启用备用模式", upLine);
|
||||
return DataAccess.ExecuteStoredProcedure(produceName, ref thisParms);
|
||||
}
|
||||
/// <summary>
|
||||
/// 启用拧紧_初始化
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="tb"></param>
|
||||
public static void cbx_BakOpNameIsWorkStatus_Select(string opName, out DataTable tb)
|
||||
{
|
||||
string sql = "SELECT [是否启用备用模式] FROM [dbo].[测量数据工位_监控系统_拧紧与返修拧紧] WHERE [工位号]='" + opName + "'";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
tb = null;
|
||||
DataAccess.ExecuteDataTable(sql, out tb);
|
||||
}
|
||||
}
|
||||
}
|
||||
99
Common/07WebBusinessFacade/BusinessFacade/Web/MES_Loading.cs
Normal file
99
Common/07WebBusinessFacade/BusinessFacade/Web/MES_Loading.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public class MES_Loading
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="dt"></param>
|
||||
static public void MES_LoadingOPName(string opName, out DataTable dt)
|
||||
{
|
||||
string sql;
|
||||
sql = " select 线外工位号 as opname from [dbo].[线外工位验证] where 工位号='"+opName+"'";
|
||||
DataAccess.ExecuteDataTable(sql, out dt);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// MES_界面显示_标签语言_视图_查询
|
||||
/// </summary>
|
||||
/// <param name="mainModule">主模块代码</param>
|
||||
/// <param name="MesWebCode">MesWebCode</param>
|
||||
/// <param name="工位号">opName</param>
|
||||
/// <param name="tb"></param>
|
||||
public static void MES_Loading_select(string mainModule, string MesWebCode,string opName, out DataTable tb)
|
||||
{
|
||||
string procedureName = "MES_界面显示_标签语言_视图_查询";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
DataSet ds;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[3];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@主模块代码", mainModule);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@MesWebCode", MesWebCode);
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
tb = null;
|
||||
}
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 测量数据工位_监控系统_操作者工号_增加
|
||||
/// </summary>
|
||||
/// <param name="opName"></param>
|
||||
/// <param name="userNum"></param>
|
||||
/// <returns></returns>
|
||||
public static bool MES_Loading_Insert(string opName,string userNum)
|
||||
{
|
||||
string produceName = "测量数据工位_监控系统_操作者工号_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@操作者工号", userNum);
|
||||
return DataAccess.ExecuteStoredProcedure(produceName, ref thisParms);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 测量数据合格_查询
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="engineid"></param>
|
||||
/// <param name="tb"></param>
|
||||
public static void initImage(string opname, string engineid, out DataTable tb)
|
||||
{
|
||||
string procedureName = "测量数据合格_查询";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
DataSet ds;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@发动机号", engineid);
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
tb = null;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public class MES_MachineManage
|
||||
{
|
||||
/// <summary>
|
||||
/// [设备管理_设备维护记录表_增加]
|
||||
/// </summary>
|
||||
/// <param name="opName">工位号</param>
|
||||
/// <param name="beizhu">备注</param>
|
||||
/// <returns></returns>
|
||||
public static bool Mes_MachineTakeCare_Insert(string opName, string mark)
|
||||
{
|
||||
string produceName = "设备管理_设备维护记录表_增加";
|
||||
SqlParameter[] thisParms = new SqlParameter[2];
|
||||
thisParms[0] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
||||
thisParms[1] = new System.Data.SqlClient.SqlParameter("@备注", mark);
|
||||
return DataAccess.ExecuteStoredProcedure(produceName, ref thisParms);
|
||||
}
|
||||
}
|
||||
}
|
||||
67
Common/07WebBusinessFacade/BusinessFacade/Web/ando_load.cs
Normal file
67
Common/07WebBusinessFacade/BusinessFacade/Web/ando_load.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
using System.Text;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public class ando_load
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询ando类型andoTypeSelect
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static bool andoTypeSelect(out DataTable dt)
|
||||
{
|
||||
string procedureName = "ANDON_类型_查询";
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, out dt);
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static bool andoDetailCount(out DataTable dt)
|
||||
{
|
||||
string procedureName = "ANDON_类型_查询";
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, out dt);
|
||||
}
|
||||
/// <summary>
|
||||
/// 初始化ando界面
|
||||
/// </summary>
|
||||
public static string ando_loading(string opname)
|
||||
{
|
||||
System.Data.DataTable dt;
|
||||
dt=null;
|
||||
andoTypeSelect(out dt);
|
||||
string responsetext="";
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
for(int i=0;i<dt.Rows.Count;i++)
|
||||
{
|
||||
string andoTypeCode = dt.Rows[i]["安东类型代码"].ToString();
|
||||
switch (andoTypeCode)
|
||||
{
|
||||
case "1":
|
||||
responsetext = ando_matertial.CreateAndo_Material(opname, "1");
|
||||
sb.Append(responsetext);
|
||||
break;
|
||||
case "2":
|
||||
responsetext = ando_quality.CreateAndo_quality(opname, "2");
|
||||
sb.Append(responsetext);
|
||||
break;
|
||||
case "3":
|
||||
responsetext = ando_machine.CreateAndo_Machine(opname, "3");
|
||||
sb.Append(responsetext);
|
||||
break;
|
||||
case "4":
|
||||
//sb.Append(responsetext);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return sb.ToString();;
|
||||
}
|
||||
}
|
||||
}
|
||||
67
Common/07WebBusinessFacade/BusinessFacade/Web/ando_load_2.cs
Normal file
67
Common/07WebBusinessFacade/BusinessFacade/Web/ando_load_2.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
using System.Text;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public class ando_load_2
|
||||
{
|
||||
/// <summary>
|
||||
/// 查询ando类型andoTypeSelect
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static bool andoTypeSelect(out DataTable dt)
|
||||
{
|
||||
string procedureName = "ANDON_类型_查询";
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, out dt);
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static bool andoDetailCount(out DataTable dt)
|
||||
{
|
||||
string procedureName = "ANDON_类型_查询";
|
||||
return DataAccess.ExecuteStoredProcedure(procedureName, out dt);
|
||||
}
|
||||
/// <summary>
|
||||
/// 初始化ando界面
|
||||
/// </summary>
|
||||
public static string ando_loading(string opname)
|
||||
{
|
||||
System.Data.DataTable dt;
|
||||
dt=null;
|
||||
andoTypeSelect(out dt);
|
||||
string responsetext="";
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
for(int i=0;i<dt.Rows.Count;i++)
|
||||
{
|
||||
string andoTypeCode = dt.Rows[i]["安东类型代码"].ToString();
|
||||
switch (andoTypeCode)
|
||||
{
|
||||
case "1":
|
||||
responsetext = ando_matertial_2.CreateAndo_Material(opname, "1");
|
||||
sb.Append(responsetext);
|
||||
break;
|
||||
case "2":
|
||||
responsetext = ando_quality_2.CreateAndo_quality(opname, "2");
|
||||
sb.Append(responsetext);
|
||||
break;
|
||||
case "3":
|
||||
responsetext = ando_machine_2.CreateAndo_Machine(opname, "3");
|
||||
sb.Append(responsetext);
|
||||
break;
|
||||
case "4":
|
||||
//sb.Append(responsetext);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return sb.ToString();;
|
||||
}
|
||||
}
|
||||
}
|
||||
225
Common/07WebBusinessFacade/BusinessFacade/Web/ando_machine.cs
Normal file
225
Common/07WebBusinessFacade/BusinessFacade/Web/ando_machine.cs
Normal file
@@ -0,0 +1,225 @@
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
using System.Text;
|
||||
using System;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public class ando_machine
|
||||
{
|
||||
/// <summary>
|
||||
/// 创建质量ando
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="AndoTypeCode"></param>
|
||||
/// <returns></returns>
|
||||
public static string CreateAndo_Machine(string opname, string AndoTypeCode)
|
||||
{
|
||||
System.Data.DataTable dt_list;
|
||||
//查询ando明细
|
||||
ando_matertial.andoListSelect(opname, AndoTypeCode, out dt_list);
|
||||
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
sb.Append("<div id=\"div_ando_third_main\" class=\"div_ando_third_main\">");
|
||||
sb.Append("<div id=\"div_ando_third\" class=\"div_ando_third\">");
|
||||
sb.Append("<div style=\"width:96%;height:82%;margin-left:10px;margin-top:12px;\">");
|
||||
|
||||
#region 大图片的div
|
||||
sb.Append("<div style=\"width:8%;height:100%;float:left;\">");
|
||||
sb.Append("<img alt=\"loading....\" src=\"../images/ando_machine.png\" width=\"92%\" height=\"100%\" />");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
#region 整个ANDON选项DIV
|
||||
sb.Append("<div style=\"width:70%;height:100%;float:left;\">");
|
||||
|
||||
#region 左按钮DIV
|
||||
sb.Append("<div style=\"width:10%;height:100%;float:left;\">");
|
||||
sb.Append("<input type=\"button\" style=\"width:100%;height:100%;text-align:center;font-size:30px;\" value=\"<<\" onclick=\"machine_RightMove()\" />");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
|
||||
#region 中间内容DIV
|
||||
sb.Append("<div style=\"width:80%;height:100%;float:left;\">");
|
||||
|
||||
#region 可支持移动的div
|
||||
|
||||
sb.Append("<div style=\"width:100%;height:100%; overflow:hidden;position:relative;\">");
|
||||
|
||||
sb.Append("<div id=\"div_machine_Scroll\" style=\"width:100%;height:100%; position:relative;\">");
|
||||
|
||||
|
||||
//附加tabel
|
||||
string tabelString = CreatAndo_machine_table(opname, AndoTypeCode);
|
||||
sb.Append(tabelString);
|
||||
|
||||
sb.Append("</div>");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
#region 右按钮div
|
||||
|
||||
sb.Append("<div style=\"width:10%;height:100%;float:left;\">");
|
||||
|
||||
sb.Append("<input type=\"button\" style=\"width:100%;height:100%;text-align:center;font-size:30px;\" value=\">>\" onclick=\"machine_leftMove()\" />");
|
||||
sb.Append("</div>");
|
||||
|
||||
#endregion
|
||||
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
#region ando按钮div
|
||||
|
||||
sb.Append("<div style=\"width:22%;height:100%;float:left;\">");
|
||||
|
||||
sb.Append("<div style=\"width: 100%; height: 100%; margin: 30px 0px 0px -5px;\">");
|
||||
|
||||
sb.Append("<table style=\"width: 100%;\">");
|
||||
sb.Append("<tr>");
|
||||
sb.Append("<td align=\"left\">");
|
||||
sb.Append("<img onclick=\"andon_machine_call_down('m_machine_call')\" alt=\"loading...\" id='m_machine_call' src=\"../images/call.png\" style=\"width: 100px; height: 80px\"/>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("<td align=\"right\">");
|
||||
sb.Append("<img onclick=\"andon_machine_reset_down('m_machine_reset')\" alt=\"loading...\" id='m_machine_reset' src=\"../images/reset.png\" style=\"width: 100px;height: 80px\" />");
|
||||
sb.Append("</td>");
|
||||
sb.Append("</tr>");
|
||||
sb.Append("<tr>");
|
||||
sb.Append("<td style=\"padding-top: 20px\" align=\"center\">");
|
||||
sb.Append("<label style=\"padding-top: 20px;font-size:18px;\">呼 叫</label>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("<td style=\"padding-top: 20px\" align=\"center\">");
|
||||
sb.Append("<label style=\"padding-top: 20px;font-size:18px;\">复 位</label>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("</tr>");
|
||||
sb.Append("</table>");
|
||||
|
||||
sb.Append("</div>");
|
||||
|
||||
sb.Append("</div>");
|
||||
|
||||
#endregion
|
||||
|
||||
sb.Append("</div></div></div>");
|
||||
|
||||
|
||||
return sb.ToString();
|
||||
//string text = "";
|
||||
//int count = dt_list.Rows.Count/2*120;
|
||||
//return text = "{\"InnerHtml\":\"" + sb.ToString() + "\",\"Count\":\"" + count + "\"}";
|
||||
}
|
||||
/// <summary>
|
||||
/// 创建物料ando的table
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="AndoTypeCode"></param>
|
||||
/// <returns></returns>
|
||||
public static string CreatAndo_machine_table(string opname, string AndoTypeCode)
|
||||
{
|
||||
System.Data.DataTable dt_list;
|
||||
//查询ando明细
|
||||
ando_matertial.andoListSelect(opname, AndoTypeCode, out dt_list);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
int tableCount = dt_list.Rows.Count;
|
||||
int td_count = (tableCount / 2) + (tableCount % 2);//获取每个tr中应该创建多少个td
|
||||
int tablewidth = 145 * td_count;
|
||||
if (tablewidth == 0)
|
||||
{
|
||||
tablewidth = 10;
|
||||
}
|
||||
string tablewidth2 = Convert.ToString(tablewidth) + "px";
|
||||
|
||||
#region table
|
||||
|
||||
sb.Append("<table id=\"table_machine_Scroll\" style=\"width:" + tablewidth2 + ";height:100%;left:0px;\">");
|
||||
|
||||
//创建第一行
|
||||
sb.Append("<tr>");
|
||||
for (int i = 0; i < td_count; i++)
|
||||
{
|
||||
#region 第一行按钮
|
||||
sb.Append("<td style=\"height:50%;width:145px;\">");
|
||||
//标签id
|
||||
string id = "button_ando_machine_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
#region 颜色代码
|
||||
//标签值
|
||||
string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
//string inputColor = "background-color:" + color + "";
|
||||
if (color == "0")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_machine(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
}
|
||||
if (color == "1")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_machine(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
}
|
||||
if (color == "2")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_machine(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
sb.Append("</td>");
|
||||
|
||||
#endregion
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
|
||||
|
||||
//创建第二行
|
||||
sb.Append("<tr>");
|
||||
for (int i = td_count; i < tableCount; i++)
|
||||
{
|
||||
#region 第二行按钮
|
||||
sb.Append("<td style=\"height:50%;width:145px;\">");
|
||||
//标签id
|
||||
string id = "button_ando_machine_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
#region 颜色代码
|
||||
//标签值
|
||||
string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
if (color == "0")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_machine(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
}
|
||||
if (color == "1")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_machine(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
}
|
||||
if (color == "2")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_machine(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
sb.Append("</td>");
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
//补充第二行的信息
|
||||
if ((tableCount % 2) > 0 && (tableCount > 0))
|
||||
{
|
||||
sb.Append("<td style=\"height:50%\">");
|
||||
sb.Append("</td>");
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
|
||||
//最后组合成table
|
||||
sb.Append("</table>");
|
||||
return sb.ToString();
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
225
Common/07WebBusinessFacade/BusinessFacade/Web/ando_machine_2.cs
Normal file
225
Common/07WebBusinessFacade/BusinessFacade/Web/ando_machine_2.cs
Normal file
@@ -0,0 +1,225 @@
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
using System.Text;
|
||||
using System;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public class ando_machine_2
|
||||
{
|
||||
/// <summary>
|
||||
/// 创建质量ando
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="AndoTypeCode"></param>
|
||||
/// <returns></returns>
|
||||
public static string CreateAndo_Machine(string opname, string AndoTypeCode)
|
||||
{
|
||||
System.Data.DataTable dt_list;
|
||||
//查询ando明细
|
||||
ando_matertial.andoListSelect(opname, AndoTypeCode, out dt_list);
|
||||
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
sb.Append("<div id=\"div_ando_third_main\" class=\"div_ando_third_main\">");
|
||||
sb.Append("<div id=\"div_ando_third\" class=\"div_ando_third\">");
|
||||
sb.Append("<div style=\"width:96%;height:82%;margin-left:10px;margin-top:12px;\">");
|
||||
|
||||
#region 大图片的div
|
||||
sb.Append("<div style=\"width:8%;height:100%;float:left;\">");
|
||||
sb.Append("<img alt=\"loading....\" src=\"../images/ando_machine.png\" width=\"92%\" height=\"100%\" />");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
#region 整个ANDON选项DIV
|
||||
sb.Append("<div style=\"width:67%;height:100%;float:left;\">");
|
||||
|
||||
#region 左按钮DIV
|
||||
sb.Append("<div style=\"width:10%;height:100%;float:left;\">");
|
||||
sb.Append("<input type=\"button\" style=\"width:100%;height:100%;text-align:center;font-size:30px;\" value=\"<<\" onclick=\"machine_RightMove()\" />");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
|
||||
#region 中间内容DIV
|
||||
sb.Append("<div style=\"width:80%;height:100%;float:left;\">");
|
||||
|
||||
#region 可支持移动的div
|
||||
|
||||
sb.Append("<div style=\"width:100%;height:100%; overflow:hidden;position:relative;\">");
|
||||
|
||||
sb.Append("<div id=\"div_machine_Scroll\" style=\"width:100%;height:100%; position:relative;\">");
|
||||
|
||||
|
||||
//附加tabel
|
||||
string tabelString = CreatAndo_machine_table(opname, AndoTypeCode);
|
||||
sb.Append(tabelString);
|
||||
|
||||
sb.Append("</div>");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
#region 右按钮div
|
||||
|
||||
sb.Append("<div style=\"width:10%;height:100%;float:left;\">");
|
||||
|
||||
sb.Append("<input type=\"button\" style=\"width:100%;height:100%;text-align:center;font-size:30px;\" value=\">>\" onclick=\"machine_leftMove()\" />");
|
||||
sb.Append("</div>");
|
||||
|
||||
#endregion
|
||||
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
#region ando按钮div
|
||||
|
||||
sb.Append("<div style=\"width:25%;height:100%;float:left;\">");
|
||||
|
||||
sb.Append("<div style=\"width: 100%; height:80%; margin: 20px 0px 0px 5px;\">");
|
||||
|
||||
sb.Append("<table style=\"width: 100%;\">");
|
||||
sb.Append("<tr>");
|
||||
sb.Append("<td align=\"left\">");
|
||||
sb.Append("<img onclick=\"andon_machine_call_down('m_machine_call')\" alt=\"loading...\" id='m_machine_call' src=\"../images/call.png\" style=\"width: 100px; height: 80px\"/>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("<td align=\"right\">");
|
||||
sb.Append("<img onclick=\"andon_machine_reset_down('m_machine_reset')\" alt=\"loading...\" id='m_machine_reset' src=\"../images/reset.png\" style=\"width: 100px;height: 80px\" />");
|
||||
sb.Append("</td>");
|
||||
sb.Append("</tr>");
|
||||
sb.Append("<tr>");
|
||||
sb.Append("<td style=\"padding-top: 20px\" align=\"center\">");
|
||||
sb.Append("<label style=\"padding-top: 20px;font-size:18px;\">呼 叫</label>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("<td style=\"padding-top: 20px\" align=\"center\">");
|
||||
sb.Append("<label style=\"padding-top: 20px;font-size:18px;\">复 位</label>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("</tr>");
|
||||
sb.Append("</table>");
|
||||
|
||||
sb.Append("</div>");
|
||||
|
||||
sb.Append("</div>");
|
||||
|
||||
#endregion
|
||||
|
||||
sb.Append("</div></div></div>");
|
||||
|
||||
|
||||
return sb.ToString();
|
||||
//string text = "";
|
||||
//int count = dt_list.Rows.Count/2*120;
|
||||
//return text = "{\"InnerHtml\":\"" + sb.ToString() + "\",\"Count\":\"" + count + "\"}";
|
||||
}
|
||||
/// <summary>
|
||||
/// 创建物料ando的table
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="AndoTypeCode"></param>
|
||||
/// <returns></returns>
|
||||
public static string CreatAndo_machine_table(string opname, string AndoTypeCode)
|
||||
{
|
||||
System.Data.DataTable dt_list;
|
||||
//查询ando明细
|
||||
ando_matertial.andoListSelect(opname, AndoTypeCode, out dt_list);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
int tableCount = dt_list.Rows.Count;
|
||||
int td_count = (tableCount / 2) + (tableCount % 2);//获取每个tr中应该创建多少个td
|
||||
int tablewidth = 145 * td_count;
|
||||
if (tablewidth == 0)
|
||||
{
|
||||
tablewidth = 10;
|
||||
}
|
||||
string tablewidth2 = Convert.ToString(tablewidth) + "px";
|
||||
|
||||
#region table
|
||||
|
||||
sb.Append("<table id=\"table_machine_Scroll\" style=\"width:" + tablewidth2 + ";height:100%;left:0px;\">");
|
||||
|
||||
//创建第一行
|
||||
sb.Append("<tr>");
|
||||
for (int i = 0; i < td_count; i++)
|
||||
{
|
||||
#region 第一行按钮
|
||||
sb.Append("<td style=\"height:50%;width:145px;\">");
|
||||
//标签id
|
||||
string id = "button_ando_machine_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
#region 颜色代码
|
||||
//标签值
|
||||
string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
//string inputColor = "background-color:" + color + "";
|
||||
if (color == "0")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_machine(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
}
|
||||
if (color == "1")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_machine(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
}
|
||||
if (color == "2")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_machine(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
sb.Append("</td>");
|
||||
|
||||
#endregion
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
|
||||
|
||||
//创建第二行
|
||||
sb.Append("<tr>");
|
||||
for (int i = td_count; i < tableCount; i++)
|
||||
{
|
||||
#region 第二行按钮
|
||||
sb.Append("<td style=\"height:50%;width:145px;\">");
|
||||
//标签id
|
||||
string id = "button_ando_machine_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
#region 颜色代码
|
||||
//标签值
|
||||
string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
if (color == "0")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_machine(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
}
|
||||
if (color == "1")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_machine(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
}
|
||||
if (color == "2")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_machine(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
sb.Append("</td>");
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
//补充第二行的信息
|
||||
if ((tableCount % 2) > 0 && (tableCount > 0))
|
||||
{
|
||||
sb.Append("<td style=\"height:50%\">");
|
||||
sb.Append("</td>");
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
|
||||
//最后组合成table
|
||||
sb.Append("</table>");
|
||||
return sb.ToString();
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
605
Common/07WebBusinessFacade/BusinessFacade/Web/ando_matertial.cs
Normal file
605
Common/07WebBusinessFacade/BusinessFacade/Web/ando_matertial.cs
Normal file
@@ -0,0 +1,605 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public class ando_matertial
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 物料ando明细查询 ANDON_类型_编号_查询
|
||||
/// </summary>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool andoListSelect(string opname, string andoTypeCode, out DataTable tb)
|
||||
{
|
||||
string procedureName = "ANDON_类型_编号_查询";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
DataSet ds;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
tb = null;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@安东类型代码", andoTypeCode);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// ANDON_呼叫状态_解除(返回table)
|
||||
/// </summary>
|
||||
/// <param name="opname">工位号</param>
|
||||
/// <param name="number">具体button编号</param>
|
||||
/// <param name="andoTypeCode">安东类型代码</param>
|
||||
/// <param name="andoListCode">安东明细代码(补料,错料,不合格)</param>
|
||||
/// <param name="callInfo">呼叫内容</param>
|
||||
/// <returns></returns>
|
||||
public static bool AndoMaterialResetOutTable(string opname, string number, string andoTypeCode, string andoListCode, string callInfo,out DataTable tb)
|
||||
{
|
||||
string procedureName = "ANDON_呼叫状态_解除";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
DataSet ds;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
tb = null;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[5];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[0].Direction = ParameterDirection.Input;
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@编号", number);
|
||||
sqlParameters[1].Direction = ParameterDirection.Input;
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@安东类型代码", andoTypeCode);
|
||||
sqlParameters[2].Direction = ParameterDirection.Input;
|
||||
sqlParameters[3] = new System.Data.SqlClient.SqlParameter("@安东明细代码", andoListCode);
|
||||
sqlParameters[3].Direction = ParameterDirection.Input;
|
||||
sqlParameters[4] = new System.Data.SqlClient.SqlParameter("@解除内容", callInfo);
|
||||
sqlParameters[4].Direction = ParameterDirection.Input;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ANDON_呼叫状态_解除
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="number"></param>
|
||||
/// <param name="andoTypeCode"></param>
|
||||
/// <param name="andoListCode"></param>
|
||||
/// <param name="callInfo"></param>
|
||||
/// <returns></returns>
|
||||
public static bool AndoMaterialReset(string opname, string number, string andoTypeCode, string andoListCode, string callInfo)
|
||||
{
|
||||
|
||||
string procedureName = "ANDON_呼叫状态_解除";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[5];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[0].Direction = ParameterDirection.Input;
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@编号", number);
|
||||
sqlParameters[1].Direction = ParameterDirection.Input;
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@安东类型代码", andoTypeCode);
|
||||
sqlParameters[2].Direction = ParameterDirection.Input;
|
||||
sqlParameters[3] = new System.Data.SqlClient.SqlParameter("@安东明细代码", andoListCode);
|
||||
sqlParameters[3].Direction = ParameterDirection.Input;
|
||||
sqlParameters[4] = new System.Data.SqlClient.SqlParameter("@解除内容", callInfo);
|
||||
sqlParameters[4].Direction = ParameterDirection.Input;
|
||||
bool isOK;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters);
|
||||
if (isOK)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ANDON_呼叫状态_呼叫(物料ando插入)
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="andoTypeCode"></param>
|
||||
/// <param name="andoListCode"></param>
|
||||
/// <param name="number"></param>
|
||||
/// <param name="callInfo"></param>
|
||||
/// <param name="callCount"></param>
|
||||
/// <param name="cardNumber"></param>
|
||||
/// <param name="noNumber"></param>
|
||||
/// <returns></returns>
|
||||
public static bool andoMaterialCall(string opname, string andoTypeCode, string andoListCode, string number, string callInfo, int callCount, string cardNumber, string noNumber)
|
||||
{
|
||||
|
||||
string procedureName = "ANDON_呼叫状态_呼叫";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[8];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[0].Direction = ParameterDirection.Input;
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@安东类型代码", andoTypeCode);
|
||||
sqlParameters[1].Direction = ParameterDirection.Input;
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@安东明细代码", andoListCode);
|
||||
sqlParameters[2].Direction = ParameterDirection.Input;
|
||||
sqlParameters[3] = new System.Data.SqlClient.SqlParameter("@编号", number);
|
||||
sqlParameters[3].Direction = ParameterDirection.Input;
|
||||
sqlParameters[4] = new System.Data.SqlClient.SqlParameter("@呼叫内容", callInfo);
|
||||
sqlParameters[4].Direction = ParameterDirection.Input;
|
||||
sqlParameters[5] = new System.Data.SqlClient.SqlParameter("@呼叫数量", callCount);
|
||||
sqlParameters[5].Direction = ParameterDirection.Input;
|
||||
sqlParameters[6] = new System.Data.SqlClient.SqlParameter("@卡片条码", cardNumber);
|
||||
sqlParameters[6].Direction = ParameterDirection.Input;
|
||||
sqlParameters[7] = new System.Data.SqlClient.SqlParameter("@不合格代码", noNumber);
|
||||
sqlParameters[7].Direction = ParameterDirection.Input;
|
||||
bool isOK;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters);
|
||||
if (isOK)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// ANDON_呼叫状态_呼叫(物料ando插入,返回table)
|
||||
/// </summary>
|
||||
/// <param name="opname">工位号</param>
|
||||
/// <param name="andoTypeCode">安东类型代码</param>
|
||||
/// <param name="andoListCode">安东明细代码(缺料,补料,不合格)</param>
|
||||
/// <param name="number">编号(具体物料信息)</param>
|
||||
/// <param name="callInfo"></param>
|
||||
/// <param name="callCount"></param>
|
||||
/// <param name="cardNumber"></param>
|
||||
/// <param name="noNumber"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool andoMaterialCallOutTable(string opname, string andoTypeCode,string andoListCode,string number,string callInfo,int callCount,string cardNumber,string noNumber,out DataTable tb)
|
||||
{
|
||||
string procedureName = "ANDON_呼叫状态_呼叫";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
DataSet ds;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
tb = null;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[8];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[0].Direction = ParameterDirection.Input;
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@安东类型代码", andoTypeCode);
|
||||
sqlParameters[1].Direction = ParameterDirection.Input;
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@安东明细代码", andoListCode);
|
||||
sqlParameters[2].Direction = ParameterDirection.Input;
|
||||
sqlParameters[3] = new System.Data.SqlClient.SqlParameter("@编号", number);
|
||||
sqlParameters[3].Direction = ParameterDirection.Input;
|
||||
sqlParameters[4] = new System.Data.SqlClient.SqlParameter("@呼叫内容", callInfo);
|
||||
sqlParameters[4].Direction = ParameterDirection.Input;
|
||||
sqlParameters[5] = new System.Data.SqlClient.SqlParameter("@呼叫数量", callCount);
|
||||
sqlParameters[5].Direction = ParameterDirection.Input;
|
||||
sqlParameters[6] = new System.Data.SqlClient.SqlParameter("@卡片条码", cardNumber);
|
||||
sqlParameters[6].Direction = ParameterDirection.Input;
|
||||
sqlParameters[7] = new System.Data.SqlClient.SqlParameter("@不合格代码", noNumber);
|
||||
sqlParameters[7].Direction = ParameterDirection.Input;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 创建物料andon
|
||||
/// </summary>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static string CreateAndo_Material(string opname,string AndoTypeCode)
|
||||
{
|
||||
System.Data.DataTable dt_list;
|
||||
//查询ando明细
|
||||
andoListSelect(opname, AndoTypeCode, out dt_list);
|
||||
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
//if (dt_list != null)
|
||||
//{
|
||||
// if (dt_list.Rows.Count > 0)
|
||||
// {
|
||||
sb.Append("<div id=\"div_ando_first_main\" class=\"div_ando_first_main\">");
|
||||
sb.Append("<div id=\"div_ando_first\" class=\"div_ando_first\">");
|
||||
sb.Append("<div style=\"width:96%;height:92%;margin-left:10px;margin-top:10px;\">");
|
||||
|
||||
#region 大图片的div
|
||||
sb.Append("<div style=\"width:8%;height:100%;float:left;\">");
|
||||
sb.Append("<img alt=\"loading....\" src=\"../images/materiracall2.png\" width=\"92%\" height=\"100%\" />");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
#region 整个ANDON选项DIV
|
||||
sb.Append("<div style=\"width:70%;height:100%;float:left;\">");
|
||||
|
||||
#region 左按钮DIV
|
||||
sb.Append("<div style=\"width:10%;height:100%;float:left;\">");
|
||||
sb.Append("<input type=\"button\" style=\"width:100%;height:100%;text-align:center;font-size:30px;\" value=\"<<\" onclick=\"RightMove()\" />");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
|
||||
#region 中间内容DIV
|
||||
sb.Append("<div style=\"width:80%;height:100%;float:left;\">");
|
||||
|
||||
#region 可支持移动的div
|
||||
|
||||
sb.Append("<div style=\"width:100%;height:100%; overflow:hidden;position:relative;\" id=\"div_andon_table_material\">");
|
||||
|
||||
sb.Append("<div id=\"div_Scroll\" style=\"width:100%;height:100%; position:relative;\" >");
|
||||
|
||||
|
||||
//附加tabel
|
||||
string tabelString=CreatAndo_Material_table(opname,AndoTypeCode);
|
||||
sb.Append(tabelString);
|
||||
|
||||
sb.Append("</div>");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
#region 右按钮div
|
||||
|
||||
sb.Append("<div style=\"width:10%;height:100%;float:left;\">");
|
||||
|
||||
sb.Append("<input type=\"button\" style=\"width:100%;height:100%;text-align:center;font-size:30px;\" value=\">>\" onclick=\"leftMove()\" />");
|
||||
sb.Append("</div>");
|
||||
|
||||
#endregion
|
||||
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
#region ando按钮div
|
||||
|
||||
sb.Append("<div style=\"width:22%;height:100%;float:left;\">");
|
||||
|
||||
sb.Append("<div style=\"width: 100%; height: 100%; margin: 30px 0px 0px -5px;\">");
|
||||
|
||||
sb.Append("<table style=\"width: 100%;\">");
|
||||
sb.Append("<tr>");
|
||||
sb.Append("<td align=\"left\">");
|
||||
sb.Append("<img onclick=\"andon_call_down('m_call')\" alt=\"loading...\" id='m_call' src=\"../images/call.png\" style=\"width: 100px; height: 80px\"/>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("<td align=\"right\">");
|
||||
sb.Append("<img onclick=\"andon_reset_down('m_reset')\" alt=\"loading...\" id='m_reset' src=\"../images/reset.png\" style=\"width: 100px;height: 80px\" />");
|
||||
sb.Append("</td>");
|
||||
sb.Append("</tr>");
|
||||
sb.Append("<tr>");
|
||||
sb.Append("<td style=\"padding-top: 20px\" align=\"center\">");
|
||||
sb.Append("<label style=\"padding-top: 20px;font-size:18px;\">呼 叫</label>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("<td style=\"padding-top: 20px\" align=\"center\">");
|
||||
sb.Append("<label style=\"padding-top: 20px;font-size:18px;\">复 位</label>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("</tr>");
|
||||
sb.Append("</table>");
|
||||
|
||||
sb.Append("</div>");
|
||||
|
||||
sb.Append("</div>");
|
||||
|
||||
#endregion
|
||||
|
||||
sb.Append("</div></div></div>");
|
||||
|
||||
// }
|
||||
|
||||
//}
|
||||
return sb.ToString();
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新物料安东的中间的tabel
|
||||
/// </summary>
|
||||
/// <param name="opname">工位号</param>
|
||||
/// <param name="AndoTypeCode">物料ando类型明细</param>
|
||||
/// <returns></returns>
|
||||
public static string CreatAndo_Material_table(string opname, string AndoTypeCode)
|
||||
{
|
||||
System.Data.DataTable dt_list;
|
||||
//查询ando明细
|
||||
andoListSelect(opname, AndoTypeCode, out dt_list);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
int tableCount = dt_list.Rows.Count;
|
||||
int td_count = (tableCount / 2) + (tableCount % 2);//获取每个tr中应该创建多少个td
|
||||
int tablewidth = 145 * td_count;
|
||||
if (tablewidth == 0)
|
||||
{
|
||||
tablewidth = 10;
|
||||
}
|
||||
string tablewidth2 = Convert.ToString(tablewidth) + "px";
|
||||
|
||||
#region table
|
||||
|
||||
sb.Append("<table id=\"table_Scroll\" style=\"width:" + tablewidth2 + ";height:100%;left:0px;\">");
|
||||
|
||||
//创建第一行
|
||||
sb.Append("<tr>");
|
||||
for (int i = 0; i < td_count; i++)
|
||||
{
|
||||
#region 第一行按钮
|
||||
sb.Append("<td style=\"height:50%;width:145px;\">");
|
||||
//标签id
|
||||
string id = "button_ando_material_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
#region 颜色代码
|
||||
//标签值
|
||||
string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
//string inputColor = "background-color:" + color + "";
|
||||
if (color == "0")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
}
|
||||
if (color == "1")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
}
|
||||
if (color == "2")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
sb.Append("</td>");
|
||||
|
||||
#endregion
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
|
||||
|
||||
//创建第二行
|
||||
sb.Append("<tr>");
|
||||
for (int i = td_count; i < tableCount; i++)
|
||||
{
|
||||
#region 第二行按钮
|
||||
sb.Append("<td style=\"height:50%;width:145px;\">");
|
||||
//标签id
|
||||
string id = "button_ando_material_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
#region 颜色代码
|
||||
//标签值
|
||||
string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
//string inputColor = "background-color:" + color + "";
|
||||
if (color == "0")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
}
|
||||
if (color == "1")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
}
|
||||
if (color == "2")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
sb.Append("</td>");
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
//补充第二行的信息
|
||||
if ((tableCount % 2) > 0 && (tableCount > 0))
|
||||
{
|
||||
sb.Append("<td style=\"height:50%\">");
|
||||
sb.Append("</td>");
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
|
||||
//最后组合成table
|
||||
sb.Append("</table>");
|
||||
return sb.ToString();
|
||||
|
||||
|
||||
// if (tableCount > 4)
|
||||
// {
|
||||
// sb.Append("<tr>");
|
||||
// int i = 0;
|
||||
// for (i = 0; i < dt_list.Rows.Count; i++)
|
||||
// {
|
||||
// //总条数
|
||||
// int seecond = dt_list.Rows.Count;
|
||||
// //总条数和2取余
|
||||
// int seecond1 = seecond % 2;
|
||||
// if ((seecond % 2) == 1)
|
||||
// {
|
||||
// seecond = seecond / 2 + 1;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// seecond = dt_list.Rows.Count / 2;
|
||||
// }
|
||||
// if (i <= seecond)
|
||||
// {
|
||||
// #region 第一行按钮
|
||||
|
||||
|
||||
// sb.Append("<td style=\"height:50%\">");
|
||||
// //标签id
|
||||
// string id = "button_ando_material_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
// #region 颜色代码
|
||||
// //标签值
|
||||
// string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
// string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
// //string inputColor = "background-color:" + color + "";
|
||||
// if (color == "0")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
// }
|
||||
// if (color == "1")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
// }
|
||||
// if (color == "2")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
// }
|
||||
// #endregion
|
||||
|
||||
// sb.Append("</td>");
|
||||
|
||||
// #endregion
|
||||
|
||||
// }
|
||||
// }
|
||||
// sb.Append("</tr>");
|
||||
// sb.Append("<tr>");
|
||||
// for (i = 0; i < dt_list.Rows.Count; i++)
|
||||
// {
|
||||
// //如果第一行超过一半的按钮就重新放一行
|
||||
// int second1 = dt_list.Rows.Count;
|
||||
// if ((second1) % 2 == 1)
|
||||
// {
|
||||
// second1 = second1 / 2 + 1;
|
||||
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// second1 = dt_list.Rows.Count / 2;
|
||||
// }
|
||||
// if (i > second1)
|
||||
// {
|
||||
// #region 第二行按钮
|
||||
|
||||
|
||||
// sb.Append("<td style=\"height:50%\">");
|
||||
// //标签id
|
||||
// string id = "button_ando_material_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
// #region 颜色代码
|
||||
|
||||
// //标签值
|
||||
// string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
// string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
// //string inputColor = "background-color:" + color + "";
|
||||
// if (color == "0")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
// }
|
||||
// if (color == "1")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
// }
|
||||
// if (color == "2")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
// }
|
||||
// #endregion
|
||||
|
||||
// sb.Append("</td>");
|
||||
// #endregion
|
||||
|
||||
// }
|
||||
// }
|
||||
// sb.Append("</tr>");
|
||||
// }
|
||||
// //小于4个物料ando按钮
|
||||
// else
|
||||
// {
|
||||
// sb.Append("<tr>");
|
||||
// int i = 0;
|
||||
// for (i = 0; i < dt_list.Rows.Count; i++)
|
||||
// {
|
||||
// //如果按钮数小于一半,都放在第一行
|
||||
// if (i < dt_list.Rows.Count)
|
||||
// {
|
||||
// #region 第一行按钮
|
||||
|
||||
|
||||
// sb.Append("<td style=\"height:50%\">");
|
||||
// //标签id
|
||||
// string id = "button_ando_material_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
// #region 颜色代码
|
||||
|
||||
// //标签值
|
||||
// string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
// string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
// //string inputColor = "background-color:" + color + "";
|
||||
// if (color == "0")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
// }
|
||||
// if (color == "1")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
// }
|
||||
// if (color == "2")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
// }
|
||||
// #endregion
|
||||
|
||||
// sb.Append("</td>");
|
||||
|
||||
// #endregion
|
||||
|
||||
// }
|
||||
// }
|
||||
// sb.Append("</tr>");
|
||||
// }
|
||||
//sb.Append("</table>");
|
||||
|
||||
//return sb.ToString();
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,605 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public class ando_matertial_2
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 物料ando明细查询 ANDON_类型_编号_查询
|
||||
/// </summary>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool andoListSelect(string opname, string andoTypeCode, out DataTable tb)
|
||||
{
|
||||
string procedureName = "ANDON_类型_编号_查询";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
DataSet ds;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
tb = null;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[2];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@安东类型代码", andoTypeCode);
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// ANDON_呼叫状态_解除(返回table)
|
||||
/// </summary>
|
||||
/// <param name="opname">工位号</param>
|
||||
/// <param name="number">具体button编号</param>
|
||||
/// <param name="andoTypeCode">安东类型代码</param>
|
||||
/// <param name="andoListCode">安东明细代码(补料,错料,不合格)</param>
|
||||
/// <param name="callInfo">呼叫内容</param>
|
||||
/// <returns></returns>
|
||||
public static bool AndoMaterialResetOutTable(string opname, string number, string andoTypeCode, string andoListCode, string callInfo,out DataTable tb)
|
||||
{
|
||||
string procedureName = "ANDON_呼叫状态_解除";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
DataSet ds;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
tb = null;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[5];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[0].Direction = ParameterDirection.Input;
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@编号", number);
|
||||
sqlParameters[1].Direction = ParameterDirection.Input;
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@安东类型代码", andoTypeCode);
|
||||
sqlParameters[2].Direction = ParameterDirection.Input;
|
||||
sqlParameters[3] = new System.Data.SqlClient.SqlParameter("@安东明细代码", andoListCode);
|
||||
sqlParameters[3].Direction = ParameterDirection.Input;
|
||||
sqlParameters[4] = new System.Data.SqlClient.SqlParameter("@解除内容", callInfo);
|
||||
sqlParameters[4].Direction = ParameterDirection.Input;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// ANDON_呼叫状态_解除
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="number"></param>
|
||||
/// <param name="andoTypeCode"></param>
|
||||
/// <param name="andoListCode"></param>
|
||||
/// <param name="callInfo"></param>
|
||||
/// <returns></returns>
|
||||
public static bool AndoMaterialReset(string opname, string number, string andoTypeCode, string andoListCode, string callInfo)
|
||||
{
|
||||
|
||||
string procedureName = "ANDON_呼叫状态_解除";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[5];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[0].Direction = ParameterDirection.Input;
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@编号", number);
|
||||
sqlParameters[1].Direction = ParameterDirection.Input;
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@安东类型代码", andoTypeCode);
|
||||
sqlParameters[2].Direction = ParameterDirection.Input;
|
||||
sqlParameters[3] = new System.Data.SqlClient.SqlParameter("@安东明细代码", andoListCode);
|
||||
sqlParameters[3].Direction = ParameterDirection.Input;
|
||||
sqlParameters[4] = new System.Data.SqlClient.SqlParameter("@解除内容", callInfo);
|
||||
sqlParameters[4].Direction = ParameterDirection.Input;
|
||||
bool isOK;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters);
|
||||
if (isOK)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ANDON_呼叫状态_呼叫(物料ando插入)
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="andoTypeCode"></param>
|
||||
/// <param name="andoListCode"></param>
|
||||
/// <param name="number"></param>
|
||||
/// <param name="callInfo"></param>
|
||||
/// <param name="callCount"></param>
|
||||
/// <param name="cardNumber"></param>
|
||||
/// <param name="noNumber"></param>
|
||||
/// <returns></returns>
|
||||
public static bool andoMaterialCall(string opname, string andoTypeCode, string andoListCode, string number, string callInfo, int callCount, string cardNumber, string noNumber)
|
||||
{
|
||||
|
||||
string procedureName = "ANDON_呼叫状态_呼叫";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
string errorMessage;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[8];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[0].Direction = ParameterDirection.Input;
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@安东类型代码", andoTypeCode);
|
||||
sqlParameters[1].Direction = ParameterDirection.Input;
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@安东明细代码", andoListCode);
|
||||
sqlParameters[2].Direction = ParameterDirection.Input;
|
||||
sqlParameters[3] = new System.Data.SqlClient.SqlParameter("@编号", number);
|
||||
sqlParameters[3].Direction = ParameterDirection.Input;
|
||||
sqlParameters[4] = new System.Data.SqlClient.SqlParameter("@呼叫内容", callInfo);
|
||||
sqlParameters[4].Direction = ParameterDirection.Input;
|
||||
sqlParameters[5] = new System.Data.SqlClient.SqlParameter("@呼叫数量", callCount);
|
||||
sqlParameters[5].Direction = ParameterDirection.Input;
|
||||
sqlParameters[6] = new System.Data.SqlClient.SqlParameter("@卡片条码", cardNumber);
|
||||
sqlParameters[6].Direction = ParameterDirection.Input;
|
||||
sqlParameters[7] = new System.Data.SqlClient.SqlParameter("@不合格代码", noNumber);
|
||||
sqlParameters[7].Direction = ParameterDirection.Input;
|
||||
bool isOK;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters);
|
||||
if (isOK)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// ANDON_呼叫状态_呼叫(物料ando插入,返回table)
|
||||
/// </summary>
|
||||
/// <param name="opname">工位号</param>
|
||||
/// <param name="andoTypeCode">安东类型代码</param>
|
||||
/// <param name="andoListCode">安东明细代码(缺料,补料,不合格)</param>
|
||||
/// <param name="number">编号(具体物料信息)</param>
|
||||
/// <param name="callInfo"></param>
|
||||
/// <param name="callCount"></param>
|
||||
/// <param name="cardNumber"></param>
|
||||
/// <param name="noNumber"></param>
|
||||
/// <param name="tb"></param>
|
||||
/// <returns></returns>
|
||||
public static bool andoMaterialCallOutTable(string opname, string andoTypeCode,string andoListCode,string number,string callInfo,int callCount,string cardNumber,string noNumber,out DataTable tb)
|
||||
{
|
||||
string procedureName = "ANDON_呼叫状态_呼叫";
|
||||
//string connectionString = ApplicationConfig.ConnectionString;
|
||||
DataSet ds;
|
||||
string errorMessage;
|
||||
bool isOK;
|
||||
tb = null;
|
||||
SqlParameter[] sqlParameters = new SqlParameter[8];
|
||||
sqlParameters[0] = new System.Data.SqlClient.SqlParameter("@工位号", opname);
|
||||
sqlParameters[0].Direction = ParameterDirection.Input;
|
||||
sqlParameters[1] = new System.Data.SqlClient.SqlParameter("@安东类型代码", andoTypeCode);
|
||||
sqlParameters[1].Direction = ParameterDirection.Input;
|
||||
sqlParameters[2] = new System.Data.SqlClient.SqlParameter("@安东明细代码", andoListCode);
|
||||
sqlParameters[2].Direction = ParameterDirection.Input;
|
||||
sqlParameters[3] = new System.Data.SqlClient.SqlParameter("@编号", number);
|
||||
sqlParameters[3].Direction = ParameterDirection.Input;
|
||||
sqlParameters[4] = new System.Data.SqlClient.SqlParameter("@呼叫内容", callInfo);
|
||||
sqlParameters[4].Direction = ParameterDirection.Input;
|
||||
sqlParameters[5] = new System.Data.SqlClient.SqlParameter("@呼叫数量", callCount);
|
||||
sqlParameters[5].Direction = ParameterDirection.Input;
|
||||
sqlParameters[6] = new System.Data.SqlClient.SqlParameter("@卡片条码", cardNumber);
|
||||
sqlParameters[6].Direction = ParameterDirection.Input;
|
||||
sqlParameters[7] = new System.Data.SqlClient.SqlParameter("@不合格代码", noNumber);
|
||||
sqlParameters[7].Direction = ParameterDirection.Input;
|
||||
isOK = DataAccess.ExecuteStoredProcedure(procedureName, ref sqlParameters, out ds);
|
||||
if (isOK)
|
||||
{
|
||||
if (ds.Tables.Count > 0)
|
||||
{
|
||||
tb = ds.Tables[0];
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 创建物料andon
|
||||
/// </summary>
|
||||
/// <param name="dt"></param>
|
||||
/// <returns></returns>
|
||||
public static string CreateAndo_Material(string opname,string AndoTypeCode)
|
||||
{
|
||||
System.Data.DataTable dt_list;
|
||||
//查询ando明细
|
||||
andoListSelect(opname, AndoTypeCode, out dt_list);
|
||||
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
//if (dt_list != null)
|
||||
//{
|
||||
// if (dt_list.Rows.Count > 0)
|
||||
// {
|
||||
sb.Append("<div id=\"div_ando_first_main\" class=\"div_ando_first_main\">");
|
||||
sb.Append("<div id=\"div_ando_first\" class=\"div_ando_first\">");
|
||||
sb.Append("<div style=\"width:96%;height:92%;margin-left:10px;margin-top:10px;\">");
|
||||
|
||||
#region 大图片的div
|
||||
sb.Append("<div style=\"width:8%;height:100%;float:left;\">");
|
||||
sb.Append("<img alt=\"loading....\" src=\"../images/materiracall2.png\" width=\"92%\" height=\"100%\" />");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
#region 整个ANDON选项DIV
|
||||
sb.Append("<div style=\"width:67%;height:100%;float:left;\">");
|
||||
|
||||
#region 左按钮DIV
|
||||
sb.Append("<div style=\"width:10%;height:100%;float:left;\">");
|
||||
sb.Append("<input type=\"button\" style=\"width:100%;height:100%;text-align:center;font-size:30px;\" value=\"<<\" onclick=\"RightMove()\" />");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
|
||||
#region 中间内容DIV
|
||||
sb.Append("<div style=\"width:80%;height:100%;float:left;\">");
|
||||
|
||||
#region 可支持移动的div
|
||||
|
||||
sb.Append("<div style=\"width:100%;height:100%; overflow:hidden;position:relative;\" id=\"div_andon_table_material\">");
|
||||
|
||||
sb.Append("<div id=\"div_Scroll\" style=\"width:100%;height:100%; position:relative;\" >");
|
||||
|
||||
|
||||
//附加tabel
|
||||
string tabelString=CreatAndo_Material_table(opname,AndoTypeCode);
|
||||
sb.Append(tabelString);
|
||||
|
||||
sb.Append("</div>");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
#region 右按钮div
|
||||
|
||||
sb.Append("<div style=\"width:10%;height:100%;float:left;\">");
|
||||
|
||||
sb.Append("<input type=\"button\" style=\"width:100%;height:100%;text-align:center;font-size:30px;\" value=\">>\" onclick=\"leftMove()\" />");
|
||||
sb.Append("</div>");
|
||||
|
||||
#endregion
|
||||
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
#region ando按钮div
|
||||
|
||||
sb.Append("<div style=\"width:25%;height:100%;float:left;\">");
|
||||
|
||||
sb.Append("<div style=\"width: 100%; height:80%; margin: 20px 0px 0px 5px;\">");
|
||||
|
||||
sb.Append("<table style=\"width: 100%;\">");
|
||||
sb.Append("<tr>");
|
||||
sb.Append("<td align=\"left\">");
|
||||
sb.Append("<img onclick=\"andon_call_down('m_call')\" alt=\"loading...\" id='m_call' src=\"../images/call.png\" style=\"width: 100px; height: 80px\"/>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("<td align=\"right\">");
|
||||
sb.Append("<img onclick=\"andon_reset_down('m_reset')\" alt=\"loading...\" id='m_reset' src=\"../images/reset.png\" style=\"width: 100px;height: 80px\" />");
|
||||
sb.Append("</td>");
|
||||
sb.Append("</tr>");
|
||||
sb.Append("<tr>");
|
||||
sb.Append("<td style=\"padding-top: 20px\" align=\"center\">");
|
||||
sb.Append("<label style=\"padding-top: 20px;font-size:18px;\">呼 叫</label>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("<td style=\"padding-top: 20px\" align=\"center\">");
|
||||
sb.Append("<label style=\"padding-top: 20px;font-size:18px;\">复 位</label>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("</tr>");
|
||||
sb.Append("</table>");
|
||||
|
||||
sb.Append("</div>");
|
||||
|
||||
sb.Append("</div>");
|
||||
|
||||
#endregion
|
||||
|
||||
sb.Append("</div></div></div>");
|
||||
|
||||
// }
|
||||
|
||||
//}
|
||||
return sb.ToString();
|
||||
}
|
||||
/// <summary>
|
||||
/// 更新物料安东的中间的tabel
|
||||
/// </summary>
|
||||
/// <param name="opname">工位号</param>
|
||||
/// <param name="AndoTypeCode">物料ando类型明细</param>
|
||||
/// <returns></returns>
|
||||
public static string CreatAndo_Material_table(string opname, string AndoTypeCode)
|
||||
{
|
||||
System.Data.DataTable dt_list;
|
||||
//查询ando明细
|
||||
andoListSelect(opname, AndoTypeCode, out dt_list);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
int tableCount = dt_list.Rows.Count;
|
||||
int td_count = (tableCount / 2) + (tableCount % 2);//获取每个tr中应该创建多少个td
|
||||
int tablewidth = 145 * td_count;
|
||||
if (tablewidth == 0)
|
||||
{
|
||||
tablewidth = 10;
|
||||
}
|
||||
string tablewidth2 = Convert.ToString(tablewidth) + "px";
|
||||
|
||||
#region table
|
||||
|
||||
sb.Append("<table id=\"table_Scroll\" style=\"width:" + tablewidth2 + ";height:100%;left:0px;\">");
|
||||
|
||||
//创建第一行
|
||||
sb.Append("<tr>");
|
||||
for (int i = 0; i < td_count; i++)
|
||||
{
|
||||
#region 第一行按钮
|
||||
sb.Append("<td style=\"height:50%;width:145px;\">");
|
||||
//标签id
|
||||
string id = "button_ando_material_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
#region 颜色代码
|
||||
//标签值
|
||||
string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
//string inputColor = "background-color:" + color + "";
|
||||
if (color == "0")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
}
|
||||
if (color == "1")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
}
|
||||
if (color == "2")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
sb.Append("</td>");
|
||||
|
||||
#endregion
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
|
||||
|
||||
//创建第二行
|
||||
sb.Append("<tr>");
|
||||
for (int i = td_count; i < tableCount; i++)
|
||||
{
|
||||
#region 第二行按钮
|
||||
sb.Append("<td style=\"height:50%;width:145px;\">");
|
||||
//标签id
|
||||
string id = "button_ando_material_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
#region 颜色代码
|
||||
//标签值
|
||||
string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
//string inputColor = "background-color:" + color + "";
|
||||
if (color == "0")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
}
|
||||
if (color == "1")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
}
|
||||
if (color == "2")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
sb.Append("</td>");
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
//补充第二行的信息
|
||||
if ((tableCount % 2) > 0 && (tableCount > 0))
|
||||
{
|
||||
sb.Append("<td style=\"height:50%\">");
|
||||
sb.Append("</td>");
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
|
||||
//最后组合成table
|
||||
sb.Append("</table>");
|
||||
return sb.ToString();
|
||||
|
||||
|
||||
// if (tableCount > 4)
|
||||
// {
|
||||
// sb.Append("<tr>");
|
||||
// int i = 0;
|
||||
// for (i = 0; i < dt_list.Rows.Count; i++)
|
||||
// {
|
||||
// //总条数
|
||||
// int seecond = dt_list.Rows.Count;
|
||||
// //总条数和2取余
|
||||
// int seecond1 = seecond % 2;
|
||||
// if ((seecond % 2) == 1)
|
||||
// {
|
||||
// seecond = seecond / 2 + 1;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// seecond = dt_list.Rows.Count / 2;
|
||||
// }
|
||||
// if (i <= seecond)
|
||||
// {
|
||||
// #region 第一行按钮
|
||||
|
||||
|
||||
// sb.Append("<td style=\"height:50%\">");
|
||||
// //标签id
|
||||
// string id = "button_ando_material_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
// #region 颜色代码
|
||||
// //标签值
|
||||
// string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
// string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
// //string inputColor = "background-color:" + color + "";
|
||||
// if (color == "0")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
// }
|
||||
// if (color == "1")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
// }
|
||||
// if (color == "2")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
// }
|
||||
// #endregion
|
||||
|
||||
// sb.Append("</td>");
|
||||
|
||||
// #endregion
|
||||
|
||||
// }
|
||||
// }
|
||||
// sb.Append("</tr>");
|
||||
// sb.Append("<tr>");
|
||||
// for (i = 0; i < dt_list.Rows.Count; i++)
|
||||
// {
|
||||
// //如果第一行超过一半的按钮就重新放一行
|
||||
// int second1 = dt_list.Rows.Count;
|
||||
// if ((second1) % 2 == 1)
|
||||
// {
|
||||
// second1 = second1 / 2 + 1;
|
||||
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// second1 = dt_list.Rows.Count / 2;
|
||||
// }
|
||||
// if (i > second1)
|
||||
// {
|
||||
// #region 第二行按钮
|
||||
|
||||
|
||||
// sb.Append("<td style=\"height:50%\">");
|
||||
// //标签id
|
||||
// string id = "button_ando_material_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
// #region 颜色代码
|
||||
|
||||
// //标签值
|
||||
// string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
// string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
// //string inputColor = "background-color:" + color + "";
|
||||
// if (color == "0")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
// }
|
||||
// if (color == "1")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
// }
|
||||
// if (color == "2")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
// }
|
||||
// #endregion
|
||||
|
||||
// sb.Append("</td>");
|
||||
// #endregion
|
||||
|
||||
// }
|
||||
// }
|
||||
// sb.Append("</tr>");
|
||||
// }
|
||||
// //小于4个物料ando按钮
|
||||
// else
|
||||
// {
|
||||
// sb.Append("<tr>");
|
||||
// int i = 0;
|
||||
// for (i = 0; i < dt_list.Rows.Count; i++)
|
||||
// {
|
||||
// //如果按钮数小于一半,都放在第一行
|
||||
// if (i < dt_list.Rows.Count)
|
||||
// {
|
||||
// #region 第一行按钮
|
||||
|
||||
|
||||
// sb.Append("<td style=\"height:50%\">");
|
||||
// //标签id
|
||||
// string id = "button_ando_material_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
// #region 颜色代码
|
||||
|
||||
// //标签值
|
||||
// string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
// string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
// //string inputColor = "background-color:" + color + "";
|
||||
// if (color == "0")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
// }
|
||||
// if (color == "1")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
// }
|
||||
// if (color == "2")
|
||||
// {
|
||||
// sb.Append("<input type=\"button\" onclick=\"andon_material(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
// }
|
||||
// #endregion
|
||||
|
||||
// sb.Append("</td>");
|
||||
|
||||
// #endregion
|
||||
|
||||
// }
|
||||
// }
|
||||
// sb.Append("</tr>");
|
||||
// }
|
||||
//sb.Append("</table>");
|
||||
|
||||
//return sb.ToString();
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
225
Common/07WebBusinessFacade/BusinessFacade/Web/ando_quality.cs
Normal file
225
Common/07WebBusinessFacade/BusinessFacade/Web/ando_quality.cs
Normal file
@@ -0,0 +1,225 @@
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
using System.Text;
|
||||
using System;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public class ando_quality
|
||||
{
|
||||
/// <summary>
|
||||
/// 创建质量ando
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="AndoTypeCode"></param>
|
||||
/// <returns></returns>
|
||||
public static string CreateAndo_quality(string opname, string AndoTypeCode)
|
||||
{
|
||||
System.Data.DataTable dt_list;
|
||||
//查询ando明细
|
||||
ando_matertial.andoListSelect(opname, AndoTypeCode, out dt_list);
|
||||
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
sb.Append("<div id=\"div_ando_second_main\" class=\"div_ando_second_main\">");
|
||||
sb.Append("<div id=\"div_ando_second\" class=\"div_ando_second\">");
|
||||
sb.Append("<div style=\"width:96%;height:92%;margin-left:10px;margin-top:10px;\">");
|
||||
|
||||
#region 大图片的div
|
||||
sb.Append("<div style=\"width:8%;height:100%;float:left;\">");
|
||||
sb.Append("<img alt=\"loading....\" src=\"../images/ando_quality.png\" width=\"92%\" height=\"100%\" onclick=\"btn_Manual_QualityDataFTT()\" />");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
#region 整个ANDON选项DIV
|
||||
sb.Append("<div style=\"width:70%;height:100%;float:left;\">");
|
||||
|
||||
#region 左按钮DIV
|
||||
sb.Append("<div style=\"width:10%;height:100%;float:left;\">");
|
||||
sb.Append("<input type=\"button\" style=\"width:100%;height:100%;text-align:center;font-size:30px;\" value=\"<<\" onclick=\"quality_RightMove()\" />");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
|
||||
#region 中间内容DIV
|
||||
sb.Append("<div style=\"width:80%;height:100%;float:left;\">");
|
||||
|
||||
#region 可支持移动的div
|
||||
|
||||
sb.Append("<div style=\"width:100%;height:100%; overflow:hidden;position:relative;\">");
|
||||
|
||||
sb.Append("<div id=\"div_quality_Scroll\" style=\"width:100%;height:100%; position:relative;\">");
|
||||
|
||||
|
||||
//附加tabel
|
||||
string tabelString = CreatAndo_quality_table(opname, AndoTypeCode);
|
||||
sb.Append(tabelString);
|
||||
|
||||
sb.Append("</div>");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
#region 右按钮div
|
||||
|
||||
sb.Append("<div style=\"width:10%;height:100%;float:left;\">");
|
||||
|
||||
sb.Append("<input type=\"button\" style=\"width:100%;height:100%;text-align:center;font-size:30px;\" value=\">>\" onclick=\"qualty_leftMove()\" />");
|
||||
sb.Append("</div>");
|
||||
|
||||
#endregion
|
||||
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
#region ando按钮div
|
||||
|
||||
sb.Append("<div style=\"width:22%;height:100%;float:left;\">");
|
||||
|
||||
sb.Append("<div style=\"width: 100%; height: 100%; margin: 30px 0px 0px -5px;\">");
|
||||
|
||||
sb.Append("<table style=\"width: 100%;\">");
|
||||
sb.Append("<tr>");
|
||||
sb.Append("<td align=\"left\">");
|
||||
sb.Append("<img onclick=\"andon_quality_call_down('m_quality_call')\" alt=\"loading...\" id='m_quality_call' src=\"../images/call.png\" style=\"width: 100px; height: 80px\"/>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("<td align=\"right\">");
|
||||
sb.Append("<img onclick=\"andon_quality_reset_down('m_quality_reset')\" alt=\"loading...\" id='m_quality_reset' src=\"../images/reset.png\" style=\"width: 100px;height: 80px\" />");
|
||||
sb.Append("</td>");
|
||||
sb.Append("</tr>");
|
||||
sb.Append("<tr>");
|
||||
sb.Append("<td style=\"padding-top: 20px\" align=\"center\">");
|
||||
sb.Append("<label style=\"padding-top: 20px;font-size:18px;\">呼 叫</label>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("<td style=\"padding-top: 20px\" align=\"center\">");
|
||||
sb.Append("<label style=\"padding-top: 20px;font-size:18px;\">复 位</label>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("</tr>");
|
||||
sb.Append("</table>");
|
||||
|
||||
sb.Append("</div>");
|
||||
|
||||
sb.Append("</div>");
|
||||
|
||||
#endregion
|
||||
|
||||
sb.Append("</div></div></div>");
|
||||
|
||||
|
||||
return sb.ToString();
|
||||
//string text = "";
|
||||
//int count = dt_list.Rows.Count/2*120;
|
||||
//return text = "{\"InnerHtml\":\"" + sb.ToString() + "\",\"Count\":\"" + count + "\"}";
|
||||
}
|
||||
/// <summary>
|
||||
/// 创建物料ando的table
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="AndoTypeCode"></param>
|
||||
/// <returns></returns>
|
||||
public static string CreatAndo_quality_table(string opname, string AndoTypeCode)
|
||||
{
|
||||
System.Data.DataTable dt_list;
|
||||
//查询ando明细
|
||||
ando_matertial.andoListSelect(opname, AndoTypeCode, out dt_list);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
int tableCount = dt_list.Rows.Count;
|
||||
int td_count = (tableCount / 2) + (tableCount % 2);//获取每个tr中应该创建多少个td
|
||||
int tablewidth = 145 * td_count;
|
||||
if (tablewidth == 0)
|
||||
{
|
||||
tablewidth = 10;
|
||||
}
|
||||
string tablewidth2 = Convert.ToString(tablewidth) + "px";
|
||||
|
||||
#region table
|
||||
|
||||
sb.Append("<table id=\"table_quality_Scroll\" style=\"width:" + tablewidth2 + ";height:100%;left:0px;\">");
|
||||
|
||||
//创建第一行
|
||||
sb.Append("<tr>");
|
||||
for (int i = 0; i < td_count; i++)
|
||||
{
|
||||
#region 第一行按钮
|
||||
sb.Append("<td style=\"height:50%;width:145px;\">");
|
||||
//标签id
|
||||
string id = "button_ando_quality_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
#region 颜色代码
|
||||
//标签值
|
||||
string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
//string inputColor = "background-color:" + color + "";
|
||||
if (color == "0")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_quality(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
}
|
||||
if (color == "1")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_quality(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
}
|
||||
if (color == "2")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_quality(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
sb.Append("</td>");
|
||||
|
||||
#endregion
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
|
||||
|
||||
//创建第二行
|
||||
sb.Append("<tr>");
|
||||
for (int i = td_count; i < tableCount; i++)
|
||||
{
|
||||
#region 第二行按钮
|
||||
sb.Append("<td style=\"height:50%;width:145px;\">");
|
||||
//标签id
|
||||
string id = "button_ando_quality_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
#region 颜色代码
|
||||
//标签值
|
||||
string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
if (color == "0")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_quality(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
}
|
||||
if (color == "1")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_quality(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
}
|
||||
if (color == "2")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_quality(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
sb.Append("</td>");
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
//补充第二行的信息
|
||||
if ((tableCount % 2) > 0 && (tableCount > 0))
|
||||
{
|
||||
sb.Append("<td style=\"height:50%\">");
|
||||
sb.Append("</td>");
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
|
||||
//最后组合成table
|
||||
sb.Append("</table>");
|
||||
return sb.ToString();
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
225
Common/07WebBusinessFacade/BusinessFacade/Web/ando_quality_2.cs
Normal file
225
Common/07WebBusinessFacade/BusinessFacade/Web/ando_quality_2.cs
Normal file
@@ -0,0 +1,225 @@
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using DataLinkMesWork;
|
||||
using System.Security.Cryptography;
|
||||
//using SystemFramework;
|
||||
using System.Text;
|
||||
using System;
|
||||
|
||||
namespace bizFacade
|
||||
{
|
||||
public class ando_quality_2
|
||||
{
|
||||
/// <summary>
|
||||
/// 创建质量ando
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="AndoTypeCode"></param>
|
||||
/// <returns></returns>
|
||||
public static string CreateAndo_quality(string opname, string AndoTypeCode)
|
||||
{
|
||||
System.Data.DataTable dt_list;
|
||||
//查询ando明细
|
||||
ando_matertial.andoListSelect(opname, AndoTypeCode, out dt_list);
|
||||
|
||||
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
sb.Append("<div id=\"div_ando_second_main\" class=\"div_ando_second_main\">");
|
||||
sb.Append("<div id=\"div_ando_second\" class=\"div_ando_second\">");
|
||||
sb.Append("<div style=\"width:96%;height:92%;margin-left:10px;margin-top:10px;\">");
|
||||
|
||||
#region 大图片的div
|
||||
sb.Append("<div style=\"width:8%;height:100%;float:left;\">");
|
||||
sb.Append("<img alt=\"loading....\" src=\"../images/ando_quality.png\" width=\"92%\" height=\"100%\" onclick=\"btn_Manual_QualityDataFTT()\" />");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
#region 整个ANDON选项DIV
|
||||
sb.Append("<div style=\"width:67%;height:100%;float:left;\">");
|
||||
|
||||
#region 左按钮DIV
|
||||
sb.Append("<div style=\"width:10%;height:100%;float:left;\">");
|
||||
sb.Append("<input type=\"button\" style=\"width:100%;height:100%;text-align:center;font-size:30px;\" value=\"<<\" onclick=\"quality_RightMove()\" />");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
|
||||
#region 中间内容DIV
|
||||
sb.Append("<div style=\"width:80%;height:100%;float:left;\">");
|
||||
|
||||
#region 可支持移动的div
|
||||
|
||||
sb.Append("<div style=\"width:100%;height:100%; overflow:hidden;position:relative;\">");
|
||||
|
||||
sb.Append("<div id=\"div_quality_Scroll\" style=\"width:100%;height:100%; position:relative;\">");
|
||||
|
||||
|
||||
//附加tabel
|
||||
string tabelString = CreatAndo_quality_table(opname, AndoTypeCode);
|
||||
sb.Append(tabelString);
|
||||
|
||||
sb.Append("</div>");
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
|
||||
#region 右按钮div
|
||||
|
||||
sb.Append("<div style=\"width:10%;height:100%;float:left;\">");
|
||||
|
||||
sb.Append("<input type=\"button\" style=\"width:100%;height:100%;text-align:center;font-size:30px;\" value=\">>\" onclick=\"qualty_leftMove()\" />");
|
||||
sb.Append("</div>");
|
||||
|
||||
#endregion
|
||||
|
||||
sb.Append("</div>");
|
||||
#endregion
|
||||
#region ando按钮div
|
||||
|
||||
sb.Append("<div style=\"width:25%;height:100%;float:left;\">");
|
||||
|
||||
sb.Append("<div style=\"width: 100%; height:80%; margin: 20px 0px 0px 5px;\">");
|
||||
|
||||
sb.Append("<table style=\"width: 100%;\">");
|
||||
sb.Append("<tr>");
|
||||
sb.Append("<td align=\"left\">");
|
||||
sb.Append("<img onclick=\"andon_quality_call_down('m_quality_call')\" alt=\"loading...\" id='m_quality_call' src=\"../images/call.png\" style=\"width: 100px; height: 80px\"/>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("<td align=\"right\">");
|
||||
sb.Append("<img onclick=\"andon_quality_reset_down('m_quality_reset')\" alt=\"loading...\" id='m_quality_reset' src=\"../images/reset.png\" style=\"width: 100px;height: 80px\" />");
|
||||
sb.Append("</td>");
|
||||
sb.Append("</tr>");
|
||||
sb.Append("<tr>");
|
||||
sb.Append("<td style=\"padding-top: 20px\" align=\"center\">");
|
||||
sb.Append("<label style=\"padding-top: 20px;font-size:18px;\">呼 叫</label>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("<td style=\"padding-top: 20px\" align=\"center\">");
|
||||
sb.Append("<label style=\"padding-top: 20px;font-size:18px;\">复 位</label>");
|
||||
sb.Append("</td>");
|
||||
sb.Append("</tr>");
|
||||
sb.Append("</table>");
|
||||
|
||||
sb.Append("</div>");
|
||||
|
||||
sb.Append("</div>");
|
||||
|
||||
#endregion
|
||||
|
||||
sb.Append("</div></div></div>");
|
||||
|
||||
|
||||
return sb.ToString();
|
||||
//string text = "";
|
||||
//int count = dt_list.Rows.Count/2*120;
|
||||
//return text = "{\"InnerHtml\":\"" + sb.ToString() + "\",\"Count\":\"" + count + "\"}";
|
||||
}
|
||||
/// <summary>
|
||||
/// 创建物料ando的table
|
||||
/// </summary>
|
||||
/// <param name="opname"></param>
|
||||
/// <param name="AndoTypeCode"></param>
|
||||
/// <returns></returns>
|
||||
public static string CreatAndo_quality_table(string opname, string AndoTypeCode)
|
||||
{
|
||||
System.Data.DataTable dt_list;
|
||||
//查询ando明细
|
||||
ando_matertial.andoListSelect(opname, AndoTypeCode, out dt_list);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
int tableCount = dt_list.Rows.Count;
|
||||
int td_count = (tableCount / 2) + (tableCount % 2);//获取每个tr中应该创建多少个td
|
||||
int tablewidth = 145 * td_count;
|
||||
if (tablewidth == 0)
|
||||
{
|
||||
tablewidth = 10;
|
||||
}
|
||||
string tablewidth2 = Convert.ToString(tablewidth) + "px";
|
||||
|
||||
#region table
|
||||
|
||||
sb.Append("<table id=\"table_quality_Scroll\" style=\"width:" + tablewidth2 + ";height:100%;left:0px;\">");
|
||||
|
||||
//创建第一行
|
||||
sb.Append("<tr>");
|
||||
for (int i = 0; i < td_count; i++)
|
||||
{
|
||||
#region 第一行按钮
|
||||
sb.Append("<td style=\"height:50%;width:145px;\">");
|
||||
//标签id
|
||||
string id = "button_ando_quality_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
#region 颜色代码
|
||||
//标签值
|
||||
string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
//string inputColor = "background-color:" + color + "";
|
||||
if (color == "0")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_quality(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
}
|
||||
if (color == "1")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_quality(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
}
|
||||
if (color == "2")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_quality(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
sb.Append("</td>");
|
||||
|
||||
#endregion
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
|
||||
|
||||
//创建第二行
|
||||
sb.Append("<tr>");
|
||||
for (int i = td_count; i < tableCount; i++)
|
||||
{
|
||||
#region 第二行按钮
|
||||
sb.Append("<td style=\"height:50%;width:145px;\">");
|
||||
//标签id
|
||||
string id = "button_ando_quality_" + dt_list.Rows[i]["编号"].ToString();
|
||||
|
||||
#region 颜色代码
|
||||
//标签值
|
||||
string value = dt_list.Rows[i]["编号描述2"].ToString();
|
||||
string color = dt_list.Rows[i]["颜色代码"].ToString();
|
||||
if (color == "0")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_quality(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;\"/>");
|
||||
}
|
||||
if (color == "1")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_quality(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:pink;\"/>");
|
||||
}
|
||||
if (color == "2")
|
||||
{
|
||||
sb.Append("<input type=\"button\" onclick=\"andon_quality(id)\" id=\"" + id + "\" value=\"" + value + "\" style=\"width: 140px; height:100%;background-color:yellow;\"/>");
|
||||
}
|
||||
#endregion
|
||||
|
||||
sb.Append("</td>");
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
//补充第二行的信息
|
||||
if ((tableCount % 2) > 0 && (tableCount > 0))
|
||||
{
|
||||
sb.Append("<td style=\"height:50%\">");
|
||||
sb.Append("</td>");
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
|
||||
//最后组合成table
|
||||
sb.Append("</table>");
|
||||
return sb.ToString();
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
Common/07WebBusinessFacade/BusinessFacade/Web/vssver2.scc
Normal file
BIN
Common/07WebBusinessFacade/BusinessFacade/Web/vssver2.scc
Normal file
Binary file not shown.
Reference in New Issue
Block a user