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); }
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); }
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); }