|
|
@ -692,16 +692,16 @@ namespace Admin.Core.Service
|
|
|
|
/// <param name="batch"></param>
|
|
|
|
/// <param name="batch"></param>
|
|
|
|
/// <param name="productName"></param>
|
|
|
|
/// <param name="productName"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public async Task<bool> xlInsertMaterial(string ID, string materialCode, string materialName, DateTime CreateDateTime)
|
|
|
|
public async Task<bool> xlInsertMaterial(string materialCode, string materialName)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
xl_material xl_m = new xl_material()
|
|
|
|
xl_material xl_m = new xl_material()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ID = ID,
|
|
|
|
ID = Guid.NewGuid().ToString("N"),
|
|
|
|
Material_code = materialCode,
|
|
|
|
Material_code = materialCode,
|
|
|
|
Material_name = materialName,
|
|
|
|
Material_name = materialName,
|
|
|
|
CreateDateTime = CreateDateTime,
|
|
|
|
CreateDateTime = DateTime.Now,
|
|
|
|
Remark = null,
|
|
|
|
Remark = null,
|
|
|
|
Batch_number = null,
|
|
|
|
Batch_number = null,
|
|
|
|
Barcode1 = null,
|
|
|
|
Barcode1 = null,
|
|
|
|