|
|
@@ -195,6 +195,7 @@ namespace CarMeterSystem
|
|
|
if (PbCache.tempImgId == null || PbCache.tempImgId == "")
|
|
|
{
|
|
|
PbCache.tempImgId = Guid.NewGuid().ToString();
|
|
|
+ lg.WriteLog(35, "启动拍照 车号:" + PbCache.lockCarNo + ";重量:" + PbCache.lockWgt + ";时间:" + DateTime.Now.ToLongTimeString());
|
|
|
_ = BeginInvoke(new Action(() => { shotImage(PbCache.tempImgId+"_temp"); }));
|
|
|
}
|
|
|
|
|
|
@@ -762,6 +763,8 @@ namespace CarMeterSystem
|
|
|
// }
|
|
|
//}
|
|
|
|
|
|
+ isMeasureSuccess = true;
|
|
|
+
|
|
|
/*
|
|
|
* 图片上传,先截图,数据保存成功后,再修改为正式文件名,并上传
|
|
|
* 解决抓图重量与实际重量不一致问题
|
|
|
@@ -787,12 +790,13 @@ namespace CarMeterSystem
|
|
|
//语音提醒部分
|
|
|
//flag =true表示称重成功
|
|
|
readVoicd();
|
|
|
+ lg.WriteLog(35, "语音提示 成功标识:" + PbCache.shotSuccess.ToString() + "车号:" + PbCache.lockCarNo + ";重量:" + PbCache.lockWgt + ";时间:" + DateTime.Now.ToLongTimeString());
|
|
|
|
|
|
wgt = PbCache.lockWgt;
|
|
|
temporaryResult = PbCache.ResultMessage;
|
|
|
temporaryCarNo = PbCache.collect.carno;
|
|
|
|
|
|
- isMeasureSuccess = true;
|
|
|
+
|
|
|
//提示信息,
|
|
|
//txtMsgInfo.Text = PbCache.ResultMessage;
|
|
|
lblog = string.IsNullOrEmpty(PbCache.ResultMessage) ? strMsg : PbCache.ResultMessage;//偶尔出现ResultMessage为空的情况
|
|
|
@@ -954,6 +958,9 @@ namespace CarMeterSystem
|
|
|
//最后进行截图操作
|
|
|
CameraShotCls cameraShot = new CameraShotCls();
|
|
|
cameraShot.CapMethod(tempID);
|
|
|
+
|
|
|
+ lg.WriteLog(35, "完成拍照 成功标识:" + PbCache.shotSuccess.ToString() +"车号:" + PbCache.lockCarNo + ";重量:" + PbCache.lockWgt + ";时间:" + DateTime.Now.ToLongTimeString());
|
|
|
+
|
|
|
//*/
|
|
|
|
|
|
#endregion 截取图片信息
|
|
|
@@ -983,6 +990,8 @@ namespace CarMeterSystem
|
|
|
img.Save(string.Format("{0}imgShort\\formalImg\\{1}_{2}_{3}.jpg",
|
|
|
AppDomain.CurrentDomain.SetupInformation.ApplicationBase,
|
|
|
PbCache.sportInfo.baseSpotNo, "C" + PbCache.actualFirstNo, 7), System.Drawing.Imaging.ImageFormat.Jpeg);
|
|
|
+
|
|
|
+ lg.WriteLog(35, "完成截图 成功标识:" + PbCache.shotSuccess.ToString() + "车号:" + PbCache.lockCarNo + ";重量:" + PbCache.lockWgt + ";时间:" + DateTime.Now.ToLongTimeString());
|
|
|
#endregion 截取图片信息
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
@@ -2483,6 +2492,7 @@ namespace CarMeterSystem
|
|
|
PbCache.ResultMessage = "";
|
|
|
PbCache.voiceType = 0; // 清除语音
|
|
|
PbCache.tempImgId = ""; // 清除临时抓图ID
|
|
|
+ PbCache.shotSuccess = false; // 清除拍照成功标识
|
|
|
btnSave.Enabled = true;
|
|
|
btnSelPreType.Visible = false;
|
|
|
|