/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

Large files are truncated click here to view the full file

  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.OnRIDChange