Exemplo n.º 1
0
        //[Ignore]
        public void SamplesCheckInPanelTest()
        {
            var panel = new SamplesCheckIn(EIDSS.HACode.Human, false);

            panel.LoadData();
            BaseFormManager.ShowSimpleFormModal(panel);
        }
Exemplo n.º 2
0
        //[Ignore]
        public void LookupPanelTestWithLayout()
        {
            var panel = new TestLookupPanelUI();

            panel.LoadData();
            BaseFormManager.ShowSimpleFormModal(panel);
        }
Exemplo n.º 3
0
        public void ShowButtonsRightTest()
        {
            TestTable testTable = TestTable.CreateInstance();

            TestTable.Accessor accessor = TestTable.Accessor.Instance(null);
            //наполняем тестовыми действиями
            accessor.Actions.Add(new ActionMetaItem("Action1", ActionTypes.Action, true, null, null, null, null, null));
            accessor.Actions.Add(new ActionMetaItem("Action2", ActionTypes.Action, true, null, null, null, null, null));
            accessor.Actions.Add(new ActionMetaItem("Action3", ActionTypes.Action, true, null, null, null, null, null));
            accessor.Actions.Add(new ActionMetaItem("Action4", ActionTypes.Action, true, null, null, null, null, null));
            accessor.Actions.Add(new ActionMetaItem("Action7", ActionTypes.Action, true, null, null, null, null, null));

            /*
             * accessor.Actions.Add(new ActionMetaItem("Action1", "This is action 1", "icon 1", "tooltip 1", String.Empty, String.Empty, String.Empty, String.Empty, null, ActionsAlignment.Left, ActionsPanelType.Main, ActionsAppType.All, true,
             *                                      true, false, null, null, null, ActionTypes.Action, ActionTypes.Action, ActionTypes.Unknown, String.Empty));
             * accessor.Actions.Add(new ActionMetaItem("Action2", "test2", "icon 2", "tooltip 2", String.Empty, String.Empty, String.Empty, String.Empty, null, ActionsAlignment.Right, ActionsPanelType.Main, ActionsAppType.All, true, true, false,
             *                                      null, null, null, ActionTypes.Action, ActionTypes.Action, ActionTypes.Unknown, String.Empty));
             * accessor.Actions.Add(new ActionMetaItem("Action3", "This is action 3", "icon 3", "tooltip 3", String.Empty, String.Empty, String.Empty, String.Empty, null, ActionsAlignment.Left, ActionsPanelType.Main, ActionsAppType.All, true,
             *                                      true, false, null, null, null, ActionTypes.Action, ActionTypes.Action, ActionTypes.Unknown, String.Empty));
             * accessor.Actions.Add(new ActionMetaItem("Action4", "This is action 4", "icon 4", "tooltip 4", String.Empty, String.Empty, String.Empty, String.Empty, null, ActionsAlignment.Right, ActionsPanelType.Main, ActionsAppType.All, true,
             *                                      true, false, null, null, null, ActionTypes.Action, ActionTypes.Action, ActionTypes.Unknown, String.Empty));
             *
             * accessor.Actions.Add(new ActionMetaItem("Action7", "Some another action 7", "icon 7", "tooltip 7", String.Empty, String.Empty, String.Empty, String.Empty, null, ActionsAlignment.Left, ActionsPanelType.Top, ActionsAppType.All, true,
             *                                      true, false, null, null, null, ActionTypes.Action, ActionTypes.Action, ActionTypes.Unknown, String.Empty));
             */
            var     pn        = SetTestPanelUIBO(testTable);
            ILayout container = pn.GetLayout();

            container.AddActions(pn, testTable);
            BaseFormManager.ShowSimpleFormModal(pn);
        }
Exemplo n.º 4
0
        public void VectorDetailShowTest()
        {
            var    panel = new VectorDetail();
            object id    = null;

            panel.LoadData(ref id);
            BaseFormManager.ShowSimpleFormModal(panel);
        }
Exemplo n.º 5
0
        //[Ignore]
        public void VsSessionListPanelTest()
        {
            var panel = new VsSessionListPanel();

            panel.LoadData();
            BaseFormManager.ShowSimpleFormModal(panel);
            //Control container = panel.Activate();
            //BaseListPanelUITest.ShowControlOnForm(container);
        }
Exemplo n.º 6
0
        public void VsSessionDetailShowTest()
        {
            //BaseDetailPanelTest.ShowControlOnForm((new VsSessionDetail()).Activate());

            var    panel = new VsSessionDetail();
            object id    = null;

            panel.LoadData(ref id);
            BaseFormManager.ShowSimpleFormModal(panel);
        }
Exemplo n.º 7
0
        public void ShowAdvancedLayoutWithActionGroups()
        {
            var testTable = TestTable.CreateInstance();

            var pn = new TestPanelAdvancedWithActionGroups {
                BusinessObject = testTable
            };

            BaseFormManager.ShowSimpleFormModal(pn);
        }
Exemplo n.º 8
0
 // [Ignore]
 public void LookupPanelTestWithLayoutWithPermissions()
 {
     //показ листовой формы с учётом полномочий
     TestUserContext.Init();
     using (ModelUserContext context = ModelUserContext.Instance)
     {
         //Lookup2ListItem bo = Lookup2ListItem.CreateInstance();
         var panel = new TestLookupPanelUI();
         panel.LoadData();
         BaseFormManager.ShowSimpleFormModal(panel);
     }
     TestUserContext.Clear();
 }
Exemplo n.º 9
0
        public void ShowAdvancedLayoutTest()
        {
            TestTable testTable = TestTable.CreateInstance();
            //TestTable.Accessor accessor = TestTable.Accessor.Instance(null);
            ////наполняем тестовыми действиями
            //accessor.Actions.Add(new ActionMetaItem("Action1", "This is action 1", "icon 1", ActionsAlignment.Left, ActionsPanelType.Main, true, true, false, null, null, ActionTypes.Action));
            //accessor.Actions.Add(new ActionMetaItem("Action2", "test2", "icon 2", ActionsAlignment.Right, ActionsPanelType.Main, true, true, false, null, null, ActionTypes.Action));
            //accessor.Actions.Add(new ActionMetaItem("Action3", "This is action 3", "icon 3", ActionsAlignment.Left, ActionsPanelType.Main, true, true, false, null, null, ActionTypes.Action));
            //accessor.Actions.Add(new ActionMetaItem("Action4", "This is action 4", "icon 4", ActionsAlignment.Right, ActionsPanelType.Main, true, true, false, null, null, ActionTypes.Action));

            //accessor.Actions.Add(new ActionMetaItem("Action7", "Some another action 7", "icon 7", ActionsAlignment.Left, ActionsPanelType.Top, true, true, false, null, null, ActionTypes.Action));
            //accessor.Actions.Add(new ActionMetaItem("Action8", "Some another action 8", "icon 8", ActionsAlignment.Right, ActionsPanelType.Top, true, true, false, null, null, ActionTypes.Action));
            //accessor.Actions.Add(new ActionMetaItem("Action9", "Some another action 9", "icon 9", ActionsAlignment.Left, ActionsPanelType.Top, true, true, false, null, null, ActionTypes.Action));
            //accessor.Actions.Add(new ActionMetaItem("Action10", "Some another action 10", "icon 10", ActionsAlignment.Right, ActionsPanelType.Top, true, true, false, null, null, ActionTypes.Action));

            var pn = new TestPanelAdvancedUI {
                BusinessObject = testTable
            };
            ILayout container = pn.GetLayout();

            container.AddActions(pn, testTable);
            BaseFormManager.ShowSimpleFormModal(pn);
        }
Exemplo n.º 10
0
 //[Ignore]
 public void SecurityEventLogListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new SecurityEventLogListPanel());
 }
Exemplo n.º 11
0
 //[Ignore]
 public void OrganizationListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new OrganizationListPanel());
 }
Exemplo n.º 12
0
 //[Ignore]
 public void PersonListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new PersonListPanel());
 }
Exemplo n.º 13
0
 // [Ignore]
 public void SampleDispositionListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new SampleDispositionListPanel());
 }
Exemplo n.º 14
0
 // [Ignore]
 public void AsSessionListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new AsSessionListPanel());
 }
Exemplo n.º 15
0
 //[Ignore]
 public void OutbreakListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new OutbreakListPanel());
 }
Exemplo n.º 16
0
 //[Ignore]
 public void TestListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new TestListPanel());
 }
Exemplo n.º 17
0
 //[Ignore]
 public void VetAggregateCaseListTest()
 {
     BaseFormManager.ShowSimpleFormModal(new VetAggregateCaseList());
 }
Exemplo n.º 18
0
 //[Ignore]
 public void StatisticListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new StatisticListPanel());
 }
Exemplo n.º 19
0
 //        [Ignore]
 public void UserGroupListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new UserGroupListPanel());
 }
Exemplo n.º 20
0
 // [Ignore]
 public void SettlementListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new SettlementListPanel());
 }
Exemplo n.º 21
0
 //        [Ignore]
 public void SiteActivationServerListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new SiteListPanel());
 }
Exemplo n.º 22
0
 //[Ignore]
 public void AsCampaignListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new AsCampaignListPanel());
 }
Exemplo n.º 23
0
 //[Ignore]
 public void DataAuditListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new DataAuditListPanel());
 }
Exemplo n.º 24
0
 // [Ignore]
 public void SampleTransferListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new SampleTransferListPanel());
 }
Exemplo n.º 25
0
 //[Ignore]
 public void HumanCaseListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new HumanCaseListPanel());
 }
Exemplo n.º 26
0
 // [Ignore]
 public void RepositorySchemeListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new RepositorySchemeListPanel());
 }
Exemplo n.º 27
0
 //[Ignore]
 public void NextNumbersListPanelTest()
 {
     BaseFormManager.ShowSimpleFormModal(new NextNumbersListPanel());
 }