Пример #1
0
  /** 管理修改 */
  public void getGenalManageLabel(List<MyLabel> myLabels) {
    // if (uri.hasRight("sb81")) {
    MyLabel ml = new MyLabel();
    ml.setHref(this.path + "/finance/financeOrderList.do?thisAction=editOrder&id=" + this.id);
    ml.setLabText("[编辑]");
    // ml.setEndText("<br/>");
    myLabels.add(ml);
    commonOperate.setMyLabels(myLabels);
    // }

    // if (uri.hasRight("sb82")) {
    MyLabel m2 = new MyLabel();
    StringBuffer sb = new StringBuffer();
    sb.append("onclick=\"");
    sb.append("return confirm('确定删除吗?');");
    sb.append("\"");
    m2.setEvents(sb.toString());

    m2.setHref(
        this.path
            + "/finance/financeOrderList.do?thisAction=deleteFinanceOrder&id="
            + this.id
            + "&forwardPageFlag=General");
    m2.setLabText("[删除]");
    m2.setEndText("<br/>");
    myLabels.add(m2);
    commonOperate.setMyLabels(myLabels);
    // }
  }
Пример #2
0
 // 没有关联修改链接
 public String getCommonOperateTextNoRelate() {
   List<MyLabel> myLabels = new ArrayList<MyLabel>();
   if (this.tranType == null || this.status == null) {
     return "";
   } else {
     getGenalManageLabel(myLabels);
     getRemarkLabel(myLabels);
   }
   String commonOperateText = commonOperate.getOperateText();
   // System.out.println(commonOperateText);
   return commonOperateText;
 }
Пример #3
0
  public String getTradeOperate() {
    List<MyLabel> myLabels = new ArrayList<MyLabel>();
    if (this.tranType == null) {
      System.out.println("order id:" + this.id + "tranType is null");
      return "";
    }

    if (this.status == null) {
      System.out.println("order id:" + this.id + "status is null");
      return "";
    }

    getGeneralOperate(myLabels);

    String operateText = operate.getOperateText();

    return operateText;
  }
Пример #4
0
  /** 备注修改 */
  public void getRemarkLabel(List<MyLabel> myLabels) {
    if (uri.hasRight("sb30")) {
      MyLabel ml = new MyLabel();
      StringBuffer sb = new StringBuffer();
      sb.append("onclick=\"");
      sb.append("showDiv11(");
      sb.append("'" + this.id + "'");
      sb.append(")\"");
      ml.setEvents(sb.toString());
      if (this.memo != null) {
        ml.setLabText("<font color=\"red\">[备注]</font>");
      } else {
        ml.setLabText("[备注]");
      }
      // ml.setEndText("<br/>");
      myLabels.add(ml);

      commonOperate.setMyLabels(myLabels);
    }
  }
Пример #5
0
  public void getGeneralOperate(List<MyLabel> myLabels) {

    // 未还债务
    if (this.tranType == TRANTYPE_1401 && this.status == STATUS_10) {
      // if (uri.hasRight("sb43")) {
      MyLabel ml = new MyLabel();
      StringBuffer sb = new StringBuffer();
      sb.append("onclick=\"");
      sb.append(
          "openWindow(500,500,'../finance/financeOrderList.do?thisAction=addRepayCreditOrder");
      sb.append("&id=" + this.id);
      sb.append("')");
      sb.append("\"");
      ml.setEvents(sb.toString());
      ml.setLabText("[还款]");
      ml.setEndText("<br/>");
      myLabels.add(ml);
      operate.setMyLabels(myLabels);
      // }
    }

    // 未收债权
    if (this.tranType == TRANTYPE_1301 && this.status == STATUS_10) {
      // if (uri.hasRight("sb43")) {
      MyLabel ml = new MyLabel();
      StringBuffer sb = new StringBuffer();
      sb.append("onclick=\"");
      sb.append(
          "openWindow(500,500,'../finance/financeOrderList.do?thisAction=addRepayCreditOrder");
      sb.append("&id=" + this.id);
      sb.append("')");
      sb.append("\"");
      ml.setEvents(sb.toString());
      ml.setLabText("[收款]");
      ml.setEndText("<br/>");
      myLabels.add(ml);
      operate.setMyLabels(myLabels);
      // }
    }

    // /待处理新订单
    // if (this.tranType == 1 && this.status == 1) {
    // if (uri.hasRight("sb43")) {
    // MyLabel ml = new MyLabel();
    // StringBuffer sb = new StringBuffer();
    // sb.append("onclick=\"");
    // sb.append("showDiv17(");
    // sb.append("'" + this.id + "'");
    // sb.append(")\"");
    // ml.setEvents(sb.toString());
    // ml.setLabText("[取消出票]");
    // ml.setEndText("<br/>");
    // myLabels.add(ml);
    // operate.setMyLabels(myLabels);
    // }
    // if (uri.hasRight("sb42")) {
    // MyLabel ml2 = new MyLabel();
    // StringBuffer sb = new StringBuffer();
    // sb.append("onclick=\"");
    // sb.append("showDiv9(");
    // sb.append("'" + this.id + "',");
    // sb.append("'" + this.totalAmount + "',");
    // sb.append("'" + this.getEntryOrderDate() + "'");
    // sb.append(")\"");
    // ml2.setEvents(sb.toString());
    // ml2.setLabText("[申请支付]");
    // ml2.setEndText("<br/>");
    // myLabels.add(ml2);
    // operate.setMyLabels(myLabels);
    // }
    // }
  }