public void DisplayAPaper(int paperId) { PaperModel ppM = Mapper.FromDataTransferObject(PaperBLL.GetPaper(paperId)); View.Id = ppM.PaperId; View.MaNhaCungCap = ppM.PaperCode; View.TenGiay = ppM.PaperName; View.DinhLuong = ppM.Substance; View.ShortDim = ppM.ShortDim; View.LongDim = ppM.LongDim; View.UnitPrice = ppM.UnitPrice; View.ProfiMarginSet = ppM.ProfitMarginSet; View.CateId = ppM.CategoryId; View.CategoryName = (PaperCateBLL.GetRecord(ppM.CategoryId)).CategoryName; }
public void DisplayAPaperCate(int paperCateId) { View.CategoryId = (PaperCateBLL.GetRecord(paperCateId)).CategoryId; View.CategoryName = (PaperCateBLL.GetRecord(paperCateId)).CategoryName; }
public string PaperCategoryNameById(int cateId) { return((PaperCateBLL.GetRecord(cateId)).CategoryName); }