Пример #1
0
        //已复验
        protected void pass(object sender, EventArgs e)
        {
            Label1.InnerText = "";
            Reinspect_Repeater2.DataBind();
            DataSet ds = reinspect.getallpass();

            if (ds != null && ds.Tables[0].Rows.Count > 0)
            {
                table_type.InnerText          = "已复验";
                Reinspect_Repeater.DataSource = ds;
                Reinspect_Repeater.DataBind();
            }
            else
            {
                table_type.InnerText = "";
                Reinspect_Repeater.DataBind();
                CleanAllMeassage_Click(sender, e);
                PageUtil.showToast(this, "无已复验数据!");
            }
        }
Пример #2
0
        //待复验
        protected void pending(object sender, EventArgs e)
        {
            table_type.InnerText = "";
            Reinspect_Repeater.DataBind();
            int     curdate = DateTime.Now.Year * 100 + (int)Math.Ceiling(DateTime.Now.Day / 7.0);
            DataSet ds      = reinspect.getallpending(curdate);

            if (ds != null && ds.Tables[0].Rows.Count > 0)
            {
                Label1.InnerText = "待复验";
                Reinspect_Repeater2.DataSource = ds;
                Reinspect_Repeater2.DataBind();
            }
            else
            {
                Label1.InnerText = "";
                Reinspect_Repeater2.DataBind();
                CleanAllMeassage_Click(sender, e);
                PageUtil.showToast(this, "无待复验数据!");
            }
        }