public void CreateCarrier(Carrier entity, User currentUser) { if (partyDao.LoadParty(entity.Code) == null) { base.CreateCarrier(entity); } else { CreateCarrierOnly(entity); } Permission permission = new Permission(); permission.Category = permissionCategoryMgr.LoadPermissionCategory(BusinessConstants.CODE_MASTER_PERMISSION_CATEGORY_TYPE_VALUE_CARRIER); permission.Code = entity.Code; permission.Description = entity.Name; permissionMgr.CreatePermission(permission); UserPermission userPermission = new UserPermission(); userPermission.Permission = permission; userPermission.User = currentUser; userPermissionMgr.CreateUserPermission(userPermission); }
public virtual void UpdateCarrier(Carrier entity) { entityDao.UpdateCarrier(entity); }
public virtual void DeleteCarrier(Carrier entity) { entityDao.DeleteCarrier(entity); }
public virtual void CreateCarrier(Carrier entity) { entityDao.CreateCarrier(entity); }
public virtual void UpdateCarrier(Carrier entity) { Update(entity); }
public virtual void DeleteCarrier(Carrier entity) { Delete(entity); }
public virtual void CreateCarrier(Carrier entity) { Create(entity); }
public int CreateCarrierOnly(Carrier entity) { string sql = "insert into Carrier(code,RefSupplier) values(@code,@RefSupplier) "; SqlParameter[] param = new SqlParameter[2]; param[0] = new SqlParameter("@code", SqlDbType.NVarChar, 50); param[0].Value = entity.Code; param[1] = new SqlParameter("@RefSupplier", SqlDbType.NVarChar, 50); param[1].Value = entity.ReferenceSupplier; return sqlHelperDao.Create(sql, param); }
public override void CreateCarrier(Carrier entity) { CreateCarrier(entity, userMgr.GetMonitorUser()); }
public override void UpdateCarrier(Carrier entity) { Permission permission = permissionMgr.GetPermission(entity.Code); permission.Description = entity.Name; permissionMgr.UpdatePermission(permission); base.UpdateCarrier(entity); }
public override void DeleteCarrier(Carrier carrier) { DeleteCarrier(carrier.Code); }
public void UpdateCarrier(Carrier carrier) { CarrierMgr.UpdateCarrier(carrier); }
public void DeleteCarrier(Carrier carrier) { CarrierMgr.DeleteCarrier(carrier); }
public void CreateCarrier(Carrier carrier) { CarrierMgr.CreateCarrier(carrier); }