Returns all parent records that contain this ID according to the specified ID

xiaoxiao2021-03-06  83

/// ********************************************************* ************************ / / / DESCRIPT: // / / / / / / / / / / / / / / / / / / /// Author: blue.dream /// Createdate: September 6, 2004, 8:55:32 ///ModifyDate: October 6, 2004, 16:12:28 ////// ** *********************************************************** ******************** ///

/// All parent classification /// public class executeclass {private DataTable Source AcuteClass {Private DataTable Source ; // To classify the table private datatable parenttable; // store the parent classification table private data of the parent DataTable ObjectTable; // Store results table private int id; // To process the ID private string parentID; // Parent classification field name Private String priid; // master key identification ID

// Initialize public ExecuteClass (DataTable st, int id, string parentid, string priid) {SourceTable = new DataTable (); SourceTable = st.Copy (); ID = id; ParentID = parentid; PriID = priid; ParentTable = new DataTable ("Parent"); ParentTable = st.clone (); ObjectTable = New DataTable ("Object"); ObjectTable = St.clone (); Execute ();

Public DataTable getResult {get {return this.objectTable;}} private void execute () {INSERTPARENT (ID); EXECUTEPARENT (ID); int LEN = ParentTable.Rows.count - 1; for (int i = len; i> = 0; i -) {data {data; for (int J = 0; j 转载请注明原文地址:https://www.9cbs.com/read-107364.html


New Post(0)