|
|
|
@ -998,7 +998,8 @@ namespace WeighAndGrading |
|
|
|
if (details.Count == 50) |
|
|
|
details.RemoveAt(49); |
|
|
|
details.Insert(0, entity); |
|
|
|
LocalGradeAndWeightBL.Insert(entity); |
|
|
|
// LocalGradeAndWeightBL.Insert(entity); 改成调用方法 方便加锁
|
|
|
|
LocalGradeAndWeightBLInsert(entity); |
|
|
|
// noWeightList.Enqueue(entity); // 添加的掉猪明细不加入到没有称重队列
|
|
|
|
BindDetailGrid(); |
|
|
|
|
|
|
|
@ -1024,6 +1025,16 @@ namespace WeighAndGrading |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
static object insertweightdetail=new object(); |
|
|
|
void LocalGradeAndWeightBLInsert(GradeAndWeight_Detail entity) |
|
|
|
{ |
|
|
|
//为了防止点级别和称重同时进行
|
|
|
|
lock (insertweightdetail) |
|
|
|
{ |
|
|
|
LocalGradeAndWeightBL.Insert(entity); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void SetlblSucessVisibleFalse() |
|
|
|
{ |
|
|
|
this.Invoke(new InvokeHandler(delegate |
|
|
|
@ -1080,7 +1091,10 @@ namespace WeighAndGrading |
|
|
|
if (details.Count == 50) |
|
|
|
details.RemoveAt(49); |
|
|
|
details.Insert(0, entity); |
|
|
|
LocalGradeAndWeightBL.Insert(entity); |
|
|
|
|
|
|
|
//LocalGradeAndWeightBL.Insert(entity); //改成调用方法 方便加锁
|
|
|
|
LocalGradeAndWeightBLInsert(entity); |
|
|
|
|
|
|
|
noLivestockList.Enqueue(entity); |
|
|
|
BindDetailGrid(); |
|
|
|
|
|
|
|
|