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


C# ExecuteSTP.save7方法代码示例

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


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

示例1: ServiceSelect


//.........这里部分代码省略.........
                        type = "image/PNG";
                        break;
                    case ".tif":
                        type = "image/tif";
                        break;
                }

                Response.AddHeader("content-disposition", "attachment;filename=" + namafile + "");
                Response.ContentType = type;

                Response.WriteFile(Server.MapPath(@"~/uploaddocument/" + Request.Params["namafile"].ToString().Replace("&", "&")));

                Response.End();
                return false;

            case "SaveUploadRegistrasi":
                Response.ContentType = "text/plain";
                Response.Write(SaveUploadRegistrasi());
                Response.End();
                return false;

            case "IA":

                string param1IA = Request.Params["param1"].ToString();
                string param2IA = Request.Params["param2"].ToString();
                //string param3IA = Request.Params["param3"].ToString();
                string param4IA = Request.Params["param4"].ToString();
                string param5IA = Request.Params["param5"].ToString();
                string param6IA = Request.Params["param6"].ToString();
                string param7IA = Request.Params["param7"].ToString();

                LANDCOMP.ExecuteSTP eSTP_IA = new LANDCOMP.ExecuteSTP();
                eSTP_IA.Datas();
                eSTP_IA.save7("P_MINDENT_A", param1IA, param2IA, "", param4IA, param5IA, param6IA, param7IA);

                return false;

            case "IS":

                string param1IS = Request.Params["param1"].ToString();
                string param2IS = Request.Params["param2"].ToString();
                //string param3IS = Request.Params["param3"].ToString();
                string param4IS = Request.Params["param4"].ToString();
                string param5IS = Request.Params["param5"].ToString();
                string param6IS = Request.Params["param6"].ToString();
                string param7IS = Request.Params["param7"].ToString();

                LANDCOMP.ExecuteSTP eSTP_IS = new LANDCOMP.ExecuteSTP();
                eSTP_IS.Datas();
                eSTP_IS.save7("P_MINDENT_S", param1IS, param2IS, "", param4IS, param5IS, param6IS, param7IS);

                return false;

            case "DA":

                string param1DA = Request.Params["param1"].ToString();
                string param2DA = Request.Params["param2"].ToString();
                string param3DA = Request.Params["param3"].ToString();

                LANDCOMP.ExecuteSTP eSTP_DA = new LANDCOMP.ExecuteSTP();
                eSTP_DA.Datas();
                eSTP_DA.save7("P_MINDENT_A", param1DA, param2DA, param3DA, "", "", "", "");

                return false;

            case "DS":
开发者ID:VikySihabudin,项目名称:Landai,代码行数:67,代码来源:MasterIdentitasForm.aspx.cs

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

        try
        {

            output = param1;

            if (output == "A")
            {
                LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
                eSTP.Datas();
                DataSet ds = new DataSet();
                ds = eSTP.List13("P_PENLAP", "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" || output == "I")
            {
                LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
                eSTP.Datas();
                DataSet ds = new DataSet();

                eSTP.save7("P_PERUSA", param1, param2, param3, param4, param5, userid, param7);

                return output;
            }

            else
                output = "gagal";
        }
        catch (Exception ex)
        {
            Response.Write(ex.Message);
            Response.End();
            return ex.Message;
        }

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

示例3: SaveDetail

    private String SaveDetail()
    {
        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();

        try
        {

                LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
                eSTP.Datas();
                DataSet ds = new DataSet();
                eSTP.save7("P_PENGTO_D", param1, param2, param3, param4, param5, param6, param7);

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

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


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