Subversion Repository Public Repository

litesoft

Diff Revisions 862 vs 863 for /trunk/GWT_Sandbox/InitFrom/src/org/litesoft/initfrom/server/pos/StoryTemplateGO.java

Diff revisions: vs.
  @@ -4,6 +4,7 @@
4 4 import org.litesoft.core.simpletypes.temporal.*;
5 5 import org.litesoft.core.util.*;
6 6 import org.litesoft.orsup.base.*;
7 + import org.litesoft.orsup.lazyeval.*;
7 8 import org.litesoft.orsup.otherattributeaccessors.*;
8 9 import org.litesoft.orsup.selection.*;
9 10 import org.litesoft.orsup.transact.*;
  @@ -194,7 +195,7 @@
194 195
195 196 public static final AttributeAccessorSCD CD_NextRecurranceDate = new AttributeAccessor_NextRecurranceDate();
196 197
197 - final org.litesoft.orsup.lazyeval.LazyEvalSimpleDate mNextRecurranceDate = new org.litesoft.orsup.lazyeval.LazyEvalSimpleDate();
198 + final LazyEvalCalendarYMD mNextRecurranceDate = new LazyEvalCalendarYMD();
198 199
199 200 /**
200 201 * Used in case of Daily, Monthly, and Yearly
  @@ -215,7 +216,7 @@
215 216 {
216 217 public AttributeAccessor_NextRecurranceDate()
217 218 {
218 - super( "NextRecurranceDate", "NextRecurranceDate", false, _SimpleDate );
219 + super( "NextRecurranceDate", "NextRecurranceDate", false, _CalendarYMD );
219 220 }
220 221
221 222 @Override
  @@ -227,19 +228,19 @@
227 228 @Override
228 229 public void setValueOnPO( StoryTemplate pPO, Object pValue )
229 230 {
230 - pPO.setNextRecurranceDate( to_SimpleDate( pPO.mNextRecurranceDate.getDateRes(), pValue ) );
231 + pPO.setNextRecurranceDate( to_CalendarYMD( pValue ) );
231 232 }
232 233
233 234 @Override
234 235 public Object db_getValueOnPO( StoryTemplate pPO )
235 236 {
236 - return pPO.mNextRecurranceDate.getPersistFormSimpleDate();
237 + return pPO.mNextRecurranceDate.getPersistForm();
237 238 }
238 239
239 240 @Override
240 241 public void db_setValueOnPO( StoryTemplate pPO, Object pValue )
241 242 {
242 - pPO.mNextRecurranceDate.setPersistFormSimpleDate( to_String( pValue ) );
243 + pPO.mNextRecurranceDate.setPersistForm( to_String( pValue ) );
243 244 }
244 245 }
245 246