PageRenderTime 37ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 1ms

/App_Code/StaffRmb/StaffRmb.designer.cs

https://github.com/mailekah/AgapeConnect1
C# | 3642 lines | 3280 code | 353 blank | 9 comment | 307 complexity | 3cacd2d5cf2493d59f2f0f9333d281de MD5 | raw file
Possible License(s): BSD-3-Clause, Apache-2.0
  1. #pragma warning disable 1591
  2. //------------------------------------------------------------------------------
  3. // <auto-generated>
  4. // This code was generated by a tool.
  5. // Runtime Version:4.0.30319.18046
  6. //
  7. // Changes to this file may cause incorrect behavior and will be lost if
  8. // the code is regenerated.
  9. // </auto-generated>
  10. //------------------------------------------------------------------------------
  11. namespace StaffRmb
  12. {
  13. using System.Data.Linq;
  14. using System.Data.Linq.Mapping;
  15. using System.Data;
  16. using System.Collections.Generic;
  17. using System.Reflection;
  18. using System.Linq;
  19. using System.Linq.Expressions;
  20. using System.ComponentModel;
  21. using System;
  22. [global::System.Data.Linq.Mapping.DatabaseAttribute(Name="AgapeConnect")]
  23. public partial class StaffRmbDataContext : System.Data.Linq.DataContext
  24. {
  25. private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
  26. #region Extensibility Method Definitions
  27. partial void OnCreated();
  28. partial void InsertAP_Staff_RmbLineType(AP_Staff_RmbLineType instance);
  29. partial void UpdateAP_Staff_RmbLineType(AP_Staff_RmbLineType instance);
  30. partial void DeleteAP_Staff_RmbLineType(AP_Staff_RmbLineType instance);
  31. partial void InsertAP_StaffRmb_PortalLineType(AP_StaffRmb_PortalLineType instance);
  32. partial void UpdateAP_StaffRmb_PortalLineType(AP_StaffRmb_PortalLineType instance);
  33. partial void DeleteAP_StaffRmb_PortalLineType(AP_StaffRmb_PortalLineType instance);
  34. partial void InsertAP_StaffBroker_Department(AP_StaffBroker_Department instance);
  35. partial void UpdateAP_StaffBroker_Department(AP_StaffBroker_Department instance);
  36. partial void DeleteAP_StaffBroker_Department(AP_StaffBroker_Department instance);
  37. partial void InsertAP_StaffBroker_CostCenter(AP_StaffBroker_CostCenter instance);
  38. partial void UpdateAP_StaffBroker_CostCenter(AP_StaffBroker_CostCenter instance);
  39. partial void DeleteAP_StaffBroker_CostCenter(AP_StaffBroker_CostCenter instance);
  40. partial void InsertAP_StaffBroker_AccountCode(AP_StaffBroker_AccountCode instance);
  41. partial void UpdateAP_StaffBroker_AccountCode(AP_StaffBroker_AccountCode instance);
  42. partial void DeleteAP_StaffBroker_AccountCode(AP_StaffBroker_AccountCode instance);
  43. partial void InsertAP_Staff_Rmb(AP_Staff_Rmb instance);
  44. partial void UpdateAP_Staff_Rmb(AP_Staff_Rmb instance);
  45. partial void DeleteAP_Staff_Rmb(AP_Staff_Rmb instance);
  46. partial void InsertAP_Staff_AdvanceRequest(AP_Staff_AdvanceRequest instance);
  47. partial void UpdateAP_Staff_AdvanceRequest(AP_Staff_AdvanceRequest instance);
  48. partial void DeleteAP_Staff_AdvanceRequest(AP_Staff_AdvanceRequest instance);
  49. partial void InsertAP_Staff_Rmb_PerDeimMuliType(AP_Staff_Rmb_PerDeimMuliType instance);
  50. partial void UpdateAP_Staff_Rmb_PerDeimMuliType(AP_Staff_Rmb_PerDeimMuliType instance);
  51. partial void DeleteAP_Staff_Rmb_PerDeimMuliType(AP_Staff_Rmb_PerDeimMuliType instance);
  52. partial void InsertAP_Staff_RmbLine(AP_Staff_RmbLine instance);
  53. partial void UpdateAP_Staff_RmbLine(AP_Staff_RmbLine instance);
  54. partial void DeleteAP_Staff_RmbLine(AP_Staff_RmbLine instance);
  55. #endregion
  56. public StaffRmbDataContext() :
  57. base(global::System.Configuration.ConfigurationManager.ConnectionStrings["SiteSqlServer"].ConnectionString, mappingSource)
  58. {
  59. OnCreated();
  60. }
  61. public StaffRmbDataContext(string connection) :
  62. base(connection, mappingSource)
  63. {
  64. OnCreated();
  65. }
  66. public StaffRmbDataContext(System.Data.IDbConnection connection) :
  67. base(connection, mappingSource)
  68. {
  69. OnCreated();
  70. }
  71. public StaffRmbDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  72. base(connection, mappingSource)
  73. {
  74. OnCreated();
  75. }
  76. public StaffRmbDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
  77. base(connection, mappingSource)
  78. {
  79. OnCreated();
  80. }
  81. public System.Data.Linq.Table<AP_Staff_RmbLineType> AP_Staff_RmbLineTypes
  82. {
  83. get
  84. {
  85. return this.GetTable<AP_Staff_RmbLineType>();
  86. }
  87. }
  88. public System.Data.Linq.Table<AP_StaffRmb_PortalLineType> AP_StaffRmb_PortalLineTypes
  89. {
  90. get
  91. {
  92. return this.GetTable<AP_StaffRmb_PortalLineType>();
  93. }
  94. }
  95. public System.Data.Linq.Table<AP_StaffBroker_Department> AP_StaffBroker_Departments
  96. {
  97. get
  98. {
  99. return this.GetTable<AP_StaffBroker_Department>();
  100. }
  101. }
  102. public System.Data.Linq.Table<AP_StaffBroker_CostCenter> AP_StaffBroker_CostCenters
  103. {
  104. get
  105. {
  106. return this.GetTable<AP_StaffBroker_CostCenter>();
  107. }
  108. }
  109. public System.Data.Linq.Table<AP_StaffBroker_AccountCode> AP_StaffBroker_AccountCodes
  110. {
  111. get
  112. {
  113. return this.GetTable<AP_StaffBroker_AccountCode>();
  114. }
  115. }
  116. public System.Data.Linq.Table<AP_Staff_Rmb> AP_Staff_Rmbs
  117. {
  118. get
  119. {
  120. return this.GetTable<AP_Staff_Rmb>();
  121. }
  122. }
  123. public System.Data.Linq.Table<AP_Staff_AdvanceRequest> AP_Staff_AdvanceRequests
  124. {
  125. get
  126. {
  127. return this.GetTable<AP_Staff_AdvanceRequest>();
  128. }
  129. }
  130. public System.Data.Linq.Table<AP_Staff_Rmb_PerDeimMuliType> AP_Staff_Rmb_PerDeimMuliTypes
  131. {
  132. get
  133. {
  134. return this.GetTable<AP_Staff_Rmb_PerDeimMuliType>();
  135. }
  136. }
  137. public System.Data.Linq.Table<AP_Staff_RmbLine> AP_Staff_RmbLines
  138. {
  139. get
  140. {
  141. return this.GetTable<AP_Staff_RmbLine>();
  142. }
  143. }
  144. }
  145. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_Staff_RmbLineType")]
  146. public partial class AP_Staff_RmbLineType : INotifyPropertyChanging, INotifyPropertyChanged
  147. {
  148. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  149. private short _LineTypeId;
  150. private string _TypeName;
  151. private string _ControlPath;
  152. private string _SpareField1;
  153. private string _SpareField2;
  154. private EntitySet<AP_StaffRmb_PortalLineType> _AP_StaffRmb_PortalLineTypes;
  155. private EntitySet<AP_Staff_RmbLine> _AP_Staff_RmbLines;
  156. #region Extensibility Method Definitions
  157. partial void OnLoaded();
  158. partial void OnValidate(System.Data.Linq.ChangeAction action);
  159. partial void OnCreated();
  160. partial void OnLineTypeIdChanging(short value);
  161. partial void OnLineTypeIdChanged();
  162. partial void OnTypeNameChanging(string value);
  163. partial void OnTypeNameChanged();
  164. partial void OnControlPathChanging(string value);
  165. partial void OnControlPathChanged();
  166. partial void OnSpareField1Changing(string value);
  167. partial void OnSpareField1Changed();
  168. partial void OnSpareField2Changing(string value);
  169. partial void OnSpareField2Changed();
  170. #endregion
  171. public AP_Staff_RmbLineType()
  172. {
  173. this._AP_StaffRmb_PortalLineTypes = new EntitySet<AP_StaffRmb_PortalLineType>(new Action<AP_StaffRmb_PortalLineType>(this.attach_AP_StaffRmb_PortalLineTypes), new Action<AP_StaffRmb_PortalLineType>(this.detach_AP_StaffRmb_PortalLineTypes));
  174. this._AP_Staff_RmbLines = new EntitySet<AP_Staff_RmbLine>(new Action<AP_Staff_RmbLine>(this.attach_AP_Staff_RmbLines), new Action<AP_Staff_RmbLine>(this.detach_AP_Staff_RmbLines));
  175. OnCreated();
  176. }
  177. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LineTypeId", AutoSync=AutoSync.OnInsert, DbType="SmallInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  178. public short LineTypeId
  179. {
  180. get
  181. {
  182. return this._LineTypeId;
  183. }
  184. set
  185. {
  186. if ((this._LineTypeId != value))
  187. {
  188. this.OnLineTypeIdChanging(value);
  189. this.SendPropertyChanging();
  190. this._LineTypeId = value;
  191. this.SendPropertyChanged("LineTypeId");
  192. this.OnLineTypeIdChanged();
  193. }
  194. }
  195. }
  196. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TypeName", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
  197. public string TypeName
  198. {
  199. get
  200. {
  201. return this._TypeName;
  202. }
  203. set
  204. {
  205. if ((this._TypeName != value))
  206. {
  207. this.OnTypeNameChanging(value);
  208. this.SendPropertyChanging();
  209. this._TypeName = value;
  210. this.SendPropertyChanged("TypeName");
  211. this.OnTypeNameChanged();
  212. }
  213. }
  214. }
  215. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ControlPath", DbType="NVarChar(200) NOT NULL", CanBeNull=false)]
  216. public string ControlPath
  217. {
  218. get
  219. {
  220. return this._ControlPath;
  221. }
  222. set
  223. {
  224. if ((this._ControlPath != value))
  225. {
  226. this.OnControlPathChanging(value);
  227. this.SendPropertyChanging();
  228. this._ControlPath = value;
  229. this.SendPropertyChanged("ControlPath");
  230. this.OnControlPathChanged();
  231. }
  232. }
  233. }
  234. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpareField1", DbType="NVarChar(50)")]
  235. public string SpareField1
  236. {
  237. get
  238. {
  239. return this._SpareField1;
  240. }
  241. set
  242. {
  243. if ((this._SpareField1 != value))
  244. {
  245. this.OnSpareField1Changing(value);
  246. this.SendPropertyChanging();
  247. this._SpareField1 = value;
  248. this.SendPropertyChanged("SpareField1");
  249. this.OnSpareField1Changed();
  250. }
  251. }
  252. }
  253. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpareField2", DbType="NVarChar(50)")]
  254. public string SpareField2
  255. {
  256. get
  257. {
  258. return this._SpareField2;
  259. }
  260. set
  261. {
  262. if ((this._SpareField2 != value))
  263. {
  264. this.OnSpareField2Changing(value);
  265. this.SendPropertyChanging();
  266. this._SpareField2 = value;
  267. this.SendPropertyChanged("SpareField2");
  268. this.OnSpareField2Changed();
  269. }
  270. }
  271. }
  272. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_Staff_RmbLineType_AP_StaffRmb_PortalLineType", Storage="_AP_StaffRmb_PortalLineTypes", ThisKey="LineTypeId", OtherKey="LineTypeId")]
  273. public EntitySet<AP_StaffRmb_PortalLineType> AP_StaffRmb_PortalLineTypes
  274. {
  275. get
  276. {
  277. return this._AP_StaffRmb_PortalLineTypes;
  278. }
  279. set
  280. {
  281. this._AP_StaffRmb_PortalLineTypes.Assign(value);
  282. }
  283. }
  284. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_Staff_RmbLineType_AP_Staff_RmbLine", Storage="_AP_Staff_RmbLines", ThisKey="LineTypeId", OtherKey="LineType")]
  285. public EntitySet<AP_Staff_RmbLine> AP_Staff_RmbLines
  286. {
  287. get
  288. {
  289. return this._AP_Staff_RmbLines;
  290. }
  291. set
  292. {
  293. this._AP_Staff_RmbLines.Assign(value);
  294. }
  295. }
  296. public event PropertyChangingEventHandler PropertyChanging;
  297. public event PropertyChangedEventHandler PropertyChanged;
  298. protected virtual void SendPropertyChanging()
  299. {
  300. if ((this.PropertyChanging != null))
  301. {
  302. this.PropertyChanging(this, emptyChangingEventArgs);
  303. }
  304. }
  305. protected virtual void SendPropertyChanged(String propertyName)
  306. {
  307. if ((this.PropertyChanged != null))
  308. {
  309. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  310. }
  311. }
  312. private void attach_AP_StaffRmb_PortalLineTypes(AP_StaffRmb_PortalLineType entity)
  313. {
  314. this.SendPropertyChanging();
  315. entity.AP_Staff_RmbLineType = this;
  316. }
  317. private void detach_AP_StaffRmb_PortalLineTypes(AP_StaffRmb_PortalLineType entity)
  318. {
  319. this.SendPropertyChanging();
  320. entity.AP_Staff_RmbLineType = null;
  321. }
  322. private void attach_AP_Staff_RmbLines(AP_Staff_RmbLine entity)
  323. {
  324. this.SendPropertyChanging();
  325. entity.AP_Staff_RmbLineType = this;
  326. }
  327. private void detach_AP_Staff_RmbLines(AP_Staff_RmbLine entity)
  328. {
  329. this.SendPropertyChanging();
  330. entity.AP_Staff_RmbLineType = null;
  331. }
  332. }
  333. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffRmb_PortalLineType")]
  334. public partial class AP_StaffRmb_PortalLineType : INotifyPropertyChanging, INotifyPropertyChanged
  335. {
  336. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  337. private int _PortalLineTypeId;
  338. private short _LineTypeId;
  339. private int _PortalId;
  340. private string _LocalName;
  341. private string _PCode;
  342. private string _DCode;
  343. private System.Nullable<short> _ViewOrder;
  344. private EntityRef<AP_Staff_RmbLineType> _AP_Staff_RmbLineType;
  345. #region Extensibility Method Definitions
  346. partial void OnLoaded();
  347. partial void OnValidate(System.Data.Linq.ChangeAction action);
  348. partial void OnCreated();
  349. partial void OnPortalLineTypeIdChanging(int value);
  350. partial void OnPortalLineTypeIdChanged();
  351. partial void OnLineTypeIdChanging(short value);
  352. partial void OnLineTypeIdChanged();
  353. partial void OnPortalIdChanging(int value);
  354. partial void OnPortalIdChanged();
  355. partial void OnLocalNameChanging(string value);
  356. partial void OnLocalNameChanged();
  357. partial void OnPCodeChanging(string value);
  358. partial void OnPCodeChanged();
  359. partial void OnDCodeChanging(string value);
  360. partial void OnDCodeChanged();
  361. partial void OnViewOrderChanging(System.Nullable<short> value);
  362. partial void OnViewOrderChanged();
  363. #endregion
  364. public AP_StaffRmb_PortalLineType()
  365. {
  366. this._AP_Staff_RmbLineType = default(EntityRef<AP_Staff_RmbLineType>);
  367. OnCreated();
  368. }
  369. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalLineTypeId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  370. public int PortalLineTypeId
  371. {
  372. get
  373. {
  374. return this._PortalLineTypeId;
  375. }
  376. set
  377. {
  378. if ((this._PortalLineTypeId != value))
  379. {
  380. this.OnPortalLineTypeIdChanging(value);
  381. this.SendPropertyChanging();
  382. this._PortalLineTypeId = value;
  383. this.SendPropertyChanged("PortalLineTypeId");
  384. this.OnPortalLineTypeIdChanged();
  385. }
  386. }
  387. }
  388. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LineTypeId", DbType="SmallInt NOT NULL")]
  389. public short LineTypeId
  390. {
  391. get
  392. {
  393. return this._LineTypeId;
  394. }
  395. set
  396. {
  397. if ((this._LineTypeId != value))
  398. {
  399. if (this._AP_Staff_RmbLineType.HasLoadedOrAssignedValue)
  400. {
  401. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  402. }
  403. this.OnLineTypeIdChanging(value);
  404. this.SendPropertyChanging();
  405. this._LineTypeId = value;
  406. this.SendPropertyChanged("LineTypeId");
  407. this.OnLineTypeIdChanged();
  408. }
  409. }
  410. }
  411. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int NOT NULL")]
  412. public int PortalId
  413. {
  414. get
  415. {
  416. return this._PortalId;
  417. }
  418. set
  419. {
  420. if ((this._PortalId != value))
  421. {
  422. this.OnPortalIdChanging(value);
  423. this.SendPropertyChanging();
  424. this._PortalId = value;
  425. this.SendPropertyChanged("PortalId");
  426. this.OnPortalIdChanged();
  427. }
  428. }
  429. }
  430. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LocalName", DbType="NVarChar(50)")]
  431. public string LocalName
  432. {
  433. get
  434. {
  435. return this._LocalName;
  436. }
  437. set
  438. {
  439. if ((this._LocalName != value))
  440. {
  441. this.OnLocalNameChanging(value);
  442. this.SendPropertyChanging();
  443. this._LocalName = value;
  444. this.SendPropertyChanged("LocalName");
  445. this.OnLocalNameChanged();
  446. }
  447. }
  448. }
  449. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PCode", DbType="NVarChar(20)")]
  450. public string PCode
  451. {
  452. get
  453. {
  454. return this._PCode;
  455. }
  456. set
  457. {
  458. if ((this._PCode != value))
  459. {
  460. this.OnPCodeChanging(value);
  461. this.SendPropertyChanging();
  462. this._PCode = value;
  463. this.SendPropertyChanged("PCode");
  464. this.OnPCodeChanged();
  465. }
  466. }
  467. }
  468. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DCode", DbType="NVarChar(20)")]
  469. public string DCode
  470. {
  471. get
  472. {
  473. return this._DCode;
  474. }
  475. set
  476. {
  477. if ((this._DCode != value))
  478. {
  479. this.OnDCodeChanging(value);
  480. this.SendPropertyChanging();
  481. this._DCode = value;
  482. this.SendPropertyChanged("DCode");
  483. this.OnDCodeChanged();
  484. }
  485. }
  486. }
  487. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViewOrder", DbType="SmallInt")]
  488. public System.Nullable<short> ViewOrder
  489. {
  490. get
  491. {
  492. return this._ViewOrder;
  493. }
  494. set
  495. {
  496. if ((this._ViewOrder != value))
  497. {
  498. this.OnViewOrderChanging(value);
  499. this.SendPropertyChanging();
  500. this._ViewOrder = value;
  501. this.SendPropertyChanged("ViewOrder");
  502. this.OnViewOrderChanged();
  503. }
  504. }
  505. }
  506. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_Staff_RmbLineType_AP_StaffRmb_PortalLineType", Storage="_AP_Staff_RmbLineType", ThisKey="LineTypeId", OtherKey="LineTypeId", IsForeignKey=true)]
  507. public AP_Staff_RmbLineType AP_Staff_RmbLineType
  508. {
  509. get
  510. {
  511. return this._AP_Staff_RmbLineType.Entity;
  512. }
  513. set
  514. {
  515. AP_Staff_RmbLineType previousValue = this._AP_Staff_RmbLineType.Entity;
  516. if (((previousValue != value)
  517. || (this._AP_Staff_RmbLineType.HasLoadedOrAssignedValue == false)))
  518. {
  519. this.SendPropertyChanging();
  520. if ((previousValue != null))
  521. {
  522. this._AP_Staff_RmbLineType.Entity = null;
  523. previousValue.AP_StaffRmb_PortalLineTypes.Remove(this);
  524. }
  525. this._AP_Staff_RmbLineType.Entity = value;
  526. if ((value != null))
  527. {
  528. value.AP_StaffRmb_PortalLineTypes.Add(this);
  529. this._LineTypeId = value.LineTypeId;
  530. }
  531. else
  532. {
  533. this._LineTypeId = default(short);
  534. }
  535. this.SendPropertyChanged("AP_Staff_RmbLineType");
  536. }
  537. }
  538. }
  539. public event PropertyChangingEventHandler PropertyChanging;
  540. public event PropertyChangedEventHandler PropertyChanged;
  541. protected virtual void SendPropertyChanging()
  542. {
  543. if ((this.PropertyChanging != null))
  544. {
  545. this.PropertyChanging(this, emptyChangingEventArgs);
  546. }
  547. }
  548. protected virtual void SendPropertyChanged(String propertyName)
  549. {
  550. if ((this.PropertyChanged != null))
  551. {
  552. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  553. }
  554. }
  555. }
  556. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_Departments")]
  557. public partial class AP_StaffBroker_Department : INotifyPropertyChanging, INotifyPropertyChanged
  558. {
  559. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  560. private int _CostCenterId;
  561. private string _Name;
  562. private string _CostCentre;
  563. private System.Nullable<int> _CostCentreManager;
  564. private System.Nullable<int> _CostCentreDelegate;
  565. private bool _CanRmb;
  566. private bool _CanCharge;
  567. private bool _CanGiveTo;
  568. private string _GivingText;
  569. private string _GivingShortcut;
  570. private System.Nullable<int> _PortalId;
  571. #region Extensibility Method Definitions
  572. partial void OnLoaded();
  573. partial void OnValidate(System.Data.Linq.ChangeAction action);
  574. partial void OnCreated();
  575. partial void OnCostCenterIdChanging(int value);
  576. partial void OnCostCenterIdChanged();
  577. partial void OnNameChanging(string value);
  578. partial void OnNameChanged();
  579. partial void OnCostCentreChanging(string value);
  580. partial void OnCostCentreChanged();
  581. partial void OnCostCentreManagerChanging(System.Nullable<int> value);
  582. partial void OnCostCentreManagerChanged();
  583. partial void OnCostCentreDelegateChanging(System.Nullable<int> value);
  584. partial void OnCostCentreDelegateChanged();
  585. partial void OnCanRmbChanging(bool value);
  586. partial void OnCanRmbChanged();
  587. partial void OnCanChargeChanging(bool value);
  588. partial void OnCanChargeChanged();
  589. partial void OnCanGiveToChanging(bool value);
  590. partial void OnCanGiveToChanged();
  591. partial void OnGivingTextChanging(string value);
  592. partial void OnGivingTextChanged();
  593. partial void OnGivingShortcutChanging(string value);
  594. partial void OnGivingShortcutChanged();
  595. partial void OnPortalIdChanging(System.Nullable<int> value);
  596. partial void OnPortalIdChanged();
  597. #endregion
  598. public AP_StaffBroker_Department()
  599. {
  600. OnCreated();
  601. }
  602. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCenterId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  603. public int CostCenterId
  604. {
  605. get
  606. {
  607. return this._CostCenterId;
  608. }
  609. set
  610. {
  611. if ((this._CostCenterId != value))
  612. {
  613. this.OnCostCenterIdChanging(value);
  614. this.SendPropertyChanging();
  615. this._CostCenterId = value;
  616. this.SendPropertyChanged("CostCenterId");
  617. this.OnCostCenterIdChanged();
  618. }
  619. }
  620. }
  621. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(100) NOT NULL", CanBeNull=false)]
  622. public string Name
  623. {
  624. get
  625. {
  626. return this._Name;
  627. }
  628. set
  629. {
  630. if ((this._Name != value))
  631. {
  632. this.OnNameChanging(value);
  633. this.SendPropertyChanging();
  634. this._Name = value;
  635. this.SendPropertyChanged("Name");
  636. this.OnNameChanged();
  637. }
  638. }
  639. }
  640. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCentre", DbType="NVarChar(20) NOT NULL", CanBeNull=false)]
  641. public string CostCentre
  642. {
  643. get
  644. {
  645. return this._CostCentre;
  646. }
  647. set
  648. {
  649. if ((this._CostCentre != value))
  650. {
  651. this.OnCostCentreChanging(value);
  652. this.SendPropertyChanging();
  653. this._CostCentre = value;
  654. this.SendPropertyChanged("CostCentre");
  655. this.OnCostCentreChanged();
  656. }
  657. }
  658. }
  659. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCentreManager", DbType="Int")]
  660. public System.Nullable<int> CostCentreManager
  661. {
  662. get
  663. {
  664. return this._CostCentreManager;
  665. }
  666. set
  667. {
  668. if ((this._CostCentreManager != value))
  669. {
  670. this.OnCostCentreManagerChanging(value);
  671. this.SendPropertyChanging();
  672. this._CostCentreManager = value;
  673. this.SendPropertyChanged("CostCentreManager");
  674. this.OnCostCentreManagerChanged();
  675. }
  676. }
  677. }
  678. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCentreDelegate", DbType="Int")]
  679. public System.Nullable<int> CostCentreDelegate
  680. {
  681. get
  682. {
  683. return this._CostCentreDelegate;
  684. }
  685. set
  686. {
  687. if ((this._CostCentreDelegate != value))
  688. {
  689. this.OnCostCentreDelegateChanging(value);
  690. this.SendPropertyChanging();
  691. this._CostCentreDelegate = value;
  692. this.SendPropertyChanged("CostCentreDelegate");
  693. this.OnCostCentreDelegateChanged();
  694. }
  695. }
  696. }
  697. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanRmb", DbType="Bit NOT NULL")]
  698. public bool CanRmb
  699. {
  700. get
  701. {
  702. return this._CanRmb;
  703. }
  704. set
  705. {
  706. if ((this._CanRmb != value))
  707. {
  708. this.OnCanRmbChanging(value);
  709. this.SendPropertyChanging();
  710. this._CanRmb = value;
  711. this.SendPropertyChanged("CanRmb");
  712. this.OnCanRmbChanged();
  713. }
  714. }
  715. }
  716. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanCharge", DbType="Bit NOT NULL")]
  717. public bool CanCharge
  718. {
  719. get
  720. {
  721. return this._CanCharge;
  722. }
  723. set
  724. {
  725. if ((this._CanCharge != value))
  726. {
  727. this.OnCanChargeChanging(value);
  728. this.SendPropertyChanging();
  729. this._CanCharge = value;
  730. this.SendPropertyChanged("CanCharge");
  731. this.OnCanChargeChanged();
  732. }
  733. }
  734. }
  735. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanGiveTo", DbType="Bit NOT NULL")]
  736. public bool CanGiveTo
  737. {
  738. get
  739. {
  740. return this._CanGiveTo;
  741. }
  742. set
  743. {
  744. if ((this._CanGiveTo != value))
  745. {
  746. this.OnCanGiveToChanging(value);
  747. this.SendPropertyChanging();
  748. this._CanGiveTo = value;
  749. this.SendPropertyChanged("CanGiveTo");
  750. this.OnCanGiveToChanged();
  751. }
  752. }
  753. }
  754. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GivingText", DbType="NVarChar(MAX)")]
  755. public string GivingText
  756. {
  757. get
  758. {
  759. return this._GivingText;
  760. }
  761. set
  762. {
  763. if ((this._GivingText != value))
  764. {
  765. this.OnGivingTextChanging(value);
  766. this.SendPropertyChanging();
  767. this._GivingText = value;
  768. this.SendPropertyChanged("GivingText");
  769. this.OnGivingTextChanged();
  770. }
  771. }
  772. }
  773. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GivingShortcut", DbType="NVarChar(50)")]
  774. public string GivingShortcut
  775. {
  776. get
  777. {
  778. return this._GivingShortcut;
  779. }
  780. set
  781. {
  782. if ((this._GivingShortcut != value))
  783. {
  784. this.OnGivingShortcutChanging(value);
  785. this.SendPropertyChanging();
  786. this._GivingShortcut = value;
  787. this.SendPropertyChanged("GivingShortcut");
  788. this.OnGivingShortcutChanged();
  789. }
  790. }
  791. }
  792. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int")]
  793. public System.Nullable<int> PortalId
  794. {
  795. get
  796. {
  797. return this._PortalId;
  798. }
  799. set
  800. {
  801. if ((this._PortalId != value))
  802. {
  803. this.OnPortalIdChanging(value);
  804. this.SendPropertyChanging();
  805. this._PortalId = value;
  806. this.SendPropertyChanged("PortalId");
  807. this.OnPortalIdChanged();
  808. }
  809. }
  810. }
  811. public event PropertyChangingEventHandler PropertyChanging;
  812. public event PropertyChangedEventHandler PropertyChanged;
  813. protected virtual void SendPropertyChanging()
  814. {
  815. if ((this.PropertyChanging != null))
  816. {
  817. this.PropertyChanging(this, emptyChangingEventArgs);
  818. }
  819. }
  820. protected virtual void SendPropertyChanged(String propertyName)
  821. {
  822. if ((this.PropertyChanged != null))
  823. {
  824. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  825. }
  826. }
  827. }
  828. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_CostCenters")]
  829. public partial class AP_StaffBroker_CostCenter : INotifyPropertyChanging, INotifyPropertyChanged
  830. {
  831. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  832. private long _CostCentreId;
  833. private string _CostCentreCode;
  834. private string _CostCentreName;
  835. private int _PortalId;
  836. private System.Nullable<byte> _Type;
  837. #region Extensibility Method Definitions
  838. partial void OnLoaded();
  839. partial void OnValidate(System.Data.Linq.ChangeAction action);
  840. partial void OnCreated();
  841. partial void OnCostCentreIdChanging(long value);
  842. partial void OnCostCentreIdChanged();
  843. partial void OnCostCentreCodeChanging(string value);
  844. partial void OnCostCentreCodeChanged();
  845. partial void OnCostCentreNameChanging(string value);
  846. partial void OnCostCentreNameChanged();
  847. partial void OnPortalIdChanging(int value);
  848. partial void OnPortalIdChanged();
  849. partial void OnTypeChanging(System.Nullable<byte> value);
  850. partial void OnTypeChanged();
  851. #endregion
  852. public AP_StaffBroker_CostCenter()
  853. {
  854. OnCreated();
  855. }
  856. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCentreId", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  857. public long CostCentreId
  858. {
  859. get
  860. {
  861. return this._CostCentreId;
  862. }
  863. set
  864. {
  865. if ((this._CostCentreId != value))
  866. {
  867. this.OnCostCentreIdChanging(value);
  868. this.SendPropertyChanging();
  869. this._CostCentreId = value;
  870. this.SendPropertyChanged("CostCentreId");
  871. this.OnCostCentreIdChanged();
  872. }
  873. }
  874. }
  875. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCentreCode", DbType="NVarChar(12) NOT NULL", CanBeNull=false)]
  876. public string CostCentreCode
  877. {
  878. get
  879. {
  880. return this._CostCentreCode;
  881. }
  882. set
  883. {
  884. if ((this._CostCentreCode != value))
  885. {
  886. this.OnCostCentreCodeChanging(value);
  887. this.SendPropertyChanging();
  888. this._CostCentreCode = value;
  889. this.SendPropertyChanged("CostCentreCode");
  890. this.OnCostCentreCodeChanged();
  891. }
  892. }
  893. }
  894. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCentreName", DbType="NVarChar(120) NOT NULL", CanBeNull=false)]
  895. public string CostCentreName
  896. {
  897. get
  898. {
  899. return this._CostCentreName;
  900. }
  901. set
  902. {
  903. if ((this._CostCentreName != value))
  904. {
  905. this.OnCostCentreNameChanging(value);
  906. this.SendPropertyChanging();
  907. this._CostCentreName = value;
  908. this.SendPropertyChanged("CostCentreName");
  909. this.OnCostCentreNameChanged();
  910. }
  911. }
  912. }
  913. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int NOT NULL")]
  914. public int PortalId
  915. {
  916. get
  917. {
  918. return this._PortalId;
  919. }
  920. set
  921. {
  922. if ((this._PortalId != value))
  923. {
  924. this.OnPortalIdChanging(value);
  925. this.SendPropertyChanging();
  926. this._PortalId = value;
  927. this.SendPropertyChanged("PortalId");
  928. this.OnPortalIdChanged();
  929. }
  930. }
  931. }
  932. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Type", DbType="tinyint")]
  933. public System.Nullable<byte> Type
  934. {
  935. get
  936. {
  937. return this._Type;
  938. }
  939. set
  940. {
  941. if ((this._Type != value))
  942. {
  943. this.OnTypeChanging(value);
  944. this.SendPropertyChanging();
  945. this._Type = value;
  946. this.SendPropertyChanged("Type");
  947. this.OnTypeChanged();
  948. }
  949. }
  950. }
  951. public event PropertyChangingEventHandler PropertyChanging;
  952. public event PropertyChangedEventHandler PropertyChanged;
  953. protected virtual void SendPropertyChanging()
  954. {
  955. if ((this.PropertyChanging != null))
  956. {
  957. this.PropertyChanging(this, emptyChangingEventArgs);
  958. }
  959. }
  960. protected virtual void SendPropertyChanged(String propertyName)
  961. {
  962. if ((this.PropertyChanged != null))
  963. {
  964. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  965. }
  966. }
  967. }
  968. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_StaffBroker_AccountCodes")]
  969. public partial class AP_StaffBroker_AccountCode : INotifyPropertyChanging, INotifyPropertyChanged
  970. {
  971. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  972. private long _AccountCodeId;
  973. private string _AccountCode;
  974. private string _AccountCodeName;
  975. private System.Nullable<byte> _AccountCodeType;
  976. private int _PortalId;
  977. #region Extensibility Method Definitions
  978. partial void OnLoaded();
  979. partial void OnValidate(System.Data.Linq.ChangeAction action);
  980. partial void OnCreated();
  981. partial void OnAccountCodeIdChanging(long value);
  982. partial void OnAccountCodeIdChanged();
  983. partial void OnAccountCodeChanging(string value);
  984. partial void OnAccountCodeChanged();
  985. partial void OnAccountCodeNameChanging(string value);
  986. partial void OnAccountCodeNameChanged();
  987. partial void OnAccountCodeTypeChanging(System.Nullable<byte> value);
  988. partial void OnAccountCodeTypeChanged();
  989. partial void OnPortalIdChanging(int value);
  990. partial void OnPortalIdChanged();
  991. #endregion
  992. public AP_StaffBroker_AccountCode()
  993. {
  994. OnCreated();
  995. }
  996. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccountCodeId", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  997. public long AccountCodeId
  998. {
  999. get
  1000. {
  1001. return this._AccountCodeId;
  1002. }
  1003. set
  1004. {
  1005. if ((this._AccountCodeId != value))
  1006. {
  1007. this.OnAccountCodeIdChanging(value);
  1008. this.SendPropertyChanging();
  1009. this._AccountCodeId = value;
  1010. this.SendPropertyChanged("AccountCodeId");
  1011. this.OnAccountCodeIdChanged();
  1012. }
  1013. }
  1014. }
  1015. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccountCode", DbType="NVarChar(12) NOT NULL", CanBeNull=false)]
  1016. public string AccountCode
  1017. {
  1018. get
  1019. {
  1020. return this._AccountCode;
  1021. }
  1022. set
  1023. {
  1024. if ((this._AccountCode != value))
  1025. {
  1026. this.OnAccountCodeChanging(value);
  1027. this.SendPropertyChanging();
  1028. this._AccountCode = value;
  1029. this.SendPropertyChanged("AccountCode");
  1030. this.OnAccountCodeChanged();
  1031. }
  1032. }
  1033. }
  1034. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccountCodeName", DbType="NVarChar(120) NOT NULL", CanBeNull=false)]
  1035. public string AccountCodeName
  1036. {
  1037. get
  1038. {
  1039. return this._AccountCodeName;
  1040. }
  1041. set
  1042. {
  1043. if ((this._AccountCodeName != value))
  1044. {
  1045. this.OnAccountCodeNameChanging(value);
  1046. this.SendPropertyChanging();
  1047. this._AccountCodeName = value;
  1048. this.SendPropertyChanged("AccountCodeName");
  1049. this.OnAccountCodeNameChanged();
  1050. }
  1051. }
  1052. }
  1053. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccountCodeType", DbType="TinyInt")]
  1054. public System.Nullable<byte> AccountCodeType
  1055. {
  1056. get
  1057. {
  1058. return this._AccountCodeType;
  1059. }
  1060. set
  1061. {
  1062. if ((this._AccountCodeType != value))
  1063. {
  1064. this.OnAccountCodeTypeChanging(value);
  1065. this.SendPropertyChanging();
  1066. this._AccountCodeType = value;
  1067. this.SendPropertyChanged("AccountCodeType");
  1068. this.OnAccountCodeTypeChanged();
  1069. }
  1070. }
  1071. }
  1072. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int NOT NULL")]
  1073. public int PortalId
  1074. {
  1075. get
  1076. {
  1077. return this._PortalId;
  1078. }
  1079. set
  1080. {
  1081. if ((this._PortalId != value))
  1082. {
  1083. this.OnPortalIdChanging(value);
  1084. this.SendPropertyChanging();
  1085. this._PortalId = value;
  1086. this.SendPropertyChanged("PortalId");
  1087. this.OnPortalIdChanged();
  1088. }
  1089. }
  1090. }
  1091. public event PropertyChangingEventHandler PropertyChanging;
  1092. public event PropertyChangedEventHandler PropertyChanged;
  1093. protected virtual void SendPropertyChanging()
  1094. {
  1095. if ((this.PropertyChanging != null))
  1096. {
  1097. this.PropertyChanging(this, emptyChangingEventArgs);
  1098. }
  1099. }
  1100. protected virtual void SendPropertyChanged(String propertyName)
  1101. {
  1102. if ((this.PropertyChanged != null))
  1103. {
  1104. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  1105. }
  1106. }
  1107. }
  1108. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_Staff_Rmb")]
  1109. public partial class AP_Staff_Rmb : INotifyPropertyChanging, INotifyPropertyChanged
  1110. {
  1111. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  1112. private long _RMBNo;
  1113. private int _UserId;
  1114. private string _CostCenter;
  1115. private string _UserRef;
  1116. private System.Nullable<System.DateTime> _RmbDate;
  1117. private int _Status;
  1118. private string _UserComment;
  1119. private string _ApprComment;
  1120. private string _AcctComment;
  1121. private System.Nullable<int> _ApprUserId;
  1122. private bool _Locked;
  1123. private int _PortalId;
  1124. private System.Nullable<System.DateTime> _ApprDate;
  1125. private System.Nullable<System.DateTime> _ProcDate;
  1126. private System.Nullable<byte> _Period;
  1127. private System.Nullable<short> _Year;
  1128. private string _SupplierCode;
  1129. private bool _EmailSent;
  1130. private bool _Changed;
  1131. private decimal _AdvanceRequest;
  1132. private bool _Department;
  1133. private string _SpareField1;
  1134. private string _SpareField2;
  1135. private string _SpareField3;
  1136. private string _SpareField4;
  1137. private string _SpareField5;
  1138. private int _RID;
  1139. private bool _Error;
  1140. private string _ErrorMessage;
  1141. private System.Nullable<System.DateTime> _DownloadDate;
  1142. private string _DownloadMode;
  1143. private System.Nullable<bool> _MoreInfoRequested;
  1144. private System.Nullable<int> _ProcUserId;
  1145. private EntitySet<AP_Staff_RmbLine> _AP_Staff_RmbLines;
  1146. #region Extensibility Method Definitions
  1147. partial void OnLoaded();
  1148. partial void OnValidate(System.Data.Linq.ChangeAction action);
  1149. partial void OnCreated();
  1150. partial void OnRMBNoChanging(long value);
  1151. partial void OnRMBNoChanged();
  1152. partial void OnUserIdChanging(int value);
  1153. partial void OnUserIdChanged();
  1154. partial void OnCostCenterChanging(string value);
  1155. partial void OnCostCenterChanged();
  1156. partial void OnUserRefChanging(string value);
  1157. partial void OnUserRefChanged();
  1158. partial void OnRmbDateChanging(System.Nullable<System.DateTime> value);
  1159. partial void OnRmbDateChanged();
  1160. partial void OnStatusChanging(int value);
  1161. partial void OnStatusChanged();
  1162. partial void OnUserCommentChanging(string value);
  1163. partial void OnUserCommentChanged();
  1164. partial void OnApprCommentChanging(string value);
  1165. partial void OnApprCommentChanged();
  1166. partial void OnAcctCommentChanging(string value);
  1167. partial void OnAcctCommentChanged();
  1168. partial void OnApprUserIdChanging(System.Nullable<int> value);
  1169. partial void OnApprUserIdChanged();
  1170. partial void OnLockedChanging(bool value);
  1171. partial void OnLockedChanged();
  1172. partial void OnPortalIdChanging(int value);
  1173. partial void OnPortalIdChanged();
  1174. partial void OnApprDateChanging(System.Nullable<System.DateTime> value);
  1175. partial void OnApprDateChanged();
  1176. partial void OnProcDateChanging(System.Nullable<System.DateTime> value);
  1177. partial void OnProcDateChanged();
  1178. partial void OnPeriodChanging(System.Nullable<byte> value);
  1179. partial void OnPeriodChanged();
  1180. partial void OnYearChanging(System.Nullable<short> value);
  1181. partial void OnYearChanged();
  1182. partial void OnSupplierCodeChanging(string value);
  1183. partial void OnSupplierCodeChanged();
  1184. partial void OnEmailSentChanging(bool value);
  1185. partial void OnEmailSentChanged();
  1186. partial void OnChangedChanging(bool value);
  1187. partial void OnChangedChanged();
  1188. partial void OnAdvanceRequestChanging(decimal value);
  1189. partial void OnAdvanceRequestChanged();
  1190. partial void OnDepartmentChanging(bool value);
  1191. partial void OnDepartmentChanged();
  1192. partial void OnSpareField1Changing(string value);
  1193. partial void OnSpareField1Changed();
  1194. partial void OnSpareField2Changing(string value);
  1195. partial void OnSpareField2Changed();
  1196. partial void OnSpareField3Changing(string value);
  1197. partial void OnSpareField3Changed();
  1198. partial void OnSpareField4Changing(string value);
  1199. partial void OnSpareField4Changed();
  1200. partial void OnSpareField5Changing(string value);
  1201. partial void OnSpareField5Changed();
  1202. partial void OnRIDChanging(int value);
  1203. partial void OnRIDChanged();
  1204. partial void OnErrorChanging(bool value);
  1205. partial void OnErrorChanged();
  1206. partial void OnErrorMessageChanging(string value);
  1207. partial void OnErrorMessageChanged();
  1208. partial void OnDownloadDateChanging(System.Nullable<System.DateTime> value);
  1209. partial void OnDownloadDateChanged();
  1210. partial void OnDownloadModeChanging(string value);
  1211. partial void OnDownloadModeChanged();
  1212. partial void OnMoreInfoRequestedChanging(System.Nullable<bool> value);
  1213. partial void OnMoreInfoRequestedChanged();
  1214. partial void OnProcUserIdChanging(System.Nullable<int> value);
  1215. partial void OnProcUserIdChanged();
  1216. #endregion
  1217. public AP_Staff_Rmb()
  1218. {
  1219. this._AP_Staff_RmbLines = new EntitySet<AP_Staff_RmbLine>(new Action<AP_Staff_RmbLine>(this.attach_AP_Staff_RmbLines), new Action<AP_Staff_RmbLine>(this.detach_AP_Staff_RmbLines));
  1220. OnCreated();
  1221. }
  1222. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RMBNo", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  1223. public long RMBNo
  1224. {
  1225. get
  1226. {
  1227. return this._RMBNo;
  1228. }
  1229. set
  1230. {
  1231. if ((this._RMBNo != value))
  1232. {
  1233. this.OnRMBNoChanging(value);
  1234. this.SendPropertyChanging();
  1235. this._RMBNo = value;
  1236. this.SendPropertyChanged("RMBNo");
  1237. this.OnRMBNoChanged();
  1238. }
  1239. }
  1240. }
  1241. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="Int NOT NULL")]
  1242. public int UserId
  1243. {
  1244. get
  1245. {
  1246. return this._UserId;
  1247. }
  1248. set
  1249. {
  1250. if ((this._UserId != value))
  1251. {
  1252. this.OnUserIdChanging(value);
  1253. this.SendPropertyChanging();
  1254. this._UserId = value;
  1255. this.SendPropertyChanged("UserId");
  1256. this.OnUserIdChanged();
  1257. }
  1258. }
  1259. }
  1260. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCenter", DbType="NVarChar(30) NOT NULL", CanBeNull=false)]
  1261. public string CostCenter
  1262. {
  1263. get
  1264. {
  1265. return this._CostCenter;
  1266. }
  1267. set
  1268. {
  1269. if ((this._CostCenter != value))
  1270. {
  1271. this.OnCostCenterChanging(value);
  1272. this.SendPropertyChanging();
  1273. this._CostCenter = value;
  1274. this.SendPropertyChanged("CostCenter");
  1275. this.OnCostCenterChanged();
  1276. }
  1277. }
  1278. }
  1279. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserRef", DbType="NVarChar(100)")]
  1280. public string UserRef
  1281. {
  1282. get
  1283. {
  1284. return this._UserRef;
  1285. }
  1286. set
  1287. {
  1288. if ((this._UserRef != value))
  1289. {
  1290. this.OnUserRefChanging(value);
  1291. this.SendPropertyChanging();
  1292. this._UserRef = value;
  1293. this.SendPropertyChanged("UserRef");
  1294. this.OnUserRefChanged();
  1295. }
  1296. }
  1297. }
  1298. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RmbDate", DbType="Date")]
  1299. public System.Nullable<System.DateTime> RmbDate
  1300. {
  1301. get
  1302. {
  1303. return this._RmbDate;
  1304. }
  1305. set
  1306. {
  1307. if ((this._RmbDate != value))
  1308. {
  1309. this.OnRmbDateChanging(value);
  1310. this.SendPropertyChanging();
  1311. this._RmbDate = value;
  1312. this.SendPropertyChanged("RmbDate");
  1313. this.OnRmbDateChanged();
  1314. }
  1315. }
  1316. }
  1317. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Status", DbType="Int NOT NULL")]
  1318. public int Status
  1319. {
  1320. get
  1321. {
  1322. return this._Status;
  1323. }
  1324. set
  1325. {
  1326. if ((this._Status != value))
  1327. {
  1328. this.OnStatusChanging(value);
  1329. this.SendPropertyChanging();
  1330. this._Status = value;
  1331. this.SendPropertyChanged("Status");
  1332. this.OnStatusChanged();
  1333. }
  1334. }
  1335. }
  1336. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserComment", DbType="NVarChar(MAX)")]
  1337. public string UserComment
  1338. {
  1339. get
  1340. {
  1341. return this._UserComment;
  1342. }
  1343. set
  1344. {
  1345. if ((this._UserComment != value))
  1346. {
  1347. this.OnUserCommentChanging(value);
  1348. this.SendPropertyChanging();
  1349. this._UserComment = value;
  1350. this.SendPropertyChanged("UserComment");
  1351. this.OnUserCommentChanged();
  1352. }
  1353. }
  1354. }
  1355. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApprComment", DbType="NVarChar(MAX)")]
  1356. public string ApprComment
  1357. {
  1358. get
  1359. {
  1360. return this._ApprComment;
  1361. }
  1362. set
  1363. {
  1364. if ((this._ApprComment != value))
  1365. {
  1366. this.OnApprCommentChanging(value);
  1367. this.SendPropertyChanging();
  1368. this._ApprComment = value;
  1369. this.SendPropertyChanged("ApprComment");
  1370. this.OnApprCommentChanged();
  1371. }
  1372. }
  1373. }
  1374. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AcctComment", DbType="NVarChar(MAX)")]
  1375. public string AcctComment
  1376. {
  1377. get
  1378. {
  1379. return this._AcctComment;
  1380. }
  1381. set
  1382. {
  1383. if ((this._AcctComment != value))
  1384. {
  1385. this.OnAcctCommentChanging(value);
  1386. this.SendPropertyChanging();
  1387. this._AcctComment = value;
  1388. this.SendPropertyChanged("AcctComment");
  1389. this.OnAcctCommentChanged();
  1390. }
  1391. }
  1392. }
  1393. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApprUserId", DbType="Int")]
  1394. public System.Nullable<int> ApprUserId
  1395. {
  1396. get
  1397. {
  1398. return this._ApprUserId;
  1399. }
  1400. set
  1401. {
  1402. if ((this._ApprUserId != value))
  1403. {
  1404. this.OnApprUserIdChanging(value);
  1405. this.SendPropertyChanging();
  1406. this._ApprUserId = value;
  1407. this.SendPropertyChanged("ApprUserId");
  1408. this.OnApprUserIdChanged();
  1409. }
  1410. }
  1411. }
  1412. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Locked", DbType="Bit NOT NULL")]
  1413. public bool Locked
  1414. {
  1415. get
  1416. {
  1417. return this._Locked;
  1418. }
  1419. set
  1420. {
  1421. if ((this._Locked != value))
  1422. {
  1423. this.OnLockedChanging(value);
  1424. this.SendPropertyChanging();
  1425. this._Locked = value;
  1426. this.SendPropertyChanged("Locked");
  1427. this.OnLockedChanged();
  1428. }
  1429. }
  1430. }
  1431. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int NOT NULL")]
  1432. public int PortalId
  1433. {
  1434. get
  1435. {
  1436. return this._PortalId;
  1437. }
  1438. set
  1439. {
  1440. if ((this._PortalId != value))
  1441. {
  1442. this.OnPortalIdChanging(value);
  1443. this.SendPropertyChanging();
  1444. this._PortalId = value;
  1445. this.SendPropertyChanged("PortalId");
  1446. this.OnPortalIdChanged();
  1447. }
  1448. }
  1449. }
  1450. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApprDate", DbType="Date")]
  1451. public System.Nullable<System.DateTime> ApprDate
  1452. {
  1453. get
  1454. {
  1455. return this._ApprDate;
  1456. }
  1457. set
  1458. {
  1459. if ((this._ApprDate != value))
  1460. {
  1461. this.OnApprDateChanging(value);
  1462. this.SendPropertyChanging();
  1463. this._ApprDate = value;
  1464. this.SendPropertyChanged("ApprDate");
  1465. this.OnApprDateChanged();
  1466. }
  1467. }
  1468. }
  1469. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProcDate", DbType="Date")]
  1470. public System.Nullable<System.DateTime> ProcDate
  1471. {
  1472. get
  1473. {
  1474. return this._ProcDate;
  1475. }
  1476. set
  1477. {
  1478. if ((this._ProcDate != value))
  1479. {
  1480. this.OnProcDateChanging(value);
  1481. this.SendPropertyChanging();
  1482. this._ProcDate = value;
  1483. this.SendPropertyChanged("ProcDate");
  1484. this.OnProcDateChanged();
  1485. }
  1486. }
  1487. }
  1488. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Period", DbType="TinyInt")]
  1489. public System.Nullable<byte> Period
  1490. {
  1491. get
  1492. {
  1493. return this._Period;
  1494. }
  1495. set
  1496. {
  1497. if ((this._Period != value))
  1498. {
  1499. this.OnPeriodChanging(value);
  1500. this.SendPropertyChanging();
  1501. this._Period = value;
  1502. this.SendPropertyChanged("Period");
  1503. this.OnPeriodChanged();
  1504. }
  1505. }
  1506. }
  1507. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Year", DbType="SmallInt")]
  1508. public System.Nullable<short> Year
  1509. {
  1510. get
  1511. {
  1512. return this._Year;
  1513. }
  1514. set
  1515. {
  1516. if ((this._Year != value))
  1517. {
  1518. this.OnYearChanging(value);
  1519. this.SendPropertyChanging();
  1520. this._Year = value;
  1521. this.SendPropertyChanged("Year");
  1522. this.OnYearChanged();
  1523. }
  1524. }
  1525. }
  1526. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SupplierCode", DbType="VarChar(8)")]
  1527. public string SupplierCode
  1528. {
  1529. get
  1530. {
  1531. return this._SupplierCode;
  1532. }
  1533. set
  1534. {
  1535. if ((this._SupplierCode != value))
  1536. {
  1537. this.OnSupplierCodeChanging(value);
  1538. this.SendPropertyChanging();
  1539. this._SupplierCode = value;
  1540. this.SendPropertyChanged("SupplierCode");
  1541. this.OnSupplierCodeChanged();
  1542. }
  1543. }
  1544. }
  1545. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmailSent", DbType="Bit NOT NULL")]
  1546. public bool EmailSent
  1547. {
  1548. get
  1549. {
  1550. return this._EmailSent;
  1551. }
  1552. set
  1553. {
  1554. if ((this._EmailSent != value))
  1555. {
  1556. this.OnEmailSentChanging(value);
  1557. this.SendPropertyChanging();
  1558. this._EmailSent = value;
  1559. this.SendPropertyChanged("EmailSent");
  1560. this.OnEmailSentChanged();
  1561. }
  1562. }
  1563. }
  1564. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Changed", DbType="Bit NOT NULL")]
  1565. public bool Changed
  1566. {
  1567. get
  1568. {
  1569. return this._Changed;
  1570. }
  1571. set
  1572. {
  1573. if ((this._Changed != value))
  1574. {
  1575. this.OnChangedChanging(value);
  1576. this.SendPropertyChanging();
  1577. this._Changed = value;
  1578. this.SendPropertyChanged("Changed");
  1579. this.OnChangedChanged();
  1580. }
  1581. }
  1582. }
  1583. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AdvanceRequest", DbType="Money NOT NULL")]
  1584. public decimal AdvanceRequest
  1585. {
  1586. get
  1587. {
  1588. return this._AdvanceRequest;
  1589. }
  1590. set
  1591. {
  1592. if ((this._AdvanceRequest != value))
  1593. {
  1594. this.OnAdvanceRequestChanging(value);
  1595. this.SendPropertyChanging();
  1596. this._AdvanceRequest = value;
  1597. this.SendPropertyChanged("AdvanceRequest");
  1598. this.OnAdvanceRequestChanged();
  1599. }
  1600. }
  1601. }
  1602. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Department", DbType="Bit NOT NULL")]
  1603. public bool Department
  1604. {
  1605. get
  1606. {
  1607. return this._Department;
  1608. }
  1609. set
  1610. {
  1611. if ((this._Department != value))
  1612. {
  1613. this.OnDepartmentChanging(value);
  1614. this.SendPropertyChanging();
  1615. this._Department = value;
  1616. this.SendPropertyChanged("Department");
  1617. this.OnDepartmentChanged();
  1618. }
  1619. }
  1620. }
  1621. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpareField1", DbType="NVarChar(50)")]
  1622. public string SpareField1
  1623. {
  1624. get
  1625. {
  1626. return this._SpareField1;
  1627. }
  1628. set
  1629. {
  1630. if ((this._SpareField1 != value))
  1631. {
  1632. this.OnSpareField1Changing(value);
  1633. this.SendPropertyChanging();
  1634. this._SpareField1 = value;
  1635. this.SendPropertyChanged("SpareField1");
  1636. this.OnSpareField1Changed();
  1637. }
  1638. }
  1639. }
  1640. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpareField2", DbType="NVarChar(50)")]
  1641. public string SpareField2
  1642. {
  1643. get
  1644. {
  1645. return this._SpareField2;
  1646. }
  1647. set
  1648. {
  1649. if ((this._SpareField2 != value))
  1650. {
  1651. this.OnSpareField2Changing(value);
  1652. this.SendPropertyChanging();
  1653. this._SpareField2 = value;
  1654. this.SendPropertyChanged("SpareField2");
  1655. this.OnSpareField2Changed();
  1656. }
  1657. }
  1658. }
  1659. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpareField3", DbType="NVarChar(50)")]
  1660. public string SpareField3
  1661. {
  1662. get
  1663. {
  1664. return this._SpareField3;
  1665. }
  1666. set
  1667. {
  1668. if ((this._SpareField3 != value))
  1669. {
  1670. this.OnSpareField3Changing(value);
  1671. this.SendPropertyChanging();
  1672. this._SpareField3 = value;
  1673. this.SendPropertyChanged("SpareField3");
  1674. this.OnSpareField3Changed();
  1675. }
  1676. }
  1677. }
  1678. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpareField4", DbType="NVarChar(50)")]
  1679. public string SpareField4
  1680. {
  1681. get
  1682. {
  1683. return this._SpareField4;
  1684. }
  1685. set
  1686. {
  1687. if ((this._SpareField4 != value))
  1688. {
  1689. this.OnSpareField4Changing(value);
  1690. this.SendPropertyChanging();
  1691. this._SpareField4 = value;
  1692. this.SendPropertyChanged("SpareField4");
  1693. this.OnSpareField4Changed();
  1694. }
  1695. }
  1696. }
  1697. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SpareField5", DbType="NVarChar(50)")]
  1698. public string SpareField5
  1699. {
  1700. get
  1701. {
  1702. return this._SpareField5;
  1703. }
  1704. set
  1705. {
  1706. if ((this._SpareField5 != value))
  1707. {
  1708. this.OnSpareField5Changing(value);
  1709. this.SendPropertyChanging();
  1710. this._SpareField5 = value;
  1711. this.SendPropertyChanged("SpareField5");
  1712. this.OnSpareField5Changed();
  1713. }
  1714. }
  1715. }
  1716. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RID", DbType="Int NOT NULL")]
  1717. public int RID
  1718. {
  1719. get
  1720. {
  1721. return this._RID;
  1722. }
  1723. set
  1724. {
  1725. if ((this._RID != value))
  1726. {
  1727. this.OnRIDChanging(value);
  1728. this.SendPropertyChanging();
  1729. this._RID = value;
  1730. this.SendPropertyChanged("RID");
  1731. this.OnRIDChanged();
  1732. }
  1733. }
  1734. }
  1735. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Error", DbType="Bit NOT NULL")]
  1736. public bool Error
  1737. {
  1738. get
  1739. {
  1740. return this._Error;
  1741. }
  1742. set
  1743. {
  1744. if ((this._Error != value))
  1745. {
  1746. this.OnErrorChanging(value);
  1747. this.SendPropertyChanging();
  1748. this._Error = value;
  1749. this.SendPropertyChanged("Error");
  1750. this.OnErrorChanged();
  1751. }
  1752. }
  1753. }
  1754. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ErrorMessage", DbType="NVarChar(MAX)")]
  1755. public string ErrorMessage
  1756. {
  1757. get
  1758. {
  1759. return this._ErrorMessage;
  1760. }
  1761. set
  1762. {
  1763. if ((this._ErrorMessage != value))
  1764. {
  1765. this.OnErrorMessageChanging(value);
  1766. this.SendPropertyChanging();
  1767. this._ErrorMessage = value;
  1768. this.SendPropertyChanged("ErrorMessage");
  1769. this.OnErrorMessageChanged();
  1770. }
  1771. }
  1772. }
  1773. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DownloadDate", DbType="DateTime")]
  1774. public System.Nullable<System.DateTime> DownloadDate
  1775. {
  1776. get
  1777. {
  1778. return this._DownloadDate;
  1779. }
  1780. set
  1781. {
  1782. if ((this._DownloadDate != value))
  1783. {
  1784. this.OnDownloadDateChanging(value);
  1785. this.SendPropertyChanging();
  1786. this._DownloadDate = value;
  1787. this.SendPropertyChanged("DownloadDate");
  1788. this.OnDownloadDateChanged();
  1789. }
  1790. }
  1791. }
  1792. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DownloadMode", DbType="NVarChar(20)")]
  1793. public string DownloadMode
  1794. {
  1795. get
  1796. {
  1797. return this._DownloadMode;
  1798. }
  1799. set
  1800. {
  1801. if ((this._DownloadMode != value))
  1802. {
  1803. this.OnDownloadModeChanging(value);
  1804. this.SendPropertyChanging();
  1805. this._DownloadMode = value;
  1806. this.SendPropertyChanged("DownloadMode");
  1807. this.OnDownloadModeChanged();
  1808. }
  1809. }
  1810. }
  1811. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MoreInfoRequested", DbType="bit")]
  1812. public System.Nullable<bool> MoreInfoRequested
  1813. {
  1814. get
  1815. {
  1816. return this._MoreInfoRequested;
  1817. }
  1818. set
  1819. {
  1820. if ((this._MoreInfoRequested != value))
  1821. {
  1822. this.OnMoreInfoRequestedChanging(value);
  1823. this.SendPropertyChanging();
  1824. this._MoreInfoRequested = value;
  1825. this.SendPropertyChanged("MoreInfoRequested");
  1826. this.OnMoreInfoRequestedChanged();
  1827. }
  1828. }
  1829. }
  1830. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProcUserId", DbType="Int")]
  1831. public System.Nullable<int> ProcUserId
  1832. {
  1833. get
  1834. {
  1835. return this._ProcUserId;
  1836. }
  1837. set
  1838. {
  1839. if ((this._ProcUserId != value))
  1840. {
  1841. this.OnProcUserIdChanging(value);
  1842. this.SendPropertyChanging();
  1843. this._ProcUserId = value;
  1844. this.SendPropertyChanged("ProcUserId");
  1845. this.OnProcUserIdChanged();
  1846. }
  1847. }
  1848. }
  1849. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_Staff_Rmb_AP_Staff_RmbLine", Storage="_AP_Staff_RmbLines", ThisKey="RMBNo", OtherKey="RmbNo")]
  1850. public EntitySet<AP_Staff_RmbLine> AP_Staff_RmbLines
  1851. {
  1852. get
  1853. {
  1854. return this._AP_Staff_RmbLines;
  1855. }
  1856. set
  1857. {
  1858. this._AP_Staff_RmbLines.Assign(value);
  1859. }
  1860. }
  1861. public event PropertyChangingEventHandler PropertyChanging;
  1862. public event PropertyChangedEventHandler PropertyChanged;
  1863. protected virtual void SendPropertyChanging()
  1864. {
  1865. if ((this.PropertyChanging != null))
  1866. {
  1867. this.PropertyChanging(this, emptyChangingEventArgs);
  1868. }
  1869. }
  1870. protected virtual void SendPropertyChanged(String propertyName)
  1871. {
  1872. if ((this.PropertyChanged != null))
  1873. {
  1874. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  1875. }
  1876. }
  1877. private void attach_AP_Staff_RmbLines(AP_Staff_RmbLine entity)
  1878. {
  1879. this.SendPropertyChanging();
  1880. entity.AP_Staff_Rmb = this;
  1881. }
  1882. private void detach_AP_Staff_RmbLines(AP_Staff_RmbLine entity)
  1883. {
  1884. this.SendPropertyChanging();
  1885. entity.AP_Staff_Rmb = null;
  1886. }
  1887. }
  1888. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_Staff_AdvanceRequest")]
  1889. public partial class AP_Staff_AdvanceRequest : INotifyPropertyChanging, INotifyPropertyChanged
  1890. {
  1891. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  1892. private int _AdvanceId;
  1893. private System.Nullable<int> _LocalAdvanceId;
  1894. private System.Nullable<int> _UserId;
  1895. private System.Nullable<short> _RequestStatus;
  1896. private System.Nullable<decimal> _RequestAmount;
  1897. private string _RequestText;
  1898. private System.Nullable<System.DateTime> _RequestDate;
  1899. private System.Nullable<int> _ApproverId;
  1900. private System.Nullable<System.DateTime> _ApprovedDate;
  1901. private System.Nullable<System.DateTime> _ProcessedDate;
  1902. private System.Nullable<byte> _Period;
  1903. private System.Nullable<short> _Year;
  1904. private bool _Error;
  1905. private string _ErrorMessage;
  1906. private int _PortalId;
  1907. private string _OrigCurrency;
  1908. private System.Nullable<decimal> _OrigCurrencyAmount;
  1909. private string _ShortComment;
  1910. #region Extensibility Method Definitions
  1911. partial void OnLoaded();
  1912. partial void OnValidate(System.Data.Linq.ChangeAction action);
  1913. partial void OnCreated();
  1914. partial void OnAdvanceIdChanging(int value);
  1915. partial void OnAdvanceIdChanged();
  1916. partial void OnLocalAdvanceIdChanging(System.Nullable<int> value);
  1917. partial void OnLocalAdvanceIdChanged();
  1918. partial void OnUserIdChanging(System.Nullable<int> value);
  1919. partial void OnUserIdChanged();
  1920. partial void OnRequestStatusChanging(System.Nullable<short> value);
  1921. partial void OnRequestStatusChanged();
  1922. partial void OnRequestAmountChanging(System.Nullable<decimal> value);
  1923. partial void OnRequestAmountChanged();
  1924. partial void OnRequestTextChanging(string value);
  1925. partial void OnRequestTextChanged();
  1926. partial void OnRequestDateChanging(System.Nullable<System.DateTime> value);
  1927. partial void OnRequestDateChanged();
  1928. partial void OnApproverIdChanging(System.Nullable<int> value);
  1929. partial void OnApproverIdChanged();
  1930. partial void OnApprovedDateChanging(System.Nullable<System.DateTime> value);
  1931. partial void OnApprovedDateChanged();
  1932. partial void OnProcessedDateChanging(System.Nullable<System.DateTime> value);
  1933. partial void OnProcessedDateChanged();
  1934. partial void OnPeriodChanging(System.Nullable<byte> value);
  1935. partial void OnPeriodChanged();
  1936. partial void OnYearChanging(System.Nullable<short> value);
  1937. partial void OnYearChanged();
  1938. partial void OnErrorChanging(bool value);
  1939. partial void OnErrorChanged();
  1940. partial void OnErrorMessageChanging(string value);
  1941. partial void OnErrorMessageChanged();
  1942. partial void OnPortalIdChanging(int value);
  1943. partial void OnPortalIdChanged();
  1944. partial void OnOrigCurrencyChanging(string value);
  1945. partial void OnOrigCurrencyChanged();
  1946. partial void OnOrigCurrencyAmountChanging(System.Nullable<decimal> value);
  1947. partial void OnOrigCurrencyAmountChanged();
  1948. partial void OnShortCommentChanging(string value);
  1949. partial void OnShortCommentChanged();
  1950. #endregion
  1951. public AP_Staff_AdvanceRequest()
  1952. {
  1953. OnCreated();
  1954. }
  1955. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AdvanceId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  1956. public int AdvanceId
  1957. {
  1958. get
  1959. {
  1960. return this._AdvanceId;
  1961. }
  1962. set
  1963. {
  1964. if ((this._AdvanceId != value))
  1965. {
  1966. this.OnAdvanceIdChanging(value);
  1967. this.SendPropertyChanging();
  1968. this._AdvanceId = value;
  1969. this.SendPropertyChanged("AdvanceId");
  1970. this.OnAdvanceIdChanged();
  1971. }
  1972. }
  1973. }
  1974. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LocalAdvanceId", DbType="Int")]
  1975. public System.Nullable<int> LocalAdvanceId
  1976. {
  1977. get
  1978. {
  1979. return this._LocalAdvanceId;
  1980. }
  1981. set
  1982. {
  1983. if ((this._LocalAdvanceId != value))
  1984. {
  1985. this.OnLocalAdvanceIdChanging(value);
  1986. this.SendPropertyChanging();
  1987. this._LocalAdvanceId = value;
  1988. this.SendPropertyChanged("LocalAdvanceId");
  1989. this.OnLocalAdvanceIdChanged();
  1990. }
  1991. }
  1992. }
  1993. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UserId", DbType="Int")]
  1994. public System.Nullable<int> UserId
  1995. {
  1996. get
  1997. {
  1998. return this._UserId;
  1999. }
  2000. set
  2001. {
  2002. if ((this._UserId != value))
  2003. {
  2004. this.OnUserIdChanging(value);
  2005. this.SendPropertyChanging();
  2006. this._UserId = value;
  2007. this.SendPropertyChanged("UserId");
  2008. this.OnUserIdChanged();
  2009. }
  2010. }
  2011. }
  2012. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RequestStatus", DbType="SmallInt")]
  2013. public System.Nullable<short> RequestStatus
  2014. {
  2015. get
  2016. {
  2017. return this._RequestStatus;
  2018. }
  2019. set
  2020. {
  2021. if ((this._RequestStatus != value))
  2022. {
  2023. this.OnRequestStatusChanging(value);
  2024. this.SendPropertyChanging();
  2025. this._RequestStatus = value;
  2026. this.SendPropertyChanged("RequestStatus");
  2027. this.OnRequestStatusChanged();
  2028. }
  2029. }
  2030. }
  2031. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RequestAmount", DbType="Money")]
  2032. public System.Nullable<decimal> RequestAmount
  2033. {
  2034. get
  2035. {
  2036. return this._RequestAmount;
  2037. }
  2038. set
  2039. {
  2040. if ((this._RequestAmount != value))
  2041. {
  2042. this.OnRequestAmountChanging(value);
  2043. this.SendPropertyChanging();
  2044. this._RequestAmount = value;
  2045. this.SendPropertyChanged("RequestAmount");
  2046. this.OnRequestAmountChanged();
  2047. }
  2048. }
  2049. }
  2050. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RequestText", DbType="NVarChar(MAX)")]
  2051. public string RequestText
  2052. {
  2053. get
  2054. {
  2055. return this._RequestText;
  2056. }
  2057. set
  2058. {
  2059. if ((this._RequestText != value))
  2060. {
  2061. this.OnRequestTextChanging(value);
  2062. this.SendPropertyChanging();
  2063. this._RequestText = value;
  2064. this.SendPropertyChanged("RequestText");
  2065. this.OnRequestTextChanged();
  2066. }
  2067. }
  2068. }
  2069. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RequestDate", DbType="Date")]
  2070. public System.Nullable<System.DateTime> RequestDate
  2071. {
  2072. get
  2073. {
  2074. return this._RequestDate;
  2075. }
  2076. set
  2077. {
  2078. if ((this._RequestDate != value))
  2079. {
  2080. this.OnRequestDateChanging(value);
  2081. this.SendPropertyChanging();
  2082. this._RequestDate = value;
  2083. this.SendPropertyChanged("RequestDate");
  2084. this.OnRequestDateChanged();
  2085. }
  2086. }
  2087. }
  2088. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproverId", DbType="Int")]
  2089. public System.Nullable<int> ApproverId
  2090. {
  2091. get
  2092. {
  2093. return this._ApproverId;
  2094. }
  2095. set
  2096. {
  2097. if ((this._ApproverId != value))
  2098. {
  2099. this.OnApproverIdChanging(value);
  2100. this.SendPropertyChanging();
  2101. this._ApproverId = value;
  2102. this.SendPropertyChanged("ApproverId");
  2103. this.OnApproverIdChanged();
  2104. }
  2105. }
  2106. }
  2107. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApprovedDate", DbType="Date")]
  2108. public System.Nullable<System.DateTime> ApprovedDate
  2109. {
  2110. get
  2111. {
  2112. return this._ApprovedDate;
  2113. }
  2114. set
  2115. {
  2116. if ((this._ApprovedDate != value))
  2117. {
  2118. this.OnApprovedDateChanging(value);
  2119. this.SendPropertyChanging();
  2120. this._ApprovedDate = value;
  2121. this.SendPropertyChanged("ApprovedDate");
  2122. this.OnApprovedDateChanged();
  2123. }
  2124. }
  2125. }
  2126. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProcessedDate", DbType="Date")]
  2127. public System.Nullable<System.DateTime> ProcessedDate
  2128. {
  2129. get
  2130. {
  2131. return this._ProcessedDate;
  2132. }
  2133. set
  2134. {
  2135. if ((this._ProcessedDate != value))
  2136. {
  2137. this.OnProcessedDateChanging(value);
  2138. this.SendPropertyChanging();
  2139. this._ProcessedDate = value;
  2140. this.SendPropertyChanged("ProcessedDate");
  2141. this.OnProcessedDateChanged();
  2142. }
  2143. }
  2144. }
  2145. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Period", DbType="TinyInt")]
  2146. public System.Nullable<byte> Period
  2147. {
  2148. get
  2149. {
  2150. return this._Period;
  2151. }
  2152. set
  2153. {
  2154. if ((this._Period != value))
  2155. {
  2156. this.OnPeriodChanging(value);
  2157. this.SendPropertyChanging();
  2158. this._Period = value;
  2159. this.SendPropertyChanged("Period");
  2160. this.OnPeriodChanged();
  2161. }
  2162. }
  2163. }
  2164. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Year", DbType="SmallInt")]
  2165. public System.Nullable<short> Year
  2166. {
  2167. get
  2168. {
  2169. return this._Year;
  2170. }
  2171. set
  2172. {
  2173. if ((this._Year != value))
  2174. {
  2175. this.OnYearChanging(value);
  2176. this.SendPropertyChanging();
  2177. this._Year = value;
  2178. this.SendPropertyChanged("Year");
  2179. this.OnYearChanged();
  2180. }
  2181. }
  2182. }
  2183. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Error", DbType="Bit NOT NULL")]
  2184. public bool Error
  2185. {
  2186. get
  2187. {
  2188. return this._Error;
  2189. }
  2190. set
  2191. {
  2192. if ((this._Error != value))
  2193. {
  2194. this.OnErrorChanging(value);
  2195. this.SendPropertyChanging();
  2196. this._Error = value;
  2197. this.SendPropertyChanged("Error");
  2198. this.OnErrorChanged();
  2199. }
  2200. }
  2201. }
  2202. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ErrorMessage", DbType="NVarChar(MAX)")]
  2203. public string ErrorMessage
  2204. {
  2205. get
  2206. {
  2207. return this._ErrorMessage;
  2208. }
  2209. set
  2210. {
  2211. if ((this._ErrorMessage != value))
  2212. {
  2213. this.OnErrorMessageChanging(value);
  2214. this.SendPropertyChanging();
  2215. this._ErrorMessage = value;
  2216. this.SendPropertyChanged("ErrorMessage");
  2217. this.OnErrorMessageChanged();
  2218. }
  2219. }
  2220. }
  2221. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int NOT NULL")]
  2222. public int PortalId
  2223. {
  2224. get
  2225. {
  2226. return this._PortalId;
  2227. }
  2228. set
  2229. {
  2230. if ((this._PortalId != value))
  2231. {
  2232. this.OnPortalIdChanging(value);
  2233. this.SendPropertyChanging();
  2234. this._PortalId = value;
  2235. this.SendPropertyChanged("PortalId");
  2236. this.OnPortalIdChanged();
  2237. }
  2238. }
  2239. }
  2240. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrigCurrency", DbType="VarChar(5)")]
  2241. public string OrigCurrency
  2242. {
  2243. get
  2244. {
  2245. return this._OrigCurrency;
  2246. }
  2247. set
  2248. {
  2249. if ((this._OrigCurrency != value))
  2250. {
  2251. this.OnOrigCurrencyChanging(value);
  2252. this.SendPropertyChanging();
  2253. this._OrigCurrency = value;
  2254. this.SendPropertyChanged("OrigCurrency");
  2255. this.OnOrigCurrencyChanged();
  2256. }
  2257. }
  2258. }
  2259. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrigCurrencyAmount", DbType="Money")]
  2260. public System.Nullable<decimal> OrigCurrencyAmount
  2261. {
  2262. get
  2263. {
  2264. return this._OrigCurrencyAmount;
  2265. }
  2266. set
  2267. {
  2268. if ((this._OrigCurrencyAmount != value))
  2269. {
  2270. this.OnOrigCurrencyAmountChanging(value);
  2271. this.SendPropertyChanging();
  2272. this._OrigCurrencyAmount = value;
  2273. this.SendPropertyChanged("OrigCurrencyAmount");
  2274. this.OnOrigCurrencyAmountChanged();
  2275. }
  2276. }
  2277. }
  2278. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShortComment", DbType="NVarChar(28)")]
  2279. public string ShortComment
  2280. {
  2281. get
  2282. {
  2283. return this._ShortComment;
  2284. }
  2285. set
  2286. {
  2287. if ((this._ShortComment != value))
  2288. {
  2289. this.OnShortCommentChanging(value);
  2290. this.SendPropertyChanging();
  2291. this._ShortComment = value;
  2292. this.SendPropertyChanged("ShortComment");
  2293. this.OnShortCommentChanged();
  2294. }
  2295. }
  2296. }
  2297. public event PropertyChangingEventHandler PropertyChanging;
  2298. public event PropertyChangedEventHandler PropertyChanged;
  2299. protected virtual void SendPropertyChanging()
  2300. {
  2301. if ((this.PropertyChanging != null))
  2302. {
  2303. this.PropertyChanging(this, emptyChangingEventArgs);
  2304. }
  2305. }
  2306. protected virtual void SendPropertyChanged(String propertyName)
  2307. {
  2308. if ((this.PropertyChanged != null))
  2309. {
  2310. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  2311. }
  2312. }
  2313. }
  2314. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_Staff_Rmb_PerDeimMuliTypes")]
  2315. public partial class AP_Staff_Rmb_PerDeimMuliType : INotifyPropertyChanging, INotifyPropertyChanged
  2316. {
  2317. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  2318. private int _PerDiemTypeId;
  2319. private string _Name;
  2320. private string _Currency;
  2321. private System.Nullable<decimal> _Value;
  2322. private System.Nullable<int> _PortalId;
  2323. #region Extensibility Method Definitions
  2324. partial void OnLoaded();
  2325. partial void OnValidate(System.Data.Linq.ChangeAction action);
  2326. partial void OnCreated();
  2327. partial void OnPerDiemTypeIdChanging(int value);
  2328. partial void OnPerDiemTypeIdChanged();
  2329. partial void OnNameChanging(string value);
  2330. partial void OnNameChanged();
  2331. partial void OnCurrencyChanging(string value);
  2332. partial void OnCurrencyChanged();
  2333. partial void OnValueChanging(System.Nullable<decimal> value);
  2334. partial void OnValueChanged();
  2335. partial void OnPortalIdChanging(System.Nullable<int> value);
  2336. partial void OnPortalIdChanged();
  2337. #endregion
  2338. public AP_Staff_Rmb_PerDeimMuliType()
  2339. {
  2340. OnCreated();
  2341. }
  2342. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PerDiemTypeId", AutoSync=AutoSync.OnInsert, DbType="Int NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  2343. public int PerDiemTypeId
  2344. {
  2345. get
  2346. {
  2347. return this._PerDiemTypeId;
  2348. }
  2349. set
  2350. {
  2351. if ((this._PerDiemTypeId != value))
  2352. {
  2353. this.OnPerDiemTypeIdChanging(value);
  2354. this.SendPropertyChanging();
  2355. this._PerDiemTypeId = value;
  2356. this.SendPropertyChanged("PerDiemTypeId");
  2357. this.OnPerDiemTypeIdChanged();
  2358. }
  2359. }
  2360. }
  2361. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(50)")]
  2362. public string Name
  2363. {
  2364. get
  2365. {
  2366. return this._Name;
  2367. }
  2368. set
  2369. {
  2370. if ((this._Name != value))
  2371. {
  2372. this.OnNameChanging(value);
  2373. this.SendPropertyChanging();
  2374. this._Name = value;
  2375. this.SendPropertyChanged("Name");
  2376. this.OnNameChanged();
  2377. }
  2378. }
  2379. }
  2380. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Currency", DbType="NVarChar(10)")]
  2381. public string Currency
  2382. {
  2383. get
  2384. {
  2385. return this._Currency;
  2386. }
  2387. set
  2388. {
  2389. if ((this._Currency != value))
  2390. {
  2391. this.OnCurrencyChanging(value);
  2392. this.SendPropertyChanging();
  2393. this._Currency = value;
  2394. this.SendPropertyChanged("Currency");
  2395. this.OnCurrencyChanged();
  2396. }
  2397. }
  2398. }
  2399. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Value", DbType="Money")]
  2400. public System.Nullable<decimal> Value
  2401. {
  2402. get
  2403. {
  2404. return this._Value;
  2405. }
  2406. set
  2407. {
  2408. if ((this._Value != value))
  2409. {
  2410. this.OnValueChanging(value);
  2411. this.SendPropertyChanging();
  2412. this._Value = value;
  2413. this.SendPropertyChanged("Value");
  2414. this.OnValueChanged();
  2415. }
  2416. }
  2417. }
  2418. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PortalId", DbType="Int")]
  2419. public System.Nullable<int> PortalId
  2420. {
  2421. get
  2422. {
  2423. return this._PortalId;
  2424. }
  2425. set
  2426. {
  2427. if ((this._PortalId != value))
  2428. {
  2429. this.OnPortalIdChanging(value);
  2430. this.SendPropertyChanging();
  2431. this._PortalId = value;
  2432. this.SendPropertyChanged("PortalId");
  2433. this.OnPortalIdChanged();
  2434. }
  2435. }
  2436. }
  2437. public event PropertyChangingEventHandler PropertyChanging;
  2438. public event PropertyChangedEventHandler PropertyChanged;
  2439. protected virtual void SendPropertyChanging()
  2440. {
  2441. if ((this.PropertyChanging != null))
  2442. {
  2443. this.PropertyChanging(this, emptyChangingEventArgs);
  2444. }
  2445. }
  2446. protected virtual void SendPropertyChanged(String propertyName)
  2447. {
  2448. if ((this.PropertyChanged != null))
  2449. {
  2450. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  2451. }
  2452. }
  2453. }
  2454. [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.AP_Staff_RmbLine")]
  2455. public partial class AP_Staff_RmbLine : INotifyPropertyChanging, INotifyPropertyChanged
  2456. {
  2457. private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
  2458. private long _RmbLineNo;
  2459. private long _RmbNo;
  2460. private short _LineType;
  2461. private decimal _GrossAmount;
  2462. private System.DateTime _TransDate;
  2463. private string _Comment;
  2464. private bool _Taxable;
  2465. private bool _Receipt;
  2466. private bool _VATReceipt;
  2467. private System.Nullable<short> _ReceiptNo;
  2468. private System.Nullable<short> _Mileage;
  2469. private System.Nullable<decimal> _MileageRate;
  2470. private string _Spare1;
  2471. private string _Spare2;
  2472. private string _Spare3;
  2473. private string _Spare4;
  2474. private string _Spare5;
  2475. private string _AnalysisCode;
  2476. private bool _Split;
  2477. private bool _LargeTransaction;
  2478. private bool _OutOfDate;
  2479. private bool _Department;
  2480. private string _AccountCode;
  2481. private string _CostCenter;
  2482. private System.Nullable<double> _VATRate;
  2483. private string _VATCode;
  2484. private System.Nullable<bool> _ForceTaxOrig;
  2485. private string _OrigCurrency;
  2486. private System.Nullable<decimal> _OrigCurrencyAmount;
  2487. private string _ShortComment;
  2488. private System.Nullable<byte> _ReceiptMode;
  2489. private System.Nullable<int> _ReceiptImageId;
  2490. private string _ReceiptText;
  2491. private EntityRef<AP_Staff_Rmb> _AP_Staff_Rmb;
  2492. private EntityRef<AP_Staff_RmbLineType> _AP_Staff_RmbLineType;
  2493. #region Extensibility Method Definitions
  2494. partial void OnLoaded();
  2495. partial void OnValidate(System.Data.Linq.ChangeAction action);
  2496. partial void OnCreated();
  2497. partial void OnRmbLineNoChanging(long value);
  2498. partial void OnRmbLineNoChanged();
  2499. partial void OnRmbNoChanging(long value);
  2500. partial void OnRmbNoChanged();
  2501. partial void OnLineTypeChanging(short value);
  2502. partial void OnLineTypeChanged();
  2503. partial void OnGrossAmountChanging(decimal value);
  2504. partial void OnGrossAmountChanged();
  2505. partial void OnTransDateChanging(System.DateTime value);
  2506. partial void OnTransDateChanged();
  2507. partial void OnCommentChanging(string value);
  2508. partial void OnCommentChanged();
  2509. partial void OnTaxableChanging(bool value);
  2510. partial void OnTaxableChanged();
  2511. partial void OnReceiptChanging(bool value);
  2512. partial void OnReceiptChanged();
  2513. partial void OnVATReceiptChanging(bool value);
  2514. partial void OnVATReceiptChanged();
  2515. partial void OnReceiptNoChanging(System.Nullable<short> value);
  2516. partial void OnReceiptNoChanged();
  2517. partial void OnMileageChanging(System.Nullable<short> value);
  2518. partial void OnMileageChanged();
  2519. partial void OnMileageRateChanging(System.Nullable<decimal> value);
  2520. partial void OnMileageRateChanged();
  2521. partial void OnSpare1Changing(string value);
  2522. partial void OnSpare1Changed();
  2523. partial void OnSpare2Changing(string value);
  2524. partial void OnSpare2Changed();
  2525. partial void OnSpare3Changing(string value);
  2526. partial void OnSpare3Changed();
  2527. partial void OnSpare4Changing(string value);
  2528. partial void OnSpare4Changed();
  2529. partial void OnSpare5Changing(string value);
  2530. partial void OnSpare5Changed();
  2531. partial void OnAnalysisCodeChanging(string value);
  2532. partial void OnAnalysisCodeChanged();
  2533. partial void OnSplitChanging(bool value);
  2534. partial void OnSplitChanged();
  2535. partial void OnLargeTransactionChanging(bool value);
  2536. partial void OnLargeTransactionChanged();
  2537. partial void OnOutOfDateChanging(bool value);
  2538. partial void OnOutOfDateChanged();
  2539. partial void OnDepartmentChanging(bool value);
  2540. partial void OnDepartmentChanged();
  2541. partial void OnAccountCodeChanging(string value);
  2542. partial void OnAccountCodeChanged();
  2543. partial void OnCostCenterChanging(string value);
  2544. partial void OnCostCenterChanged();
  2545. partial void OnVATRateChanging(System.Nullable<double> value);
  2546. partial void OnVATRateChanged();
  2547. partial void OnVATCodeChanging(string value);
  2548. partial void OnVATCodeChanged();
  2549. partial void OnForceTaxOrigChanging(System.Nullable<bool> value);
  2550. partial void OnForceTaxOrigChanged();
  2551. partial void OnOrigCurrencyChanging(string value);
  2552. partial void OnOrigCurrencyChanged();
  2553. partial void OnOrigCurrencyAmountChanging(System.Nullable<decimal> value);
  2554. partial void OnOrigCurrencyAmountChanged();
  2555. partial void OnShortCommentChanging(string value);
  2556. partial void OnShortCommentChanged();
  2557. partial void OnReceiptModeChanging(System.Nullable<byte> value);
  2558. partial void OnReceiptModeChanged();
  2559. partial void OnReceiptImageIdChanging(System.Nullable<int> value);
  2560. partial void OnReceiptImageIdChanged();
  2561. partial void OnReceiptTextChanging(string value);
  2562. partial void OnReceiptTextChanged();
  2563. #endregion
  2564. public AP_Staff_RmbLine()
  2565. {
  2566. this._AP_Staff_Rmb = default(EntityRef<AP_Staff_Rmb>);
  2567. this._AP_Staff_RmbLineType = default(EntityRef<AP_Staff_RmbLineType>);
  2568. OnCreated();
  2569. }
  2570. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RmbLineNo", AutoSync=AutoSync.OnInsert, DbType="BigInt NOT NULL IDENTITY", IsPrimaryKey=true, IsDbGenerated=true)]
  2571. public long RmbLineNo
  2572. {
  2573. get
  2574. {
  2575. return this._RmbLineNo;
  2576. }
  2577. set
  2578. {
  2579. if ((this._RmbLineNo != value))
  2580. {
  2581. this.OnRmbLineNoChanging(value);
  2582. this.SendPropertyChanging();
  2583. this._RmbLineNo = value;
  2584. this.SendPropertyChanged("RmbLineNo");
  2585. this.OnRmbLineNoChanged();
  2586. }
  2587. }
  2588. }
  2589. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RmbNo", DbType="BigInt NOT NULL")]
  2590. public long RmbNo
  2591. {
  2592. get
  2593. {
  2594. return this._RmbNo;
  2595. }
  2596. set
  2597. {
  2598. if ((this._RmbNo != value))
  2599. {
  2600. if (this._AP_Staff_Rmb.HasLoadedOrAssignedValue)
  2601. {
  2602. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  2603. }
  2604. this.OnRmbNoChanging(value);
  2605. this.SendPropertyChanging();
  2606. this._RmbNo = value;
  2607. this.SendPropertyChanged("RmbNo");
  2608. this.OnRmbNoChanged();
  2609. }
  2610. }
  2611. }
  2612. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LineType", DbType="SmallInt NOT NULL")]
  2613. public short LineType
  2614. {
  2615. get
  2616. {
  2617. return this._LineType;
  2618. }
  2619. set
  2620. {
  2621. if ((this._LineType != value))
  2622. {
  2623. if (this._AP_Staff_RmbLineType.HasLoadedOrAssignedValue)
  2624. {
  2625. throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
  2626. }
  2627. this.OnLineTypeChanging(value);
  2628. this.SendPropertyChanging();
  2629. this._LineType = value;
  2630. this.SendPropertyChanged("LineType");
  2631. this.OnLineTypeChanged();
  2632. }
  2633. }
  2634. }
  2635. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_GrossAmount", DbType="Money NOT NULL")]
  2636. public decimal GrossAmount
  2637. {
  2638. get
  2639. {
  2640. return this._GrossAmount;
  2641. }
  2642. set
  2643. {
  2644. if ((this._GrossAmount != value))
  2645. {
  2646. this.OnGrossAmountChanging(value);
  2647. this.SendPropertyChanging();
  2648. this._GrossAmount = value;
  2649. this.SendPropertyChanged("GrossAmount");
  2650. this.OnGrossAmountChanged();
  2651. }
  2652. }
  2653. }
  2654. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TransDate", DbType="Date NOT NULL")]
  2655. public System.DateTime TransDate
  2656. {
  2657. get
  2658. {
  2659. return this._TransDate;
  2660. }
  2661. set
  2662. {
  2663. if ((this._TransDate != value))
  2664. {
  2665. this.OnTransDateChanging(value);
  2666. this.SendPropertyChanging();
  2667. this._TransDate = value;
  2668. this.SendPropertyChanged("TransDate");
  2669. this.OnTransDateChanged();
  2670. }
  2671. }
  2672. }
  2673. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Comment", DbType="NVarChar(MAX) NOT NULL", CanBeNull=false)]
  2674. public string Comment
  2675. {
  2676. get
  2677. {
  2678. return this._Comment;
  2679. }
  2680. set
  2681. {
  2682. if ((this._Comment != value))
  2683. {
  2684. this.OnCommentChanging(value);
  2685. this.SendPropertyChanging();
  2686. this._Comment = value;
  2687. this.SendPropertyChanged("Comment");
  2688. this.OnCommentChanged();
  2689. }
  2690. }
  2691. }
  2692. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Taxable", DbType="Bit NOT NULL")]
  2693. public bool Taxable
  2694. {
  2695. get
  2696. {
  2697. return this._Taxable;
  2698. }
  2699. set
  2700. {
  2701. if ((this._Taxable != value))
  2702. {
  2703. this.OnTaxableChanging(value);
  2704. this.SendPropertyChanging();
  2705. this._Taxable = value;
  2706. this.SendPropertyChanged("Taxable");
  2707. this.OnTaxableChanged();
  2708. }
  2709. }
  2710. }
  2711. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Receipt", DbType="Bit NOT NULL")]
  2712. public bool Receipt
  2713. {
  2714. get
  2715. {
  2716. return this._Receipt;
  2717. }
  2718. set
  2719. {
  2720. if ((this._Receipt != value))
  2721. {
  2722. this.OnReceiptChanging(value);
  2723. this.SendPropertyChanging();
  2724. this._Receipt = value;
  2725. this.SendPropertyChanged("Receipt");
  2726. this.OnReceiptChanged();
  2727. }
  2728. }
  2729. }
  2730. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VATReceipt", DbType="Bit NOT NULL")]
  2731. public bool VATReceipt
  2732. {
  2733. get
  2734. {
  2735. return this._VATReceipt;
  2736. }
  2737. set
  2738. {
  2739. if ((this._VATReceipt != value))
  2740. {
  2741. this.OnVATReceiptChanging(value);
  2742. this.SendPropertyChanging();
  2743. this._VATReceipt = value;
  2744. this.SendPropertyChanged("VATReceipt");
  2745. this.OnVATReceiptChanged();
  2746. }
  2747. }
  2748. }
  2749. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReceiptNo", DbType="SmallInt")]
  2750. public System.Nullable<short> ReceiptNo
  2751. {
  2752. get
  2753. {
  2754. return this._ReceiptNo;
  2755. }
  2756. set
  2757. {
  2758. if ((this._ReceiptNo != value))
  2759. {
  2760. this.OnReceiptNoChanging(value);
  2761. this.SendPropertyChanging();
  2762. this._ReceiptNo = value;
  2763. this.SendPropertyChanged("ReceiptNo");
  2764. this.OnReceiptNoChanged();
  2765. }
  2766. }
  2767. }
  2768. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Mileage", DbType="SmallInt")]
  2769. public System.Nullable<short> Mileage
  2770. {
  2771. get
  2772. {
  2773. return this._Mileage;
  2774. }
  2775. set
  2776. {
  2777. if ((this._Mileage != value))
  2778. {
  2779. this.OnMileageChanging(value);
  2780. this.SendPropertyChanging();
  2781. this._Mileage = value;
  2782. this.SendPropertyChanged("Mileage");
  2783. this.OnMileageChanged();
  2784. }
  2785. }
  2786. }
  2787. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MileageRate", DbType="Money")]
  2788. public System.Nullable<decimal> MileageRate
  2789. {
  2790. get
  2791. {
  2792. return this._MileageRate;
  2793. }
  2794. set
  2795. {
  2796. if ((this._MileageRate != value))
  2797. {
  2798. this.OnMileageRateChanging(value);
  2799. this.SendPropertyChanging();
  2800. this._MileageRate = value;
  2801. this.SendPropertyChanged("MileageRate");
  2802. this.OnMileageRateChanged();
  2803. }
  2804. }
  2805. }
  2806. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Spare1", DbType="NVarChar(MAX)")]
  2807. public string Spare1
  2808. {
  2809. get
  2810. {
  2811. return this._Spare1;
  2812. }
  2813. set
  2814. {
  2815. if ((this._Spare1 != value))
  2816. {
  2817. this.OnSpare1Changing(value);
  2818. this.SendPropertyChanging();
  2819. this._Spare1 = value;
  2820. this.SendPropertyChanged("Spare1");
  2821. this.OnSpare1Changed();
  2822. }
  2823. }
  2824. }
  2825. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Spare2", DbType="NVarChar(MAX)")]
  2826. public string Spare2
  2827. {
  2828. get
  2829. {
  2830. return this._Spare2;
  2831. }
  2832. set
  2833. {
  2834. if ((this._Spare2 != value))
  2835. {
  2836. this.OnSpare2Changing(value);
  2837. this.SendPropertyChanging();
  2838. this._Spare2 = value;
  2839. this.SendPropertyChanged("Spare2");
  2840. this.OnSpare2Changed();
  2841. }
  2842. }
  2843. }
  2844. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Spare3", DbType="NVarChar(100)")]
  2845. public string Spare3
  2846. {
  2847. get
  2848. {
  2849. return this._Spare3;
  2850. }
  2851. set
  2852. {
  2853. if ((this._Spare3 != value))
  2854. {
  2855. this.OnSpare3Changing(value);
  2856. this.SendPropertyChanging();
  2857. this._Spare3 = value;
  2858. this.SendPropertyChanged("Spare3");
  2859. this.OnSpare3Changed();
  2860. }
  2861. }
  2862. }
  2863. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Spare4", DbType="NVarChar(100)")]
  2864. public string Spare4
  2865. {
  2866. get
  2867. {
  2868. return this._Spare4;
  2869. }
  2870. set
  2871. {
  2872. if ((this._Spare4 != value))
  2873. {
  2874. this.OnSpare4Changing(value);
  2875. this.SendPropertyChanging();
  2876. this._Spare4 = value;
  2877. this.SendPropertyChanged("Spare4");
  2878. this.OnSpare4Changed();
  2879. }
  2880. }
  2881. }
  2882. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Spare5", DbType="NVarChar(100)")]
  2883. public string Spare5
  2884. {
  2885. get
  2886. {
  2887. return this._Spare5;
  2888. }
  2889. set
  2890. {
  2891. if ((this._Spare5 != value))
  2892. {
  2893. this.OnSpare5Changing(value);
  2894. this.SendPropertyChanging();
  2895. this._Spare5 = value;
  2896. this.SendPropertyChanged("Spare5");
  2897. this.OnSpare5Changed();
  2898. }
  2899. }
  2900. }
  2901. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AnalysisCode", DbType="NVarChar(50)")]
  2902. public string AnalysisCode
  2903. {
  2904. get
  2905. {
  2906. return this._AnalysisCode;
  2907. }
  2908. set
  2909. {
  2910. if ((this._AnalysisCode != value))
  2911. {
  2912. this.OnAnalysisCodeChanging(value);
  2913. this.SendPropertyChanging();
  2914. this._AnalysisCode = value;
  2915. this.SendPropertyChanged("AnalysisCode");
  2916. this.OnAnalysisCodeChanged();
  2917. }
  2918. }
  2919. }
  2920. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Split", DbType="Bit NOT NULL")]
  2921. public bool Split
  2922. {
  2923. get
  2924. {
  2925. return this._Split;
  2926. }
  2927. set
  2928. {
  2929. if ((this._Split != value))
  2930. {
  2931. this.OnSplitChanging(value);
  2932. this.SendPropertyChanging();
  2933. this._Split = value;
  2934. this.SendPropertyChanged("Split");
  2935. this.OnSplitChanged();
  2936. }
  2937. }
  2938. }
  2939. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LargeTransaction", DbType="Bit NOT NULL")]
  2940. public bool LargeTransaction
  2941. {
  2942. get
  2943. {
  2944. return this._LargeTransaction;
  2945. }
  2946. set
  2947. {
  2948. if ((this._LargeTransaction != value))
  2949. {
  2950. this.OnLargeTransactionChanging(value);
  2951. this.SendPropertyChanging();
  2952. this._LargeTransaction = value;
  2953. this.SendPropertyChanged("LargeTransaction");
  2954. this.OnLargeTransactionChanged();
  2955. }
  2956. }
  2957. }
  2958. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OutOfDate", DbType="Bit NOT NULL")]
  2959. public bool OutOfDate
  2960. {
  2961. get
  2962. {
  2963. return this._OutOfDate;
  2964. }
  2965. set
  2966. {
  2967. if ((this._OutOfDate != value))
  2968. {
  2969. this.OnOutOfDateChanging(value);
  2970. this.SendPropertyChanging();
  2971. this._OutOfDate = value;
  2972. this.SendPropertyChanged("OutOfDate");
  2973. this.OnOutOfDateChanged();
  2974. }
  2975. }
  2976. }
  2977. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Department", DbType="Bit NOT NULL")]
  2978. public bool Department
  2979. {
  2980. get
  2981. {
  2982. return this._Department;
  2983. }
  2984. set
  2985. {
  2986. if ((this._Department != value))
  2987. {
  2988. this.OnDepartmentChanging(value);
  2989. this.SendPropertyChanging();
  2990. this._Department = value;
  2991. this.SendPropertyChanged("Department");
  2992. this.OnDepartmentChanged();
  2993. }
  2994. }
  2995. }
  2996. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AccountCode", DbType="NVarChar(12)")]
  2997. public string AccountCode
  2998. {
  2999. get
  3000. {
  3001. return this._AccountCode;
  3002. }
  3003. set
  3004. {
  3005. if ((this._AccountCode != value))
  3006. {
  3007. this.OnAccountCodeChanging(value);
  3008. this.SendPropertyChanging();
  3009. this._AccountCode = value;
  3010. this.SendPropertyChanged("AccountCode");
  3011. this.OnAccountCodeChanged();
  3012. }
  3013. }
  3014. }
  3015. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CostCenter", DbType="NVarChar(12)")]
  3016. public string CostCenter
  3017. {
  3018. get
  3019. {
  3020. return this._CostCenter;
  3021. }
  3022. set
  3023. {
  3024. if ((this._CostCenter != value))
  3025. {
  3026. this.OnCostCenterChanging(value);
  3027. this.SendPropertyChanging();
  3028. this._CostCenter = value;
  3029. this.SendPropertyChanged("CostCenter");
  3030. this.OnCostCenterChanged();
  3031. }
  3032. }
  3033. }
  3034. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VATRate", DbType="Float")]
  3035. public System.Nullable<double> VATRate
  3036. {
  3037. get
  3038. {
  3039. return this._VATRate;
  3040. }
  3041. set
  3042. {
  3043. if ((this._VATRate != value))
  3044. {
  3045. this.OnVATRateChanging(value);
  3046. this.SendPropertyChanging();
  3047. this._VATRate = value;
  3048. this.SendPropertyChanged("VATRate");
  3049. this.OnVATRateChanged();
  3050. }
  3051. }
  3052. }
  3053. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_VATCode", DbType="NVarChar(8)")]
  3054. public string VATCode
  3055. {
  3056. get
  3057. {
  3058. return this._VATCode;
  3059. }
  3060. set
  3061. {
  3062. if ((this._VATCode != value))
  3063. {
  3064. this.OnVATCodeChanging(value);
  3065. this.SendPropertyChanging();
  3066. this._VATCode = value;
  3067. this.SendPropertyChanged("VATCode");
  3068. this.OnVATCodeChanged();
  3069. }
  3070. }
  3071. }
  3072. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ForceTaxOrig", DbType="Bit")]
  3073. public System.Nullable<bool> ForceTaxOrig
  3074. {
  3075. get
  3076. {
  3077. return this._ForceTaxOrig;
  3078. }
  3079. set
  3080. {
  3081. if ((this._ForceTaxOrig != value))
  3082. {
  3083. this.OnForceTaxOrigChanging(value);
  3084. this.SendPropertyChanging();
  3085. this._ForceTaxOrig = value;
  3086. this.SendPropertyChanged("ForceTaxOrig");
  3087. this.OnForceTaxOrigChanged();
  3088. }
  3089. }
  3090. }
  3091. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrigCurrency", DbType="VarChar(5)")]
  3092. public string OrigCurrency
  3093. {
  3094. get
  3095. {
  3096. return this._OrigCurrency;
  3097. }
  3098. set
  3099. {
  3100. if ((this._OrigCurrency != value))
  3101. {
  3102. this.OnOrigCurrencyChanging(value);
  3103. this.SendPropertyChanging();
  3104. this._OrigCurrency = value;
  3105. this.SendPropertyChanged("OrigCurrency");
  3106. this.OnOrigCurrencyChanged();
  3107. }
  3108. }
  3109. }
  3110. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_OrigCurrencyAmount", DbType="Money")]
  3111. public System.Nullable<decimal> OrigCurrencyAmount
  3112. {
  3113. get
  3114. {
  3115. return this._OrigCurrencyAmount;
  3116. }
  3117. set
  3118. {
  3119. if ((this._OrigCurrencyAmount != value))
  3120. {
  3121. this.OnOrigCurrencyAmountChanging(value);
  3122. this.SendPropertyChanging();
  3123. this._OrigCurrencyAmount = value;
  3124. this.SendPropertyChanged("OrigCurrencyAmount");
  3125. this.OnOrigCurrencyAmountChanged();
  3126. }
  3127. }
  3128. }
  3129. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ShortComment", DbType="NVarChar(28)")]
  3130. public string ShortComment
  3131. {
  3132. get
  3133. {
  3134. return this._ShortComment;
  3135. }
  3136. set
  3137. {
  3138. if ((this._ShortComment != value))
  3139. {
  3140. this.OnShortCommentChanging(value);
  3141. this.SendPropertyChanging();
  3142. this._ShortComment = value;
  3143. this.SendPropertyChanged("ShortComment");
  3144. this.OnShortCommentChanged();
  3145. }
  3146. }
  3147. }
  3148. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReceiptMode", DbType="TinyInt")]
  3149. public System.Nullable<byte> ReceiptMode
  3150. {
  3151. get
  3152. {
  3153. return this._ReceiptMode;
  3154. }
  3155. set
  3156. {
  3157. if ((this._ReceiptMode != value))
  3158. {
  3159. this.OnReceiptModeChanging(value);
  3160. this.SendPropertyChanging();
  3161. this._ReceiptMode = value;
  3162. this.SendPropertyChanged("ReceiptMode");
  3163. this.OnReceiptModeChanged();
  3164. }
  3165. }
  3166. }
  3167. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReceiptImageId", DbType="Int")]
  3168. public System.Nullable<int> ReceiptImageId
  3169. {
  3170. get
  3171. {
  3172. return this._ReceiptImageId;
  3173. }
  3174. set
  3175. {
  3176. if ((this._ReceiptImageId != value))
  3177. {
  3178. this.OnReceiptImageIdChanging(value);
  3179. this.SendPropertyChanging();
  3180. this._ReceiptImageId = value;
  3181. this.SendPropertyChanged("ReceiptImageId");
  3182. this.OnReceiptImageIdChanged();
  3183. }
  3184. }
  3185. }
  3186. [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ReceiptText", DbType="NVarChar(MAX)")]
  3187. public string ReceiptText
  3188. {
  3189. get
  3190. {
  3191. return this._ReceiptText;
  3192. }
  3193. set
  3194. {
  3195. if ((this._ReceiptText != value))
  3196. {
  3197. this.OnReceiptTextChanging(value);
  3198. this.SendPropertyChanging();
  3199. this._ReceiptText = value;
  3200. this.SendPropertyChanged("ReceiptText");
  3201. this.OnReceiptTextChanged();
  3202. }
  3203. }
  3204. }
  3205. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_Staff_Rmb_AP_Staff_RmbLine", Storage="_AP_Staff_Rmb", ThisKey="RmbNo", OtherKey="RMBNo", IsForeignKey=true)]
  3206. public AP_Staff_Rmb AP_Staff_Rmb
  3207. {
  3208. get
  3209. {
  3210. return this._AP_Staff_Rmb.Entity;
  3211. }
  3212. set
  3213. {
  3214. AP_Staff_Rmb previousValue = this._AP_Staff_Rmb.Entity;
  3215. if (((previousValue != value)
  3216. || (this._AP_Staff_Rmb.HasLoadedOrAssignedValue == false)))
  3217. {
  3218. this.SendPropertyChanging();
  3219. if ((previousValue != null))
  3220. {
  3221. this._AP_Staff_Rmb.Entity = null;
  3222. previousValue.AP_Staff_RmbLines.Remove(this);
  3223. }
  3224. this._AP_Staff_Rmb.Entity = value;
  3225. if ((value != null))
  3226. {
  3227. value.AP_Staff_RmbLines.Add(this);
  3228. this._RmbNo = value.RMBNo;
  3229. }
  3230. else
  3231. {
  3232. this._RmbNo = default(long);
  3233. }
  3234. this.SendPropertyChanged("AP_Staff_Rmb");
  3235. }
  3236. }
  3237. }
  3238. [global::System.Data.Linq.Mapping.AssociationAttribute(Name="AP_Staff_RmbLineType_AP_Staff_RmbLine", Storage="_AP_Staff_RmbLineType", ThisKey="LineType", OtherKey="LineTypeId", IsForeignKey=true)]
  3239. public AP_Staff_RmbLineType AP_Staff_RmbLineType
  3240. {
  3241. get
  3242. {
  3243. return this._AP_Staff_RmbLineType.Entity;
  3244. }
  3245. set
  3246. {
  3247. AP_Staff_RmbLineType previousValue = this._AP_Staff_RmbLineType.Entity;
  3248. if (((previousValue != value)
  3249. || (this._AP_Staff_RmbLineType.HasLoadedOrAssignedValue == false)))
  3250. {
  3251. this.SendPropertyChanging();
  3252. if ((previousValue != null))
  3253. {
  3254. this._AP_Staff_RmbLineType.Entity = null;
  3255. previousValue.AP_Staff_RmbLines.Remove(this);
  3256. }
  3257. this._AP_Staff_RmbLineType.Entity = value;
  3258. if ((value != null))
  3259. {
  3260. value.AP_Staff_RmbLines.Add(this);
  3261. this._LineType = value.LineTypeId;
  3262. }
  3263. else
  3264. {
  3265. this._LineType = default(short);
  3266. }
  3267. this.SendPropertyChanged("AP_Staff_RmbLineType");
  3268. }
  3269. }
  3270. }
  3271. public event PropertyChangingEventHandler PropertyChanging;
  3272. public event PropertyChangedEventHandler PropertyChanged;
  3273. protected virtual void SendPropertyChanging()
  3274. {
  3275. if ((this.PropertyChanging != null))
  3276. {
  3277. this.PropertyChanging(this, emptyChangingEventArgs);
  3278. }
  3279. }
  3280. protected virtual void SendPropertyChanged(String propertyName)
  3281. {
  3282. if ((this.PropertyChanged != null))
  3283. {
  3284. this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
  3285. }
  3286. }
  3287. }
  3288. }
  3289. #pragma warning restore 1591