- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
package com.db.prds.modules.maintainModelLimitations.model
{
import ***.modules.common.tableBasedModule.model.SearchParams;
public class MaintainLimitationSearchParams extends SearchParams
{
private var _limitationUid : String;
private var _limitationUidSetted : Boolean;
public function get limitationUid () : String
{
return _limitationUid;
}
public function set limitationUid (value : String) : void
{
_limitationUidSetted = true;
_limitationUid = value;
}
private var _limitationCategory : String;
private var _limitationCategorySetted : Boolean;
public function get limitationCategory () : String
{
return _limitationCategory;
}
public function set limitationCategory (value : String) : void
{
_limitationCategorySetted = true;
_limitationCategory = value;
}
private var _limitationDescription : String;
private var _limitationDescriptionSetted : Boolean;
public function get limitationDescription () : String
{
return _limitationDescription;
}
public function set limitationDescription (value : String) : void
{
_limitationDescriptionSetted = true;
_limitationDescription = value;
}
}
}
package com.db.prds.modules.maintainModelLimitations.model
{
import ***.domain.general.BaseDataEntity;
import ***.modules.common.tableBasedModule.model.ITableItemWithStatus;
import ***.modules.common.tableBasedModule.model.TableBaseItem;
public class MaintainLimitationTableItem extends TableBaseItem implements ITableItemWithStatus
{
public function MaintainLimitationTableItem (data : BaseDataEntity)
{
super(data);
}
private var _limitationId : uint;
public function get limitationId ():uint{
return _limitationId;
}
public function set limitationId (value:uint):void{
_limitationId = value;
}
private var _limitationUid : String;
public function get limitationUid ():String{
return _limitationUid;
}
public function set limitationUid (value:String):void{
_limitationUid = value;
}
private var _limitationCategory : String;
public function get limitationCategory ():String{
return _limitationCategory;
}
public function set limitationCategory (value:String):void{
_limitationCategory = value;
}
private var _limitationDescription : String;
public function get limitationDescription ():String{
return _limitationDescription;
}
public function set limitationDescription (value:String):void{
_limitationDescription = value;
}
}}
такие разные классы...
Голова кружится, не уверена что не спутала типы.
kyzi007 06.08.2012 17:17 # +1
Зы. У нас уже 600 классов.
roman-kashitsyn 06.08.2012 17:24 # +2
kyzi007 06.08.2012 17:43 # +2
guest 14.08.2012 22:00 # 0
roman-kashitsyn 14.08.2012 22:01 # 0
ком ду би, пердос
bormand 06.08.2012 17:27 # +4
kyzi007 06.08.2012 18:05 # −1
package com.db.prds.modules.maintainModelLimitat ions.model
{
import com.db.prds.domain.general.BaseDataEntit y;
import com.db.prds.modules.common.tableBasedMod ule.model.ITableItemWithStatus;
import com.db.prds.modules.common.tableBasedMod ule.model.TableBaseItem;
/**
* MaintainLimitationTableItem
*
* @author kyzi007
* @date 06.08.12 15:27
* @description
*/
public class MaintainLimitationTableItem extends TableBaseItem implements ITableItemWithStatus
{
public function MaintainLimitationTableItem (data : BaseDataEntity)
{
super(data);
}
private function get limitation():Limitation
{
return this.data as Limitation;
}
public function get limitationId ():uint{
return limitation.limitationId;
}
public function set limitationId (value:uint):void{
limitation.limitationId = value;
}
public function get limitationUid ():String{
return limitation.limitationUid;
}
public function set limitationUid (value:String):void{
limitation.limitationUid = value;
}
public function get limitationCategory ():String{
return limitation.limitationCategory;
}
public function set limitationCategory (value:String):void{
limitation.limitationCategory = value;
}
public function get limitationDescription ():String{
return limitation.limitationDescription;
}
public function set limitationDescription (value:String):void{
limitation.limitationDescription = value;
}
}
}
kyzi007 06.08.2012 18:05 # −1
package com.db.prds.modules.maintainModelLimitat ions.model
{
import com.db.prds.domain.product.Product;
/**
* Limitation
*
* @author kyzi007
* @date 06.08.12 18:01
* @description
*/
public class Limitation extends Product
{
private var _limitationId : uint;
public function get limitationId () : uint
{
return _limitationId;
}
public function set limitationId (value : uint) : void
{
_limitationId = value;
}
private var _limitationUid : String;
public function get limitationUid () : String
{
return _limitationUid;
}
public function set limitationUid (value : String) : void
{
_limitationUid = value;
}
private var _limitationCategory : String;
public function get limitationCategory () : String
{
return _limitationCategory;
}
public function set limitationCategory (value : String) : void
{
_limitationCategory = value;
}
private var _limitationDescription : String;
public function get limitationDescription () : String
{
return _limitationDescription;
}
public function set limitationDescription (value : String) : void
{
_limitationDescription = value;
}
}
}
guest 07.08.2012 09:43 # +9
У вас на работе так по никам и общаются?
kyzi007 07.08.2012 14:27 # 0
Ну народа не так много чтобы ник не запомнить.
kyzi007 06.08.2012 18:07 # −1
override protected function parseResponse (response : Object) : void
{
super.parseResponse(response);
var result : Array = new Array();
var responseList : IList = response as IList;
var product : Limitation;
if (responseList != null)
{
for (var i : uint = 0; i < responseList.length; i++)
{
var responseVO : GetLimitationOutputVO = responseList.getItemAt(i) as GetLimitationOutputVO;
if (responseVO != null)
{
_totalRecords = responseVO.totalRownum;
var responseItem : TLimitation = responseVO.limitations;
product = new Limitation();
product.id = responseItem.pkId; // using pkId as BaseEntity id, should return it in subsequent calls back to DB
product.isLastRecord = responseItem.latestRecord == 1;
product.isPublished = responseItem.publish == 1;
product.lastAction = new Action(responseItem.lastAction);
product.lastActionDate = responseItem.lastActionDate;
product.status = new Status(responseItem.status);
product.user = new User(responseItem.userid, responseItem.userName);
product.validEndDate = responseItem.validEndDate;
product.validStartDate = responseItem.validStartDate;
product.comments = responseItem.comments;
product.name = responseItem.attribution;
product.wasPublished = responseVO.wasPublished == 1;
product.limitationCategory = responseItem.limitationCategory;
product.limitationDescription = responseItem.limitationDescription;
product.limitationId = responseItem.limitationId;
product.limitationUid = responseItem.limitationUid;
result.push(product);
}
}
}
this.setResult(result);
}
roman-kashitsyn 06.08.2012 18:12 # +5
kyzi007 06.08.2012 18:15 # 0
bormand 06.08.2012 18:18 # +5
Хотя... походу он уже есть, и мы все в нем состоим.
rat4 06.08.2012 18:22 # +4
3.14159265 06.08.2012 19:07 # +1
Куда катится говнкод?
bormand 06.08.2012 19:34 # +2
eth0 06.08.2012 19:46 # +1
rat4 06.08.2012 20:07 # +4
eth0 06.08.2012 20:39 # +1
3.14159265 06.08.2012 20:17 # +2
Lure Of Chaos 06.08.2012 21:26 # +5
и вместо 10 объектов одного годного класса мы получаем 1 абстрактный и 10 его потомков, и 10 уникальных объектов, заточенных под нужную функциональность...