摘要:
SPList lstTrad=SPWeb.OpenWeb().Lists["工资表"];
SPListItem liFolder = lstTrad.Folders.Add(lstTrad.RootFolder.ServerRelativeUrl,SPFileSystemObjectType.Folder); liFolder["Title"] = DateTime... 阅读全文
摘要:
//取得上个月
int lastMonth = DateTime.Now.Month - 1 == 0 ? 12 : DateTime.Now.Month - 1;
//取得上个月月初日期 string lastMonthDate = (DateTime.Now.Month - 1 == 0 ? Convert.ToString(DateTime.Now.Year - 1)... 阅读全文