本文整理汇总了C#中LANDCOMP.ExecuteSTP.select9方法的典型用法代码示例。如果您正苦于以下问题:C# ExecuteSTP.select9方法的具体用法?C# ExecuteSTP.select9怎么用?C# ExecuteSTP.select9使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LANDCOMP.ExecuteSTP
的用法示例。
在下文中一共展示了ExecuteSTP.select9方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ServiceSelect
private bool ServiceSelect(string sm)
{
switch (sm)
{
case "L":
var param1L = Request.Params["param1"].ToString();
var param2L = Request.Params["param2"].ToString();
var param4L = Request.Params["param4"].ToString();
var param5L = Request.Params["param5"].ToString();
LANDCOMP.ExecuteSTP eSTP_L = new LANDCOMP.ExecuteSTP();
eSTP_L.Datas();
DataSet ds_L = new DataSet();
ds_L = eSTP_L.select9("P_PRAREG", param1L, param2L, "", param4L, param5L, "", "", "", "");
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]["praregNmrPra"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["MidentIdents"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["MidentNamass"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["praregLokkab"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["praregLokkec"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["praregLokdes"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace("View^PraregistrasiForm.aspx?rand=" + r.Next() + "¶m1=V" + "¶m2=" + dt.Rows[i]["praregNmrPra"].ToString() + "") + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace("Edit^PraregistrasiForm.aspx?rand=" + r.Next() + "¶m1=E" + "¶m2=" + dt.Rows[i]["praregNmrPra"].ToString() + "") + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace("Delete^PraregistrasiForm.aspx?rand=" + r.Next() + "¶m1=D" + "¶m2=" + dt.Rows[i]["praregNmrPra"].ToString() + "") + "</cell>");
Response.Write("</row>");
}
Response.Write("</rows>");
dt.Dispose();
Response.End();
return false;
default:
Response.ContentType = "text/plain";
Response.End();
return true;
}
}
示例2: ServiceSelect
private bool ServiceSelect(string sm)
{
switch (sm)
{
case "select":
var Param1 = Request.Params["param1"].ToString();
var Param2 = Request.Params["param2"].ToString();
LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
eSTP.Datas();
DataSet ds = new DataSet();
ds = eSTP.select9("landcomp.P_PRAREG", Param1, Param2, "", "", "", "", "", "","");
dt = ds.Tables[0];
Response.ContentType = "text/plain";
Response.Write(dt.Rows[0]["praregNmrPra"].ToString() + "|"); //0
Response.Write(dt.Rows[0]["praregIdents"].ToString() + "|"); //1
Response.Write(dt.Rows[0]["MidentNamass"].ToString() + "|"); //2
Response.Write(dt.Rows[0]["MidentJnsKel"].ToString() + "|"); //3
Response.Write(dt.Rows[0]["MidentTmplhr"].ToString() + "|"); //4
Response.Write(dt.Rows[0]["MidentTgllhr"].ToString() + "|"); //5
Response.Write(dt.Rows[0]["MidentPekerj"].ToString() + "|"); //6
Response.Write(dt.Rows[0]["MidentAlamat"].ToString() + "|"); //7
Response.Write(dt.Rows[0]["MidentNmrHps"].ToString() + "|"); //8
Response.Write(dt.Rows[0]["MidentJnsIdn"].ToString() + "|"); //9
Response.Write(dt.Rows[0]["praregLokkab"].ToString() + "|"); //10
Response.Write(dt.Rows[0]["praregLokkec"].ToString() + "|"); //11
Response.Write(dt.Rows[0]["praregLokdes"].ToString() + "|"); //12
Response.Write(dt.Rows[0]["praregLanjut"].ToString() + "|"); //13
dt.Dispose();
Response.End();
Response.End();
return false;
case "Save":
Response.ContentType = "text/plain";
Response.Write(Save());
Response.End();
return false;
case "Delete":
Response.ContentType = "text/plain";
Response.Write(Delete());
Response.End();
return false;
case "dd":
Response.ContentType = "text/plain";
Response.Write(Admin());
Response.End();
return false;
default:
Response.ContentType = "text/plain";
Response.End();
return true;
}
}
示例3: Save
private String Save()
{
if (Session["userid"] is object)
{
userid = Session["userid"].ToString();
}
String param1 = ""; if (Request.Params["param1"] is object) param1 = Request.Params["param1"].ToString();
String param2 = ""; if (Request.Params["param2"] is object) param2 = Request.Params["param2"].ToString();
String param3 = ""; if (Request.Params["param3"] is object) param3 = Request.Params["param3"].ToString();
String param4 = ""; if (Request.Params["param4"] is object) param4 = Request.Params["param4"].ToString();
String param5 = ""; if (Request.Params["param5"] is object) param5 = Request.Params["param5"].ToString();
String param6 = ""; if (Request.Params["param6"] is object) param6 = Request.Params["param6"].ToString();
String param7 = ""; if (Request.Params["param7"] is object) param7 = Request.Params["param7"].ToString();
String param8 = ""; if (Request.Params["param8"] is object) param8 = Request.Params["param8"].ToString();
String param9 = ""; if (Request.Params["param9"] is object) param9 = Request.Params["param9"].ToString();
String sql = "";
String output = "";
try
{
output = param1;
if (Session["groups"] is object)
{
groups = Session["groups"].ToString();
}
if (groups.ToString() != "1" )
{
if (output == "E")
{
LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
eSTP.Datas();
DataSet ds = new DataSet();
ds = eSTP.select9("[landcomp].[P_SRHTRM]", "X", param2, param3, param4, param5, param6, userid, groups, param9);
dt = ds.Tables[0];
if (dt.Rows.Count == 0)
{
output = "X";
return output;
}
}
}
if (output == "E" || output == "D" || output == "A" || output == "I")
{
LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
eSTP.Datas();
DataSet ds = new DataSet();
eSTP.save9("[landcomp].[P_SRHTRM]", param1, param2, param3, userid, param5, param6, userid, groups, param9);
return output;
}
else
output = "gagal";
}
catch (Exception ex)
{
Response.Write(ex.Message);
Response.End();
return ex.Message;
}
return output;
}