/// <summary>
    /// 操作实时验证 
    /// </summary>
    /// <returns></returns>
    private bool ValidataBillState()
    {
        //实时获取订单状态
        using (BCheckBillBB checkBillBB = new BCheckBillBB())
        {
            string strState = "", strWhere = "";
            DataSet ds = new DataSet();

            //确认检测的到货单明细物料,没有被其他检测单检测
            strWhere = " id<>'" + this.IdValue + "' and arriveBillNo='" + this.tbArriveBillNo.Text
                + "' and financeBillNo='" + this.tbFinanceBillNo.Text + "'  and materialNo='" + this.hidMaterialNo.Value + "'";

            ds = checkBillBB.GetList(strWhere);
            if (ds != null && ds.Tables[0].Rows.Count > 0)
            {
                this.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert(\"此到货单物料,已经生成检测单,无法重复。检测单号【"
                    + ds.Tables[0].Rows[0]["checkBillNo"].ToString() + "】!\");", true);
                return false;
            }

            //实时校验检验单自身状态,防止被他人提交
            ds = checkBillBB.GetList("id='" + this.IdValue + "'");
            if (ds.Tables[0].Rows.Count > 0)
            {
                strState = ds.Tables[0].Rows[0]["instantState"].ToString();
            }

            if (strState == "01" || strState == "")
            {
                return true;
            }
            else
            {
                this.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert(\"此检测单已提交!\");", true);
                return false;
            }
        }
    }