public ActionResult showvss() { var version = PressRequest.GetQueryInt("v"); VSSDatabase vssDatabase = new VSSDatabaseClass(); var VSSini = GetValue("VSSini"); var VSSuser = GetValue("VSSuser"); var VSSpwd = GetValue("VSSpwd"); var CCMS_PRJ = GetValue("CCMS_PRJ"); var CCMS_Local = GetValue("CCMS_Local"); var ccmsversion = ""; vssDatabase.Open(@VSSini, VSSuser, VSSpwd); VSSItem vssitem = vssDatabase.get_VSSItem(CCMS_PRJ, false); var s = ""; s = string.Format("<br/>\n{0} contains:", vssitem.Spec); foreach (VSSItem vssItem in vssitem.get_Items(false)) { s += string.Format("<br/>--{0}", vssItem.Name); var versions = vssitem.get_Versions(); foreach (VSSVersion v in versions) { s += "<br/>----" + v.Username + "," + v.Date + "," + v.VersionNumber; } } return(Content(s)); }
void FindCheckedOutFiles(VSSItem vssFolder) { foreach (VSSItem item in vssFolder.get_Items(false)) { if (IsFileItem(item)) { if (IsCheckedOutByCurrentUser(item)) { filesCheckedOutByCurrentUser.Add(item.Spec, item); } else if (IsCheckedOutByOthers(item)) { filesCheckedOutByOthers.Add(item.Spec, item); } } else if (IsFolderItem(item)) { FindCheckedOutFiles(item); } } }