|
|
@@ -389,12 +389,6 @@ namespace CarMeterSystem
|
|
|
// btnSave.Enabled = true;
|
|
|
//}
|
|
|
|
|
|
- //判断储存图片list是否为空,为空则保存图片
|
|
|
- if (PbCache.listImage.Count == 0)
|
|
|
- {
|
|
|
- _ = BeginInvoke(new Action(() => { shotImage(); }));
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
isStop = true;
|
|
|
#region 酒钢业务流程判断
|
|
|
@@ -744,6 +738,8 @@ namespace CarMeterSystem
|
|
|
// }
|
|
|
//}
|
|
|
|
|
|
+ //图片截取
|
|
|
+ _ = BeginInvoke(new Action(() => { shotImage(); }));
|
|
|
|
|
|
//语音提醒部分
|
|
|
//flag =true表示称重成功
|
|
|
@@ -879,23 +875,6 @@ namespace CarMeterSystem
|
|
|
{
|
|
|
#region 截取图片信息
|
|
|
|
|
|
- string fullfilename = Path.Combine(AppConfigCache.ftpPath, DateTime.Now.ToString("yyyy-MM-dd"));
|
|
|
- if (fullfilename.Substring(0, 8) == "https://")
|
|
|
- {
|
|
|
- fullfilename = fullfilename.Substring(0, 8) + fullfilename.Substring(8).Replace("//", "/").Replace("//", "/");
|
|
|
- }
|
|
|
- else if (fullfilename.Substring(0, 7) == "http://")
|
|
|
- {
|
|
|
- fullfilename = fullfilename.Substring(0, 7) + fullfilename.Substring(7).Replace("//", "/").Replace("//", "/");
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- fullfilename = fullfilename.Replace("//", "/").Replace("//", "/");
|
|
|
- }
|
|
|
-
|
|
|
- fullfilename = fullfilename.Replace("upload", "download");
|
|
|
-
|
|
|
- string actualFirstNo = DateTime.Now.ToString("yyyyMMddHHmmssffff");//替换PbCache.actualFirstNo
|
|
|
//截取屏幕信息
|
|
|
|
|
|
Point screenPoint = this.PointToScreen(new Point());
|
|
|
@@ -903,22 +882,13 @@ namespace CarMeterSystem
|
|
|
Image img = new Bitmap(rect.Width, rect.Height);
|
|
|
Graphics g = Graphics.FromImage(img);
|
|
|
g.CopyFromScreen(rect.X - 1, rect.Y - 1, 0, 0, rect.Size);//"D://file/1.jpg"
|
|
|
- //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);
|
|
|
img.Save(string.Format("{0}imgShort\\formalImg\\{1}_{2}_{3}.jpg",
|
|
|
AppDomain.CurrentDomain.SetupInformation.ApplicationBase,
|
|
|
- PbCache.sportInfo.baseSpotNo, "C" + actualFirstNo, 7), System.Drawing.Imaging.ImageFormat.Jpeg);
|
|
|
- //(PbCache.videoChild.Count + 1)), System.Drawing.Imaging.ImageFormat.Jpeg);
|
|
|
- MeterWorkImage meterWorkImage = new MeterWorkImage();
|
|
|
- meterWorkImage.imageFile7 = string.Format("{0}{1}_{2}_{3}.jpg",
|
|
|
- fullfilename + "/",
|
|
|
- PbCache.sportInfo.baseSpotNo, "C" + actualFirstNo, 7);
|
|
|
- PbCache.listImage.Add(meterWorkImage);
|
|
|
+ PbCache.sportInfo.baseSpotNo, "C" + PbCache.actualFirstNo, 7), System.Drawing.Imaging.ImageFormat.Jpeg);
|
|
|
//*
|
|
|
//最后进行截图操作
|
|
|
CameraShotCls cameraShot = new CameraShotCls();
|
|
|
- cameraShot.CapMethod(actualFirstNo);
|
|
|
+ cameraShot.CapMethod(PbCache.actualFirstNo);
|
|
|
//*/
|
|
|
|
|
|
#endregion 截取图片信息
|
|
|
@@ -2412,11 +2382,6 @@ namespace CarMeterSystem
|
|
|
ucWeightCarTJXJG1.setWeightType(" ");
|
|
|
ucCarMeterInfoJisco1.setFormControlValue(new MeterWorkCarActualFirst() { });
|
|
|
|
|
|
- //重置保存返回的一次编号
|
|
|
- PbCache.actualFirstNo = "";
|
|
|
-
|
|
|
- //清楚临时储存的listImage
|
|
|
- PbCache.listImage.Clear();
|
|
|
|
|
|
// 重置PbCache变量
|
|
|
PbCache.isLockFrm = false; // 清除页面锁定
|