Commodity unlimited and classified partial code

xiaoxiao2021-04-09  490

///

/// page initialization binding column method

///

///

Private void bindsubjectId ()

{

IF (dtmc.rows.count> 0)

{

Foreach (DataRow Row In DTMC.ROWS)

{

IF (Row ["ParentID"]. TOSTRING (). Trim () == "0")

{

This.dropxyspzl.items.add (New ListItem (Row ["Name"]. TOSTRING (), ROW ["ProductClass_ID"]. TOSTRING ()));

This.binddropchildItems (this.dropxyspzl, DTMC, Row ["ProductClass_ID"]. TOSTRING (), 1);

}

}

// Set the preferences.

This.dropxyspzl.items.insert (0, New ListItem "," Add New Type "," 0 ");

}

}

///

/// Binds DataTable method /// private void mcfilldt () {sf_public.sqlhelp sqlhelp = new SANFENG.SF_PUBLIC.SQLHELP (); sqlparameter [] para = {}; dataset MyData = SQLHELP.GETDATASET ("Up_ProductClass_getlist", PARA, "SPZL"); DTMC = mydata.tables [0];

///

/// Bind sub-node /// /// /// /// /// private void binddropchilditems (DROPDOWNLIST DROP, DATATABLE DTMC, STRING ID, INT Length) {DataRow [] Rows = DTMC.Select ("ParentId = '" ID "" "" "" "" ProductClass_ID DESC "); for (int i = 0; i /// Submmary Current blank /// /// /// Private string space = ""; for (int J = 0; j

Published on @

June 24, 2006 17:28:00 |

Comments (0)

Commodity unlimited and classified partial code

///

/// Page Initialization Binding Column Method /// /// private void bindsubjectId () {if (DTMC.ROWS. Count> 0) {IF (Row ["ParentID"]. TOSTRING (). Trim () == "0") {this.dropxyspzl.Items.Add (New ListItem (row ["Name"]. TOSTRING (), row ["productclass_id"]. TOSTRING ())); this.binddropchildItems (this.dropxyspzl, dtmc, row ["productclass_id"]. Tostring (), 1);} / / Set the preferences. This.dropxyspzl.items.insert (0, New ListItem "," Add New Type "," 0 "));}}} /// /// Bind DataTable method /// Private Void MCFillDT () {SF_Public.SQLHelp sqlhelp = new SanFeng.SF_Public.SQLHelp (); SqlParameter [] para = {}; DataSet mydata = sqlhelp.getDataSet ( "UP_ProductClass_GetList", para, "SPZL"); dtMC = mydata.Tables [ 0];

///

/// Bind sub-node /// /// /// /// /// private void binddropchilditems (DROPDOWNLIST DROP, DATATABLE DTMC, STRING ID, INT Length) {DataRow [] Rows = DTMC.Select ("ParentId = '" ID "" "" "" "" ProductClass_ID DESC "); for (int i = 0; i /// Submmary Current blank /// /// /// Private string space = ""; for (int J = 0; j
转载请注明原文地址:https://www.9cbs.com/read-133183.html

New Post(0)