-(void)setState:(PeriodState *)newState{
[selfgetRecordState];
// int i = 0;
AppDelegate_iPhone * appDelegate = (AppDelegate_iPhone *) [[UIApplicationsharedApplication]
delegate];
// Setting *settinfo= appDelegate.settingObj;
if(newState !=state){
[staterelease];
state = [newStateretain];
}
}