private bool ServiceSelect(string sm) { switch (sm) { case "LC": var param1x = Request.Params["param1"].ToString(); ALMIS.ExecuteSTP eSTP_L = new ALMIS.ExecuteSTP(); eSTP_L.Datas(); DataSet ds_L = new DataSet(); ds_L = eSTP_L.List5("P_REQUES_D", param1x, "", "", "", ""); 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]["perusaIdents"].ToString()) + "</cell>"); Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["perusaNamass"].ToString()) + "</cell>"); Response.Write("</row>"); } Response.Write("</rows>"); dt.Dispose(); Response.End(); return false; case "LB": var param1= Request.Params["param1"].ToString(); ALMIS.ExecuteSTP eSTP_Lx = new ALMIS.ExecuteSTP(); eSTP_Lx.Datas(); DataSet ds_Lx = new DataSet(); ds_Lx = eSTP_Lx.List5("P_REQUES_D", param1, "", "", "", ""); dt = ds_Lx.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]["UserssIDents"].ToString()) + "</cell>"); Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["UserssNamess"].ToString()) + "</cell>"); Response.Write("</row>"); } Response.Write("</rows>"); dt.Dispose(); Response.End(); return false; case "LD": var param1d = Request.Params["param1"].ToString(); ALMIS.ExecuteSTP eSTP_Lxd = new ALMIS.ExecuteSTP(); eSTP_Lxd.Datas(); DataSet ds_Lxd = new DataSet(); ds_Lxd = eSTP_Lxd.List5("P_REQUES_D", param1d, "", "", "", ""); dt = ds_Lxd.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]["perusaIdents"].ToString()) + "</cell>"); Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["perusaNamass"].ToString()) + "</cell>"); Response.Write("</row>"); } Response.Write("</rows>"); dt.Dispose(); Response.End(); return false; case "LP": var param1p = Request.Params["param1"].ToString(); ALMIS.ExecuteSTP eSTP_Lxp = new ALMIS.ExecuteSTP(); eSTP_Lxp.Datas(); DataSet ds_Lxp = new DataSet(); ds_Lxp = eSTP_Lxp.List5("P_REQUES_D", param1p, "", "", "", ""); dt = ds_Lxp.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]["UserssIDents"].ToString()) + "</cell>"); Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["UserssNamess"].ToString()) + "</cell>"); Response.Write("</row>"); } Response.Write("</rows>"); dt.Dispose(); Response.End(); return false; case "LA": var param1a = Request.Params["param1"].ToString(); ALMIS.ExecuteSTP eSTP_Lxa = new ALMIS.ExecuteSTP(); eSTP_Lxa.Datas(); DataSet ds_Lxa = new DataSet(); ds_Lxa = eSTP_Lxa.List5("P_REQUES_D", param1a, "", "", "", ""); dt = ds_Lxa.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]["UserssIDents"].ToString()) + "</cell>"); Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["UserssNamess"].ToString()) + "</cell>"); Response.Write("</row>"); } Response.Write("</rows>"); dt.Dispose(); Response.End(); return false; case "LPA": var param1pa = Request.Params["param1"].ToString(); ALMIS.ExecuteSTP eSTP_Lxpa = new ALMIS.ExecuteSTP(); eSTP_Lxpa.Datas(); DataSet ds_Lxpa = new DataSet(); ds_Lxpa = eSTP_Lxpa.List5("P_REQUES_D", param1pa, "", "", "", ""); dt = ds_Lxpa.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]["UserssIDents"].ToString()) + "</cell>"); Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["UserssNamess"].ToString()) + "</cell>"); Response.Write("</row>"); } Response.Write("</rows>"); dt.Dispose(); Response.End(); return false; case "LPM": var param1pm = Request.Params["param1"].ToString(); ALMIS.ExecuteSTP eSTP_Lxpm = new ALMIS.ExecuteSTP(); eSTP_Lxpm.Datas(); DataSet ds_Lxpm = new DataSet(); ds_Lxpm = eSTP_Lxpm.List5("P_REQUES_D", param1pm, "", "", "", ""); dt = ds_Lxpm.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]["UserssIDents"].ToString()) + "</cell>"); Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["UserssNamess"].ToString()) + "</cell>"); Response.Write("</row>"); } Response.Write("</rows>"); dt.Dispose(); Response.End(); return false; case "LDH": var param1dh = Request.Params["param1"].ToString(); ALMIS.ExecuteSTP eSTP_Lxdh = new ALMIS.ExecuteSTP(); eSTP_Lxdh.Datas(); DataSet ds_Lxdh = new DataSet(); ds_Lxdh = eSTP_Lxdh.List5("P_REQUES_D", param1dh, "", "", "", ""); dt = ds_Lxdh.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]["UserssIDents"].ToString()) + "</cell>"); Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["UserssNamess"].ToString()) + "</cell>"); Response.Write("</row>"); } Response.Write("</rows>"); dt.Dispose(); Response.End(); return false; case "LOD": var param1od = Request.Params["param1"].ToString(); ALMIS.ExecuteSTP eSTP_Lxod = new ALMIS.ExecuteSTP(); eSTP_Lxod.Datas(); DataSet ds_Lxod = new DataSet(); ds_Lxod = eSTP_Lxod.List5("P_REQUES_D", param1od, "", "", "", ""); dt = ds_Lxod.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]["UserssIDents"].ToString()) + "</cell>"); Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["UserssNamess"].ToString()) + "</cell>"); Response.Write("</row>"); } Response.Write("</rows>"); dt.Dispose(); Response.End(); return false; case "CRUD": Response.ContentType = "text/plain"; Response.Write(CRUD()); Response.End(); return false; default: Response.ContentType = "text/plain"; Response.End(); return true; } }