Ejemplo n.º 1
0
    private void LoadData()
    {
        string BiddingCode = Request["BiddingCode"] + "";

        RmsPM.BLL.BiddingLog cbiddingLog = new RmsPM.BLL.BiddingLog();
        cbiddingLog.BiddingCode = BiddingCode;
        System.Data.DataTable dtBiddingLog = cbiddingLog.GetBiddingLogs();
        this.dgList.DataSource = dtBiddingLog;
        this.dgList.DataBind();
    }
Ejemplo n.º 2
0
    public void LoadData()
    {
        string BiddingLogCode = Request["BiddingLogCode"] + "";

        BiddingCode = Request["BiddingCode"] + "";
        string ViewLast = Request["Viewlast"] + "";

        RmsPM.BLL.BiddingLog  cbiddingLog = new RmsPM.BLL.BiddingLog();
        System.Data.DataTable dtBiddingLog;
        if (ViewLast != "")
        {
            if (this.BiddingCode != "")
            {
                cbiddingLog.BiddingCode = BiddingCode;
            }
            dtBiddingLog = cbiddingLog.GetBiddingLogs();
        }
        else
        {
            if (BiddingLogCode != "")
            {
                cbiddingLog.BiddingLogCode = BiddingLogCode;
            }
            dtBiddingLog = cbiddingLog.GetBiddingLogs();
        }

        if (dtBiddingLog != null)
        {
            if (dtBiddingLog.Rows.Count == 0)
            {
                Response.Write(Rms.Web.JavaScript.ScriptStart);
                Response.Write("window.alert('没有修改项');");
                Response.Write(Rms.Web.JavaScript.WinClose(false));
                Response.Write(Rms.Web.JavaScript.ScriptEnd);
            }
            for (int i = 0; i < dtBiddingLog.Rows.Count; i++)
            {
                this.TdUpdateMan.InnerText   = RmsPM.BLL.SystemRule.GetUserName(dtBiddingLog.Rows[i]["UserCode"].ToString());
                this.tdCreateDate.InnerText  = System.Convert.ToString(dtBiddingLog.Rows[i]["UpdateTime"]);
                this.tdFormerMoney.InnerText = RmsPM.BLL.MathRule.GetDecimalShowString(dtBiddingLog.Rows[i]["FormerMoney"].ToString());
                this.tdTeamMoney.InnerText   = RmsPM.BLL.MathRule.GetDecimalShowString(dtBiddingLog.Rows[i]["TeamMoney"].ToString());
                break;
            }
        }
        if (this.BiddingCode == "" && BiddingLogCode != "")
        {
            this.BiddingCode = cbiddingLog.BiddingCode;
        }
    }