摘要: select * from O_OrderWovenLabelselect row_number()over(order by Size )as RowNum,*from O_OrderWovenLabelROW_NUMBER() OVER (ORDER BY id desc)为SQL2005新增函数,表示取出每一列的行号 阅读全文
posted @ 2012-05-30 09:58 KyrieYang 阅读(15657) 评论(0) 推荐(3)
摘要: Select no=Identity(int,1,1),* Into #temptable From O_OrderWovenLabel Select * From #temptable 阅读全文
posted @ 2012-05-30 09:13 KyrieYang 阅读(1717) 评论(0) 推荐(0)
摘要: class Program { static void Main(string[] args) { int[] arr = new int[] { 49, 38, 65, 97, 76, 13, 27 }; Sort(arr); for (int i = 0; i < arr.Length; i++) { Console.WriteLine("得到"+arr[i]); }}public static void Sort(int[] list) { int i, j, temp; bool done = false; j = 1; while((j<list.Le 阅读全文
posted @ 2012-05-29 10:21 KyrieYang 阅读(138) 评论(0) 推荐(0)
摘要: if (!(filename.EndsWith(".jpg") || filename.EndsWith(".gif"))) { Label10.Text = "图片只能是jpg,gif格式"; return; } 阅读全文
posted @ 2012-05-28 17:32 KyrieYang 阅读(2138) 评论(0) 推荐(0)
摘要: '加载Excel数据 Private Function LoadExcelData(ByVal Path As String) txtMsg.Text = "Excel数据导入中..." Dim msgError As String = "" Dim miss As Object = System.Reflection.Missing.Value Dim wss As Excel.Sheets Dim ws As Excel.Worksheet = Nothing Dim excelApp As Excel.Application = New E 阅读全文
posted @ 2012-05-28 14:58 KyrieYang 阅读(731) 评论(0) 推荐(0)
摘要: function Check_FileType() { var str=document.getElementById("FileUpload1").value; //即得到上传图片框里的值,也就是路径 if(str==""||str==null) //判断是否为空 { alert("Please upload pictures"); return false; } var pos=str.lastIndexOf("."); //得到.的位置 var lastname=str.substring(pos,str.l 阅读全文
posted @ 2012-05-17 09:20 KyrieYang 阅读(275) 评论(0) 推荐(0)
摘要: USE [ShimadaWebOrder ]GO/****** Object: StoredProcedure [dbo].[sp_orderState_handl] Script Date: 05/16/2012 14:35:27 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOALTER proc [dbo].[sp_orderState_handl]( @RefNo varchar(500), --订单号 @CustID varchar(50) --登录编号)asbegin declare @CmdText varchar(8000 阅读全文
posted @ 2012-05-16 15:28 KyrieYang 阅读(3455) 评论(0) 推荐(0)
摘要: public static void CreateFile() { string filename = @"E:\Test\NewFile.txt"; //在什么路径下创建什么文件NewFile.txt(可以根据自已需要传入参数,路径也可以变化) try { FileStream fs = File.Create(filename);//表示在该路径下创建文件 //准备装文本写入文件,将字符串转换为合适的格式,以便可以存储在Byte类型的数组中 Byte[] info = new UTF8Encoding(true).GetBytes("把数据写入到了NewFil 阅读全文
posted @ 2012-05-16 12:22 KyrieYang 阅读(3256) 评论(0) 推荐(0)
摘要: using System;using System.Data;using System.Collections.Generic;using System.Text;using System.IO;using Excel = Microsoft.Office.Interop.Excel;using System.Text.RegularExpressions;using System.Threading;using System.Globalization;using System.Net.Mail;using Yokohama.ApplicationBlocks.Data;namespace 阅读全文
posted @ 2012-05-15 10:47 KyrieYang 阅读(291) 评论(0) 推荐(0)
摘要: c#实现按日期命名上传文件代码,做开发的应该能够用得了吧! “附件说明”边的TextBox:Id=TextBox1 “浏览”:Id=UpLoadFile “上传”:Id=AddFile 文件目录:wwwroot/myWeb/userfiles/upload private void AddFile_Click(object sender, System.EventArgs e) { if(UpLoadFile.PostedFile.FileName.Trim()!="") { String fileName =UpLoadFile.PostedFile.FileName.S 阅读全文
posted @ 2012-05-14 14:50 KyrieYang 阅读(1890) 评论(0) 推荐(0)