|
|
|
|
using System;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Configuration;
|
|
|
|
|
using System.Data.SqlClient;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using DSWeb.Models;
|
|
|
|
|
using DSWeb.DataAccess;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.EntityDA
|
|
|
|
|
{
|
|
|
|
|
public class BoxDA
|
|
|
|
|
{
|
|
|
|
|
private const string SQL_SELECT_BOX_ALL = "select * from container_info";
|
|
|
|
|
|
|
|
|
|
public String GetBoxDel(string strGid, string strUserID)
|
|
|
|
|
{
|
|
|
|
|
string alt = "";
|
|
|
|
|
string str = "delete from container_info where Cntrid in (" + strGid+")";
|
|
|
|
|
bool bl = SqlHelper.ExecuteSqlCommand(SqlHelper.ConnectionStringLocalTransaction, str);
|
|
|
|
|
if (bl == false)
|
|
|
|
|
{
|
|
|
|
|
alt = "删除操作出错!";
|
|
|
|
|
return alt;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
//string str1 = "insert into sys_log(NAME,LOGTYPE,LOGCONTENT,CREATEUSER) values('删除公司表(company)的信息','更新操作','" + str + "','" + strUserID + "')";
|
|
|
|
|
//bool bl1 = SqlHelper.ExecuteSqlCommand(SqlHelper.ConnectionStringLocalTransaction, str1);
|
|
|
|
|
}
|
|
|
|
|
return alt;
|
|
|
|
|
}
|
|
|
|
|
public String GetBoxBusinessDel(string strGid, string strUserID)
|
|
|
|
|
{
|
|
|
|
|
string alt = "";
|
|
|
|
|
string str = "delete from container_business where b_id in (" + strGid + ")";
|
|
|
|
|
bool bl = SqlHelper.ExecuteSqlCommand(SqlHelper.ConnectionStringLocalTransaction, str);
|
|
|
|
|
if (bl == false)
|
|
|
|
|
{
|
|
|
|
|
alt = "删除操作出错!";
|
|
|
|
|
return alt;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
//string str1 = "insert into sys_log(NAME,LOGTYPE,LOGCONTENT,CREATEUSER) values('删除公司表(company)的信息','更新操作','" + str + "','" + strUserID + "')";
|
|
|
|
|
//bool bl1 = SqlHelper.ExecuteSqlCommand(SqlHelper.ConnectionStringLocalTransaction, str1);
|
|
|
|
|
}
|
|
|
|
|
return alt;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|