Esempio n. 1
0
        public BorType UpdateBorType(BorType updBorType)
        {
            BorType borType = null;

            try
            {
                _borTypeDal.Update(updBorType);
                borType = updBorType;
            }
            catch (RepositoryException ex)
            {
                throw new AisinoMesServiceException("修改工艺类型信息失败!", ex);
            }
            return(borType);
        }
Esempio n. 2
0
        public BorType AddBorType(BorType newBorType)
        {
            BorType borType = null;

            try
            {
                _borTypeDal.Add(newBorType);
                borType = newBorType;
            }
            catch (RepositoryException ex)
            {
                throw new AisinoMesServiceException("添加工艺类型信息失败!", ex);
            }
            return(borType);
        }
Esempio n. 3
0
        public BorType DeleteBorType(BorType delBorType)
        {
            BorType borType = null;

            try
            {
                delBorType.bor_type_deleted = true;
                _borTypeDal.Update(delBorType);
                borType = delBorType;
                return(borType);
            }
            catch (RepositoryException ex)
            {
                throw new AisinoMesServiceException("删除工艺类型信息失败!", ex);
            }
        }
Esempio n. 4
0
 public SelPrjBorDlg(long id, BorType bt)
 {
     InitializeComponent();
     SelBorId = id;
     m_bt     = bt;
 }