EASBOS 获取当前财务会计期间

// SystemEnum.COSTMANAGEMENT_VALUE:这个参数 表示哪个模块的比如成本模块、比如出纳模块


ISystemStatusCtrol iSSC = SystemStatusCtrolFactory.getRemoteInstance();
    String oql = " where company='"+SysContext.getSysContext().getCurrentFIUnit().getId()
+ "' and systemStatus.name ="+ SystemEnum.COSTMANAGEMENT_VALUE;

    if (iSSC.exists(oql)) {

    SystemStatusCtrolInfo ssc = iSSC.getSystemStatusCtrolInfo(oql);

    if (ssc != null) {

    PeriodInfo currentPeriod = ssc.getCurrentPeriod();

    if (currentPeriod != null) {

    currentPeriod = PeriodFactory.getRemoteInstance().getPeriodInfo(new ObjectUuidPK(currentPeriod.getId()));
   
    if(Integer.parseInt(year)<=currentPeriod.getPeriodYear()&& Integer.parseInt(period)    
    MsgBox.showInfo("当前成本管理-会计期间已经结帐,不允许反审核!");
        return;
    }
   
   

    }

    }

    }

你可能感兴趣的:(EAS,BOS)