Beispiel #1
0
    public bool IsFind()
    {
        int       pageCount    = 0;
        int       Counts       = 0;
        string    JoinTableStr = "  BD_RebateDetail join Dis_order as Dorder   on Dorder.id=BD_RebateDetail.orderid ";
        DataTable LRobate      = new Hi.BLL.BD_RebateDetail().GetList(1, 1, " BD_RebateDetail.createdate ", true, " ReceiptNo,BD_RebateDetail.Amount,BD_RebateDetail.CreateDate ", JoinTableStr, " and RebateID=" + KeyID + " and BD_RebateDetail.dr=0 ", out pageCount, out Counts);

        if (LRobate.Rows.Count > 0)
        {
            JScript.AlertMethod(this, "返利已被使用,不允许修改", JScript.IconOption.错误, "function(){ history.go(-1); }");
        }
        return(LRobate.Rows.Count > 0);
    }
Beispiel #2
0
    public void BindRebateDetail()
    {
        int       pageCount    = 0;
        int       Counts       = 0;
        string    JoinTableStr = "  BD_RebateDetail join Dis_order as Dorder   on Dorder.id=BD_RebateDetail.orderid ";
        DataTable LRobate      = new Hi.BLL.BD_RebateDetail().GetList(Pager.PageSize, Pager.CurrentPageIndex, " BD_RebateDetail.createdate ", true, " ReceiptNo,BD_RebateDetail.Amount,BD_RebateDetail.CreateDate ", JoinTableStr, " and RebateID=" + KeyID + " and isnull(BD_RebateDetail.dr,0)=0  ", out pageCount, out Counts);

        this.Rpt_RobateDetail.DataSource = LRobate;
        this.Rpt_RobateDetail.DataBind();
        Pager.RecordCount = Counts;
        page = Pager.CurrentPageIndex.ToString();
        if (LRobate.Rows.Count > 0)
        {
            libtnEdit.Visible = false;
            libtnDel.Visible  = false;
        }
    }