/Classes/RClient.as

https://github.com/metrobg/GLC-Flex · ActionScript · 204 lines · 84 code · 10 blank · 110 comment · 3 complexity · 3a228e1523b5af3457bb94327f8fb3b3 MD5 · raw file

  1. //package admin.client
  2. package com.metrobg.Classes
  3. {
  4. [Bindable]
  5. [RemoteClass(alias="flex.admin.client.Client")]
  6. public class RClient
  7. {
  8. public var account_type:String;
  9. public var active:String;
  10. public var activeVerbage:String = '';
  11. public var address2:String;
  12. public var address:String;
  13. public var agentID:Number;
  14. public var agentname:String;
  15. public var alt_contact:String;
  16. public var attempts:String;
  17. public var balance:Number;
  18. public var city:String;
  19. public var clientID:Number;
  20. public var csz:String;
  21. public var dob:String;
  22. public var email:String;
  23. public var expiryMonth:String;
  24. public var expiryYear:String;
  25. public var fname:String;
  26. public var initial_billing:String;
  27. public var last_billed:String;
  28. public var lname:String;
  29. public var name:String;
  30. public var next_billing:String;
  31. public var phone:String;
  32. public var reportDate:String;
  33. public var reportIn:String;
  34. public var signup:String;
  35. public var source:Number;
  36. public var sourceVerbage:String;
  37. public var ssn:String;
  38. public var state:String;
  39. public var zip:String;
  40. public var aid:Number;
  41. public function RClient()
  42. {
  43. }
  44. /* public function RClient(obj:Object=null,type:Number=2)
  45. {
  46. if (obj != null)
  47. {
  48. fill(obj,type);
  49. }
  50. }
  51. */
  52. private function setStatus(value:String):void {
  53. if (value == 'Y') {
  54. this.activeVerbage = "Active";
  55. } else {
  56. this.activeVerbage = "Inactive";
  57. }
  58. }
  59. public function clear():void
  60. {
  61. this.account_type = '';
  62. this.active = '';
  63. this.address = '';
  64. this.address2 = '';
  65. this.agentname = '';
  66. this.agentID = 0;
  67. this.alt_contact = '';
  68. this.attempts = '';
  69. this.balance = 0;
  70. this.city = '';
  71. this.clientID = 0;
  72. this.csz = '';
  73. this.dob = '';
  74. this.email = '';
  75. this.expiryMonth="00";
  76. this.expiryYear="00";
  77. this.fname = '';
  78. this.initial_billing = '';
  79. this.last_billed = '';
  80. this.next_billing = '';
  81. this.lname = '';
  82. this.name = 'No Current Client';
  83. this.phone = '';
  84. this.reportDate = 'Not Received Yet';
  85. this.reportIn = 'N';
  86. this.signup = '';
  87. this.source = 0;
  88. this.ssn = '';
  89. this.state = '';
  90. this.zip = '';
  91. }
  92. /* public function fill(obj:Object,type:Number):void {
  93. if(type == 1) {
  94. this.clientID = obj.lastResult.clients.client.clientID;
  95. this.name = obj.lastResult.clients.client.name;
  96. this.fname = obj.lastResult.clients.client.fname;
  97. this.lname = obj.lastResult.clients.client.lname;
  98. this.address = obj.lastResult.clients.client.address;
  99. this.address2 = obj.lastResult.clients.client.address2;
  100. this.city = obj.lastResult.clients.client.city;
  101. this.state = obj.lastResult.clients.client.state;
  102. this.zip = obj.lastResult.clients.client.zip;
  103. this.csz = obj.lastResult.clients.client.csz;
  104. this.phone = obj.lastResult.clients.client.phone;
  105. this.dob = obj.lastResult.clients.client.dob;
  106. this.ssn = obj.lastResult.clients.client.ssn;
  107. this.active = obj.lastResult.clients.client.active;
  108. this.alt_contact = obj.lastResult.clients.client.phone2;
  109. this.balance = obj.lastResult.clients.client.balance;
  110. this.last_billed = obj.lastResult.clients.client.last_billing;
  111. this.next_billing = obj.lastResult.clients.client.next_billing;
  112. this.signup = obj.lastResult.clients.client.signup;
  113. this.agentname = obj.lastResult.clients.client.agentname;
  114. this.email = obj.lastResult.clients.client.email;
  115. this.balance = obj.lastResult.clients.client.balance;
  116. this.account_type = obj.lastResult.clients.client.account_type;
  117. this.initial_billing = obj.lastResult.clients.client.initial_billing;
  118. this.attempts = obj.lastResult.clients.client.attempts;
  119. this.activeVerbage = obj.lastResult.clients.client.status;
  120. this.agentid = obj.lastResult.clients.client.agentid;
  121. this.expiryMonth = obj.lastResult.clients.client.expirymonth;
  122. this.expiryYear = obj.lastResult.clients.client.expiryyear;
  123. this.reportDate = obj.lastResult.clients.client.crreceipt;
  124. this.reportIn = obj.lastResult.clients.client.crreport;
  125. this.source = obj.lastResult.clients.client.source;
  126. if (reportIn == 'N') {
  127. this.reportDate = 'Not Received Yet';
  128. }
  129. } else if (type == 2) {
  130. this.account_type = obj.account_type;
  131. this.active = obj.active;
  132. this.activeVerbage = obj.activeVerbage;
  133. this.address = obj.address;
  134. this.address2 = obj.address2;
  135. this.agentid = obj.agentid;
  136. this.agentname = obj.agentname;
  137. this.alt_contact = obj.alt_contact;
  138. this.attempts = obj.attempts;
  139. this.balance = obj.balance;
  140. this.balance = obj.balance;
  141. this.city = obj.city;
  142. this.clientID = obj.clientID;
  143. this.csz = obj.csz;
  144. this.dob = obj.dob;
  145. this.email = obj.email;
  146. this.expiryMonth = obj.expiryMonth;
  147. this.expiryYear = obj.expiryYear;
  148. this.fname = obj.fname;
  149. this.initial_billing = obj.initial_billing;
  150. this.last_billed = obj.last_billed;
  151. this.lname = obj.lname;
  152. this.name = obj.name;
  153. this.next_billing = obj.next_billing;
  154. this.phone = obj.phone;
  155. this.signup = obj.signup;
  156. this.ssn = obj.ssn;
  157. this.state = obj.state;
  158. this.zip = obj.zip;
  159. // this.report_date = obj.crreceipt_date;
  160. // this.reportIn = obj.crreceipt_date;
  161. //this.source = obj.source;
  162. } else if(type == 3) {
  163. this.name = obj.lastResult.clients.client.name;
  164. this.fname = obj.lastResult.clients.client.fname;
  165. this.lname = obj.lastResult.clients.client.lname;
  166. this.address = obj.lastResult.clients.client.address;
  167. this.address2 = obj.lastResult.clients.client.address2;
  168. this.city = obj.lastResult.clients.client.city;
  169. this.state = obj.lastResult.clients.client.state;
  170. this.zip = obj.lastResult.clients.client.zip;
  171. this.csz = obj.lastResult.clients.client.csz;
  172. this.phone = obj.lastResult.clients.client.phone;
  173. this.alt_contact = obj.lastResult.clients.client.phone2;
  174. this.email = obj.lastResult.clients.client.email;
  175. this.ssn = obj.lastResult.clients.client.ssn;
  176. this.dob = obj.lastResult.clients.client.dob;
  177. this.activeVerbage = obj.lastResult.clients.client.status;
  178. this.active = obj.lastResult.clients.client.active;
  179. this.agentid = obj.lastResult.clients.client.agentid
  180. this.expiryMonth = obj.lastResult.clients.client.expirymonth;
  181. this.expiryYear = obj.lastResult.clients.client.expiryyear;
  182. this.reportDate = obj.lastResult.clients.client.crreceipt;
  183. this.reportIn = obj.lastResult.clients.client.crreport;
  184. this.source = obj.lastResult.clients.client.source;
  185. }
  186. } */
  187. }
  188. }