Esempio n. 1
0
 public OutStoreModel GetEntityFromBiz(BizLayer.OutStore bizOst)
 {
     OutStoreModel ost = null;
     if (bizOst != null)
     {
         ost = new OutStoreModel();
         ost.Code = bizOst.Code;
         ost.Id = bizOst.Id;
         ost.InstoreId = bizOst.InstoreId;
         ost.Number = bizOst.Number;
         ost.Department = bizOst.Department;
         ost.UnitPrice = bizOst.UnitPrice;
         ost.TotalPrice = bizOst.TotalPrice;
         ost.Department = bizOst.Department;
         ost.Type = bizOst.Type;
         ost.CreatedBy = bizOst.CreatedBy;
         ost.CreatedDate = bizOst.CreatedDate;
         ost.UpdatedBy = bizOst.UpdatedBy;
         ost.UpdatedDate = bizOst.UpdatedDate;
     }
     return ost;
 }
Esempio n. 2
0
 public UserModel GetEntityFromBiz(BizLayer.User bizUser)
 {
     UserModel user = null;
     if (bizUser != null)
     {
         user = new UserModel();
         user.Id = bizUser.Id;
         user.Name = bizUser.Name;
         user.Account = bizUser.Account;
         user.Password = bizUser.Password;
         user.Department = bizUser.Demartment;
         user.Status = bizUser.Enabled == 1;
         user.CreatedBy = bizUser.CreatedBy;
         user.CreatedDate = bizUser.CreatedDate;
         user.UpdatedBy = bizUser.UpdatedBy;
         user.UpdatedDate = bizUser.UpdatedDate;
     }
     return user;
 }
Esempio n. 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;
 }
Esempio n. 4
0
 public DepartmentModel GetEntityFromBiz(BizLayer.Department bizDpt)
 {
     DepartmentModel dpt = null;
     if (bizDpt != null)
     {
         dpt = new DepartmentModel();
         dpt.Code = bizDpt.Code;
         dpt.Name = bizDpt.Name;
         dpt.CreatedBy = bizDpt.CreatedBy;
         dpt.CreatedDate = bizDpt.CreatedDate;
         dpt.UpdatedBy = bizDpt.UpdatedBy;
         dpt.UpdatedDate = bizDpt.UpdatedDate;
         dpt.Type = bizDpt.Type;
     }
     return dpt;
 }
Esempio n. 5
0
 public InStoreModel GetEntityFromBiz(BizLayer.InStore bizInst)
 {
     InStoreModel inst = null;
     if (bizInst != null)
     {
         inst = new InStoreModel();
         inst.Code = bizInst.Code;
         inst.Id = bizInst.Id;
         inst.Number = bizInst.Number;
         inst.RemainNumber = bizInst.RemainNumber;
         inst.RemainTotalPrice = bizInst.RemainTotalPrice;
         inst.UnitPrice = bizInst.UnitPrice;
         inst.TotalPrice = bizInst.TotalPrice;
         inst.Department = bizInst.Department;
         inst.Type = bizInst.Type;
         inst.CreatedBy = bizInst.CreatedBy;
         inst.CreatedDate = bizInst.CreatedDate;
         inst.UpdatedBy = bizInst.UpdatedBy;
         inst.UpdatedDate = bizInst.UpdatedDate;
     }
     return inst;
 }
Esempio n. 6
0
 public MaterialModel GetEntityFromBiz(BizLayer.Material bizMat)
 {
     MaterialModel mat = null;
     if (bizMat != null)
     {
         mat = new MaterialModel();
         mat.Code = bizMat.Code;
         mat.Name = bizMat.Name;
         mat.CreatedBy = bizMat.CreatedBy;
         mat.CreatedDate = bizMat.CreatedDate;
         mat.UpdatedBy = bizMat.UpdatedBy;
         mat.UpdatedDate = bizMat.UpdatedDate;
         mat.Type = bizMat.Type;
     }
     return mat;
 }