コード例 #1
0
ファイル: EventView1.ascx.cs プロジェクト: alex765022/IBN
        protected void Page_Load(object sender, System.EventArgs e)
        {
            BindToolbar();
            BindTabs();
            if (!IsPostBack)
            {
                ViewState["CurrentTab"] = pc["EventView_CurrentTab"];
            }

            if (!IsPostBack)
            {
                CalendarEntry.AddHistory(EventId, CalendarEntry.GetEventTitle(EventId));
            }
        }
コード例 #2
0
        private void BindToolBar()
        {
            string Title = Util.CommonHelper.GetObjectTypeName(ObjectTypeId) + ": ";

            switch (ObjectTypeId)
            {
            case (int)ObjectTypes.CalendarEntry:
                Title += CalendarEntry.GetEventTitle(ObjectId);
                break;

            case (int)ObjectTypes.Document:
                Title += Document.GetTitle(ObjectId);
                break;

            case (int)ObjectTypes.Issue:
                Title += Incident.GetTitle(ObjectId);
                break;

            case (int)ObjectTypes.List:
                Title += ListManager.GetListTitle(ObjectId);
                break;

            case (int)ObjectTypes.Project:
                Title += Project.GetProjectTitle(ObjectId);
                break;

            case (int)ObjectTypes.Task:
                Title += Task.GetTaskTitle(ObjectId);
                break;

            case (int)ObjectTypes.ToDo:
                Title += Mediachase.IBN.Business.ToDo.GetToDoTitle(ObjectId);
                break;
            }
            secHeader.Title = Title;

            secHeader.AddLink("<img alt='' src='../Layouts/Images/cancel.gif'/> " + LocRM2.GetString("Exit"), "javascript:window.close();");
        }