private void ShowInfo(int _id) { BLL.StoreInOrder bll = new BLL.StoreInOrder(); Model.StoreInOrder model = bll.GetModel(_id); ddlCustomer.SelectedValue = model.CustomerId.ToString(); txtAccountNumber.Text = model.AccountNumber; txtInspectionNumber.Text = model.InspectionNumber; txtBeginChargingTime.Text = model.BeginChargingTime.ToString("yyyy-MM-dd"); txtChargingCount.Text = model.ChargingCount.ToString(); txtSuttleWeight.Text = model.SuttleWeight.ToString("0.00"); txtAdmin.Text = model.Admin; txtRemark.Text = model.Remark; BLL.StoreInUnitPrice unitpriceBLL = new BLL.StoreInUnitPrice(); DataTable unitpriceDT = unitpriceBLL.GetList(" StoreInOrderId = " + _id + "").Tables[0]; this.rptUnitPriceList.DataSource = unitpriceDT; this.rptUnitPriceList.DataBind(); BLL.StoreInCost costBLL = new BLL.StoreInCost(); DataTable costDT = costBLL.GetList(" StoreInOrderId = " + _id + "").Tables[0]; this.rptCostList.DataSource = costDT; this.rptCostList.DataBind(); BLL.StoreInGoods goodsBLL = new BLL.StoreInGoods(); DataTable goodsDT = goodsBLL.GetList(" and A.StoreInOrderId = " + _id + " ").Tables[0]; this.rptGoodsList.DataSource = goodsDT; this.rptGoodsList.DataBind(); }
private void RptBind(string _strWhere, string _goodsby) { this.page = DTRequest.GetQueryInt("page", 1); if (this.customer_id > 0) { this.ddlCustomer.SelectedValue = this.customer_id.ToString(); } if (this.goods_id > 0) { this.ddlGoods.SelectedValue = this.goods_id.ToString(); } txtBeginTime.Text = this.beginTime; txtEndTime.Text = this.endTime; BLL.StoreInGoods bll = new BLL.StoreInGoods(); this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _goodsby, out this.totalCount); this.rptList.DataBind(); //绑定页码 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("dialog_store_in_goods_list.aspx", "customer_id={0}&goods_id={1}&beginTime={2}&endTime={3}&page={4}", this.customer_id.ToString(), this.goods_id.ToString(), this.beginTime.ToString(), this.endTime, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }