Exemplo n.º 1
0
        private void CreateTerm_Clicked(object sender, RoutedEventArgs e)
        {
            var termHandler = new TermHandler(context);

            termHandler.CreateDepartmentTermSet();
            MessageBox.Show("Create Success");
        }
Exemplo n.º 2
0
        public IActionResult Index()
        {
            ViewBag.ItemList = "Term List Page";
            TermHandler iHandler = new TermHandler();

            ModelState.Clear();
            return(View(iHandler.GetTermList()));
        }
Exemplo n.º 3
0
        public IActionResult Index(int TermID)
        {
            ViewBag.ItemList = "Report Page";
            ReportHandler iHandler = new ReportHandler();

            TermHandler      gHandler = new TermHandler();
            List <TermModel> termlist = new List <TermModel>();

            termlist = gHandler.GetTermList().ToList();
            termlist.Insert(0, new TermModel()
            {
                TermID = 0, TermName = "Select"
            });
            ViewBag.ListOfTerms = termlist;

            ModelState.Clear();
            return(View(iHandler.GetReportList(TermID)));
        }
        protected void BaseTransfer(EditMode? editMode, TermHandler termHandler, string destination, bool isChanged)
        {
            _termEdit.TermHandler = termHandler;
            Context.Items[Common.Names._CNTXT_Template] = _template;
            Context.Items[Common.Names._CNTXT_IsChanged] = isChanged;
            if (editMode.HasValue)
                _termEdit.EditMode = editMode.Value;
            Context.Items[Common.Names._CNTXT_TermEdit] = _termEdit;

            Server.Transfer(destination);
        }