![]() | RemDocumentSetDocument Method |
Namespace: Paperwork.Connect
public a_GenericResult SetDocument( ITypes fObject, string referenceId = "" )
public void SetDocument() { Paperwork.Connect.Productivity p = new Paperwork.Connect.Productivity(); string app_name = "Test Application V1.0"; p.InitRemObjects("127.0.0.1", "8099"); a_LoginInfo lf = p.rLogin.Login("argus", "xxx", app_name); if (lf == null || !lf.aErrorCode.Equals(Definitions.NOERROR)) { logger.Error(string.Format("Login error UserName:{0}Password:{1} aErrorCode:{2} ", "argus", "xxx", lf.aErrorCode)); } else { ObjectID ObjectId = new ObjectID("10000100000002F2"); string objectType = "I_MUSTERI"; p.InitAssemblies(); ITypes fObject = p.rDocument.getDocument(ObjectId,objectType); fObject.setAttribute("SURNAME", "istanbul"); p.rDocument.SetDocument(fObject); } }