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 _orderby) { BLL.StoreOutCost bll = new BLL.StoreOutCost(); this.rptList.DataSource = bll.GetList(0, _strWhere, _orderby); this.rptList.DataBind(); }
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 _orderby) { BLL.StoreOutCost bll = new BLL.StoreOutCost(); this.rptList.DataSource = bll.GetList(0, _strWhere, _orderby); this.rptList.DataBind(); }