当前位置: 首页>>代码示例>>C#>>正文


C# ExecuteSTP.LMID方法代码示例

本文整理汇总了C#中LANDCOMP.ExecuteSTP.LMID方法的典型用法代码示例。如果您正苦于以下问题:C# ExecuteSTP.LMID方法的具体用法?C# ExecuteSTP.LMID怎么用?C# ExecuteSTP.LMID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在LANDCOMP.ExecuteSTP的用法示例。


在下文中一共展示了ExecuteSTP.LMID方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: 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 sql = "";
         String output = "";

         try
         {

             output = param1;

                 if (output == "I")
                 {

                     LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
                     eSTP.Datas();
                     DataSet ds = new DataSet();
                     ds = eSTP.LMID("P_MINDENT", "X", param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, param18, param19, param20, param21, param22, param23, param24, userid, param26);
                     dt = ds.Tables[0];

                         if (dt.Rows.Count > 0)
                         {
                             if (output == "I")
                                 output = "notambah";

                             return output;
                         }
                 }

             if (output == "I" || output == "E" || output == "D")
             //if (output == "E" || output == "D")
             {

                 LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
                 eSTP.Datas();
                 DataSet ds = new DataSet();
                 eSTP.save26("P_MINDENT", param1, param2, param3, param4, param5, param6, param7, param8, param9, param10, param11, param12, param13, param14, param15, param16, param17, param18, param19, param20, param21, param22, param23, param24, userid, param26);

                 return output;
             }

             //if (output == "I")
             //{

             //    LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
             //    eSTP.Datas();
             //    DataSet ds = new DataSet();
             //    eSTP.save26("P_MINDENT", "E", 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);

             //    return output;
             //}

             else
                 output = "gagal";
         }

         catch (Exception ex)
         {
             Response.Write(ex.Message);
             Response.End();
             return ex.Message;
         }

         return output;
    }
开发者ID:VikySihabudin,项目名称:Landai,代码行数:97,代码来源:MasterIdentitasForm.aspx.cs

示例2: 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.LMID("P_MINDENT", param1L, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");

                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]["MidentIdents"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["MidentNamass"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["MidentJnsKel"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["MidentTmplhr"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["MidentTglLhr"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["MidentStatus"].ToString()) + "</cell>");
                    if (groupsid == "Operator")
                    {
                        Response.Write("<cell>" + RemoveWhiteSpace("View^MasterIdentitasForm.aspx?rand=" + r.Next() + "&param1=F" + "&param2=" + dt.Rows[i]["MidentIdents"].ToString() + "") + "</cell>");
                    }
                    else
                    {
                        Response.Write("<cell>" + RemoveWhiteSpace("View^MasterIdentitasForm.aspx?rand=" + r.Next() + "&param1=F" + "&param2=" + dt.Rows[i]["MidentIdents"].ToString() + "") + "</cell>");
                        Response.Write("<cell>" + RemoveWhiteSpace("Edit^MasterIdentitasForm.aspx?rand=" + r.Next() + "&param1=E" + "&param2=" + dt.Rows[i]["MidentIdents"].ToString() + "") + "</cell>");
                        Response.Write("<cell>" + RemoveWhiteSpace("Delete^MasterIdentitasForm.aspx?rand=" + r.Next() + "&param1=D" + "&param2=" + dt.Rows[i]["MidentIdents"].ToString() + "") + "</cell>");
                        //Response.Write("<cell>" + RemoveWhiteSpace("Delete^javascript:Hapus(\"" + "D" + "\",\"" + "D" + "\",\"" + dt.Rows[i]["MidentIdents"].ToString() + "\",\"" + "\");^_self") + "</cell>");
                    }
                    Response.Write("</row>");
                }
                Response.Write("</rows>");

                dt.Dispose();

                Response.End();

                return false;

            //case "D":

            //    string param1D = Request.Params["param1"].ToString();
            //    string param2D = Request.Params["param2"].ToString();

            //    LANDCOMP.ExecuteSTP eSTP_D = new LANDCOMP.ExecuteSTP();
            //    eSTP_D.Datas();
            //    eSTP_D.LMID("P_MINDENT", param1D, param2D, "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");

            //    return false;

            default:
                Response.ContentType = "text/plain";
                Response.End();
                return true;
        }
    }
开发者ID:VikySihabudin,项目名称:Landai,代码行数:69,代码来源:MasterIdentitasList.aspx.cs


注:本文中的LANDCOMP.ExecuteSTP.LMID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。