1
This commit is contained in:
@@ -546,18 +546,18 @@ namespace DOAN.Service.MES.product
|
||||
NPOI.SS.UserModel.ICell currentCell_18 = currentRow.GetCell(11);
|
||||
if (currentCell_18 == null)
|
||||
{
|
||||
workorder.GroupCode = string.Empty;
|
||||
workorder.WorkshopCode = string.Empty;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (currentCell_18.CellType == CellType.Numeric)
|
||||
{
|
||||
workorder.GroupCode = currentCell_18.NumericCellValue.ToString();
|
||||
workorder.WorkshopCode = currentCell_18.NumericCellValue.ToString();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
workorder.GroupCode = currentCell_18.StringCellValue;
|
||||
workorder.WorkshopCode = currentCell_18.StringCellValue;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -826,18 +826,18 @@ namespace DOAN.Service.MES.product
|
||||
NPOI.SS.UserModel.ICell currentCell_18 = currentRow.GetCell(11);
|
||||
if (currentCell_18 == null)
|
||||
{
|
||||
workorder.GroupCode = string.Empty;
|
||||
workorder.WorkshopCode = string.Empty;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (currentCell_18.CellType == CellType.Numeric)
|
||||
{
|
||||
workorder.GroupCode = currentCell_18.NumericCellValue.ToString();
|
||||
workorder.WorkshopCode = currentCell_18.NumericCellValue.ToString();
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
workorder.GroupCode = currentCell_18.StringCellValue;
|
||||
workorder.WorkshopCode = currentCell_18.StringCellValue;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ public class ReportFlowService : BaseService<ProReportwork01>, IReportFlowServic
|
||||
.SetColumns(it => it.FinishNum == finish_num)
|
||||
.SetColumns(it => it.BadNum == bad_num)
|
||||
.SetColumns(it => it.Worker == Worker)
|
||||
.SetColumns(it => it.JobDate == DateTime.Today)
|
||||
.SetColumns(it => it.JobDate == DateTime.Now)
|
||||
.SetColumns(it => it.UpdatedBy == Worker)
|
||||
.SetColumns(it => it.UpdatedTime == DateTime.Now)
|
||||
.ExecuteCommand();
|
||||
@@ -50,7 +50,7 @@ public class ReportFlowService : BaseService<ProReportwork01>, IReportFlowServic
|
||||
proReportwork01.FinishNum = finish_num;
|
||||
proReportwork01.BadNum = bad_num;
|
||||
proReportwork01.Worker = Worker;
|
||||
proReportwork01.JobDate = DateTime.Today;
|
||||
proReportwork01.JobDate = DateTime.Now;
|
||||
proReportwork01.CreatedBy = Worker;
|
||||
proReportwork01.CreatedTime = DateTime.Now;
|
||||
result= Context.Insertable(proReportwork01).ExecuteCommand();
|
||||
|
||||
Reference in New Issue
Block a user