98 lines
4.3 KiB
C#
98 lines
4.3 KiB
C#
using System;
|
|
using System.Data;
|
|
using System.Data.SqlClient;
|
|
using DataLinkMesWork;
|
|
using System.Collections;
|
|
using System.Collections.Specialized;
|
|
using SystemFramework;
|
|
|
|
namespace bizFacade
|
|
{
|
|
/// <summary>
|
|
/// 电子看板信息系统
|
|
/// </summary>
|
|
public partial class BaseDataSystemMES
|
|
{
|
|
/// <summary>
|
|
/// 测量数据合格索引_增加
|
|
/// 用于B5A项目
|
|
/// ALTER PROCEDURE [dbo].[测量数据合格索引_增加]
|
|
///@EngineID nvarchar(50)=null,
|
|
///@TagID_CF int = null,
|
|
///@EngineType nvarchar(50)=null,
|
|
///@EngineTypeID int = null,
|
|
///@工位号 nvarchar(50)=null,
|
|
///@订单号 nvarchar(50)=null,
|
|
///@合格标志 int=null,
|
|
///@TagValue1 nvarchar(50)=null,
|
|
///@TagValue2 nvarchar(50)=null,
|
|
///@TagValue3 nvarchar(50)=null,
|
|
///@TagValue4 nvarchar(50)=null,
|
|
///@TagValue5 nvarchar(50)=null,
|
|
///@TagValue6 nvarchar(50)=null,
|
|
///@TagValue7 nvarchar(50)=null,
|
|
///@TagValue8 nvarchar(50)=null,
|
|
///@TagValue9 nvarchar(50)=null,
|
|
///@TagValue10 nvarchar(50)=null,
|
|
///@TagValue nvarchar(50)=null,
|
|
///@Id_tagCF int=null output
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public static bool BaseData_tagTable_QualityData_B5A_IndexInsert
|
|
(string EngineID, string tagID, string EngineType, int EngineTypeID, string opName,
|
|
int isGoodBad,string PartPalletCode, out int Id_tagCF)
|
|
{
|
|
string procedureName;
|
|
procedureName = "测量数据合格索引_增加";
|
|
Id_tagCF = 0;
|
|
SqlParameter[] thisParms = new SqlParameter[8];
|
|
thisParms[0] = new System.Data.SqlClient.SqlParameter("@EngineID", EngineID);
|
|
thisParms[1] = new System.Data.SqlClient.SqlParameter("@TagID_CF", tagID);
|
|
thisParms[2] = new System.Data.SqlClient.SqlParameter("@EngineType", EngineType);
|
|
thisParms[3] = new System.Data.SqlClient.SqlParameter("@EngineTypeID", EngineTypeID);
|
|
thisParms[4] = new System.Data.SqlClient.SqlParameter("@工位号", opName);
|
|
thisParms[5] = new System.Data.SqlClient.SqlParameter("@托盘编号", PartPalletCode);
|
|
thisParms[6] = new System.Data.SqlClient.SqlParameter("@合格标志", isGoodBad);
|
|
thisParms[7] = new System.Data.SqlClient.SqlParameter("@Id_tagCF", Id_tagCF);
|
|
thisParms[7].Direction = ParameterDirection.Output;
|
|
|
|
if (DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms))
|
|
{
|
|
Id_tagCF = Convert.ToInt32(thisParms[7].Value.ToString());
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/// <summary>
|
|
/// alter PROCEDURE dbo.[测量数据合格_增加]
|
|
///@Id_tagCF int = null,
|
|
///@EngineTypeID int =null,
|
|
///@EngineID nvarchar(100)=null,
|
|
///@TagID int=null,
|
|
///@TagValue nvarchar(100)=null,
|
|
///@IsGoodBad int=null,
|
|
/// </summary>
|
|
/// <param name="Id_tagCF"></param>
|
|
/// <param name="engineTypeID"></param>
|
|
/// <param name="engineID"></param>
|
|
/// <param name="opName"></param>
|
|
/// <param name="dt"></param>
|
|
public static bool BaseData_tagTable_QualityData_B5A_Insert
|
|
(int Id_tagCF,int engineTypeID,string engineID,string opName,DataTable dt)
|
|
{
|
|
string procedureName;
|
|
procedureName = "测量数据合格_增加";
|
|
SqlParameter[] thisParms = new SqlParameter[6];
|
|
thisParms[0] = new System.Data.SqlClient.SqlParameter("@Id_tagCF", Id_tagCF);
|
|
thisParms[1] = new System.Data.SqlClient.SqlParameter("@EngineTypeID", engineTypeID);
|
|
thisParms[2] = new System.Data.SqlClient.SqlParameter("@EngineID", engineID);
|
|
thisParms[3] = new System.Data.SqlClient.SqlParameter("@TagID", SqlDbType.NVarChar, 50, "TagID");
|
|
thisParms[4] = new System.Data.SqlClient.SqlParameter("@TagValue", SqlDbType.NVarChar, 100, "TagValue");
|
|
thisParms[5] = new System.Data.SqlClient.SqlParameter("@IsGoodBad", SqlDbType.Int, 4, "IsGoodBad");
|
|
return DataAccess.ExecuteStoredProcedure(procedureName, ref thisParms, dt);
|
|
}
|
|
|
|
}
|
|
}
|