本文整理汇总了C#中LANDCOMP.ExecuteSTP.List2方法的典型用法代码示例。如果您正苦于以下问题:C# ExecuteSTP.List2方法的具体用法?C# ExecuteSTP.List2怎么用?C# ExecuteSTP.List2使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LANDCOMP.ExecuteSTP
的用法示例。
在下文中一共展示了ExecuteSTP.List2方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: graphic
public string graphic()
{
String output = "";
var param1 = Request.Params["param1"].ToString();
//var param2 = Request.Params["param2"].ToString();
//var param3 = Request.Params["param3"].ToString();
//var param4 = Request.Params["param4"].ToString();
//var param5 = Request.Params["param5"].ToString();
//var param6 = Request.Params["param6"].ToString();
try
{
LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
eSTP.Datas();
DataSet ds = new DataSet();
ds = eSTP.List2("LANDCOMP.D_REPORT", param1, "");
DataTable dt = new DataTable();
dt = ds.Tables[0];
for (int i = 0; i < dt.Rows.Count; i++)
{
output += (dt.Rows[i]["t_xmlxx"].ToString());
}
}
catch (Exception e)
{
output = e.Message;
}
return output;
}
示例2: Admin
private String Admin()
{
var Param1 = Request.Params["param1"].ToString();
var Param2 = Request.Params["param2"].ToString();
string output = "";
try
{
LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
eSTP.Datas();
DataSet ds = new DataSet();
ds = eSTP.List2("landcomp.C_ADMINS", Param1, Param2);
dt = ds.Tables[0];
for (int i = 0; i < dt.Rows.Count; i++)
{
output += dt.Rows[i]["namass"].ToString() + "|";
output += dt.Rows[i]["idents"].ToString() + "*";
}
dt.Dispose();
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
return output;
}
示例3: ServiceSelect
private bool ServiceSelect(string sm)
{
switch (sm)
{
case "L":
var param1L = Request.Params["param1"].ToString();
var param2L = Request.Params["param2"].ToString();
LANDCOMP.ExecuteSTP eSTP_L = new LANDCOMP.ExecuteSTP();
eSTP_L.Datas();
DataSet ds_L = new DataSet();
ds_L = eSTP_L.List2("P_HOME", param1L, param2L);
dt = ds_L.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>"); // Untuk Membuat Angka
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["MidentNamass"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["registNmrReg"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["pengtoNmrPid"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["negosiNmrNeg"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["visumsNovism"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["berks1NmrBr1"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["pmbyrnNmrByr"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["berks2NmrBr2"].ToString()) + "</cell>");
Response.Write("</row>");
}
Response.Write("</rows>");
dt.Dispose();
Response.End();
Response.End();
return false;
case "graph":
Response.ContentType = "application/xhtml+xml";
Response.Write(graphic());
Response.End();
return false;
break;
default:
Response.ContentType = "text/plain";
Response.End();
return true;
}
}