Click or drag to resize

RemDocumentSetDocument Method

Paperwork .Net Kütüphanesi
Doküman güncelleme (Default). Eğer nesne numarası boş ise doküman yaratılır. Aksi taktirde varolan doküman güncellenir.

Namespace:  Paperwork.Connect
Assembly:  Paperwork.Connect (in Paperwork.Connect.dll) Version: 5.0.0.0
Syntax
C#
public a_GenericResult SetDocument(
	ITypes fObject,
	string referenceId = ""
)

Parameters

fObject
Type: ITypes
Güncelleme yapılacak dokümanın nesne numarası.
referenceId (Optional)
Type: SystemString
Nesne akışta kullanılıyor ise workitemId değeri geçilir. Aksi taktirde boş geçilir

Return Value

Type: a_GenericResult
a_GenericResult nesesi içinde , ErrorCode=0 ise işlem başarılıdır. Aksi taktirde Result ve Message alanları kontrol ediniz.
Examples
C#
 
            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);
                    }
            }               
See Also