private void ShowInfo(int _id) { BLL.CheckRecord bll = new BLL.CheckRecord(); Model.CheckRecord model = bll.GetModel(_id); ddlCustomer.SelectedValue = model.CustomerId.ToString(); GoodsBind(model.CustomerId); ddlGoods.SelectedValue = model.GoodsId.ToString(); ddlVehicle.SelectedValue = model.VehicleId.ToString(); ddlHandlingMode.SelectedValue = model.HandlingModeId.ToString(); txtCheckTime.Text = model.CheckTime.ToString("yyyy-MM-dd"); txtInspectionNumber.Text = model.InspectionNumber; txtCaseNumber.Text = model.CaseNumber; txtCheckResult.Text = model.CheckResult; txtRealName.Text = model.RealName; txtLinkTel.Text = model.LinkTel; txtAdmin.Text = model.Admin; txtRemark.Text = model.Remark; BLL.CheckCost checkCostBLL = new BLL.CheckCost(); DataTable checkCostDT = checkCostBLL.GetList(" CheckRecordId = " + _id + "").Tables[0]; this.rptCostList.DataSource = checkCostDT; this.rptCostList.DataBind(); }
private void RptBind(string _strWhere, string _orderby) { BLL.CheckCost bll = new BLL.CheckCost(); this.rptList.DataSource = bll.GetList(0, _strWhere, _orderby); this.rptList.DataBind(); }