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.
144 lines
3.5 KiB
144 lines
3.5 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using ICSSoft.Frame.Data.Entity;
|
|
using ICSSoft.Frame.Data.DAL;
|
|
using System.Data;
|
|
|
|
namespace ICSSoft.Frame.Data.BLL
|
|
{
|
|
public class FormPhysicalInventoryBLL
|
|
{
|
|
#region ERPCheckVouch
|
|
public static void ERPCheckVouch(CheckContext Context, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
FormPhysicalInventoryDAL.ERPCheckVouch(Context, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region AddandEdit
|
|
public static void AddandEdit(ICSToCheck ItemLot, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
FormPhysicalInventoryDAL.AddandEdit(ItemLot, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region AddandEdit
|
|
public static void AddToCheck(ICSToCheck ToCheck, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
FormPhysicalInventoryDAL.AddToCheck(ToCheck, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region select
|
|
public static ICSToCheck select(String guid, String Appconstr)
|
|
{
|
|
return FormPhysicalInventoryDAL.select(guid, Appconstr);
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region FindAll
|
|
public static DataTable FindAll(string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return FormPhysicalInventoryDAL.FindAll(Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region delete
|
|
public static void delete(string ItemCode, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
FormPhysicalInventoryDAL.delete(ItemCode, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region deletedetail 删除盘点详情
|
|
public static void deletedetail(string LotNo, string ToCheckNo, decimal Actualqty, string itemno, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
FormPhysicalInventoryDAL.deletedetail(LotNo, ToCheckNo, Actualqty, itemno, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region Update
|
|
public static void CheckIn(string CheckNo, string BarCode, string LotQty, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
FormPhysicalInventoryDAL.CheckIn(CheckNo, BarCode, LotQty, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
public static DataTable Check(string BarCode, string ToCheckNo, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return FormPhysicalInventoryDAL.Check(BarCode, ToCheckNo, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static DataTable CheckNo(string BarCode, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return FormPhysicalInventoryDAL.CheckNo(BarCode, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|