本文整理汇总了C#中LANDCOMP.ExecuteSTP.List5方法的典型用法代码示例。如果您正苦于以下问题:C# ExecuteSTP.List5方法的具体用法?C# ExecuteSTP.List5怎么用?C# ExecuteSTP.List5使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LANDCOMP.ExecuteSTP
的用法示例。
在下文中一共展示了ExecuteSTP.List5方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ServiceSelect
//.........这里部分代码省略.........
case ".htm":
case ".html":
type = "text/HTML";
break;
case ".txt":
type = "text/plain";
break;
case ".doc":
case ".docx":
case ".rtf":
type = "Application/msword";
break;
case ".xls":
case ".xlsx":
type = "Application/msexcel";
break;
case ".zip":
case ".rar":
type = "application/zip";
break;
case ".pdf":
type = "application/pdf";
break;
case ".jpg":
type = "image/JPG";
break;
case ".pgn":
type = "image/PNG";
break;
case ".tif":
type = "image/tif";
break;
}
Response.AddHeader("content-disposition", "attachment;filename=" + namafile + "");
Response.ContentType = type;
Response.WriteFile(Server.MapPath(@"~/uploaddocument/" + Request.Params["namafile"].ToString().Replace("&", "&")));
Response.End();
return false;
break;
case "SavePic":
Response.ContentType = "text/plain";
Response.Write(SaveUploadPengecekan());
Response.End();
return false;
case "DOCpic":
String path_pic = (HttpContext.Current.Request.Url.AbsolutePath).ToLower();
string IDPengecekan = Request.Params["IDPengecekan"].ToString();
string param1 = Request.Params["param1"].ToString();
LANDCOMP.ExecuteSTP eSTPx = new LANDCOMP.ExecuteSTP();
eSTPx.Datas();
DataSet dsx = new DataSet();
dsx = eSTPx.List5("P_PENLAP_D", param1, IDPengecekan, "", "", "");
dt = dsx.Tables[0];
Response.ContentType = "application/xhtml+xml";
Response.Write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
Response.Write("<rows>");
for (int i = 0; i < dt.Rows.Count; i++)
{
Random r = new Random();
Response.Write("<row id=\"" + (i + 1).ToString() + "\">");
Response.Write("<cell>" + (i + 1).ToString() + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["codessDescs1"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["penlapKetera"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["hdocumFiless"].ToString()) + "</cell>");
Response.Write("<cell>" + "Download^" + path_pic + "?sm=df&namafile=" + dt.Rows[i]["hdocumIdLink"].ToString() + "&filelama=" + dt.Rows[i]["hdocumFiless"].ToString() + "</cell>");
//Response.Write("<cell>" + "Delete^" + path_pic + "?sm=Deletepic&IDSOURCE=" + dt.Rows[i]["IDSource"].ToString() + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace("Delete^javascript:DeletePic(\"" + dt.Rows[i]["hdocumIdLink"].ToString()) + "\",\"" + IDPengecekan + "\");^_self" + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["hdocumIdSour"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["hdocumIdLink"].ToString()) + "</cell>");
Response.Write("</row>");
}
Response.Write("</rows>");
dt.Dispose();
Response.End();
return false;
default:
Response.ContentType = "text/plain";
Response.End();
return true;
}
}