/// <summary> /// Updates the Page sequence /// </summary> /// <param name="parentSiteUrl">Site URL.</param> /// <param name="listName">List Name.</param> /// <param name="auditListName">Name of the audit list.</param> /// <param name="dvUpdateListitems">DataView.</param> /// <param name="actionPerformed">Audit Action ID.</param> /// <param name="userName">Name of the user.</param> public void UpdateChapterSequence(string parentSiteUrl, string listName, string auditListName, DataView dvUpdateListitems, string actionPerformed, string userName) { objCommonDAL = new CommonDAL(); objCommonDAL.UpdateSequence(parentSiteUrl, listName, dvUpdateListitems, "Chapter_Sequence"); if (dvUpdateListitems != null && dvUpdateListitems.Count > 0) { for (int rowIndex = 0; rowIndex < dvUpdateListitems.Count; rowIndex++) { objCommonDAL.UpdateListAuditHistory(parentSiteUrl, auditListName, int.Parse(dvUpdateListitems[rowIndex]["ID"].ToString()), userName, actionPerformed); } } if (dvUpdateListitems != null) dvUpdateListitems.Dispose(); }
/// <summary> /// Updates the Page sequence /// </summary> /// <param name="parentSiteUrl">The parent site URL.</param> /// <param name="listName">Name of the list.</param> /// <param name="strAuditListName">Name of the STR audit list.</param> /// <param name="dvUpdateListitems">The dv update listitems.</param> /// <param name="actionPerformed">The action performed.</param> public void UpdatepageSequence(string parentSiteUrl, string listName, string strAuditListName, DataView dvUpdateListitems, string actionPerformed) { objCommonDAL = new CommonDAL(); objMasterDAL = new MasterDAL(); objCommonDAL.UpdateSequence(parentSiteUrl, listName, dvUpdateListitems, "Page_Sequence"); if (dvUpdateListitems != null && dvUpdateListitems.Count > 0) { for (int intIndex = 0; intIndex < dvUpdateListitems.Count; intIndex++) { objMasterDAL.UpdateListAuditHistory(parentSiteUrl, listName, strAuditListName, int.Parse(dvUpdateListitems[intIndex]["ID"].ToString()), string.Empty, Environment.UserName, actionPerformed); } } }
/// <summary> /// Method to update the Page Sequence for Master Pages in a Template /// </summary> /// <param name="siteURL">Site URL.</param> /// <param name="listName">List Name.</param> /// <param name="auditListName">Audit List Name.</param> /// <param name="actionPerformed">Audit Action.</param> /// <param name="userName">User Name.</param> /// <param name="dvUpdateListitems">DataView.</param> public void UpdatePageSequence(string siteURL, string listName, string auditListName, string actionPerformed, string userName, DataView dvUpdateListitems) { objCommonDAL = new CommonDAL(); objCommonDAL.UpdateSequence(siteURL, listName, dvUpdateListitems, "Page_Sequence"); if (dvUpdateListitems != null && dvUpdateListitems.Count > 0) { for (int i = 0; i < dvUpdateListitems.Count; i++) { objCommonDAL.UpdateListAuditHistory(siteURL, auditListName, int.Parse(dvUpdateListitems[i]["ID"].ToString()), userName, actionPerformed); } } dvUpdateListitems.Dispose(); }