示例#1
0
        public static void ShowTree(FWConnection conn, FWFolder parentFolder)
        {
            FormTree frm = new FormTree();

            frm.arcTreeView1.ParentFolder   = parentFolder;
            frm.ckShowDocuments.Checked     = frm.arcTreeView1.ShowDocuments;
            frm.ckShowReferences.Checked    = frm.arcTreeView1.ShowReferences;
            frm.ckAllowDrag.Checked         = frm.arcTreeView1.AllowDrag;
            frm.ckAllowDrop.Checked         = frm.arcTreeView1.AllowDrop;
            frm.ckAllowOpenDocument.Checked = frm.arcTreeView1.AllowOpenDocument;
            frm.ShowDialog();
        }
示例#2
0
        /// <summary>
        /// Create a new document, set/add index values.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void createDocument_Click(object sender, EventArgs e)
        {
            FWFolder folder = conn.Content.GetFolder(edObjId.Text);

            FWDocument doc = conn.Content.CreateDocument(Convert.ToString(folder.Id), "Email");

            doc.Version.File = "c:\\elofsinst.log";

            doc.ObjKeys["ELOOUTL1"].Value = "*****@*****.**";
            doc.ObjKeys["ELOOUTL2"].Value = "*****@*****.**";

            doc.Checkin();
        }
示例#3
0
        /// <summary>
        /// This function shows how to list sub items of a given folder.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void bnSubItems_Click(object sender, EventArgs e)
        {
            // get parent folder
            FWFolder parentFolder = conn.Content.GetFolder(edObjId.Text);

            // get sub folders
            IResultCache <FWSord> subFolders = parentFolder.Folders;

            FormListbox.ShowList("Sub Folders", subFolders);

            // list documents
            IResultCache <FWSord> docs = parentFolder.Documents;

            FormListbox.ShowList("Documents", docs);

            // list all sub items (folders + documents)
            IResultCache <FWSord> sords = parentFolder.Sords;

            FormListbox.ShowList("Sub Items", sords);
        }
示例#4
0
 /// <summary>
 /// Checkin document
 /// </summary>
 /// <param name="parentFolder">Parent object</param>
 /// <param name="dataObject">COM DataObject</param>
 public virtual void Checkin(FWFolder parentFolder, IDataObject dataObject)
 {
     checkinDataObject(parentFolder.Guid, dataObject);
 }