zoukankan      html  css  js  c++  java
  • 综合

     public void GetAllInfoRead()
        
    {
            SqlConnection conn 
    = new SqlConnection(pubfunc.sConn);
            
    string container = Request.QueryString["containerID"].ToString();
            System.Guid guid 
    = new System.Guid(container);
            SqlCommand com 
    = new SqlCommand();
            com.Connection 
    = conn;
            SqlParameter containerId 
    = com.Parameters.Add("@id", SqlDbType.UniqueIdentifier, 50);
            containerId.Value 
    = guid;
            com.CommandText 
    = "sp_job_selectjobsecontainer";
            com.CommandType 
    = CommandType.StoredProcedure;
            conn.Open();
            SqlDataReader sdr 
    = com.ExecuteReader();
            
    if (sdr.Read())
            
    {
                SetListSelected(sdr[
    "consize"].ToString());
                TextBox2.Text
    =sdr["conno"].ToString ();
                TextBox3.Text 
    = sdr["sealno"].ToString();
                TextBox4.Text
    =sdr["billno"].ToString ();
            }

            conn.Close();
        }



    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go

    ALTER proc [dbo].[sp_job_selectjobsecontainer](@id UniqueIdentifier)
    as
    begin
        
    select * from job_se_container where id=@id;
    end;    

  • 相关阅读:
    js中==与===区别
    Initialization failure 0x0000000c
    Spring通过@Value注解注入属性的几种方式
    java中读取配置文件中数据的具体方法
    spring整合hibernate
    url上参数解析笔记
    编号的生成(日期+序列号)
    application.xml & -servlet.xml
    webApplicationContext 与servletContext
    Http协议整理
  • 原文地址:https://www.cnblogs.com/simhare/p/888875.html
Copyright © 2011-2022 走看看