You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.4 KiB
C#
56 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Estsh.BLL;
|
|
using Estsh.Web.Dal;
|
|
using Estsh.Web.Util;
|
|
using System.Collections;
|
|
using System.Data;
|
|
|
|
namespace Estsh.Core.Services
|
|
{
|
|
public class SwapSNInfoService
|
|
{
|
|
//创建 SwapSNInfoDal
|
|
private SwapSNInfoDal dal = new SwapSNInfoDal(RemotingProxyProvider._remotingProxy);
|
|
|
|
public bool ExistSn(string serial_number)
|
|
{
|
|
bool result = false;
|
|
string sql = "SELECT * FROM dbo.g_sn_status WHERE (serial_number=@serial_number)";
|
|
Hashtable values = new Hashtable(1);
|
|
values.Add("@serial_number", serial_number);
|
|
DataTable dt = RemotingProxyProvider._remotingProxy.GetDataTable(sql, values);
|
|
if (dt.Rows.Count > 0)
|
|
{
|
|
result = true;
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public string GetAuditSwapFlag()
|
|
{
|
|
|
|
return dal.GetAuditSwapFlag();
|
|
|
|
}
|
|
|
|
public string UpdateTable(string oldSN, string newSN, string flag, int empId)
|
|
{
|
|
return dal.UpdateTable(oldSN, newSN, flag, empId);
|
|
}
|
|
|
|
|
|
public ArrayList GetSwapDataList(Hashtable para, bool fuzzyQuery)
|
|
{
|
|
DataTable dt = new DataTable();
|
|
dt = dal.GetSwapDataList(para, fuzzyQuery);
|
|
return DataTypeConvert.NewObject.DataTableToArrayList(dt);
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|