예제 #1
0
 public void Update(StockModel instoreModel)
 {
     var dbInstore = GetBizModel(instoreModel);
     _bizStock.Update(dbInstore);
 }
예제 #2
0
 public BizLayer.Stock GetBizModel(StockModel stockModel)
 {
     BizLayer.Stock bizStock = null;
     if (stockModel != null)
     {
         bizStock = new BizLayer.Stock();
         bizStock.Code = stockModel.Code;
         bizStock.Id = stockModel.Id;
         bizStock.InstoreId = stockModel.InstoreId;
         bizStock.Number = stockModel.Number;
         bizStock.UnitPrice = stockModel.UnitPrice;
         bizStock.TotalPrice = stockModel.TotalPrice;
         bizStock.Department = stockModel.Department;
         bizStock.Type = stockModel.Type;
         bizStock.CreatedBy = stockModel.CreatedBy;
         bizStock.CreatedDate = stockModel.CreatedDate;
         bizStock.UpdatedBy = stockModel.UpdatedBy;
         bizStock.UpdatedDate = stockModel.UpdatedDate;
     }
     return bizStock;
 }
예제 #3
0
 public StockModel GetEntityFromBiz(BizLayer.Stock bizStock)
 {
     StockModel inst = null;
     if (bizStock != null)
     {
         inst = new StockModel();
         inst.Code = bizStock.Code;
         inst.Id = bizStock.Id;
         inst.InstoreId = bizStock.InstoreId;
         inst.Number = bizStock.Number;
         inst.UnitPrice = bizStock.UnitPrice;
         inst.TotalPrice = bizStock.TotalPrice;
         inst.Department = bizStock.Department;
         inst.Type = bizStock.Type;
         inst.CreatedBy = bizStock.CreatedBy;
         inst.CreatedDate = bizStock.CreatedDate;
         inst.UpdatedBy = bizStock.UpdatedBy;
         inst.UpdatedDate = bizStock.UpdatedDate;
     }
     return inst;
 }
예제 #4
0
 public void Create(StockModel dpt)
 {
     var dbStock = GetBizModel(dpt);
     _bizStock.Create(dbStock);
 }