상속: com.Sconit.Entity.MasterData.Party
예제 #1
0
 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);
 }
예제 #2
0
 public virtual void UpdateCarrier(Carrier entity)
 {
     entityDao.UpdateCarrier(entity);
 }
예제 #3
0
 public virtual void DeleteCarrier(Carrier entity)
 {
     entityDao.DeleteCarrier(entity);
 }
예제 #4
0
 public virtual void CreateCarrier(Carrier entity)
 {
     entityDao.CreateCarrier(entity);
 }
예제 #5
0
 public virtual void UpdateCarrier(Carrier entity)
 {
     Update(entity);
 }
예제 #6
0
 public virtual void DeleteCarrier(Carrier entity)
 {
     Delete(entity);
 }
예제 #7
0
 public virtual void CreateCarrier(Carrier entity)
 {
     Create(entity);
 }
예제 #8
0
        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);
        }
예제 #9
0
 public override void CreateCarrier(Carrier entity)
 {
     CreateCarrier(entity, userMgr.GetMonitorUser());
 }
예제 #10
0
        public override void UpdateCarrier(Carrier entity)
        {
            Permission permission = permissionMgr.GetPermission(entity.Code);
            permission.Description = entity.Name;
            permissionMgr.UpdatePermission(permission);

            base.UpdateCarrier(entity);
        }
예제 #11
0
 public override void DeleteCarrier(Carrier carrier)
 {
     DeleteCarrier(carrier.Code);
 }
예제 #12
0
 public void UpdateCarrier(Carrier carrier)
 {
     CarrierMgr.UpdateCarrier(carrier);
 }
예제 #13
0
 public void DeleteCarrier(Carrier carrier)
 {
     CarrierMgr.DeleteCarrier(carrier);
 }
예제 #14
0
 public void CreateCarrier(Carrier carrier)
 {
     CarrierMgr.CreateCarrier(carrier);
 }