Click or drag to resize

RemDocumentGetDataHistory Method

Paperwork .Net Kütüphanesi
Veri tarihçesini geri döner.

Namespace:  Paperwork.Connect
Assembly:  Paperwork.Connect (in Paperwork.Connect.dll) Version: 5.0.0.0
Syntax
C#
public rDataHistory GetDataHistory(
	ObjectID objectId,
	int pageIndex
)

Parameters

objectId
Type: ObjectID
Veri tarihçesinin istendiği nesne numarası
pageIndex
Type: SystemInt32
İstenilen sayfa numarası

Return Value

Type: rDataHistory
Dokümanın veri tarihçesini döner.
Examples
C#
 
            public void GetDataHistory() 
            {

                    ObjectID str_folderId = new ObjectID("FF00010000000001");
                    int pageindex = 1;

                    rDataHistory dhistory = p.rDocument.GetDataHistory(str_folderId, pageindex);
                    DataSet ds = new DataSet();
                    ds.ReadXml(new StringReader(dhistory.Message));

                    foreach (DataTable table in ds.Tables)
                    {

                        switch (table.TableName)
                        {
                            case "StiDataSet"   : /* Sistem Datası (Reserved)*/     break;
                            case "Reduction"    : /* Sistem Datası (Reserved)*/     break;
                            case "Contents"     : /* Sistem Datası (Reserved)*/     break;
                            case "TablesInfo"   : /* i0 tablosunun alan bilgileri*/ break;
                            case "i0"           : /* Veri Tarihçesi Datası*/

                                //return ederken case leri tablo yap
                                Console.WriteLine("");
                                Console.WriteLine("Table Name:{0}", table.TableName);
                                foreach (DataRow row in table.Rows)
                                {
                                    foreach (DataColumn col in table.Columns)
                                    {
                                        string value = (row[col] == DBNull.Value) ? string.Empty : row[col].ToString();
                                        Console.Write("{0}:{1},  ", col.ColumnName, value);
                                    }
                                    Console.WriteLine("");
                                }
                                break;
                        }
                   }
                   Console.ReadLine();
            }
See Also