web/Editlocation.aspx.vb
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
Imports BLL
Imports Model
Imports System.Data
Imports System.Data.SqlClient
Partial Class Editlocation
Inherits System.Web.UI.Page
Dim Syscrf As New SystemBLL()
Dim sysloc As New LOCATIONBLL
Dim strloc As New LOCATION
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
If Request.QueryString("ID") Is Nothing Then
savebtn0.Visible = False
Else
txt_id.Text = Request.QueryString("ID").ToString.Trim
savebtn.Visible = False
getdata()
End If
End If
End Sub
Private Sub getdata()
Dim dt As DataTable = Syscrf.seachData("select * from LOCATION where id=" & txt_id.Text.Trim).Tables(0)
txt_shopid.Text = dt.Rows(0)("SHOPID").ToString
txt_LOC.Text = dt.Rows(0)("LOCATIONID").ToString
'txt_wmsloc.Text = dt.Rows(0)("location2").ToString
txt_name.Text = dt.Rows(0)("NAME").ToString
txt_ADDR.Text = dt.Rows(0)("ADDRESS").ToString
txt_TEL.Text = dt.Rows(0)("TEL").ToString
txt_FAX.Text = dt.Rows(0)("FAX").ToString
txt_CONTECT.Text = dt.Rows(0)("CONTECT").ToString
End Sub
Protected Sub savebtn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles savebtn.Click
strloc.LOCATIONID = txt_LOC.Text.Trim
strloc.WMSlocationid = "01"
strloc.Shopid = txt_shopid.Text.Trim
strloc.NAME = txt_name.Text.Trim
strloc.ADDRESS = txt_ADDR.Text.Trim
strloc.INVENTDIMID = Syscrf.Get_InventDimId
strloc.TEL = txt_TEL.Text.Trim
strloc.FAX = txt_FAX.Text.Trim
strloc.CONTECT = txt_CONTECT.Text.Trim
strloc.CREATBY = Request.Cookies("sh")("userid").ToString
'Request.Cookies("userid")("username").ToString
If sysloc.Add_LOCATION(strloc) > 0 Then
Response.Redirect("LOCATIONTABLE.aspx")
Else
Response.Write("<script>alert('添加失败');</script>")
End If
End Sub
Protected Sub savebtn0_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles savebtn0.Click
strloc.ID = Convert.ToInt16(txt_id.Text.Trim)
strloc.Shopid = txt_shopid.Text.Trim
strloc.WMSlocationid = "01"
后面还有 15 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
