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;    

  • 相关阅读:
    AttributeUsage属性
    LINQ基本子句
    js 变动首页参与人数
    C#控件的闪烁问题解决方法总结
    AttributeUsage
    MVC3 js+flash图片滚动
    通过写后台权限领悟到的东西
    删除同辈元素并添加指定元素的类
    JS产生两个数之间的随机数
    Web Service 学习笔记
  • 原文地址:https://www.cnblogs.com/simhare/p/888875.html
Copyright © 2011-2022 走看看