EAS_客户端设置分录单元格背景色灰色不可编辑

复制代码
  public void onLoad()
    throws Exception
  {
    if ((!this.currentCompany.isIsBizUnit()) && (!"FINDVIEW".equalsIgnoreCase(getOprtState()))) {
      throw new NTException(NTException.CHANGE_TO_BIZUNIT);
    }
    super.onLoad();
    this.tblMain.checkParsed();
    init();
    addLine();
    setCellValue("exchangeRate", DEFAULT_EXCHANGERATE);
    int count = tblMain.getRowCount();
    for (int i = 0; i <count; i++) {
        tblMain.getCell(i, "draftNumber").getStyleAttributes().setLocked(true);
        tblMain.getCell(i, "draftNumber").getStyleAttributes().setBackground(new Color(15263971));

    }
  }
复制代码

 

posted @   凉了记忆  阅读(47)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」
· 写一个简单的SQL生成工具
点击右上角即可分享
微信分享提示