コード例 #1
0
ファイル: LabController.cs プロジェクト: amirrezabarin/WERC
        public ActionResult TeamList(int activeItemId = -1)
        {
            var bsTeam = new BLTeam();

            return(View("TeamList", new VmTeamCollection
            {
                HtmlControlId = "Lab_TeamList",
                DataAction = "jts",
                DataController = "Lab",
                AllowDownlaod = false,
                AllowEdit = false,
                AllowDelete = false,
                ActiveItemId = activeItemId,
                Draggable = false,
                ShowSearchBox = true,
                ParentHtmlControlId = "TeamList_ParentHtmlControlId",
                OnItemSelected = "",
                TeamList = bsTeam.GetLabTeams(CurrentUserId)
            }));
        }
コード例 #2
0
ファイル: LabController.cs プロジェクト: amirrezabarin/WERC
        public PartialViewResult SearchTeam(
            bool draggable,
            string OnItemSelected,
            bool allowDownlaod,
            bool allowEdit,
            bool allowReject,
            string onItemRejecting,
            bool allowAccept,
            string onItemAccepting,
            bool allowDelete,
            string htmlControlId,
            string dataAction,
            string dataController,
            string ParentHtmlControlId, string onItemDragged,
            string teamName = "")
        {
            var bsTeam   = new BLTeam();
            var teamList = bsTeam.GetLabTeams(CurrentUserId, teamName);

            return(PartialView("_TeamList",
                               new VmTeamCollection
            {
                DataAction = dataAction,
                DataController = dataController,
                AllowDownlaod = allowDownlaod,
                AllowEdit = allowEdit,
                AllowReject = allowReject,
                OnItemRejecting = onItemRejecting,
                AllowAccept = allowAccept,
                OnItemAccepting = onItemAccepting,
                AllowDelete = allowDelete,
                Draggable = draggable,
                ShowSearchBox = true,
                SearchText = teamName,
                TeamList = teamList,
                HtmlControlId = htmlControlId,
                ParentHtmlControlId = ParentHtmlControlId,
                OnItemSelected = OnItemSelected,
                OnItemDragged = onItemDragged
            }));
        }