///
/// page initialization binding column method
/// summary>
/// param>
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 /// summary> 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 /// summary> /// param> /// param> /// param> /// param> 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 /// summary> /// Param> /// returns> 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 /// Summary> /// param> 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 /// summary> 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 /// summary> /// param> /// param> /// param> /// param> 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 /// summary> /// Param> /// returns> Private string space = ""; for (int J = 0; j