本文整理汇总了C#中Record.SetOwnerLocation方法的典型用法代码示例。如果您正苦于以下问题:C# Record.SetOwnerLocation方法的具体用法?C# Record.SetOwnerLocation怎么用?C# Record.SetOwnerLocation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Record
的用法示例。
在下文中一共展示了Record.SetOwnerLocation方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateNewRMRecord
//.........这里部分代码省略.........
case ".CFM": //NS
case ".XLTM": //NS
case ".SHX": //NS
case ".PPSX": //NS
case ".CSS": //NS
case ".XLTX": //NS
case ".JS": //NS"
case ".OTF": //NS
case ".VST": //NS
case ".WMV": //NS
case ".WMZ": //NS
case ".OFT": //NS
case ".MOV": //NS
case ".PPS": //NS
case ".MDB": //NS
case ".EPS": //NS
case ".XPS": //NS
case ".XLSB": //NS
case ".MID": //NS
case ".THMX": //NS
case ".TMP": //NS
case ".TTF": //NS
case ".MXD": //NS
case ".ICS": //NS
case ".DOCM": //NS
case ".BPMN": //NS
case ".AI": //NS
case ".AVI": //NS
case ".DXF": //NS
case ".INI": //NS
case ".LOG": //NS
case ".LST": //NS
case ".ODT": //NS
case ".PARTIAL": //NS
case ".POT": //NS
case ".POTX": //NS
case ".VSDX": //NS
case ".SKP": //NS
case ".SHS": //NS
case ".RPT": //NS
case ".XLA": //NS
rt = new RecordType(db, 2);
break;
//Images
case ".JPG":
case ".TIF":
case ".jpg":
case ".tif":
case ".PNG":
case ".png":
case ".JPEG":
case ".jpeg":
case ".GIF":
case ".gif":
case ".BMP":
case ".bmp":
case ".MPEG":
case ".TIFF":
rt = new RecordType(db, 14);
break;
//Mail
case ".EML":
case ".eml":
case ".msg":
case ".MSG":
rt = new RecordType(db, 3);
newtitle = SetEmailTitle(FileLoc);
break;
}
Record rcont = new Record(db, cont);
Record r = new Record(rt);
Location lo = new Location(db, 5503);
if (newtitle != null)
r.Title = newtitle;
r.SetDocument(FileLoc);
r.SetAssignee(lo);
r.SetOwnerLocation(lo);
r.Container = rcont;
r.Save();
uri = r.Uri;
Console.WriteLine("Migrated document from: " + FileLoc + " and saved as " + r.Number);
db.LogExternalEvent("Document migrated from: " + FileLoc, BaseObjectTypes.Record, uri, true);
}
else
{
Console.WriteLine("Document location does not exist: " + FileLoc);
db.LogExternalEvent("Document location does not exist: "+FileLoc, BaseObjectTypes.Record, Convert.ToInt64(cont), true);
}
}
catch (Exception exp)
{
Console.WriteLine("Error: " + exp.Message.ToString());
db.LogExternalEvent("Error migrating: " + FileLoc+" Error: "+exp.Message.ToString(), BaseObjectTypes.Record, Convert.ToInt64(cont), true);
}
return uri;
}