- 浏览: 975400 次
- 性别:
- 来自: 杭州
文章分类
- 全部博客 (1037)
- [随笔分类]oracle (34)
- [随笔分类]知识学习 (141)
- [随笔分类]客户端javascript (29)
- [随笔分类]经验总结 (2)
- [随笔分类]数据库 (18)
- [随笔分类]心情 (4)
- [随笔分类]心得 (3)
- [随笔分类]页面框架 (2)
- [随笔分类]服务器C#语法总结 (41)
- [随笔分类]知识产权 (1)
- [网站分类]3.非技术区 (3)
- [随笔分类]Seo学习 (3)
- [随笔分类]程序 (8)
- [随笔分类]生活常识 (0)
- [随笔分类]炒股 (16)
- [网站分类]4.其他技术区 (1)
- 4.其他技术区 (0)
- 3.非技术区 (0)
- 2.Java新手区 (0)
最新评论
-
luoxiaoyan3817:
...
性感美女|青春美女|成熟美女 -
a1350258:
这个和标题简直是驴唇不对马嘴吧,,,,,,,,,,,,,,,, ...
java 打包命令 -
windFeng:
谢谢兄台,以上链接现在都还可以用迅雷下载!
Oracle 9i 下载地址|Oracle 9i 下载|Oracle 9i 官网下载地址 -
gray:
入门教程。
rdlc数据报表的使用reportview -
Rong_it:
Tang.Scholar 写道感觉蛮爽的 你写一下就不觉得爽了 ...
需求分析书规范
合同代码编写
'撰写人:王德田
'撰写日期:2007-9-20
'功能:合同
Imports System.Data.SqlClient
Imports System.Data
Public Class frm_SN
Inherits System.Web.UI.Page
Public Enum State
增加 = 1
修改 = 2
End Enum
#Region " Web 窗体设计器生成的代码 "
'该调用是 Web 窗体设计器所必需的。
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Protected WithEvents BtnSave As System.Web.UI.WebControls.Button
Protected WithEvents BtnCancel As System.Web.UI.WebControls.Button
Protected WithEvents BtnSavePrint As System.Web.UI.WebControls.Button
Protected WithEvents BtnDelete As System.Web.UI.WebControls.Button
Protected WithEvents BtnGz As System.Web.UI.WebControls.Button
Protected WithEvents BtnCancelGZ As System.Web.UI.WebControls.Button
Protected WithEvents BtnCheckYes As System.Web.UI.WebControls.Button
Protected WithEvents BtnCheckNo As System.Web.UI.WebControls.Button
Protected WithEvents BtnCancelCheck As System.Web.UI.WebControls.Button
Protected WithEvents ddlcompany As System.Web.UI.WebControls.DropDownList
Protected WithEvents ddlcp As System.Web.UI.WebControls.DropDownList
Protected WithEvents BtnPrint As System.Web.UI.HtmlControls.HtmlInputButton
Protected WithEvents txttp_y As System.Web.UI.WebControls.TextBox
Protected WithEvents txttp_m As System.Web.UI.WebControls.TextBox
Protected WithEvents txttp_d As System.Web.UI.WebControls.TextBox
Protected WithEvents txttp_dd As System.Web.UI.WebControls.TextBox
Protected WithEvents txttp_jf As System.Web.UI.WebControls.TextBox
Protected WithEvents txttp_cp As System.Web.UI.WebControls.TextBox
Protected WithEvents txttp_jfgtr As System.Web.UI.WebControls.TextBox
Protected WithEvents txttp_yf As System.Web.UI.WebControls.TextBox
Protected WithEvents txttp_yfgtr As System.Web.UI.WebControls.TextBox
Protected WithEvents xw_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents cxzc_sj As System.Web.UI.WebControls.TextBox
Protected WithEvents cxzc_fs As System.Web.UI.WebControls.TextBox
Protected WithEvents cxzc_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents cxzp_pl As System.Web.UI.WebControls.TextBox
Protected WithEvents cxzp_sl As System.Web.UI.WebControls.TextBox
Protected WithEvents cxzp_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents ztzz_sc As System.Web.UI.WebControls.TextBox
Protected WithEvents ztzz_wz As System.Web.UI.WebControls.TextBox
Protected WithEvents ztzz_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents lhbg_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents dq_sl As System.Web.UI.WebControls.TextBox
Protected WithEvents dq_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents tf_sl As System.Web.UI.WebControls.TextBox
Protected WithEvents tf_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents ly_sl As System.Web.UI.WebControls.TextBox
Protected WithEvents ly_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents hf_sl As System.Web.UI.WebControls.TextBox
Protected WithEvents hf_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents gm_sl As System.Web.UI.WebControls.TextBox
Protected WithEvents gm_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents qq_sl As System.Web.UI.WebControls.TextBox
Protected WithEvents qq_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents kp_sl As System.Web.UI.WebControls.TextBox
Protected WithEvents kp_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents qthd_sl As System.Web.UI.WebControls.TextBox
Protected WithEvents qthd_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents txtbh As System.Web.UI.WebControls.TextBox
Protected WithEvents xwf_pl As System.Web.UI.WebControls.TextBox
Protected WithEvents xwf_wz As System.Web.UI.WebControls.TextBox
Protected WithEvents menu_tb As System.Web.UI.HtmlControls.HtmlTable
Protected WithEvents dt_sl As System.Web.UI.WebControls.TextBox
Protected WithEvents dt_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents cxhj_yf_dxrmb As System.Web.UI.WebControls.TextBox
Protected WithEvents cxhj_yf_zh As System.Web.UI.WebControls.TextBox
Protected WithEvents cxhj_yf_lhcx As System.Web.UI.WebControls.TextBox
Protected WithEvents cxhj_js_dxrmb As System.Web.UI.WebControls.TextBox
Protected WithEvents cxhj_jf_rmb As System.Web.UI.WebControls.TextBox
Protected WithEvents txt_jzxzl1 As System.Web.UI.WebControls.TextBox
Protected WithEvents txt_jzxzl2 As System.Web.UI.WebControls.TextBox
Protected WithEvents txt_jzxzl3 As System.Web.UI.WebControls.TextBox
Protected WithEvents t_dxsj As System.Web.UI.WebControls.TextBox
Protected WithEvents t_txfs As System.Web.UI.WebControls.TextBox
Protected WithEvents t_sjsk As System.Web.UI.WebControls.TextBox
Protected WithEvents t_cwjbr As System.Web.UI.WebControls.TextBox
Protected WithEvents rbl1 As System.Web.UI.WebControls.RadioButtonList
Protected WithEvents rbl2 As System.Web.UI.WebControls.RadioButtonList
Protected WithEvents rbl3 As System.Web.UI.WebControls.RadioButtonList
'注意: 以下占位符声明是 Web 窗体设计器所必需的。
'不要删除或移动它。
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: 此方法调用是 Web 窗体设计器所必需的
'不要使用代码编辑器修改它。
InitializeComponent()
End Sub
#End Region
#Region "窗体事件"
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'页的用户代码()
PageInit()
getCPB()
'公司绑定
liandong()
If (Request.QueryString("status") Is Nothing) Then
ElseIf (Request.QueryString("status") = "1") Then
viewstate("state") = State.增加
Dim gmname As String = Request.QueryString("cdep")
Dim billcode As String = Request.QueryString("billcode")
Me.txtbh.Text = billcode
ElseIf (Request.QueryString("status") = "2") Then
viewstate("state") = State.修改
setEditForm(Request.QueryString("htcode"))
End If
End Sub
'保存
Private Sub BtnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnSave.Click
Try
If (Convert.ToString(viewstate("state")) = State.增加) Then
add()
ElseIf (Convert.ToString(viewstate("state")) = State.修改) Then
Upd()
End If
Cls_common.ShowErrMessage("保存成功")
Catch ex As Exception
Response.Write(Cls_common.ShowErrMessage(ex.Message))
End Try
End Sub
'删除合同
Private Sub BtnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnDelete.Click
Try
deletesub()
Cls_common.ShowErrMessage("删除成功")
Catch ex As Exception
Response.Write(Cls_common.ShowErrMessage(ex.Message))
End Try
End Sub
'取消操作
Private Sub BtnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnCancel.Click
Response.Write("<script language=javascript>history.go(-1)</script>")
End Sub
'打印合同
Private Sub BtnSavePrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnSavePrint.Click
Dim sql As String = "update sn_ht set iPrint=iPrint+1 where txtbh=@txtbh"
Dim cmd As SqlCommand = New SqlCommand
cmd.Parameters.Add(New SqlParameter("@txtbh", txtbh.Text))
cmd.CommandText = sql
Cls_common.ExecUpdateSQL(cmd)
End Sub
'盖章操作
Private Sub BtnCheckYes_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnCheckYes.Click
Try
GaiZhangSub()
Catch ex As Exception
Response.Write(Cls_common.ShowErrMessage(ex.Message))
End Try
End Sub
'取消操作
Private Sub BtnCancelGZ_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnCancelGZ.Click
Try
QuXiaoGaiSub()
Catch ex As Exception
Response.Write(Cls_common.ShowErrMessage(ex.Message))
End Try
End Sub
#End Region
#Region "函数体"
'窗体初始化
Public Sub PageInit()
Me.ddlcp.Attributes("onchange") = "document.getElementById('txttp_cp').value=this.options[this.selectedIndex].text"
Me.ddlcompany.Attributes("onchange") = "document.getElementById('txttp_jf').value=this.options[this.selectedIndex].text"
End Sub
'添加
Public Sub add()
Dim user As Cls_User = Session("user")
Dim sql As String = "insert into sn_ht(cUser,txtbh,cGHcode,txttp_y,txttp_m,txttp_d,txttp_dd,ddlcompany,ddlcp,txttp_jfgtr,txttp_yf,txttp_yfgtr,xwf_pl,xwf_wz,xw_rmb,cxzc_sj,cxzc_fs,cxzc_rmb,cxzp_pl,cxzp_sl,cxzp_rmb,ztzz_sc,ztzz_wz,ztzz_rmb,lhbg_rmb,dt_sl,dt_rmb,dq_sl,dq_rmb,tf_sl,tf_rmb,ly_sl,ly_rmb,hf_sl,hf_rmb,gm_sl,gm_rmb,qq_sl,qq_rmb,kp_sl,kp_rmb,qthd_sl,qthd_rmb,t_dxsj,t_txfs,t_sjsk,t_cwjbr,datenow,txt_jzxzl1,txt_jzxzl2,txt_jzxzl3,rbl1,rbl2,rbl3) values(@cUser,@txtbh,@cGHcode,@txttp_y,@txttp_m,@txttp_d,@txttp_dd,@ddlcompany,@ddlcp,@txttp_jfgtr,@txttp_yf,@txttp_yfgtr,@xwf_pl,@xwf_wz,@xw_rmb,@cxzc_sj,@cxzc_fs,@cxzc_rmb,@cxzp_pl,@cxzp_sl,@cxzp_rmb,@ztzz_sc,@ztzz_wz,@ztzz_rmb,@lhbg_rmb,@dt_sl,@dt_rmb,@dq_sl,@dq_rmb,@tf_sl,@tf_rmb,@ly_sl,@ly_rmb,@hf_sl,@hf_rmb,@gm_sl,@gm_rmb,@qq_sl,@qq_rmb,@kp_sl,@kp_rmb,@qthd_sl,@qthd_rmb,@t_dxsj,@t_txfs,@t_sjsk,@t_cwjbr,@datenow,@txt_jzxzl1,@txt_jzxzl2,@txt_jzxzl3,@rbl1,@rbl2,@rbl3)"
Dim cmd As SqlCommand = New SqlCommand
cmd.Parameters.Add(New SqlParameter("@cUser", user.cUserName))
cmd.Parameters.Add(New SqlParameter("@txtbh", txtbh.Text))
cmd.Parameters.Add(New SqlParameter("@cGHcode", "HT" & txtbh.Text))
cmd.Parameters.Add(New SqlParameter("@txttp_y", txttp_y.Text))
cmd.Parameters.Add(New SqlParameter("@txttp_m", txttp_m.Text))
cmd.Parameters.Add(New SqlParameter("@txttp_d", txttp_d.Text))
cmd.Parameters.Add(New SqlParameter("@txttp_dd", txttp_dd.Text))
cmd.Parameters.Add(New SqlParameter("@ddlcompany", ddlcompany.SelectedValue))
cmd.Parameters.Add(New SqlParameter("@ddlcp", ddlcp.SelectedValue))
cmd.Parameters.Add(New SqlParameter("@txttp_jfgtr", txttp_jfgtr.Text))
cmd.Parameters.Add(New SqlParameter("@txttp_yf", txttp_yf.Text))
cmd.Parameters.Add(New SqlParameter("@txttp_yfgtr", txttp_yfgtr.Text))
cmd.Parameters.Add(New SqlParameter("@xwf_pl", xwf_pl.Text))
cmd.Parameters.Add(New SqlParameter("@xwf_wz", xwf_wz.Text))
cmd.Parameters.Add(New SqlParameter("@xw_rmb", xw_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@cxzc_sj", cxzc_sj.Text))
cmd.Parameters.Add(New SqlParameter("@cxzc_fs", cxzc_fs.Text))
cmd.Parameters.Add(New SqlParameter("@cxzc_rmb", cxzc_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@cxzp_pl", cxzp_pl.Text))
cmd.Parameters.Add(New SqlParameter("@cxzp_sl", cxzp_sl.Text))
cmd.Parameters.Add(New SqlParameter("@cxzp_rmb", cxzp_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@ztzz_sc", ztzz_sc.Text))
cmd.Parameters.Add(New SqlParameter("@ztzz_wz", ztzz_wz.Text))
cmd.Parameters.Add(New SqlParameter("@ztzz_rmb", ztzz_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@lhbg_rmb", lhbg_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@dt_sl", dt_sl.Text))
cmd.Parameters.Add(New SqlParameter("@dt_rmb", dt_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@dq_sl", dq_sl.Text))
cmd.Parameters.Add(New SqlParameter("@dq_rmb", dq_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@tf_sl", tf_sl.Text))
cmd.Parameters.Add(New SqlParameter("@tf_rmb", tf_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@ly_sl", ly_sl.Text))
cmd.Parameters.Add(New SqlParameter("@ly_rmb", ly_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@hf_sl", hf_sl.Text))
cmd.Parameters.Add(New SqlParameter("@hf_rmb", hf_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@gm_sl", gm_sl.Text))
cmd.Parameters.Add(New SqlParameter("@gm_rmb", gm_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@qq_sl", qq_sl.Text))
cmd.Parameters.Add(New SqlParameter("@qq_rmb", qq_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@kp_sl", kp_sl.Text))
cmd.Parameters.Add(New SqlParameter("@kp_rmb", kp_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@qthd_sl", qthd_sl.Text))
cmd.Parameters.Add(New SqlParameter("@qthd_rmb", qthd_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@t_dxsj", t_dxsj.Text))
cmd.Parameters.Add(New SqlParameter("@t_txfs", t_txfs.Text))
cmd.Parameters.Add(New SqlParameter("@t_sjsk", t_sjsk.Text))
cmd.Parameters.Add(New SqlParameter("@t_cwjbr", t_cwjbr.Text))
cmd.Parameters.Add(New SqlParameter("@datenow", DateTime.Now.ToString()))
cmd.Parameters.Add(New SqlParameter("@txt_jzxzl1", txt_jzxzl1.Text))
cmd.Parameters.Add(New SqlParameter("@txt_jzxzl2", txt_jzxzl2.Text))
cmd.Parameters.Add(New SqlParameter("@txt_jzxzl3", txt_jzxzl3.Text))
cmd.Parameters.Add(New SqlParameter("@rbl1", rbl1.SelectedValue))
cmd.Parameters.Add(New SqlParameter("@rbl2", rbl2.SelectedValue))
cmd.Parameters.Add(New SqlParameter("@rbl3", rbl3.SelectedValue))
cmd.CommandText = sql
Cls_common.ExecUpdateSQL(cmd)
cmd.Parameters.Clear()
sql = "update t_wlkff_bill set bht=1,chtcode=@chtcode,chttypecode=@chttypecode where cbillcode=@cbillcode"
cmd.Parameters.Add(New SqlParameter("@chtcode", "HT" & txtbh.Text))
cmd.Parameters.Add(New SqlParameter("@chttypecode", "02"))
cmd.Parameters.Add(New SqlParameter("@cbillcode", txtbh.Text))
cmd.CommandText = sql
Cls_common.ExecUpdateSQL(cmd)
End Sub
'修改
Public Sub Upd()
Dim sql As String = "update sn_ht set txttp_y=@txttp_y,txttp_m=@txttp_m,txttp_d=@txttp_d,txttp_dd=@txttp_dd,ddlcompany=@ddlcompany,ddlcp=@ddlcp,txttp_jfgtr=@txttp_jfgtr,txttp_yf=@txttp_yf,txttp_yfgtr=@txttp_yfgtr,xwf_pl=@xwf_pl,xwf_wz=@xwf_wz,xw_rmb=@xw_rmb,cxzc_sj=@cxzc_sj,cxzc_fs=@cxzc_fs,cxzc_rmb=@cxzc_rmb,cxzp_pl=@cxzp_pl,cxzp_sl=@cxzp_sl,cxzp_rmb=@cxzp_rmb,ztzz_sc=@ztzz_sc,ztzz_wz=@ztzz_wz,ztzz_rmb=@ztzz_rmb,lhbg_rmb=@lhbg_rmb,dt_sl=@dt_sl,dt_rmb=@dt_rmb,dq_sl=@dq_sl,dq_rmb=@dq_rmb,tf_sl=@tf_sl,tf_rmb=@tf_rmb,ly_sl=@ly_sl,ly_rmb=@ly_rmb,hf_sl=@hf_sl,hf_rmb=@hf_rmb,gm_sl=@gm_sl,gm_rmb=@gm_rmb,qq_sl=@qq_sl,qq_rmb=@qq_rmb,kp_sl=@kp_sl,kp_rmb=@kp_rmb,qthd_sl=@qthd_sl,qthd_rmb=@qthd_rmb,t_dxsj=@t_dxsj,t_txfs=@t_txfs,t_sjsk=@t_sjsk,t_cwjbr=@t_cwjbr,txt_jzxzl1=@txt_jzxzl1,txt_jzxzl2=@txt_jzxzl2,txt_jzxzl3=@txt_jzxzl3,rbl1=@rbl1,rbl2=@rbl2,rbl3=@rbl3 where txtbh=@txtbh"
Dim cmd As SqlCommand = New SqlCommand
cmd.Parameters.Add(New SqlParameter("@txtbh", txtbh.Text))
cmd.Parameters.Add(New SqlParameter("@txttp_y", txttp_y.Text))
cmd.Parameters.Add(New SqlParameter("@txttp_m", txttp_m.Text))
cmd.Parameters.Add(New SqlParameter("@txttp_d", txttp_d.Text))
cmd.Parameters.Add(New SqlParameter("@txttp_dd", txttp_dd.Text))
cmd.Parameters.Add(New SqlParameter("@ddlcompany", ddlcompany.SelectedValue))
cmd.Parameters.Add(New SqlParameter("@ddlcp", ddlcp.SelectedValue))
cmd.Parameters.Add(New SqlParameter("@txttp_jfgtr", txttp_jfgtr.Text))
cmd.Parameters.Add(New SqlParameter("@txttp_yf", txttp_yf.Text))
cmd.Parameters.Add(New SqlParameter("@txttp_yfgtr", txttp_yfgtr.Text))
cmd.Parameters.Add(New SqlParameter("@xwf_pl", xwf_pl.Text))
cmd.Parameters.Add(New SqlParameter("@xwf_wz", xwf_wz.Text))
cmd.Parameters.Add(New SqlParameter("@xw_rmb", xw_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@cxzc_sj", cxzc_sj.Text))
cmd.Parameters.Add(New SqlParameter("@cxzc_fs", cxzc_fs.Text))
cmd.Parameters.Add(New SqlParameter("@cxzc_rmb", cxzc_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@cxzp_pl", cxzp_pl.Text))
cmd.Parameters.Add(New SqlParameter("@cxzp_sl", cxzp_sl.Text))
cmd.Parameters.Add(New SqlParameter("@cxzp_rmb", cxzp_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@ztzz_sc", ztzz_sc.Text))
cmd.Parameters.Add(New SqlParameter("@ztzz_wz", ztzz_wz.Text))
cmd.Parameters.Add(New SqlParameter("@ztzz_rmb", ztzz_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@lhbg_rmb", lhbg_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@dt_sl", dt_sl.Text))
cmd.Parameters.Add(New SqlParameter("@dt_rmb", dt_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@dq_sl", dq_sl.Text))
cmd.Parameters.Add(New SqlParameter("@dq_rmb", dq_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@tf_sl", tf_sl.Text))
cmd.Parameters.Add(New SqlParameter("@tf_rmb", tf_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@ly_sl", ly_sl.Text))
cmd.Parameters.Add(New SqlParameter("@ly_rmb", ly_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@hf_sl", hf_sl.Text))
cmd.Parameters.Add(New SqlParameter("@hf_rmb", hf_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@gm_sl", gm_sl.Text))
cmd.Parameters.Add(New SqlParameter("@gm_rmb", gm_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@qq_sl", qq_sl.Text))
cmd.Parameters.Add(New SqlParameter("@qq_rmb", qq_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@kp_sl", kp_sl.Text))
cmd.Parameters.Add(New SqlParameter("@kp_rmb", kp_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@qthd_sl", qthd_sl.Text))
cmd.Parameters.Add(New SqlParameter("@qthd_rmb", qthd_rmb.Text))
cmd.Parameters.Add(New SqlParameter("@t_dxsj", t_dxsj.Text))
cmd.Parameters.Add(New SqlParameter("@t_txfs", t_txfs.Text))
cmd.Parameters.Add(New SqlParameter("@t_sjsk", t_sjsk.Text))
cmd.Parameters.Add(New SqlParameter("@t_cwjbr", t_cwjbr.Text))
cmd.Parameters.Add(New SqlParameter("@txt_jzxzl1", txt_jzxzl1.Text))
cmd.Parameters.Add(New SqlParameter("@txt_jzxzl2", txt_jzxzl2.Text))
cmd.Parameters.Add(New SqlParameter("@txt_jzxzl3", txt_jzxzl3.Text))
cmd.Parameters.Add(New SqlParameter("@rbl1", rbl1.SelectedValue))
cmd.Parameters.Add(New SqlParameter("@rbl2", rbl2.SelectedValue))
cmd.Parameters.Add(New SqlParameter("@rbl3", rbl3.SelectedValue))
cmd.CommandText = sql
Cls_common.ExecUpdateSQL(cmd)
End Sub
''删除
Public Sub deletesub()
Dim sql As String = "delete from sn_ht where txtbh=@txtbh"
Dim cmd As SqlCommand = New SqlCommand
cmd.Parameters.Add(New SqlParameter("@txtbh", txtbh.Text))
cmd.CommandText = sql
Cls_common.ExecUpdateSQL(cmd)
End Sub
Public Sub GaiZhangSub()
Dim user As Cls_User = Session("user")
Dim sql As String = "update sn_ht set bgzmark=1,cgzuser=@cgzuser,dgzdate1=getdate() where txtbh=@txtbh"
Dim cmd As SqlCommand = New SqlCommand
cmd.Parameters.Add(New SqlParameter("@txtbh", txtbh.Text))
cmd.Parameters.Add(New SqlParameter("@cgzuser", user.cUserName))
cmd.CommandText = sql
Cls_common.ExecUpdateSQL(cmd)
End Sub
Public Sub QuXiaoGaiSub()
Dim sql As String = "update sn_ht set gz=0,cgzuser=null,dgzdate1=null where txtbh=@txtbh"
Dim cmd As SqlCommand = New SqlCommand
cmd.Parameters.Add(New SqlParameter("@txtbh", txtbh.Text))
cmd.CommandText = sql
Cls_common.ExecUpdateSQL(cmd)
End Sub
'部门帮定
Private Sub getCPB()
ddlcp.DataSource = Cls_common.ExecQuerySQL("select cdepcode,cdepname from t_department where ilevel = 2 " & _
" union all select 'all','全系列' " & _
" order by cdepcode")
ddlcp.DataBind()
End Sub
'公司绑定
Private Sub liandong()
Dim cdep As String = Request.QueryString("cdep")
'Response.Write(cdep)
If cdep Is Nothing Then
Exit Sub
End If
Dim sql As String = String.Format("select c.* from t_department a,t_wlkff_Dep_Account b,t_wlkff_Account c where a.ilevel=3 and a.cDepname<>'商流出帐'and a.cdepcode=b.cdepcode and b.cAccountCode=c.cAccountCode and a.cdepname='{0}' order by b.caccountcode", cdep)
Dim dtcom As DataTable = Cls_common.ExecQuerySQL(sql)
Me.ddlcompany.DataSource = dtcom
Me.ddlcompany.DataTextField = "CAccountName"
Me.ddlcompany.DataValueField = "cAccountCode"
Me.ddlcompany.DataBind()
End Sub
Public Sub setEditForm(ByVal str As String)
Dim sql As String = "select * from sn_ht where txtbh='" & str & "'"
Dim dttemp As DataTable = Cls_common.ExecQuerySQL(sql)
If dttemp.Rows.Count < 1 Then
Else
Dim drtemp As DataRow = dttemp.Rows(0)
txttp_y.Text = Convert.ToString(drtemp("txttp_y"))
txttp_m.Text = Convert.ToString(drtemp("txttp_m"))
txttp_d.Text = Convert.ToString(drtemp("txttp_d"))
txttp_dd.Text = Convert.ToString(drtemp("txttp_dd"))
ddlcompany.SelectedValue = Convert.ToString(drtemp("ddlcompany"))
ddlcp.SelectedValue = Convert.ToString(drtemp("ddlcp"))
txttp_jfgtr.Text = Convert.ToString(drtemp("txttp_jfgtr"))
txttp_yf.Text = Convert.ToString(drtemp("txttp_yf"))
txttp_yfgtr.Text = Convert.ToString(drtemp("txttp_yfgtr"))
xwf_pl.Text = Convert.ToString(drtemp("xwf_pl"))
xwf_wz.Text = Convert.ToString(drtemp("xwf_wz"))
xw_rmb.Text = Convert.ToString(drtemp("xw_rmb"))
cxzc_sj.Text = Convert.ToString(drtemp("cxzc_sj"))
cxzc_fs.Text = Convert.ToString(drtemp("cxzc_fs"))
cxzc_rmb.Text = Convert.ToString(drtemp("cxzc_rmb"))
cxzp_pl.Text = Convert.ToString(drtemp("cxzp_pl"))
cxzp_sl.Text = Convert.ToString(drtemp("cxzp_sl"))
cxzp_rmb.Text = Convert.ToString(drtemp("cxzp_rmb"))
ztzz_sc.Text = Convert.ToString(drtemp("ztzz_sc"))
ztzz_wz.Text = Convert.ToString(drtemp("ztzz_wz"))
ztzz_rmb.Text = Convert.ToString(drtemp("ztzz_rmb"))
lhbg_rmb.Text = Convert.ToString(drtemp("lhbg_rmb"))
dt_sl.Text = Convert.ToString(drtemp("dt_sl"))
dt_rmb.Text = Convert.ToString(drtemp("dt_rmb"))
dq_sl.Text = Convert.ToString(drtemp("dq_sl"))
dq_rmb.Text = Convert.ToString(drtemp("dq_rmb"))
tf_sl.Text = Convert.ToString(drtemp("tf_sl"))
tf_rmb.Text = Convert.ToString(drtemp("tf_rmb"))
ly_sl.Text = Convert.ToString(drtemp("ly_sl"))
ly_rmb.Text = Convert.ToString(drtemp("ly_rmb"))
hf_sl.Text = Convert.ToString(drtemp("hf_sl"))
hf_rmb.Text = Convert.ToString(drtemp("hf_rmb"))
gm_sl.Text = Convert.ToString(drtemp("gm_sl"))
gm_rmb.Text = Convert.ToString(drtemp("gm_rmb"))
qq_sl.Text = Convert.ToString(drtemp("qq_sl"))
qq_rmb.Text = Convert.ToString(drtemp("qq_rmb"))
kp_sl.Text = Convert.ToString(drtemp("kp_sl"))
kp_rmb.Text = Convert.ToString(drtemp("kp_rmb"))
qthd_sl.Text = Convert.ToString(drtemp("qthd_sl"))
qthd_rmb.Text = Convert.ToString(drtemp("qthd_rmb"))
t_dxsj.Text = Convert.ToString(drtemp("t_dxsj"))
t_txfs.Text = Convert.ToString(drtemp("t_txfs"))
t_sjsk.Text = Convert.ToString(drtemp("t_sjsk"))
t_cwjbr.Text = Convert.ToString(drtemp("t_cwjbr"))
txt_jzxzl1.Text = Convert.ToString(drtemp("txt_jzxzl1"))
txt_jzxzl2.Text = Convert.ToString(drtemp("txt_jzxzl2"))
txt_jzxzl3.Text = Convert.ToString(drtemp("txt_jzxzl3"))
rbl1.SelectedValue = Convert.ToString(drtemp("rbl1"))
rbl2.SelectedValue = Convert.ToString(drtemp("rbl2"))
rbl3.SelectedValue = Convert.ToString(drtemp("rbl3"))
End If
End Sub
#End Region
Private Sub BtnGz_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnGz.Click
End Sub
End Class
相关推荐
【HTML合同模板代码】涉及到的是软件开发合同的内容,主要涵盖了以下几个关键知识点: 1. **合同签订**:合同的签订需要明确双方的身份信息,包括甲方(委托方)和乙方(开发方)的名称、地址、联系方式以及电子...
开发者可以使用C#、VB.NET等语言编写代码,通过ASP.NET的页面生命周期和事件模型,实现网页的动态交互。 二、合同管理系统架构 一个基于ASP.NET的合同管理系统通常包括用户界面层、业务逻辑层和数据访问层。用户...
【标题】中的“自己编写的合同管理系统---纯VC编写,非常好用!”表明这是一个由个人开发者独立设计并使用Microsoft Visual C++(简称VC)开发的合同管理软件。VC是一款集成开发环境,广泛用于创建Windows应用程序,...
《合同管理系统:C++ 实例与MFC源代码解析》 在信息技术日益发达的今天,合同管理系统的构建已经成为企业管理中的重要一环。本资源提供了一个基于C++编程语言,利用Microsoft Foundation Classes (MFC)库开发的合同...
3. **查询功能**:通过VBA编写的功能,用户可以输入特定条件(如合同号、客户名称、日期范围等)来搜索和筛选合同,提高工作效率。 4. **数据可视化**:可能包含了图表和图形,以直观地展示合同数量、金额分布、...
这是一套基于C#编程语言开发的合同管理系统的源代码。在IT行业中,源码是软件开发的核心部分,它包含了程序设计者编写的指令,用于控制计算机执行特定任务。C#是一种现代、面向对象的编程语言,由微软公司开发,广泛...
3. 开发与测试:编写代码,进行单元测试和集成测试,确保系统的稳定性和性能。 4. 数据迁移:将现有的合同数据导入新系统,保持历史信息的完整性。 5. 用户培训:为用户提供操作指导,确保他们能熟练使用系统。 6. ...
在本项目中,VS可能被用来编写和调试系统的前端界面和后端逻辑代码。 2. **SQL Server 2000**:这是一款关系型数据库管理系统,由微软公司推出,用于存储、管理和检索数据。在电子合同管理系统中,SQL Server 2000...
这份代码是用C语言编写的,主要用于管理合同的相关信息。下面将详细解释该系统的主要功能及其技术要点。 ### 合同管理系统概览 #### 一、基本结构 在文件头部,可以看到包含了几个标准库文件: - `<stdio.h>`:...
4. **数据访问层**:使用IBatis进行数据库操作,通过XML或注解方式编写SQL,实现对劳动合同数据的CRUD(Create、Read、Update、Delete)操作。 四、系统功能模块 1. **合同录入**:提供合同信息输入界面,包括员工...
《升华公司合同订货发货系统代码详解》 在IT行业中,订货发货系统是企业管理流程中的重要组成部分,它涉及到企业内部供应链的优化、订单处理效率的提升以及客户满意度的维护。本文将深入探讨名为“升华公司合同订货...
源码部分涵盖了VB与数据库的连接、SQL语句的编写、控件事件处理以及界面布局等关键代码。通过对源码的分析,学习者可以深入理解VB程序设计的逻辑和流程,提升自己的编程技能。 总结,VB合同管理系统的设计与实现是...
《七蚁电子合同_1.1.8.zip》是一个包含前端和后端代码的压缩包,主要用于构建一款基于微信小程序的电子合同管理平台。这款应用致力于提供线上合同签订与管理服务,让合同签署过程变得更加便捷和高效。以下是该压缩包...
9. **异常处理**:在系统开发中,必须考虑可能出现的异常情况,如网络中断、数据库连接失败等,并编写相应的错误处理代码,保证系统的稳定运行。 10. **测试与部署**:系统开发完成后,需进行单元测试、集成测试和...
1. **框架与库**:前端可能采用了如微信小程序的开发框架,如Taro或uni-app,它们允许开发者编写一次代码,跨平台运行。这些框架通常集成了React或Vue.js的语法特性,方便快速构建用户界面。 2. **UI设计**:为了...
通过研究这些文件,你可以了解如何设计和实现一个B/S架构的合同管理系统,包括前端界面开发(HTML、CSS、JavaScript)、后端服务编写(可能使用Java、Python、Node.js等语言)、数据库设计(SQL)、以及服务器部署等...
可能包含了前端页面用于输入和展示合同信息的HTML、CSS和JavaScript文件,以及后端处理增删改查请求的服务器端脚本,可能是PHP、Java、Python等语言编写。数据库设计和SQL查询语句也是关键部分,可能涉及到如何创建...
利用VB,开发者可以构建图形用户界面(GUI),创建直观易用的操作界面,同时编写处理业务逻辑的代码。VB的事件驱动编程模型使得用户交互变得简单,而其丰富的库函数和组件则为构建复杂应用提供了便利。 总的来说,...
每份合同都有自己的作用,委托技术开发合同范本_格式_样本_样式_协议能够最大程度为大家提供帮助,需要委...该文档为委托技术开发合同范本_格式_样本_样式_协议,是一份很不错的参考资料,具有较高参考价值,感兴趣...
它允许开发者使用任何Windows支持的编程语言(如VBScript或JScript)编写代码,然后在服务器上执行,生成HTML响应给客户端浏览器。ASP的优势在于其易学易用、跨平台能力和与.NET框架的集成。 2. SQL Server数据库:...