using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using CY.IDAL;
|
using CY.Model;
|
using AbstractFactory;
|
using CY.IBaseDAL;
|
using CY.Infrastructure.DESEncrypt;
|
using CY.Infrastructure.Query;
|
using System.Data;
|
namespace CY.BLL
|
{
|
/// <summary>
|
/// 订单文件的业务逻辑类
|
/// </summary>
|
public class LF_OrderFileBLL
|
{
|
ILF_OrderFilesDAL _ILF_OrderFilesDAL = null;
|
/// <summary>
|
/// 初始化构造
|
/// </summary>
|
public LF_OrderFileBLL()
|
{
|
//获取Info_Ad DAL实现
|
_ILF_OrderFilesDAL = Factory.GetDALByInterfaceName(DALInterface.ILF_OrderFilesDAL) as ILF_OrderFilesDAL;
|
}
|
|
/// <summary>
|
/// 新增文件信息
|
/// </summary>
|
/// <param name="rType"></param>
|
/// <param name="m_OA_CustomerCommunications"></param>
|
/// <param name="m_EC_AcceptWayByCustomers"></param>
|
/// <returns></returns>
|
public bool InserModel(LF_OrderFile model)
|
{
|
try
|
{
|
return _ILF_OrderFilesDAL.InserModel(model);
|
}
|
catch (Exception ex)
|
{
|
throw ex;
|
}
|
}
|
|
/// <summary>
|
/// 修改文件信息
|
/// </summary>
|
/// <param name="rType"></param>
|
/// <returns></returns>
|
public bool UpdateModel(LF_OrderFile model)
|
{
|
try
|
{
|
return _ILF_OrderFilesDAL.UpdateModel(model);
|
}
|
catch (Exception ex)
|
{
|
throw ex;
|
}
|
}
|
|
/// <summary>
|
/// 删除文件信息
|
/// </summary>
|
/// <param name="rType"></param>
|
/// <returns></returns>
|
public bool DeleteFiles(int OrderId)
|
{
|
try
|
{
|
_ILF_OrderFilesDAL.DeleteFiles(OrderId);
|
}
|
catch (Exception ex)
|
{
|
throw ex;
|
}
|
return true;
|
}
|
|
/// <summary>
|
/// 新增上传文件
|
/// </summary>
|
/// <param name="m_EC_FirmInfo"></param>
|
/// <param name="m_LF_OrderFile"></param>
|
/// <returns></returns>
|
public bool AddOrderFiles(EC_FirmInfo m_EC_FirmInfo, LF_OrderFile m_LF_OrderFile)
|
{
|
return _ILF_OrderFilesDAL.AddOrderFiles(m_EC_FirmInfo, m_LF_OrderFile);
|
}
|
|
public LF_OrderFile GetModel(int OrderId )
|
{
|
return _ILF_OrderFilesDAL.GetModel(OrderId);
|
}
|
|
/// <summary>
|
/// 获取我的询价列表
|
/// </summary>
|
/// <param name="inquiryPersonId"></param>
|
/// <returns></returns>
|
public IList<LF_OrderFile> GetModeListByMy(Guid MemberId, DateTime startTime, DateTime endTime, string FilesName,string CustomerName, int FilesStatus, Pagination pa)
|
{
|
return _ILF_OrderFilesDAL.GetModeListByMy(MemberId, startTime, endTime, FilesName,CustomerName, FilesStatus, pa);
|
}
|
|
/// <summary>
|
/// 批量删除记录
|
/// </summary>
|
/// <param name="keyIdList"></param>
|
/// <returns></returns>
|
public bool DeleteModelList(List<int> keyIdList)
|
{
|
return _ILF_OrderFilesDAL.DeleteModelList(keyIdList);
|
}
|
}
|
}
|