/// <summary> /// 展示数据 /// </summary> /// <param name="id">记录Id</param> private void ShowInfo(int id) { LMaterialBB materialBB = new LMaterialBB(); vLMaterialData model = new vLMaterialData(); try { model = materialBB.GetVModel(id); this.id.Text = model.id.ToString(); this.materialNo.Text = model.materialNo; this.materialDesc.Text = model.materialDesc; this.materialGroup.Text = model.materialGroup.ToString(); this.invntItem.Text = model.invntItem; this.buyUnitMsr.Text = model.buyUnitMsr; this.numInBuy.Text = model.numInBuy.ToString(); this.salUnitMsr.Text = model.salUnitMsr; this.numInSale.Text = model.numInSale.ToString(); this.isStocked.Text = model.isStocked; this.isRoutinePackage.Text = model.isRoutinePackage; this.isStandardBox.Text = model.isStandardBox; this.manBtchNum.Text = model.manBtchNum; this.validFor.Text = model.validFor; if (model.validFrom != string.Empty && model.validFrom != null) { DateTime validFrom = Convert.ToDateTime(model.validFrom); this.validFrom.Text = validFrom.ToShortDateString(); } if (model.validTo != string.Empty && model.validTo != null) { DateTime validTo = Convert.ToDateTime(model.validTo); this.validTo.Text = validTo.ToShortDateString(); } this.frozenFor.Text = model.frozenFor; if (model.frozenFrom != string.Empty && model.frozenFrom != null) { DateTime frozenFrom = Convert.ToDateTime(model.frozenFrom); this.frozenFrom.Text = frozenFrom.ToShortDateString(); } if (model.frozenTo != string.Empty && model.frozenTo != null) { DateTime frozenTo = Convert.ToDateTime(model.frozenTo); this.frozenTo.Text = frozenTo.ToShortDateString(); } this.invntryUom.Text = model.invntryUom; this.U_CNSize.Text = model.U_CNSize; this.U_ENSize.Text = model.U_ENSize; this.U_StanWiht.Text = model.U_StanWiht.ToString(); this.U_PullStan.Text = model.U_PullStan; this.U_DrawHlink.Text = model.U_DrawHlink; this.U_LablHlink.Text = model.U_LablHlink; this.U_CCVOHlink.Text = model.U_CCVOHlink; this.U_UintQty.Text = model.U_UintQty.ToString(); this.U_BoxQty.Text = model.U_BoxQty.ToString(); this.U_CodeNo.Text = model.U_CodeNo; this.U_BoxSize.Text = model.U_BoxSize; this.materialNm_CH.Text = model.materialNm_CH; this.materialNm_EN.Text = model.materialNm_EN; this.U_PackWay.Text = model.U_PackWay; this.wareSortNo.Text = model.wareSortNo; this.weightDiffWaring.Text = model.weightDiffWaring.ToString(); } finally { materialBB.Dispose(); } }
/// <summary> /// 展示数据 /// </summary> /// <param name="id">记录Id</param> private void ShowInfo(int id) { LMaterialBB materialBB = new LMaterialBB(); vLMaterialData model = new vLMaterialData(); try { model = materialBB.GetVModel(id); this.lbMaterialNo.Text = model.materialNo;//物料编码 this.lbMaterialDesc.Text = model.materialDesc;//物料描述 this.lbIsRoutinePackageDesc.Text = model.isRoutinePackageDesc;//是否常规包装 this.lbIsStandardBoxDesc.Text = model.isStandardBoxDesc;//是否标准箱 this.lbInvntryUom.Text = model.invntryUom;//计量单位 this.lbU_CNSize.Text = model.U_CNSize;//规格型号 this.lbU_UintQty.Text = model.U_UintQty.ToString();//单体数量 this.lbU_BoxQty.Text = model.U_BoxQty.ToString();//整箱数量 this.lbU_Material.Text = model.U_Material.ToString();//材质 this.lbU_StanWiht.Text = model.U_StanWiht.ToString();//标准重量 this.tbSystemWeight.Text = model.systemWeight.ToString(); this.tbWeightDiffWaring.Text = model.weightDiffWaring.ToString();//单个称重差异预警值(KG) this.ddlWareSort.SelectedValue = model.wareSortNo;//库位分类 } finally { materialBB.Dispose(); } }