Esempio n. 1
0
        public void GenerateRowsAndColsForSeriesCompareTest()
        {
            int        seriesCount = 10;
            List <int> rows;
            List <int> cols;
            uint       maxRow = 5;
            uint       maxCol = 5;

            FilmingUtility.GenerateRowsAndColsForSeriesCompare(false, seriesCount, out rows, out cols, maxRow, maxCol);
            Assert.AreNotEqual(null, rows);
            Assert.AreNotEqual(null, cols);

            FilmingUtility.GenerateRowsAndColsForSeriesCompare(true, seriesCount, out rows, out cols, maxRow, maxCol);
        }
Esempio n. 2
0
        /// <summary>
        /// send filming command to filming module
        /// </summary>
        /// <param name="proxy">communication proxy of the filming command sender</param>
        public void SendFilmingJobCommand(ICommunicationProxy proxy, bool withAnnotations = true)
        {
            try
            {
                Logger.LogFuncUp();

                _proxy = proxy;
                CommandContext cs = new CommandContext();
                cs.iCommandId = MCSF_AUTO_FILMING_COMMAND_ID;//7088
                //cs.sSender = param.GetValue(2).ToString();// "FilmingFE";
                //cs.sReceiver = param.GetValue(3).ToString();// "FilmingBE";
                //cs.sReceiver = "FilmingBE";
                cs.sReceiver = CommunicationNodeName.CreateCommunicationProxyName(MCSF_FILMING_NAME);//CreateCommunicationProxyName(MCSF_FILMING_NAME, FRONT_END);
                //cs.pCommandCallback = (ICommandCallbackHandler)param.GetValue(4);
                //cs.bServiceAsyncDispatch = true;
                byte[] serializedJob = CreateFilmingJobInstance(withAnnotations);
                cs.sSerializeObject = serializedJob;

                // cs.bServiceAsyncDispatch = true;

                if (-1 == _proxy.AsyncSendCommand(cs))
                {
                    throw new Exception("failed to send auto filming command to filming module!");
                }

                FilmingUtility.UpdatePrintStatus(new List <string> {
                    _studyInstanceUid
                }, DBWrapperHelper.DBWrapper, _proxy);

                Logger.LogFuncDown();
            }
            catch (Exception ex)
            {
                Logger.LogError(ex.StackTrace);
            }
        }
Esempio n. 3
0
 /// <summary>
 ///A test for AssertEnumerable
 ///</summary>
 public void AssertEnumerableTestHelper <T>()
 {
     FilmingUtility.AssertEnumerable <T>(null);
 }