02 2012 档案
摘要:DateTime dt = DateTime.Now; //当前时间DateTime startWeek = dt.AddDays(1 - Convert.ToInt32(dt.DayOfWeek.ToString("d"))); //本周周一DateTime endWeek = startWeek.AddDays(6); //本周周日DateTime startMonth = dt.AddDays(1 - dt.Day); //本月月初DateTime endMonth = startMonth.AddMonths(1).AddDays(-1); //本月月末//Date
阅读全文
摘要:sum(case when (DATEPART(quarter, Document.FinishDate) = 1) then CONVERT(float,DocumentExpenseItem.Amount) else 0 end)as st,sum(case when (DATEPART(quarter, Document.FinishDate) = 2) then CONVERT(float, DocumentExpenseItem.Amount) else 0 end)as nd ,sum(case when (DATEPART(quarter,Document.FinishDate)
阅读全文
摘要:TitleCodeid ="1;2;3;4;5;6";string Codeidall = Codeid.ToString( ).TrimEnd( ';');string[] Codes = Func.Split( Codeidall , ';' ); for ( int i = 0 ; i <= Codes.Length ; i++ ) { if ( _PayMentid.ToLower( ).ToString( ) == Codes[i].ToString( ) ) { return false; break; } }Title//
阅读全文
摘要:1.ClientScript.RegisterStartupScript(GetType(),"message","<script>alert('第一种方式,无白屏!');</script>");2.HttpContext.Current.Response.Write("<script>alert('第二种方式,有白屏!')</script>");3.public static void Show(System.Web.UI.Page page, stri
阅读全文

浙公网安备 33010602011771号