private void LaodDocExpire() { Cv_Flag = false; string cmd = " SELECT AlertByDayAfter FROM Users"; int Fv_DaySetting = 0; int.TryParse(Cv_Session.GetFieldText(cmd), out Fv_DaySetting); cmd = "SELECT Id,DocName FROM ViewDocuments WHERE (" + Fv_DaySetting + " >= DATEDIFF(d, GETDATE(), ExpireDate))"; Cv_Session.FillTreeNode(treeDocExpire, cmd, 0); Cv_Flag = true; }