Beispiel #1
0
        public void Update(BizEntity.Customer.QCSubject entity)
        {
            DataCommand cmd = DataCommandManager.GetDataCommand("UpdateQCSubject");

            cmd.SetParameterValue(entity);
            cmd.ExecuteNonQuery();
        }
Beispiel #2
0
        public void Update(BizEntity.Customer.QCSubject entity)
        {
            var siblings = GetChildrenQCSubject(entity.ParentSysNo.Value);

            if (siblings != null)
            {
                if (siblings.Where(p => p.Name == entity.Name && p.SysNo != entity.SysNo).Count() > 0)
                {
                    throw new BizException("已经存在该名称的类目.");
                }
            }
            ObjectFactory <IQCSubjectDA> .Instance.Update(entity);

            ResetOrder(entity);
        }
Beispiel #3
0
 public void Update(BizEntity.Customer.QCSubject entity)
 {
     ObjectFactory <QCSubjectProcessor> .Instance.Update(entity);
 }