11
This commit is contained in:
@@ -401,12 +401,23 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
|
||||
if (batchItem != null)
|
||||
{
|
||||
batchItem.RepairDate = Convert.ToDateTime(this.txtRepairDate.Text);
|
||||
batchItem.RepairRecordId = repairRecordId;
|
||||
if (ckbIsCut.Checked)
|
||||
{
|
||||
batchItem.CutDate = DateTime.Now.Date;
|
||||
}
|
||||
db.SubmitChanges();
|
||||
}
|
||||
else
|
||||
{
|
||||
var updatebatchItem = db.Batch_PointBatchItem.FirstOrDefault(x => x.WeldJointId == repair.WeldJointId && x.RepairRecordId == repairRecordId);
|
||||
if (updatebatchItem != null)
|
||||
{
|
||||
updatebatchItem.RepairDate = Convert.ToDateTime(this.txtRepairDate.Text);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
db.SubmitChanges();
|
||||
|
||||
|
||||
var exp = BLL.RepairRecordService.GetExportItem(repairRecordId);
|
||||
if (exp != null)
|
||||
@@ -444,7 +455,7 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
|
||||
// 大于500的焊口扩透口是自身,这时要增加批明细
|
||||
else
|
||||
{
|
||||
Model.Batch_PointBatchItem pointItem = db.Batch_PointBatchItem.FirstOrDefault(x => x.RepairRecordId == repairRecordId);
|
||||
Model.Batch_PointBatchItem pointItem = db.Batch_PointBatchItem.FirstOrDefault(x => x.RepairRecordId == repairRecordId && x.PointState == "2");
|
||||
// 大于500的焊口扩透口是自身,保存后不能再次增加
|
||||
if (pointItem == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user