Ejemplo n.º 1
0
    /// <summary>
    /// 展示数据
    /// </summary>
    /// <param name="id">记录Id</param>
    private void ShowInfo(int id)
    {
        LWareLocatorBB wareLocatorBB = new LWareLocatorBB();
        vLWareLocatorData model = new vLWareLocatorData();
        try
        {
            model = wareLocatorBB.GetVModel(id);
            this.tbWareLocatorNo.Text = model.wareLocatorNo;
            this.tbWareLocatorNm.Text = model.wareLocatorNm;
            this.ddlWare.SelectedValue = model.wareNo;
            this.ddlIsBoard.SelectedValue = model.isBoard.ToString();

            if (model.maxBoxNum != 0)
            {
                this.tbMaxBoxNum.Text = model.maxBoxNum.ToString();
            }

            this.ddlDownWareLocator.SelectedValue = model.downWareLocatorNo;
            this.ddlReturnWareLocator.SelectedValue = model.returnWareLocatorNo;
            this.hidMaterialNo.Value = model.materialNo;
            this.textMaterialDesc.Value = model.materialDesc;
        }
        finally
        {
            wareLocatorBB.Dispose();
        }
    }