CY_ZZJY.Web/admin/subpackageprint/sublist_2.aspx.cs
(完整代码) 2KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using CY_ZZJY.Model.Bus;
using CY_ZZJY.Service.Bus;
namespace CY_ZZJY.Web.admin.subpackageprint
{
public partial class sublist_2 : System.Web.UI.Page
{
private DataTable dtResult = null;
private Mdl_T_CHECKRESULT _Mdl_T_CHECKRESULT = null;
private T_CHECKRESULT_Service _T_CHECKRESULT_Service = new T_CHECKRESULT_Service();
private T_PACKAGES_Service _T_PACKAGES_Service = new T_PACKAGES_Service();
public string ResultBH = string.Empty;//检验结果编号
public int ResultCount = 0;//包的数量
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request["ResultBH"] != null && !string.IsNullOrEmpty(Request.QueryString["ResultBH"].ToString()))
this.ResultBH = Request.QueryString["ResultBH"].ToString().Trim();
this._Mdl_T_CHECKRESULT = this._T_CHECKRESULT_Service.GetEntityByResultBH(this.ResultBH);
if (this._Mdl_T_CHECKRESULT == null || string.IsNullOrEmpty(this._Mdl_T_CHECKRESULT.RESULT_BH))
{
this.Msg.Text = "1、没有查询到该检验结果,请确保检验结果编号输入正确!!!<br>2、该检验尚未进行分包操作!!!";
this.panel_1.Visible = true;
this.panel_2.Visible = false;
}
else
{
this.dtResult = this._T_PACKAGES_Service.Query(this.ResultBH);
this.panel_1.Visible = false;
this.panel_2.Visible = true;
//显示数据
if (this.dtResult != null && this.dtResult.Rows.Count > 0)
{
this.ResultCount = this.dtResult.Rows.Count;
this.list.DataSource = this.dtResult.DefaultView;
this.list.DataBind();
}
else
{
this.list.DataSource = null;
this.list.DataBind();
}
}
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。