书签 分享 收藏 举报 版权申诉 / 31

类型合同管理系统课程设计.docx

  • 文档编号:7521048
  • 上传时间:2023-01-24
  • 格式:DOCX
  • 页数:31
  • 大小:3.07MB

247px"colspan="3">

GridViewID="GridView1"runat="server"AllowPaging="True"AllowSorting="True"AutoGenerateColumns="False"Height="400px"Width="682px"DataKeyNames="NUM"DataSourceID="SqlDataSource1"OnSelectedIndexChanged="GridView1_SelectedIndexChanged">

CommandFieldShowDeleteButton="True"ShowEditButton="True"/>

BoundFieldDataField="Num"HeaderText="合同编号"ReadOnly="True"SortExpression="Num"/>

BoundFieldDataField="Pnum"HeaderText="产品代码"SortExpression="Pnum"/>

BoundFieldDataField="Price"HeaderText="单价"SortExpression="Price"/>

BoundFieldDataField="Count"HeaderText="数量"SortExpression="Count"/>

BoundFieldDataField="Factory"HeaderText="供货单位"SortExpression="Factory"/>

BoundFieldDataField="Fday"HeaderText="发货日期"SortExpression="Fday"/>

BoundFieldDataField="Day"HeaderText="签定日期"SortExpression="Day"/>

GridView>

SqlDataSourceID="SqlDataSource1"runat="server"ConnectionString="<%$ConnectionStrings:

ConnectionString4%>"

ProviderName="<%$ConnectionStrings:

ConnectionString4.ProviderName%>"SelectCommand="SELECTNum,Pnum,Price,Count,Factory,Fday,DayFROMHetong"DeleteCommand="DELETEFROMHetongWHERE(NUM=:

num)"UpdateCommand="UPDATEHetongSETNUM=:

num,Pnum=:

Pnum,Price=:

Price,Count=:

Count,Factory=:

Factory,Fday=:

Fday,Day=:

DayWHERE(NUM=:

num)">

ParameterName="Num"/>

ParameterName="Num"/>

ParameterName="Pnum"/>

ParameterName="Price"/>

ParameterName="Count"/>

ParameterName="Factory"/>

ParameterName="Fday"/>

ParameterName="Day"/>

SqlDataSource>

        

  

LinkButtonID="lbtnIns"runat="server"OnClick="lbtnIns_Click1"PostBackUrl="~/add.aspx">插入记录

LinkButton>

       

LinkButtonID="LinkButton1"runat="server"PostBackUrl="~/search.aspx"OnClick="LinkButton1_Click">查询记录

LinkButton> 


  

LinkButtonID="LinkButton2"runat="server"OnClick="LinkButton2_Click"Width="64px">供货单位信息管理

LinkButton>

       

LinkButtonID="LinkButton3"runat="server"OnClick="LinkButton3_Click"Width="64px">产品信息管理

LinkButton>

//插入功能的实现代码

无标题页

center">


16pt">

添加记录

330px;height:

362px">

94px">

    合同编号

40px">

TextBoxID="txtNo"runat="server">

TextBox>

94px">

    产品代码

40px">

TextBoxID="TextBox2"runat="server">

TextBox>

94px">

单价

40px">

TextBoxID="TextBox3"runat="server">

TextBox>

94px;height:

22px">

数量

22px;width:

40px;">

TextBoxID="TextBox4"runat="server">

TextBox>

94px">

 供货单位

40px">

TextBoxID="TextBox5"runat="server">

TextBox>

94px;height:

13px;">

发货日期

40px;height:

13px">

TextBoxID="TextBox6"runat="server">

TextBox>

94px;height:

13px">

签定日期

40px;height:

13px">

TextBoxID="TextBox7"runat="server">

TextBox>

94px;height:

13px">

   

ButtonID="btnSubmit"runat="server"Text="添加"OnClick="btnSubmit_Click1"/>

40px;height:

13px">

ButtonID="btnBack"runat="server"Text="返回"OnClick="btnBack_Click1"/> 

 

//添加功能的实现

publicpartialclassadd:

System.Web.UI.Page

{

protectedvoidPage_Load(objectsender,EventArgse)

{

this.Title="添加记录";

txtNo.Focus();

}

protectedvoidbtnBack_Click1(objectsender,EventArgse)

{

Response.Redirect("default.aspx");

}

protectedvoidbtnSubmit_Click1(objectsender,EventArgse)

{OracleConnectionconn=newOracleConnection("Data

Source=orcl;User

ID=system;password=xiao871112;Unicode=True");

stringstrVal=txtNo.Text+"','"+TextBox2.Text

 

+"','"+TextBox3.Text+"','"+TextBox4.Text+"','"+

TextBox5.Text+"','"+TextBox6.Text+"','"+TextBox7.Text;

stringstrIns="insertintohetong(Num,Pnum,Count,Price,Factory,Fday,Day)values('"+strVal+"')";

OracleCommandinsCom=newOracleCommand(strIns,conn);

conn.Open();

Int32n=insCom.ExecuteNonQuery();

if(n>0)

{

Response.Write("alert('添加成功!

');");

}

conn.Close();

OracleConnectionconn1=newOracleConnection("DataSource=orcl;UserID=system;password=xiao871112;Unicode=True");

stringstrFac=TextBox5.Text;

stringstrIns1="insertintocom(Factory)values('"+strFac+"')";

OracleCommandinsCom1=newOracleCommand(strIns1,

 

conn1);

conn1.Open();

Int32m=insCom1.ExecuteNonQuery();

if(m>0)

{

Response.Write("alert('添加成功!

');");

}

conn1.Close();

OracleConnectionconn2=newOracleConnection("DataSource=orcl;UserID=system;password=xi

配套讲稿:

如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。

特殊限制:

部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。

关 键  词:
合同 管理 系统 课程设计
提示  冰豆网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:合同管理系统课程设计.docx
链接地址:https://www.bdocx.com/doc/7521048.html
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2008-2022 冰点文档网站版权所有

经营许可证编号:鄂ICP备2022015515号-1

收起
展开