/// <summary> /// 展示数据 /// </summary> /// <param name="id">记录Id</param> private void ShowInfo(int id) { BTallyBillBB tallyBillBB = new BTallyBillBB(); vBTallyBillData model = new vBTallyBillData(); BTallyBillDetailBB detailBB=new BTallyBillDetailBB(); try { //获取理货单实例 model = tallyBillBB.GetVModel(id); this.palletNo.Text = model.palletNo; this.wareLocatorNm.Text = model.wareLocatorNm; this.wareNm.Text = model.wareNm; this.isInStock.Text = model.isInStock ? "已入库" : "未入库"; this.instantState.Text = model.instantState == "01" ? "理货中" : model.instantState == "02" ? "理货已完成" : "已入库"; DataSet ds = detailBB.GetVList(" mainid=" + id); this.grid.DataSource = ds; this.grid.DataBind(); } finally { tallyBillBB.Dispose(); } }
/// <summary> /// 展示数据 /// </summary> /// <param name="id">记录Id</param> private void ShowInfo(int id) { BTallyBillBB tallyBillBB = new BTallyBillBB(); vBTallyBillData model = new vBTallyBillData(); try { model = tallyBillBB.GetVModel(id); this.id.Text = model.id.ToString(); this.palletNo.Text = model.palletNo; this.wareLocatorNo.Text = model.wareLocatorNo; this.isInStock.Checked = model.isInStock; this.instantState.Text = model.instantState; } finally { tallyBillBB.Dispose(); } }