Пример #1
0
        public bool IsExist(Recipes rcp)
        {
            bool rect = false;

            try
            {
                RecipesDao dao = new RecipesDao();
                _curRcp = dao.GetRecipe(rcp.RecipeId);
                if (_curRcp != null)
                {
                    rect = true;
                }
            }
            catch (Exception ex)
            {
                LogHelper.AppLoger.Error(ex);
            }
            return(rect);
        }
Пример #2
0
 public void LoadRcp(int rcp_id)
 {
     try
     {
         RecipesDao dao = new RecipesDao();
         _curRcp = dao.GetRecipe(rcp_id);
         CameraRecipeDao camdao = new CameraRecipeDao();
         _curCameraRcp = camdao.GetCameraRecipe(rcp_id);
         ScanRecipeDao scandao = new ScanRecipeDao();
         _curScanRcp = scandao.GetScanRecipe(rcp_id);
         ControlRecipeDao ctrldao = new ControlRecipeDao();
         _curControlRcp = ctrldao.GetControlRecipe(rcp_id);
         RecipeId       = _curRcp.RecipeId;
         RecipeName     = _curRcp.Name;
         IsChangeRcp    = true;
     }
     catch (Exception ex)
     {
         LogHelper.AppLoger.Error(ex);
     }
 }