Ejemplo n.º 1
0
        public DIOControlWindow(int _ProjectType = 0, string _CommonFolderPath = "")
        {
            CommonFolderPath = _CommonFolderPath;

            InitializeComponent();
            InitializeControl();

            ProjectType = (eProjectType)_ProjectType;
            DioNamingWnd.ChangeNameEvent += new DIONamingWindow.ChangeNameHandler(ChangeNameEventFunction);

            ALIVE_SIGNAL_TIME = 50;
            ALIVE_CHECK_TIME  = 500;

            if (ProjectType == eProjectType.NONE)
            {
                DioBaseCmd = new DefaultCmd(IOCnt);
            }
            else if (ProjectType == eProjectType.TRIM_FORM)
            {
                DioBaseCmd = new TrimFormCmd();
            }
            else if (ProjectType == eProjectType.BC_QCC)
            {
                DioBaseCmd = new CardManagerCmd();
            }
        }
Ejemplo n.º 2
0
        public DIOControlWindow(int _ProjectType = 0, string _CommonFolderPath = "")
        {
            CommonFolderPath = _CommonFolderPath;

            InitializeComponent();
            InitializeControl();

            ProjectType = (eProjectType)_ProjectType;
            DioNamingWnd.ChangeNameEvent += new DIONamingWindow.ChangeNameHandler(ChangeNameEventFunction);

            ALIVE_SIGNAL_TIME = 50;
            ALIVE_CHECK_TIME  = 500;

            if (ProjectType == eProjectType.NONE)
            {
                DioBaseCmd = new DefaultCmd(IOCnt);
            }
            else if (ProjectType == eProjectType.DISPENSER)
            {
                DioBaseCmd = new DispenserCmd(IOCnt);
            }
            else if (ProjectType == eProjectType.BLOWER)
            {
                DioBaseCmd = new AirBlowCmd(IOCnt);
            }
            else if (ProjectType == eProjectType.SORTER)
            {
                DioBaseCmd = new SorterCmd();
            }
            else if (ProjectType == eProjectType.TRIM)
            {
                DioBaseCmd = new TrimFormCmd();
            }
        }
Ejemplo n.º 3
0
        public void Initialize(Object _OwnerForm, int _ProjectType)
        {
            this.Owner  = (Form)_OwnerForm;
            ProjectType = (eProjectType)_ProjectType;

            if (ProjectType == eProjectType.NONE)
            {
                MainResultNoneWnd = new ucMainResultNone(LastRecipeName);
                MainResultNoneWnd.ScreenshotEvent += new ucMainResultNone.ScreenshotHandler(ScreenShot);
                panelMain.Controls.Add(MainResultNoneWnd);
            }

            else if (ProjectType == eProjectType.BLOWER)
            {
                MainResultIDWnd = new ucMainResultID(LastRecipeName);
                MainResultIDWnd.ScreenshotEvent += new ucMainResultID.ScreenshotHandler(ScreenShot);
                panelMain.Controls.Add(MainResultIDWnd);
            }

            else if (ProjectType == eProjectType.DISPENSER)
            {
                MainResultLeadWnd = new ucMainResultLead(LastRecipeName);
                MainResultLeadWnd.ScreenshotEvent += new ucMainResultLead.ScreenshotHandler(ScreenShot);
                panelMain.Controls.Add(MainResultLeadWnd);
            }

            else if (ProjectType == eProjectType.SORTER)
            {
                MainResultSorterWnd = new ucMainResultSorter(LastRecipeName);

                panelMain.Controls.Add(MainResultSorterWnd);
            }

            SetWindowLocation(1482, 148);
        }
Ejemplo n.º 4
0
        public RecipeNewNameWindow(eProjectType _ProjectType)
        {
            InitializeComponent();

            if (_ProjectType != eProjectType.BLOWER)
            {
                textBoxNewRecipeSub.Size     = new Size(226, 26);
                textBoxNewRecipeSub.Location = new Point(103, 77);
            }
        }
Ejemplo n.º 5
0
        public RecipeWindow(eProjectType _ProjectType, string _ProjectName, string _CurrentRecipe = "Default")
        {
            InitializeComponent();

            ProjectName      = _ProjectName;
            ProjectType      = _ProjectType;
            RecipeFolderPath = String.Format(@"D:\VisionInspectionData\{0}\RecipeParameter\", ProjectName);

            CurrentRecipeName = _CurrentRecipe;
            LoadRecipeList();
        }
Ejemplo n.º 6
0
 public void SetLastRecipeName(eProjectType _ProjectType, string _LastRecipeName)
 {
     if (_ProjectType == eProjectType.NONE)
     {
         MainResultNoneWnd.SetLastRecipeName(_LastRecipeName);
     }
     else if (_ProjectType == eProjectType.BLOWER)
     {
         MainResultIDWnd.SetLastRecipeName(_LastRecipeName);
     }
     else if (_ProjectType == eProjectType.DISPENSER)
     {
         MainResultLeadWnd.SetLastRecipeName(_LastRecipeName);
     }
 }
        public void Initialize(Object _OwnerForm, int _ProjectType, InspectionSystemManagerParameter _InspSysManagerParam, InspectionParameter _InspParam, string _RecipeName, string _FolderPath)
        {
            ProjectType = (eProjectType)_ProjectType;
            ProjectItem = (eProjectItem)_InspSysManagerParam.ProjectItem;

            _InspParam.ResolutionX = _InspSysManagerParam.ResolutionX;
            _InspParam.ResolutionY = _InspSysManagerParam.ResolutionY;

            SetISMParameter(_InspSysManagerParam);
            SetInspectionParameter(_InspParam);

            InspWnd.Initialize(_OwnerForm, ID, InspParam, ProjectType, ProjectItem, InspWndName, _RecipeName, IsSimulationMode, _FolderPath);
            InspWnd.InitializeResolution(_InspSysManagerParam.ResolutionX, _InspSysManagerParam.ResolutionY);
            InspWnd.InitializeCam(_InspSysManagerParam.CameraType, _InspSysManagerParam.CameraConfigInfo, Convert.ToInt32(_InspSysManagerParam.ImageSizeWidth), Convert.ToInt32(_InspSysManagerParam.ImageSizeHeight), _InspSysManagerParam.CameraRotate);
            InspWnd.InspectionWindowEvent += new InspectionWindow.InspectionWindowHandler(InspectionWindowEventFunction);
        }
Ejemplo n.º 8
0
        public CHistoryManager(string _ProjectName, eProjectType _ProjectType)
        {
            ProjectName = _ProjectName;

            HistoryWnd.Initialize(ProjectName, _ProjectType);

            if (eProjectType.TRIM_FORM == _ProjectType)
            {
                //INSERT_string = "INSERT INTO HistoryFile (Date, InspectionTime, CamType, SerialNum, ModelName, LastResult, InspImagePath) ";
                //CreateComm = string.Format("{0} (Date Datetime, InspectionTime char, CamType char, SerialNum char, ModelName char, LastResult char, InspImagePath char);", SqlDefine.CREATE_TABLE);
                INSERT_string = "INSERT INTO HistoryFile (Date, Cam, SerialNum, ModelName, InspImagePath) ";
                CreateComm    = string.Format("{0} (Date Datetime, Cam char, SerialNum char, ModelName char, InspImagePath char);", SqlDefine.CREATE_TABLE);
            }

            //else if (_ProjectType == "BLOWER")
            //{
            //    INSERT_string = "INSERT INTO HistoryFile (Date, RecipeName, LastResult, IDResult, InspImagePath) ";
            //    CreateComm = string.Format("{0} (Date Datetime, RecipeName char, LastResult char, IDResult char, InspImagePath char);", SqlDefine.CREATE_TABLE);
            //}
        }
Ejemplo n.º 9
0
        public RecipeWindow(eProjectType _ProjectType, string _ProjectName, string[] _CurrentRecipe, bool _IsTotalRecipe)
        {
            InitializeComponent();

            labelCurrentRecipeNum = new GradientLabel[6] {
                labelRecipeNum0, labelRecipeNum1, labelRecipeNum2, labelRecipeNum3, labelRecipeNum4, labelRecipeNum5
            };
            txtboxCurrentRecipeName = new TextBox[6] {
                textBoxCurrentRecipe0, textBoxCurrentRecipe1, textBoxCurrentRecipe2, textBoxCurrentRecipe3, textBoxCurrentRecipe4, textBoxCurrentRecipe5
            };

            ProjectName      = _ProjectName;
            ProjectType      = _ProjectType;
            RecipeFolderPath = String.Format(@"D:\VisionInspectionData\{0}\RecipeParameter\", ProjectName);

            //LDH, 2019.01.17, Recipe 형태 구분
            IsTotalRecipe  = _IsTotalRecipe;
            UseRecipecount = _CurrentRecipe.Count();

            if (IsTotalRecipe)
            {
                SetRecipeOption(1);
            }
            else
            {
                SetRecipeOption(UseRecipecount);
            }

            CurrentRecipeName = new string[UseRecipecount];

            for (int iLoopCount = 0; iLoopCount < UseRecipecount; iLoopCount++)
            {
                CurrentRecipeName[iLoopCount] = _CurrentRecipe[iLoopCount];
            }

            SelectedRecipeChange();

            LoadRecipeList();
        }
Ejemplo n.º 10
0
        public void Initialize(string _ProjectName, eProjectType _ProjectType)
        {
            ProjectName = _ProjectName;
            ProjectType = _ProjectType;

            SubHistoryGridView();

            DateTime TimeNow = DateTime.Now;

            SelectDateFrom = String.Format("{0:D4}-{1:D2}-{2:D2}", TimeNow.Year, TimeNow.Month, TimeNow.Day);
            SelectDateTo   = String.Format("{0:D4}-{1:D2}-{2:D2}", TimeNow.Year, TimeNow.Month, TimeNow.Day);

            monthCalendarFrom.SetDate(TimeNow);
            monthCalendarTo.SetDate(TimeNow);

            HistoryToolTip.SetToolTip(btnSelectView, "View selected period");
            HistoryToolTip.SetToolTip(btnAllview, "View all");
            HistoryToolTip.SetToolTip(btnSelectDelete, "Delete selected Period");
            HistoryToolTip.SetToolTip(btnAllDelete, "Delete All");

            SqliteManager.SetHistoryFolderPath(ProjectName);
        }
Ejemplo n.º 11
0
 public Project(eProjectType projectType, string path)
 {
     this.ProjectType = projectType;
     this.Path = path;
 }
Ejemplo n.º 12
0
 public Project(eProjectType projectType, string path)
 {
     this.ProjectType = projectType;
     this.Path        = path;
 }