#region 庫存表編號
public static string GetGenerateNumber(this ViewInventoryQuantity obj)
{
obj.Number = string.Format("{0}-{1}-{2}-{3}-{4}-{5}-{6}-{7}-{8}",
obj.ProductID,
obj.WarehouseID,
obj.DimentsionConfigID,
obj.DimentsionSizeID,
obj.DimentsionColorID,
obj.DimentsionStyleID,
obj.WarehouseLocationID,
obj.MeasurementUnitID,
obj.BatchID);
return obj.Number;
}
public static string GetGenerateNumber(this InventoryQuantity obj)
{
obj.Number = string.Format("{0}-{1}-{2}-{3}-{4}-{5}-{6}-{7}-{8}",
obj.ProductID,
obj.WarehouseID,
obj.DimentsionConfigID,
obj.DimentsionSizeID,
obj.DimentsionColorID,
obj.DimentsionStyleID,
obj.WarehouseLocationID,
obj.MeasurementUnitID,
obj.BatchID);
return obj.Number;
}
#endregion |