private void ShowInfo() { ZhangWei.BLL.EnterStock_Detail bll = new ZhangWei.BLL.EnterStock_Detail(); ZhangWei.Model.EnterStock_Detail model = bll.GetModel(); this.txtEnterStock_ID.Text = model.EnterStock_ID.ToString(); this.txtProduct_ID.Text = model.Product_ID.ToString(); this.txtQuantity.Text = model.Quantity.ToString(); this.txtPrice.Text = model.Price.ToString(); this.chkHaveInvoice.Checked = model.HaveInvoice; this.txtInvoiceNum.Text = model.InvoiceNum; }
private void ShowInfo() { ZhangWei.BLL.EnterStock_Detail bll = new ZhangWei.BLL.EnterStock_Detail(); ZhangWei.Model.EnterStock_Detail model = bll.GetModel(); this.lblEnterStock_ID.Text = model.EnterStock_ID.ToString(); this.lblProduct_ID.Text = model.Product_ID.ToString(); this.lblQuantity.Text = model.Quantity.ToString(); this.lblPrice.Text = model.Price.ToString(); this.lblHaveInvoice.Text = model.HaveInvoice?"是":"否"; this.lblInvoiceNum.Text = model.InvoiceNum; }