PageRenderTime 26ms CodeModel.GetById 13ms app.highlight 10ms RepoModel.GetById 1ms app.codeStats 0ms

/webccr/src/com/emis/caesarui/webccr/core/promote/SM.java

https://bitbucket.org/sanliou/synccr
Java | 177 lines | 135 code | 32 blank | 10 comment | 0 complexity | 563c8b6a67f0ebe716776eff687505de MD5 | raw file
  1package com.emis.caesarui.webccr.core.promote;
  2
  3import java.sql.ResultSet;
  4import java.sql.SQLException;
  5import java.util.ArrayList;
  6
  7/**
  8 *  小白單表頭
  9 */
 10public class SM extends PMBase implements Cloneable {
 11  String RPT_LIM;
 12  String SHM_CNT;
 13  String SM_ADMIT_CASE;
 14  String PRE_ORDER_ACTIVITY;
 15  String IS_RP;
 16  String IS_CHT;
 17  String IS_GEN;
 18  String IS_MULTI;
 19  //add by Ares 20190417 小白單代收憑證
 20  String IS_B;
 21  String IS_C;
 22  String IS_COLLECT;
 23
 24  ArrayList<SM_P> detlp = new ArrayList<SM_P>(); // 小白單促銷商品檔
 25  ArrayList<SM_N> detln = new ArrayList<SM_N>(); // 小白單除外料號檔
 26  ArrayList<SM_S> detls = new ArrayList<SM_S>(); // 小白單列印樣式
 27  ArrayList<SM_F> detlf = new ArrayList<SM_F>(); // 小白單促銷單號檔
 28  ArrayList<SM_B> detlb = new ArrayList<SM_B>(); // 小白單適用銀行檔
 29  ArrayList<SM_R> detlr = new ArrayList<SM_R>(); // 小白單適用舊機回收
 30  ArrayList<SM_INSU> detlinsu = new ArrayList<SM_INSU>(); //add by Ares 20180613 新鈦金優惠券
 31
 32  public SM (ResultSet rs) throws SQLException {
 33    PM_NO = rs.getString("SM_NO");
 34    TOPIC = rs.getString("TOPIC");
 35    DATE_S = rs.getString("DATE_S");
 36    DATE_E = rs.getString("DATE_E");
 37    TIME_S = rs.getString("TIME_S");
 38    TIME_E = rs.getString("TIME_E");
 39    WEEK = rs.getString("WK");
 40    C_RANK = rs.getString("C_RANK");
 41    M_GROUP = rs.getString("M_GROUP");
 42    BI_ACTIVITY_NO = rs.getString("BI_ACTIVITY_NO");
 43    M_ADD_POINT = rs.getString("M_ADD_POINT"); //資料表無此欄位
 44    PM_COM_NO = rs.getString("PM_COM_NO");  //SOB_ID
 45    CV_NO = rs.getString("CV_NO");             //資料表無此欄位
 46    S_NO = rs.getString("S_NO");
 47    S_ATTRIB = rs.getString("S_ATTRIB");
 48    R_NO = rs.getString("R_NO");
 49    S_GROUP = rs.getString("S_GROUP");
 50
 51    //=================================================
 52    RPT_LIM = rs.getString("RPT_LIM");           // 列印限制  1有交易限制 2無交易限制
 53    SHM_CNT = rs.getString("SHM_CNT");         // 適用二手機 1一次/2多次/3不適用
 54    SM_ADMIT_CASE = rs.getString("SM_ADMIT_CASE");           // 個案開帳設定 Y/N
 55    PRE_ORDER_ACTIVITY = rs.getString("PRE_ORDER_ACTIVITY");// 適用預購活動註記 Y/N
 56    IS_RP = rs.getString("IS_RP");                  // 適用領機
 57    IS_CHT = rs.getString("IS_CHT");               // 適用資費
 58    IS_GEN = rs.getString("IS_GEN");               // 適用一般
 59    IS_MULTI = rs.getString("IS_MULTI");          // 是否列印多張
 60    //add by Ares 20190417 小白單代收憑證
 61    IS_B = rs.getString("IS_B");                  // 不限制B料號列印
 62    IS_C = rs.getString("IS_C");                  // 不限制C料號列印
 63    IS_COLLECT = rs.getString("IS_COLLECT");      // 是否列印代收憑證(不限制補印時間)
 64
 65  }
 66
 67  public String getRPT_LIM() {
 68    return RPT_LIM;
 69  }
 70
 71  public String getSHM_CNT() {
 72    return SHM_CNT;
 73  }
 74
 75  public String getSM_ADMIT_CASE() {
 76    return SM_ADMIT_CASE;
 77  }
 78
 79  public String getPRE_ORDER_ACTIVITY() {
 80    return PRE_ORDER_ACTIVITY;
 81  }
 82
 83  public String getIS_RP() {
 84    return IS_RP;
 85  }
 86
 87  public String getIS_CHT() {
 88    return IS_CHT;
 89  }
 90
 91  public String getIS_GEN() {
 92    return IS_GEN;
 93  }
 94
 95  public String getIS_MULTI() {
 96    return IS_MULTI;
 97  }
 98
 99  //add by Ares 20190417 小白單代收憑證
100  public String getIS_B() {
101      return IS_B;
102  }
103
104  public String getIS_C() {
105        return IS_C;
106    }
107
108  public String getIS_COLLECT() {
109        return IS_COLLECT;
110    }
111
112  public void addDetlp(SM_P smp) {
113    detlp.add(smp);
114  }
115
116  public ArrayList getDetlp() {
117    return detlp;
118  }
119
120  public void addDetln(SM_N smn) {
121    detln.add(smn);
122  }
123
124  public ArrayList getDetln() {
125    return detln;
126  }
127
128  public void addDetl(SM_S sms) {
129    detls.add(sms);
130  }
131
132  public ArrayList getDetl() {
133    return detls;
134  }
135
136  public void addDetlf(SM_F smf) {
137    detlf.add(smf);
138  }
139
140  public ArrayList getDetlf() {
141    return detlf;
142  }
143
144  public void addDetlb(SM_B smb) {
145    detlb.add(smb);
146  }
147
148  public ArrayList getDetlb() {
149    return detlb;
150  }
151
152  public void addDetlr(SM_R smr) {
153    detlr.add(smr);
154  }
155
156  public ArrayList getDetlr() {
157    return detlr;
158  }
159  //add by Ares 20180613 新鈦金優惠券
160  public void addDetlinsu(SM_INSU sminsu) {
161      detlinsu.add(sminsu);
162  }
163  //add by Ares 20180613 新鈦金優惠券
164  public ArrayList getDetlinsu() {
165      return detlinsu;
166  }
167
168    //add by Ares 20191014 促案判斷限指定會員群組內容
169    public String getC_RANK() {
170        return C_RANK;
171    }
172
173    public String getM_GROUP() {
174        return M_GROUP;
175    }
176
177}