예제 #1
0
        private void ShowInfo(int _id)
        {
            BLL.StoreWaitingGoods   bll   = new BLL.StoreWaitingGoods();
            Model.StoreWaitingGoods model = bll.GetModel(_id);

            ddlGoods.SelectedValue = model.GoodsId.ToString();
            txtStoringTime.Text    = model.StoringTime.ToString("yyyy-MM-dd");
            txtAdmin.Text          = model.Admin;
            txtRemark.Text         = model.Remark;

            BLL.StoreInGoodsVehicle goodsVehicleBLL = new BLL.StoreInGoodsVehicle();
            DataTable goodsVehicleDT = goodsVehicleBLL.GetList(" and A.StoreWaitingGoodsId = " + _id + "").Tables[0];

            this.rptGoodsVehicleList.DataSource = goodsVehicleDT;
            this.rptGoodsVehicleList.DataBind();

            BLL.Attach attachBLL = new BLL.Attach();
            DataTable  attachDT  = attachBLL.GetList(" StoreWaitingGoodsId = " + _id + "").Tables[0];

            this.rptAttachList.DataSource = attachDT;
            this.rptAttachList.DataBind();
        }
 private void RptBind(string _strWhere, string _orderby)
 {
     BLL.Attach bll = new BLL.Attach();
     this.rptList.DataSource = bll.GetList(0, _strWhere, _orderby);
     this.rptList.DataBind();
 }