Example Title |
Copy Code
|
---|---|
/* * How to call: ReqFactory reqF = tdConnection.ReqFactory; Req reqS = reqF[1]; TDFilter tFilter = reqF.Filter; tFilter["RQ_REQ_ID"] = 11.ToString(); List tL = tFilter.NewList(); Req reqSF = tL[1]; CopyPasteReq(reqS.ID.ToString(), (int) tagTDAPI_COPY_PASTE_MODES.COPY_PASTE_USE_RELATED_ENTITIES_MODE, reqS.Path.ToString(), reqSF.ID.ToString(), (int) tagTDAPI_COPY_PASTE_MODES.COPY_PASTE_USE_RELATED_ENTITIES_MODE, 1); */ private void CopyPasteReq(String idsFilter, int copyMode, String path, String targetID, int pasteMode, int orderID) { ISupportCopyPaste iscp; String clipboard; iscp = (ISupportCopyPaste)tdConnection.ReqFactory; clipboard = iscp.CopyToClipBoard(idsFilter, copyMode, path); iscp.PasteFromClipBoard(clipboard, targetID, pasteMode, orderID); iscp = null; } |