private void ShowInfo(int _id) { BLL.StoreOutOrder bll = new BLL.StoreOutOrder(); Model.StoreOutOrder model = bll.GetModel(_id); ddlStoreInOrder.SelectedValue = model.StoreInOrderId.ToString(); hidReceivedBeginTime.Value = model.BeginChargingTime.ToString(); hidReceivedEndTime.Value = model.EndChargingTime.ToString(); txtUnitPriceDetails.Text = model.UnitPriceDetails; hidCustomerId.Value = model.CustomerId.ToString(); labCustomerName.Text = GetCustomerName(model.CustomerId); txtChargingCount.Text = model.Count.ToString("0.00"); txtTotalMoney.Text = model.TotalMoney.ToString("0.00"); txtInvoiceMoney.Text = model.InvoiceMoney.ToString("0.00"); txtStoredOutTime.Text = model.StoredOutTime.HasValue ? model.StoredOutTime.Value.ToString("yyyy-MM-dd") : ""; txtAdmin.Text = model.Admin; txtRemark.Text = model.Remark; BLL.StoreOutCost costBLL = new BLL.StoreOutCost(); DataTable costDT = costBLL.GetList(" StoreOutOrderId = " + _id + "").Tables[0]; this.rptCostList.DataSource = costDT; this.rptCostList.DataBind(); BLL.StoreOutGoods goodsBLL = new BLL.StoreOutGoods(); DataTable goodsDT = goodsBLL.GetList(" and A.StoreOutOrderId = " + _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.storein_order_id > 0) { this.ddlStoreInOrder.SelectedValue = this.storein_order_id.ToString(); } txtKeyWord.Text = this.keyword; txtBeginTime.Text = this.beginTime; txtEndTime.Text = this.endTime; BLL.StoreOutGoods bll = new BLL.StoreOutGoods(); this.rptList.DataSource = bll.GetSearchList(this.pageSize, this.page, _strWhere, _goodsby, out this.totalCount); this.rptList.DataBind(); //绑定页码 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("storeout_goods_list.aspx", "customer_id={0}&storein_order_id={1}&keyword={2}&beginTime={3}&endTime={4}&page={5}", this.customer_id.ToString(), this.storein_order_id.ToString(), this.keyword.ToString(), this.beginTime.ToString(), this.endTime, "__id__"); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }
private void RptBind(string _strWhere, string _goodsby) { this.page = DTRequest.GetQueryInt("page", 1); BLL.StoreOutGoods bll = new BLL.StoreOutGoods(); 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_storeout_goods.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); }