Пример #1
0
 public void RemoveArea(ISession session, string area)
 {
     if (this._status != INVCheckStatus.New)
     {
         throw new Exception("单据不是新建状态,无法执行该操作");
     }
     if (string.IsNullOrEmpty(area) || area.Trim().Length <= 0)
     {
         return;
     }
     INVCheckWh.Delete(session, this.OrderNumber, area);
 }
Пример #2
0
        public void AddArea(ISession session, string area)
        {
            if (this._status != INVCheckStatus.New)
            {
                throw new Exception("单据不是新建状态,无法执行该操作");
            }
            if (string.IsNullOrEmpty(area) || area.Trim().Length <= 0)
            {
                return;
            }
            INVCheckWh wh = new INVCheckWh();

            wh.OrderNumber = this._orderNumber;
            wh.AreaCode    = area;
            wh.Create(session);
        }
Пример #3
0
 public void AddArea(ISession session, string area)
 {
     if (this._status != INVCheckStatus.New)
         throw new Exception("���ݲ����½�״̬���޷�ִ�иò���");
     if (string.IsNullOrEmpty(area) || area.Trim().Length <= 0) return;
     INVCheckWh wh = new INVCheckWh();
     wh.OrderNumber = this._orderNumber;
     wh.AreaCode = area;
     wh.Create(session);
 }