using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
namespace BLL
{
public class ClsSc_PackUnionBill
{
////生成包装单临时记录
public bool set_SavePackUnionBill_Temp(Model.ClsSc_PackUnionBillSub oEntry, ref string sErrMsg)
{
DAL.ClsSc_PackUnionBill dal = new DAL.ClsSc_PackUnionBill();
//if (!dal.IsBarCode(oEntry.HBarCode, oEntry.HInterID, oEntry.HErpClsID))
//{
// sErrMsg = "存在相同条码,请勿重复扫描!";
// return false;
//}
if (dal.AddBill_PDA(oEntry, ref sErrMsg))
{
//sErrMsg = "保存成功!";
return true;
}
else
{
//sErrMsg = "保存失败!";
return false;
}
}
//生成包装单
public bool set_SavePackUnionBill(Model.ClsSc_PackUnionBillMain oMain, ref string sErrMsg)
{
DAL.ClsSc_PackUnionBill dal = new DAL.ClsSc_PackUnionBill();
if (dal.AddBill_PDA(oMain, ref sErrMsg))
{
//sErrMsg = "保存成功!";
return true;
}
else
{
//sErrMsg = "保存失败!";
return false;
}
}
//生成包装单临时记录
///
/// 生成包装单临时记录
///
/// 过滤条件
///
public DataSet GetSc_PackUnionBillSub_Temp(long HInterID, string sWhere)
{
DAL.ClsSc_PackUnionBill dal = new DAL.ClsSc_PackUnionBill();
return dal.GetInfoByID_View(HInterID, sWhere);
}
}
}