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


C# ExecuteSTP.save9方法代码示例

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


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

示例1: Save

    private String Save()
    {
        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) param8 = Request.Params["param9"].ToString();

        String sql = "";
        String output = "";

        try
        {

            output = param1;

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

                LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
                eSTP.Datas();
                DataSet ds = new DataSet();
                eSTP.save9("P_PRAREG", param1, param2, param3, param4, param5, param6, param7, param8, param9);

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

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

示例2: Delete

    private String Delete()
    {
        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) param8 = Request.Params["param9"].ToString();

        String sql = "";
        String output = "";

        try
        {

            output = param1;

            if (output == "I" || output == "E" || output == "D")
            {
                LANDCOMP.ExecuteSTP eSTP = new LANDCOMP.ExecuteSTP();
                eSTP.Datas();
                DataSet ds = new DataSet();
                ds = eSTP.List9("P_PRAREG", "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;
                }

                eSTP.Datas();
                eSTP.save9("P_PRAREG", param1, param2, param3, param4, param5, param6, param7, param8, param9);

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

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

示例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;
    }
开发者ID:VikySihabudin,项目名称:Landai,代码行数:73,代码来源:SerahTerimaBerkas.aspx.cs

示例4: 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.List9("P_NEGOSI_D", param1L, param2L, "", "", "", "", "", "", "");
                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]["negosiDatess"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["negosiObjeks"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["negosiLuasss"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["negosiHMinta"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["negosiJHMinta"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["negosiHTawar"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["negosiJHTawar"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["Selisih"].ToString()) + "</cell>");
                    Response.Write("<cell>" + RemoveWhiteSpace(dt.Rows[i]["negosiSequen"].ToString()) + "</cell>");
                    Response.Write("</row>");
                }
                Response.Write("</rows>");
                dt.Dispose();

                Response.End();
                Response.End();
                return false;

            case "V":
                Response.ContentType = "text/plain";
                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.List13("P_NEGOSI", Param1, Param2, "", "", "", "", "", "", "", "", "", "", "");

                dt = ds.Tables[0];

                Response.ContentType = "text/plain";
                Response.Write(dt.Rows[0]["negosiNmrNeg"].ToString() + "|"); //0
                Response.Write(dt.Rows[0]["registNmrReg"].ToString() + "|"); //1
                Response.Write(dt.Rows[0]["pengtoNmrPid"].ToString() + "|"); //2
                Response.Write(dt.Rows[0]["negosiKetrgn"].ToString() + "|"); //3
                Response.Write(dt.Rows[0]["negosiSepakt"].ToString() + "|"); //4
                Response.Write(dt.Rows[0]["negosiSKGR"].ToString() + "|"); //5
                Response.Write(dt.Rows[0]["negosiKetEks"].ToString() + "|"); //6
                Response.Write(dt.Rows[0]["negosiEkseps"].ToString() + "|"); //7
                Response.Write(dt.Rows[0]["minta"].ToString() + "|"); //8
                Response.Write(dt.Rows[0]["tawar"].ToString() + "|"); //9
                Response.Write(dt.Rows[0]["tglNego"].ToString() + "|"); //10

                dt.Dispose();
                Response.End();
                Response.End();
                return false;

            case "I":

                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 = "";

                LANDCOMP.ExecuteSTP eSTP_IA = new LANDCOMP.ExecuteSTP();
                eSTP_IA.Datas();
                eSTP_IA.save9("P_NEGOSI_D", param1, param2, param3, param4, param5, param6, param7, param8, param9);

                return false;

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

            default:
                Response.ContentType = "text/plain";
                Response.End();
                return true;
//.........这里部分代码省略.........
开发者ID:VikySihabudin,项目名称:Landai,代码行数:101,代码来源:NegosiasiForm.aspx.cs

示例5: ServiceSelect


//.........这里部分代码省略.........

                dt = ds_LH.Tables[0];

                Response.ContentType = "text/plain";
                Response.Write(dt.Rows[0]["minta"].ToString() + "|"); //8
                Response.Write(dt.Rows[0]["tawar"].ToString() + "|"); //9
                dt.Dispose();

                Response.End();

                return false;

            case "NK":
                var Param2dd = Request.Params["param2"].ToString();

                query = @"SELECT DISTINCT negosiNegoKe
                            FROM NEGOSI_D a
                            INNER JOIN NEGOSI b
                            ON a.negosiNmrNeg = b.negosiNmrNeg
                            WHERE b.negosiNmrNeg = '" + Param2dd + "'";
                dt = getDataTable(query);
                if (dt.Rows.Count > 0)
                {
                    ddNegosiasi.Items.Clear();
                    for (int i = 0; i < dt.Rows.Count; i++)
                    {
                        ddNegosiasi.Items.Add(new ListItem(dt.Rows[i]["negosiNegoKe"].ToString(), dt.Rows[i]["negosiNegoKe"].ToString()));
                    }
                }
                dt.Dispose();

                return false;

            case "V":

                Response.ContentType = "text/plain";
                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.List13("P_NEGOSI", Param1, Param2, "", "", "", "", "", "", "", "", "", "", "");

                dt = ds.Tables[0];

                Response.ContentType = "text/plain";
                Response.Write(dt.Rows[0]["negosiNmrNeg"].ToString() + "|"); //0
                Response.Write(dt.Rows[0]["registNmrReg"].ToString() + "|"); //1
                Response.Write(dt.Rows[0]["pengtoNmrPid"].ToString() + "|"); //2
                Response.Write(dt.Rows[0]["negosiKetrgn"].ToString() + "|"); //3
                Response.Write(dt.Rows[0]["negosiSepakt"].ToString() + "|"); //4
                Response.Write(dt.Rows[0]["negosiSKGR"].ToString() + "|"); //5
                Response.Write(dt.Rows[0]["negosiKetEks"].ToString() + "|"); //6
                Response.Write(dt.Rows[0]["negosiEkseps"].ToString() + "|"); //7
                Response.Write(dt.Rows[0]["minta"].ToString() + "|"); //8
                Response.Write(dt.Rows[0]["tawar"].ToString() + "|"); //9
                Response.Write(dt.Rows[0]["tglNego"].ToString() + "|"); //10
                Response.Write(dt.Rows[0]["negosiNegoKe"].ToString() + "|"); //11

                //isiNegoKe();

                dt.Dispose();

                Response.End();

                return false;

            case "I":

                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 = "";

                LANDCOMP.ExecuteSTP eSTP_IA = new LANDCOMP.ExecuteSTP();
                eSTP_IA.Datas();
                eSTP_IA.save9("P_NEGOSI_D", param1, param2, param3, param4, param5, param6, param7, param8, param9);

                return false;

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

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


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