//验证延期次数是否合法 private bool CheckDelayTimes(int type, CApplyObject applyObject) { try { if (type > 0) { return(CApplyObject.IsCanDelay(applyObject, m_delaymaxTimes) > 0); } else //申请新的不需要验证延期次数判断 { return(true); } } catch (Exception) { throw; } }
//验证是否还允许延期申请 private bool CanDoDelay() { try { //InitializeApplyList(); if (this.m_listObject.Count > 0) { CApplyObject obj = (CApplyObject)m_listObject[0]; int times = ComponentCommand.GetDealyTimes(); return(CApplyObject.IsCanDelay(obj, times) > 0); } else { return(false); } } catch (Exception) { throw; } }