日期:2014-05-17 浏览次数:20452 次
int wxy_id = (Request.QueryString["wxy_id"] == null) ? 0 : int.Parse(Request.QueryString["wxy_id"].ToString());
DataTable table = db.GetDataTable("select * from View_Safety where SaftyB1ID=" + wxy_id + "");
if (table.Rows.Count > 0)
{
Safety safety = new Safety();
safety.UpdateAQ_SaftyB1_Send_IsRead(wxy_id, Int32.Parse(Session["deptID"].ToString().Trim()), Int32.Parse(Session["accPsnID"].ToString().Trim()), true);
try
{
lbLiuShuiHao.Text = table.Rows[0]["LiuShuiNo"].ToString().Trim();//流水号
if (table.Rows[0]["CheckDepID"].ToString().Trim() == "" || table.Rows[0]["CheckDepID"].ToString().Trim() == "0")
{
lbCheckDept.Text = table.Rows[0]["CheckSort"].ToString().Trim();
}
else
{
lbCheckDept.Text = table.Rows[0]["CheckDeptName"].ToString().Trim();//检查单位
}
lbCheckMan.Text = table.Rows[0]["CheckName"].ToString().Trim();//检查人
lbKHLX.Text = table.Rows[0]["Khlx"].ToString().Trim();//考核类型
lbDownTime.Text = Convert.ToDateTime(table.Rows[0]["CheckDateA"].ToString().Trim()).ToString("yyyy-MM-dd");//检查日期
lbBan.Text = table.Rows[0]["ClassNumber"].ToString().Trim();//班次