You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
using NFine.Data;
|
|
using NFine.Domain.Entity.ProductManage;
|
|
using NFine.Domain.IRepository.ProductManage;
|
|
using NFine.Repository.ProductManage;
|
|
using System.Collections.Generic;
|
|
|
|
namespace NFine.Repository.ProductManage
|
|
{
|
|
public class PreSellRepository : RepositoryBase<ICSProductPreSellEntity>, IICSProductPreSellRepository
|
|
{
|
|
public void DeleteForm(string keyValue)
|
|
{
|
|
using (var db = new RepositoryBase().BeginTrans())
|
|
{
|
|
db.Delete<ICSProductPreSellEntity>(t => t.F_Id == keyValue);
|
|
db.Commit();
|
|
}
|
|
}
|
|
|
|
public void SubmitForm(ICSProductPreSellEntity prodictEntity, string keyValue)
|
|
{
|
|
using (var db = new RepositoryBase().BeginTrans())
|
|
{
|
|
if (!string.IsNullOrEmpty(keyValue))
|
|
{
|
|
db.Update(prodictEntity);
|
|
}
|
|
else
|
|
{
|
|
db.Insert(prodictEntity);
|
|
}
|
|
db.Commit();
|
|
}
|
|
}
|
|
}
|
|
}
|