Пример #1
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, "无待复验数据!");
            }
        }