コード例 #1
0
        private void Add_Page(string PageIndexID)
        {
            PageMgr myPageMgr = new PageMgr();

            // Page Index
            string PageID  = Tools.IDGenerator.Get_New_GUID_PlainText();
            string NowDate = DateTime.Now.ToString();

            e2Data[] UpdateData =
            {
                new e2Data("PageID",            PageID),
                new e2Data("PageIndexID",       PageIndexID),
                new e2Data("Page_Version",      "1"),
                new e2Data("Create_Date",       NowDate),
                new e2Data("LastUpdate_Date",   NowDate),
                new e2Data("LastUpdate_UserID", Security.Users.UserStatus.Current_UserID(this.Page)),
                new e2Data("IsActive",          "1"),
                new e2Data("IsDelete",          "0")
            };

            myPageMgr.Add_Page(UpdateData);
        }