本文整理汇总了C#中LANDCOMP.ExecuteSTP.List34方法的典型用法代码示例。如果您正苦于以下问题:C# ExecuteSTP.List34方法的具体用法?C# ExecuteSTP.List34怎么用?C# ExecuteSTP.List34使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LANDCOMP.ExecuteSTP
的用法示例。
在下文中一共展示了ExecuteSTP.List34方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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.List34("P_REGIST", 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>");
groupsid = Session["groups"].ToString();
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]["registNmrReg"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["penlapNmrPen"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["registAssign"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["registLanjut"].ToString()) + "</cell>");
if (dt.Rows[i]["registNmrReg"].ToString() != "")
{
Response.Write("<cell>" + RemoveWhiteSpace("View^RegistrasiForm.aspx?rand=" + r.Next() + "¶m1=V" + "¶m2=" + dt.Rows[i]["registNmrReg"].ToString() + "") + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace("Edit^RegistrasiForm.aspx?rand=" + r.Next() + "¶m1=E" + "¶m2=" + dt.Rows[i]["registNmrReg"].ToString() + "") + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace("Delete^RegistrasiForm.aspx?rand=" + r.Next() + "¶m1=D" + "¶m2=" + dt.Rows[i]["registNmrReg"].ToString() + "") + "</cell>");
}
Response.Write("</row>");
}
Response.Write("</rows>");
dt.Dispose();
Response.End();
Response.End();
return false;
default:
Response.ContentType = "text/plain";
Response.End();
return true;
}
}
示例2: ServiceSelect
private bool ServiceSelect(string sm)
{
switch (sm)
{
case "E":
Response.ContentType = "text/plain";
var param1 = Request.Params["param1"].ToString();
var param2 = Request.Params["param2"].ToString();
var param4 = Request.Params["param4"].ToString();
var param34 = Request.Params["param34"].ToString();
var param5 = Request.Params["param5"].ToString();
//var param17 = "hanny"; //session
var param32 = Session["userid"].ToString();
LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
eSTP.Datas();
DataSet ds = new DataSet();
ds = eSTP.List34("P_REGIST", param1, param2, "", param4, param5, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", param32, "", param34);
Response.End();
return false;
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.List34("P_REGIST", 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]["registNmrReg"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["penlapNmrPen"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["MidentNamass"].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(dt.Rows[i]["registAssign"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["Assign"].ToString()) + "</cell>");
Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["praregIdents"].ToString()) + "</cell>");
Response.Write("</row>");
}
Response.Write("</rows>");
dt.Dispose();
Response.End();
Response.End();
return false;
default:
Response.ContentType = "text/plain";
Response.End();
return true;
}
}
示例3: ServiceSelect
private bool ServiceSelect(string sm)
{
switch (sm)
{
case "V": // Untuk Menampilkan Data Form Registrasi
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.List34("P_REGIST", Param1, Param2, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
dt = ds.Tables[0];
Response.ContentType = "text/plain";
Response.Write(dt.Rows[0]["registNmrReg"].ToString() + "|"); //0
Response.Write(dt.Rows[0]["penlapNmrPen"].ToString() + "|"); //1
Response.Write(dt.Rows[0]["registIdents"].ToString() + "|"); //2
Response.Write(dt.Rows[0]["MidentNamass"].ToString() + "|"); //3
Response.Write(dt.Rows[0]["MidentIdents"].ToString() + "|"); //4
Response.Write(dt.Rows[0]["MidentNamass"].ToString() + "|"); //5
Response.Write(dt.Rows[0]["MidentJnsKel"].ToString() + "|"); //6
Response.Write(dt.Rows[0]["MidentTmplhr"].ToString() + "|"); //7
Response.Write(dt.Rows[0]["MidentTgllhr"].ToString() + "|"); //8
Response.Write(dt.Rows[0]["MidentPekerj"].ToString() + "|"); //9
Response.Write(dt.Rows[0]["MidentNmrPeg"].ToString() + "|"); //10
Response.Write(dt.Rows[0]["MidentAlamat"].ToString() + "|"); //11
Response.Write(dt.Rows[0]["MidentJnsIdn"].ToString() + "|"); //12
Response.Write(dt.Rows[0]["MidentNmrHps"].ToString() + "|"); //13
Response.Write(dt.Rows[0]["MidentStatus"].ToString() + "|"); //14
Response.Write(dt.Rows[0]["MidentNmPsng"].ToString() + "|"); //15
Response.Write(dt.Rows[0]["MidentTmpPas"].ToString() + "|"); //16
Response.Write(dt.Rows[0]["MidentTglPas"].ToString() + "|"); //17
Response.Write(dt.Rows[0]["MidentThnNkh"].ToString() + "|"); //18
Response.Write(dt.Rows[0]["registTy1Sts"].ToString() + "|"); //19
Response.Write(dt.Rows[0]["registTy1Sts"].ToString() + "|"); //20
Response.Write(dt.Rows[0]["registTy2Jml"].ToString() + "|"); //21
Response.Write(dt.Rows[0]["registTy2Sts"].ToString() + "|"); //22
Response.Write(dt.Rows[0]["registAlshak"].ToString() + "|"); //23
Response.Write(dt.Rows[0]["registSHMsss"].ToString() + "|"); //24
Response.Write(dt.Rows[0]["registSHMNmr"].ToString() + "|"); //25
Response.Write(dt.Rows[0]["registSKTsss"].ToString() + "|"); //26
Response.Write(dt.Rows[0]["registSKTNmr"].ToString() + "|"); //27
Response.Write(dt.Rows[0]["registTahuns"].ToString() + "|"); //28
Response.Write(dt.Rows[0]["praregLokkab"].ToString() + "|"); //29
Response.Write(dt.Rows[0]["praregLokkec"].ToString() + "|"); //30
Response.Write(dt.Rows[0]["praregLokdes"].ToString() + "|"); //31
Response.Write(dt.Rows[0]["registLuasss"].ToString() + "|"); //32
Response.Write(dt.Rows[0]["registBtsutr"].ToString() + "|"); //33
Response.Write(dt.Rows[0]["registBtsslt"].ToString() + "|"); //34
Response.Write(dt.Rows[0]["registBtstmr"].ToString() + "|"); //35
Response.Write(dt.Rows[0]["registBtsbrt"].ToString() + "|"); //36
Response.Write(dt.Rows[0]["registTy3Sts"].ToString() + "|"); //37
Response.Write(dt.Rows[0]["registTy3Thn"].ToString() + "|"); //38
Response.Write(dt.Rows[0]["registTy4Sts"].ToString() + "|"); //39
Response.Write(dt.Rows[0]["registTy4Thn"].ToString() + "|"); //40
Response.Write(dt.Rows[0]["registTy5Sts"].ToString() + "|"); //41
Response.Write(dt.Rows[0]["registTy5Thn"].ToString() + "|"); //42
Response.Write(dt.Rows[0]["registKtergn"].ToString() + "|"); //43
Response.Write(dt.Rows[0]["registEkspsi"].ToString() + "|"); //44
Response.Write(dt.Rows[0]["registLanjut"].ToString() + "|"); //45
Response.Write(dt.Rows[0]["registKeteks"].ToString() + "|"); //46
dt.Dispose();
Response.End();
Response.End();
return false;
case "cek":
var Param1x = Request.Params["param1"].ToString();
var Param2x = Request.Params["param2"].ToString();
LANDCOMP.ExecuteSTP eSTPx = new LANDCOMP.ExecuteSTP();
eSTPx.Datas();
DataSet dsx = new DataSet();
dsx = eSTPx.List34("P_REGIST", Param1x, "", "", "", "", "", "", "", "", "", "", Param2x , "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
dt = dsx.Tables[0];
Response.ContentType = "text/plain";
Response.Write(dt.Rows[0]["duplikat"].ToString() + "|"); //0
Response.Write(dt.Rows[0]["registNmrReg"].ToString() + "|"); //1
dt.Dispose();
Response.End();
return false;
case "LAN":
var param1LAN = Request.Params["param1"].ToString();
var param2LAN = Request.Params["param2"].ToString();
LANDCOMP.ExecuteSTP eSTP_LAN = new LANDCOMP.ExecuteSTP();
eSTP_LAN.Datas();
//.........这里部分代码省略.........
示例4: 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 param10 = ""; if (Request.Params["param10"] is object) param10 = Request.Params["param10"].ToString();
String param11 = ""; if (Request.Params["param11"] is object) param11 = Request.Params["param11"].ToString();
String param12 = ""; if (Request.Params["param12"] is object) param12 = Request.Params["param12"].ToString();
String param13 = ""; if (Request.Params["param13"] is object) param13 = Request.Params["param13"].ToString();
String param14 = ""; if (Request.Params["param14"] is object) param14 = Request.Params["param14"].ToString();
String param15 = ""; if (Request.Params["param15"] is object) param15 = Request.Params["param15"].ToString();
String param16 = ""; if (Request.Params["param16"] is object) param16 = Request.Params["param16"].ToString();
String param17 = ""; if (Request.Params["param17"] is object) param17 = Request.Params["param17"].ToString();
String param18 = ""; if (Request.Params["param18"] is object) param18 = Request.Params["param18"].ToString();
String param19 = ""; if (Request.Params["param19"] is object) param19 = Request.Params["param19"].ToString();
String param20 = ""; if (Request.Params["param20"] is object) param20 = Request.Params["param20"].ToString();
String param21 = ""; if (Request.Params["param21"] is object) param21 = Request.Params["param21"].ToString();
String param22 = ""; if (Request.Params["param22"] is object) param22 = Request.Params["param22"].ToString();
String param23 = ""; if (Request.Params["param23"] is object) param23 = Request.Params["param23"].ToString();
String param24 = ""; if (Request.Params["param24"] is object) param24 = Request.Params["param24"].ToString();
String param25 = ""; if (Request.Params["param25"] is object) param25 = Request.Params["param25"].ToString();
String param26 = ""; if (Request.Params["param26"] is object) param26 = Request.Params["param26"].ToString();
String param27 = ""; if (Request.Params["param27"] is object) param27 = Request.Params["param27"].ToString();
String param28 = ""; if (Request.Params["param28"] is object) param28 = Request.Params["param28"].ToString();
String param29 = ""; if (Request.Params["param29"] is object) param29 = Request.Params["param29"].ToString();
String param30 = ""; if (Request.Params["param30"] is object) param30 = Request.Params["param30"].ToString();
String param31 = ""; if (Request.Params["param31"] is object) param31 = Request.Params["param31"].ToString();
String param32 = ""; if (Request.Params["param32"] is object) param32 = Request.Params["param32"].ToString();
String param33 = ""; if (Request.Params["param33"] is object) param33 = Request.Params["param33"].ToString();
String param34 = ""; if (Request.Params["param34"] is object) param34 = Request.Params["param34"].ToString();
//String sql = "";
String output = "";
try
{
output = param1;
if (output == "E" || output == "D" || output == "A")
{
LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
eSTP.Datas();
DataSet ds = new DataSet();
ds = eSTP.List34("P_REGIST", "X", param2, "","", "", "", "", "", "", "", "", "", "", "","", "", "", "", "", "", "", "", "","","","","", "", "", "","","","","");
dt = ds.Tables[0];
if (dt.Rows.Count > 0)
{
if (output == "E")
output = "noedit";
if (output == "D")
output = "nodelete";
if (output == "A")
output = "noadd";
return output;
}
}
if (output == "E" || output == "D" || output == "A")
{
LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
eSTP.Datas();
DataSet ds = new DataSet();
eSTP.save34("P_REGIST", param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, param18, param19, param20, param21, param22, param23, param24, param25, param26, param27, param28, param29, param30, param31, userid, param33, param34);
return output;
}
else
output = "gagal";
}
catch (Exception ex)
{
Response.Write(ex.Message);
Response.End();
return ex.Message;
}
return output;
}