1
This commit is contained in:
parent
2898e2015c
commit
620598cb1a
@ -272,15 +272,16 @@ namespace DAL
|
|||||||
{
|
{
|
||||||
if (model.ID > 0)
|
if (model.ID > 0)
|
||||||
{
|
{
|
||||||
string sqlstr = "update V_RectangleModel set Point_Row1=@Point_Row1,Point_Column1=@Point_Column1,Point_Row2=@Point_Row2,Point_Column2=@Point_Column2,PassagewayBrightness1=@PassagewayBrightness1,PassagewayBrightness2=@PassagewayBrightness2,PassagewayBrightness3=@PassagewayBrightness3,PassagewayBrightness4=@PassagewayBrightness4 where ID=@ID";
|
//string sqlstr = "update V_RectangleModel set Point_Row1=@Point_Row1,Point_Column1=@Point_Column1,Point_Row2=@Point_Row2,Point_Column2=@Point_Column2,PassagewayBrightness1=@PassagewayBrightness1,PassagewayBrightness2=@PassagewayBrightness2,PassagewayBrightness3=@PassagewayBrightness3,PassagewayBrightness4=@PassagewayBrightness4 where ID=@ID";
|
||||||
|
string sqlstr = "update V_RectangleModel set Point_Row1=@Point_Row1,Point_Column1=@Point_Column1,Point_Row2=@Point_Row2,Point_Column2=@Point_Column2 where ID=@ID";
|
||||||
return AccHelpers.ExecuteNonQuery(sqlstr, new OleDbParameter("@Point_Row1", model.Point_Row1),
|
return AccHelpers.ExecuteNonQuery(sqlstr, new OleDbParameter("@Point_Row1", model.Point_Row1),
|
||||||
new OleDbParameter("@Point_Column1", model.Point_Column1),
|
new OleDbParameter("@Point_Column1", model.Point_Column1),
|
||||||
new OleDbParameter("@Point_Row2", model.Point_Row2),
|
new OleDbParameter("@Point_Row2", model.Point_Row2),
|
||||||
new OleDbParameter("@Point_Column2", model.Point_Column2),
|
new OleDbParameter("@Point_Column2", model.Point_Column2),
|
||||||
new OleDbParameter("@PassagewayBrightness1", model.PassagewayBrightness1),
|
//new OleDbParameter("@PassagewayBrightness1", model.PassagewayBrightness1),
|
||||||
new OleDbParameter("@PassagewayBrightness2", model.PassagewayBrightness2),
|
//new OleDbParameter("@PassagewayBrightness2", model.PassagewayBrightness2),
|
||||||
new OleDbParameter("@PassagewayBrightness3", model.PassagewayBrightness3),
|
//new OleDbParameter("@PassagewayBrightness3", model.PassagewayBrightness3),
|
||||||
new OleDbParameter("@PassagewayBrightness4", model.PassagewayBrightness4),
|
//new OleDbParameter("@PassagewayBrightness4", model.PassagewayBrightness4),
|
||||||
new OleDbParameter("@ID", model.ID));
|
new OleDbParameter("@ID", model.ID));
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1607,7 +1607,7 @@ namespace ViewModel
|
|||||||
//}
|
//}
|
||||||
if (AnQuanDoor)
|
if (AnQuanDoor)
|
||||||
{
|
{
|
||||||
for (int i = 8; i <= 11; i++)
|
for (int i = 8; i <= 9; i++)
|
||||||
{
|
{
|
||||||
if (!InputList[i].LightUp)
|
if (!InputList[i].LightUp)
|
||||||
{
|
{
|
||||||
@ -2062,10 +2062,20 @@ namespace ViewModel
|
|||||||
{
|
{
|
||||||
FrontStationSend.Safe = false;
|
FrontStationSend.Safe = false;
|
||||||
RobotSafe = false;
|
RobotSafe = false;
|
||||||
//获取取料点
|
if (FrontStationReceive.OutProducrNumber==1)
|
||||||
TempPoint = Coper(Robot.RobotPointList.Where(w => w.PointType == 3).FirstOrDefault());
|
{
|
||||||
MyFlow.RunStep++;
|
//获取取料点
|
||||||
MyFlow.RunTime = DateTime.Now;
|
TempPoint = Coper(Robot.RobotPointList.Where(w => w.PointType == 3).FirstOrDefault());
|
||||||
|
MyFlow.RunStep++;
|
||||||
|
MyFlow.RunTime = DateTime.Now;
|
||||||
|
}
|
||||||
|
else if (FrontStationReceive.OutProducrNumber == 2)
|
||||||
|
{
|
||||||
|
//获取取料点
|
||||||
|
TempPoint = Coper(Robot.RobotPointList.Where(w => w.PointType == 16).FirstOrDefault());
|
||||||
|
MyFlow.RunStep++;
|
||||||
|
MyFlow.RunTime = DateTime.Now;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//测试盒有待取料,清料
|
//测试盒有待取料,清料
|
||||||
else if (TestBenchBox.Where(w => w.State.StatusBackground == ColorStr.Green || w.State.StatusBackground == ColorStr.Red).Count() > 0)
|
else if (TestBenchBox.Where(w => w.State.StatusBackground == ColorStr.Green || w.State.StatusBackground == ColorStr.Red).Count() > 0)
|
||||||
@ -3509,27 +3519,27 @@ namespace ViewModel
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void CheckXizui()
|
public void CheckXizui()
|
||||||
{
|
{
|
||||||
//if (RunStatu == RunStatuEnum.Normal)
|
if (RunStatu == RunStatuEnum.Normal)
|
||||||
//{
|
{
|
||||||
// if (XizuiLabelPaperList != null)
|
if (XizuiLabelPaperList != null)
|
||||||
// {
|
{
|
||||||
// foreach (var item in XizuiLabelPaperList)
|
foreach (var item in XizuiLabelPaperList)
|
||||||
// {
|
{
|
||||||
// //运行中,产品掉落,报警提示
|
//运行中,产品掉落,报警提示
|
||||||
// if (item.State.StatusBackground != ColorStr.White && item.State.StatusBackground != ColorStr.Red && item.VacuumSwitch.Switchs && !item.VacuumCheck.LightUp)
|
if (item.State.StatusBackground != ColorStr.White && item.State.StatusBackground != ColorStr.Red && item.VacuumSwitch.Switchs && !item.VacuumCheck.LightUp)
|
||||||
// {
|
{
|
||||||
// if (item.CheckVacuumTime.AddMilliseconds(1000) <= DateTime.Now)
|
if (item.CheckVacuumTime.AddMilliseconds(1000) <= DateTime.Now)
|
||||||
// {
|
{
|
||||||
// ExcepStop("吸嘴" + item.Number + "产品掉落,请检查");
|
ExcepStop("吸嘴" + item.Number + "产品掉落,请检查");
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// else
|
else
|
||||||
// {
|
{
|
||||||
// item.CheckVacuumTime = DateTime.Now;
|
item.CheckVacuumTime = DateTime.Now;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
@ -1634,8 +1634,11 @@ namespace ViewModel.Vision
|
|||||||
//if (SaveAll(RM) && RM.MyROI.SaveFeatureModel() && RM.MyROI.Save_roi_Region())
|
//if (SaveAll(RM) && RM.MyROI.SaveFeatureModel() && RM.MyROI.Save_roi_Region())
|
||||||
if (SaveAll(RM) && RM.MyROI.SaveFeatureModel())
|
if (SaveAll(RM) && RM.MyROI.SaveFeatureModel())
|
||||||
{
|
{
|
||||||
|
|
||||||
string filePath = @"Image/" + RM.MyROI.HelpFileName + ".bmp"; //模板图片路径
|
string filePath = @"Image/" + RM.MyROI.HelpFileName + ".bmp"; //模板图片路径
|
||||||
HOperatorSet.WriteImage(Ho_Image, "bmp", 0, filePath); //保存模板图片
|
HOperatorSet.WriteImage(Ho_Image, "bmp", 0, filePath); //保存模板图片
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,5 +1,3 @@
|
|||||||
Set PATH=%PATH%;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw64\bin\;C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw64\bin
|
Set PATH=%PATH%;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw64\bin\;C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw64\bin
|
||||||
git config --global --add safe.directory E:/PCGIT/.git
|
git config --global --add safe.directory *
|
||||||
git config --global --add safe.directory F:/PCGIT/.git
|
|
||||||
git config --global --add safe.directory //192.168.20.10/temp/PCGIT/.git
|
|
||||||
cmd
|
cmd
|
||||||
Loading…
Reference in New Issue
Block a user