All pastes #2098920 Raw Edit

Anonymous

public text v1 · immutable
#2098920 ·published 2012-01-04 09:37 UTC
rendered paste body
if (_strCAMWFOperation == "CheckIn")               _AUBCAMWFSPWeb.Lists[AUB.BLL.AUBCAMWFUtilitiesBL.AUBCAMWFLists.CAM.ToString()].Items.GetItemById(_itemID).File.CheckIn("User Checked In the Document");
else if (_strCAMWFOperation != "CheckIn")               _AUBCAMWFSPWeb.Lists[AUB.BLL.AUBCAMWFUtilitiesBL.AUBCAMWFLists.CAM.ToString()].Items.GetItemById(_itemID).File.CheckOut();
_item = _AUBCAMWFLists[AUB.BLL.AUBCAMWFUtilitiesBL.AUBCAMWFLists.CAM.ToString()].Items.GetItemById(_pCAMDetails.DocumentItemID);
if (!_item.HasUniqueRoleAssignments) _item.BreakRoleInheritance(false);
    _AUBCAMWFSPWeb.AllowUnsafeUpdates = true; _item.File.CheckOut(); _item.RoleAssignments.Add(role); _item.Update(); _item.File.CheckIn("Auto check-in : Updated Access Permissions");