clcgjh/clcgjhmod.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using dao;
public partial class clcgjh_clcgjhmod : System.Web.UI.Page
{
    string id = "";

    	 /**
	*材料采购计划信息修改页面
	*/  
    protected void Page_Load(object sender, EventArgs e)
    {
        id = Request.QueryString["id"].ToString();//获取从信息列表传递材料采购计划信息主键
        if (!IsPostBack)
        {

            string sql = "select * from clcgjh where clcgjhid='" + id + "'";//准备查询记录的sql
            DataTable dt = DBHelper.GetDataSet(sql);//执行sql语句
            if (dt.Rows.Count > 0)
            {//如果有记录 进行赋值
               this.cgjh.Text =dt.Rows[0]["cgjh"].ToString();//采购计划
this.clph.Text =dt.Rows[0]["clph"].ToString();//材料牌号
this.clzj.Text =dt.Rows[0]["clzj"].ToString();//材料直径
this.clsc.Text =dt.Rows[0]["clsc"].ToString();//材料上差
this.clxc.Text =dt.Rows[0]["clxc"].ToString();//材料下差
this.clgy.Text =dt.Rows[0]["clgy"].ToString();//材料工艺
this.dbzl.Text =dt.Rows[0]["dbzl"].ToString();//打包重量
this.zzl.Text =dt.Rows[0]["zzl"].ToString();//总重量
this.sjfhzl.Text =dt.Rows[0]["sjfhzl"].ToString();//实际发货重量
this.fhjs.Text =dt.Rows[0]["fhjs"].ToString();//发货件数
this.wxcj.Text =dt.Rows[0]["wxcj"].ToString();//外协厂家
this.jlrq.Text =dt.Rows[0]["jlrq"].ToString();//建立日期
this.zt.Text =dt.Rows[0]["zt"].ToString();//状态
this.jhrq.Text =dt.Rows[0]["jhrq"].ToString();//交货日期


     
            }
        }
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
    //修改材料采购计划信息 操作
      string cgjh=this.cgjh.Text;//采购计划
string clph=this.clph.Text;//材料牌号
string clzj=this.clzj.Text;//材料直径
string clsc=this.clsc.Text;//材料上差
string clxc=this.clxc.Text;//材料下差
string clgy=this.clgy.Text;//材料工艺
string dbzl=this.dbzl.Text;//打包重量
后面还有 94 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。