Exemple #1
0
        protected string _tickmarksSmallColor; // shared

        #endregion Fields

        #region Constructors

        public mon_general()
        {
            _hashKey = Generic.GetHash(Generic.GetWebConfigValue("WebServiceKey"));

            _refreshInterval = 60000;

            //_xmlFileName = string.Empty;
            //_selectFilter = string.Empty;
            _loadData = null;

            _min = 0;
            _max = 100;
            _defaultValue = 0;

            _backgroundColor = ".Set('background.color', 'transparent')";
            _shadow = ".Set('shadow', false)";

            _textSize = ".Set('text.size', '7')";
            _textColor = ".Set('text.color', 'red')";

            _tickmarksSmallColor = ".Set('tickmarks.small.color', 'transparent')";
            _tickmarksBigColor = ".Set('tickmarks.big.color', 'black')";

            _showValue = false;
        }
	// Use this for initialization
	void Awake () {
		//print (PlayerPrefs.GetString("Difficult"));
		// --- LOAD RESOURCES TO CHARACTER ---
		//this.prefab = Resources.Load<GameObject>("Prefabs/MainCharacters/Level02/hombre_lvl2");
		this.prefab = Resources.Load<GameObject>("Prefabs/MainCharacters/Level02/"+PlayerPrefs.GetString("Player")+"_lvl2");
		this.character = Instantiate (prefab, respawn.transform.position, prefab.transform.rotation) as GameObject;
		this.cs = this.character.GetComponent<CharacterScript> ();
		this.cm = this.character.GetComponent<ClickToMove_lvl2> ();

		this.invent = this.character.GetComponentInChildren <InventoryScript> ();
		this.map = GameObject.FindGameObjectWithTag ("Minimap").GetComponent<miniMapLv2> ();
		this.music = GameObject.FindGameObjectWithTag ("music_engine").GetComponent<Music_Engine_Script> ();

		// Memory Card Save/Load data
		this.mc = GameObject.FindGameObjectWithTag ("MemoryCard").GetComponent<MemoryCard> ();
		this.save = this.mc.saveData();
		this.load = this.mc.loadData();
		time_play = this.load.loadTimePlayed ();


		// --- LOAD RESOURCES TO MENU ---
		gui = new PauseMenuGUI();
		gui.initResources ();
		
		
		this.c = this.ambientLight.light.color;

	}
	// Use this for initialization
	void Start () {
		player = GameObject.FindGameObjectWithTag ("Player");
		move_script = player.GetComponent <ClickToMove_lvl2> ();
		skill_script = player.GetComponent <Skill_Controller> ();
		action_bar = GameObject.FindGameObjectWithTag ("ActionBar").GetComponent <ActionBarScript> ();
		boss_ctrl = boss.GetComponent <Skeleton_boss_controller> ();
		fade_out = fade.GetComponent<FadeOut_lvl2> ();

		// Memory Card Save/Load data
		this.mc = GameObject.FindGameObjectWithTag ("MemoryCard").GetComponent<MemoryCard> ();
		this.save = this.mc.saveData();
		this.load = this.mc.loadData();

		boss_ctrl.teleportToRespawn ();
		boss_ctrl.rotateToPlayer (playerPos.transform.position);
		
		move_script.teleport (playerPos.transform.position);
		player.transform.position = playerPos.transform.position;
		move_script.rotateToPos (boss.transform.position);
		
		move_script.enabled = false;
		skill_script.enabled = false;
		action_bar.enabled = false;
		
		player_hand = GameObject.FindGameObjectWithTag ("PlayerHand");
		firepunch = Resources.Load <GameObject> ("Lvl2/prefabs/Fire_punch");
		finalFireball = Resources.Load <GameObject> ("Lvl2/prefabs/Final_Fireball");
		
		dialogs[0] = Resources.Load<Texture2D>("Lvl2/Dialogs/boss_dialog_6");
		dialogs[1] = Resources.Load<Texture2D>("Lvl2/Dialogs/boss_dialog_7_"+PlayerPrefs.GetString ("Player"));
		
		timer = Time.time + 1.5f;
	}
Exemple #4
0
        protected measure_type()
        {
            _loadData = null;

            _measureValue = 0;

            _log = Generic.GetWebConfigValue("LogFilePath");
        }
 public virtual void Execute() {
     // SetVariableNode
     System.BlackBoardSystem.Get<UserLoginInfo>().IsLoggedIn = (System.Boolean)Yes;
     // PublishEventNode
     var PublishEventNode5_Event = new LoadData();
     System.Publish(PublishEventNode5_Event);
     PublishEventNode5_Result = PublishEventNode5_Event;
 }
	// Use this for initialization
	void Start () {

		// Memory Card Save/Load data
		this.mc = GameObject.FindGameObjectWithTag ("MemoryCard").GetComponent<MemoryCard> ();
		this.load = this.mc.loadData (); 

		this.backgroundTexture = Resources.Load<Texture2D>("LoadScene/background_load" + level);


	}
        public override void LoadLevel(LoadData.LevelFormat level)
        {
            foreach (MovementTileInfo info in level.moveTiles)
            {
                if (!info.WinningTile)
                    movement.Add(new MovementTile(new Rectangle(info.X, info.Y, info.Width, info.Height), info.movement, true));
            }

            base.LoadLevel(level);
        }
	// Use this for initialization
	void Start () {

		// Memory Card Save/Load data
		this.mc = GameObject.FindGameObjectWithTag ("MemoryCard").GetComponent<MemoryCard> ();
		this.save = this.mc.saveData ();
		this.load = this.mc.loadData ();

		this.save.saveTimePlayed (GameEngineLevel01.getTimePlay());
		this.save.saveLevel (4);
		this.gui = new ResultsMenuGUI ();
		this.gui.initResources ();
	}
        /// <summary>
        /// button evet click handler, handles Diagnozy synchronization
        /// </summary>
        public void SynchronizeDiagnozy()
        {
            ambulanceDiagonzies = new BindableCollection<Cis_Diagnoza>();
            AmbulanceSynchronizationDomainContext ambulance = _serviceLocator.GetInstance<AmbulanceSynchronizationDomainContext>();
            EntityQuery<Cis_Diagnoza> query = ambulance.GetCis_DiagnozaQuery();
            EntityQuery<Diagnozy> query2 = _laboratoryDomainContext.GetAllDiagnoziesQuery();

            List<IResult> results = new List<IResult>();
            results.Add(Show.Busy());
            LoadData<Cis_Diagnoza> loadResult = new LoadData<Cis_Diagnoza>(ambulance,query,LoadBehavior.RefreshCurrent,(sender) =>
            {
                ambulanceDiagonzies.Clear();
                ambulanceDiagonzies.AddRange(((LoadOperation<Cis_Diagnoza>)sender).Entities);
            }
            );

            LoadData<Diagnozy> loadResult2 = new LoadData<Diagnozy>(_laboratoryDomainContext, query2, LoadBehavior.RefreshCurrent, (sender) =>
            {
                laboratoryDiagnozy.Clear();
                laboratoryDiagnozy.AddRange(((LoadOperation<Diagnozy>)sender).Entities);
                bool found = false;

                foreach (var item in ambulanceDiagonzies)
                {
                    for (int i = 0; i < laboratoryDiagnozy.Count; i++)
                    {
                        found = false;
                        if (item.Nazov == laboratoryDiagnozy[i].nazov && item.Poznamka == laboratoryDiagnozy[i].popis)
                        {
                            laboratoryDiagnozy.RemoveAt(i);
                            found = true;
                            break;
                        }
                    }

                    if (found == false)
                    {
                        Diagnozy novaDiagnoza = new Diagnozy();
                        novaDiagnoza.nazov = item.Nazov;
                        novaDiagnoza.popis = item.Poznamka;
                        _laboratoryDomainContext.Diagnozies.Add(novaDiagnoza);
                    }
                }
                _laboratoryDomainContext.SubmitChanges();
                Coroutine.BeginExecuteFor(Show.NotBusy(), this);

            }
            );
            results.Add(loadResult);
            results.Add(loadResult2);

            Coroutine.BeginExecuteFor(results, this);
        }
	// Use this for initialization
	void Awake () {
		
		// ADD COMPONENT
		/*
		// Buscamos al personaje principal
		this.NPCs = GameObject.FindGameObjectsWithTag("Enemy");
		this.boss = GameObject.FindGameObjectWithTag("Boss");
*/
		this.music = GameObject.FindGameObjectWithTag ("music_engine").GetComponent<Music_Engine_Script> ();
		
		// Memory Card Save/Load data
		this.mc = GameObject.FindGameObjectWithTag ("MemoryCard").GetComponent<MemoryCard> ();
		this.save = this.mc.saveData();
		this.load = this.mc.loadData();
		
		// ADD TEXTURES
		this.LevelUpTexture = Resources.Load<Texture2D>("Misc/levelup");
	}
Exemple #11
0
        public FormDecree(CDecree pDecree, LoadData ploadData)
        {
            InitializeComponent();
            Init();

            loadData = ploadData;

            if (loadData == LoadData.FromDecree_ToDecree)
            {
                oDecree = new CDecreeFactory().GetAll().Where(x => x.Iddecree == pDecree.Iddecree).FirstOrDefault();

                if (oDecree != null)
                {
                    Recuperar_Registro();

                    tbCode.Text = "";
                    oDecree.Iddecree = 0;
                }
            }
        }
Exemple #12
0
	// Use this for initialization
	void Start () {

		// Memory Card Save/Load data
		this.mc = GameObject.FindGameObjectWithTag ("MemoryCard").GetComponent<MemoryCard> ();
		this.save = this.mc.saveData ();
		this.load = this.mc.loadData (); 

		this.trofeos = GameObject.FindGameObjectWithTag("Trofeos").GetComponent<TrophyEngine>();
		string[] list_trophies = new string[18];
		this.trofeos.getTrophys (list_trophies);

		string str = "lock_";

		// MAIN MENU
		this.backgroundTexture = Resources.Load<Texture2D>("Trofeos/background_trophyv2");
		this.PlatinoTexture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[17]+"platino");
		this.EasyTexture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[9]+"easy");
		this.NormalTexture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[10]+"normal");
		this.HardTexture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[11]+"hard");
		this.ExtremeTexture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[12]+"extreme");
		this.WarriorTexture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[13]+"guerrero");
		this.SageTexture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[14]+"maga");
		this.ThiefTexture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[15]+"ladron");
		this.AllTexture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[16]+"todos");
		this.BusterSwordTexture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[6]+"bustersword");
		this.Level5Texture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[2]+"level5");
		this.Level10Texture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[3]+"level10");
		this.Level20Texture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[4]+"level20");
		this.Level50Texture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[5]+"level50");
		this.miniGolemTexture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[0]+"minigolem");
		this.EsqueletoTexture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[7]+"esqueleto");
		this.GolemLavaTexture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[1]+"golemlava");
		this.GolemHieloTexture = Resources.Load<Texture2D>("Trofeos/"+list_trophies[8]+"golemhielo");

		this.btnExitTexture = Resources.Load<Texture2D>("MainMenu/exit");
		this.hoverBtnExitTexture = Resources.Load<Texture2D>("MainMenu/hover_exit");

		this.hoverSound = GameObject.FindGameObjectWithTag("music_engine");

	}
Exemple #13
0
    public string FirstCellValue(string datatype, string datafile, string selectFilter, string ctrl)
    {
        JavaScriptSerializer js = new JavaScriptSerializer();

        string crlHash = Generic.GetHash(Generic.GetWebConfigValue("WebServiceKey"));

        MonData mon = new MonData() { Data = "0" };

        if (ctrl != crlHash || datatype == string.Empty)
            return js.Serialize(mon);

        try
        {
            LoadData ld = new LoadData
            {
                // Decoder select filter so that it can be read
                DefaultFilter = HttpUtility.UrlDecode(selectFilter)
            };

            // Decoder datafile information
            ld.SetDataType(datatype, HttpUtility.UrlDecode(datafile));

            measure_type fcv = new first_cell_value();
            fcv.LoadData = ld;

            // just get data from file
            fcv.BuildMeasure();

            // apply measurement
            mon.Data = fcv.MeasureValue.ToString(CultureInfo.InvariantCulture);
        }
        catch (Exception ex)
        {
            loging.Error("BackOffice User Webservice", "List All Pages ", ex.Message, _logRecord);
        }

        return js.Serialize(mon);
    }
	// Use this for initialization
	void Awake () {
		
		// --- LOAD RESOURCES TO CHARACTER ---
		this.prefab = Resources.Load<Transform>("Prefabs/MainCharacters/" + PlayerPrefs.GetString("Player"));
		Instantiate (prefab);
		this.character = GameObject.FindGameObjectWithTag ("Player");
		this.invent = this.character.GetComponentInChildren <InventoryScript> ();
		this.map = GameObject.FindGameObjectWithTag ("Minimap").GetComponent<miniMapLv1> ();
		this.cm = this.character.GetComponent<ClickToMove> ();
		this.cs = this.character.GetComponent<CharacterScript> ();

		// Memory Card Save/Load data
		this.mc = GameObject.FindGameObjectWithTag ("MemoryCard").GetComponent<MemoryCard> ();
		this.save = this.mc.saveData();
		this.load = this.mc.loadData();
		time_play = this.load.loadTimePlayed (); 

		this.npc_boss = GameObject.FindGameObjectWithTag("Boss");
		this.npc_enemy = GameObject.FindGameObjectsWithTag("Enemy");

		this.camera1 = GameObject.FindGameObjectWithTag ("MainCamera");
		this.camera1.SetActive (true);
		
		this.camera2 = GameObject.FindGameObjectWithTag ("CameraGoal");
		this.camera2.SetActive (false);

		this.music = GameObject.FindGameObjectWithTag ("music_engine").GetComponent<Music_Engine_Script> ();

		// --- LOAD RESOURCES TO MENU ---
		gui = new PauseMenuGUI ();
		gui.initResources ();
		
		
		this.c = this.ambientLight.light.color;
		pause = false;

	}
    void Start()
    {
        worldinfo = WorldGenerator.GetCreatedWorlds();
        if(worldinfo.Count > 0)
        {
            for(int i = 0; i < worldinfo.Count; i++)
            {
                GameObject newLoad = (GameObject)Instantiate (loadlabel);
                //Ldata = newLoad.GetComponent<LoadData>();
                newLoad.GetComponentInChildren<BoxCollider>().gameObject.AddComponent<UIDragScrollView>().scrollView = scrollView;
                Ldata = newLoad.GetComponentInChildren<LoadData>();
                Ldata.LoadLabel.text = "Name: " + worldinfo[i].spaceName + "    Seed: " + worldinfo[i].seed;
                //Ldata.LoadName = worldinfo[i].spaceName;
                //Ldata.LoadSeed = worldinfo[i].seed;
                Ldata.LoadedLevel = worldinfo[i];

                Ldata.LoadLabel.GetComponent<UIStretch>().container = window;
                newLoad.transform.parent = gameObject.transform;
                newLoad.transform.localScale = Vector3.one;
            }
        }
            //GameObject newLoad = (GameObject)Instantiate (loadlabel);
            //newLoad.transform.parent = gameObject.transform;
    }
        /// <summary>
        /// 
        /// </summary>
        public void GetZamestanciAmbulancie()
        {
            if (Ambulancia != null)
            {
                EntityQuery<Obcania> query = _laboratoryDomainContext.GetZamestanciAmbulancieQuery(Ambulancia.id_ambulancia);
                query = query.OrderBy(x => x.id_obcan);

                List<IResult> results = new List<IResult>();
                results.Add(Show.Busy());
                LoadData<Obcania> loadResult = new LoadData<Obcania>(_laboratoryDomainContext, query, LoadBehavior.RefreshCurrent, (sender) =>
                {
                    ZamestnaciAbulancie.Clear();
                    ZamestnaciAbulancie.AddRange(((LoadOperation<Obcania>)sender).Entities);
                    NotifyOfPropertyChange(() => ZamestnaciAbulancie);
                    Coroutine.BeginExecuteFor(Show.NotBusy(), this);
                });
                results.Add(loadResult);
                Coroutine.BeginExecuteFor(results, this);
            }
        }
Exemple #17
0
        public void CreateXMLScenario(CSVScenarioFilePath cSVScenarioFilePath)
        {
            LoadData loadData = new LoadData();

            loadData.CreateXMLScenario(cSVScenarioFilePath);
        }
Exemple #18
0
 public void OnGet()
 {
     MasterList = LoadData.GetList();
 }
        private void GetPoistovne()
        {
            EntityQuery<Poistovne> query = _laboratoryDomainContext.GetPoistovnesQuery();
            query = query.OrderBy(x => x.id_poistovna);

            List<IResult> results = new List<IResult>();
            results.Add(Show.Busy());
            LoadData<Poistovne> loadResult = new LoadData<Poistovne>(_laboratoryDomainContext, query, LoadBehavior.RefreshCurrent, (sender) =>
            {
                Poistovne.Clear();
                Poistovne.AddRange(((LoadOperation<Poistovne>)sender).Entities);
                NotifyOfPropertyChange(() => Poistovne);
                GetObcanPacient();
                Coroutine.BeginExecuteFor(Show.NotBusy(), this);
            });
            results.Add(loadResult);
            Coroutine.BeginExecuteFor(results, this);
        }
Exemple #20
0
        public override void LoadLevel(LoadData.LevelFormat level)
        {
            if(level.Grid != null && level.Grid.Count > 0)
            {
                foreach(GridTileInfo info in level.Grid)
                {
                    if (info.column >= 0 && info.row >= 0 && info.column < grid.GetLength(0) && info.row < grid.GetLength(1))
                        grid[info.column, info.row] = info.cliprect;
                }
            }

            base.LoadLevel(level);
        }
Exemple #21
0
    private void Startup(Frame frame)
    {
        // replace log file so that is one frame to one log
        ReplaceLogFile(frame.IDPage, frame.ID);

        OptionItems oi = new OptionItems(frame.Options);

        // ------ Frame css ------
        ChangeCss(oi.GetSingle("css"));

        // ------ Title ------
        headerTitle.Text = frame.Title;

        if (!oi.GetSingle("title_is_hidden").Equals("true")) // hide title if value is true, else will always show the title
        {
            lbTitle.InnerText = frame.Title;
            TitleStyle(oi.GetList("title_style")); // title style
        }
        else
        {
            lbTitleContainer.Style.Add("display", "none");
        }

        string filterTitle = frame.Title;
        int pageId = frame.IDPage;

        ViewState["filter_title"] = filterTitle;
        ViewState["filter_pageid"] = pageId.ToString();

        // ------ Load Javascript ------
        SetTitlePosition();

        /******************/

        List<string> listColummns = oi.GetList("columns_to_filter");

        /*
        List<string> listColummns = new List<string>();

        listColummns.Add("SUBESTADO");
        listColummns.Add("ALT_DIV");
        listColummns.Add("CENARIO");
        listColummns.Add("SERVICODESC");
        */
        /******************/

        if (ViewState["list_columns_" + Generic.GetHash(filterTitle)] == null)
            ViewState["list_columns_" + Generic.GetHash(filterTitle)] = listColummns;

        bool isVertical = oi.GetSingle("vertical_filtes").Equals("true", StringComparison.CurrentCultureIgnoreCase);

        LoadData ld = new LoadData
        {
            PageId = pageId,
            Datafile = oi.GetSingle("datafile"),
            Datatable = oi.GetList("datatable"),
            DefaultFilter = oi.GetSingle("default_filter"),
            FileName = oi.GetSingle("xml_file"),
            MasterFilterId = oi.GetSingle("master_filter").Trim()
        };

        if (ld.FileName != string.Empty || ld.Datafile != string.Empty)
            BuildFilters(
                        ld,
                        listColummns,
                        filterTitle,
                        isVertical
                    );
    }
Exemple #22
0
 public void ClearSave()
 {
     needLoad = false;
     SaveInfo = new LoadData();
     PlayerPrefs.SetString("load", "");
 }
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public async void Configure(IApplicationBuilder app, IHostingEnvironment env, LoadData loadData)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseSwagger();
            app.UseSwaggerUI(c =>
            {
                c.SwaggerEndpoint("/swagger/v1/swagger.json", "User-Management Core 2.2 API's");
            });
            app.UseMiddleware <AuthenticationMiddleware>();
            app.UseMvc();
            await loadData.OnGet();
        }
Exemple #24
0
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     LoadData?.Invoke(this, EventArgs.Empty);
 }
        private void LoadFile(object sender, DoWorkEventArgs e)
        {
            var importParameters = (ImportParameters)e.Argument;

            if (!File.Exists(importParameters.FilePath))
            {
                return;
            }

            using (StreamReader streamReader = new StreamReader(importParameters.FilePath))
            {
                DataGridViewModel dataGridViewModel = null;

                Application.Current.Dispatcher.Invoke(() => {
                    ((MainWindowViewModel)Application.Current.MainWindow.DataContext).IsLoading = true;

                    var mainStatusBarViewModel               = ((MainWindow)Application.Current.MainWindow).StatusBarModel;
                    mainStatusBarViewModel.IsWorking         = true;
                    mainStatusBarViewModel.ProgressBarValue  = 0;
                    mainStatusBarViewModel.ProgressBarStatus = LoadingStatus.Loading;
                    dataGridViewModel = ((MainWindow)Application.Current.MainWindow).TableModel;
                });

                LoadData data;

                try
                {
                    data = importParameters.NumberOfNewRows.HasValue
                        ? GetData(streamReader, dataGridViewModel.ImportData.Lines, dataGridViewModel.ImportData.StartRowNumber, dataGridViewModel.ImportData.EndRowNumber, importParameters.NumberOfNewRows.Value)
                        : GetData(streamReader, importParameters.LowerBound, importParameters.UpperBound, importParameters.ImportOptions.IsDetermineTotalNumberOfLinesActive);
                }
                catch (OutOfMemoryException)
                {
                    data = null;
                    GC.Collect();
                    GC.WaitForPendingFinalizers();
                    data = new LoadData(new ObservableCollection <string>(), 0, 0);
                    MessageBox.Show(
                        Strings.Error_NotEnoughMemoryToLoadAllLinesText,
                        Strings.Error_NotEnoughMemoryToLoadAllLinesCaption,
                        MessageBoxButton.OK,
                        MessageBoxImage.Exclamation);
                }

                Application.Current.Dispatcher.Invoke(() =>
                {
                    if (fileLoadWorker.CancellationPending)
                    {
                        e.Cancel = true;
                    }
                    else
                    {
                        dataGridViewModel.ImportData = new CsvImportData()
                        {
                            Lines          = data.Lines,
                            StartRowNumber = importParameters.LowerBound,
                            EndRowNumber   = importParameters.UpperBound,
                            Separators     = new string[] { importParameters.Separator }
                        };
                    }

                    ((MainWindowViewModel)Application.Current.MainWindow.DataContext).IsLoading = false;
                    var mainStatusBarViewModel = ((MainWindow)Application.Current.MainWindow).StatusBarModel;

                    mainStatusBarViewModel.LinesValue        = data.NumberOfLoadedLines;
                    mainStatusBarViewModel.TotalLinesValue   = data.TotalNumberOfLines ?? mainStatusBarViewModel.TotalLinesValue;
                    mainStatusBarViewModel.IsWorking         = false;
                    mainStatusBarViewModel.ProgressBarValue  = 100;
                    mainStatusBarViewModel.ProgressBarStatus = LoadingStatus.Finished;
                });
            }
        }
Exemple #26
0
 public bool LoadEdb(string rel, LoadData value)
 {
     SetConnectionOnClients();
     return(Client.LoadEdb(rel, value));
 }
Exemple #27
0
    void Start()
    {
        coroutines = GameObject.FindObjectOfType(typeof(Coroutines)) as Coroutines;

        UnityEngine.SceneManagement.Scene scene = gameObject.scene;
        List <GameObject> rootObjects           = new List <GameObject>();

        scene.GetRootGameObjects(rootObjects);
        //Root game objects
        GlobalSceneObjects.mainCamera = SceneСontrol.SetReferenceWithTag(rootObjects, "MainCamera");
        GlobalSceneObjects.background = SceneСontrol.SetReferenceWithTag(rootObjects, "Background");
        GlobalSceneObjects.myCanvas   = SceneСontrol.SetReferenceWithTag(rootObjects, "Canvas");
        //Childs mainCamera
        GlobalSounds.gameMusic   = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.mainCamera, "GameMusic").GetComponent <AudioSource>();
        GlobalSounds.pressButton = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.mainCamera, "PressButton").GetComponent <AudioSource>();
        GlobalSounds.transfer    = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.mainCamera, "Transfer").GetComponent <AudioSource>();
        //Child background
        GlobalSceneObjects.achievmentsButton = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.background, "Achievments");
        //Childs myCanvas
        GlobalSceneObjects.mainMenu            = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.myCanvas, "MainMenu");
        GlobalSceneObjects.aboutUs             = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.myCanvas, "AboutUs");
        GlobalSceneObjects.writeToUs           = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.myCanvas, "WriteToUs");
        GlobalSceneObjects.achievmentsInCanvas = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.myCanvas, "AchievmentsInCanvas");
        GlobalSceneObjects.possessedTasks      = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.myCanvas, "PossessedTasks");
        GlobalSceneObjects.logicTasks          = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.myCanvas, "LogicTasks");
        GlobalSceneObjects.showNextPage        = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.myCanvas, "ShowNextPage");
        GlobalSceneObjects.contentBalls        = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.myCanvas, "ContentBalls");
        GlobalSceneObjects.gameLevels          = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.myCanvas, "GameLevels");
        //Childs gameLevels
        GlobalSceneObjects.level_4        = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.gameLevels, "Level_4");
        GlobalSceneObjects.currentLevel   = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.gameLevels, "CurrentLevel");
        GlobalSceneObjects.topContent     = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.gameLevels, "TopContent");
        GlobalSceneObjects.catContent     = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.gameLevels, "CatContent");
        GlobalSceneObjects.continueButton = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.gameLevels, "Continue");
        GlobalSceneObjects.skipLvl        = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.gameLevels, "SkipLvl");
        GlobalSceneObjects.helpBoard      = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.gameLevels, "HelpBoard");
        GlobalSceneObjects.tableSkip      = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.gameLevels, "TableSkip");
        GlobalSceneObjects.tableRate      = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.gameLevels, "TableRate");
        //Childs currentLevel
        GlobalSceneObjects.textLevel    = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.currentLevel, "TextLevel");
        GlobalSceneObjects.task         = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.currentLevel, "Task");
        GlobalSceneObjects.inputField   = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.currentLevel, "InputField");
        GlobalSceneObjects.answerButton = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.currentLevel, "AnswerButton");
        GlobalSceneObjects.yourAnswer   = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.currentLevel, "YourAnswer");
        //Child task
        GlobalSceneObjects.taskContent = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.currentLevel, "TaskContent");
        //Childs topContent
        GlobalSceneObjects.mainMenuBack  = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.gameLevels, "MainMenuBack");
        GlobalSceneObjects.selectLvlBack = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.gameLevels, "SelectLvlBack");
        GlobalSceneObjects.helpButton    = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.gameLevels, "HelpButton");
        //Child catContent
        GlobalSceneObjects.dialogue = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.catContent, "Dialogue");
        //Child helpBoard
        GlobalSceneObjects.helpContent = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.helpBoard, "TaskContent");
        //Child achievmentsInCanvas
        GlobalSceneObjects.achievmentsContent = SceneСontrol.SetReferenceWithTag(GlobalSceneObjects.achievmentsInCanvas, "AchievmentsContent");

        GlobalSprites.InitializingGlobalSprites();

        LoadData.InitLoad();
    }
        /// <summary>
        /// button evet click handler, handles Lieky synchronization
        /// </summary>
        public void SynchronizeLieky()
        {
            
            ambulanceLieky = new BindableCollection<Cis_Lieky>();
            AmbulanceSynchronizationDomainContext ambulance = _serviceLocator.GetInstance<AmbulanceSynchronizationDomainContext>();
            EntityQuery<Cis_Lieky> query = ambulance.GetCis_LiekyQuery();
            EntityQuery<Lieky> query2 = _laboratoryDomainContext.GetAllLiekiesQuery();

            List<IResult> results = new List<IResult>();
            results.Add(Show.Busy());
            LoadData<Cis_Lieky> loadResult = new LoadData<Cis_Lieky>(ambulance, query, LoadBehavior.RefreshCurrent, (sender) =>
            {
                ambulanceLieky.Clear();
                ambulanceLieky.AddRange(((LoadOperation<Cis_Lieky>)sender).Entities);
            }
            );

            LoadData<Lieky> loadResult2 = new LoadData<Lieky>(_laboratoryDomainContext, query2, LoadBehavior.RefreshCurrent, (sender) =>
            {
                laboratoryLieky.Clear();
                laboratoryLieky.AddRange(((LoadOperation<Lieky>)sender).Entities);
                bool found = false;

                foreach (var item in ambulanceLieky)
                {
                    for (int i = 0; i < laboratoryLieky.Count; i++)
                    {
                        found = false;
                        if (item.Nazov == laboratoryLieky[i].nazov && item.Kod == laboratoryLieky[i].kod)
                        {
                            laboratoryLieky.RemoveAt(i);
                            found = true;
                            break;
                        }
                    }

                    if (found == false)
                    {
                        Lieky novyLiek = new Lieky();
                        novyLiek.nazov = item.Nazov;
                        novyLiek.kod = item.Kod;
                        _laboratoryDomainContext.Liekies.Add(novyLiek);
                    }
                }
                _laboratoryDomainContext.SubmitChanges();
                Coroutine.BeginExecuteFor(Show.NotBusy(), this);

            }
            );
            results.Add(loadResult);
            results.Add(loadResult2);

            Coroutine.BeginExecuteFor(results, this);
        }
Exemple #29
0
 public void Onclick_Yes_Field()
 {
     LoadData.DataSave();
     MyCanvas.SetActive("Confirmation_Field", false);
     SceneManager.LoadScene("TitleScene");
 }
 public virtual void Execute() {
     // PublishEventNode
     var PublishEventNode16_Event = new LoadData();
     System.Publish(PublishEventNode16_Event);
     PublishEventNode16_Result = PublishEventNode16_Event;
 }
Exemple #31
0
 private void Update()
 {
     mixer.SetFloat("globalVolume", LoadData.LoadGlobalVolume());
     mixer.SetFloat("musicVolume", LoadData.LoadMusicVolume());
     mixer.SetFloat("soundVolume", LoadData.LoadSoundVolume());
 }
Exemple #32
0
 public T Load <T>(string name)
 {
     return(LoadData.FromBinaryFile <T>(projectName, name));
 }
        public void SetUpBeam()
        {
            var material = new Concrete(youngModulus: 30);
            var section1 = new RectangleSection(width: 300, height: 500);
            var section2 = new RectangleSection(width: 200, height: 300);

            var node1 = new FixedNode();
            var node2 = new FreeNode();
            var node3 = new SupportedNode();
            var node4 = new FixedNode();

            var nodes = new Node[] { node1, node2, node3, node4 };

            var span1 = new Span(
                leftNode: node1,
                length: 6,
                rightNode: node2,
                material: material,
                section: section1
                );

            var span2 = new Span(
                leftNode: node2,
                length: 4,
                rightNode: node3,
                material: material,
                section: section2
                );

            var span3 = new Span(
                leftNode: node3,
                length: 10,
                rightNode: node4,
                material: material,
                section: section2
                );

            var spans = new Span[] { span1, span2, span3 };

            node2.ConcentratedForces.Add(new ShearLoad(value: -200));
            node2.ConcentratedForces.Add(new BendingMoment(value: 150));

            var startLoad1 = new LoadData(value: 0, position: 0);
            var endLoad1   = new LoadData(value: -30, position: 2.5);
            var startLoad2 = new LoadData(value: -30, position: 2.5);
            var endLoad2   = new LoadData(value: -30, position: 7.5);
            var startLoad3 = new LoadData(value: -30, position: 7.5);
            var endLoad3   = new LoadData(value: 0, position: 10);

            span3.ContinousLoads.Add(ContinousShearLoad.Create(startLoad1, endLoad1));
            span3.ContinousLoads.Add(ContinousShearLoad.Create(startLoad2, endLoad2));
            span3.ContinousLoads.Add(ContinousShearLoad.Create(startLoad3, endLoad3));

            var pointLoad = new ShearLoad(value: -150, position: 3);

            span1.PointLoads.Add(pointLoad);

            _beam = new Beam(spans, nodes);

            _beam.Calculate();
        }
Exemple #34
0
 private void FrmChonKyThi_Load(object sender, EventArgs e)
 {
     dgv_DanhSach.DataSource = LoadData.Load(20);
 }
        private void GetObcanVysetrenia()
        {
            EntityQuery<Vysetrenia> query = _laboratoryDomainContext.GetObcanPacientVysetreniaQuery(Obcan.id_obcan);
            query = query.OrderBy(x => x.datum_schvalenia);
            query = VysetrenieFilter.GetFilter(query);

            List<IResult> results = new List<IResult>();
            results.Add(Show.Busy());
            LoadData<Vysetrenia> loadResult = new LoadData<Vysetrenia>(_laboratoryDomainContext, query, LoadBehavior.RefreshCurrent, (sender) =>
            {
                Vysetrenia.Clear();
                Vysetrenia.AddRange(((LoadOperation<Vysetrenia>)sender).Entities);
                NotifyOfPropertyChange(() => Vysetrenia);
                Coroutine.BeginExecuteFor(Show.NotBusy(), this);
            });
            results.Add(loadResult);
            Coroutine.BeginExecuteFor(results, this);
        }
Exemple #36
0
        public ActionResult Privacy(string buttonName)
        {
            var file = LoadData.LoadPdf("2015085106");

            return(File(file, "application/pdf"));
        }
Exemple #37
0
 private void LoadForm()
 {
     cbokhoa.DataSource = LoadData.Load(15);
 }
Exemple #38
0
        public static XmlDocument OrderCSVToXML(XmlDocument doc, string SourcefileName, LoadData.XMLMainCategories xMLMainCategories)
        {
            FileManager fm = new FileManager();
            DataTable   dt = fm.GetCSV(SourcefileName);

            var root      = doc.GetElementsByTagName(LoadData.XMLMainCategories.dataset.ToString())[0];
            var OrderList = doc.CreateElement(xMLMainCategories.ToString());

            root.AppendChild(OrderList);

            foreach (DataRow row in dt.Rows)
            {
                var order = doc.CreateElement(XMLOrderFields.Order.ToString());

                var personNameTagName = doc.CreateElement(XMLOrderFields.PersonName.ToString());
                personNameTagName.InnerText = row[0].ToString();
                order.AppendChild(personNameTagName);

                var personIdTagName = doc.CreateElement(XMLOrderFields.PersonID.ToString());
                personIdTagName.InnerText = row[1].ToString();
                order.AppendChild(personIdTagName);

                var OrderIDTagName = doc.CreateElement(XMLOrderFields.OrderID.ToString());
                OrderIDTagName.InnerText = row[2].ToString();
                order.AppendChild(OrderIDTagName);

                var OrderDateTagName = doc.CreateElement(XMLOrderFields.OrderDate.ToString());
                OrderDateTagName.InnerText = LoadData.transfareDate(row[3].ToString());
                order.AppendChild(OrderDateTagName);

                var OrderDeliveryDateTagName = doc.CreateElement(XMLOrderFields.OrderDeliveryDate.ToString());
                OrderDeliveryDateTagName.InnerText = LoadData.transfareDate(row[4].ToString());
                order.AppendChild(OrderDeliveryDateTagName);

                var Order_StatusTagName = doc.CreateElement(XMLOrderFields.Order_Status.ToString());
                Order_StatusTagName.InnerText = row[5].ToString();
                order.AppendChild(Order_StatusTagName);

                var ProductTreeTagName = doc.CreateElement(XMLOrderFields.OrderProductsList.ToString());

                int maxSons = 3;
                if (xMLMainCategories == LoadData.XMLMainCategories.SuppliersOrderList)
                {
                    maxSons = 1;
                }

                int columnIndex = 6;
                for (int i = 0; i < maxSons; i++)
                {
                    string ProductTree_ProductIDValue = row[columnIndex].ToString();
                    string ProductTree_AmountValue    = row[columnIndex + 1].ToString();
                    string ProductTree_pricetValue    = row[columnIndex + 2].ToString();

                    if (!string.IsNullOrEmpty(ProductTree_ProductIDValue))
                    {
                        var ProductTreeBranchTagName = doc.CreateElement(XMLOrderFields.OrderProductsListBranch.ToString());
                        var OrderProductsListBranch_ProductIDTagName = doc.CreateElement(XMLOrderFields.OrderProductsListBranch_ProductID.ToString());
                        OrderProductsListBranch_ProductIDTagName.InnerText = ProductTree_ProductIDValue;
                        ProductTreeBranchTagName.AppendChild(OrderProductsListBranch_ProductIDTagName);

                        var OrderProductsListBranch_AmountTagName = doc.CreateElement(XMLOrderFields.OrderProductsListBranch_Amount.ToString());
                        OrderProductsListBranch_AmountTagName.InnerText = ProductTree_AmountValue;
                        ProductTreeBranchTagName.AppendChild(OrderProductsListBranch_AmountTagName);

                        var OrderProductsListBranch_PriceTagName = doc.CreateElement(XMLOrderFields.OrderProductsListBranch_Price.ToString());
                        OrderProductsListBranch_PriceTagName.InnerText = ProductTree_pricetValue;
                        ProductTreeBranchTagName.AppendChild(OrderProductsListBranch_PriceTagName);

                        ProductTreeTagName.AppendChild(ProductTreeBranchTagName);
                    }

                    columnIndex = columnIndex + 3;
                }
                order.AppendChild(ProductTreeTagName);

                OrderList.AppendChild(order);
            }
            return(doc);
        }
Exemple #39
0
        //##############################################################################
        //##############################################################################
        //##
        //##  読み込み
        //##
        //##############################################################################
        //##############################################################################
        #region 読み込み
        /// <summary>
        /// スクエア・イメージファイルデータ
        /// </summary>
        /// <param name="lData"></param>
        internal bool SquareTileRead(LoadData lData)
        {
            FSquareTileInfo info  = null;
            Chunk           chank = new Chunk();
            ImageSquareTile inImgFile;
            LoadChank       lChank, lChank02;
            LoadData        lData02;
            int             imgNo = 0;

            lData.GetChank(chank);
            inImgFile = new ImageSquareTile();
            while ((lChank = lData.FindData(inImgFile)) != null || !lData.GetFindEnd())
            {
                // ツリービューに反映
                //tNode = m_rTV.Nodes[0].Nodes[0].Nodes.Add(inImgFile.GetString());
                //tNode.ImageIndex = 2;
                //tNode.SelectedImageIndex = 3;
                //tNode.Name = TV_NAME_MAPCHIP_IMG;

                //-------------------------------------
                // マップチップ情報読み込み
                //-------------------------------------
                if (lChank != null)
                {
                    while ((lData02 = lChank.FindChank(chank)) != null)
                    {   // 通常1回のループのみ
                        //-------------------------------
                        // データが正しいかチェックする

                        info = new FSquareTileInfo();
                        while ((lChank02 = lData02.FindData(info)) != null || !lData02.GetFindEnd())
                        {
                            // データ内部部分書き込み
                            inImgFile.tileInfos.Add(info);
                            // これ以上入れ子は今のところない予定なので入れ子は無視
                            if (lChank02 != null)
                            {
                                Chunk chank2 = new Chunk();
                                lChank02.GetBlockChank(chank2);
                                // IDから処理選択
                                while ((lData02 = lChank02.FindChank(chank2)) != null)
                                {
                                    if (chank2.id == FAnmSquareTileHeader.ID)
                                    {
                                        ReadAnimationTile(lData02);
                                    }
                                    else
                                    {
                                        // AnmSquareTile.ID 以外のIDが今現在存在しないで
                                        // 怪しい値を見つけたらエラーをはき出すようにする
                                        throw new IOException("未対応のIDが呼ばれた。");
                                    }
                                }
                                lChank02 = null;
                            }
                            info = new FSquareTileInfo();
                        }
                        lData02 = null;
                    }
                }
                ReadedSquareImageEventCall(this, new ReadedSquareImageEvent(inImgFile));

                m_squareTileIndexs.Add(inImgFile.GetString());
                lChank    = null;
                inImgFile = new ImageSquareTile();
                ++imgNo;
            }
            inImgFile = null;
            return(true);
        }
Exemple #40
0
        /// <summary>
        /// Initializes the run options.
        /// </summary>
        /// <param name="args">The command line args.</param>
        /// <returns></returns>
        public void Init(string[] args)
        {
            //defaults
            Init();

            //parse up args
            for (int i = 0; i < args.Length; i++)
            {
                switch (args[i])
                {
                case "-d":
                case "--data":
                    foreach (string table in args[++i].Split(','))
                    {
                        LoadData.Add(table);
                    }
                    break;

                case "--diffFile":
                    DiffFile = args[++i];
                    break;

                case "-f":
                case "--fullyScripted":
                    FullyScripted = true;
                    break;

                case "-h":
                case "--help":
                    Logger.Log("A tool to run scripts on a Microsoft SQL Server 2000 server", OutputLevel.Errors);
                    Logger.Log("Usage: SQLUpdater <args> [-t] <target> [-r] [reference]", OutputLevel.Errors);
                    Logger.Log("\t-d <name[,name]>: Tables to load data from", OutputLevel.Errors);
                    Logger.Log("\t-f: the database is fully scripted", OutputLevel.Errors);
                    Logger.Log("\t-h: display this help message and exit", OutputLevel.Errors);
                    Logger.Log("\t-l <level>: transaction level (None, TableOnly, Everything)", OutputLevel.Errors);
                    Logger.Log("\t-o <level>: output level (Errors, Differences, Updates, Reads)", OutputLevel.Errors);
                    Logger.Log("\t-s <directory>: directory to store scripts in before execution", OutputLevel.Errors);
                    Logger.Log("\t-w <name[,name]>: objects to write out changes to", OutputLevel.Errors);
                    Logger.Log("\t--diffFile <filename>: name of a single file to store a difference summary in", OutputLevel.Errors);
                    Logger.Log("\t--ignore <name[,name]>: script files to ignore", OutputLevel.Errors);
                    Logger.Log("\t--minimalDependencies: only recreate otherwise dropped objects", OutputLevel.Errors);
                    Logger.Log("\t--parserOutput <directory>: directory for debugging parser output", OutputLevel.Errors);
                    Logger.Log("\t--scriptFile <filename>: name of a single file to store scripts in in conjunction with -s", OutputLevel.Errors);
                    Logger.Log("\t--test: run in test mode without updating the database", OutputLevel.Errors);
                    Environment.Exit(0);
                    break;

                case "--ignore":
                    foreach (string name in args[++i].Split(','))
                    {
                        IgnoreFiles.Add(name);
                    }
                    break;

                case "-l":
                    TransactionLevel = (TransactionLevel)Enum.Parse(typeof(TransactionLevel), args[++i]);
                    break;

                case "-m":
                case "--minimalDependencies":
                    MinimalDependencies = true;
                    break;

                case "-o":
                case "--outputlevel":
                    OutputLevel = (OutputLevel)Enum.Parse(typeof(OutputLevel), args[++i]);
                    break;

                case "--parserOutput":
                    ParserOutput = args[++i];
                    break;

                case "-r":
                    AddConnection(args[++i], Connections.References);
                    break;

                case "-s":
                    ScriptOutputDirectory = args[++i];
                    if (!ScriptOutputDirectory.EndsWith("\\"))
                    {
                        ScriptOutputDirectory = ScriptOutputDirectory + "\\";
                    }
                    break;

                case "--scriptFile":
                    ScriptFile = args[++i];
                    break;

                case "-t":
                    AddConnection(args[++i], Connections.Targets);
                    break;

                case "--test":
                    Test = true;
                    break;

                case "-w":
                case "--write":
                    foreach (string name in args[++i].Split(','))
                    {
                        WriteObjects.Add(name);
                    }
                    break;

                default:
                    if (args[i][0] == '-' || (Connections.References.Count > 0 && Connections.Targets.Count > 0))
                    {
                        Logger.Log("Unknown argument: " + args[i], OutputLevel.Errors);
                        Environment.Exit(-1);
                    }
                    else
                    {
                        if (Connections.Targets.Count == 0)
                        {
                            AddConnection(args[i], Connections.Targets);
                        }
                        else
                        {
                            AddConnection(args[i], Connections.References);
                        }
                    }
                    break;
                }
            }
        }
Exemple #41
0
        public void Load(StreamReader stream, LoadData mode)//3Ds max format
        {
            positions  = new List <Vector3>();
            normals    = new List <Vector3>();
            tex_coords = new List <Vector2>();

            Vertices = new List <Vertex>();

            verticeParser vertParser = VertParser_VertsOnly;

            switch (mode)
            {
            case LoadData.OnlyVertices:                { vertParser = VertParser_VertsOnly;                break; }

            case LoadData.VerticesAndNormals:           { vertParser = VertParser_VertsAndNormals;          break; }

            case LoadData.VerticesAndTexCoords:         { vertParser = VertParser_VertsAndTexCoords;        break; }

            case LoadData.VerticesNormalsAndTexCoords:  { vertParser = VertParser_VertsNormalsAndTexCoords; break; }
            }

            while (true)
            {
                string curr_line = stream.ReadLine();

                if (curr_line == null)
                {
                    break;
                }

                if (curr_line.Length < 3)
                {
                    continue;
                }

                if (curr_line.Substring(0, 2) == "v ")
                {//vertex
                    IEnumerator <float> vert     = ParseStringToEnumarator(curr_line);
                    Vector3             vert_vec = new Vector3();
                    vert.MoveNext(); vert_vec.X = vert.Current;
                    vert.MoveNext(); vert_vec.Y = vert.Current;
                    vert.MoveNext(); vert_vec.Z = vert.Current;

                    positions.Add(vert_vec);
                }
                else if (curr_line.Substring(0, 3) == "vn ")
                {//normal
                    IEnumerator <float> norm     = ParseStringToEnumarator(curr_line);
                    Vector3             norm_vec = new Vector3();
                    norm.MoveNext(); norm_vec.X = norm.Current;
                    norm.MoveNext(); norm_vec.Y = norm.Current;
                    norm.MoveNext(); norm_vec.Z = norm.Current;

                    normals.Add(norm_vec);
                }
                else if (curr_line.Substring(0, 3) == "vt ")
                {// tex coord
                    IEnumerator <float> tex     = ParseStringToEnumarator(curr_line);
                    Vector2             tex_vec = new Vector2();
                    tex.MoveNext(); tex_vec.X = tex.Current;
                    tex.MoveNext(); tex_vec.Y = tex.Current;

                    tex_coords.Add(tex_vec);
                }
                else if (curr_line.Substring(0, 2) == "f ")
                {//face
                    IEnumerator <int> verts = ParseStringToEnumaratorI(curr_line);

                    Vertices.AddRange(vertParser(verts));
                }
            }

            for (int i = 0; i < Vertices.Count; i += 3)
            {
                var deltaUV0  = Vertices[i].tex_coord - Vertices[1 + 1].tex_coord;
                var deltaPos0 = Vertices[i].position - Vertices[i + 1].position;
                var deltaUV1  = Vertices[i].tex_coord - Vertices[i + 2].tex_coord;
                var deltaPos1 = Vertices[i].position - Vertices[i + 2].position;

                float denominator = 1 / (deltaUV0.X * deltaUV1.Y - deltaUV0.Y * deltaUV1.X);
                var   tangent     = (deltaPos0 * deltaUV1.Y - deltaPos1 * deltaUV0.Y) * denominator;
                var   bitangent   = (deltaPos1 * deltaUV0.X - deltaPos0 * deltaUV1.X) * denominator;

                for (int j = i; j < i + 2; j++)
                {
                    var vert = Vertices[j];
                    vert.tangent   = tangent;
                    vert.bitangent = bitangent;
                    Vertices[j]    = vert;
                }
            }
        }
Exemple #42
0
        public LoadClaimEntity UpdateVisibilityData(LoadData load, Guid userId)
        {
            var user = _context.Users
                       .Include(u => u.PrimaryScacEntity)
                       .SingleOrDefault(x => x.IdentUserId == userId);

            var latestLoadClaim = GetLatestLoadClaim(load.LoadId.Value);

            if (user == null)
            {
                throw new Exception("Invalid User");
            }

            if (latestLoadClaim == null)
            {
                throw new ValidationException("Could not find Load Claim associated with load.");
            }

            if (user.PrimaryScacEntity?.CarrierId != latestLoadClaim.CarrierScac.CarrierId)
            {
                throw new ValidationException($"{user.Username} is not allowed to update this load");
            }

            var visibilityTypes = _commonService.GetCarrierVisibilityTypes(user.Username, user.PrimaryScacEntity?.CarrierId);

            if (visibilityTypes == null || visibilityTypes.Count == 0)
            {
                throw new ValidationException("No visibility access");
            }

            var t = _loadService.GetLatestTransaction(load.LoadId.Value);

            if (t.TransactionTypeId != "Accepted")
            {
                throw new ValidationException("Not a valid Accepted load");
            }

            string topsToGoErrors              = null;
            string project44Errors             = null;
            var    updateVisibilityPhoneNumber = !string.IsNullOrWhiteSpace(load.VisibilityPhoneNumber) && t.Claim.VisibilityPhoneNumber != load.VisibilityPhoneNumber;
            var    updateVisibilityTruckNumber = !string.IsNullOrWhiteSpace(load.VisibilityTruckNumber) && t.Claim.VisibilityTruckNumber != load.VisibilityTruckNumber;

            if (updateVisibilityPhoneNumber)
            {
                if (string.IsNullOrWhiteSpace(load.BillingLoadDisplay))
                {
                    throw new ValidationException("Invalid BillingLoadID");
                }

                topsToGoErrors = "";
                UpdateTopsToGo(load.VisibilityPhoneNumber, load.BillingLoadDisplay, _userContext.Token, "validation", ref topsToGoErrors);

                if (string.IsNullOrWhiteSpace(topsToGoErrors))
                {
                    UpdateTopsToGo(load.VisibilityPhoneNumber, load.BillingLoadDisplay, _userContext.Token, "save", ref topsToGoErrors);

                    if (string.IsNullOrWhiteSpace(topsToGoErrors))
                    {
                        t.Claim.VisibilityPhoneNumber   = load.VisibilityPhoneNumber;
                        t.Claim.MobileExternallyEntered = false;
                        t.Claim.VisibilityChgDtTm       = DateTime.Now;
                    }
                }
                else
                {
                    load.VisibilityPhoneNumber = t.Claim.VisibilityPhoneNumber;
                }
            }

            if (updateVisibilityTruckNumber)
            {
                if (string.IsNullOrWhiteSpace(load.BillingLoadId))
                {
                    throw new ValidationException("Invalid BillingLoadID");
                }

                project44Errors = "";
                UpdateProject44(load.VisibilityTruckNumber, load.BillingLoadId, _userContext.Token, ref project44Errors);

                if (string.IsNullOrWhiteSpace(project44Errors))
                {
                    t.Claim.VisibilityTruckNumber = load.VisibilityTruckNumber;
                    t.Claim.VisibilityChgDtTm     = DateTime.Now;
                }
            }

            if ((updateVisibilityPhoneNumber && string.IsNullOrWhiteSpace(topsToGoErrors)) || (updateVisibilityTruckNumber && string.IsNullOrWhiteSpace(project44Errors)))
            {
                _context.SaveChanges(user.Username);
            }

            if (!string.IsNullOrWhiteSpace(topsToGoErrors) || !string.IsNullOrWhiteSpace(project44Errors))
            {
                StringBuilder errors = new StringBuilder();
                errors.Append(!string.IsNullOrWhiteSpace(topsToGoErrors) ? topsToGoErrors : "");
                errors.Append(errors.Length > 0 && !string.IsNullOrWhiteSpace(project44Errors) ? "<br/><br/>*****<br/><br/>" : "");
                errors.Append(!string.IsNullOrWhiteSpace(project44Errors) ? project44Errors : "");

                throw new ValidationException(errors.ToString());
            }

            return(t.Claim);
        }
Exemple #43
0
    // Update is called once per frame
    void Update()
    {
        LoadData load = GameObject.Find("GameObject").GetComponent <LoadData>();
        int      a    = load.i;

        if (a == 0)
        {
            if (count == 0)
            {
                // 프린트의 위치상태 == 슬롯의 위치 상태가 같아지고 &&
                if (this.int_type.transform.position == this.Slot001.transform.position && count == 0)
                {
                    question.SetActive(false); // 보여지고 안보여지고
                    count++;
                    jump();
                }
                else if
                (this.input.transform.position == this.Slot001.transform.position ||
                 this.right_p.transform.position == this.Slot001.transform.position ||
                 this.blank1.transform.position == this.Slot001.transform.position ||
                 this.left_p.transform.position == this.Slot001.transform.position ||
                 this.blank2.transform.position == this.Slot001.transform.position ||
                 this.blank3.transform.position == this.Slot001.transform.position ||
                 this.put.transform.position == this.Slot001.transform.position ||
                 this.float_type.transform.position == this.Slot001.transform.position)
                {
                    question.SetActive(true);
                }
            }
            if (this.left_p.transform.position == this.Slot002.transform.position && count == 1)
            {
                question.SetActive(false);
                count++;
                jump();
            }
            else if (this.input.transform.position == this.Slot002.transform.position ||
                     this.right_p.transform.position == this.Slot002.transform.position ||
                     this.blank1.transform.position == this.Slot002.transform.position ||
                     this.int_type.transform.position == this.Slot002.transform.position ||
                     this.blank2.transform.position == this.Slot002.transform.position ||
                     this.blank3.transform.position == this.Slot002.transform.position ||
                     this.put.transform.position == this.Slot002.transform.position ||
                     this.float_type.transform.position == this.Slot002.transform.position)
            {
                question.SetActive(true);
            }



            if (this.input.transform.position == this.Slot003.transform.position && count == 2)
            {
                question.SetActive(false);
                count++;
                jump();
            }
            else if
            (this.right_p.transform.position == this.Slot003.transform.position ||
             this.blank1.transform.position == this.Slot003.transform.position ||
             this.left_p.transform.position == this.Slot003.transform.position ||
             this.int_type.transform.position == this.Slot003.transform.position ||
             this.blank2.transform.position == this.Slot003.transform.position ||
             this.blank3.transform.position == this.Slot003.transform.position ||
             this.put.transform.position == this.Slot003.transform.position ||
             this.float_type.transform.position == this.Slot003.transform.position)
            {
                question.SetActive(true);
            }



            if (this.right_p.transform.position == this.Slot004.transform.position && count == 3)
            {
                question.SetActive(false);
                count++;
                jump();
            }
            else if (this.input.transform.position == this.Slot001.transform.position ||
                     this.blank1.transform.position == this.Slot001.transform.position ||
                     this.left_p.transform.position == this.Slot001.transform.position ||
                     this.int_type.transform.position == this.Slot003.transform.position ||
                     this.blank2.transform.position == this.Slot001.transform.position ||
                     this.blank3.transform.position == this.Slot001.transform.position ||
                     this.put.transform.position == this.Slot001.transform.position ||
                     this.float_type.transform.position == this.Slot001.transform.position)
            {
                question.SetActive(true);
            }
            if (count == 4)
            {
                Bump();
            }
        }
        else
        {
            if (count == 0)
            {
                // 프린트의 위치상태 == 슬롯의 위치 상태가 같아지고 &&
                if (this.blank1.transform.position == this.Slot001.transform.position && count == 0 || this.blank2.transform.position == this.Slot001.transform.position && count == 0 || this.blank3.transform.position == this.Slot001.transform.position && count == 0)
                {
                    question.SetActive(false); // 보여지고 안보여지고
                    count++;
                    jump();
                }
                else if
                (this.input.transform.position == this.Slot001.transform.position ||
                 this.right_p.transform.position == this.Slot001.transform.position ||
                 this.int_type.transform.position == this.Slot001.transform.position ||
                 this.left_p.transform.position == this.Slot001.transform.position ||
                 this.put.transform.position == this.Slot001.transform.position ||
                 this.float_type.transform.position == this.Slot001.transform.position)
                {
                    question.SetActive(true);
                }
            }
            if (this.blank1.transform.position == this.Slot002.transform.position && count == 1 || this.blank2.transform.position == this.Slot002.transform.position && count == 1 || this.blank3.transform.position == this.Slot002.transform.position && count == 1)
            {
                question.SetActive(false);
                count++;
                jump();
            }
            else if (this.input.transform.position == this.Slot002.transform.position ||
                     this.right_p.transform.position == this.Slot002.transform.position ||
                     this.left_p.transform.position == this.Slot002.transform.position ||
                     this.int_type.transform.position == this.Slot002.transform.position ||
                     this.put.transform.position == this.Slot002.transform.position ||
                     this.float_type.transform.position == this.Slot002.transform.position)
            {
                question.SetActive(true);
            }



            if (this.input.transform.position == this.Slot003.transform.position && count == 2)
            {
                question.SetActive(false);
                count++;
                jump();
            }
            else if
            (this.right_p.transform.position == this.Slot003.transform.position ||
             this.blank1.transform.position == this.Slot003.transform.position ||
             this.left_p.transform.position == this.Slot003.transform.position ||
             this.int_type.transform.position == this.Slot003.transform.position ||
             this.blank2.transform.position == this.Slot003.transform.position ||
             this.blank3.transform.position == this.Slot003.transform.position ||
             this.put.transform.position == this.Slot003.transform.position ||
             this.float_type.transform.position == this.Slot003.transform.position)
            {
                question.SetActive(true);
            }



            if (this.blank1.transform.position == this.Slot004.transform.position && count == 3 || this.blank2.transform.position == this.Slot004.transform.position && count == 3 || this.blank3.transform.position == this.Slot004.transform.position && count == 3)
            {
                question.SetActive(false);
                count++;
                jump();
            }
            else if (this.input.transform.position == this.Slot004.transform.position ||
                     this.right_p.transform.position == this.Slot004.transform.position ||
                     this.left_p.transform.position == this.Slot004.transform.position ||
                     this.int_type.transform.position == this.Slot004.transform.position ||
                     this.put.transform.position == this.Slot004.transform.position ||
                     this.float_type.transform.position == this.Slot004.transform.position)
            {
                question.SetActive(true);
            }

            if (count == 4)
            {
                Bump();
            }
        }
    }
        protected override void OnCreateTests()
        {
            lock (locker) {
                if (Status == TestStatus.Loading)
                    return;

                TestInfo ti = testInfoCache.GetInfo (AssemblyPath);
                if (ti != null) {
                    FillTests (ti);
                    return;
                }

                Status = TestStatus.Loading;
            }

            if (oldList != null) {
                foreach (UnitTest t in oldList)
                    Tests.Add (t);
            }

            OnTestStatusChanged ();

            LoadData ld = new LoadData ();
            ld.Path = AssemblyPath;
            ld.TestInfoCachePath = cacheLoaded ? null : TestInfoCachePath;
            ld.Callback = new WaitCallback (AsyncCreateTests);

            AsyncLoadTest (ld);

            // Read the cache from disk only once
            cacheLoaded = true;
        }
        /// <summary>
        /// button evet click handler, handles Poistovne synchronization
        /// </summary>
        public void SynchronizePoistovne()
        {
            
            ambulancePoistovne = new BindableCollection<Cis_Poistovne>();
            AmbulanceSynchronizationDomainContext ambulance = _serviceLocator.GetInstance<AmbulanceSynchronizationDomainContext>();
            EntityQuery<Cis_Poistovne> query = ambulance.GetCis_PoistovneQuery();
            EntityQuery<Poistovne> query2 = _laboratoryDomainContext.GetAllPoistovneQuery();

            List<IResult> results = new List<IResult>();
            results.Add(Show.Busy());
            LoadData<Cis_Poistovne> loadResult = new LoadData<Cis_Poistovne>(ambulance, query, LoadBehavior.RefreshCurrent, (sender) =>
            {
                ambulancePoistovne.Clear();
                ambulancePoistovne.AddRange(((LoadOperation<Cis_Poistovne>)sender).Entities);
            }
            );

            LoadData<Poistovne> loadResult2 = new LoadData<Poistovne>(_laboratoryDomainContext, query2, LoadBehavior.RefreshCurrent, (sender) =>
            {
                laboratoryPoistovne.Clear();
                laboratoryPoistovne.AddRange(((LoadOperation<Poistovne>)sender).Entities);
                bool found = false;

                foreach (var item in ambulancePoistovne)
                {
                    for (int i = 0; i < laboratoryPoistovne.Count; i++)
                    {
                        found = false;
                        if (item.Nazov == laboratoryPoistovne[i].nazov)
                        {
                            laboratoryPoistovne.RemoveAt(i);
                            found = true;
                            break;
                        }
                    }

                    if (found == false)
                    {
                        Poistovne novaPoistovna = new Poistovne();
                        novaPoistovna.nazov = item.Nazov;
                        _laboratoryDomainContext.Poistovnes.Add(novaPoistovna);
                    }
                }
                _laboratoryDomainContext.SubmitChanges();
                Coroutine.BeginExecuteFor(Show.NotBusy(), this);

            }
            );
            results.Add(loadResult);
            results.Add(loadResult2);

            Coroutine.BeginExecuteFor(results, this);
        }
Exemple #46
0
	// Use this for initialization
	void Start () {
	
		this.character = PlayerPrefs.GetString ("Player");

		this.list_inventory = new List<Item>();
		this.equip = new Item[5]; //"Weapon, Shield, Helmet, Armor, Boots"
		this.inventoryTexture = Resources.Load<Texture2D>("Inventory/Misc/inventory_" + this.character);
		this.map_lvl1 = GameObject.FindGameObjectWithTag ("Minimap").GetComponent<miniMapLv1> ();
		this.map_lvl2 = GameObject.FindGameObjectWithTag ("Minimap").GetComponent<miniMapLv2> ();
		//this.prueba = Resources.Load<Texture2D>("Inventory/Misc/slot");

		this.cs = GameObject.FindGameObjectWithTag ("Player").GetComponent<CharacterScript> ();
		this.cm = GameObject.FindGameObjectWithTag ("Player").GetComponent<ClickToMove> ();
		this.cm2 = GameObject.FindGameObjectWithTag ("Player").GetComponent<ClickToMove_lvl2> ();

		// Memory Card Save/Load data
		this.mc = GameObject.FindGameObjectWithTag ("MemoryCard").GetComponent<MemoryCard> ();
		this.save = this.mc.saveData();
		this.load = this.mc.loadData();

		// STYLES TEXT
		this.attributes_style = new GUIStyle ();
		//this.text_style.font = Resources.Load<Font>("MainMenu/avqest");
		this.attributes_style.fontStyle = FontStyle.Bold;
		this.attributes_style.normal.textColor = new Color (236f/255f,219f/255f,31f/255f);
		this.attributes_style.fontSize = 20;

		this.exp_style = new GUIStyle ();
		//this.text_style.font = Resources.Load<Font>("MainMenu/avqest");
		this.exp_style.fontStyle = FontStyle.Bold;
		this.exp_style.normal.textColor = new Color (236f/255f,219f/255f,31f/255f);
		this.exp_style.fontSize = 17;

		this.level_style = new GUIStyle ();
		//this.text_style.font = Resources.Load<Font>("MainMenu/avqest");
		this.level_style.fontStyle = FontStyle.Bold;
		this.level_style.normal.textColor = new Color (236f/255f,219f/255f,31f/255f);
		this.level_style.fontSize = 13;

		// CREATE INVENTORY
		this.resizeInventory ();
		this.createInventorySlot ();

		int num = this.load.loadNumItemsInventory ();

		if (num > 0)
			this.load.loadInventoryItems (num);

		this.equip = load.loadEquipItem ();
	}
        public void SetUpBeam()
        {
            var material = new Concrete(youngModulus: 33, withReinforcement: false);
            var section  = new RectangleSection(width: 300, height: 500);

            var node1 = new FreeNode();
            var node2 = new SupportedNode();
            var node3 = new SupportedNode();
            var node4 = new SupportedNode();
            var node5 = new FreeNode();

            var nodes = new Node[] { node1, node2, node3, node4, node5 };

            var span1 = new Span(
                leftNode: node1,
                length: 5,
                rightNode: node2,
                material: material,
                section: section,
                includeSelfWeight: false
                );

            var span2 = new Span(
                leftNode: node2,
                length: 5,
                rightNode: node3,
                material: material,
                section: section,
                includeSelfWeight: false
                );

            var span3 = new Span(
                leftNode: node3,
                length: 5,
                rightNode: node4,
                material: material,
                section: section,
                includeSelfWeight: false
                );

            var span4 = new Span(
                leftNode: node4,
                length: 5,
                rightNode: node5,
                material: material,
                section: section,
                includeSelfWeight: false
                );

            var spans = new Span[] { span1, span2, span3, span4 };

            node5.ConcentratedForces.Add(new BendingMoment(value: -50));

            var startLoad1 = new LoadData(value: -10, position: 0);
            var endLoad1   = new LoadData(value: -30, position: 5);

            span1.ContinousLoads.Add(ContinousShearLoad.Create(startLoad1, endLoad1));

            var startLoad2 = new LoadData(value: -10, position: 0);
            var endLoad2   = new LoadData(value: -10, position: 5);

            span4.ContinousLoads.Add(ContinousShearLoad.Create(startLoad2, endLoad2));

            var startLoad3 = new LoadData(value: 0, position: 0);
            var endLoad3   = new LoadData(value: -20, position: 5);

            span4.ContinousLoads.Add(ContinousShearLoad.Create(startLoad3, endLoad3));

            var pointLoad1 = new ShearLoad(value: -150, position: 4);

            span2.PointLoads.Add(pointLoad1);

            var pointLoad2 = new ShearLoad(value: -100, position: 2);

            span3.PointLoads.Add(pointLoad2);

            var pointLoad3 = new ShearLoad(value: -50, position: 4);

            span3.PointLoads.Add(pointLoad3);

            _beam = new Beam(spans, nodes, includeSelfWeight: false);

            _beam.CalculationEngine.Calculate();
        }
Exemple #48
0
 public Form8(List <double> pr, LoadData l1)
 {
     predicted = pr;
     ld        = l1;
     InitializeComponent();
 }
        public void SetUpBeam()
        {
            var material = new Concrete(youngModulus: 30);
            var section  = new RectangleSection(width: 300, height: 500);

            var node1 = new FreeNode();
            var node2 = new PinNode();
            var node3 = new PinNode();
            var node4 = new SupportedNode();

            var nodes = new Node[] { node1, node2, node3, node4 };

            var span1 = new Span(
                leftNode: node1,
                length: 5,
                rightNode: node2,
                material: material,
                section: section
                );

            var span2 = new Span(
                leftNode: node2,
                length: 10,
                rightNode: node3,
                material: material,
                section: section
                );

            var span3 = new Span(
                leftNode: node3,
                length: 5,
                rightNode: node4,
                material: material,
                section: section
                );

            var spans = new Span[] { span1, span2, span3 };

            var upDownTemperatureLoad = UpDownTemperatureDifferenceLoad.Create(
                span3, upperTemperature: -20, lowerTemperature: 5);

            span3.ContinousLoads.Add(upDownTemperatureLoad);

            var alongTemperatureLoad1 = AlongTemperatureDifferenceLoad.Create(
                span1, temperatureDifference: -50);

            span1.ContinousLoads.Add(alongTemperatureLoad1);

            var alongTemperatureLoad2 = AlongTemperatureDifferenceLoad.Create(
                span2, temperatureDifference: 10);

            span2.ContinousLoads.Add(alongTemperatureLoad2);

            var startLoad = new LoadData(value: -50, position: 0);
            var endLoad   = new LoadData(value: -50, position: 10);

            span2.ContinousLoads.Add(ContinousShearLoad.Create(startLoad, endLoad));

            var pointLoad = new ShearLoad(value: -100, position: 2);

            span3.PointLoads.Add(pointLoad);

            _beam = new Beam(spans, nodes);

            _beam.Calculate();
        }
    /// <summary>
    /// 开始下载资源
    /// </summary>
    /// <returns></returns>
    private IEnumerator DownloadImmediateRes()
    {
        if (immediateDownLoadList.Count == 0)
        {
            yield break;
        }

        bool isDownloadError = false;

        for (int i = 0; i < immediateDownLoadList.Count; i++)
        {
            LoadData data = immediateDownLoadList[i];

            // 通过http的方式下载资源
            WWW www = WWW.LoadFromCacheOrDownload(data.URL, data.version);
            yield return(www);

            if (www.isDone && www.error == null)
            {
                // 这里必须要执行释放占用的内存
                if (null != www.assetBundle)
                {
                    www.assetBundle.Unload(false);
                }

                switch (data.assetType)
                {
                //配置表直接读进内存
                case AssetBundleType.ASSETBUNDLE_XML:

                    break;

                case AssetBundleType.ASSETBUNDLE_SOUND:

                    break;

                case AssetBundleType.ASSETBUNDLE_UIATLAS:

                    break;

                default:
                    break;
                }
            }
            else
            {
                isDownloadError = true;
            }
        }

        //没有下载出错
        if (!isDownloadError)
        {
            //存储新的配置表,并且该表就是最新的配置文件,所有资源对应关系都在其中
            UtilXmlSerializer.Instance.SerializerXmlToFile(AssetBundlesXml, downloadServerAssetBundleList);
            InitCacheServerAssetBundleList();

            if (DownloadCompleteCallback != null)
            {
                DownloadCompleteCallback();
            }
        }
    }
Exemple #51
0
    /********* Filter *********/
    //private void BuildFilters(string xmlFile, List<string> listColummns, string pageId, string filterTitle, bool isVertical)
    private void BuildFilters(LoadData ld, List<string> listColummns, string filterTitle, bool isVertical)
    {
        Table t = new Table();
        TableRow tr = new TableRow();

        string pageId = ld.PageId.ToString();

        // transform the ids into hash ids to send the column to memory or to get them from memory
        string filterTitleHash  = Generic.GetHash(filterTitle);
        string pageIdHash = Generic.GetHash(pageId);

        bool isDataFileChanged = IsDataFileChanged(ld.GetFilePath(), pageIdHash, filterTitleHash);
        bool areFiltersNull     = AreFiltersNull(listColummns, pageIdHash, filterTitleHash);

        if (isDataFileChanged || areFiltersNull) // if first time that the page loads or xml file has changed
        {
            DataView dv = new DataView();

            try
            {
                dv = ld.GetData();
            }
            catch (Exception ex)
            {
                loging.Error("filter", "load xml file", ex.Message, ViewState["log_file"].ToString());
            }

            if (dv.Count > 0)
            {
                foreach (string column in listColummns)
                {
                    try
                    {
                        string columnHash = Generic.GetHash(column);
                        // ----------------------------
                        combobox_filter cbf = new combobox_filter(pageId, filterTitle, column, dv);   // generate combobox

                        filter_sessions.SetFilterItem(pageIdHash, filterTitleHash, columnHash, cbf); // send the columns to memory

                        tr.Cells.Add(cbf.GetComboBox());

                        // set vertical filter alignment
                        if (isVertical) { t.Rows.Add(tr); tr = new TableRow(); }
                    }
                    catch (Exception ex)
                    {
                        loging.Error("filter", "create column", ex.Message, ViewState["log_file"].ToString());
                    }
                }
            }
        }
        else // else will load the data from session variables to have faster access.
        {
            foreach (string column in listColummns)
            {
                try
                {
                    string columnHash = Generic.GetHash(column);
                    // ----------------------------
                    combobox_filter cbf = (combobox_filter)filter_sessions.GetFilterItem(pageIdHash, filterTitleHash, columnHash); // get the columns from memory

                    tr.Cells.Add(cbf.GetComboBox());

                    // set vertical filter alignment
                    if (isVertical) { t.Rows.Add(tr); tr = new TableRow(); }
                }
                catch (Exception ex)
                {
                    loging.Error("filter", "load column", ex.Message, ViewState["log_file"].ToString());
                }
            }
        }

        // by default is horizontal
        if (!isVertical) { t.Rows.Add(tr); }

        filterPanel.Controls.Add(t);
    }
Exemple #52
0
    private void Startup(Frame frame)
    {
        // replace log file so that is one frame to one log
        ReplaceLogFile(frame.IDPage, frame.ID);

        OptionItems oi = new OptionItems(frame.Options);

        // ------ Frame css ------
        ChangeCss(oi.GetSingle("css"));

        // ------ Title ------
        headerTitle.Text = frame.Title;

        if (!oi.GetSingle("title_is_hidden").Equals("true")) // hide title if value is true, else will always show the title
        {
            lbTitle.InnerText = frame.Title;
            TitleStyle(oi.GetList("title_style")); // title style

            // ------ Load Javascript ------
            SetTitlePosition(); // loads javascript that controls title position
        }
        else
        {
            lbTitleContainer.Style.Add("display", "none");
        }

        // ------ Border ------
        // Border is defined in draw_frames class, sets the border of the panel outside de iframe.

        // ------ Table ------
        int rowsCount = -1;

        // file name is here to be used outside the try catch
        string filePath = string.Empty;

        try
        {
            /*
             * default filter =>
             *
             * default filter from XML is this way:
             * default_filter = "select SUBESTADO, count as qtd group by SUBESTADO";
             *
             * default filder from sqlite is a query
             * default_filder = "select * from xpto"
             *
             */

            LoadData ld = new LoadData
            {
                PageId = frame.IDPage,
                Datafile = oi.GetSingle("datafile"),
                Datatable = oi.GetList("datatable"),
                DefaultFilter = oi.GetSingle("default_filter"),
                FileName = oi.GetSingle("xml_file"),
                MasterFilterId = oi.GetSingle("master_filter").Trim()
            };

            // set virtual folder
            lbDownload.HRef = ld.GetVirtualFilePath();

            // set real folder
            filePath = ld.GetFilePath();

            mGridView.DataSource = ld.GetData();

            rowsCount = ((DataView)mGridView.DataSource).Count;
        }
        catch (Exception ex)
        {
            loging.Error("table", "load data", ex.Message, ViewState["log_file"].ToString());

            /** Hide when error **/
            LabelCountVisible(true);
            LabelDownloadVisible(true);
            FiltersVisibility(true);
        }

        if (rowsCount >= 0)
        {
            try
            {
                /********** Css Style **********/
                mGridView.CssClass = "gridview";
                mGridView.AlternatingRowStyle.CssClass = "alt";
                mGridView.PagerStyle.CssClass = "pgr";

                /********** Sort **********/
                GridView_Sort(oi.GetSingle("table_sort").Trim().ToLower().Equals("false"));

                /********** Paging **********/
                GridView_Paging(oi.GetSingle("table_paging"), rowsCount);

                /********** GridviewHeader **********/
                GridView_Header(oi.GetSingle("table_show_header").Trim().ToLower().Equals("false"));

                /********** GridView Width **********/
                GridView_Width(oi.GetSingle("table_width"));

                /********** Filter **********/
                FiltersVisibility(oi.GetSingle("filters_visible").Trim().ToLower().Equals("false"));

                /********** Color Markers **********/
                AddColorMarkers(oi.GetList("color_markers"));
                //AddColorMarkers(new List<string> { });

                /********** Rows Count **********/
                LoadLabelCount(rowsCount);
                LabelCountVisible(oi.GetSingle("label_count_visible").Trim().ToLower().Equals("false"));

                /********** Show Xml File lastupd **********/
                LabelFileLastUpdVisible(oi.GetSingle("show_xml_file_lastupd").Trim().ToLower().Equals("true"));
                LoadLabelFileLastUpd(filePath);

                /********** Downloads **********/
                LabelDownloadVisible(oi.GetSingle("label_download_visible").Trim().ToLower().Equals("false"));

                /********** Table Color Alarms **********/
                TableColorAlarms(oi.GetList("warning_text"),
                                oi.GetList("critical_text"),
                                oi.GetSingle("warning_color"),
                                oi.GetSingle("critical_color"));

                /********** Hyperlinks **********/
                CreateHyperlink(frame.IDPage, oi.GetList("hyperlinks"), oi.GetSingle("hyperlink_color"));

            }
            catch (Exception ex)
            {
                loging.Error("table", "load options", ex.Message, ViewState["log_file"].ToString());
            }

            mGridView.DataBind(); // no fim de correr todas as opções faz o databind...
        }
    }
        /// <summary>
        /// 
        /// </summary>
        public void GetVysetrovaneLatky() 
        {
            if (Material != null)
            {
                EntityQuery<Vysetrovane_latky> query = _laboratoryDomainContext.GetMaterialVysetrovane_latkyQuery(Material.id_material);
                query = query.OrderBy(x => x.id_vysetrovana_latka);

                List<IResult> results = new List<IResult>();
                results.Add(Show.Busy());
                LoadData<Vysetrovane_latky> loadResult = new LoadData<Vysetrovane_latky>(_laboratoryDomainContext, query, LoadBehavior.RefreshCurrent, (sender) =>
                {
                    Latky.Clear();
                    Latky.AddRange(((LoadOperation<Vysetrovane_latky>)sender).Entities);
                    NotifyOfPropertyChange(() => Latky);
                    Coroutine.BeginExecuteFor(Show.NotBusy(), this);
                });
                results.Add(loadResult);
                Coroutine.BeginExecuteFor(results, this);
            }
        }
Exemple #54
0
        public async Task <ActionResult> PsResponsePrepaid()
        {
            var context = new SphDataContext();
            //TODO: Clean-up unused GLs
            //1. get all GLs owned by current user with (Type == "Prepaid") AND (UserId == null)
            //2. delete all found GLs

            var encryptedData = Request.Form["data"];

            if (string.IsNullOrEmpty(encryptedData))
            {
                return(Redirect($"{m_baseUrl}/ost#wallet-list-all"));
            }

            var rijndaelKey   = new RijndaelEnhanced(m_paymentGatewayEncryptionKey);
            var decryptedData = rijndaelKey.Decrypt(encryptedData);

            var decryptedDataArr = decryptedData.Split(new char[] { '|' });

            var model = new PaymentSwitchResponseModel();

            model.TransactionId     = decryptedDataArr[0];
            model.TransactionAmount = decryptedDataArr[1];
            model.TransactionGST    = decryptedDataArr[2];
            model.ServiceFee        = decryptedDataArr[3];
            model.ServiceGST        = decryptedDataArr[4];
            model.TotalAmount       = decryptedDataArr[5];
            model.Status            = decryptedDataArr[6];
            model.ErrorMessage      = decryptedDataArr[7];
            Console.WriteLine(model.ErrorMessage);

            //get wallet to determine wallet Id as GL correspondingId
            LoadData <Wallet> loWallet = await GetWalletByTotalValue(model.TransactionAmount);

            if (null == loWallet.Source)
            {
                Response.StatusCode = (int)HttpStatusCode.NotFound;
                return(Json(new { success = false, status = "ERROR", message = $"Cannot find TransactionAmount with Id: {model.TransactionAmount}." }, JsonRequestBehavior.AllowGet));
            }
            var wallet = loWallet.Source;

            //get userdetail to update AccountBalance
            LoadData <UserDetail> loUserDetail = await GetUserDetail(User.Identity.Name);

            if (null == loUserDetail.Source)
            {
                Response.StatusCode = (int)HttpStatusCode.NotFound;
                return(Json(new { success = false, status = "ERROR", message = $"Cannot find UserId with Id: {User.Identity.Name}." }, JsonRequestBehavior.AllowGet));
            }
            var userDetail = loUserDetail.Source;

            //verify reference no from GL (get by reference no)
            LoadData <GeneralLedger> loGeneralLedger = await GetGeneralLedger(model.TransactionId);

            if (null == loGeneralLedger.Source)
            {
                Response.StatusCode = (int)HttpStatusCode.NotFound;
                return(Json(new { success = false, status = "ERROR", message = $"Cannot find ReferenceNo with Id: {model.TransactionId}." }, JsonRequestBehavior.AllowGet));
            }
            var generalLedger = loGeneralLedger.Source;

            if (model.Status.Equals("1"))
            {
                //update GeneralLedger
                generalLedger.ReferenceNo     = model.TransactionId;
                generalLedger.UserId          = User.Identity.Name;
                generalLedger.Type            = "Prepaid";
                generalLedger.CorrespondingId = wallet.Id;
                generalLedger.Description     = $"{m_applicationName} purchase topup by {User.Identity.Name} for RM{model.TransactionAmount}";
                generalLedger.Amount          = Convert.ToDecimal(model.TransactionAmount);
                generalLedger.ExistingAmount  = Convert.ToDecimal(userDetail.AccountBalance);
                generalLedger.NewAmount       = Convert.ToDecimal(model.TransactionAmount) + Convert.ToDecimal(userDetail.AccountBalance);

                //update UserDetail
                userDetail.AccountBalance = generalLedger.NewAmount;

                using (var session = context.OpenSession())
                {
                    session.Attach(generalLedger);
                    session.Attach(userDetail);
                    await session.SubmitChanges("Default");
                }
                await Task.Delay(1500);

                return(Redirect($"{m_baseUrl}/ost#wallet-history"));
            }
            else
            {
                //fall through
            }

            await Task.Delay(1500);

            return(Redirect($"{m_baseUrl}/ost#wallet-list-all"));
        }
Exemple #55
0
        protected override Result RunCommand(RhinoDoc doc, RunMode mode)
        {
            var           primal = new PFoam();
            var           dual   = new PFoam();
            ContainerType container;

            try
            {
                var guids = LoadData.LoadPrimalDual(out primal, out dual, out container);

                if (dual.Cells.Count < 1)
                {
                    RhinoApp.WriteLine("No dual data retrieved from the container!");
                    return(Result.Failure);
                }

                // Primal ( the perping geometry )
                // load the foam from the geometry option to update from the geometry if any changes occured
                // select the structure to be perped - if dual not present raise error

                // show a set of options
                // Max steps 10 000
                // maximum deviation in degrees from dual direction
                // Update dual data from geometry
                // set edge legth constraint
                // set point position constraint

                var averageLen = primal.Edges.Select(x => x.GetLength()).Average();

                var getOptions = new GetOption();
                getOptions.SetDefaultString("enter");

                getOptions.SetCommandPrompt("Set max number of steps and perping options");

                var  optionSteps      = new OptionInteger(1000, true, 0);
                var  optionMaxDev     = new OptionDouble(0.1, 0.0, 10.0);
                var  optionMinLen     = new OptionDouble(averageLen / 4, true, averageLen / 100);
                var  optionSetEdge    = new OptionToggle(false, "setE", "E_set");
                var  optionSetVert    = new OptionToggle(false, "setV", "V_set");
                var  optionSetDualGeo = new OptionToggle(false, "setG", "G_set");
                var  storedSteps      = 1000.0;
                var  storedMaxDev     = 0.1;
                var  storedMinLen     = averageLen / 4;
                bool storedEdgeSet    = false;
                bool storedVertSet    = false;
                bool storedDualGeoSet = false;

                getOptions.AddOptionInteger("MaxIterations", ref optionSteps);
                getOptions.AddOptionDouble("MaxDeviation", ref optionMaxDev);
                getOptions.AddOptionDouble("MinEdgeLenght", ref optionMinLen);
                getOptions.AddOptionToggle("SetEdgeLen", ref optionSetEdge);
                getOptions.AddOptionToggle("SetVertPos", ref optionSetVert);
                getOptions.AddOptionToggle("UpdatePrimalGeo", ref optionSetDualGeo);

                while (true)
                {
                    var preres = getOptions.Get();
                    var res    = getOptions.CommandResult();
                    //var numres = getOptions.

                    if (res == Result.Success)
                    {
                        if (optionSetEdge.CurrentValue != storedEdgeSet)
                        {
                            primal.PickEdges();
                        }
                        if (optionSetVert.CurrentValue != storedVertSet)
                        {
                            primal.PickVertex();
                        }
                        if (optionSetDualGeo.CurrentValue != storedDualGeoSet)
                        {
                            var updatedDual = new PFoam();



                            LoadData.LoadPrimalDual(out updatedDual, out PFoam notUsedPrimal, out ContainerType dummyContainer, false);
                            // get the container geometry from a dual from the document
                            // check to see if the id matches
                            // load the point geometry, centroids, meshes and update data in the dual

                            // transform the primal/dual getter into a method to reuse it more easily

                            if (updatedDual.Dual.Id == primal.Id)
                            {
                                dual = updatedDual;
                                Util.ConnectDuals(ref primal, ref updatedDual);
                            }
                        }



                        if (optionSetEdge.CurrentValue == storedEdgeSet &&
                            optionSetVert.CurrentValue == storedVertSet &&
                            optionSetDualGeo.CurrentValue == storedDualGeoSet &&
                            optionSteps.CurrentValue == storedSteps &&
                            optionMaxDev.CurrentValue == storedMaxDev &&
                            optionMinLen.CurrentValue == storedMinLen
                            )
                        {
                            break;
                        }


                        storedEdgeSet    = optionSetEdge.CurrentValue;
                        storedVertSet    = optionSetVert.CurrentValue;
                        storedDualGeoSet = optionSetDualGeo.CurrentValue;
                        storedSteps      = optionSteps.CurrentValue;
                        storedMaxDev     = optionMaxDev.CurrentValue;
                        storedMinLen     = optionMinLen.CurrentValue;
                    }
                    else
                    {
                        return(Result.Cancel);
                    }
                }
                //Util.ConnectDuals(ref primal, ref dual);
                foreach (var edge in primal.Edges)
                {
                    edge.MinLength = optionMinLen.CurrentValue;
                }

                // delete the input objects
                doc.Objects.Delete(guids, true);

                primal.PerpSoft(optionSteps.CurrentValue, optionMaxDev.CurrentValue / 180 * Math.PI);

                //primal.ParaPerp(optionSteps.CurrentValue, 0, optionMaxDev.CurrentValue / 180 * Math.PI, null, 1);


                primal.Show(true, true, false);



                var pepedPrimalJsonString = primal.SerializeJson();

                if (!primal.SaveToDocument(container))
                {
                    primal.Hide();
                    return(Result.Cancel);
                }
                primal.Hide();

                return(Result.Success);
            }
            catch (PolyFrameworkException pfE)
            {
                RhinoApp.WriteLine(pfE.Message);
                primal.Hide();
                dual.Hide();
                return(Result.Failure);
            }
            // TODO: complete command.
        }
        public void SetUpBeam()
        {
            var material = new Concrete(youngModulus: 30);
            var section  = new RectangleSection(width: 300, height: 500);

            var node1 = new TelescopeNode();
            var node2 = new PinNode();
            var node3 = new Hinge();
            var node4 = new SupportedNode();

            var nodes = new Node[] { node1, node2, node3, node4 };

            var span1 = new Span(
                leftNode: node1,
                length: 3,
                rightNode: node2,
                material: material,
                section: section
                );

            var span2 = new Span(
                leftNode: node2,
                length: 7,
                rightNode: node3,
                material: material,
                section: section
                );

            var span3 = new Span(
                leftNode: node3,
                length: 5,
                rightNode: node4,
                material: material,
                section: section
                );

            var spans = new Span[] { span1, span2, span3 };

            node3.ConcentratedForces.Add(new AngledLoad(value: -100, angle: 30));
            node2.ConcentratedForces.Add(new VerticalDisplacement(value: -10));

            var pointLoad1 = new AngledLoad(value: -200, position: 1.5, angle: -45);

            span1.PointLoads.Add(pointLoad1);

            var startLoad = new LoadData(value: -20, position: 0);
            var endLoad   = new LoadData(value: -20, position: 7);

            span2.ContinousLoads.Add(ContinousShearLoad.Create(startLoad, endLoad));

            var upDownTemperatureLoad = UpDownTemperatureDifferenceLoad.Create( // TODO: Check Hinge - something wrong
                span3, upperTemperature: 5, lowerTemperature: 0);

            span3.ContinousLoads.Add(upDownTemperatureLoad);

            var alongTemperatureLoad = AlongTemperatureDifferenceLoad.Create(
                span3, temperatureDifference: 10);

            span3.ContinousLoads.Add(alongTemperatureLoad);

            _beam = new Beam(spans, nodes);

            _beam.Calculate();
        }
		protected override void OnCreateTests ()
		{
			lock (locker) {
				if (Status == TestStatus.Loading)
					return;
					
				NunitTestInfo ti = testInfoCache.GetInfo (AssemblyPath);
				if (ti != null) {
					FillTests (ti);
					return;
				}
				
				Status = TestStatus.Loading;
			}
			
			lastAssemblyTime = GetAssemblyTime ();
			
			if (oldList != null) {
				foreach (UnitTest t in oldList)
					Tests.Add (t);
			}

			OnTestStatusChanged ();

			LoadData ld = new LoadData ();
			ld.Path = AssemblyPath;
			ld.TestInfoCachePath = cacheLoaded ? null : TestInfoCachePath;
			ld.Callback = delegate {
				DispatchService.GuiDispatch (delegate {
					AsyncCreateTests (ld);
				});
			};
			ld.SupportAssemblies = new List<string> (SupportAssemblies);
			
			AsyncLoadTest (ld);

			// Read the cache from disk only once
			cacheLoaded = true;
		}
    /// <summary>
    /// 先要下载游戏服务器的资源配置文件,参数为xml配置文件在服务器的地址
    /// </summary>
    /// <param name="ServerAssetBundleConfigXmlUrl"></param>
    /// <returns></returns>
    private IEnumerator DownLoadServerAssetBundleXml(string ServerAssetBundleConfigXmlUrl)
    {
        // 下载热更新xml配置文件
        WWW www = new WWW(ServerAssetBundleConfigXmlUrl);

        yield return(www);


        // 下载配置文件成功
        if (www.isDone && string.IsNullOrEmpty(www.error))
        {
            string assetbundleConfigStr = Encoding.UTF8.GetString(Encoding.UTF8.GetBytes(www.text));


            XmlDocument xmlDoc = new System.Xml.XmlDocument();
            xmlDoc.LoadXml(assetbundleConfigStr);

            XmlElement ChildNode = (XmlElement)xmlDoc.DocumentElement.FirstChild;
            while (ChildNode != null)
            {
                LoadData data = new LoadData();
                // 自定义的AssetBundle的ID
                data.ID = Convert.ToInt32(ChildNode.GetAttribute("ID"));
                // 文件名
                data.resName = ChildNode.GetAttribute("ResName");
                // 版本号
                data.version = Convert.ToInt32(ChildNode.GetAttribute("Version"));
                // 资源服务器地址
                data.URL = ChildNode.GetAttribute("ServerUrl");
                // 下载类型
                data.downloadType = (AssetDownloadType)(Convert.ToInt32(ChildNode.GetAttribute("DownloadType")));
                // 扩展数据
                data.priority = Convert.ToUInt32(ChildNode.GetAttribute("Priority"));
                // 资源类型
                data.assetType = (AssetBundleType)(Convert.ToInt32(ChildNode.GetAttribute("AssetBundleType")));


                downloadServerAssetBundleList.Add(data);

                // 判断哪些资源是新需要立即下载和延迟下载
                Dictionary <int, LoadData> cacheDic = GetCacheServerAssetBundleDic();
                //文件不存在或者当前版本低于需下载版本
                if (!cacheDic.ContainsKey(data.ID) || cacheDic[data.ID].version < data.version)
                {
                    switch (data.downloadType)
                    {
                    case AssetDownloadType.Immediate:
                        immediateDownLoadList.Add(data);
                        break;

                    case AssetDownloadType.Delay:
                        delayDownLoadList.Add(data);
                        break;

                    default:
                        break;
                    }
                }

                //对下载资源列表进行优先级排序
                SortDownlosdList(immediateDownLoadList);
                SortDownlosdList(delayDownLoadList);

                ChildNode = (XmlElement)ChildNode.NextSibling;
            }

            // 获取完配置信息后开始下载资源
            StartCoroutine(DownloadImmediateRes());
        }
        else
        {
        }
    }
 static void AsyncLoadTest(LoadData ld)
 {
     lock (loadQueue) {
         if (!loaderRunning) {
             Thread t = new Thread (new ThreadStart (RunAsyncLoadTest));
             t.IsBackground = true;
             t.Start ();
             loaderRunning = true;
         }
         loadQueue.Enqueue (ld);
         Monitor.Pulse (loadQueue);
     }
 }
Exemple #60
0
        ///<summary>Gets the data necessary to load the Family Module.</summary>
        public static LoadData GetLoadData(long patNum, bool doCreateSecLog)
        {
            if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
            {
                return(Meth.GetObject <LoadData>(MethodBase.GetCurrentMethod(), patNum, doCreateSecLog));
            }
            LoadData data = new LoadData();

            data.Fam          = Patients.GetFamily(patNum);
            data.Pat          = data.Fam.GetPatient(patNum);
            data.ListPatPlans = PatPlans.Refresh(patNum);
            if (!PatPlans.IsPatPlanListValid(data.ListPatPlans))             //PatPlans had invalid references and need to be refreshed.
            {
                data.ListPatPlans = PatPlans.Refresh(patNum);
            }
            data.PatNote               = PatientNotes.Refresh(patNum, data.Pat.Guarantor);
            data.ListInsSubs           = InsSubs.RefreshForFam(data.Fam);
            data.ListInsPlans          = InsPlans.RefreshForSubList(data.ListInsSubs);
            data.ListBenefits          = Benefits.Refresh(data.ListPatPlans, data.ListInsSubs);
            data.ListRecalls           = Recalls.GetList(data.Fam.ListPats.Select(x => x.PatNum).ToList());
            data.ArrPatFields          = PatFields.Refresh(patNum);
            data.SuperFamilyMembers    = Patients.GetBySuperFamily(data.Pat.SuperFamily);
            data.SuperFamilyGuarantors = Patients.GetSuperFamilyGuarantors(data.Pat.SuperFamily);
            data.DictCloneSpecialities = Patients.GetClonesAndSpecialties(patNum);
            data.PatPict               = Documents.GetPatPictFromDb(patNum);
            data.HasPatPict            = (data.PatPict == null ? YN.No : YN.Yes);
            List <DisplayField> listDisplayFields = DisplayFields.GetForCategory(DisplayFieldCategory.PatientInformation);

            foreach (DisplayField field in listDisplayFields)
            {
                switch (field.InternalName)
                {
                case "Guardians":
                    data.ListGuardians = Guardians.Refresh(patNum);
                    break;

                case "Pat Restrictions":
                    data.ListPatRestricts = PatRestrictions.GetAllForPat(patNum);
                    break;

                case "Payor Types":
                    data.PayorTypeDesc = PayorTypes.GetCurrentDescription(patNum);
                    break;

                case "PatFields":
                    data.ListPatFieldDefLinks = FieldDefLinks.GetForLocation(FieldLocations.Family);
                    break;

                case "References":
                    data.ListCustRefEntries = CustRefEntries.GetEntryListForCustomer(patNum);
                    break;

                case "Referrals":
                    data.ListRefAttaches = RefAttaches.Refresh(patNum);
                    break;

                case "ResponsParty":
                    if (data.Pat.ResponsParty != 0)
                    {
                        data.ResponsibleParty = Patients.GetLim(data.Pat.ResponsParty);
                    }
                    break;
                }
            }
            if (data.Pat.DiscountPlanNum != 0)
            {
                data.DiscountPlan = DiscountPlans.GetPlan(data.Pat.DiscountPlanNum);
            }
            data.ListMergeLinks = PatientLinks.GetLinks(data.Fam.ListPats.Select(x => x.PatNum).ToList(), PatientLinkType.Merge);
            if (doCreateSecLog)
            {
                SecurityLogs.MakeLogEntry(Permissions.FamilyModule, patNum, "");
            }
            return(data);
        }