日期:2014-05-17 浏览次数:20482 次
int minyear = DateTime.Parse(DAO.RunSQLScalar("SELECT MIN(c_time) FROM dbo.t_WarehouseV_ClothHead WHERE c_IsAccount=1").ToString()).Year;
int maxyear = DateTime.Now.Year;
for (int i = minyear; i <= maxyear; i++)
{
Coolite.Ext.Web.TreeNode newNode = new Coolite.Ext.Web.TreeNode();
newNode.NodeID =i.ToString();
newNode.Text =i.ToString() + "年";
//newNode.Href = row.NodeUrl;
for (int t = 1; t < 13; t++)
{
Coolite.Ext.Web.TreeNode treeNode = new Coolite.Ext.Web.TreeNode();
treeNode.Text = t + "月";
treeNode.NodeID = i.ToString() + "_" + t.ToString();
newNode.Nodes.Add(treeNode);
}
nodes.Add(newNode);
}