Best JavaScript code snippet using ng-mocks
services.service.ts
Source:services.service.ts
1//------------------------------------------------------------------------------2// 3// www.codeart.vn4// hungvq@live.com5// (+84)908.061.1196// 7//------------------------------------------------------------------------------89import { Injectable } from '@angular/core';10import { APIList } from './global-variable';11import { CommonService, exService } from '../core/common.service';12import { SearchConfig } from './search-config';131415@Injectable({ providedIn: 'root' })16export class AC_ARInvoiceProvider extends exService {17 constructor(public commonService: CommonService) {18 super(APIList.AC_ARInvoice, SearchConfig.getSearchFields('AC_ARInvoice'), commonService);19 }20}2122@Injectable({ providedIn: 'root' })23export class AC_ARInvoiceDetailProvider extends exService {24 constructor(public commonService: CommonService) {25 super(APIList.AC_ARInvoiceDetail, SearchConfig.getSearchFields('AC_ARInvoiceDetail'), commonService);26 }27}2829@Injectable({ providedIn: 'root' })30export class AC_JournalEntryProvider extends exService {31 constructor(public commonService: CommonService) {32 super(APIList.AC_JournalEntry, SearchConfig.getSearchFields('AC_JournalEntry'), commonService);33 }34}3536@Injectable({ providedIn: 'root' })37export class AC_JournalEntryRowProvider extends exService {38 constructor(public commonService: CommonService) {39 super(APIList.AC_JournalEntryRow, SearchConfig.getSearchFields('AC_JournalEntryRow'), commonService);40 }41}4243@Injectable({ providedIn: 'root' })44export class AC_PostingPeriodProvider extends exService {45 constructor(public commonService: CommonService) {46 super(APIList.AC_PostingPeriod, SearchConfig.getSearchFields('AC_PostingPeriod'), commonService);47 }48}4950@Injectable({ providedIn: 'root' })51export class APPROVAL_ChangelogProvider extends exService {52 constructor(public commonService: CommonService) {53 super(APIList.APPROVAL_Changelog, SearchConfig.getSearchFields('APPROVAL_Changelog'), commonService);54 }55}5657@Injectable({ providedIn: 'root' })58export class APPROVAL_CommentProvider extends exService {59 constructor(public commonService: CommonService) {60 super(APIList.APPROVAL_Comment, SearchConfig.getSearchFields('APPROVAL_Comment'), commonService);61 }62}6364@Injectable({ providedIn: 'root' })65export class APPROVAL_RequestProvider extends exService {66 constructor(public commonService: CommonService) {67 super(APIList.APPROVAL_Request, SearchConfig.getSearchFields('APPROVAL_Request'), commonService);68 }69}7071@Injectable({ providedIn: 'root' })72export class BANK_IncomingPaymentProvider extends exService {73 constructor(public commonService: CommonService) {74 super(APIList.BANK_IncomingPayment, SearchConfig.getSearchFields('BANK_IncomingPayment'), commonService);75 }76}7778@Injectable({ providedIn: 'root' })79export class BANK_IncomingPaymentDetailProvider extends exService {80 constructor(public commonService: CommonService) {81 super(APIList.BANK_IncomingPaymentDetail, SearchConfig.getSearchFields('BANK_IncomingPaymentDetail'), commonService);82 }83}8485@Injectable({ providedIn: 'root' })86export class BANK_PaymentTermProvider extends exService {87 constructor(public commonService: CommonService) {88 super(APIList.BANK_PaymentTerm, SearchConfig.getSearchFields('BANK_PaymentTerm'), commonService);89 }90}9192@Injectable({ providedIn: 'root' })93export class BC_RevenueExpenditureComponentProvider extends exService {94 constructor(public commonService: CommonService) {95 super(APIList.BC_RevenueExpenditureComponent, SearchConfig.getSearchFields('BC_RevenueExpenditureComponent'), commonService);96 }97}9899@Injectable({ providedIn: 'root' })100export class BC_RevenueExpenditureRefCodeProvider extends exService {101 constructor(public commonService: CommonService) {102 super(APIList.BC_RevenueExpenditureRefCode, SearchConfig.getSearchFields('BC_RevenueExpenditureRefCode'), commonService);103 }104}105106@Injectable({ providedIn: 'root' })107export class BI_Finance_BalanceSheetCategoryProvider extends exService {108 constructor(public commonService: CommonService) {109 super(APIList.BI_Finance_BalanceSheetCategory, SearchConfig.getSearchFields('BI_Finance_BalanceSheetCategory'), commonService);110 }111}112113@Injectable({ providedIn: 'root' })114export class BI_Finance_BalanceSheetsProvider extends exService {115 constructor(public commonService: CommonService) {116 super(APIList.BI_Finance_BalanceSheets, SearchConfig.getSearchFields('BI_Finance_BalanceSheets'), commonService);117 }118}119120@Injectable({ providedIn: 'root' })121export class BI_Finance_CashFlowProvider extends exService {122 constructor(public commonService: CommonService) {123 super(APIList.BI_Finance_CashFlow, SearchConfig.getSearchFields('BI_Finance_CashFlow'), commonService);124 }125}126127@Injectable({ providedIn: 'root' })128export class BI_Finance_IncomeStatementProvider extends exService {129 constructor(public commonService: CommonService) {130 super(APIList.BI_Finance_IncomeStatement, SearchConfig.getSearchFields('BI_Finance_IncomeStatement'), commonService);131 }132}133134@Injectable({ providedIn: 'root' })135export class BI_Finance_ManagementProvider extends exService {136 constructor(public commonService: CommonService) {137 super(APIList.BI_Finance_Management, SearchConfig.getSearchFields('BI_Finance_Management'), commonService);138 }139}140141@Injectable({ providedIn: 'root' })142export class BI_Operating_MarketResearchProvider extends exService {143 constructor(public commonService: CommonService) {144 super(APIList.BI_Operating_MarketResearch, SearchConfig.getSearchFields('BI_Operating_MarketResearch'), commonService);145 }146}147148@Injectable({ providedIn: 'root' })149export class BI_OppotunityProvider extends exService {150 constructor(public commonService: CommonService) {151 super(APIList.BI_Oppotunity, SearchConfig.getSearchFields('BI_Oppotunity'), commonService);152 }153}154155@Injectable({ providedIn: 'root' })156export class BI_ReportTemplateProvider extends exService {157 constructor(public commonService: CommonService) {158 super(APIList.BI_ReportTemplate, SearchConfig.getSearchFields('BI_ReportTemplate'), commonService);159 }160}161162@Injectable({ providedIn: 'root' })163export class BI_ReportTemplateDetailProvider extends exService {164 constructor(public commonService: CommonService) {165 super(APIList.BI_ReportTemplateDetail, SearchConfig.getSearchFields('BI_ReportTemplateDetail'), commonService);166 }167}168169@Injectable({ providedIn: 'root' })170export class BP_PartnerProvider extends exService {171 constructor(public commonService: CommonService) {172 super(APIList.BP_Partner, SearchConfig.getSearchFields('BP_Partner'), commonService);173 }174}175176@Injectable({ providedIn: 'root' })177export class BRA_BranchProvider extends exService {178 constructor(public commonService: CommonService) {179 super(APIList.BRA_Branch, SearchConfig.getSearchFields('BRA_Branch'), commonService);180 }181}182183@Injectable({ providedIn: 'root' })184export class BSC_RevenueTargetProvider extends exService {185 constructor(public commonService: CommonService) {186 super(APIList.BSC_RevenueTarget, SearchConfig.getSearchFields('BSC_RevenueTarget'), commonService);187 }188}189190@Injectable({ providedIn: 'root' })191export class CRM_ActivityProvider extends exService {192 constructor(public commonService: CommonService) {193 super(APIList.CRM_Activity, SearchConfig.getSearchFields('CRM_Activity'), commonService);194 }195}196197@Injectable({ providedIn: 'root' })198export class CRM_AttendanceProvider extends exService {199 constructor(public commonService: CommonService) {200 super(APIList.CRM_Attendance, SearchConfig.getSearchFields('CRM_Attendance'), commonService);201 }202}203204@Injectable({ providedIn: 'root' })205export class CRM_BusinessPartnerGroupProvider extends exService {206 constructor(public commonService: CommonService) {207 super(APIList.CRM_BusinessPartnerGroup, SearchConfig.getSearchFields('CRM_BusinessPartnerGroup'), commonService);208 }209}210211@Injectable({ providedIn: 'root' })212export class CRM_CampaignProvider extends exService {213 constructor(public commonService: CommonService) {214 super(APIList.CRM_Campaign, SearchConfig.getSearchFields('CRM_Campaign'), commonService);215 }216}217218@Injectable({ providedIn: 'root' })219export class CRM_CampaignMemberProvider extends exService {220 constructor(public commonService: CommonService) {221 super(APIList.CRM_CampaignMember, SearchConfig.getSearchFields('CRM_CampaignMember'), commonService);222 }223}224225@Injectable({ providedIn: 'root' })226export class CRM_ConfigProvider extends exService {227 constructor(public commonService: CommonService) {228 super(APIList.CRM_Config, SearchConfig.getSearchFields('CRM_Config'), commonService);229 }230}231232@Injectable({ providedIn: 'root' })233export class CRM_ContactProvider extends exService {234 constructor(public commonService: CommonService) {235 super(APIList.CRM_Contact, SearchConfig.getSearchFields('CRM_Contact'), commonService);236 }237}238239@Injectable({ providedIn: 'root' })240export class CRM_ContactReferenceProvider extends exService {241 constructor(public commonService: CommonService) {242 super(APIList.CRM_ContactReference, SearchConfig.getSearchFields('CRM_ContactReference'), commonService);243 }244}245246@Injectable({ providedIn: 'root' })247export class CRM_ContractProvider extends exService {248 constructor(public commonService: CommonService) {249 super(APIList.CRM_Contract, SearchConfig.getSearchFields('CRM_Contract'), commonService);250 }251}252253@Injectable({ providedIn: 'root' })254export class CRM_CustomerProvider extends exService {255 constructor(public commonService: CommonService) {256 super(APIList.CRM_Customer, SearchConfig.getSearchFields('CRM_Customer'), commonService);257 }258}259260@Injectable({ providedIn: 'root' })261export class CRM_LeadProvider extends exService {262 constructor(public commonService: CommonService) {263 super(APIList.CRM_Lead, SearchConfig.getSearchFields('CRM_Lead'), commonService);264 }265}266267@Injectable({ providedIn: 'root' })268export class CRM_MemberCardProvider extends exService {269 constructor(public commonService: CommonService) {270 super(APIList.CRM_MemberCard, SearchConfig.getSearchFields('CRM_MemberCard'), commonService);271 }272}273274@Injectable({ providedIn: 'root' })275export class CRM_OpportunityProvider extends exService {276 constructor(public commonService: CommonService) {277 super(APIList.CRM_Opportunity, SearchConfig.getSearchFields('CRM_Opportunity'), commonService);278 }279}280281@Injectable({ providedIn: 'root' })282export class CRM_OutletsProvider extends exService {283 constructor(public commonService: CommonService) {284 super(APIList.CRM_Outlets, SearchConfig.getSearchFields('CRM_Outlets'), commonService);285 }286}287288@Injectable({ providedIn: 'root' })289export class CRM_PartnerAddressProvider extends exService {290 constructor(public commonService: CommonService) {291 super(APIList.CRM_PartnerAddress, SearchConfig.getSearchFields('CRM_PartnerAddress'), commonService);292 }293}294295@Injectable({ providedIn: 'root' })296export class CRM_PartnerBankAccountProvider extends exService {297 constructor(public commonService: CommonService) {298 super(APIList.CRM_PartnerBankAccount, SearchConfig.getSearchFields('CRM_PartnerBankAccount'), commonService);299 }300}301302@Injectable({ providedIn: 'root' })303export class CRM_PersonInfoProvider extends exService {304 constructor(public commonService: CommonService) {305 super(APIList.CRM_PersonInfo, SearchConfig.getSearchFields('CRM_PersonInfo'), commonService);306 }307}308309@Injectable({ providedIn: 'root' })310export class CRM_QuotationProvider extends exService {311 constructor(public commonService: CommonService) {312 super(APIList.CRM_Quotation, SearchConfig.getSearchFields('CRM_Quotation'), commonService);313 }314}315316@Injectable({ providedIn: 'root' })317export class CRM_RouteProvider extends exService {318 constructor(public commonService: CommonService) {319 super(APIList.CRM_Route, SearchConfig.getSearchFields('CRM_Route'), commonService);320 }321}322323@Injectable({ providedIn: 'root' })324export class CRM_RouteDetailProvider extends exService {325 constructor(public commonService: CommonService) {326 super(APIList.CRM_RouteDetail, SearchConfig.getSearchFields('CRM_RouteDetail'), commonService);327 }328}329330@Injectable({ providedIn: 'root' })331export class CRM_VoucherProvider extends exService {332 constructor(public commonService: CommonService) {333 super(APIList.CRM_Voucher, SearchConfig.getSearchFields('CRM_Voucher'), commonService);334 }335}336337@Injectable({ providedIn: 'root' })338export class FINANCE_GeneralLedgerProvider extends exService {339 constructor(public commonService: CommonService) {340 super(APIList.FINANCE_GeneralLedger, SearchConfig.getSearchFields('FINANCE_GeneralLedger'), commonService);341 }342}343344@Injectable({ providedIn: 'root' })345export class FINANCE_TaxDefinitionProvider extends exService {346 constructor(public commonService: CommonService) {347 super(APIList.FINANCE_TaxDefinition, SearchConfig.getSearchFields('FINANCE_TaxDefinition'), commonService);348 }349}350351@Injectable({ providedIn: 'root' })352export class HRM_DeductionOnSalaryProvider extends exService {353 constructor(public commonService: CommonService) {354 super(APIList.HRM_DeductionOnSalary, SearchConfig.getSearchFields('HRM_DeductionOnSalary'), commonService);355 }356}357358@Injectable({ providedIn: 'root' })359export class HRM_OpenScheduleProvider extends exService {360 constructor(public commonService: CommonService) {361 super(APIList.HRM_OpenSchedule, SearchConfig.getSearchFields('HRM_OpenSchedule'), commonService);362 }363}364365@Injectable({ providedIn: 'root' })366export class HRM_PayrollElementProvider extends exService {367 constructor(public commonService: CommonService) {368 super(APIList.HRM_PayrollElement, SearchConfig.getSearchFields('HRM_PayrollElement'), commonService);369 }370}371372@Injectable({ providedIn: 'root' })373export class HRM_PayrollPaySheetMasterProvider extends exService {374 constructor(public commonService: CommonService) {375 super(APIList.HRM_PayrollPaySheetMaster, SearchConfig.getSearchFields('HRM_PayrollPaySheetMaster'), commonService);376 }377}378379@Injectable({ providedIn: 'root' })380export class HRM_PayrollPaySheetMasterSalaryDecisionProvider extends exService {381 constructor(public commonService: CommonService) {382 super(APIList.HRM_PayrollPaySheetMasterSalaryDecision, SearchConfig.getSearchFields('HRM_PayrollPaySheetMasterSalaryDecision'), commonService);383 }384}385386@Injectable({ providedIn: 'root' })387export class HRM_PersonalIncomePaymentProcessProvider extends exService {388 constructor(public commonService: CommonService) {389 super(APIList.HRM_PersonalIncomePaymentProcess, SearchConfig.getSearchFields('HRM_PersonalIncomePaymentProcess'), commonService);390 }391}392393@Injectable({ providedIn: 'root' })394export class HRM_PolAllowanceProvider extends exService {395 constructor(public commonService: CommonService) {396 super(APIList.HRM_PolAllowance, SearchConfig.getSearchFields('HRM_PolAllowance'), commonService);397 }398}399400@Injectable({ providedIn: 'root' })401export class HRM_PolAllowanceApplyForProvider extends exService {402 constructor(public commonService: CommonService) {403 super(APIList.HRM_PolAllowanceApplyFor, SearchConfig.getSearchFields('HRM_PolAllowanceApplyFor'), commonService);404 }405}406407@Injectable({ providedIn: 'root' })408export class HRM_PolCompulsoryInsuranceProvider extends exService {409 constructor(public commonService: CommonService) {410 super(APIList.HRM_PolCompulsoryInsurance, SearchConfig.getSearchFields('HRM_PolCompulsoryInsurance'), commonService);411 }412}413414@Injectable({ providedIn: 'root' })415export class HRM_PolCompulsoryInsuranceApplyForProvider extends exService {416 constructor(public commonService: CommonService) {417 super(APIList.HRM_PolCompulsoryInsuranceApplyFor, SearchConfig.getSearchFields('HRM_PolCompulsoryInsuranceApplyFor'), commonService);418 }419}420421@Injectable({ providedIn: 'root' })422export class HRM_PolicyHolidayProvider extends exService {423 constructor(public commonService: CommonService) {424 super(APIList.HRM_PolicyHoliday, SearchConfig.getSearchFields('HRM_PolicyHoliday'), commonService);425 }426}427428@Injectable({ providedIn: 'root' })429export class HRM_PolicyPaidTimeOffProvider extends exService {430 constructor(public commonService: CommonService) {431 super(APIList.HRM_PolicyPaidTimeOff, SearchConfig.getSearchFields('HRM_PolicyPaidTimeOff'), commonService);432 }433}434435@Injectable({ providedIn: 'root' })436export class HRM_PolicyPaidTimeOffGrantsByLengthOfServicesProvider extends exService {437 constructor(public commonService: CommonService) {438 super(APIList.HRM_PolicyPaidTimeOffGrantsByLengthOfServices, SearchConfig.getSearchFields('HRM_PolicyPaidTimeOffGrantsByLengthOfServices'), commonService);439 }440}441442@Injectable({ providedIn: 'root' })443export class HRM_PolWelfareProvider extends exService {444 constructor(public commonService: CommonService) {445 super(APIList.HRM_PolWelfare, SearchConfig.getSearchFields('HRM_PolWelfare'), commonService);446 }447}448449@Injectable({ providedIn: 'root' })450export class HRM_PolWelfareApplyForProvider extends exService {451 constructor(public commonService: CommonService) {452 super(APIList.HRM_PolWelfareApplyFor, SearchConfig.getSearchFields('HRM_PolWelfareApplyFor'), commonService);453 }454}455456@Injectable({ providedIn: 'root' })457export class HRM_ShiftProvider extends exService {458 constructor(public commonService: CommonService) {459 super(APIList.HRM_Shift, SearchConfig.getSearchFields('HRM_Shift'), commonService);460 }461}462463@Injectable({ providedIn: 'root' })464export class HRM_ShiftInTimesheetProvider extends exService {465 constructor(public commonService: CommonService) {466 super(APIList.HRM_ShiftInTimesheet, SearchConfig.getSearchFields('HRM_ShiftInTimesheet'), commonService);467 }468}469470@Injectable({ providedIn: 'root' })471export class HRM_StaffProvider extends exService {472 constructor(public commonService: CommonService) {473 super(APIList.HRM_Staff, SearchConfig.getSearchFields('HRM_Staff'), commonService);474 }475}476477@Injectable({ providedIn: 'root' })478export class HRM_Staff_ConcurrentPositionProvider extends exService {479 constructor(public commonService: CommonService) {480 super(APIList.HRM_Staff_ConcurrentPosition, SearchConfig.getSearchFields('HRM_Staff_ConcurrentPosition'), commonService);481 }482}483484@Injectable({ providedIn: 'root' })485export class HRM_StaffAcademicLevelProvider extends exService {486 constructor(public commonService: CommonService) {487 super(APIList.HRM_StaffAcademicLevel, SearchConfig.getSearchFields('HRM_StaffAcademicLevel'), commonService);488 }489}490491@Injectable({ providedIn: 'root' })492export class HRM_StaffAddressProvider extends exService {493 constructor(public commonService: CommonService) {494 super(APIList.HRM_StaffAddress, SearchConfig.getSearchFields('HRM_StaffAddress'), commonService);495 }496}497498@Injectable({ providedIn: 'root' })499export class HRM_StaffAllowanceProvider extends exService {500 constructor(public commonService: CommonService) {501 super(APIList.HRM_StaffAllowance, SearchConfig.getSearchFields('HRM_StaffAllowance'), commonService);502 }503}504505@Injectable({ providedIn: 'root' })506export class HRM_StaffAnotherSkillProvider extends exService {507 constructor(public commonService: CommonService) {508 super(APIList.HRM_StaffAnotherSkill, SearchConfig.getSearchFields('HRM_StaffAnotherSkill'), commonService);509 }510}511512@Injectable({ providedIn: 'root' })513export class HRM_StaffAppointDecisionProvider extends exService {514 constructor(public commonService: CommonService) {515 super(APIList.HRM_StaffAppointDecision, SearchConfig.getSearchFields('HRM_StaffAppointDecision'), commonService);516 }517}518519@Injectable({ providedIn: 'root' })520export class HRM_StaffBankProvider extends exService {521 constructor(public commonService: CommonService) {522 super(APIList.HRM_StaffBank, SearchConfig.getSearchFields('HRM_StaffBank'), commonService);523 }524}525526@Injectable({ providedIn: 'root' })527export class HRM_StaffBasicInfoProvider extends exService {528 constructor(public commonService: CommonService) {529 super(APIList.HRM_StaffBasicInfo, SearchConfig.getSearchFields('HRM_StaffBasicInfo'), commonService);530 }531}532533@Injectable({ providedIn: 'root' })534export class HRM_StaffBounusOnSalaryProvider extends exService {535 constructor(public commonService: CommonService) {536 super(APIList.HRM_StaffBounusOnSalary, SearchConfig.getSearchFields('HRM_StaffBounusOnSalary'), commonService);537 }538}539540@Injectable({ providedIn: 'root' })541export class HRM_StaffCompulsoryInsuranceProvider extends exService {542 constructor(public commonService: CommonService) {543 super(APIList.HRM_StaffCompulsoryInsurance, SearchConfig.getSearchFields('HRM_StaffCompulsoryInsurance'), commonService);544 }545}546547@Injectable({ providedIn: 'root' })548export class HRM_StaffConcurrentPositionProvider extends exService {549 constructor(public commonService: CommonService) {550 super(APIList.HRM_StaffConcurrentPosition, SearchConfig.getSearchFields('HRM_StaffConcurrentPosition'), commonService);551 }552}553554@Injectable({ providedIn: 'root' })555export class HRM_StaffConcurrentProbationryPositionProvider extends exService {556 constructor(public commonService: CommonService) {557 super(APIList.HRM_StaffConcurrentProbationryPosition, SearchConfig.getSearchFields('HRM_StaffConcurrentProbationryPosition'), commonService);558 }559}560561@Injectable({ providedIn: 'root' })562export class HRM_StaffCurrentWorkingProvider extends exService {563 constructor(public commonService: CommonService) {564 super(APIList.HRM_StaffCurrentWorking, SearchConfig.getSearchFields('HRM_StaffCurrentWorking'), commonService);565 }566}567568@Injectable({ providedIn: 'root' })569export class HRM_StaffDeductionOnSalaryProvider extends exService {570 constructor(public commonService: CommonService) {571 super(APIList.HRM_StaffDeductionOnSalary, SearchConfig.getSearchFields('HRM_StaffDeductionOnSalary'), commonService);572 }573}574575@Injectable({ providedIn: 'root' })576export class HRM_StaffFamilyProvider extends exService {577 constructor(public commonService: CommonService) {578 super(APIList.HRM_StaffFamily, SearchConfig.getSearchFields('HRM_StaffFamily'), commonService);579 }580}581582@Injectable({ providedIn: 'root' })583export class HRM_StaffForeignLanguageProvider extends exService {584 constructor(public commonService: CommonService) {585 super(APIList.HRM_StaffForeignLanguage, SearchConfig.getSearchFields('HRM_StaffForeignLanguage'), commonService);586 }587}588589@Injectable({ providedIn: 'root' })590export class HRM_StaffIdentityCardAndPITProvider extends exService {591 constructor(public commonService: CommonService) {592 super(APIList.HRM_StaffIdentityCardAndPIT, SearchConfig.getSearchFields('HRM_StaffIdentityCardAndPIT'), commonService);593 }594}595596@Injectable({ providedIn: 'root' })597export class HRM_StaffInsurancePaymentProcessProvider extends exService {598 constructor(public commonService: CommonService) {599 super(APIList.HRM_StaffInsurancePaymentProcess, SearchConfig.getSearchFields('HRM_StaffInsurancePaymentProcess'), commonService);600 }601}602603@Injectable({ providedIn: 'root' })604export class HRM_StaffInternetAccountProvider extends exService {605 constructor(public commonService: CommonService) {606 super(APIList.HRM_StaffInternetAccount, SearchConfig.getSearchFields('HRM_StaffInternetAccount'), commonService);607 }608}609610@Injectable({ providedIn: 'root' })611export class HRM_StaffLaborContractProvider extends exService {612 constructor(public commonService: CommonService) {613 super(APIList.HRM_StaffLaborContract, SearchConfig.getSearchFields('HRM_StaffLaborContract'), commonService);614 }615}616617@Injectable({ providedIn: 'root' })618export class HRM_StaffLearningProcessProvider extends exService {619 constructor(public commonService: CommonService) {620 super(APIList.HRM_StaffLearningProcess, SearchConfig.getSearchFields('HRM_StaffLearningProcess'), commonService);621 }622}623624@Injectable({ providedIn: 'root' })625export class HRM_StaffPhoneProvider extends exService {626 constructor(public commonService: CommonService) {627 super(APIList.HRM_StaffPhone, SearchConfig.getSearchFields('HRM_StaffPhone'), commonService);628 }629}630631@Injectable({ providedIn: 'root' })632export class HRM_StaffPTOEnrollmentProvider extends exService {633 constructor(public commonService: CommonService) {634 super(APIList.HRM_StaffPTOEnrollment, SearchConfig.getSearchFields('HRM_StaffPTOEnrollment'), commonService);635 }636}637638@Injectable({ providedIn: 'root' })639export class HRM_StaffRecruitmentInfoProvider extends exService {640 constructor(public commonService: CommonService) {641 super(APIList.HRM_StaffRecruitmentInfo, SearchConfig.getSearchFields('HRM_StaffRecruitmentInfo'), commonService);642 }643}644645@Injectable({ providedIn: 'root' })646export class HRM_StaffResignationInfoProvider extends exService {647 constructor(public commonService: CommonService) {648 super(APIList.HRM_StaffResignationInfo, SearchConfig.getSearchFields('HRM_StaffResignationInfo'), commonService);649 }650}651652@Injectable({ providedIn: 'root' })653export class HRM_StaffSalaryDecisionProvider extends exService {654 constructor(public commonService: CommonService) {655 super(APIList.HRM_StaffSalaryDecision, SearchConfig.getSearchFields('HRM_StaffSalaryDecision'), commonService);656 }657}658659@Injectable({ providedIn: 'root' })660export class HRM_StaffScheduleProvider extends exService {661 constructor(public commonService: CommonService) {662 super(APIList.HRM_StaffSchedule, SearchConfig.getSearchFields('HRM_StaffSchedule'), commonService);663 }664}665666@Injectable({ providedIn: 'root' })667export class HRM_StaffSpecializedFieldProvider extends exService {668 constructor(public commonService: CommonService) {669 super(APIList.HRM_StaffSpecializedField, SearchConfig.getSearchFields('HRM_StaffSpecializedField'), commonService);670 }671}672673@Injectable({ providedIn: 'root' })674export class HRM_StaffSpecializedSkillProvider extends exService {675 constructor(public commonService: CommonService) {676 super(APIList.HRM_StaffSpecializedSkill, SearchConfig.getSearchFields('HRM_StaffSpecializedSkill'), commonService);677 }678}679680@Injectable({ providedIn: 'root' })681export class HRM_StaffStaffAndFamilyJobProvider extends exService {682 constructor(public commonService: CommonService) {683 super(APIList.HRM_StaffStaffAndFamilyJob, SearchConfig.getSearchFields('HRM_StaffStaffAndFamilyJob'), commonService);684 }685}686687@Injectable({ providedIn: 'root' })688export class HRM_StaffTimesheetEnrollmentProvider extends exService {689 constructor(public commonService: CommonService) {690 super(APIList.HRM_StaffTimesheetEnrollment, SearchConfig.getSearchFields('HRM_StaffTimesheetEnrollment'), commonService);691 }692}693694@Injectable({ providedIn: 'root' })695export class HRM_StaffTrainingProcessProvider extends exService {696 constructor(public commonService: CommonService) {697 super(APIList.HRM_StaffTrainingProcess, SearchConfig.getSearchFields('HRM_StaffTrainingProcess'), commonService);698 }699}700701@Injectable({ providedIn: 'root' })702export class HRM_StaffTrainingProcessSkillProvider extends exService {703 constructor(public commonService: CommonService) {704 super(APIList.HRM_StaffTrainingProcessSkill, SearchConfig.getSearchFields('HRM_StaffTrainingProcessSkill'), commonService);705 }706}707708@Injectable({ providedIn: 'root' })709export class HRM_StaffWelfareProvider extends exService {710 constructor(public commonService: CommonService) {711 super(APIList.HRM_StaffWelfare, SearchConfig.getSearchFields('HRM_StaffWelfare'), commonService);712 }713}714715@Injectable({ providedIn: 'root' })716export class HRM_StaffWorkExperienceProvider extends exService {717 constructor(public commonService: CommonService) {718 super(APIList.HRM_StaffWorkExperience, SearchConfig.getSearchFields('HRM_StaffWorkExperience'), commonService);719 }720}721722@Injectable({ providedIn: 'root' })723export class HRM_StaffWorkingDiaryProvider extends exService {724 constructor(public commonService: CommonService) {725 super(APIList.HRM_StaffWorkingDiary, SearchConfig.getSearchFields('HRM_StaffWorkingDiary'), commonService);726 }727}728729@Injectable({ providedIn: 'root' })730export class HRM_TimesheetProvider extends exService {731 constructor(public commonService: CommonService) {732 super(APIList.HRM_Timesheet, SearchConfig.getSearchFields('HRM_Timesheet'), commonService);733 }734}735736@Injectable({ providedIn: 'root' })737export class HRM_TimesheetCheckInCodeProvider extends exService {738 constructor(public commonService: CommonService) {739 super(APIList.HRM_TimesheetCheckInCode, SearchConfig.getSearchFields('HRM_TimesheetCheckInCode'), commonService);740 }741}742743@Injectable({ providedIn: 'root' })744export class HRM_TimesheetLogProvider extends exService {745 constructor(public commonService: CommonService) {746 super(APIList.HRM_TimesheetLog, SearchConfig.getSearchFields('HRM_TimesheetLog'), commonService);747 }748}749750@Injectable({ providedIn: 'root' })751export class LIST_ContractTemplateProvider extends exService {752 constructor(public commonService: CommonService) {753 super(APIList.LIST_ContractTemplate, SearchConfig.getSearchFields('LIST_ContractTemplate'), commonService);754 }755}756757@Injectable({ providedIn: 'root' })758export class LIST_CountryProvider extends exService {759 constructor(public commonService: CommonService) {760 super(APIList.LIST_Country, SearchConfig.getSearchFields('LIST_Country'), commonService);761 }762}763764@Injectable({ providedIn: 'root' })765export class LIST_DistrictProvider extends exService {766 constructor(public commonService: CommonService) {767 super(APIList.LIST_District, SearchConfig.getSearchFields('LIST_District'), commonService);768 }769}770771@Injectable({ providedIn: 'root' })772export class LIST_ElementOfSalaryProvider extends exService {773 constructor(public commonService: CommonService) {774 super(APIList.LIST_ElementOfSalary, SearchConfig.getSearchFields('LIST_ElementOfSalary'), commonService);775 }776}777778@Injectable({ providedIn: 'root' })779export class LIST_GeneralProvider extends exService {780 constructor(public commonService: CommonService) {781 super(APIList.LIST_General, SearchConfig.getSearchFields('LIST_General'), commonService);782 }783}784785@Injectable({ providedIn: 'root' })786export class LIST_PayPeriodProvider extends exService {787 constructor(public commonService: CommonService) {788 super(APIList.LIST_PayPeriod, SearchConfig.getSearchFields('LIST_PayPeriod'), commonService);789 }790}791792@Injectable({ providedIn: 'root' })793export class LIST_ProvinceProvider extends exService {794 constructor(public commonService: CommonService) {795 super(APIList.LIST_Province, SearchConfig.getSearchFields('LIST_Province'), commonService);796 }797}798799@Injectable({ providedIn: 'root' })800export class LIST_WardProvider extends exService {801 constructor(public commonService: CommonService) {802 super(APIList.LIST_Ward, SearchConfig.getSearchFields('LIST_Ward'), commonService);803 }804}805806@Injectable({ providedIn: 'root' })807export class MR_CompetiorOrderProvider extends exService {808 constructor(public commonService: CommonService) {809 super(APIList.MR_CompetiorOrder, SearchConfig.getSearchFields('MR_CompetiorOrder'), commonService);810 }811}812813@Injectable({ providedIn: 'root' })814export class MR_TrackingCompetitorProvider extends exService {815 constructor(public commonService: CommonService) {816 super(APIList.MR_TrackingCompetitor, SearchConfig.getSearchFields('MR_TrackingCompetitor'), commonService);817 }818}819820@Injectable({ providedIn: 'root' })821export class OST_OfficeProvider extends exService {822 constructor(public commonService: CommonService) {823 super(APIList.OST_Office, SearchConfig.getSearchFields('OST_Office'), commonService);824 }825}826827@Injectable({ providedIn: 'root' })828export class OST_OfficeGateProvider extends exService {829 constructor(public commonService: CommonService) {830 super(APIList.OST_OfficeGate, SearchConfig.getSearchFields('OST_OfficeGate'), commonService);831 }832}833834@Injectable({ providedIn: 'root' })835export class PM_TaskProvider extends exService {836 constructor(public commonService: CommonService) {837 super(APIList.PM_Task, SearchConfig.getSearchFields('PM_Task'), commonService);838 }839}840841@Injectable({ providedIn: 'root' })842export class POS_BillTableProvider extends exService {843 constructor(public commonService: CommonService) {844 super(APIList.POS_BillTable, SearchConfig.getSearchFields('POS_BillTable'), commonService);845 }846}847848@Injectable({ providedIn: 'root' })849export class POS_CashProvider extends exService {850 constructor(public commonService: CommonService) {851 super(APIList.POS_Cash, SearchConfig.getSearchFields('POS_Cash'), commonService);852 }853}854855@Injectable({ providedIn: 'root' })856export class POS_KitchenProvider extends exService {857 constructor(public commonService: CommonService) {858 super(APIList.POS_Kitchen, SearchConfig.getSearchFields('POS_Kitchen'), commonService);859 }860}861862@Injectable({ providedIn: 'root' })863export class POS_MemberCardPromotionProvider extends exService {864 constructor(public commonService: CommonService) {865 super(APIList.POS_MemberCardPromotion, SearchConfig.getSearchFields('POS_MemberCardPromotion'), commonService);866 }867}868869@Injectable({ providedIn: 'root' })870export class POS_MemoProvider extends exService {871 constructor(public commonService: CommonService) {872 super(APIList.POS_Memo, SearchConfig.getSearchFields('POS_Memo'), commonService);873 }874}875876@Injectable({ providedIn: 'root' })877export class POS_MenuProvider extends exService {878 constructor(public commonService: CommonService) {879 super(APIList.POS_Menu, SearchConfig.getSearchFields('POS_Menu'), commonService);880 }881}882883@Injectable({ providedIn: 'root' })884export class POS_MenuDetailProvider extends exService {885 constructor(public commonService: CommonService) {886 super(APIList.POS_MenuDetail, SearchConfig.getSearchFields('POS_MenuDetail'), commonService);887 }888}889890@Injectable({ providedIn: 'root' })891export class POS_TableProvider extends exService {892 constructor(public commonService: CommonService) {893 super(APIList.POS_Table, SearchConfig.getSearchFields('POS_Table'), commonService);894 }895}896897@Injectable({ providedIn: 'root' })898export class POS_TableGroupProvider extends exService {899 constructor(public commonService: CommonService) {900 super(APIList.POS_TableGroup, SearchConfig.getSearchFields('POS_TableGroup'), commonService);901 }902}903904@Injectable({ providedIn: 'root' })905export class PR_PromotionTrackingProvider extends exService {906 constructor(public commonService: CommonService) {907 super(APIList.PR_PromotionTracking, SearchConfig.getSearchFields('PR_PromotionTracking'), commonService);908 }909}910911@Injectable({ providedIn: 'root' })912export class PROD_BillOfMaterialsProvider extends exService {913 constructor(public commonService: CommonService) {914 super(APIList.PROD_BillOfMaterials, SearchConfig.getSearchFields('PROD_BillOfMaterials'), commonService);915 }916}917918@Injectable({ providedIn: 'root' })919export class PROD_BillOfMaterialsDetailProvider extends exService {920 constructor(public commonService: CommonService) {921 super(APIList.PROD_BillOfMaterialsDetail, SearchConfig.getSearchFields('PROD_BillOfMaterialsDetail'), commonService);922 }923}924925@Injectable({ providedIn: 'root' })926export class PROD_ItemInVendorProvider extends exService {927 constructor(public commonService: CommonService) {928 super(APIList.PROD_ItemInVendor, SearchConfig.getSearchFields('PROD_ItemInVendor'), commonService);929 }930}931932@Injectable({ providedIn: 'root' })933export class PROD_MRPProvider extends exService {934 constructor(public commonService: CommonService) {935 super(APIList.PROD_MRP, SearchConfig.getSearchFields('PROD_MRP'), commonService);936 }937}938939@Injectable({ providedIn: 'root' })940export class PROD_MRPScenarioProvider extends exService {941 constructor(public commonService: CommonService) {942 super(APIList.PROD_MRPScenario, SearchConfig.getSearchFields('PROD_MRPScenario'), commonService);943 }944}945946@Injectable({ providedIn: 'root' })947export class PURCHASE_OrderProvider extends exService {948 constructor(public commonService: CommonService) {949 super(APIList.PURCHASE_Order, SearchConfig.getSearchFields('PURCHASE_Order'), commonService);950 }951}952953@Injectable({ providedIn: 'root' })954export class PURCHASE_OrderDetailProvider extends exService {955 constructor(public commonService: CommonService) {956 super(APIList.PURCHASE_OrderDetail, SearchConfig.getSearchFields('PURCHASE_OrderDetail'), commonService);957 }958}959960@Injectable({ providedIn: 'root' })961export class SALE_OrderProvider extends exService {962 constructor(public commonService: CommonService) {963 super(APIList.SALE_Order, SearchConfig.getSearchFields('SALE_Order'), commonService);964 }965}966967@Injectable({ providedIn: 'root' })968export class SALE_OrderDetailProvider extends exService {969 constructor(public commonService: CommonService) {970 super(APIList.SALE_OrderDetail, SearchConfig.getSearchFields('SALE_OrderDetail'), commonService);971 }972}973974@Injectable({ providedIn: 'root' })975export class SHIFT_TimeSheetProvider extends exService {976 constructor(public commonService: CommonService) {977 super(APIList.SHIFT_TimeSheet, SearchConfig.getSearchFields('SHIFT_TimeSheet'), commonService);978 }979}980981@Injectable({ providedIn: 'root' })982export class SHIP_ShipmentProvider extends exService {983 constructor(public commonService: CommonService) {984 super(APIList.SHIP_Shipment, SearchConfig.getSearchFields('SHIP_Shipment'), commonService);985 }986}987988@Injectable({ providedIn: 'root' })989export class SHIP_ShipmentDebtProvider extends exService {990 constructor(public commonService: CommonService) {991 super(APIList.SHIP_ShipmentDebt, SearchConfig.getSearchFields('SHIP_ShipmentDebt'), commonService);992 }993}994995@Injectable({ providedIn: 'root' })996export class SHIP_ShipmentDetailProvider extends exService {997 constructor(public commonService: CommonService) {998 super(APIList.SHIP_ShipmentDetail, SearchConfig.getSearchFields('SHIP_ShipmentDetail'), commonService);999 }1000}10011002@Injectable({ providedIn: 'root' })1003export class SHIP_VehicleProvider extends exService {1004 constructor(public commonService: CommonService) {1005 super(APIList.SHIP_Vehicle, SearchConfig.getSearchFields('SHIP_Vehicle'), commonService);1006 }1007}10081009@Injectable({ providedIn: 'root' })1010export class SYS_AppsProvider extends exService {1011 constructor(public commonService: CommonService) {1012 super(APIList.SYS_Apps, SearchConfig.getSearchFields('SYS_Apps'), commonService);1013 }1014}10151016@Injectable({ providedIn: 'root' })1017export class SYS_ConfigProvider extends exService {1018 constructor(public commonService: CommonService) {1019 super(APIList.SYS_Config, SearchConfig.getSearchFields('SYS_Config'), commonService);1020 }1021}10221023@Injectable({ providedIn: 'root' })1024export class SYS_ConfigOptionProvider extends exService {1025 constructor(public commonService: CommonService) {1026 super(APIList.SYS_ConfigOption, SearchConfig.getSearchFields('SYS_ConfigOption'), commonService);1027 }1028}10291030@Injectable({ providedIn: 'root' })1031export class SYS_CurrencyProvider extends exService {1032 constructor(public commonService: CommonService) {1033 super(APIList.SYS_Currency, SearchConfig.getSearchFields('SYS_Currency'), commonService);1034 }1035}10361037@Injectable({ providedIn: 'root' })1038export class SYS_DataPermissionListProvider extends exService {1039 constructor(public commonService: CommonService) {1040 super(APIList.SYS_DataPermissionList, SearchConfig.getSearchFields('SYS_DataPermissionList'), commonService);1041 }1042}10431044@Injectable({ providedIn: 'root' })1045export class SYS_FormProvider extends exService {1046 constructor(public commonService: CommonService) {1047 super(APIList.SYS_Form, SearchConfig.getSearchFields('SYS_Form'), commonService);1048 }1049}10501051@Injectable({ providedIn: 'root' })1052export class SYS_FormGroupProvider extends exService {1053 constructor(public commonService: CommonService) {1054 super(APIList.SYS_FormGroup, SearchConfig.getSearchFields('SYS_FormGroup'), commonService);1055 }1056}10571058@Injectable({ providedIn: 'root' })1059export class SYS_GlobalConfigProvider extends exService {1060 constructor(public commonService: CommonService) {1061 super(APIList.SYS_GlobalConfig, SearchConfig.getSearchFields('SYS_GlobalConfig'), commonService);1062 }1063}10641065@Injectable({ providedIn: 'root' })1066export class SYS_LogProvider extends exService {1067 constructor(public commonService: CommonService) {1068 super(APIList.SYS_Log, SearchConfig.getSearchFields('SYS_Log'), commonService);1069 }1070}10711072@Injectable({ providedIn: 'root' })1073export class SYS_PermissionListProvider extends exService {1074 constructor(public commonService: CommonService) {1075 super(APIList.SYS_PermissionList, SearchConfig.getSearchFields('SYS_PermissionList'), commonService);1076 }1077}10781079@Injectable({ providedIn: 'root' })1080export class SYS_PrinterProvider extends exService {1081 constructor(public commonService: CommonService) {1082 super(APIList.SYS_Printer, SearchConfig.getSearchFields('SYS_Printer'), commonService);1083 }1084}10851086@Injectable({ providedIn: 'root' })1087export class SYS_RoleProvider extends exService {1088 constructor(public commonService: CommonService) {1089 super(APIList.SYS_Role, SearchConfig.getSearchFields('SYS_Role'), commonService);1090 }1091}10921093@Injectable({ providedIn: 'root' })1094export class SYS_RuningNoProvider extends exService {1095 constructor(public commonService: CommonService) {1096 super(APIList.SYS_RuningNo, SearchConfig.getSearchFields('SYS_RuningNo'), commonService);1097 }1098}10991100@Injectable({ providedIn: 'root' })1101export class SYS_SAP_DatabasesProvider extends exService {1102 constructor(public commonService: CommonService) {1103 super(APIList.SYS_SAP_Databases, SearchConfig.getSearchFields('SYS_SAP_Databases'), commonService);1104 }1105}11061107@Injectable({ providedIn: 'root' })1108export class SYS_StatusProvider extends exService {1109 constructor(public commonService: CommonService) {1110 super(APIList.SYS_Status, SearchConfig.getSearchFields('SYS_Status'), commonService);1111 }1112}11131114@Injectable({ providedIn: 'root' })1115export class SYS_SyncJobProvider extends exService {1116 constructor(public commonService: CommonService) {1117 super(APIList.SYS_SyncJob, SearchConfig.getSearchFields('SYS_SyncJob'), commonService);1118 }1119}11201121@Injectable({ providedIn: 'root' })1122export class SYS_TypeProvider extends exService {1123 constructor(public commonService: CommonService) {1124 super(APIList.SYS_Type, SearchConfig.getSearchFields('SYS_Type'), commonService);1125 }1126}11271128@Injectable({ providedIn: 'root' })1129export class SYS_UserDeviceProvider extends exService {1130 constructor(public commonService: CommonService) {1131 super(APIList.SYS_UserDevice, SearchConfig.getSearchFields('SYS_UserDevice'), commonService);1132 }1133}11341135@Injectable({ providedIn: 'root' })1136export class SYS_UserSettingProvider extends exService {1137 constructor(public commonService: CommonService) {1138 super(APIList.SYS_UserSetting, SearchConfig.getSearchFields('SYS_UserSetting'), commonService);1139 }1140}11411142@Injectable({ providedIn: 'root' })1143export class SYS_UserVoiceProvider extends exService {1144 constructor(public commonService: CommonService) {1145 super(APIList.SYS_UserVoice, SearchConfig.getSearchFields('SYS_UserVoice'), commonService);1146 }1147}11481149@Injectable({ providedIn: 'root' })1150export class SYS_VeifyPhoneNumberProvider extends exService {1151 constructor(public commonService: CommonService) {1152 super(APIList.SYS_VeifyPhoneNumber, SearchConfig.getSearchFields('SYS_VeifyPhoneNumber'), commonService);1153 }1154}11551156@Injectable({ providedIn: 'root' })1157export class VersionProvider extends exService {1158 constructor(public commonService: CommonService) {1159 super(APIList.Version, SearchConfig.getSearchFields('Version'), commonService);1160 }1161}11621163@Injectable({ providedIn: 'root' })1164export class WEB_CategoryProvider extends exService {1165 constructor(public commonService: CommonService) {1166 super(APIList.WEB_Category, SearchConfig.getSearchFields('WEB_Category'), commonService);1167 }1168}11691170@Injectable({ providedIn: 'root' })1171export class WEB_ContentProvider extends exService {1172 constructor(public commonService: CommonService) {1173 super(APIList.WEB_Content, SearchConfig.getSearchFields('WEB_Content'), commonService);1174 }1175}11761177@Injectable({ providedIn: 'root' })1178export class WEB_Content_TagProvider extends exService {1179 constructor(public commonService: CommonService) {1180 super(APIList.WEB_Content_Tag, SearchConfig.getSearchFields('WEB_Content_Tag'), commonService);1181 }1182}11831184@Injectable({ providedIn: 'root' })1185export class WEB_ContentInCategoryProvider extends exService {1186 constructor(public commonService: CommonService) {1187 super(APIList.WEB_ContentInCategory, SearchConfig.getSearchFields('WEB_ContentInCategory'), commonService);1188 }1189}11901191@Injectable({ providedIn: 'root' })1192export class WEB_TagProvider extends exService {1193 constructor(public commonService: CommonService) {1194 super(APIList.WEB_Tag, SearchConfig.getSearchFields('WEB_Tag'), commonService);1195 }1196}11971198@Injectable({ providedIn: 'root' })1199export class WH_BranchesProvider extends exService {1200 constructor(public commonService: CommonService) {1201 super(APIList.WH_Branches, SearchConfig.getSearchFields('WH_Branches'), commonService);1202 }1203}12041205@Injectable({ providedIn: 'root' })1206export class WH_CashFlowsProvider extends exService {1207 constructor(public commonService: CommonService) {1208 super(APIList.WH_CashFlows, SearchConfig.getSearchFields('WH_CashFlows'), commonService);1209 }1210}12111212@Injectable({ providedIn: 'root' })1213export class WH_ContactGroupsProvider extends exService {1214 constructor(public commonService: CommonService) {1215 super(APIList.WH_ContactGroups, SearchConfig.getSearchFields('WH_ContactGroups'), commonService);1216 }1217}12181219@Injectable({ providedIn: 'root' })1220export class WH_ContactsProvider extends exService {1221 constructor(public commonService: CommonService) {1222 super(APIList.WH_Contacts, SearchConfig.getSearchFields('WH_Contacts'), commonService);1223 }1224}12251226@Injectable({ providedIn: 'root' })1227export class WH_GeneralLedgersProvider extends exService {1228 constructor(public commonService: CommonService) {1229 super(APIList.WH_GeneralLedgers, SearchConfig.getSearchFields('WH_GeneralLedgers'), commonService);1230 }1231}12321233@Injectable({ providedIn: 'root' })1234export class WH_InvoiceRowsProvider extends exService {1235 constructor(public commonService: CommonService) {1236 super(APIList.WH_InvoiceRows, SearchConfig.getSearchFields('WH_InvoiceRows'), commonService);1237 }1238}12391240@Injectable({ providedIn: 'root' })1241export class WH_InvoicesProvider extends exService {1242 constructor(public commonService: CommonService) {1243 super(APIList.WH_Invoices, SearchConfig.getSearchFields('WH_Invoices'), commonService);1244 }1245}12461247@Injectable({ providedIn: 'root' })1248export class WH_ItemGroupsProvider extends exService {1249 constructor(public commonService: CommonService) {1250 super(APIList.WH_ItemGroups, SearchConfig.getSearchFields('WH_ItemGroups'), commonService);1251 }1252}12531254@Injectable({ providedIn: 'root' })1255export class WH_ItemPriceListsProvider extends exService {1256 constructor(public commonService: CommonService) {1257 super(APIList.WH_ItemPriceLists, SearchConfig.getSearchFields('WH_ItemPriceLists'), commonService);1258 }1259}12601261@Injectable({ providedIn: 'root' })1262export class WH_ItemsProvider extends exService {1263 constructor(public commonService: CommonService) {1264 super(APIList.WH_Items, SearchConfig.getSearchFields('WH_Items'), commonService);1265 }1266}12671268@Injectable({ providedIn: 'root' })1269export class WH_ItemUoMProvider extends exService {1270 constructor(public commonService: CommonService) {1271 super(APIList.WH_ItemUoM, SearchConfig.getSearchFields('WH_ItemUoM'), commonService);1272 }1273}12741275@Injectable({ providedIn: 'root' })1276export class WH_JournalEntriesProvider extends exService {1277 constructor(public commonService: CommonService) {1278 super(APIList.WH_JournalEntries, SearchConfig.getSearchFields('WH_JournalEntries'), commonService);1279 }1280}12811282@Injectable({ providedIn: 'root' })1283export class WH_JournalEntryRowsProvider extends exService {1284 constructor(public commonService: CommonService) {1285 super(APIList.WH_JournalEntryRows, SearchConfig.getSearchFields('WH_JournalEntryRows'), commonService);1286 }1287}12881289@Injectable({ providedIn: 'root' })1290export class WH_PostingPeriodsProvider extends exService {1291 constructor(public commonService: CommonService) {1292 super(APIList.WH_PostingPeriods, SearchConfig.getSearchFields('WH_PostingPeriods'), commonService);1293 }1294}12951296@Injectable({ providedIn: 'root' })1297export class WH_PriceListsProvider extends exService {1298 constructor(public commonService: CommonService) {1299 super(APIList.WH_PriceLists, SearchConfig.getSearchFields('WH_PriceLists'), commonService);1300 }1301}13021303@Injectable({ providedIn: 'root' })1304export class WH_StaffProvider extends exService {1305 constructor(public commonService: CommonService) {1306 super(APIList.WH_Staff, SearchConfig.getSearchFields('WH_Staff'), commonService);1307 }1308}13091310@Injectable({ providedIn: 'root' })1311export class WH_UoMProvider extends exService {1312 constructor(public commonService: CommonService) {1313 super(APIList.WH_UoM, SearchConfig.getSearchFields('WH_UoM'), commonService);1314 }1315}13161317@Injectable({ providedIn: 'root' })1318export class WH_VTB_StatementsProvider extends exService {1319 constructor(public commonService: CommonService) {1320 super(APIList.WH_VTB_Statements, SearchConfig.getSearchFields('WH_VTB_Statements'), commonService);1321 }1322}13231324@Injectable({ providedIn: 'root' })1325export class WMS_AdjustmentProvider extends exService {1326 constructor(public commonService: CommonService) {1327 super(APIList.WMS_Adjustment, SearchConfig.getSearchFields('WMS_Adjustment'), commonService);1328 }1329}13301331@Injectable({ providedIn: 'root' })1332export class WMS_AdjustmentDetailProvider extends exService {1333 constructor(public commonService: CommonService) {1334 super(APIList.WMS_AdjustmentDetail, SearchConfig.getSearchFields('WMS_AdjustmentDetail'), commonService);1335 }1336}13371338@Injectable({ providedIn: 'root' })1339export class WMS_CarrierProvider extends exService {1340 constructor(public commonService: CommonService) {1341 super(APIList.WMS_Carrier, SearchConfig.getSearchFields('WMS_Carrier'), commonService);1342 }1343}13441345@Injectable({ providedIn: 'root' })1346export class WMS_CartonProvider extends exService {1347 constructor(public commonService: CommonService) {1348 super(APIList.WMS_Carton, SearchConfig.getSearchFields('WMS_Carton'), commonService);1349 }1350}13511352@Injectable({ providedIn: 'root' })1353export class WMS_CartonGroupProvider extends exService {1354 constructor(public commonService: CommonService) {1355 super(APIList.WMS_CartonGroup, SearchConfig.getSearchFields('WMS_CartonGroup'), commonService);1356 }1357}13581359@Injectable({ providedIn: 'root' })1360export class WMS_ItemProvider extends exService {1361 constructor(public commonService: CommonService) {1362 super(APIList.WMS_Item, SearchConfig.getSearchFields('WMS_Item'), commonService);1363 }1364}13651366@Injectable({ providedIn: 'root' })1367export class WMS_ItemGroupProvider extends exService {1368 constructor(public commonService: CommonService) {1369 super(APIList.WMS_ItemGroup, SearchConfig.getSearchFields('WMS_ItemGroup'), commonService);1370 }1371}13721373@Injectable({ providedIn: 'root' })1374export class WMS_ItemInLocationProvider extends exService {1375 constructor(public commonService: CommonService) {1376 super(APIList.WMS_ItemInLocation, SearchConfig.getSearchFields('WMS_ItemInLocation'), commonService);1377 }1378}13791380@Injectable({ providedIn: 'root' })1381export class WMS_ItemInWarehouseConfigProvider extends exService {1382 constructor(public commonService: CommonService) {1383 super(APIList.WMS_ItemInWarehouseConfig, SearchConfig.getSearchFields('WMS_ItemInWarehouseConfig'), commonService);1384 }1385}13861387@Injectable({ providedIn: 'root' })1388export class WMS_ItemUoMProvider extends exService {1389 constructor(public commonService: CommonService) {1390 super(APIList.WMS_ItemUoM, SearchConfig.getSearchFields('WMS_ItemUoM'), commonService);1391 }1392}13931394@Injectable({ providedIn: 'root' })1395export class WMS_LicencePlateNumberProvider extends exService {1396 constructor(public commonService: CommonService) {1397 super(APIList.WMS_LicencePlateNumber, SearchConfig.getSearchFields('WMS_LicencePlateNumber'), commonService);1398 }1399}14001401@Injectable({ providedIn: 'root' })1402export class WMS_LocationProvider extends exService {1403 constructor(public commonService: CommonService) {1404 super(APIList.WMS_Location, SearchConfig.getSearchFields('WMS_Location'), commonService);1405 }1406}14071408@Injectable({ providedIn: 'root' })1409export class WMS_LotProvider extends exService {1410 constructor(public commonService: CommonService) {1411 super(APIList.WMS_Lot, SearchConfig.getSearchFields('WMS_Lot'), commonService);1412 }1413}14141415@Injectable({ providedIn: 'root' })1416export class WMS_LotAttributeProvider extends exService {1417 constructor(public commonService: CommonService) {1418 super(APIList.WMS_LotAttribute, SearchConfig.getSearchFields('WMS_LotAttribute'), commonService);1419 }1420}14211422@Injectable({ providedIn: 'root' })1423export class WMS_LotLPNLocationProvider extends exService {1424 constructor(public commonService: CommonService) {1425 super(APIList.WMS_LotLPNLocation, SearchConfig.getSearchFields('WMS_LotLPNLocation'), commonService);1426 }1427}14281429@Injectable({ providedIn: 'root' })1430export class WMS_PriceListProvider extends exService {1431 constructor(public commonService: CommonService) {1432 super(APIList.WMS_PriceList, SearchConfig.getSearchFields('WMS_PriceList'), commonService);1433 }1434}14351436@Injectable({ providedIn: 'root' })1437export class WMS_PriceListDetailProvider extends exService {1438 constructor(public commonService: CommonService) {1439 super(APIList.WMS_PriceListDetail, SearchConfig.getSearchFields('WMS_PriceListDetail'), commonService);1440 }1441}14421443@Injectable({ providedIn: 'root' })1444export class WMS_PriceListVersionProvider extends exService {1445 constructor(public commonService: CommonService) {1446 super(APIList.WMS_PriceListVersion, SearchConfig.getSearchFields('WMS_PriceListVersion'), commonService);1447 }1448}14491450@Injectable({ providedIn: 'root' })1451export class WMS_PriceListVersionDetailProvider extends exService {1452 constructor(public commonService: CommonService) {1453 super(APIList.WMS_PriceListVersionDetail, SearchConfig.getSearchFields('WMS_PriceListVersionDetail'), commonService);1454 }1455}14561457@Injectable({ providedIn: 'root' })1458export class WMS_PutawayStrategyProvider extends exService {1459 constructor(public commonService: CommonService) {1460 super(APIList.WMS_PutawayStrategy, SearchConfig.getSearchFields('WMS_PutawayStrategy'), commonService);1461 }1462}14631464@Injectable({ providedIn: 'root' })1465export class WMS_PutawayStrategyDetailProvider extends exService {1466 constructor(public commonService: CommonService) {1467 super(APIList.WMS_PutawayStrategyDetail, SearchConfig.getSearchFields('WMS_PutawayStrategyDetail'), commonService);1468 }1469}14701471@Injectable({ providedIn: 'root' })1472export class WMS_ReceiptProvider extends exService {1473 constructor(public commonService: CommonService) {1474 super(APIList.WMS_Receipt, SearchConfig.getSearchFields('WMS_Receipt'), commonService);1475 }1476}14771478@Injectable({ providedIn: 'root' })1479export class WMS_ReceiptDetailProvider extends exService {1480 constructor(public commonService: CommonService) {1481 super(APIList.WMS_ReceiptDetail, SearchConfig.getSearchFields('WMS_ReceiptDetail'), commonService);1482 }1483}14841485@Injectable({ providedIn: 'root' })1486export class WMS_ReceiptPalletizationProvider extends exService {1487 constructor(public commonService: CommonService) {1488 super(APIList.WMS_ReceiptPalletization, SearchConfig.getSearchFields('WMS_ReceiptPalletization'), commonService);1489 }1490}14911492@Injectable({ providedIn: 'root' })1493export class WMS_StorerProvider extends exService {1494 constructor(public commonService: CommonService) {1495 super(APIList.WMS_Storer, SearchConfig.getSearchFields('WMS_Storer'), commonService);1496 }1497}14981499@Injectable({ providedIn: 'root' })1500export class WMS_TaskDispatchStrategyProvider extends exService {1501 constructor(public commonService: CommonService) {1502 super(APIList.WMS_TaskDispatchStrategy, SearchConfig.getSearchFields('WMS_TaskDispatchStrategy'), commonService);1503 }1504}15051506@Injectable({ providedIn: 'root' })1507export class WMS_TaskDispatchStrategyDetailProvider extends exService {1508 constructor(public commonService: CommonService) {1509 super(APIList.WMS_TaskDispatchStrategyDetail, SearchConfig.getSearchFields('WMS_TaskDispatchStrategyDetail'), commonService);1510 }1511}15121513@Injectable({ providedIn: 'root' })1514export class WMS_TransactionProvider extends exService {1515 constructor(public commonService: CommonService) {1516 super(APIList.WMS_Transaction, SearchConfig.getSearchFields('WMS_Transaction'), commonService);1517 }1518}15191520@Injectable({ providedIn: 'root' })1521export class WMS_UoMProvider extends exService {1522 constructor(public commonService: CommonService) {1523 super(APIList.WMS_UoM, SearchConfig.getSearchFields('WMS_UoM'), commonService);1524 }1525}15261527@Injectable({ providedIn: 'root' })1528export class WMS_UoMGroupProvider extends exService {1529 constructor(public commonService: CommonService) {1530 super(APIList.WMS_UoMGroup, SearchConfig.getSearchFields('WMS_UoMGroup'), commonService);1531 }1532}15331534@Injectable({ providedIn: 'root' })1535export class WMS_VendorProvider extends exService {1536 constructor(public commonService: CommonService) {1537 super(APIList.WMS_Vendor, SearchConfig.getSearchFields('WMS_Vendor'), commonService);1538 }1539}15401541@Injectable({ providedIn: 'root' })1542export class WMS_WarehouseInfoProvider extends exService {1543 constructor(public commonService: CommonService) {1544 super(APIList.WMS_WarehouseInfo, SearchConfig.getSearchFields('WMS_WarehouseInfo'), commonService);1545 }1546}15471548@Injectable({ providedIn: 'root' })1549export class WMS_WavePlanningProvider extends exService {1550 constructor(public commonService: CommonService) {1551 super(APIList.WMS_WavePlanning, SearchConfig.getSearchFields('WMS_WavePlanning'), commonService);1552 }1553}15541555@Injectable({ providedIn: 'root' })1556export class WMS_ZoneProvider extends exService {1557 constructor(public commonService: CommonService) {1558 super(APIList.WMS_Zone, SearchConfig.getSearchFields('WMS_Zone'), commonService);1559 }1560}
...
cases.ts
Source:cases.ts
...28 class Test {}29 `,30 `31 @Injectable({32 [\`providedIn\`]: providedIn(),33 })34 class Test {}35 `,36 // https://github.com/angular-eslint/angular-eslint/issues/23637 `38 @Injectable()39 class Test implements HttpInterceptor {}40 `,41 // https://github.com/angular-eslint/angular-eslint/issues/23642 `43 @Injectable()44 class Test implements ng.HttpInterceptor {}45 `,46 // https://github.com/angular-eslint/angular-eslint/issues/236...
injectable_compiler.ts
Source:injectable_compiler.ts
1/**2 * @license3 * Copyright Google Inc. All Rights Reserved.4 *5 * Use of this source code is governed by an MIT-style license that can be6 * found in the LICENSE file at https://angular.io/license7 */8import {StaticSymbol} from './aot/static_symbol';9import {CompileInjectableMetadata, CompileNgModuleMetadata, CompileProviderMetadata, identifierName} from './compile_metadata';10import {CompileReflector} from './compile_reflector';11import {InjectFlags, NodeFlags} from './core';12import {Identifiers} from './identifiers';13import * as o from './output/output_ast';14import {convertValueToOutputAst} from './output/value_util';15import {typeSourceSpan} from './parse_util';16import {NgModuleProviderAnalyzer} from './provider_analyzer';17import {OutputContext} from './util';18import {componentFactoryResolverProviderDef, depDef, providerDef} from './view_compiler/provider_compiler';19type MapEntry = {20 key: string,21 quoted: boolean,22 value: o.Expression23};24type MapLiteral = MapEntry[];25function mapEntry(key: string, value: o.Expression): MapEntry {26 return {key, value, quoted: false};27}28export class InjectableCompiler {29 private tokenInjector: StaticSymbol;30 constructor(private reflector: CompileReflector, private alwaysGenerateDef: boolean) {31 this.tokenInjector = reflector.resolveExternalReference(Identifiers.Injector);32 }33 private depsArray(deps: any[], ctx: OutputContext): o.Expression[] {34 return deps.map(dep => {35 let token = dep;36 let args = [token];37 let flags: InjectFlags = InjectFlags.Default;38 if (Array.isArray(dep)) {39 for (let i = 0; i < dep.length; i++) {40 const v = dep[i];41 if (v) {42 if (v.ngMetadataName === 'Optional') {43 flags |= InjectFlags.Optional;44 } else if (v.ngMetadataName === 'SkipSelf') {45 flags |= InjectFlags.SkipSelf;46 } else if (v.ngMetadataName === 'Self') {47 flags |= InjectFlags.Self;48 } else if (v.ngMetadataName === 'Inject') {49 token = v.token;50 } else {51 token = v;52 }53 }54 }55 }56 let tokenExpr: o.Expression;57 if (typeof token === 'string') {58 tokenExpr = o.literal(token);59 } else if (token === this.tokenInjector) {60 tokenExpr = o.importExpr(Identifiers.INJECTOR);61 } else {62 tokenExpr = ctx.importExpr(token);63 }64 if (flags !== InjectFlags.Default) {65 args = [tokenExpr, o.literal(flags)];66 } else {67 args = [tokenExpr];68 }69 return o.importExpr(Identifiers.inject).callFn(args);70 });71 }72 factoryFor(injectable: CompileInjectableMetadata, ctx: OutputContext): o.Expression {73 let retValue: o.Expression;74 if (injectable.useExisting) {75 retValue = o.importExpr(Identifiers.inject).callFn([ctx.importExpr(injectable.useExisting)]);76 } else if (injectable.useFactory) {77 const deps = injectable.deps || [];78 if (deps.length > 0) {79 retValue = ctx.importExpr(injectable.useFactory).callFn(this.depsArray(deps, ctx));80 } else {81 return ctx.importExpr(injectable.useFactory);82 }83 } else if (injectable.useValue) {84 retValue = convertValueToOutputAst(ctx, injectable.useValue);85 } else {86 const clazz = injectable.useClass || injectable.symbol;87 const depArgs = this.depsArray(this.reflector.parameters(clazz), ctx);88 retValue = new o.InstantiateExpr(ctx.importExpr(clazz), depArgs);89 }90 return o.fn(91 [], [new o.ReturnStatement(retValue)], undefined, undefined,92 injectable.symbol.name + '_Factory');93 }94 injectableDef(injectable: CompileInjectableMetadata, ctx: OutputContext): o.Expression {95 let providedIn: o.Expression = o.NULL_EXPR;96 if (injectable.providedIn !== undefined) {97 if (injectable.providedIn === null) {98 providedIn = o.NULL_EXPR;99 } else if (typeof injectable.providedIn === 'string') {100 providedIn = o.literal(injectable.providedIn);101 } else {102 providedIn = ctx.importExpr(injectable.providedIn);103 }104 }105 const def: MapLiteral = [106 mapEntry('factory', this.factoryFor(injectable, ctx)),107 mapEntry('token', ctx.importExpr(injectable.type.reference)),108 mapEntry('providedIn', providedIn),109 ];110 return o.importExpr(Identifiers.ɵɵdefineInjectable).callFn([o.literalMap(def)]);111 }112 compile(injectable: CompileInjectableMetadata, ctx: OutputContext): void {113 if (this.alwaysGenerateDef || injectable.providedIn !== undefined) {114 const className = identifierName(injectable.type) !;115 const clazz = new o.ClassStmt(116 className, null,117 [118 new o.ClassField(119 'ɵprov', o.INFERRED_TYPE, [o.StmtModifier.Static],120 this.injectableDef(injectable, ctx)),121 ],122 [], new o.ClassMethod(null, [], []), []);123 ctx.statements.push(clazz);124 }125 }...
Using AI Code Generation
1import { Component, NgModule } from '@angular/core';2import { MockBuilder, MockRender, ngMocks } from 'ng-mocks';3@Component({4})5class TestComponent {}6@NgModule({7})8class TestModule {}9describe('test', () => {10 beforeEach(() => MockBuilder(TestComponent, TestModule));11 it('should create', () => {12 const fixture = MockRender(TestComponent);13 const test = ngMocks.find(TestComponent);14 expect(test).toBeDefined();15 });16});
Using AI Code Generation
1import { TestBed } from '@angular/core/testing';2import { MockBuilder, MockRender, ngMocks } from 'ng-mocks';3import { AppModule } from './app.module';4import { AppComponent } from './app.component';5import { MyService } from './my.service';6describe('AppComponent', () => {7 beforeEach(() => MockBuilder(AppComponent, AppModule));8 it('should create the app', () => {9 const fixture = MockRender(AppComponent);10 const app = fixture.point.componentInstance;11 expect(app).toBeTruthy();12 });13 it('should call MyService', () => {14 const fixture = MockRender(AppComponent);15 const app = fixture.point.componentInstance;16 const myService = ngMocks.findInstance(MyService);17 expect(myService).toBeTruthy();18 expect(myService.test).toHaveBeenCalled();19 });20});21import { TestBed } from '@angular/core/testing';22import { MockBuilder, MockRender, ngMocks } from 'ng-mocks';23import { AppModule } from './app.module';24import { AppComponent } from './app.component';25import { MyService } from './my.service';26describe('AppComponent', () => {27 beforeEach(() => MockBuilder(AppComponent, AppModule));28 it('should create the app', () => {29 const fixture = MockRender(AppComponent);30 const app = fixture.point.componentInstance;31 expect(app).toBeTruthy();32 });33 it('should call MyService', () => {34 const fixture = MockRender(AppComponent);35 const app = fixture.point.componentInstance;36 const myService = TestBed.get(MyService);
Using AI Code Generation
1import { provideMockStore } from '@ngrx/store/testing';2import { MockStore, provideMockStore } from '@ngrx/store/testing';3import { Store } from '@ngrx/store';4import { TestBed } from '@angular/core/testing';5import { AppComponent } from './app.component';6import { initialState } from './app.reducer';7describe('AppComponent', () => {8 let component: AppComponent;9 let store: MockStore<{ count: number }>;10 beforeEach(() => {11 TestBed.configureTestingModule({12 provideMockStore({ initialState }),13 });14 component = TestBed.inject(AppComponent);15 store = TestBed.inject(MockStore);16 });17 it('should create the app', () => {18 expect(component).toBeTruthy();19 });20});
Using AI Code Generation
1import { MockBuilder, MockRender, ngMocks } from 'ng-mocks';2describe('MyComponent', () => {3 beforeEach(() => MockBuilder(MyComponent));4 it('provides the component', () => {5 const fixture = MockRender(MyComponent);6 expect(ngMocks.formatText(fixture)).toEqual('Hello World!');7 });8});9import { TestBed } from '@angular/core/testing';10import { MyComponent } from './my.component';11import { MyService } from './my.service';12describe('MyComponent', () => {13 beforeEach(() => {14 TestBed.configureTestingModule({15 {16 useValue: {17 hello: () => 'Hello World!',18 },19 },20 });21 });22 it('provides the component', () => {23 const fixture = TestBed.createComponent(MyComponent);24 fixture.detectChanges();25 expect(fixture.nativeElement.textContent).toEqual('Hello World!');26 });27});
Using AI Code Generation
1import { MockModule } from 'ng-mocks';2import { MyModule } from './my-module';3describe('ng-mocks', () => {4 it('should mock module', () => {5 const mock = MockModule(MyModule);6 expect(mock).toBeDefined();7 });8});9import { NgModule } from '@angular/core';10import { CommonModule } from '@angular/common';11@NgModule({12 imports: [CommonModule]13})14export class MyModule {}15{16 "compilerOptions": {17 "paths": {18 }19 }20}21{22 "dependencies": {23 }24}25{26 "projects": {27 "ng-mocks": {28 "architect": {29 "build": {30 "options": {31 }32 }33 }34 }35 }36}
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!