| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <customApplicationComponents> |
| | | <alignment>right</alignment> |
| | | <customApplicationComponent>Console.BuiltInComponent.mostRecentlyUsed</customApplicationComponent> |
| | | </customApplicationComponents> |
| | | <consoleConfig> |
| | | <componentList> |
| | | <alignment>right</alignment> |
| | | <components>Console.BuiltInComponent.mostRecentlyUsed</components> |
| | | </componentList> |
| | | <detailPageRefreshMethod>flag</detailPageRefreshMethod> |
| | | <keyboardShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_CONSOLE</action> |
| | | <active>true</active> |
| | | <keyCommand>ESC</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_NAVIGATOR_TAB</action> |
| | | <active>true</active> |
| | | <keyCommand>V</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_DETAIL_VIEW</action> |
| | | <active>true</active> |
| | | <keyCommand>SHIFT+S</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_PRIMARY_TAB_PANEL</action> |
| | | <active>true</active> |
| | | <keyCommand>P</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_SUBTAB_PANEL</action> |
| | | <active>true</active> |
| | | <keyCommand>S</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_LIST_VIEW</action> |
| | | <active>true</active> |
| | | <keyCommand>N</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_FIRST_LIST_VIEW</action> |
| | | <active>true</active> |
| | | <keyCommand>SHIFT+F</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_SEARCH_INPUT</action> |
| | | <active>true</active> |
| | | <keyCommand>R</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>MOVE_LEFT</action> |
| | | <active>true</active> |
| | | <keyCommand>LEFT ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>MOVE_RIGHT</action> |
| | | <active>true</active> |
| | | <keyCommand>RIGHT ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>UP_ARROW</action> |
| | | <active>true</active> |
| | | <keyCommand>UP ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>DOWN_ARROW</action> |
| | | <active>true</active> |
| | | <keyCommand>DOWN ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>OPEN_TAB_SCROLLER_MENU</action> |
| | | <active>true</active> |
| | | <keyCommand>D</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>OPEN_TAB</action> |
| | | <active>true</active> |
| | | <keyCommand>T</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>CLOSE_TAB</action> |
| | | <active>true</active> |
| | | <keyCommand>C</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>REFRESH_TAB</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+R</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>ENTER</action> |
| | | <active>true</active> |
| | | <keyCommand>ENTER</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>EDIT</action> |
| | | <active>true</active> |
| | | <keyCommand>E</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>SAVE</action> |
| | | <active>true</active> |
| | | <keyCommand>CTRL+S</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>CONSOLE_LINK_DIALOG</action> |
| | | <active>false</active> |
| | | <keyCommand>U</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>HOTKEYS_PANEL</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+K</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_MACRO</action> |
| | | <active>false</active> |
| | | <keyCommand>M</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_FOOTER_PANEL</action> |
| | | <active>false</active> |
| | | <keyCommand>F</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>TOGGLE_LIST_VIEW</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+N</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>TOGGLE_LEFT_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+LEFT ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>TOGGLE_RIGHT_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+RIGHT ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>TOGGLE_TOP_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+UP ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>TOGGLE_BOTTOM_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+DOWN ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>TOGGLE_APP_LEVEL_COMPONENTS</action> |
| | | <active>false</active> |
| | | <keyCommand>Z</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>REOPEN_LAST_TAB</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+C</keyCommand> |
| | | </defaultShortcuts> |
| | | </keyboardShortcuts> |
| | | <listPlacement> |
| | | <location>full</location> |
| | | </listPlacement> |
| | | <listRefreshMethod>refreshListRows</listRefreshMethod> |
| | | </consoleConfig> |
| | | <defaultLandingTab>standard-home</defaultLandingTab> |
| | | <detailPageRefreshMethod>flag</detailPageRefreshMethod> |
| | | <enableCustomizeMyTabs>false</enableCustomizeMyTabs> |
| | | <enableKeyboardShortcuts>true</enableKeyboardShortcuts> |
| | | <enableListViewHover>true</enableListViewHover> |
| | | <enableListViewReskin>true</enableListViewReskin> |
| | | <enableMultiMonitorComponents>true</enableMultiMonitorComponents> |
| | | <enablePinTabs>true</enablePinTabs> |
| | | <enableTabHover>false</enableTabHover> |
| | | <enableTabLimits>false</enableTabLimits> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <isServiceCloudConsole>true</isServiceCloudConsole> |
| | | <keyboardShortcuts> |
| | | <defaultShortcut> |
| | | <action>FOCUS_CONSOLE</action> |
| | | <active>true</active> |
| | | <keyCommand>ESC</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_NAVIGATOR_TAB</action> |
| | | <active>true</active> |
| | | <keyCommand>V</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_DETAIL_VIEW</action> |
| | | <active>true</active> |
| | | <keyCommand>SHIFT+S</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_PRIMARY_TAB_PANEL</action> |
| | | <active>true</active> |
| | | <keyCommand>P</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_SUBTAB_PANEL</action> |
| | | <active>true</active> |
| | | <keyCommand>S</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_LIST_VIEW</action> |
| | | <active>true</active> |
| | | <keyCommand>N</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_FIRST_LIST_VIEW</action> |
| | | <active>true</active> |
| | | <keyCommand>SHIFT+F</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_SEARCH_INPUT</action> |
| | | <active>true</active> |
| | | <keyCommand>R</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>MOVE_LEFT</action> |
| | | <active>true</active> |
| | | <keyCommand>LEFT ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>MOVE_RIGHT</action> |
| | | <active>true</active> |
| | | <keyCommand>RIGHT ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>UP_ARROW</action> |
| | | <active>true</active> |
| | | <keyCommand>UP ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>DOWN_ARROW</action> |
| | | <active>true</active> |
| | | <keyCommand>DOWN ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>OPEN_TAB_SCROLLER_MENU</action> |
| | | <active>true</active> |
| | | <keyCommand>D</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>OPEN_TAB</action> |
| | | <active>true</active> |
| | | <keyCommand>T</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>CLOSE_TAB</action> |
| | | <active>true</active> |
| | | <keyCommand>C</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>REFRESH_TAB</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+R</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>ENTER</action> |
| | | <active>true</active> |
| | | <keyCommand>ENTER</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>EDIT</action> |
| | | <active>true</active> |
| | | <keyCommand>E</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>SAVE</action> |
| | | <active>true</active> |
| | | <keyCommand>CTRL+S</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>CONSOLE_LINK_DIALOG</action> |
| | | <active>false</active> |
| | | <keyCommand>U</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>HOTKEYS_PANEL</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+K</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_MACRO</action> |
| | | <active>false</active> |
| | | <keyCommand>M</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_FOOTER_PANEL</action> |
| | | <active>false</active> |
| | | <keyCommand>F</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>TOGGLE_LIST_VIEW</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+N</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>TOGGLE_LEFT_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+LEFT ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>TOGGLE_RIGHT_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+RIGHT ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>TOGGLE_TOP_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+UP ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>TOGGLE_BOTTOM_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+DOWN ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>TOGGLE_APP_LEVEL_COMPONENTS</action> |
| | | <active>false</active> |
| | | <keyCommand>Z</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>REOPEN_LAST_TAB</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+C</keyCommand> |
| | | </defaultShortcut> |
| | | </keyboardShortcuts> |
| | | <label>CIC专用页面</label> |
| | | <listPlacement> |
| | | <location>full</location> |
| | | </listPlacement> |
| | | <listRefreshMethod>refreshListRows</listRefreshMethod> |
| | | <logo>System/Olympus_Logo.png</logo> |
| | | <saveUserSessions>true</saveUserSessions> |
| | | <tab>standard-Case</tab> |
| | | <tab>standard-Solution</tab> |
| | | <tab>standard-Account</tab> |
| | | <tab>standard-Contact</tab> |
| | | <tab>standard-Product2</tab> |
| | | <tab>Product_Documentation__c</tab> |
| | | <tab>Product_Set__c</tab> |
| | | <tab>CIC_Report</tab> |
| | | <tab>standard-home</tab> |
| | | <tab>Equipment_Set__c</tab> |
| | | <tab>Bulletin_Board__c</tab> |
| | | <tab>standard-report</tab> |
| | | <tab>Rental_Apply_Equipment_Set__c</tab> |
| | | <tab>Medical_expense_Request__c</tab> |
| | | <tab>QIS_Report__c</tab> |
| | | <tab>Product_Material__c</tab> |
| | | <tab>Report__c</tab> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | <tab>SI_Attachment__c</tab> |
| | | <tab>OPDPlan__c</tab> |
| | | <tab>SubAuthorized__c</tab> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | <tab>ReceivingNote__c</tab> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | <tab>Complaint__c</tab> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | <tab>TransferApply__c</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>QuoteIrai__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <workspaceMappings> |
| | | <mapping> |
| | | <preferences> |
| | | <enableCustomizeMyTabs>false</enableCustomizeMyTabs> |
| | | <enableKeyboardShortcuts>true</enableKeyboardShortcuts> |
| | | <enableListViewHover>true</enableListViewHover> |
| | | <enableListViewReskin>true</enableListViewReskin> |
| | | <enableMultiMonitorComponents>true</enableMultiMonitorComponents> |
| | | <enablePinTabs>true</enablePinTabs> |
| | | <enableTabHover>false</enableTabHover> |
| | | <enableTabLimits>false</enableTabLimits> |
| | | <saveUserSessions>true</saveUserSessions> |
| | | </preferences> |
| | | <tabs>standard-Case</tabs> |
| | | <tabs>standard-Solution</tabs> |
| | | <tabs>standard-Account</tabs> |
| | | <tabs>standard-Contact</tabs> |
| | | <tabs>standard-Product2</tabs> |
| | | <tabs>Product_Documentation__c</tabs> |
| | | <tabs>Product_Set__c</tabs> |
| | | <tabs>CIC_Report</tabs> |
| | | <tabs>standard-home</tabs> |
| | | <tabs>Equipment_Set__c</tabs> |
| | | <tabs>Bulletin_Board__c</tabs> |
| | | <tabs>standard-report</tabs> |
| | | <tabs>Rental_Apply_Equipment_Set__c</tabs> |
| | | <tabs>Medical_expense_Request__c</tabs> |
| | | <tabs>QIS_Report__c</tabs> |
| | | <tabs>Product_Material__c</tabs> |
| | | <tabs>Report__c</tabs> |
| | | <tabs>IS_Opportunity_Demand__c</tabs> |
| | | <tabs>SI_Attachment__c</tabs> |
| | | <tabs>OPDPlan__c</tabs> |
| | | <tabs>SubAuthorized__c</tabs> |
| | | <tabs>OpportunitySpecialApply__c</tabs> |
| | | <tabs>ReceivingNote__c</tabs> |
| | | <tabs>ReceivingNoteDetail__c</tabs> |
| | | <tabs>SolutionProjectRequirements__c</tabs> |
| | | <tabs>AssetMaintainHeader__c</tabs> |
| | | <tabs>Complaint__c</tabs> |
| | | <tabs>Maintenance_Product_Data__c</tabs> |
| | | <tabs>TransferApply__c</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | <workspaceConfig> |
| | | <mappings> |
| | | <tab>Account_Delay_Apply__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Address__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Advance_Payment__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Bulletin_Board__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>CIC_Report</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Complaint__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Consumable_order_details2__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Equipment_Set__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>LogisticsInformation__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Medical_expense_Request__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Monthly_Report__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ODS__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>OPDPlan__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Product_Documentation__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Product_Material__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Product_Set__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>PromotionHead__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>QIS_Report__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>QuoteIrai__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ReceivingNote__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Rental_Apply_Equipment_Set__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Report__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SI_Attachment__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SearchPIContact</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SubAuthorized__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Tender_information__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>TransferApply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Account</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Case</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Contact</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Product2</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Solution</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-home</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-report</tab> |
| | | </mapping> |
| | | </workspaceMappings> |
| | | </mappings> |
| | | </workspaceConfig> |
| | | </CustomApplication> |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <defaultLandingTab>standard-home</defaultLandingTab> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | </CustomApplication> |
| | |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <defaultLandingTab>standard-AppLauncher</defaultLandingTab> |
| | | <formFactors>Large</formFactors> |
| | | <tab>standard-AppLauncher</tab> |
| | | <tab>Rental_Apply_Equipment_Set__c</tab> |
| | | <tab>Medical_expense_Request__c</tab> |
| | | <tab>QIS_Report__c</tab> |
| | | <tab>Product_Material__c</tab> |
| | | <tab>standard-Quote</tab> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | <tab>SI_Attachment__c</tab> |
| | | <tab>OPDPlan__c</tab> |
| | | <tab>SubAuthorized__c</tab> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | <tab>ReceivingNote__c</tab> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | <tab>Complaint__c</tab> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | <tab>TransferApply__c</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <tabs>standard-AppLauncher</tabs> |
| | | <tabs>Rental_Apply_Equipment_Set__c</tabs> |
| | | <tabs>Medical_expense_Request__c</tabs> |
| | | <tabs>QIS_Report__c</tabs> |
| | | <tabs>Product_Material__c</tabs> |
| | | <tabs>standard-Quote</tabs> |
| | | <tabs>IS_Opportunity_Demand__c</tabs> |
| | | <tabs>SI_Attachment__c</tabs> |
| | | <tabs>OPDPlan__c</tabs> |
| | | <tabs>SubAuthorized__c</tabs> |
| | | <tabs>OpportunitySpecialApply__c</tabs> |
| | | <tabs>ReceivingNote__c</tabs> |
| | | <tabs>ReceivingNoteDetail__c</tabs> |
| | | <tabs>SolutionProjectRequirements__c</tabs> |
| | | <tabs>AssetMaintainHeader__c</tabs> |
| | | <tabs>Complaint__c</tabs> |
| | | <tabs>Maintenance_Product_Data__c</tabs> |
| | | <tabs>TransferApply__c</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | </CustomApplication> |
| | |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <defaultLandingTab>standard-home</defaultLandingTab> |
| | | <formFactors>Large</formFactors> |
| | | <tab>standard-Chatter</tab> |
| | | <tab>standard-UserProfile</tab> |
| | | <tab>standard-OtherUserProfile</tab> |
| | | <tab>standard-CollaborationGroup</tab> |
| | | <tab>standard-File</tab> |
| | | <tab>Daily_Report__c</tab> |
| | | <tab>Report__c</tab> |
| | | <tab>Event__c</tab> |
| | | <tab>Medical_expense_Request__c</tab> |
| | | <tab>QIS_Report__c</tab> |
| | | <tab>Product_Material__c</tab> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | <tab>SI_Attachment__c</tab> |
| | | <tab>OPDPlan__c</tab> |
| | | <tab>SubAuthorized__c</tab> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | <tab>ReceivingNote__c</tab> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | <tab>Complaint__c</tab> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | <tab>TransferApply__c</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>QuoteIrai__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <tabs>standard-Chatter</tabs> |
| | | <tabs>standard-UserProfile</tabs> |
| | | <tabs>standard-OtherUserProfile</tabs> |
| | | <tabs>standard-CollaborationGroup</tabs> |
| | | <tabs>standard-File</tabs> |
| | | <tabs>Daily_Report__c</tabs> |
| | | <tabs>Report__c</tabs> |
| | | <tabs>Event__c</tabs> |
| | | <tabs>Medical_expense_Request__c</tabs> |
| | | <tabs>QIS_Report__c</tabs> |
| | | <tabs>Product_Material__c</tabs> |
| | | <tabs>IS_Opportunity_Demand__c</tabs> |
| | | <tabs>SI_Attachment__c</tabs> |
| | | <tabs>OPDPlan__c</tabs> |
| | | <tabs>SubAuthorized__c</tabs> |
| | | <tabs>OpportunitySpecialApply__c</tabs> |
| | | <tabs>ReceivingNote__c</tabs> |
| | | <tabs>ReceivingNoteDetail__c</tabs> |
| | | <tabs>SolutionProjectRequirements__c</tabs> |
| | | <tabs>AssetMaintainHeader__c</tabs> |
| | | <tabs>Complaint__c</tabs> |
| | | <tabs>Maintenance_Product_Data__c</tabs> |
| | | <tabs>TransferApply__c</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | </CustomApplication> |
| | |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <defaultLandingTab>standard-home</defaultLandingTab> |
| | | <formFactors>Large</formFactors> |
| | | <tab>standard-Chatter</tab> |
| | | <tab>standard-Contact</tab> |
| | | <tab>standard-Account</tab> |
| | | <tab>standard-Idea</tab> |
| | | <tab>standard-report</tab> |
| | | <tab>standard-Dashboard</tab> |
| | | <tab>Daily_Report__c</tab> |
| | | <tab>Report__c</tab> |
| | | <tab>Event__c</tab> |
| | | <tab>Equipment_Set__c</tab> |
| | | <tab>Bulletin_Board__c</tab> |
| | | <tab>Rental_Apply_Equipment_Set__c</tab> |
| | | <tab>Medical_expense_Request__c</tab> |
| | | <tab>QIS_Report__c</tab> |
| | | <tab>Product_Material__c</tab> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | <tab>SI_Attachment__c</tab> |
| | | <tab>OPDPlan__c</tab> |
| | | <tab>SubAuthorized__c</tab> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | <tab>ReceivingNote__c</tab> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | <tab>Complaint__c</tab> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | <tab>TransferApply__c</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>QuoteIrai__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <tabs>standard-Chatter</tabs> |
| | | <tabs>standard-Contact</tabs> |
| | | <tabs>standard-Account</tabs> |
| | | <tabs>standard-Idea</tabs> |
| | | <tabs>standard-report</tabs> |
| | | <tabs>standard-Dashboard</tabs> |
| | | <tabs>Daily_Report__c</tabs> |
| | | <tabs>Report__c</tabs> |
| | | <tabs>Event__c</tabs> |
| | | <tabs>Equipment_Set__c</tabs> |
| | | <tabs>Bulletin_Board__c</tabs> |
| | | <tabs>Rental_Apply_Equipment_Set__c</tabs> |
| | | <tabs>Medical_expense_Request__c</tabs> |
| | | <tabs>QIS_Report__c</tabs> |
| | | <tabs>Product_Material__c</tabs> |
| | | <tabs>IS_Opportunity_Demand__c</tabs> |
| | | <tabs>SI_Attachment__c</tabs> |
| | | <tabs>OPDPlan__c</tabs> |
| | | <tabs>SubAuthorized__c</tabs> |
| | | <tabs>OpportunitySpecialApply__c</tabs> |
| | | <tabs>ReceivingNote__c</tabs> |
| | | <tabs>ReceivingNoteDetail__c</tabs> |
| | | <tabs>SolutionProjectRequirements__c</tabs> |
| | | <tabs>AssetMaintainHeader__c</tabs> |
| | | <tabs>Complaint__c</tabs> |
| | | <tabs>Maintenance_Product_Data__c</tabs> |
| | | <tabs>TransferApply__c</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | </CustomApplication> |
| | |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <defaultLandingTab>standard-home</defaultLandingTab> |
| | | <formFactors>Large</formFactors> |
| | | <tab>standard-Chatter</tab> |
| | | <tab>standard-Workspace</tab> |
| | | <tab>standard-ContentSearch</tab> |
| | | <tab>standard-ContentSubscriptions</tab> |
| | | <tab>Event__c</tab> |
| | | <tab>Equipment_Set__c</tab> |
| | | <tab>Bulletin_Board__c</tab> |
| | | <tab>Rental_Apply_Equipment_Set__c</tab> |
| | | <tab>Medical_expense_Request__c</tab> |
| | | <tab>QIS_Report__c</tab> |
| | | <tab>Product_Material__c</tab> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | <tab>SI_Attachment__c</tab> |
| | | <tab>OPDPlan__c</tab> |
| | | <tab>SubAuthorized__c</tab> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | <tab>ReceivingNote__c</tab> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | <tab>Complaint__c</tab> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | <tab>TransferApply__c</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>QuoteIrai__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <tabs>standard-Chatter</tabs> |
| | | <tabs>standard-Workspace</tabs> |
| | | <tabs>standard-ContentSearch</tabs> |
| | | <tabs>standard-ContentSubscriptions</tabs> |
| | | <tabs>Event__c</tabs> |
| | | <tabs>Equipment_Set__c</tabs> |
| | | <tabs>Bulletin_Board__c</tabs> |
| | | <tabs>Rental_Apply_Equipment_Set__c</tabs> |
| | | <tabs>Medical_expense_Request__c</tabs> |
| | | <tabs>QIS_Report__c</tabs> |
| | | <tabs>Product_Material__c</tabs> |
| | | <tabs>IS_Opportunity_Demand__c</tabs> |
| | | <tabs>SI_Attachment__c</tabs> |
| | | <tabs>OPDPlan__c</tabs> |
| | | <tabs>SubAuthorized__c</tabs> |
| | | <tabs>OpportunitySpecialApply__c</tabs> |
| | | <tabs>ReceivingNote__c</tabs> |
| | | <tabs>ReceivingNoteDetail__c</tabs> |
| | | <tabs>SolutionProjectRequirements__c</tabs> |
| | | <tabs>AssetMaintainHeader__c</tabs> |
| | | <tabs>Complaint__c</tabs> |
| | | <tabs>Maintenance_Product_Data__c</tabs> |
| | | <tabs>TransferApply__c</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | </CustomApplication> |
| | |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <defaultLandingTab>standard-home</defaultLandingTab> |
| | | <formFactors>Large</formFactors> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | </CustomApplication> |
| | |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <formFactors>Small</formFactors> |
| | | <formFactors>Large</formFactors> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <label>Sales</label> |
| | | <navType>Standard</navType> |
| | | <tab>standard-home</tab> |
| | | <tab>standard-Opportunity</tab> |
| | | <tab>standard-Quote</tab> |
| | | <tab>standard-Lead</tab> |
| | | <tab>standard-Task</tab> |
| | | <tab>standard-File</tab> |
| | | <tab>standard-Account</tab> |
| | | <tab>standard-Contact</tab> |
| | | <tab>standard-Campaign</tab> |
| | | <tab>standard-Dashboard</tab> |
| | | <tab>standard-report</tab> |
| | | <tab>standard-Feed</tab> |
| | | <tab>standard-CollaborationGroup</tab> |
| | | <tab>standard-Event</tab> |
| | | <tab>standard-OtherUserProfile</tab> |
| | | <tab>standard-Case</tab> |
| | | <tab>standard-Forecasting3</tab> |
| | | <tab>standard-EmailTemplate</tab> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | <tab>Complaint__c</tab> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | <tab>TransferApply__c</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>QuoteIrai__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <tabs>standard-home</tabs> |
| | | <tabs>standard-EinsteinInsights</tabs> |
| | | <tabs>standard-Opportunity</tabs> |
| | | <tabs>standard-Quote</tabs> |
| | | <tabs>standard-Lead</tabs> |
| | | <tabs>standard-Task</tabs> |
| | | <tabs>standard-File</tabs> |
| | | <tabs>standard-Account</tabs> |
| | | <tabs>standard-Contact</tabs> |
| | | <tabs>standard-Campaign</tabs> |
| | | <tabs>standard-Dashboard</tabs> |
| | | <tabs>standard-report</tabs> |
| | | <tabs>standard-Feed</tabs> |
| | | <tabs>standard-CollaborationGroup</tabs> |
| | | <tabs>standard-Event</tabs> |
| | | <tabs>standard-OtherUserProfile</tabs> |
| | | <tabs>standard-Case</tabs> |
| | | <tabs>standard-Forecasting3</tabs> |
| | | <tabs>standard-EmailTemplate</tabs> |
| | | <tabs>SolutionProjectRequirements__c</tabs> |
| | | <tabs>AssetMaintainHeader__c</tabs> |
| | | <tabs>Complaint__c</tabs> |
| | | <tabs>Maintenance_Product_Data__c</tabs> |
| | | <tabs>TransferApply__c</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | <uiType>Lightning</uiType> |
| | | <utilityBar>LightningSales_UtilityBar</utilityBar> |
| | | </CustomApplication> |
| | |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <formFactors>Small</formFactors> |
| | | <formFactors>Large</formFactors> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <label>Sales Console</label> |
| | | <navType>Console</navType> |
| | | <tab>standard-home</tab> |
| | | <tab>standard-Lead</tab> |
| | | <tab>standard-Account</tab> |
| | | <tab>standard-Contact</tab> |
| | | <tab>standard-Opportunity</tab> |
| | | <tab>standard-Campaign</tab> |
| | | <tab>standard-Task</tab> |
| | | <tab>standard-Event</tab> |
| | | <tab>standard-report</tab> |
| | | <tab>standard-Dashboard</tab> |
| | | <tab>standard-Feed</tab> |
| | | <tab>standard-CollaborationGroup</tab> |
| | | <tab>standard-File</tab> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | <tab>SI_Attachment__c</tab> |
| | | <tab>OPDPlan__c</tab> |
| | | <tab>SubAuthorized__c</tab> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | <tab>ReceivingNote__c</tab> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | <tab>Complaint__c</tab> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | <tab>TransferApply__c</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>QuoteIrai__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <tabs>standard-home</tabs> |
| | | <tabs>standard-Lead</tabs> |
| | | <tabs>standard-Account</tabs> |
| | | <tabs>standard-Contact</tabs> |
| | | <tabs>standard-Opportunity</tabs> |
| | | <tabs>standard-Campaign</tabs> |
| | | <tabs>standard-Task</tabs> |
| | | <tabs>standard-Event</tabs> |
| | | <tabs>standard-report</tabs> |
| | | <tabs>standard-Dashboard</tabs> |
| | | <tabs>standard-Feed</tabs> |
| | | <tabs>standard-CollaborationGroup</tabs> |
| | | <tabs>standard-File</tabs> |
| | | <tabs>IS_Opportunity_Demand__c</tabs> |
| | | <tabs>SI_Attachment__c</tabs> |
| | | <tabs>OPDPlan__c</tabs> |
| | | <tabs>SubAuthorized__c</tabs> |
| | | <tabs>OpportunitySpecialApply__c</tabs> |
| | | <tabs>ReceivingNote__c</tabs> |
| | | <tabs>ReceivingNoteDetail__c</tabs> |
| | | <tabs>SolutionProjectRequirements__c</tabs> |
| | | <tabs>AssetMaintainHeader__c</tabs> |
| | | <tabs>Complaint__c</tabs> |
| | | <tabs>Maintenance_Product_Data__c</tabs> |
| | | <tabs>TransferApply__c</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | <uiType>Lightning</uiType> |
| | | <utilityBar>LightningSalesConsole_UtilityBar</utilityBar> |
| | | <workspaceMappings> |
| | | <mapping> |
| | | <workspaceConfig> |
| | | <mappings> |
| | | <tab>Account_Delay_Apply__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Address__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Advance_Payment__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Complaint__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Consumable_order_details2__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>LogisticsInformation__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Monthly_Report__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ODS__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>OPDPlan__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>PromotionHead__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>QuoteIrai__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ReceivingNote__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SI_Attachment__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SearchPIContact</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SubAuthorized__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Tender_information__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>TransferApply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Account</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Campaign</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-CollaborationGroup</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Contact</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Dashboard</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Event</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Feed</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-File</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Lead</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Opportunity</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Task</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-home</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-report</tab> |
| | | </mapping> |
| | | </workspaceMappings> |
| | | </mappings> |
| | | </workspaceConfig> |
| | | </CustomApplication> |
| | |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <formFactors>Small</formFactors> |
| | | <formFactors>Large</formFactors> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <label>Service Console</label> |
| | | <navType>Console</navType> |
| | | <setupExperience>service</setupExperience> |
| | | <tab>standard-Case</tab> |
| | | <tab>standard-Contact</tab> |
| | | <tab>standard-Account</tab> |
| | | <tab>standard-report</tab> |
| | | <tab>standard-Dashboard</tab> |
| | | <tab>standard-home</tab> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | <tab>SI_Attachment__c</tab> |
| | | <tab>OPDPlan__c</tab> |
| | | <tab>SubAuthorized__c</tab> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | <tab>ReceivingNote__c</tab> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | <tab>Complaint__c</tab> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | <tab>TransferApply__c</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>QuoteIrai__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <tabs>standard-Case</tabs> |
| | | <tabs>standard-Contact</tabs> |
| | | <tabs>standard-Account</tabs> |
| | | <tabs>standard-report</tabs> |
| | | <tabs>standard-Dashboard</tabs> |
| | | <tabs>standard-home</tabs> |
| | | <tabs>IS_Opportunity_Demand__c</tabs> |
| | | <tabs>SI_Attachment__c</tabs> |
| | | <tabs>OPDPlan__c</tabs> |
| | | <tabs>SubAuthorized__c</tabs> |
| | | <tabs>OpportunitySpecialApply__c</tabs> |
| | | <tabs>ReceivingNote__c</tabs> |
| | | <tabs>ReceivingNoteDetail__c</tabs> |
| | | <tabs>SolutionProjectRequirements__c</tabs> |
| | | <tabs>AssetMaintainHeader__c</tabs> |
| | | <tabs>Complaint__c</tabs> |
| | | <tabs>Maintenance_Product_Data__c</tabs> |
| | | <tabs>TransferApply__c</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | <uiType>Lightning</uiType> |
| | | <utilityBar>LightningService_UtilityBar</utilityBar> |
| | | <workspaceMappings> |
| | | <mapping> |
| | | <workspaceConfig> |
| | | <mappings> |
| | | <tab>Account_Delay_Apply__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Address__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Advance_Payment__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Complaint__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Consumable_order_details2__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>LogisticsInformation__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Monthly_Report__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ODS__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>OPDPlan__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>PromotionHead__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>QuoteIrai__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ReceivingNote__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SI_Attachment__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SearchPIContact</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SubAuthorized__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Tender_information__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>TransferApply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Account</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Case</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Contact</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Dashboard</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-home</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-report</tab> |
| | | </mapping> |
| | | </workspaceMappings> |
| | | </mappings> |
| | | </workspaceConfig> |
| | | </CustomApplication> |
| | |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <defaultLandingTab>standard-home</defaultLandingTab> |
| | | <formFactors>Large</formFactors> |
| | | <tab>standard-Chatter</tab> |
| | | <tab>standard-UserProfile</tab> |
| | | <tab>standard-CollaborationGroup</tab> |
| | | <tab>standard-File</tab> |
| | | <tab>standard-Campaign</tab> |
| | | <tab>standard-Lead</tab> |
| | | <tab>standard-Contact</tab> |
| | | <tab>standard-Opportunity</tab> |
| | | <tab>standard-report</tab> |
| | | <tab>standard-Dashboard</tab> |
| | | <tab>Daily_Report__c</tab> |
| | | <tab>Report__c</tab> |
| | | <tab>Event__c</tab> |
| | | <tab>Equipment_Set__c</tab> |
| | | <tab>Bulletin_Board__c</tab> |
| | | <tab>Rental_Apply_Equipment_Set__c</tab> |
| | | <tab>Medical_expense_Request__c</tab> |
| | | <tab>QIS_Report__c</tab> |
| | | <tab>Product_Material__c</tab> |
| | | <tab>Shipment_address__c</tab> |
| | | <tab>standard-Quote</tab> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | <tab>SI_Attachment__c</tab> |
| | | <tab>Fixture_Set__c</tab> |
| | | <tab>Account_Number_of_target__c</tab> |
| | | <tab>OPDPlan__c</tab> |
| | | <tab>SubAuthorized__c</tab> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | <tab>ReceivingNote__c</tab> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | <tab>Complaint__c</tab> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | <tab>TransferApply__c</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>QuoteIrai__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <tabs>standard-Chatter</tabs> |
| | | <tabs>standard-UserProfile</tabs> |
| | | <tabs>standard-CollaborationGroup</tabs> |
| | | <tabs>standard-File</tabs> |
| | | <tabs>standard-Campaign</tabs> |
| | | <tabs>standard-Lead</tabs> |
| | | <tabs>standard-Contact</tabs> |
| | | <tabs>standard-Opportunity</tabs> |
| | | <tabs>standard-report</tabs> |
| | | <tabs>standard-Dashboard</tabs> |
| | | <tabs>Daily_Report__c</tabs> |
| | | <tabs>Report__c</tabs> |
| | | <tabs>Event__c</tabs> |
| | | <tabs>Equipment_Set__c</tabs> |
| | | <tabs>Bulletin_Board__c</tabs> |
| | | <tabs>Rental_Apply_Equipment_Set__c</tabs> |
| | | <tabs>Medical_expense_Request__c</tabs> |
| | | <tabs>QIS_Report__c</tabs> |
| | | <tabs>Product_Material__c</tabs> |
| | | <tabs>Shipment_address__c</tabs> |
| | | <tabs>standard-Quote</tabs> |
| | | <tabs>IS_Opportunity_Demand__c</tabs> |
| | | <tabs>SI_Attachment__c</tabs> |
| | | <tabs>Fixture_Set__c</tabs> |
| | | <tabs>Account_Number_of_target__c</tabs> |
| | | <tabs>OPDPlan__c</tabs> |
| | | <tabs>SubAuthorized__c</tabs> |
| | | <tabs>OpportunitySpecialApply__c</tabs> |
| | | <tabs>ReceivingNote__c</tabs> |
| | | <tabs>ReceivingNoteDetail__c</tabs> |
| | | <tabs>SolutionProjectRequirements__c</tabs> |
| | | <tabs>AssetMaintainHeader__c</tabs> |
| | | <tabs>Complaint__c</tabs> |
| | | <tabs>Maintenance_Product_Data__c</tabs> |
| | | <tabs>TransferApply__c</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>BringQuantityPurchaseRecord__c</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | </CustomApplication> |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <formFactors>Large</formFactors> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <label>Online Sales</label> |
| | | <navType>Standard</navType> |
| | | <tab>standard-OnlineSalesHome</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>QuoteIrai__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <tabs>standard-OnlineSalesHome</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | <uiType>Lightning</uiType> |
| | | </CustomApplication> |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <defaultLandingTab>standard-home</defaultLandingTab> |
| | | <tab>standard-Chatter</tab> |
| | | <tab>standard-UserProfile</tab> |
| | | <tab>standard-CollaborationGroup</tab> |
| | | <tab>standard-File</tab> |
| | | <tab>standard-Account</tab> |
| | | <tab>standard-Contact</tab> |
| | | <tab>standard-report</tab> |
| | | <tab>standard-Dashboard</tab> |
| | | <tab>Daily_Report__c</tab> |
| | | <tab>Report__c</tab> |
| | | <tab>Event__c</tab> |
| | | <tab>Equipment_Set__c</tab> |
| | | <tab>Bulletin_Board__c</tab> |
| | | <tab>Rental_Apply_Equipment_Set__c</tab> |
| | | <tab>Medical_expense_Request__c</tab> |
| | | <tab>QIS_Report__c</tab> |
| | | <tab>Product_Material__c</tab> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | <tab>SI_Attachment__c</tab> |
| | | <tab>OPDPlan__c</tab> |
| | | <tab>SubAuthorized__c</tab> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | <tab>ReceivingNote__c</tab> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | <tab>Complaint__c</tab> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | <tab>TransferApply__c</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>QuoteIrai__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <tab>New_Lead</tab> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <tabs>standard-Chatter</tabs> |
| | | <tabs>standard-UserProfile</tabs> |
| | | <tabs>standard-CollaborationGroup</tabs> |
| | | <tabs>standard-File</tabs> |
| | | <tabs>standard-Account</tabs> |
| | | <tabs>standard-Contact</tabs> |
| | | <tabs>standard-report</tabs> |
| | | <tabs>standard-Dashboard</tabs> |
| | | <tabs>Daily_Report__c</tabs> |
| | | <tabs>Report__c</tabs> |
| | | <tabs>Event__c</tabs> |
| | | <tabs>Equipment_Set__c</tabs> |
| | | <tabs>Bulletin_Board__c</tabs> |
| | | <tabs>Rental_Apply_Equipment_Set__c</tabs> |
| | | <tabs>Medical_expense_Request__c</tabs> |
| | | <tabs>QIS_Report__c</tabs> |
| | | <tabs>Product_Material__c</tabs> |
| | | <tabs>IS_Opportunity_Demand__c</tabs> |
| | | <tabs>SI_Attachment__c</tabs> |
| | | <tabs>OPDPlan__c</tabs> |
| | | <tabs>SubAuthorized__c</tabs> |
| | | <tabs>OpportunitySpecialApply__c</tabs> |
| | | <tabs>ReceivingNote__c</tabs> |
| | | <tabs>ReceivingNoteDetail__c</tabs> |
| | | <tabs>SolutionProjectRequirements__c</tabs> |
| | | <tabs>AssetMaintainHeader__c</tabs> |
| | | <tabs>Complaint__c</tabs> |
| | | <tabs>Maintenance_Product_Data__c</tabs> |
| | | <tabs>TransferApply__c</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | </CustomApplication> |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <defaultLandingTab>standard-home</defaultLandingTab> |
| | | <tab>standard-Chatter</tab> |
| | | <tab>standard-UserProfile</tab> |
| | | <tab>standard-CollaborationGroup</tab> |
| | | <tab>standard-File</tab> |
| | | <tab>standard-Lead</tab> |
| | | <tab>standard-Account</tab> |
| | | <tab>standard-Contact</tab> |
| | | <tab>standard-Opportunity</tab> |
| | | <tab>standard-report</tab> |
| | | <tab>standard-Dashboard</tab> |
| | | <tab>standard-Product2</tab> |
| | | <tab>standard-Forecasting3</tab> |
| | | <tab>Daily_Report__c</tab> |
| | | <tab>Report__c</tab> |
| | | <tab>Event__c</tab> |
| | | <tab>Equipment_Set__c</tab> |
| | | <tab>Bulletin_Board__c</tab> |
| | | <tab>Rental_Apply_Equipment_Set__c</tab> |
| | | <tab>Medical_expense_Request__c</tab> |
| | | <tab>QIS_Report__c</tab> |
| | | <tab>Product_Material__c</tab> |
| | | <tab>Shipment_address__c</tab> |
| | | <tab>standard-Quote</tab> |
| | | <tab>standard-WaveHome</tab> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | <tab>SI_Attachment__c</tab> |
| | | <tab>Account_Number_of_target__c</tab> |
| | | <tab>OPDPlan__c</tab> |
| | | <tab>SubAuthorized__c</tab> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | <tab>ReceivingNote__c</tab> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | <tab>Complaint__c</tab> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | <tab>TransferApply__c</tab> |
| | | <tab>Tender_information__c</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>QuoteIrai__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <tabs>standard-Chatter</tabs> |
| | | <tabs>standard-UserProfile</tabs> |
| | | <tabs>standard-CollaborationGroup</tabs> |
| | | <tabs>standard-File</tabs> |
| | | <tabs>standard-Lead</tabs> |
| | | <tabs>standard-Account</tabs> |
| | | <tabs>standard-Contact</tabs> |
| | | <tabs>standard-Opportunity</tabs> |
| | | <tabs>standard-report</tabs> |
| | | <tabs>standard-Dashboard</tabs> |
| | | <tabs>standard-Product2</tabs> |
| | | <tabs>standard-Forecasting3</tabs> |
| | | <tabs>Daily_Report__c</tabs> |
| | | <tabs>Report__c</tabs> |
| | | <tabs>Event__c</tabs> |
| | | <tabs>Equipment_Set__c</tabs> |
| | | <tabs>Bulletin_Board__c</tabs> |
| | | <tabs>Rental_Apply_Equipment_Set__c</tabs> |
| | | <tabs>Medical_expense_Request__c</tabs> |
| | | <tabs>QIS_Report__c</tabs> |
| | | <tabs>Product_Material__c</tabs> |
| | | <tabs>Shipment_address__c</tabs> |
| | | <tabs>standard-Quote</tabs> |
| | | <tabs>standard-WaveHome</tabs> |
| | | <tabs>IS_Opportunity_Demand__c</tabs> |
| | | <tabs>SI_Attachment__c</tabs> |
| | | <tabs>Account_Number_of_target__c</tabs> |
| | | <tabs>OPDPlan__c</tabs> |
| | | <tabs>SubAuthorized__c</tabs> |
| | | <tabs>OpportunitySpecialApply__c</tabs> |
| | | <tabs>ReceivingNote__c</tabs> |
| | | <tabs>ReceivingNoteDetail__c</tabs> |
| | | <tabs>SolutionProjectRequirements__c</tabs> |
| | | <tabs>AssetMaintainHeader__c</tabs> |
| | | <tabs>Complaint__c</tabs> |
| | | <tabs>Maintenance_Product_Data__c</tabs> |
| | | <tabs>TransferApply__c</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | </CustomApplication> |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <formFactors>Large</formFactors> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <label>Salesforce CMS</label> |
| | | <navType>Console</navType> |
| | | <tab>standard-CmsAuthorHome</tab> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | <tab>ReceivingNote__c</tab> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | <tab>standard-CmsChannel</tab> |
| | | <tab>standard-CmsWorkspaces</tab> |
| | | <tab>standard-CmsExperiences</tab> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | <tab>Complaint__c</tab> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | <tab>TransferApply__c</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>QuoteIrai__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <tabs>standard-CmsAuthorHome</tabs> |
| | | <tabs>OpportunitySpecialApply__c</tabs> |
| | | <tabs>ReceivingNote__c</tabs> |
| | | <tabs>ReceivingNoteDetail__c</tabs> |
| | | <tabs>standard-CmsChannel</tabs> |
| | | <tabs>standard-CmsWorkspaces</tabs> |
| | | <tabs>standard-CmsExperiences</tabs> |
| | | <tabs>SolutionProjectRequirements__c</tabs> |
| | | <tabs>AssetMaintainHeader__c</tabs> |
| | | <tabs>Complaint__c</tabs> |
| | | <tabs>Maintenance_Product_Data__c</tabs> |
| | | <tabs>TransferApply__c</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | <uiType>Lightning</uiType> |
| | | <workspaceMappings> |
| | | <mapping> |
| | | <workspaceConfig> |
| | | <mappings> |
| | | <tab>Account_Delay_Apply__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Address__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Advance_Payment__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Complaint__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Consumable_order_details2__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>LogisticsInformation__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Monthly_Report__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ODS__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>PromotionHead__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>QuoteIrai__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ReceivingNote__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SearchPIContact</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Tender_information__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>TransferApply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-CmsAuthorHome</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-CmsChannel</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-CmsExperiences</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-CmsWorkspaces</tab> |
| | | </mapping> |
| | | </workspaceMappings> |
| | | </mappings> |
| | | </workspaceConfig> |
| | | </CustomApplication> |
| | |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <defaultLandingTab>standard-home</defaultLandingTab> |
| | | <formFactors>Large</formFactors> |
| | | <tab>standard-Dashboard</tab> |
| | | <tab>standard-Account</tab> |
| | | <tab>Statu_Achievements__c</tab> |
| | | <tab>Maintenance_Contract__c</tab> |
| | | <tab>Repair__c</tab> |
| | | <tab>QIS_Report__c</tab> |
| | | <tab>Rental_Apply__c</tab> |
| | | <tab>Daily_Report__c</tab> |
| | | <tab>Report__c</tab> |
| | | <tab>Bulletin_Board__c</tab> |
| | | <tab>standard-report</tab> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | <tab>Complaint__c</tab> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | <tab>TransferApply__c</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>QuoteIrai__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <tabs>standard-Dashboard</tabs> |
| | | <tabs>standard-Account</tabs> |
| | | <tabs>Statu_Achievements__c</tabs> |
| | | <tabs>Maintenance_Contract__c</tabs> |
| | | <tabs>Repair__c</tabs> |
| | | <tabs>QIS_Report__c</tabs> |
| | | <tabs>Rental_Apply__c</tabs> |
| | | <tabs>Daily_Report__c</tabs> |
| | | <tabs>Report__c</tabs> |
| | | <tabs>Bulletin_Board__c</tabs> |
| | | <tabs>standard-report</tabs> |
| | | <tabs>AssetMaintainHeader__c</tabs> |
| | | <tabs>Complaint__c</tabs> |
| | | <tabs>Maintenance_Product_Data__c</tabs> |
| | | <tabs>TransferApply__c</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | </CustomApplication> |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata"> |
| | | <consoleConfig> |
| | | <detailPageRefreshMethod>none</detailPageRefreshMethod> |
| | | <keyboardShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_CONSOLE</action> |
| | | <active>true</active> |
| | | <keyCommand>ESC</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_NAVIGATOR_TAB</action> |
| | | <active>true</active> |
| | | <keyCommand>V</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_DETAIL_VIEW</action> |
| | | <active>true</active> |
| | | <keyCommand>SHIFT+S</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_PRIMARY_TAB_PANEL</action> |
| | | <active>true</active> |
| | | <keyCommand>P</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_SUBTAB_PANEL</action> |
| | | <active>true</active> |
| | | <keyCommand>S</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_LIST_VIEW</action> |
| | | <active>true</active> |
| | | <keyCommand>N</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_FIRST_LIST_VIEW</action> |
| | | <active>true</active> |
| | | <keyCommand>SHIFT+F</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_SEARCH_INPUT</action> |
| | | <active>true</active> |
| | | <keyCommand>R</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>MOVE_LEFT</action> |
| | | <active>true</active> |
| | | <keyCommand>LEFT ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>MOVE_RIGHT</action> |
| | | <active>true</active> |
| | | <keyCommand>RIGHT ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>UP_ARROW</action> |
| | | <active>true</active> |
| | | <keyCommand>UP ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>DOWN_ARROW</action> |
| | | <active>true</active> |
| | | <keyCommand>DOWN ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>OPEN_TAB_SCROLLER_MENU</action> |
| | | <active>true</active> |
| | | <keyCommand>D</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>OPEN_TAB</action> |
| | | <active>true</active> |
| | | <keyCommand>T</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>CLOSE_TAB</action> |
| | | <active>true</active> |
| | | <keyCommand>C</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>REFRESH_TAB</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+R</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>ENTER</action> |
| | | <active>true</active> |
| | | <keyCommand>ENTER</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>EDIT</action> |
| | | <active>true</active> |
| | | <keyCommand>E</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>SAVE</action> |
| | | <active>true</active> |
| | | <keyCommand>CTRL+S</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>CONSOLE_LINK_DIALOG</action> |
| | | <active>false</active> |
| | | <keyCommand>U</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>HOTKEYS_PANEL</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+K</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_MACRO</action> |
| | | <active>false</active> |
| | | <keyCommand>M</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>FOCUS_FOOTER_PANEL</action> |
| | | <active>false</active> |
| | | <keyCommand>F</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>TOGGLE_LIST_VIEW</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+N</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>TOGGLE_LEFT_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+LEFT ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>TOGGLE_RIGHT_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+RIGHT ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>TOGGLE_TOP_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+UP ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>TOGGLE_BOTTOM_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+DOWN ARROW</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>TOGGLE_APP_LEVEL_COMPONENTS</action> |
| | | <active>false</active> |
| | | <keyCommand>Z</keyCommand> |
| | | </defaultShortcuts> |
| | | <defaultShortcuts> |
| | | <action>REOPEN_LAST_TAB</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+C</keyCommand> |
| | | </defaultShortcuts> |
| | | </keyboardShortcuts> |
| | | <listPlacement> |
| | | <location>full</location> |
| | | </listPlacement> |
| | | <listRefreshMethod>none</listRefreshMethod> |
| | | </consoleConfig> |
| | | <defaultLandingTab>standard-home</defaultLandingTab> |
| | | <detailPageRefreshMethod>none</detailPageRefreshMethod> |
| | | <enableCustomizeMyTabs>false</enableCustomizeMyTabs> |
| | | <enableKeyboardShortcuts>true</enableKeyboardShortcuts> |
| | | <enableListViewHover>true</enableListViewHover> |
| | | <enableListViewReskin>true</enableListViewReskin> |
| | | <enableMultiMonitorComponents>true</enableMultiMonitorComponents> |
| | | <enablePinTabs>true</enablePinTabs> |
| | | <enableTabHover>false</enableTabHover> |
| | | <enableTabLimits>false</enableTabLimits> |
| | | <isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled> |
| | | <isNavPersonalizationDisabled>false</isNavPersonalizationDisabled> |
| | | <isServiceCloudConsole>true</isServiceCloudConsole> |
| | | <keyboardShortcuts> |
| | | <defaultShortcut> |
| | | <action>FOCUS_CONSOLE</action> |
| | | <active>true</active> |
| | | <keyCommand>ESC</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_NAVIGATOR_TAB</action> |
| | | <active>true</active> |
| | | <keyCommand>V</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_DETAIL_VIEW</action> |
| | | <active>true</active> |
| | | <keyCommand>SHIFT+S</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_PRIMARY_TAB_PANEL</action> |
| | | <active>true</active> |
| | | <keyCommand>P</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_SUBTAB_PANEL</action> |
| | | <active>true</active> |
| | | <keyCommand>S</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_LIST_VIEW</action> |
| | | <active>true</active> |
| | | <keyCommand>N</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_FIRST_LIST_VIEW</action> |
| | | <active>true</active> |
| | | <keyCommand>SHIFT+F</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_SEARCH_INPUT</action> |
| | | <active>true</active> |
| | | <keyCommand>R</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>MOVE_LEFT</action> |
| | | <active>true</active> |
| | | <keyCommand>LEFT ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>MOVE_RIGHT</action> |
| | | <active>true</active> |
| | | <keyCommand>RIGHT ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>UP_ARROW</action> |
| | | <active>true</active> |
| | | <keyCommand>UP ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>DOWN_ARROW</action> |
| | | <active>true</active> |
| | | <keyCommand>DOWN ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>OPEN_TAB_SCROLLER_MENU</action> |
| | | <active>true</active> |
| | | <keyCommand>D</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>OPEN_TAB</action> |
| | | <active>true</active> |
| | | <keyCommand>T</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>CLOSE_TAB</action> |
| | | <active>true</active> |
| | | <keyCommand>C</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>REFRESH_TAB</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+R</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>ENTER</action> |
| | | <active>true</active> |
| | | <keyCommand>ENTER</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>EDIT</action> |
| | | <active>true</active> |
| | | <keyCommand>E</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>SAVE</action> |
| | | <active>true</active> |
| | | <keyCommand>CTRL+S</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>CONSOLE_LINK_DIALOG</action> |
| | | <active>false</active> |
| | | <keyCommand>U</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>HOTKEYS_PANEL</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+K</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_MACRO</action> |
| | | <active>false</active> |
| | | <keyCommand>M</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>FOCUS_FOOTER_PANEL</action> |
| | | <active>false</active> |
| | | <keyCommand>F</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>TOGGLE_LIST_VIEW</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+N</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>TOGGLE_LEFT_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+LEFT ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>TOGGLE_RIGHT_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+RIGHT ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>TOGGLE_TOP_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+UP ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>TOGGLE_BOTTOM_SIDEBAR</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+DOWN ARROW</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>TOGGLE_APP_LEVEL_COMPONENTS</action> |
| | | <active>false</active> |
| | | <keyCommand>Z</keyCommand> |
| | | </defaultShortcut> |
| | | <defaultShortcut> |
| | | <action>REOPEN_LAST_TAB</action> |
| | | <active>false</active> |
| | | <keyCommand>SHIFT+C</keyCommand> |
| | | </defaultShortcut> |
| | | </keyboardShortcuts> |
| | | <listPlacement> |
| | | <location>full</location> |
| | | </listPlacement> |
| | | <listRefreshMethod>none</listRefreshMethod> |
| | | <saveUserSessions>true</saveUserSessions> |
| | | <tab>standard-Account</tab> |
| | | <tab>standard-Contact</tab> |
| | | <tab>standard-Case</tab> |
| | | <tab>Equipment_Set__c</tab> |
| | | <tab>Bulletin_Board__c</tab> |
| | | <tab>Rental_Apply_Equipment_Set__c</tab> |
| | | <tab>Medical_expense_Request__c</tab> |
| | | <tab>QIS_Report__c</tab> |
| | | <tab>Product_Material__c</tab> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | <tab>SI_Attachment__c</tab> |
| | | <tab>OPDPlan__c</tab> |
| | | <tab>SubAuthorized__c</tab> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | <tab>ReceivingNote__c</tab> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | <tab>Complaint__c</tab> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | <tab>TransferApply__c</tab> |
| | | <tab>Address__c</tab> |
| | | <tab>QuoteIrai__c</tab> |
| | | <tab>PromotionHead__c</tab> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | <tab>ODS__c</tab> |
| | | <tab>Monthly_Report__c</tab> |
| | | <tab>Advance_Payment__c</tab> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | <workspaceMappings> |
| | | <mapping> |
| | | <preferences> |
| | | <enableCustomizeMyTabs>false</enableCustomizeMyTabs> |
| | | <enableKeyboardShortcuts>true</enableKeyboardShortcuts> |
| | | <enableListViewHover>true</enableListViewHover> |
| | | <enableListViewReskin>true</enableListViewReskin> |
| | | <enableMultiMonitorComponents>true</enableMultiMonitorComponents> |
| | | <enablePinTabs>true</enablePinTabs> |
| | | <enableTabHover>false</enableTabHover> |
| | | <enableTabLimits>false</enableTabLimits> |
| | | <saveUserSessions>true</saveUserSessions> |
| | | </preferences> |
| | | <tabs>standard-Account</tabs> |
| | | <tabs>standard-Contact</tabs> |
| | | <tabs>standard-Case</tabs> |
| | | <tabs>Equipment_Set__c</tabs> |
| | | <tabs>Bulletin_Board__c</tabs> |
| | | <tabs>Rental_Apply_Equipment_Set__c</tabs> |
| | | <tabs>Medical_expense_Request__c</tabs> |
| | | <tabs>QIS_Report__c</tabs> |
| | | <tabs>Product_Material__c</tabs> |
| | | <tabs>IS_Opportunity_Demand__c</tabs> |
| | | <tabs>SI_Attachment__c</tabs> |
| | | <tabs>OPDPlan__c</tabs> |
| | | <tabs>SubAuthorized__c</tabs> |
| | | <tabs>OpportunitySpecialApply__c</tabs> |
| | | <tabs>ReceivingNote__c</tabs> |
| | | <tabs>ReceivingNoteDetail__c</tabs> |
| | | <tabs>SolutionProjectRequirements__c</tabs> |
| | | <tabs>AssetMaintainHeader__c</tabs> |
| | | <tabs>Complaint__c</tabs> |
| | | <tabs>Maintenance_Product_Data__c</tabs> |
| | | <tabs>TransferApply__c</tabs> |
| | | <tabs>Tender_information__c</tabs> |
| | | <tabs>Address__c</tabs> |
| | | <tabs>ODS__c</tabs> |
| | | <tabs>Consumable_order_details2__c</tabs> |
| | | <tabs>LogisticsInformation__c</tabs> |
| | | <tabs>SearchPIContact</tabs> |
| | | <tabs>Account_Delay_Apply__c</tabs> |
| | | <workspaceConfig> |
| | | <mappings> |
| | | <tab>Account_Delay_Apply__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Address__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Advance_Payment__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>AssetMaintainHeader__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Bulletin_Board__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Complaint__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Enquiry_No_Bidding_Apply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Consumable_order_details2__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Equipment_Set__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>IS_Opportunity_Demand__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>LogisticsInformation__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Maintenance_Product_Data__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Medical_expense_Request__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Monthly_Report__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ODS__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>OPDPlan__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>OpportunitySpecialApply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>Payment_Maintenance_Contract__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Product_Material__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>PromotionHead__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>QIS_Report__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>QuoteIrai__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ReceivingNoteDetail__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>ReceivingNote__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Rental_Apply_Equipment_Set__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | <tab>RetrospectiveWeeklyReport</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SI_Attachment__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SearchPIContact</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SolutionProjectRequirements__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>SubAuthorized__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>Tender_information__c</tab> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>TransferApply__c</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <tab>standard-Account</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <fieldName>AccountId</fieldName> |
| | | <tab>standard-Case</tab> |
| | | </mapping> |
| | | <mapping> |
| | | </mappings> |
| | | <mappings> |
| | | <fieldName>AccountId</fieldName> |
| | | <tab>standard-Contact</tab> |
| | | </mapping> |
| | | </workspaceMappings> |
| | | </mappings> |
| | | </workspaceConfig> |
| | | </CustomApplication> |
| | |
| | | <aura:attribute name="hosStr" type="String"/> |
| | | <aura:attribute name="conStr" type="String"/> |
| | | <aura:attribute name="filedsmap" type="Map"/> |
| | | |
| | | <aura:attribute name="awsdata" type="Map"/> |
| | | <aura:attribute name="temp_aws_id" type="String"/> |
| | | <aura:attribute name="staticResource" type="Map"/> |
| | | |
| | | <ltng:require scripts="{! $Resource.jquery183minjs }" /> |
| | | <ltng:require scripts="{! $Resource.AWSService+'/AWSService.js' }" afterScriptsLoaded="{!c.scriptsLoaded}" /> |
| | | <aura:renderIf isTrue="{!v.login}"> |
| | | <div class="slds-spinner_container height100vh"> |
| | | <div class="slds-spinner--brand slds-spinner slds-spinner--medium" role="alert"> |
| | |
| | | <th scope="col" style = "width:5px;"> |
| | | <div class="slds-truncate" title="{!v.filedsmap.Hospital_Name__c}">{!v.filedsmap.Hospital_Name__c}</div> |
| | | </th> |
| | | <th scope="col"> |
| | | <th scope="col" style="width: 150px;"> |
| | | <div class="slds-truncate" title="{!v.filedsmap.Department_Cateogy_F__c}">{!v.filedsmap.Department_Cateogy_F__c}</div> |
| | | </th> |
| | | <!-- 精琢科技 zxk SWAG-C8F8TU end --> |
| | | <!-- <th scope="col"> |
| | | <div class="slds-truncate" title="{!v.filedsmap.Hospital_DC_Name__c}">{!v.filedsmap.Hospital_DC_Name__c}</div> |
| | | </th> --> |
| | | <th scope="col"> |
| | | <th scope="col" style="width: 150px;"> |
| | | <div class="slds-truncate" title="{!v.filedsmap.Type__c}">{!v.filedsmap.Type__c}</div> |
| | | </th> |
| | | <th scope="col"> |
| | | <th scope="col" style="width: 150px;"> |
| | | <div class="slds-truncate" title="{!v.filedsmap.Doctor_Division1__c}">{!v.filedsmap.Doctor_Division1__c}</div> |
| | | </th> |
| | | <th scope="col"> |
| | |
| | | <aura:iteration items="{!v.accounts}" var="item" indexVar="index"> |
| | | <tr> |
| | | <th scope="row" data-label="Opportunity Name"> |
| | | <div class="slds-truncate" title="{!item.Name}"><a href="{!'/partner/s/agency-contact/' + item.Id}">{!item.Name}</a></div> |
| | | <aura:set attribute="temp_aws_id" value="{! item.AWS_Data_Id__c }" /> |
| | | |
| | | <div class="slds-truncate"> |
| | | <a href="{!'/partner/s/agency-contact/' + item.Id}" style="position: relative;"> |
| | | <span class="encrypt">{!item.Name}</span> |
| | | <span class="decrypt">{!item.awsdata.name}</span> |
| | | </a> |
| | | </div> |
| | | </th> |
| | | <!-- 精琢科技 zxk SWAG-C8F8TU start --> |
| | | <td data-label="Account Name"> |
| | |
| | | </td> --> |
| | | |
| | | <td data-label="Close Date"> |
| | | <div class="slds-truncate" title="{!item.Type__c}">{!item.Type__c}</div> |
| | | <div class="slds-truncate" title="{!item.Type__c}"> |
| | | <span class="encrypt">{!item.Type__c}</span> |
| | | <span class="decrypt">{!item.awsdata.type}</span> |
| | | </div> |
| | | </td> |
| | | <td data-label="Stage"> |
| | | <div class="slds-truncate" title="{!item.Doctor_Division1__c}">{!item.Doctor_Division1__c}</div> |
| | | <div class="slds-truncate" title="{!item.Doctor_Division1__c}"> |
| | | <span class="encrypt">{!item.Doctor_Division1__c}</span> |
| | | <span class="decrypt">{!item.awsdata.doctorDivision1}</span> |
| | | </div> |
| | | </td> |
| | | <td data-label="IsOlympusContact__c"> |
| | | <ui:outputCheckbox value="{!item.IsOlympusContact__c}" /> |
| | |
| | | .THIS.contents_wrapper { |
| | | padding-top: 10px; |
| | | } |
| | | |
| | | .THIS tr .decrypt{ |
| | | /* position: absolute; |
| | | top: 0; |
| | | left: 100%; |
| | | display: none; |
| | | text-align: left; |
| | | padding-left: 5px; */ |
| | | display: none; |
| | | } |
| | | |
| | | .THIS tr:hover .decrypt{ |
| | | display: unset; |
| | | } |
| | | |
| | | .THIS tr:hover .encrypt{ |
| | | display: none; |
| | | } |
| | |
| | | clearContact: function(component, event, helper) { |
| | | helper.clearContact(component, event, helper); |
| | | }, |
| | | scriptsLoaded:function(component, event, helper) { |
| | | // AWSService.logFun = helper.saveLog; |
| | | // AWSService.component = component; |
| | | } |
| | | }) |
| | |
| | | ({ |
| | | doinit : function(component, event, helper) { |
| | | component.set('v.login',true); |
| | | |
| | | component.set("v.awsdata",{}); |
| | | |
| | | var action = component.get("c.getfiledsmap"); |
| | | action.setCallback(this, function(response) { |
| | | var state = response.getState(); |
| | | if(state === "SUCCESS") { |
| | | var res = response.getReturnValue(); |
| | | |
| | | component.set("v.filedsmap", res); |
| | | } else if (state === "ERROR") { |
| | | var errors = response.getError(); |
| | |
| | | if(state === "SUCCESS") { |
| | | var acList = response.getReturnValue(); |
| | | component.set("v.accounts", acList); |
| | | component.set('v.login',false); |
| | | helper.Decrypt(component,helper,function(){ |
| | | component.set('v.login',false); |
| | | }) |
| | | |
| | | |
| | | } else if (state === "ERROR") { |
| | | var errors = response.getError(); |
| | | var toastEvent = $A.get("e.force:showToast"); |
| | |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action2); |
| | | |
| | | |
| | | var action3 = component.get("c.GetConfig"); |
| | | action3.setCallback(this, function(response) { |
| | | var state = response.getState(); |
| | | if(state === "SUCCESS") { |
| | | var res = response.getReturnValue(); |
| | | //AWSService.sfSessionId = res.sessionId; |
| | | component.set("v.staticResource",JSON.parse(res.staticResource)); |
| | | $A.enqueueAction(action2); |
| | | |
| | | } else if (state === "ERROR") { |
| | | var errors = response.getError(); |
| | | var toastEvent = $A.get("e.force:showToast"); |
| | | toastEvent.setParams({ |
| | | "title": "错误", |
| | | "type":"error", |
| | | "message": errors[0].message |
| | | }); |
| | | toastEvent.fire(); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action3); |
| | | |
| | | |
| | | }, |
| | | |
| | | clearContact: function(component, event, helper) { |
| | |
| | | component.set('v.login',true); |
| | | var hosStr = component.get("v.hosStr"); |
| | | var conStr = component.get("v.conStr"); |
| | | var action = component.get("c.searchAccounts"); |
| | | action.setParams({"hosStr": hosStr, "conStr": conStr}); |
| | | |
| | | var action = component.get("c.searchAccounts2"); |
| | | let awsdata = component.get("v.awsdata"); |
| | | let staticResource = component.get("v.staticResource"); |
| | | action.setCallback(this, function(response) { |
| | | var state = response.getState(); |
| | | if(state === "SUCCESS") { |
| | | var acList = response.getReturnValue(); |
| | | component.set("v.accounts", acList); |
| | | component.set('v.login',false); |
| | | helper.Decrypt(component,helper,function(){ |
| | | component.set('v.login',false); |
| | | }) |
| | | } else if (state === "ERROR") { |
| | | var errors = response.getError(); |
| | | var toastEvent = $A.get("e.force:showToast"); |
| | |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | |
| | | if (conStr) { |
| | | AWSService.search(staticResource.searchUrl,JSON.stringify({ |
| | | "name":conStr |
| | | }),function(data){ |
| | | $A.getCallback(function(){ |
| | | let dataIds = []; |
| | | if(data.object && data.object.length > 0){ |
| | | for(let d of data.object){ |
| | | if(d.dataId){ |
| | | dataIds.push(d.dataId); |
| | | awsdata[d.dataId] = d; |
| | | } |
| | | } |
| | | } |
| | | |
| | | action.setParams({"hosStr": hosStr, awsids:dataIds}); |
| | | $A.enqueueAction(action); |
| | | })() |
| | | |
| | | },staticResource.token); |
| | | }else{ |
| | | action.setParams({"hosStr": hosStr}); |
| | | $A.enqueueAction(action); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | }, |
| | | Decrypt :function(component, helper, callback){ |
| | | let awsdata = component.get("v.awsdata"); |
| | | let need_query = []; |
| | | let acList = component.get("v.accounts"); |
| | | let staticResource = component.get("v.staticResource"); |
| | | for (const acc of acList) { |
| | | if(acc.AWS_Data_Id__c && |
| | | (!awsdata.hasOwnProperty(acc.AWS_Data_Id__c) || !awsdata[acc.AWS_Data_Id__c]) |
| | | ){ |
| | | need_query.push(acc.AWS_Data_Id__c); |
| | | } |
| | | } |
| | | let Foo = function(){ |
| | | for (const acc of acList) { |
| | | if(acc.AWS_Data_Id__c && awsdata.hasOwnProperty(acc.AWS_Data_Id__c)){ |
| | | acc.awsdata = awsdata[acc.AWS_Data_Id__c]; |
| | | } |
| | | } |
| | | component.set("v.accounts", acList); |
| | | if(callback)callback(); |
| | | } |
| | | |
| | | if(need_query.length>0){ |
| | | AWSService.search(staticResource.searchUrl,JSON.stringify({ |
| | | "dataIds":need_query |
| | | }),function(data){ |
| | | $A.getCallback(function(){ |
| | | if(data.object && data.object.length > 0){ |
| | | for(let d of data.object){ |
| | | if(d.dataId){ |
| | | awsdata[d.dataId] = d; |
| | | } |
| | | } |
| | | } |
| | | |
| | | Foo(); |
| | | })() |
| | | |
| | | },staticResource.token); |
| | | }else{ |
| | | Foo(); |
| | | } |
| | | }, |
| | | saveLog:function(component,module,url,request,response,status){ |
| | | var action = component.get("c.SaveLog"); |
| | | action.setParams({ |
| | | "module": hosStr, |
| | | "content": content, |
| | | "status": status, |
| | | "respMsg": respMsg |
| | | }); |
| | | |
| | | $A.enqueueAction(action); |
| | | } |
| | | }) |
| | |
| | | <!-- |
| | | * @Author: Thhto 997058689@qq.com |
| | | * @Date: 2022-07-08 10:47:25 |
| | | * @LastEditors: Thhto 997058689@qq.com |
| | | * @LastEditTime: 2023-01-30 16:21:38 |
| | | * @FilePath: \ceshihuanj\force-app\main\default\aura\DealerPersonnelInformationImport\DealerPersonnelInformationImport.cmp |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | | <aura:component controller="DealerPersonnelController" |
| | | implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,force:lightningQuickAction,forceCommunity:availableForAllPageTypes" |
| | | access="global"> |
| | |
| | | </aura:renderIf> |
| | | <!-- 批量添加周报 start--> |
| | | <div class="slds-modal slds-fade-in-open slds-hide" aura:id="errorDiv" style="z-index: 10001"> |
| | | <ui:inputText aura:id="articleURL" /> |
| | | <!-- <ui:inputText aura:id="articleURL" /> --> |
| | | <div class="demo-only" style="height: 8rem;"> |
| | | <div class="slds-notify_container slds-is-relative"> |
| | | <div class="slds-notify slds-notify_toast slds-theme_error" role="status"> |
| | |
| | | class="slds-notify__content slds-m-left_small slds-align_absolute-center slds-m-left_xx-large"> |
| | | <lightning:icon alternativeText="error" iconName="utility:error" size="small" |
| | | class="buttonColor slds-m-right_small" /> |
| | | <h2 class="slds-text-heading_small ">{!v.errorMessage}</h2> |
| | | <!-- DB202301262139 SFDC经销商人员导入功能改进 start --> |
| | | <!-- <h2 class="slds-text-heading_small ">{!v.errorMessage}</h2> --> |
| | | <pre class="slds-text-heading_small ">{!v.errorMessage}</pre> |
| | | <!-- DB202301262139 SFDC经销商人员导入功能改进 end --> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="slds-modal slds-fade-in-open slds-hide" aura:id="successDiv01"> |
| | | <ui:inputText aura:id="articleURL" /> |
| | | <!-- <ui:inputText aura:id="articleURL" /> --> |
| | | <div class="demo-only" style="height: 8rem;"> |
| | | <div class="slds-notify_container slds-is-relative"> |
| | | <div class="slds-notify slds-notify_toast slds-theme_success" role="alert"> |
| | |
| | | if (state === "SUCCESS") { |
| | | var res = response.getReturnValue(); |
| | | var res1 = ''; |
| | | debugger; |
| | | if (res != 'success') { |
| | | var ress = res.split('='); |
| | | console.log(ress); |
| | |
| | | <aura:attribute name="StageName__c_o" type="String" /> |
| | | <aura:attribute name="fieldsmap" type="Map" /> |
| | | <aura:attribute name="AgencyReportMap" type="Boolean" default="false" /> |
| | | <!-- 周报分类 --> |
| | | <!-- 日报分类 --> |
| | | |
| | | <aura:attribute name="alldata" type="List" /> |
| | | <aura:attribute name="setdoctorlisthos" type="Boolean" default="false" /> |
| | | <aura:attribute name="allselectlist" type="Map" /> |
| | | <aura:attribute name="doclist" type="List" /> |
| | | <aura:attribute name="docmap" type="Map" /> |
| | |
| | | <!-- //医院 点选需要 --> |
| | | <aura:attribute name="hospital" type="string" default="" /> |
| | | <aura:attribute name="hospitalId" type="string" default="" /> |
| | | <aura:attribute name="hospitals" type="string" default="" /> |
| | | <aura:attribute name="hospitalLinkId" type="string" default="" /> |
| | | <aura:handler name="change" value="{!v.hospital}" action="{!c.hosChange}" /> |
| | | <aura:attribute name="hospitalList" type="Map" /> |
| | | <!-- 使用产品1(产品型号) --> |
| | | <aura:attribute name="UseProduct1" type="string" default="" /> |
| | | <aura:attribute name="UseProduct1s" type="string" default="" /> |
| | | <aura:handler name="change" value="{!v.UseProduct1}" action="{!c.UseProduct1Change}" /> |
| | | <aura:attribute name="UseProduct1List" type="Map" /> |
| | | <aura:attribute name="UseProduct1Id" type="string" default="" /> |
| | | <!-- 使用产品2 --> |
| | | <aura:attribute name="UseProduct2" type="string" default="" /> |
| | | <aura:attribute name="UseProduct2s" type="string" default="" /> |
| | | <aura:handler name="change" value="{!v.UseProduct2}" action="{!c.UseProduct2Change}" /> |
| | | <aura:attribute name="UseProduct2List" type="Map" /> |
| | | <aura:attribute name="UseProduct2Id" type="string" default="" /> |
| | | <!-- 使用产品3 --> |
| | | <aura:attribute name="UseProduct3" type="string" default="" /> |
| | | <aura:attribute name="UseProduct3s" type="string" default="" /> |
| | | <aura:handler name="change" value="{!v.UseProduct3}" action="{!c.UseProduct3Change}" /> |
| | | <aura:attribute name="UseProduct3List" type="Map" /> |
| | | <aura:attribute name="UseProduct3Id" type="string" default="" /> |
| | | |
| | | <!--SWAG-CF58C3 fy start --> |
| | | <aura:attribute name="AWStoken" type="String"/> |
| | | <aura:attribute name="AWSsearch" type="String"/> |
| | | <aura:attribute name="AWSinsert" type="String"/> |
| | | <aura:attribute name="AWStransactionURL" type="String"/> |
| | | <aura:attribute name="AWSDoctor2Map" type="String"/> |
| | | <aura:attribute name="awsurl" type="Map"/> |
| | | <aura:attribute name="contactawsurl" type="Map"/> |
| | | <aura:attribute name="allselectlistAgencyPerson" type="Map"/> |
| | | <!--SWAG-CF58C3 fy end --> |
| | | |
| | | |
| | | <aura:attribute name="doctor_list" type="Map" /> |
| | |
| | | <aura:attribute name="select_report_data" type="Map" /> |
| | | <aura:attribute name="select_report_data_radio" type="Map" /> |
| | | <aura:attribute name="default_select_doctor_id" type="String" /> |
| | | <aura:attribute name="default_select_doctor_id2" type="String" /> |
| | | <aura:attribute name="default_select_opportunity_id" type="String" /> |
| | | <aura:attribute name="report_count" type="Integer" /> |
| | | <aura:attribute name="dialog_type" type="String" /> |
| | |
| | | <aura:attribute name="confirm_status" type="Integer" default="0" /> |
| | | <aura:attribute name="modal_confirm_title" type="String" /> |
| | | <aura:attribute name="modal_confirm_text" type="String" /> |
| | | <!-- <aura:attribute name="new_falg" type="String" /> --> |
| | | <!-- fy --> |
| | | <aura:attribute name="UserProType" type="String" /> |
| | | <!-- 科室 --> |
| | | <aura:attribute name="opportunity_cfilter" type="String" /> |
| | | <aura:attribute name="update_select_report_data_id" type="String" default="" /> |
| | | <!-- 批量添加周报 start--> |
| | | <!-- 批量添加日报 start--> |
| | | <aura:attribute name="reports_date" type="List" /> |
| | | <aura:attribute name="TableContent" type="String" description=" Show the Result class" /> |
| | | <aura:attribute name="TableContent2" type="String" description=" Show the Result class" /> |
| | |
| | | <aura:attribute name="NumOfRecords" type="Integer" default="1000" /> |
| | | <aura:attribute name="showMain" type="Boolean" default="true" /> |
| | | <aura:attribute name="IsEventDefault" type="Boolean" default="true" /> |
| | | <!-- 批量添加周报 end--> |
| | | |
| | | <aura:attribute name="PIConfig" type="Map"/> |
| | | |
| | | <ltng:require scripts="{! $Resource.AWSService+'/AWSService.js' }" /> |
| | | <ltng:require scripts="{! $Resource.jquery183minjs }" /> |
| | | |
| | | <!-- 批量添加日报 end--> |
| | | <!--ロード中...--> |
| | | <aura:renderIf isTrue="{!v.login}"> |
| | | <div class="slds-spinner_container height100vh"> |
| | |
| | | </aura:renderIf> |
| | | <div aura:id="report" id="report" class="contents_wrapper"> |
| | | <div class="slds-grid slds-wrap slds-grid--pull-padded"> |
| | | <div style="width: 230px;"></div> |
| | | <div style="width: 200px;"></div> |
| | | <div |
| | | class="tr mt5 slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-12 slds-large-size--1-of-12"> |
| | | 周 |
| | |
| | | <ui:inputSelect aura:id="select_agency_person" class="slds-select agency_person_select" |
| | | change="{!c.select_agency_change}" /> |
| | | </div> |
| | | <div style="width: 200px;"> |
| | | <div style="width: 100px;"> |
| | | </div> |
| | | <div class="tr slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--2-of-12 slds-large-size--2-of-12" |
| | | style="display: contents;"> |
| | | <ui:button aura:id="new_button" label="新建" press="{!c.new_report}" /> |
| | | </div> |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--2-of-12 slds-large-size--2-of-12"> |
| | | <div style="width: 350px;" class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--2-of-12 slds-large-size--2-of-12"> |
| | | <ui:button aura:id="copy_button" label="复制" press="{!c.copy_button}" disabled="true" /> |
| | | <ui:button aura:id="delete_button" label="删除" press="{!c.delete_button}" disabled="true"/> |
| | | <ui:button aura:id="import" label="导入" press="{!c.import}" /> |
| | | <ui:button aura:id="export" label="导出" press="{!c.export_condition}" /> |
| | | <ui:button aura:id="returnbutton" label="返回" press="{!c.return_main_page}" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <!-- {!v.fieldsmap.Department_Cateogy__c} 科室--> |
| | | </th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <span class="slds-truncate" title="Name">医院人员</span> |
| | | <!-- {!v.fieldsmap.doctor2__c} 医院人员 --> |
| | | <span class="slds-truncate" title="Name">拜访人</span> |
| | | <!-- {!v.fieldsmap.doctor2__c} 拜访人 --> |
| | | </th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.DealerPersonnel__c}</span> |
| | | <!-- {!v.fieldsmap.visitor_title__c} 职位--> |
| | | </th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.WorkMark__c}</span> |
| | | <!-- {!v.fieldsmap.visitor_title__c} 职位--> |
| | | </th> |
| | | </tr> |
| | |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span class="slds-truncate" |
| | | title="{!item.Department_Cateogy__c}">{!item.Department_Cateogy__c}</span> |
| | | title="{!item.Department_Cateogy_text__c}">{!item.Department_Cateogy_text__c}</span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span class="slds-truncate" |
| | | title="{!item.doctor2__r.Name}">{!item.doctor2__r.Name}</span> |
| | | title="{!item.doctor2__r.Name}"> |
| | | <span class="encrypt">{!item.doctor2__r.Name}</span> |
| | | <span class="decrypt">{!item.doctor2__r.awsdata.name}</span> |
| | | </span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | |
| | | <span class="slds-truncate" |
| | | title="{!item.DealerPersonnel__r.Name}">{!item.DealerPersonnel__r.Name}</span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit" > |
| | | <span class="slds-grid slds-grid--align-spread" > |
| | | <span class="slds-truncate" |
| | | title="{!item.WorkMark__c}" > |
| | | <lightning:input type="checkbox" checked="{!item.WorkMark__c}" disabled="true"/> |
| | | </span> |
| | | </span> |
| | | </td> |
| | | </tr> |
| | | </aura:iteration> |
| | |
| | | </aura:set> |
| | | </aura:renderIf> |
| | | </div> |
| | | <!-- 批量添加周报 start--> |
| | | <!-- 批量添加日报 start--> |
| | | <div aura:id="modal_import" role="dialog" tabindex="-1" |
| | | class="disp_none slds-modal slds-fade-in-open slds-modal--large" aria-labelledby="headerTarget"> |
| | | <div class="slds-modal slds-fade-in-open slds-hide" aura:id="successDiv01"> |
| | | <ui:inputText aura:id="articleURL" /> |
| | | <!-- <ui:inputText aura:id="articleURL" /> --> |
| | | <div class="demo-only" style="height: 8rem;"> |
| | | <div class="slds-notify_container slds-is-relative"> |
| | | <div class="slds-notify slds-notify_toast slds-theme_success" role="alert"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="slds-modal slds-fade-in-open slds-hide" aura:id="errorDiv01" style="z-index: 10001"> |
| | | <!-- <ui:inputText aura:id="articleURL" /> --> |
| | | <div class="demo-only" style="height: 8rem;"> |
| | | <div class="slds-notify_container slds-is-relative"> |
| | | <div class="slds-notify slds-notify_toast slds-theme_error" role="status"> |
| | | <div class=" slds-m-left_xx-large"> |
| | | <div |
| | | class="slds-notify__content slds-m-left_small slds-align_absolute-center slds-m-left_xx-large"> |
| | | <lightning:icon alternativeText="error" iconName="utility:error" size="small" |
| | | class="buttonColor slds-m-right_small" /> |
| | | <h2 class="slds-text-heading_small " >{!v.errorMessage}</h2> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="slds-modal__container "> |
| | | <div class="slds-modal__header "> |
| | | <h4 id="headerTarget" class="slds-float--left"></h4> |
| | | <h2 id="headerTarget" class="slds-text-heading--medium">周报批量导入</h2> |
| | | <h2 id="headerTarget" class="slds-text-heading--medium">日报批量导入</h2> |
| | | <ui:button aura:id="close_button" label="关闭" |
| | | class="close_button slds-button slds-button--neutral slds-order--1" press="{!c.close_import}" /> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div aura:id="modal_importbg" class="disp_none slds-backdrop slds-backdrop--open"></div> |
| | | <!-- 批量添加周报 end--> |
| | | <!-- 批量添加日报 end--> |
| | | |
| | | <!-- 批量导出周报 start--> |
| | | <!-- 批量导出日报 start--> |
| | | <div aura:id="modal_export" role="dialog" tabindex="-1" |
| | | class="disp_none slds-modal slds-fade-in-open slds-modal--large"> |
| | | <div class="slds-modal__container"> |
| | | <div class="slds-modal__header"> |
| | | <h4 id="headerTarget" class="slds-float--left"></h4> |
| | | <h2 id="headerTarget" class="slds-text-heading--medium">周报批量导出</h2> |
| | | <h2 id="headerTarget" class="slds-text-heading--medium">日报批量导出</h2> |
| | | <ui:button aura:id="close_button" label="关闭" |
| | | class="close_button slds-button slds-button--neutral slds-order--1" press="{!c.close_export}" /> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div aura:id="modal_exportbg" class="disp_none slds-backdrop slds-backdrop--open"></div> |
| | | <!-- 批量导出周报 end--> |
| | | <!-- 批量导出日报 end--> |
| | | <div aura:id="modal_window" role="dialog" tabindex="-1" |
| | | class="disp_none slds-modal slds-fade-in-open slds-modal--large" aria-labelledby="headerTarget"> |
| | | <div class="slds-modal__container"> |
| | | <div class="slds-modal slds-fade-in-open slds-hide" aura:id="successDiv"> |
| | | <ui:inputText aura:id="articleURL" /> |
| | | <!-- <ui:inputText aura:id="articleURL" /> --> |
| | | <div class="demo-only" style="height: 8rem;"> |
| | | <div class="slds-notify_container slds-is-relative"> |
| | | <div class="slds-notify slds-notify_toast slds-theme_success" role="alert"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="slds-modal slds-fade-in-open slds-hide" aura:id="errorDiv" style="z-index: 10001"> |
| | | <ui:inputText aura:id="articleURL" /> |
| | | <!-- <ui:inputText aura:id="articleURL" /> --> |
| | | <div class="demo-only" style="height: 8rem;"> |
| | | <div class="slds-notify_container slds-is-relative"> |
| | | <div class="slds-notify slds-notify_toast slds-theme_error" role="status"> |
| | |
| | | <div class="slds-modal__header"> |
| | | <h4 id="headerTarget" class="slds-float--left">{!v.dialog_type}</h4> |
| | | <h2 id="headerTarget" class="slds-text-heading--medium"> |
| | | 周报({!v.selected_date} {!v.selected_agency_person})</h2> |
| | | 日报({!v.selected_date} {!v.selected_agency_person})</h2> |
| | | <ui:button aura:id="close_button" label="关闭" |
| | | class="close_button slds-button slds-button--neutral slds-order--1" press="{!c.toggle_report}" /> |
| | | </div> |
| | |
| | | <div aura:id="hospital_list" |
| | | class="slds-form-element slds-lookup slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6" |
| | | data-select="single"> |
| | | <lightning:input aura:id="hospital_input_text" label="医院" class="field" |
| | | <!-- label="医院" --> |
| | | 医院 |
| | | <lightning:input aura:id="hospital_input_text" class="field" |
| | | value="{!v.hospital}" updateOn="keyup" /> |
| | | <div class="slds-lookup__menu" id="lookup-66"> |
| | | <ul class="slds-lookup__list" role="listbox"> |
| | |
| | | </div> |
| | | <!-- 经销商人员 change="{!c.select_DealerPersonnel}" --> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6"> |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6" style="width: 145px;"> |
| | | {!v.fieldsmap.DealerPersonnel__c} |
| | | <ui:inputSelect aura:id="select_DealerPersonnel" class="slds-select" /> |
| | | </div> |
| | | <p hidden="hidden"> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-12"> |
| | | <br /> |
| | | <ui:button label="新建" class="slds-button" press="{!c.createCon}" disabled="true" |
| | | aura:id="new_con" /> |
| | | </div> |
| | | </p> |
| | | <!-- 工作记录 --> |
| | | <!-- 活动区分 --> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6"> |
| | | {!v.fieldsmap.WorkRecord__c} |
| | | <ui:inputSelect aura:id="select_purpose_type" class="slds-select" |
| | | change="{!c.select_purpose_type}" /> |
| | | </div> |
| | | <!-- 医院人员 {!v.fieldsmap.doctor2__c}--> |
| | | <!-- 拜访人 {!v.fieldsmap.doctor2__c}--> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6"> |
| | | 医院人员 |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6" style="width: 145px;"> |
| | | 拜访人 |
| | | <ui:inputSelect aura:id="select_doctor" class="slds-select" change="{!c.doctor_change}" /> |
| | | </div> |
| | | <!-- <p hidden="hidden"> --> |
| | | |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-12"> |
| | | <br /> |
| | | <ui:button label="新建" class="slds-button" press="{!c.createCon}" disabled="true" |
| | | aura:id="new_con" /> |
| | | </div> |
| | | |
| | | <!-- </p> --> |
| | | <hr /> |
| | | <!-- 产品分类(第三分类) change="{!c.select_ProductClassification}" --> |
| | | <div |
| | |
| | | <div aura:id="UseProduct1_List" |
| | | class="slds-form-element slds-lookup slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6" |
| | | data-select="single"> |
| | | <lightning:input aura:id="UseProduct1_TEXT" label="使用产品1(产品型号)" class="field" |
| | | <!-- label="使用产品1(产品型号)" --> |
| | | 使用产品1(产品型号) |
| | | <lightning:input aura:id="UseProduct1_TEXT" class="field" |
| | | value="{!v.UseProduct1}" updateOn="keyup" /> |
| | | <div class="slds-lookup__menu" id="lookup-11"> |
| | | <ul class="slds-lookup__list" role="listbox"> |
| | | <ul class="slds-lookup__list" role="listbox" style="max-height:230px;"> |
| | | <aura:iteration var="UseProduct1" items="{!v.UseProduct1List}"> |
| | | <li role="presentation" onclick="{!c.seletUseProduct1Change}" |
| | | data-accid="{!UseProduct1.Id}" data-accName="{!UseProduct1.Name}"> |
| | | data-accid="{!UseProduct1.Id}" data-accName="{!UseProduct1.Asset_Model_No__c}"> |
| | | <span class="slds-lookup__item-action slds-media" id="lookup-option-498" |
| | | role="option"> |
| | | <div class="slds-media__body"> |
| | | <div class="slds-lookup__result-text">{!UseProduct1.Name}</div> |
| | | <div class="slds-lookup__result-text">{!UseProduct1.Asset_Model_No__c}</div> |
| | | </div> |
| | | </span> |
| | | </li> |
| | |
| | | <div aura:id="UseProduct2_List" |
| | | class="slds-form-element slds-lookup slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6" |
| | | data-select="single"> |
| | | <lightning:input aura:id="UseProduct2_TEXT" label="使用产品2" class="field" |
| | | <!-- label="使用产品2" --> |
| | | 使用产品2 |
| | | <lightning:input aura:id="UseProduct2_TEXT" class="field" |
| | | value="{!v.UseProduct2}" updateOn="keyup" /> |
| | | <div class="slds-lookup__menu" id="lookup-22"> |
| | | <ul class="slds-lookup__list" role="listbox"> |
| | | <ul class="slds-lookup__list" role="listbox" style="max-height:230px;"> |
| | | <aura:iteration var="UseProduct2" items="{!v.UseProduct2List}"> |
| | | <li role="presentation" onclick="{!c.seletUseProduct2Change}" |
| | | data-accid="{!UseProduct2.Id}" data-accName="{!UseProduct2.Name}"> |
| | | data-accid="{!UseProduct2.Id}" data-accName="{!UseProduct2.Asset_Model_No__c}"> |
| | | <span class="slds-lookup__item-action slds-media" id="lookup-option-498" |
| | | role="option"> |
| | | <div class="slds-media__body"> |
| | | <div class="slds-lookup__result-text">{!UseProduct2.Name}</div> |
| | | <div class="slds-lookup__result-text">{!UseProduct2.Asset_Model_No__c}</div> |
| | | </div> |
| | | </span> |
| | | </li> |
| | |
| | | <div aura:id="UseProduct3_List" |
| | | class="slds-form-element slds-lookup slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6" |
| | | data-select="single"> |
| | | <lightning:input aura:id="UseProduct3_TEXT" label="使用产品3" class="field" |
| | | <!-- label="使用产品3" --> |
| | | 使用产品3 |
| | | <lightning:input aura:id="UseProduct3_TEXT" class="field" |
| | | value="{!v.UseProduct3}" updateOn="keyup" /> |
| | | <div class="slds-lookup__menu" id="lookup-33"> |
| | | <ul class="slds-lookup__list" role="listbox"> |
| | | <ul class="slds-lookup__list" role="listbox" style="max-height:230px;"> |
| | | <aura:iteration var="UseProduct3" items="{!v.UseProduct3List}"> |
| | | <li role="presentation" onclick="{!c.seletUseProduct3Change}" |
| | | data-accid="{!UseProduct3.Id}" data-accName="{!UseProduct3.Name}"> |
| | | data-accid="{!UseProduct3.Id}" data-accName="{!UseProduct3.Asset_Model_No__c}"> |
| | | <span class="slds-lookup__item-action slds-media" id="lookup-option-498" |
| | | role="option"> |
| | | <div class="slds-media__body"> |
| | | <div class="slds-lookup__result-text">{!UseProduct3.Name}</div> |
| | | <div class="slds-lookup__result-text">{!UseProduct3.Asset_Model_No__c}</div> |
| | | </div> |
| | | </span> |
| | | </li> |
| | |
| | | <ui:inputSelect aura:id="select_EffectProgress" class="slds-select" /> |
| | | </div> |
| | | <hr /> |
| | | <!-- 科室同类耗材月使用量 ConsumptionOfConsumables__c--> |
| | | <!-- 产品1同类耗材科室月使用量 ConsumptionOfConsumables__c--> |
| | | <div |
| | | class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6"> |
| | | {!v.fieldsmap.ConsumptionOfConsumables__c} |
| | |
| | | <ui:inputText aura:id="select_warlocksNumber" class="slds-select" |
| | | change="{!c.select_warlocksNumber}" /> |
| | | </div> |
| | | <!-- 工作标记 WorkMark__c--> |
| | | <!-- 支援需求 WorkMark__c--> |
| | | <div style="padding-left: 20px;"> |
| | | {!v.fieldsmap.WorkMark__c} |
| | | <lightning:input type="checkbox" aura:id="select_WorkMark" /> |
| | |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span class="slds-truncate" |
| | | title="{!item.Department_Cateogy__c}">{!item.Name}</span> |
| | | title="{!item.Department_Cateogy_text__c}">{!item.Name}</span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span class="slds-truncate" |
| | | title="{!item.Department_Cateogy__c}">{!item.Department_Cateogy__c}</span> |
| | | title="{!item.Department_Cateogy_text__c}">{!item.Department_Cateogy_text__c}</span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | |
| | | class="disp_none slds-modal slds-fade-in-open"> |
| | | <div class="slds-modal__container"> |
| | | <div class="slds-modal__header"> |
| | | <h2 id="headertest" class="slds-text-heading--medium">新建.客户人员</h2> |
| | | <h2 id="headertest" class="slds-text-heading--medium">新建.拜访人</h2> |
| | | </div> |
| | | <div class="slds-modal__content slds-p-around--medium"> |
| | | <lightning:recordEditForm aura:id="recordEditForm" objectApiName="Agency_Contact__c" |
| | |
| | | <div class="save_button_area"> |
| | | <lightning:button class="slds-m-top_small" type="button" label="取消" |
| | | onclick="{!c.createCancel}" /> |
| | | <lightning:button class="slds-m-top_small" type="button" label="新建" |
| | | <lightning:button class="slds-m-top_small" type="button" label="保存" |
| | | onclick="{!c.handleSubmit}" /> |
| | | </div> |
| | | </lightning:recordEditForm> |
| | |
| | | } |
| | | .THIS .none{ |
| | | display:none; |
| | | } |
| | | |
| | | .THIS tr .decrypt{ |
| | | display: none; |
| | | } |
| | | |
| | | .THIS tr:hover .decrypt{ |
| | | display: unset; |
| | | } |
| | | |
| | | .THIS tr:hover .encrypt{ |
| | | display: none; |
| | | } |
| | |
| | | component.find('save_button').set('v.label', '保存并新建'); |
| | | helper.copy_button(component, event, helper); |
| | | }, |
| | | |
| | | delete_button : function(component, event, helper) { |
| | | helper.delete_button(component, event, helper); |
| | | }, |
| | | change_report_radio : function(component, event, helper) { |
| | | helper.change_report_radio(component, event, helper); |
| | | }, |
| | |
| | | var showValidationError = false; |
| | | var fields = component.find("newOpportunityField"); |
| | | var vaildationFailReason = ''; |
| | | let agencyReport = Object.create(null); |
| | | fields.forEach(function (field) { |
| | | if(field.get("v.fieldName") === 'Type__c' && $A.util.isEmpty(field.get("v.value"))){ |
| | | showValidationError = true; |
| | |
| | | } |
| | | |
| | | } |
| | | //SWAG-CF58C3 fy start |
| | | if(field.get("v.fieldName") === 'Name'){ |
| | | agencyReport['name'] = field.get("v.value"); |
| | | }else if(field.get("v.fieldName") === 'Type__c'){ |
| | | agencyReport['type'] = field.get("v.value"); |
| | | }else if(field.get("v.fieldName") === 'Doctor_Division1__c'){ |
| | | agencyReport['doctorDivision1'] = field.get("v.value"); |
| | | } |
| | | //SWAG-CF58C3 fy end |
| | | }); |
| | | if (!showValidationError) { |
| | | helper.newlyBuild(component, event, helper); |
| | | //SWAG-CF58C3 fy start |
| | | var agencyHospitalid = component.get('v.hospitalLinkId'); |
| | | //zhj MEBG新方案改造 2022-11-29 start |
| | | debugger |
| | | let hospitalName = ''; |
| | | //调用后端searchAgencyDataId方法查询出医院下面所有客户人员dataid |
| | | helper.CallBackAction(component,'searchAgencyDataId',{ |
| | | hospitalId : agencyHospitalid |
| | | },function(data){ |
| | | if(data.getState() == "SUCCESS"){ |
| | | var data = data.getReturnValue(); |
| | | if(data.IsSuccess == true){ |
| | | let agencyContactIds = '' |
| | | if(data.Message == '' && data.Data && data.Data.length > 0){ |
| | | hospitalName = data.Data[0].Agency_Hospital__r.Name; |
| | | for(var i=0;i<data.Data.length;i++){ |
| | | if(data.Data[i].AWS_Data_Id__c) |
| | | agencyContactIds += ','+data.Data[i].AWS_Data_Id__c; |
| | | } |
| | | agencyContactIds = agencyContactIds.substring(1); |
| | | agencyReport['agencyContactIds'] = agencyContactIds; |
| | | }else{ |
| | | agencyReport['agencyContactIds'] = agencyContactIds; |
| | | } |
| | | var arr = new Array(); |
| | | arr.push(agencyReport); |
| | | var requestData = JSON.stringify(arr); |
| | | // helper.set_aws_url(component,data,agencyHospitalid); |
| | | |
| | | var token = component.get('v.AWStoken'); |
| | | var newUrl = component.get('v.AWSinsert') + 'V2'; |
| | | |
| | | component.set('v.login',true); |
| | | helper.insert_agencycontact(component,token,newUrl,requestData,agencyHospitalid,helper,hospitalName); |
| | | }else{ |
| | | helper.ShowToast({ |
| | | "message" : data.message, |
| | | "type" : "error" |
| | | }); |
| | | } |
| | | }else{ |
| | | helper.ShowToast({ |
| | | "message" : 'searchAgency失败', |
| | | "type" : "error" |
| | | }); |
| | | } |
| | | }) |
| | | //zhj MEBG新方案改造 2022-11-29 end |
| | | // var arr = new Array(); |
| | | // arr.push(agencyReport); |
| | | // var data = JSON.stringify(arr); |
| | | // var token = component.get('v.AWStoken'); |
| | | // var newUrl = component.get('v.AWSinsert'); |
| | | // component.set('v.login',true); |
| | | // helper.insert_agencycontact(component,token,newUrl,data,agencyHospitalid,helper); |
| | | //SWAG-CF58C3 fy end |
| | | // helper.newlyBuild(component, event, helper); |
| | | }else{ |
| | | component.find('OppMessage').setError(vaildationFailReason); |
| | | } |
| | |
| | | }, |
| | | |
| | | select_agency_change : function(component, event, helper) { |
| | | debugger |
| | | helper.select_agency_change(component, event, helper); |
| | | }, |
| | | |
| | | hosChange : function(component, event, helper) { |
| | | var hospital_name = event.getParam("value"); |
| | | var hospital_nameld = component.get("v.UseProduct1s"); |
| | | if (hospital_name.match(/(\S+\s)+/)) { |
| | | helper.searchHos(component, event, helper); |
| | | if(hospital_nameld!=hospital_name){ |
| | | helper.searchHos(component, event, helper); |
| | | } |
| | | } else { |
| | | helper.hideSearch(component, event, helper); |
| | | if(hospital_name==''){ |
| | | helper.hideSearchs(component, event, helper); |
| | | }else{ |
| | | helper.hideSearch(component, event, helper); |
| | | } |
| | | } |
| | | }, |
| | | selectHos : function(component, event, helper) { |
| | |
| | | //使用产品1 |
| | | UseProduct1Change : function(component, event, helper) { |
| | | var UseProduct1Name = event.getParam("value"); |
| | | var UseProduct1Nameold = component.get("v.UseProduct1s"); |
| | | debugger |
| | | if (UseProduct1Name.match(/(\S+\s)+/)) { |
| | | helper.searchUseProduct1(component, event, helper); |
| | | if(UseProduct1Name!=UseProduct1Nameold){ |
| | | helper.searchUseProduct1(component, event, helper); |
| | | } |
| | | } else { |
| | | helper.hideSearchUseProduct1(component, event, helper); |
| | | if(UseProduct1Name==''){ |
| | | helper.hideSearchUseProduct1s(component, event, helper); |
| | | }else{ |
| | | helper.hideSearchUseProduct1(component, event, helper); |
| | | } |
| | | } |
| | | }, |
| | | seletUseProduct1Change : function(component, event, helper) { |
| | |
| | | //使用产品2 |
| | | UseProduct2Change : function(component, event, helper) { |
| | | var UseProduct2Name = event.getParam("value"); |
| | | var UseProduct2Nameold = component.get("v.UseProduct2s"); |
| | | if (UseProduct2Name.match(/(\S+\s)+/)) { |
| | | helper.searchUseProduct2(component, event, helper); |
| | | if(UseProduct2Name!=UseProduct2Nameold){ |
| | | helper.searchUseProduct2(component, event, helper); |
| | | } |
| | | } else { |
| | | helper.hideSearchUseProduct2(component, event, helper); |
| | | if(UseProduct2Name==''){ |
| | | helper.hideSearchUseProduct2s(component, event, helper); |
| | | }else{ |
| | | helper.hideSearchUseProduct2(component, event, helper); |
| | | } |
| | | } |
| | | }, |
| | | seletUseProduct2Change : function(component, event, helper) { |
| | |
| | | //使用产品3 |
| | | UseProduct3Change : function(component, event, helper) { |
| | | var UseProduct3Name = event.getParam("value"); |
| | | var UseProduct3Nameold = component.get("v.UseProduct3s"); |
| | | if (UseProduct3Name.match(/(\S+\s)+/)) { |
| | | helper.searchUseProduct3(component, event, helper); |
| | | if(UseProduct3Name!=UseProduct3Nameold){ |
| | | helper.searchUseProduct3(component, event, helper); |
| | | } |
| | | } else { |
| | | helper.hideSearchUseProduct3(component, event, helper); |
| | | if(UseProduct3Name==''){ |
| | | helper.hideSearchUseProduct3s(component, event, helper); |
| | | }else{ |
| | | helper.hideSearchUseProduct3(component, event, helper); |
| | | } |
| | | } |
| | | }, |
| | | seletUseProduct3Change : function(component, event, helper) { |
| | |
| | | }, |
| | | selectpurposetype : function(component,event,helper){ |
| | | helper.selectpurposetype(component,event,helper); |
| | | }, |
| | | return_main_page: function(component,event,helper){ |
| | | window.open('/customer/','_self'); |
| | | } |
| | | }) |
| | |
| | | ({ |
| | | doinit: function (component, event, helper) { |
| | | debugger |
| | | this.report_date_list(component, event, helper, 5); |
| | | component.set('v.login', true); |
| | | var action = component.get('c.getalldata'); |
| | |
| | | component.set('v.fieldsmap', res.fieldsMap); |
| | | component.set('v.allselectlist', res.allselectlist); |
| | | component.set('v.doclist', res.doclist); |
| | | //fy |
| | | debugger |
| | | var xx=res.UserProType; |
| | | component.set('v.UserProType', res.UserProType); |
| | | var gg=component.get('v.UserProType'); |
| | | //fy |
| | | component.find('select_agency_person').set('v.options', this.conv_selected(res.allselectlist.AgencyPerson__c)); |
| | | component.find('select_DealerPersonnel').set('v.options', this.conv_selected(res.allselectlist.DealerPersonnel__c)); |
| | | component.find('select_purpose_type').set('v.options', this.conv_selected(res.allselectlist.WorkRecord__c)); |
| | |
| | | component.set('v.selected_agency_person', res.allselectlist.AgencyPerson__c[0].label); |
| | | component.set('v.dialog_type', '新建'); |
| | | this.get_reports(component, event, helper, component.find('select_date').get('v.value'), component.find('select_agency_person').get('v.value')); |
| | | |
| | | component.set('v.PIConfig', res.PIConfig);// 20220222 PI改造 by Bright |
| | | component.set('v.login', false); |
| | | } |
| | | else { |
| | |
| | | if (!date_str) { |
| | | return false; |
| | | } |
| | | |
| | | if(person_str){ |
| | | var person_str2= person_str.split(';'); |
| | | if(person_str2.length>1){ |
| | | person_str=person_str2[0]; |
| | | } |
| | | } |
| | | date_str = this.get_date_string(date_str); |
| | | var action = component.get('c.getReports'); |
| | | action.setParams({ |
| | |
| | | }); |
| | | component.set('v.login', true); |
| | | action.setCallback(this, function (response) { |
| | | debugger |
| | | var state = response.getState(); |
| | | if (state == 'SUCCESS') { |
| | | var res = response.getReturnValue(); |
| | |
| | | } |
| | | if (res.reports.length > 0) { |
| | | component.set('v.list_message', ''); |
| | | var flag2=res.reports.length; |
| | | //fy 20220414 start |
| | | var report1 =[]; |
| | | var report2 =[]; |
| | | res.reports.forEach(item => { |
| | | if((item.WorkRecord__c == '科室会'&&item.doctor3__c != undefined)|| |
| | | ((item.doctor3__c == undefined||item.doctor3__c == ''||item.doctor3__c=="") |
| | | && (item.doctor2__r== undefined||item.doctor2__r==''||item.doctor2__r==""))){ |
| | | report1.push(item); |
| | | }else{ |
| | | report2.push(item); |
| | | } |
| | | }); |
| | | res.reports=report2; |
| | | //fy 20220414 end |
| | | // PI 改造 By Bright 20220328 |
| | | if(true){ |
| | | let doctor_awsids = res.reports.map(function(d){return d.doctor2__r.AWS_Data_Id__c;}); |
| | | let PIConfig = component.get('v.PIConfig'); |
| | | let staticResourceAgencyContact = JSON.parse(PIConfig.staticResourceAgencyContact); |
| | | if(doctor_awsids.length > 0){ |
| | | AWSService.search(staticResourceAgencyContact.searchUrl,{ |
| | | dataIds:doctor_awsids |
| | | }, function(data){ |
| | | if(data && data.object && data.object.length){ |
| | | let m = {}; |
| | | for(let di in data.object){ |
| | | if(data.object[di] && data.object[di].dataId){ |
| | | m[data.object[di].dataId] = data.object[di]; |
| | | } |
| | | } |
| | | debugger |
| | | for(let ri in res.reports){ |
| | | if(res.reports[ri] && res.reports[ri].doctor2__r && res.reports[ri].doctor2__r.AWS_Data_Id__c && m.hasOwnProperty(res.reports[ri].doctor2__r.AWS_Data_Id__c)){ |
| | | res.reports[ri].doctor2__r.awsdata = m[res.reports[ri].doctor2__r.AWS_Data_Id__c]; |
| | | } |
| | | } |
| | | component.set('v.reports', res.reports); |
| | | component.set('v.report_count', res.reports.length); |
| | | } |
| | | //fy 20220414 start |
| | | var reports3=component.get('v.reports'); |
| | | if(reports3.length<flag2){ |
| | | res.reports = [...report1, ...reports3]; |
| | | component.set('v.reports', res.reports); |
| | | component.set('v.report_count', res.reports.length); |
| | | } |
| | | //fy 20220414 end |
| | | component.set('v.login', false); |
| | | }, staticResourceAgencyContact.token); |
| | | }else{ |
| | | component.set('v.login', false); |
| | | } |
| | | } |
| | | } else { |
| | | component.set('v.list_message', 'no_data'); |
| | | component.set('v.login', false); |
| | | } |
| | | component.set('v.login', false); |
| | | |
| | | } |
| | | else { |
| | | component.set('v.errorMessage', 'get_reports failed.'); |
| | |
| | | this.get_reports(component, event, helper, component.find('select_date').get('v.value'), component.find('select_agency_person').get('v.value')); |
| | | component.set('v.select_report_data_radio', ''); |
| | | component.find('copy_button').set('v.disabled', true); |
| | | component.find('delete_button').set('v.disabled', true); |
| | | }, |
| | | |
| | | select_agency_change: function (component, event, helper) { |
| | |
| | | this.get_reports(component, event, helper, component.find('select_date').get('v.value'), select_value); |
| | | component.set('v.select_report_data_radio', ''); |
| | | component.find('copy_button').set('v.disabled', true); |
| | | component.find('delete_button').set('v.disabled', true); |
| | | }, |
| | | |
| | | get_agency_person_name: function (component, agency_person_value) { |
| | |
| | | }, |
| | | //复制和编辑回显的位置 |
| | | toggle_report: function (component) { |
| | | debugger |
| | | var modal_window = component.find('modal_window'); |
| | | var modal_bg = component.find('modal_bg'); |
| | | if ($A.util.hasClass(modal_window, 'disp_none')) { |
| | |
| | | //使用产品1(产品型号) |
| | | var UseProduct1Text = ''; |
| | | var UseProduct1Id = ''; |
| | | if (select_data['UseProduct1__c'] != '' || select_data['UseProduct1__c'] != 'undefined') { |
| | | if (select_data['UseProduct1__c'] != '' && select_data['UseProduct1__c'] != undefined) { |
| | | for (var i = 0; i < reports.length; i++) { |
| | | if (reports[i]['UseProduct1__c'] == select_data['UseProduct1__c']) { |
| | | UseProduct1Text = reports[i]['UseProduct1__r']['Name']; |
| | | UseProduct1Text = reports[i]['UseProduct1__r']['Asset_Model_No__c']; |
| | | UseProduct1Id = reports[i]['UseProduct1__c']; |
| | | } |
| | | } |
| | |
| | | //使用产品2 |
| | | var UseProduct2Text = ''; |
| | | var UseProduct2Id = ''; |
| | | if (select_data['UseProduct2__c'] != '') { |
| | | if (select_data['UseProduct2__c'] != ''&&select_data['UseProduct2__c'] != undefined) { |
| | | for (var i = 0; i < reports.length; i++) { |
| | | if (reports[i]['UseProduct2__c'] == select_data['UseProduct2__c']) { |
| | | UseProduct2Text = reports[i]['UseProduct2__r']['Name']; |
| | | UseProduct2Text = reports[i]['UseProduct2__r']['Asset_Model_No__c']; |
| | | UseProduct2Id = reports[i]['UseProduct2__c']; |
| | | } |
| | | } |
| | |
| | | //使用产品3 |
| | | var UseProduct3Text = ''; |
| | | var UseProduct3Id = ''; |
| | | if (select_data['UseProduct3__c'] != '') { |
| | | if (select_data['UseProduct3__c'] != ''&&select_data['UseProduct3__c'] != undefined) { |
| | | for (var i = 0; i < reports.length; i++) { |
| | | if (reports[i]['UseProduct3__c'] == select_data['UseProduct3__c']) { |
| | | UseProduct3Text = reports[i]['UseProduct3__r']['Name']; |
| | | UseProduct3Text = reports[i]['UseProduct3__r']['Asset_Model_No__c']; |
| | | UseProduct3Id = reports[i]['UseProduct3__c']; |
| | | } |
| | | } |
| | |
| | | component.set('v.data.Report_Date__c', reportDate); |
| | | } |
| | | // 科室 |
| | | if (select_data['Department_Cateogy__c'] != '') { |
| | | component.find('select_department').set('v.value',select_data['Department_Cateogy__c']); |
| | | // if (select_data['Department_Cateogy__c'] != '') { |
| | | // component.find('select_department').set('v.value',select_data['Department_Cateogy__c']); |
| | | // } |
| | | //fy Department_Cateogy_text__c |
| | | if (select_data['Department_Cateogy_text__c'] != '') { |
| | | component.find('select_department').set('v.value',select_data['Department_Cateogy_text__c']); |
| | | } |
| | | //经销商人员 |
| | | if (select_data['DealerPersonnel__c'] != '') { |
| | | this.set_selected(component, 'select_DealerPersonnel', select_data['DealerPersonnel__c']); |
| | | } |
| | | // 医院人员 |
| | | component.set('v.default_select_doctor_id', select_data['doctor2__c']); |
| | | this.set_doctor_list(component); |
| | | |
| | | // 工作记录 |
| | | // 活动区分 |
| | | if (select_data['WorkRecord__c'] != '') { |
| | | this.set_selected(component, 'select_purpose_type', select_data['WorkRecord__c']); |
| | | this.selectPurposeType(component); |
| | | } |
| | | // 拜访人 |
| | | if(select_data['WorkRecord__c'] == '科室会'){ |
| | | component.set('v.default_select_doctor_id2', select_data['doctor3__c']); |
| | | var a =component.get('v.default_select_doctor_id2'); |
| | | this.set_doctor_list(component); |
| | | }else{ |
| | | component.set('v.default_select_doctor_id', select_data['doctor2__c']); |
| | | this.set_doctor_list(component); |
| | | } |
| | | //产品分类(第三分类) |
| | | if (select_data['ProductClassification__c'] != null) { |
| | | this.set_selected(component, 'select_ProductClassification', select_data['ProductClassification__c']); |
| | | this.selectProductClassification(component); |
| | | } |
| | | // 科室同类耗材月使用量 |
| | | // 产品1同类耗材科室月使用量 |
| | | if (select_data['ConsumptionOfConsumables__c'] != '') { |
| | | component.find('select_ConsumptionOfConsumables').set('v.value',select_data['ConsumptionOfConsumables__c']); |
| | | } |
| | |
| | | if (select_data['warlocksNumber__c'] != '') { |
| | | component.find('select_warlocksNumber').set('v.value',select_data['warlocksNumber__c']); |
| | | } |
| | | // 工作标记 |
| | | // 支援需求 |
| | | if (select_data['WorkMark__c'] != false) { |
| | | component.find('select_WorkMark').set('v.checked',select_data['WorkMark__c']); |
| | | } |
| | |
| | | var WorkMark__c = component.find('select_WorkMark').get('v.checked'); |
| | | if (component.get('v.mode') == 'new') { |
| | | var confirm_title = '警告!' |
| | | var confirm_text = '放弃新建周报?'; |
| | | var confirm_text = '放弃新建日报?'; |
| | | if (!Report_Date__c && |
| | | !Agency_Hospital__c && |
| | | !UseProduct1__c && |
| | |
| | | this.allclear(component); |
| | | $A.util.addClass(modal_window, 'disp_none'); |
| | | $A.util.addClass(modal_bg, 'disp_none'); |
| | | this.close_confirm(component, confirm_title, confirm_text); |
| | | } else { |
| | | this.close_confirm(component, confirm_title, confirm_text); |
| | | } |
| | | } else if (component.get('v.mode') == 'copy') { |
| | | var confirm_title = '警告!' |
| | | var confirm_text = '放弃新建周报?'; |
| | | var confirm_text = '放弃新建日报?'; |
| | | if (select_report_data['Report_Date__c'] == Report_Date__c && |
| | | select_report_data['Agency_Hospital__c'] == Agency_Hospital__c && |
| | | select_report_data['UseProduct1__c'] == UseProduct1__c && |
| | |
| | | } |
| | | } else if (component.get('v.mode') == 'edit') { |
| | | var confirm_title = '警告!' |
| | | var confirm_text = '放弃编辑周报?'; |
| | | var confirm_text = '放弃编辑日报?'; |
| | | if (select_report_data['Report_Date__c'] == Report_Date__c && |
| | | select_report_data['Agency_Hospital__c'] == Agency_Hospital__c && |
| | | select_report_data['UseProduct1__c'] == UseProduct1__c && |
| | |
| | | } |
| | | } |
| | | }, |
| | | //关闭页面是 小的提示框是否放弃新建周报 |
| | | //关闭页面是 小的提示框是否放弃新建日报 |
| | | close_confirm: function (component, title, text) { |
| | | var confirm_status = component.get('v.confirm_status'); |
| | | component.set('v.modal_confirm_title', title); |
| | |
| | | var modal_bg = component.find('modal_bg'); |
| | | var modal_confirm = component.find('modal_confirm'); |
| | | var modal_confirm_bg = component.find('modal_confirm_bg'); |
| | | debugger |
| | | if (confirm_status == 0) { |
| | | $A.util.addClass(modal_window, 'disp_none'); |
| | | $A.util.addClass(modal_bg, 'disp_none'); |
| | |
| | | }, |
| | | //新建按钮 |
| | | new_report: function (component, event, helper) { |
| | | |
| | | component.set('v.mode', 'new'); |
| | | component.set('v.dialog_type', '新建'); |
| | | // 周 |
| | |
| | | // 担当 |
| | | var name = component.get('v.selected_agency_person'); |
| | | var ret = this.create_report_header(component, event, helper, name, select_agency, select_date); |
| | | component.set('v.default_select_doctor_id2', ''); |
| | | |
| | | // SWAG-CF58C3 fy start |
| | | this.set_aws_url(component,'Agency_Contact__c') |
| | | // SWAG-CF58C3 fy end |
| | | }, |
| | | // 复制按钮 |
| | | copy_button: function (component, event, helper) { |
| | | debugger |
| | | this.allclear(component); |
| | | component.set('v.mode', 'copy'); |
| | | component.set('v.dialog_type', '新建'); |
| | |
| | | var name = component.get('v.selected_agency_person'); |
| | | component.set('v.edit_copy_select_report_id', select_report_data['Id']); |
| | | component.set('v.select_report_data', select_report_data); |
| | | |
| | | var ret = this.create_report_header(component, event, helper, name, select_agency, select_date); |
| | | // SWAG-CF58C3 fy start |
| | | this.set_aws_url(component,'Agency_Contact__c') |
| | | // SWAG-CF58C3 fy end |
| | | |
| | | }, |
| | | //删除按钮 |
| | | delete_button: function (component, event, helper) { |
| | | debugger |
| | | var select_report_data = component.get('v.select_report_data_radio'); |
| | | if(confirm('是否删除该数据?')){ |
| | | debugger |
| | | component.set('v.login', true); |
| | | var action = component.get('c.deleteAgencyReport'); |
| | | action.setParams({ |
| | | "agencyReport_id": select_report_data.Id, |
| | | }); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == 'SUCCESS') { |
| | | var result = response.getReturnValue(); |
| | | if(result=='success'){ |
| | | this.select_agency_change(component, event, helper); |
| | | } |
| | | component.set('v.login', false); |
| | | }else { |
| | | component.set('v.login', false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | } |
| | | }, |
| | | //复制按钮可用 |
| | | change_report_radio: function (component, event, helper) { |
| | | debugger |
| | | var reports = component.get('v.reports'); |
| | | for (var i = 0; i < reports.length; i++) { |
| | | if (reports[i].Name == event.getSource().get('v.label')) { |
| | | component.set('v.select_report_data_radio', reports[i]); |
| | | component.find('copy_button').set('v.disabled', false); |
| | | component.find('delete_button').set('v.disabled', false); |
| | | break; |
| | | } |
| | | } |
| | |
| | | //编辑按钮 |
| | | edit_button: function (component, event, helper) { |
| | | this.allclear(component); |
| | | debugger |
| | | component.set('v.loadOpp', true); |
| | | var index = event.getSource().get('v.value'); |
| | | component.set('v.select_report_data', component.get('v.reports')[index]); |
| | |
| | | component.set('v.selected_agency_person', new_label); |
| | | component.set('v.edit_copy_select_report_id', component.get('v.reports')[index].Id); |
| | | var ret = this.create_report_header(component, event, helper, name, select_agency, select_date); |
| | | // SWAG-CF58C3 fy start |
| | | this.set_aws_url(component,'Agency_Contact__c') |
| | | // SWAG-CF58C3 fy end |
| | | }, |
| | | //保存 |
| | | save_report: function (component, event, helper) { |
| | | var UserProType = component.get('v.UserProType'); |
| | | component.find('save_button').set('v.disabled', true); |
| | | var etEng = component.get('v.etEng'); |
| | | var Report_Date__c = component.get('v.data.Report_Date__c'); |
| | |
| | | // 担当 Person_In_Charge2__c |
| | | Person_In_Charge2__c = component.find('select_agency_person').get('v.value'); |
| | | } |
| | | debugger |
| | | // Agency_Report_Header__c |
| | | var Agency_Report_Header__c = component.get('v.agency_report_header_id'); |
| | | // 医院 |
| | |
| | | var Department_Cateogy__c = component.find('select_department').get('v.value'); |
| | | // 经销商人员 DealerPersonnel__c |
| | | var DealerPersonnel__c = component.find('select_DealerPersonnel').get('v.value'); |
| | | // 医院人员 doctor2__c |
| | | // 拜访人 doctor2__c |
| | | var doctor2__c = component.find('select_doctor').get('v.value'); |
| | | // 工作记录会 WorkRecord__c |
| | | // 活动区分会 WorkRecord__c |
| | | var WorkRecord__c = component.find('select_purpose_type').get('v.value'); |
| | | // 效果/进度 EffectProgress__c |
| | | var EffectProgress__c = component.find('select_EffectProgress').get('v.value'); |
| | | // alert(EffectProgress__c); |
| | | // 科室同来耗材月使用量 ConsumptionOfConsumables__c |
| | | var ConsumptionOfConsumables__c = component.find('select_ConsumptionOfConsumables').get('v.value'); |
| | | // 术士分类 WarlockClassification__c |
| | |
| | | var productCategories__c = component.find('select_productCategories').get('v.value'); |
| | | // 产品用量 warlocksNumber__c |
| | | var warlocksNumber__c = component.find('select_warlocksNumber').get('v.value'); |
| | | // 工作标记 WorkMark__c |
| | | // 支援需求 WorkMark__c |
| | | var WorkMark__c = component.find('select_WorkMark').get('v.checked'); |
| | | var StageName__c = component.find('select_stageName').get('v.value'); |
| | | var Amount__c = component.get('v.oppdata.Amount__c') != null ? component.get('v.oppdata.Amount__c').toString() : ''; |
| | |
| | | } |
| | | // バリデーション |
| | | var error = []; |
| | | if (!Report_Date__c) { error.push("活动日 不存在"); } |
| | | if (!Submit_date__c) { error.push("周 不存在"); } |
| | | //fy start |
| | | // if(WorkRecord__c != 'SIS'&&WorkRecord__c != '科室会'){ |
| | | if(WorkRecord__c == '临床信息(使用量)收集'){ |
| | | if (warlocksNumber__c==''||warlocksNumber__c==""||warlocksNumber__c==undefined) { error.push("产品用量 不能为空"); } |
| | | } |
| | | //fy end |
| | | if(WorkRecord__c == '临床信息(使用量)收集'&&UserProType=='ENG'){ |
| | | if (productCategories__c==''||productCategories__c==""||productCategories__c==undefined) { error.push("其他品牌产品类别 不存在"); } |
| | | } |
| | | if(WorkRecord__c == '临床信息(使用量)收集'){ |
| | | if (ProductCcategory__c==''||ProductCcategory__c==""||ProductCcategory__c==undefined) { error.push("已采用其他品牌 不存在"); } |
| | | } |
| | | if(WorkRecord__c == '临床信息(使用量)收集'){ |
| | | if (WarlockClassification__c==''||WarlockClassification__c==""||WarlockClassification__c==undefined) { error.push("产品1对应术式分类 不存在"); } |
| | | } |
| | | if(WorkRecord__c == '临床信息(使用量)收集'){ |
| | | if (ConsumptionOfConsumables__c==''||ConsumptionOfConsumables__c==""||ConsumptionOfConsumables__c==undefined) { error.push("产品1同类耗材科室月使用量 不能为空"); } |
| | | } |
| | | if(WorkRecord__c != '临床信息(使用量)收集'&&WorkRecord__c != '市场推广类活动'){ |
| | | if (EffectProgress__c==''||EffectProgress__c==""||EffectProgress__c==undefined) { error.push("效果/进度 不存在"); } |
| | | } |
| | | // if(WorkRecord__c != '临床信息(使用量)收集'&&WorkRecord__c != 'QIS处理'){ |
| | | if(WorkRecord__c != '临床信息(使用量)收集'){ |
| | | if (UseProduct1__c==''||UseProduct1__c==""||UseProduct1__c==undefined) { error.push("使用产品1(产品型号) 不存在"); } |
| | | } |
| | | if (ProductClassification__c==''||ProductClassification__c==""||ProductClassification__c==undefined) { error.push("产品分类(第三分类) 不存在"); } |
| | | if(WorkRecord__c == 'SIS'||WorkRecord__c == '科室会'||WorkRecord__c == '院内入院申请'||WorkRecord__c == '收费项目申请'){ |
| | | if (doctor2__c==''||doctor2__c==""||doctor2__c==undefined) { error.push("拜访人 不存在"); } |
| | | } |
| | | if (WorkRecord__c==''||WorkRecord__c==""||WorkRecord__c==undefined) { error.push("活动区分 不存在"); } |
| | | if (DealerPersonnel__c==''||DealerPersonnel__c==""||DealerPersonnel__c==undefined) { error.push("经销商人员 不存在"); } |
| | | if (Department_Cateogy__c==''||Department_Cateogy__c==""||Department_Cateogy__c==undefined) { error.push("科室 不存在"); } |
| | | if (Agency_Hospital__c==''||Agency_Hospital__c==""||Agency_Hospital__c==undefined) { error.push("医院 不存在"); } |
| | | |
| | | |
| | | |
| | | |
| | | if (Report_Date__c==''||Report_Date__c==""||Report_Date__c==undefined) { error.push("活动日 不存在"); } |
| | | if (Submit_date__c==''||Submit_date__c==""||Submit_date__c==undefined) { error.push("周 不存在"); } |
| | | var rDate = new Date(Report_Date__c); |
| | | var sDate = new Date(Submit_date__c); |
| | | sDate.setDate(sDate.getDate() - 1); |
| | | if (rDate < sDate) { error.push('活动日必须是本周!'); } |
| | | sDate.setDate(sDate.getDate() + 7); |
| | | if (rDate >= sDate) { error.push('活动日必须是本周!'); } |
| | | if (!Person_In_Charge2__c) { error.push("担当 不存在"); } |
| | | if (!Agency_Report_Header__c) { this.error("Report Header Id 不存在"); } |
| | | if (!Agency_Hospital__c) { error.push("医院 不存在"); } |
| | | if (!UseProduct1__c) { error.push("使用产品1(产品型号) 不存在"); } |
| | | if (!UseProduct2__c) { error.push("使用产品2 不存在"); } |
| | | if (!UseProduct3__c) { error.push("使用产品3 不存在"); } |
| | | if (!Department_Cateogy__c) { error.push("科室 不存在"); } |
| | | if (!DealerPersonnel__c) { error.push("经销商人员 不存在"); } |
| | | if (!doctor2__c) { error.push("医院人员 不存在"); } |
| | | if (!WorkRecord__c) { error.push("工作记录 不存在"); } |
| | | if (!EffectProgress__c) { error.push("效果/进度 不存在"); } |
| | | // if (!OtherBrandConsumables__c) { error.push("术士分类 不存在"); } |
| | | if (!ProductCcategory__c) { error.push("已采用其他品牌 不存在"); } |
| | | if (Person_In_Charge2__c==''||Person_In_Charge2__c==""||Person_In_Charge2__c==undefined) { error.push("担当 不存在"); } |
| | | if (Agency_Report_Header__c==''||Agency_Report_Header__c==""||Agency_Report_Header__c==undefined) { this.error("Report Header Id 不存在"); } |
| | | |
| | | |
| | | // if (!UseProduct2__c) { error.push("使用产品2 不存在"); } |
| | | // if (!UseProduct3__c) { error.push("使用产品3 不存在"); } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // if (!productCategories__c) { error.push("其他品牌产品类别 不存在"); } |
| | | if (!ConsumptionOfConsumables__c) { error.push("科室同类耗材月使用量 不能为空"); } |
| | | if (!warlocksNumber__c) { error.push("产品用量 不能为空"); } |
| | | |
| | | for (var i = 0; i < error.length; i++) { |
| | | component.set('v.errorMessage', error[i]); |
| | | this.showErrorToast(component); |
| | |
| | | var hospital_list = component.find('hospital_list'); |
| | | $A.util.removeClass(hospital_list, 'slds-is-open'); |
| | | }, |
| | | hideSearchs: function (component, event, helper) { |
| | | var hospital_list = component.find('hospital_list'); |
| | | $A.util.removeClass(hospital_list, 'slds-is-open'); |
| | | component.set("v.hospital", ''); |
| | | component.set("v.hospitals", ''); |
| | | component.set('v.hospitalLinkId', ''); |
| | | component.set('v.data.Agency_Hospital__c', ''); |
| | | component.set("v.hospitalId", ''); |
| | | }, |
| | | selectHos: function (component, event, helper) { |
| | | debugger |
| | | var hospital_list = component.find('hospital_list'); |
| | | $A.util.removeClass(hospital_list, 'slds-is-open'); |
| | | var accname = event.currentTarget.dataset.accname; |
| | | var accid = event.currentTarget.dataset.accid; |
| | | var hospital_data = component.get('v.hospitalList'); |
| | | var select_purpose_type = component.find('select_purpose_type').get('v.value'); |
| | | for (var i = 0; i < hospital_data.length; i++) { |
| | | if (hospital_data[i].Hospital__c == accid) { |
| | | component.set('v.hospitalLinkId', hospital_data[i].Id); |
| | | component.set('v.data.Agency_Hospital__c', hospital_data[i].Id); |
| | | component.find('new_con').set('v.disabled', false); |
| | | if(select_purpose_type!='科室会'&&hospital_data[i].Hospital__c){ |
| | | component.find('new_con').set('v.disabled', false); |
| | | }else{ |
| | | component.find('new_con').set('v.disabled', true); |
| | | } |
| | | } |
| | | } |
| | | component.set("v.hospitals", accname); |
| | | component.set("v.hospital", accname); |
| | | component.set("v.hospitalId", accid); |
| | | debugger |
| | | component.set('v.setdoctorlisthos', true); |
| | | this.set_doctor_list(component, event, helper); |
| | | }, |
| | | |
| | |
| | | var UseProduct1_List = component.find('UseProduct1_List'); |
| | | $A.util.removeClass(UseProduct1_List, 'slds-is-open'); |
| | | }, |
| | | hideSearchUseProduct1s: function (component, event, helper) { |
| | | var UseProduct1_List = component.find('UseProduct1_List'); |
| | | $A.util.removeClass(UseProduct1_List, 'slds-is-open'); |
| | | component.set("v.UseProduct1", ''); |
| | | component.set("v.UseProduct1s", ''); |
| | | component.set('v.UseProduct1Id', ''); |
| | | component.set('v.data.UseProduct1__c', ''); |
| | | }, |
| | | seletUseProduct1Change: function (component, event, helper) { |
| | | debugger |
| | | var UseProduct1_List = component.find('UseProduct1_List'); |
| | | $A.util.removeClass(UseProduct1_List, 'slds-is-open'); |
| | | var accname = event.currentTarget.dataset.accname; |
| | |
| | | component.set('v.data.UseProduct1__c', UseProduct1ListDate[i].Id); |
| | | } |
| | | } |
| | | var UseProduct2_TEXT = component.find('UseProduct1_TEXT').get('v.value'); |
| | | var UseProduct2_TEXT = component.find('UseProduct2_TEXT').get('v.value'); |
| | | var UseProduct3_TEXT = component.find('UseProduct3_TEXT').get('v.value'); |
| | | if(UseProduct2_TEXT != accname && UseProduct3_TEXT != accname){ |
| | | component.set("v.UseProduct1s", accname); |
| | | component.set("v.UseProduct1", accname); |
| | | }else{ |
| | | component.set('v.errorMessage', '不能选择同样的产品'); |
| | |
| | | var UseProduct2_List = component.find('UseProduct2_List'); |
| | | $A.util.removeClass(UseProduct2_List, 'slds-is-open'); |
| | | }, |
| | | hideSearchUseProduct2s: function (component, event, helper) { |
| | | var UseProduct2_List = component.find('UseProduct2_List'); |
| | | $A.util.removeClass(UseProduct2_List, 'slds-is-open'); |
| | | component.set("v.UseProduct2", ''); |
| | | component.set("v.UseProduct2s", ''); |
| | | component.set('v.UseProduct2Id', ''); |
| | | component.set('v.data.UseProduct2__c', ''); |
| | | }, |
| | | seletUseProduct2Change: function (component, event, helper) { |
| | | var UseProduct2_List = component.find('UseProduct2_List'); |
| | | $A.util.removeClass(UseProduct2_List, 'slds-is-open'); |
| | |
| | | var UseProduct1_TEXT = component.find('UseProduct1_TEXT').get('v.value'); |
| | | var UseProduct3_TEXT = component.find('UseProduct3_TEXT').get('v.value'); |
| | | if(UseProduct1_TEXT != accname && UseProduct3_TEXT != accname){ |
| | | component.set("v.UseProduct2s", accname); |
| | | component.set("v.UseProduct2", accname); |
| | | }else{ |
| | | component.set('v.errorMessage', '不能选择同样的产品'); |
| | |
| | | var UseProduct3_List = component.find('UseProduct3_List'); |
| | | $A.util.removeClass(UseProduct3_List, 'slds-is-open'); |
| | | }, |
| | | hideSearchUseProduct3s: function (component, event, helper) { |
| | | var UseProduct3_List = component.find('UseProduct3_List'); |
| | | $A.util.removeClass(UseProduct3_List, 'slds-is-open'); |
| | | component.set("v.UseProduct3", ''); |
| | | component.set("v.UseProduct3s", ''); |
| | | component.set('v.UseProduct3Id', ''); |
| | | component.set('v.data.UseProduct3__c', ''); |
| | | }, |
| | | seletUseProduct3Change: function (component, event, helper) { |
| | | var UseProduct3_List = component.find('UseProduct3_List'); |
| | | $A.util.removeClass(UseProduct3_List, 'slds-is-open'); |
| | |
| | | var UseProduct1_TEXT = component.find('UseProduct1_TEXT').get('v.value'); |
| | | var UseProduct2_TEXT = component.find('UseProduct2_TEXT').get('v.value'); |
| | | if(UseProduct1_TEXT != accname && UseProduct2_TEXT != accname ){ |
| | | component.set("v.UseProduct3s", accname); |
| | | component.set("v.UseProduct3", accname); |
| | | }else{ |
| | | component.set('v.errorMessage', '不能选择同样的产品'); |
| | |
| | | } |
| | | |
| | | }, |
| | | //hospitalLinkId 经销商医院的ID 医院人员复制的地方 |
| | | //hospitalLinkId 经销商医院的ID 拜访人复制的地方 |
| | | doctor_change: function (component, event, helper) { |
| | | debugger |
| | | var doctorurpose = component.find('select_purpose_type').get('v.value'); |
| | | var doctor_value = component.find('select_doctor').get('v.value'); |
| | | var doctor_list = component.get('v.doctor_list'); |
| | | var flg = false; |
| | | for (var i = 0; i < doctor_list.length; i++) { |
| | | if (doctor_list[i].value == doctor_value) { |
| | | component.set('v.doctor_title', doctor_list[i].Doctor_Division1__c); |
| | | flg = true; |
| | | break; |
| | | if(doctor_list){ |
| | | for (var i = 0; i < doctor_list.length; i++) { |
| | | if (doctor_list[i].value == doctor_value) { |
| | | if(doctorurpose == '科室会'){ |
| | | // component.set('v.doctor_title', doctor_list[i].Doctor_Division1__c); |
| | | }else{ |
| | | component.set('v.doctor_title', doctor_list[i].Doctor_Division1__c); |
| | | } |
| | | flg = true; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | if (flg == false) { |
| | | component.set('v.doctor_title', ''); |
| | | } |
| | | }, |
| | | //SWAG-CF58C3 fy start 调用pi |
| | | set_aws_url : function(component,sobject) { |
| | | var action = component.get('c.getAwsurl'); |
| | | action.setParams({ |
| | | "sobj" : sobject, |
| | | }); |
| | | action.setCallback(this,function(response){ |
| | | var state = response.getState(); |
| | | if(state == 'SUCCESS'){ |
| | | var awsmap = this.conv_selected(response.getReturnValue()); |
| | | component.set('v.AWStoken',awsmap.token); |
| | | component.set('v.AWSinsert',awsmap.newUrl); |
| | | component.set('v.AWSsearch',awsmap.searchUrl); |
| | | component.set('v.AWStransactionURL',awsmap.transactionURL); |
| | | } |
| | | else{ |
| | | component.set('v.errorMessage', 'AWS url/token error.'); |
| | | this.showErrorToast(component); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | }, |
| | | |
| | | insert_agencycontact : function(component,token,newUrl,payload,agencyHospitalid,helper,hospitalName) { |
| | | fetch(newUrl, { |
| | | method: 'POST', |
| | | body: payload, |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | 'pi-token': token |
| | | } |
| | | }).then((data) => { |
| | | return data.json(); |
| | | }).then((result) => { |
| | | if(result.status == '0'){ |
| | | $A.getCallback(function(){ |
| | | helper.to_agencycontact(component,result,agencyHospitalid); |
| | | })(); |
| | | }else{ |
| | | console.log('AWS status error:' + result) |
| | | component.set('v.login',false); |
| | | if(result.status == '129'){ |
| | | component.find('OppMessage').setError('该客户人员名字已存在,在'+hospitalName+'医院,请修改'); |
| | | }else{ |
| | | component.find('OppMessage').setError('AWS insert error.'); |
| | | } |
| | | } |
| | | }).catch(error => { |
| | | console.log('AWS insert error:' + error) |
| | | component.set('v.login',false); |
| | | component.find('OppMessage').setError('AWS insert error.'); |
| | | }); |
| | | |
| | | }, |
| | | |
| | | to_agencycontact : function(component,result,agencyHospitalid) { |
| | | var action = component.get('c.saveAgencyContact'); |
| | | action.setParams({ |
| | | "name" : result.object[0].name, |
| | | //"nameEncrypt" : result.object[0].nameEncrypt, //zhj 新方案改造 2023-12-21 |
| | | "type" : result.object[0].type, |
| | | //"typeEncrypt" : result.object[0].typeEncrypt, //zhj 新方案改造 2023-12-21 |
| | | "doctorDivision1" : result.object[0].doctorDivision1, |
| | | //"doctorDivision1Encrypt" : result.object[0].doctorDivision1Encrypt, //zhj 新方案改造 2023-12-21 |
| | | "agencyHospitalid" : agencyHospitalid, |
| | | "awsid" : result.object[0].dataId, |
| | | }); |
| | | action.setCallback(this,function(response){ |
| | | var state = response.getState(); |
| | | if(state == 'SUCCESS'){ |
| | | var acMap = this.conv_selected(response.getReturnValue()); |
| | | console.log(acMap); |
| | | if(acMap.AgencyContactId != ''){ |
| | | //确认事务 |
| | | var token = component.get('v.AWStoken'); |
| | | var confirmUrl = component.get('v.AWStransactionURL'); |
| | | |
| | | let data = Object.create(null); |
| | | data['isSuccess'] = 1; |
| | | data['sfRecordId'] = ''; |
| | | data['txId'] = result.txId; |
| | | |
| | | this.to_confirm(component,token,confirmUrl,JSON.stringify(data)); |
| | | }else if(acMap.errormsg != ''){ |
| | | component.set('v.errorMessage', acMap.errormsg); |
| | | this.showErrorToast(component); |
| | | component.set('v.login',false); |
| | | }else { |
| | | component.set('v.errorMessage', 'agency contact insert id error.'); |
| | | this.showErrorToast(component); |
| | | component.set('v.login',false); |
| | | } |
| | | } |
| | | else{ |
| | | component.set('v.errorMessage', 'agency contact insert error.'); |
| | | this.showErrorToast(component); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | }, |
| | | |
| | | to_confirm : function(component,token,confirmUrl,payload,event) { |
| | | fetch(confirmUrl, { |
| | | method: 'POST', |
| | | body: payload, |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | 'pi-token': token |
| | | } |
| | | }).then((data) => { |
| | | return data.json(); |
| | | }).then((result) => { |
| | | if(result.status == '0' && result.hasOwnProperty('success') && result.success){ |
| | | // component.set('v.truthy', false); |
| | | // var modal_newAC = component.find('modal_newAC') |
| | | // $A.util.addClass(modal_newAC, 'disp_none'); |
| | | // this.success('.客户人员已创建。'); |
| | | // this.set_doctor_list(component); |
| | | |
| | | component.set('v.truthy', false); |
| | | var modal_newAC = component.find('modal_newAC') |
| | | $A.util.addClass(modal_newAC, 'disp_none'); |
| | | component.set('v.successMessage', '.拜访人已创建。'); |
| | | this.showSuccessToast(component); |
| | | this.set_doctor_list(component); |
| | | }else { |
| | | component.set('v.errorMessage', 'AWS confirm error.'); |
| | | this.showErrorToast(component); |
| | | component.set('v.login',false); |
| | | } |
| | | }).catch(error => { |
| | | component.set('v.errorMessage', 'AWS confirm error.'); |
| | | this.showErrorToast(component); |
| | | component.set('v.login',false); |
| | | }); |
| | | }, |
| | | //SWAG-CF58C3 fy end 调用pi |
| | | |
| | | set_doctor_list: function (component) { |
| | | var doctor_value = component.find('select_purpose_type').get('v.value'); |
| | | var hospital_id = component.get('v.hospitalLinkId'); |
| | | if (hospital_id) { |
| | | component.set('v.login', true); |
| | | var action = component.get('c.getDoctorList'); |
| | | action.setParams({ |
| | | "hospital_id": hospital_id, |
| | | }); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == 'SUCCESS') { |
| | | var res = this.conv_selected(response.getReturnValue()); |
| | | var default_doctor = component.get('v.default_select_doctor_id'); |
| | | if (default_doctor != '' && res.length > 0) { |
| | | var doctor_title = ''; |
| | | for (var i = 0; i < res.length; i++) { |
| | | if (res[i].value == default_doctor) { |
| | | res[i].selected = true; |
| | | doctor_title = res[i].Doctor_Division1__c; |
| | | } else { |
| | | res[i].selected = false; |
| | | if(doctor_value == '科室会'){ |
| | | component.set('v.login', true); |
| | | this.set_doctor_list2(component); |
| | | }else{ |
| | | component.set('v.login', true); |
| | | var action = component.get('c.getDoctorList'); |
| | | action.setParams({ |
| | | "hospital_id": hospital_id, |
| | | }); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == 'SUCCESS') { |
| | | debugger; |
| | | var res = this.conv_selected(response.getReturnValue()); |
| | | //fy |
| | | var setdoctorlisthos = component.get('v.setdoctorlisthos'); |
| | | if(setdoctorlisthos){ |
| | | component.set('v.default_select_doctor_id', ''); |
| | | component.set('v.setdoctorlisthos', false); |
| | | } |
| | | //fy |
| | | var default_doctor = component.get('v.default_select_doctor_id'); |
| | | if (default_doctor != '' && res.length > 0) { |
| | | var doctor_title = ''; |
| | | let awsids = []; |
| | | for (var i = 0; i < res.length; i++) { |
| | | if (res[i].value == default_doctor) { |
| | | res[i].selected = true; |
| | | doctor_title = res[i].Doctor_Division1__c; |
| | | } else { |
| | | res[i].selected = false; |
| | | } |
| | | if(res[i].AWS_Data_Id__c){ |
| | | awsids.push(res[i].AWS_Data_Id__c); |
| | | } |
| | | } |
| | | component.find('select_doctor').set('v.options', res); |
| | | component.set('v.doctor_title', doctor_title); |
| | | |
| | | if(awsids.length > 0){ |
| | | let PIConfig = component.get('v.PIConfig'); |
| | | let staticResourceAgencyContact = JSON.parse(PIConfig.staticResourceAgencyContact); |
| | | AWSService.search(staticResourceAgencyContact.searchUrl,{ |
| | | dataIds:awsids |
| | | }, function(data){ |
| | | if(data && data.object && data.object.length){ |
| | | let m = {}; |
| | | for(let di in data.object){ |
| | | if(data.object[di] && data.object[di].dataId){ |
| | | m[data.object[di].dataId] = data.object[di]; |
| | | } |
| | | } |
| | | |
| | | for(let ri in res){ |
| | | if(res[ri] && res[ri].AWS_Data_Id__c && m.hasOwnProperty(res[ri].AWS_Data_Id__c)){ |
| | | res[ri].label = m[res[ri].AWS_Data_Id__c].name; |
| | | } |
| | | } |
| | | component.find('select_doctor').set('v.options', res); |
| | | } |
| | | |
| | | component.set('v.login', false); |
| | | }, staticResourceAgencyContact.token); |
| | | } |
| | | } else { |
| | | let awsids = []; |
| | | for (var i = 0; i < res.length; i++) { |
| | | if(res[i].AWS_Data_Id__c){ |
| | | awsids.push(res[i].AWS_Data_Id__c); |
| | | } |
| | | } |
| | | component.find('select_doctor').set('v.options', res); |
| | | if(awsids.length > 0){ |
| | | let PIConfig = component.get('v.PIConfig'); |
| | | let staticResourceAgencyContact = JSON.parse(PIConfig.staticResourceAgencyContact); |
| | | AWSService.search(staticResourceAgencyContact.searchUrl,{ |
| | | dataIds:awsids |
| | | }, function(data){ |
| | | if(data && data.object && data.object.length){ |
| | | let m = {}; |
| | | for(let di in data.object){ |
| | | if(data.object[di] && data.object[di].dataId){ |
| | | m[data.object[di].dataId] = data.object[di]; |
| | | } |
| | | } |
| | | |
| | | for(let ri in res){ |
| | | if(res[ri] && res[ri].AWS_Data_Id__c && m.hasOwnProperty(res[ri].AWS_Data_Id__c)){ |
| | | res[ri].label = m[res[ri].AWS_Data_Id__c].name; |
| | | } |
| | | } |
| | | component.find('select_doctor').set('v.options', res); |
| | | } |
| | | |
| | | component.set('v.login', false); |
| | | }, staticResourceAgencyContact.token); |
| | | } |
| | | // component.find('select_doctor').set('v.options', res); |
| | | if (res.length > 0) { |
| | | component.set('v.doctor_title', res[0].Doctor_Division1__c); |
| | | } |
| | | } |
| | | component.find('select_doctor').set('v.options', res); |
| | | component.set('v.doctor_title', doctor_title); |
| | | } else { |
| | | component.find('select_doctor').set('v.options', res); |
| | | if (res.length > 0) { |
| | | component.set('v.doctor_title', res[0].Doctor_Division1__c); |
| | | // component.set('v.default_select_doctor_id', ''); |
| | | debugger |
| | | component.set('v.doctor_list', res); |
| | | component.set('v.login', false); |
| | | } |
| | | else { |
| | | component.set('v.errorMessage', 'set_doctor_list failed.'); |
| | | this.showErrorToast(component); |
| | | component.set('v.login', false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | } |
| | | |
| | | }else{ |
| | | if(doctor_value == '科室会'){ |
| | | this.set_doctor_list2(component); |
| | | }else{ |
| | | component.find('select_doctor').set('v.options', ''); |
| | | } |
| | | } |
| | | },//fy 20220414 |
| | | set_doctor_list2:function (component) { |
| | | var action1 = component.get('c.selectdoctor3c'); |
| | | action1.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == 'SUCCESS') { |
| | | var res = response.getReturnValue(); |
| | | debugger |
| | | for (var i = 0; i < res.length; i++) { |
| | | if (res[i].selected == 'true') { |
| | | res[i].selected = true; |
| | | } else { |
| | | res[i].selected = false; |
| | | } |
| | | } |
| | | component.set('v.default_select_doctor_id', ''); |
| | | component.set('v.doctor_list', res); |
| | | component.set('v.login', false); |
| | | } |
| | | else { |
| | | component.set('v.errorMessage', 'set_doctor_list failed.'); |
| | | this.showErrorToast(component); |
| | | debugger |
| | | component.find('select_doctor').set('v.options', res); |
| | | var doctor3value = component.get('v.default_select_doctor_id2'); |
| | | this.set_selected(component, 'select_doctor', doctor3value); |
| | | component.set('v.login', false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | } |
| | | $A.enqueueAction(action1); |
| | | }, |
| | | productcategoryChange1: function (component, event, helper) { |
| | | var product_category_id = component.find('select_Product1').get('v.value'); |
| | |
| | | return obj; |
| | | }, |
| | | set_selected: function (component, aura_id_name, value) { |
| | | debugger; |
| | | var select_tmp = component.find(aura_id_name).get('v.options'); |
| | | if (select_tmp) { |
| | | for (var i = 0; i < select_tmp.length; i++) { |
| | |
| | | }, |
| | | //弹出 成功提示 |
| | | showSuccessToast: function (component) { |
| | | debugger |
| | | $A.util.removeClass(component.find('successDiv'), 'slds-hide'); |
| | | window.setTimeout($A.getCallback(function () { |
| | | $A.util.addClass(component.find('successDiv'), 'slds-hide'); |
| | |
| | | }, |
| | | //弹出 成功提示 |
| | | showSuccessToast01: function (component) { |
| | | debugger |
| | | $A.util.removeClass(component.find('successDiv01'), 'slds-hide'); |
| | | window.setTimeout($A.getCallback(function () { |
| | | $A.util.addClass(component.find('successDiv01'), 'slds-hide'); |
| | |
| | | }, |
| | | //弹出 错误提示 |
| | | showErrorToast: function (component) { |
| | | debugger |
| | | $A.util.removeClass(component.find('errorDiv'), 'slds-hide'); |
| | | window.setTimeout($A.getCallback(function () { |
| | | $A.util.addClass(component.find('errorDiv'), 'slds-hide'); |
| | | }), |
| | | 3000 |
| | | ); |
| | | }, |
| | | //弹出 错误提示 |
| | | showErrorToast01: function (component) { |
| | | debugger |
| | | $A.util.removeClass(component.find('errorDiv01'), 'slds-hide'); |
| | | window.setTimeout($A.getCallback(function () { |
| | | $A.util.addClass(component.find('errorDiv01'), 'slds-hide'); |
| | | }), |
| | | 6000 |
| | | ); |
| | | }, |
| | | error: function (message) { |
| | |
| | | component.set('v.truthy', false); |
| | | var modal_newAC = component.find('modal_newAC') |
| | | $A.util.addClass(modal_newAC, 'disp_none'); |
| | | component.set('v.successMessage', '.医院人员已创建。'); |
| | | component.set('v.successMessage', '.拜访人已创建。'); |
| | | this.showSuccessToast(component); |
| | | this.set_doctor_list(component, event, helper); |
| | | }, |
| | |
| | | component.set('v.truthy', false); |
| | | var modal_newAC = component.find('modal_newAC') |
| | | $A.util.addClass(modal_newAC, 'disp_none'); |
| | | component.find('OppMessage').setError(''); |
| | | }, |
| | | //科室赋值 |
| | | setOpportunity_cfilter: function (component) { |
| | |
| | | if (opportunity_cfilter != '' && opportunity_cfilter != null) { |
| | | opportunity_cfilter += ' AND '; |
| | | } |
| | | // fy Department_Cateogy_text__c |
| | | opportunity_cfilter += 'Department_Cateogy__c=' + '\'' + Department_Cateogy__c + '\''; |
| | | // opportunity_cfilter += 'Department_Cateogy_text__c=' + '\'' + Department_Cateogy__c + '\''; |
| | | } |
| | | component.set('v.opportunity_cfilter', opportunity_cfilter); |
| | | }, |
| | |
| | | }; |
| | | reader.readAsDataURL(file); |
| | | }, |
| | | |
| | | // fy 调用pi改造的 获取url 和 token的方法 |
| | | search_contact_url : function(component, sobject, callback) { |
| | | var action = component.get("c.getAwsurl"); |
| | | action.setParams({ |
| | | sobj : sobject |
| | | }); |
| | | action.setCallback(this,function(response){ |
| | | var state = response.getState(); |
| | | if(state == 'SUCCESS'){ |
| | | var result = response.getReturnValue(); |
| | | if(callback)callback(result); |
| | | } |
| | | else{ |
| | | component.set('v.errorMessage', 'AWS url/token error.'); |
| | | this.showErrorToast01(component); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | }, |
| | | // fy 调用pi改造的 获取.客户人员的方法 |
| | | search_core: function (token, searchUrl, payload, callback, component) { |
| | | console.log('searchUrl = ' + searchUrl); |
| | | fetch(searchUrl, { |
| | | method: 'POST', |
| | | body: payload, |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | 'pi-token': token |
| | | } |
| | | }).then((data) => { |
| | | return data.json(); |
| | | }).then((result) => { |
| | | component.set('v.login',false); |
| | | if(callback)callback(result); |
| | | }).catch(error => { |
| | | console.log('AWS search error = ' + JSON.stringify(error)); |
| | | component.set('v.errorMessage', 'AWS search error.'); |
| | | this.showErrorToast01(component); |
| | | component.set('v.login',false); |
| | | }); |
| | | }, |
| | | saveRecords: function (component, event, helper) { |
| | | component.set('v.login', true); |
| | | //fy 导入 202200506 start |
| | | var action1 = component.get("c.processDataAWSId"); |
| | | action1.setParams({ |
| | | fileData : component.get("v.fileContentData"), |
| | | }); |
| | | action1.setCallback(this, function(response) { |
| | | var state = response.getState(); |
| | | if (state === "SUCCESS") { |
| | | debugger |
| | | var ress = response.getReturnValue(); |
| | | if(ress){ |
| | | var valur =ress.split('error1'); |
| | | if(valur.length<=1){ |
| | | var res = JSON.parse(response.getReturnValue()); |
| | | debugger |
| | | var dataArr = new Array(); |
| | | var dataMap = new Map(); |
| | | res.forEach(item => { |
| | | if(item.AWS_Data_Id__c){ |
| | | dataArr.push(item.AWS_Data_Id__c); |
| | | //dataMap.set(item.AWS_Data_Id__c,item.Name_Encrypted__c); //zhj 新方案改造 2022-12-21 |
| | | dataMap.set(item.AWS_Data_Id__c,item.AWS_Data_Id__c); |
| | | } |
| | | }); |
| | | debugger |
| | | let obj= Object.create(null); |
| | | obj['dataIds'] = dataArr; |
| | | var payload = JSON.stringify(obj); |
| | | this.search_contact_url(component, 'Agency_Contact__c', (result)=>{ |
| | | var token = result.token; |
| | | var searchUrl = result.searchUrl; |
| | | this.search_core(token,searchUrl,payload,(result)=>{ |
| | | if(result.status == '0'){ |
| | | if(result.object != null&&result.object.length != 0){ |
| | | component.set('v.login',true); |
| | | this.saveRecordsEditFile(component,dataMap,result.object,helper); |
| | | }else{ |
| | | component.set('v.errorMessage', 'AWS search status '); |
| | | this.showErrorToast01(component); |
| | | component.set('v.login',false); |
| | | } |
| | | }else{ |
| | | component.set('v.errorMessage', 'AWS search status : ' + result.status); |
| | | this.showErrorToast01(component); |
| | | component.set('v.login',false); |
| | | } |
| | | },component); |
| | | }); |
| | | }else{ |
| | | component.set('v.errorMessage', valur[1]+'\n'+"请修改后重新上传"); |
| | | this.showErrorToast01(component); |
| | | component.set('v.login',false); |
| | | } |
| | | } |
| | | } |
| | | }); |
| | | $A.enqueueAction(action1); |
| | | // var action = component.get("c.processData"); |
| | | // var fieldsList = ['Name', 'Phone', 'AccountNumber']; //Please write your code dynamic fields |
| | | // var filedata =component.get("v.fileContentData"); |
| | | // action.setParams({ |
| | | // fileData: filedata, |
| | | // sobjectName: 'Account', //Any object |
| | | // fields: fieldsList |
| | | // }); |
| | | // action.setCallback(this, function (response) { |
| | | // var state = response.getState(); |
| | | // if (state === "SUCCESS") { |
| | | // var res = response.getReturnValue(); |
| | | // var res1 = ''; |
| | | // if (res != 'success') { |
| | | // var ress = res.split('='); |
| | | // console.log(ress); |
| | | // for (var i = 0; i < ress.length; i++) { |
| | | // res1 += ress[i].substr(7) + '\n'; |
| | | // } |
| | | // console.log("==" + res1); |
| | | // component.set('v.errorMessage', res1 + "请修改后重新上传"); |
| | | // this.showErrorToast01(component); |
| | | // component.set('v.login', false); |
| | | // } else { |
| | | // component.set('v.successMessage', '导入成功'); |
| | | // this.showSuccessToast01(component); |
| | | // component.set("v.showMain", true); |
| | | // component.set('v.login', false); |
| | | // this.doinit(component, event, helper); |
| | | // } |
| | | // } |
| | | // else if (state === "INCOMPLETE") { |
| | | // component.set('v.login', false); |
| | | // } |
| | | // else if (state === "ERROR") { |
| | | // var errors = response.getError(); |
| | | // if (errors) { |
| | | // if (errors[0] && errors[0].message) { |
| | | // console.log("Error message: " + |
| | | // errors[0].message); |
| | | // component.set('v.login', false); |
| | | // } |
| | | // } else { |
| | | // console.log("Unknown error"); |
| | | // component.set('v.login', false); |
| | | // } |
| | | // } |
| | | // }); |
| | | // $A.enqueueAction(action); |
| | | |
| | | }, |
| | | saveRecordsEditFile : function(component,dataMap,searchData,helper){ |
| | | var searchDataMap = new Map(); |
| | | for (var i = 0; i < searchData.length; i++) { |
| | | var sd = searchData[i]; |
| | | searchDataMap.set(sd.name.replace(' ',''),sd.dataId); |
| | | } |
| | | console.log('searchDataMap='+searchDataMap); |
| | | var error = ''; |
| | | var fileData = component.get("v.fileContentData"); |
| | | fileData=this.ToCDB(fileData);//全角转半角 |
| | | var files = fileData.split('\n'); |
| | | |
| | | var fileStr = files[0]; |
| | | fileStr += '\n'; |
| | | |
| | | for (var i = 1; i < files.length-1; i++) { |
| | | if(files[i]){ |
| | | var filelist = files[i].split(','); |
| | | var fileName = filelist[5]; |
| | | var WorkRecord = filelist[4]; |
| | | if(WorkRecord == 'SIS'||WorkRecord == '院内入院申请'||WorkRecord == '收费项目申请'||WorkRecord == '科室会'){ |
| | | if(fileName){ |
| | | if(WorkRecord != '科室会'){ |
| | | if (searchDataMap.get(fileName.replace(' ',''))) { |
| | | var nameDataId = searchDataMap.get(fileName.replace(' ','')); |
| | | if (dataMap.get(nameDataId)) { |
| | | filelist[5] = dataMap.get(nameDataId); //zhj 新方案改造 filelist[5]不再存的nameEncrpt 2022-12-21 |
| | | }else { |
| | | error += 'error1 第'+i+'行数据拜访人SF不存在'; |
| | | } |
| | | }else { |
| | | error += 'error1 第'+i+'行数据拜访人AWS不存在'; |
| | | } |
| | | }else{ |
| | | if(filelist[5]!='医生'&&filelist[5]!='医生+护士'){//&&filelist[5]!='医生+护士' |
| | | error += 'error1 第'+i+'行数据拜访人不存在'; |
| | | } |
| | | } |
| | | }else{ |
| | | error += 'error1 第'+i+'行数据拜访人不能为空'; |
| | | } |
| | | }else{ |
| | | if(fileName){ |
| | | if(WorkRecord != '科室会'){ |
| | | if (searchDataMap.get(fileName.replace(' ',''))) { |
| | | var nameDataId = searchDataMap.get(fileName.replace(' ','')); |
| | | if (dataMap.get(nameDataId)) { |
| | | filelist[5] = dataMap.get(nameDataId); |
| | | }else { |
| | | error += 'error1 第'+i+'行数据拜访人SF不存在'; |
| | | } |
| | | }else { |
| | | error += 'error1 第'+i+'行数据拜访人AWS不存在'; |
| | | } |
| | | }else{ |
| | | if(filelist[5]!='医生'&&filelist[5]!='医生+护士'){//&&filelist[5]!='医生+护士' |
| | | error += 'error1 第'+i+'行数据拜访人不存在'; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | fileStr += filelist.toString(); |
| | | fileStr += '\n'; |
| | | } |
| | | } |
| | | |
| | | if (error != '') { |
| | | component.set('v.errorMessage', error); |
| | | this.showErrorToast01(component); |
| | | console.log('error='+error); |
| | | component.set('v.login',false); |
| | | return; |
| | | } |
| | | |
| | | console.log('fileStr='+fileStr); |
| | | $A.getCallback(function(){ |
| | | debugger |
| | | helper.ImportMethod(component,fileStr,helper); |
| | | })(); |
| | | |
| | | },ImportMethod : function(component,fileStr,helper){ |
| | | var action = component.get("c.processData"); |
| | | var fieldsList = ['Name', 'Phone', 'AccountNumber']; //Please write your code dynamic fields |
| | | // var filedata =component.get("v.fileContentData"); |
| | | action.setParams({ |
| | | fileData: component.get("v.fileContentData"), |
| | | fileData: fileStr, |
| | | sobjectName: 'Account', //Any object |
| | | fields: fieldsList |
| | | }); |
| | |
| | | } |
| | | console.log("==" + res1); |
| | | component.set('v.errorMessage', res1 + "请修改后重新上传"); |
| | | this.showErrorToast(component); |
| | | this.showErrorToast01(component); |
| | | component.set('v.login', false); |
| | | } else { |
| | | component.set('v.successMessage', '导入成功'); |
| | |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | |
| | | },//全角转半角 |
| | | ToCDB: function (str) { |
| | | var tmp = ""; |
| | | for (var i = 0; i < str.length; i++) { |
| | | if (str.charCodeAt(i) > 65248 && str.charCodeAt(i) < 65375) { |
| | | tmp += String.fromCharCode(str.charCodeAt(i) - 65248); |
| | | } |
| | | else { |
| | | tmp += String.fromCharCode(str.charCodeAt(i)); |
| | | } |
| | | } |
| | | return tmp |
| | | }, |
| | | //导出的CSV文件 |
| | | convertArrayOfObjectsToCSV: function (component, objectRecords) { |
| | |
| | | } |
| | | columnDivider = ','; |
| | | lineDivider = '\n'; |
| | | keys = ['Submit_date__c', 'Person_In_Charge2__c', 'Report_Date__c', 'Agency_Hospital__c','Department_Cateogy__c','DealerPersonnel__c','WorkRecord__c','doctor2__c','ProductClassification__c','UseProduct1__c', 'UseProduct2__c','UseProduct3__c', 'EffectProgress__c','ConsumptionOfConsumables__c', 'WarlockClassification__c', 'ProductCcategory__c', 'productCategories__c','warlocksNumber__c','WorkMark__c']; |
| | | thkeys = ['周', '担当', '活动日', '医院', '科室', '经销商人员', '工作记录', '医院人员','产品分类(第三分类)', '使用产品1(产品型号)', '使用产品2','使用产品3','效果/进度','科室同类耗材月使用量','术士分类','已采用其他品牌','其他品牌产品类别','产品用量','工作标记'] |
| | | keys = [ 'Report_Date__c', 'Agency_Hospital__c','Department_Cateogy_text__c','DealerPersonnel__c','WorkRecord__c','doctor2__c','ProductClassification__c','UseProduct1__c', 'UseProduct2__c','UseProduct3__c', 'EffectProgress__c','ConsumptionOfConsumables__c', 'WarlockClassification__c', 'ProductCcategory__c', 'productCategories__c','warlocksNumber__c','WorkMark__c']; |
| | | thkeys = ['活动日', '医院', '科室', '经销商人员', '活动区分', '拜访人','产品分类(第三分类)', '使用产品1(产品型号)', '使用产品2','使用产品3','效果/进度','产品1同类耗材科室月使用量','产品1对应术式分类','已采用其他品牌','其他品牌产品类别','产品用量','支援需求'] |
| | | csvStringResult = ''; |
| | | csvStringResult += thkeys.join(columnDivider); |
| | | csvStringResult += lineDivider; |
| | |
| | | } else if (skey == 'doctor2__c') { |
| | | csvStringResult += objectRecords[i].doctor2__r.Name; |
| | | } else if (skey == 'UseProduct1__c') { |
| | | csvStringResult += objectRecords[i].UseProduct1__r.Name; |
| | | csvStringResult += objectRecords[i].UseProduct1__r.Asset_Model_No__c; |
| | | } else if (skey == 'UseProduct2__c') { |
| | | csvStringResult += objectRecords[i].UseProduct2__r.Name; |
| | | csvStringResult += objectRecords[i].UseProduct2__r.Asset_Model_No__c; |
| | | } else if (skey == 'UseProduct3__c') { |
| | | csvStringResult += objectRecords[i].UseProduct3__r.Name; |
| | | } else if (skey == 'EffectProgress__c'){ |
| | | csvStringResult += objectRecords[i].EffectProgress__r.EffectProgress__c; |
| | | }else if (skey == 'WarlockClassification__c'){ |
| | | csvStringResult += objectRecords[i].WarlockClassification__r.WarlockClassification__c; |
| | | }else if(skey == 'ProductCcategory__c'){ |
| | | csvStringResult += objectRecords[i].ProductCcategory__r.ProductCcategory__c; |
| | | }else if(skey == 'productCategories__c'){ |
| | | csvStringResult += objectRecords[i].productCategories__r.productCategories__c; |
| | | csvStringResult += objectRecords[i].UseProduct3__r.Asset_Model_No__c; |
| | | }else{ |
| | | csvStringResult += objectRecords[i][skey] ; |
| | | } |
| | |
| | | // 导出页面显示的模板 |
| | | showExportDate: function (component, objectRecords) { |
| | | console.log('进入showexceportdate' + objectRecords); |
| | | var keys = ['Submit_date__c', 'Person_In_Charge2__c', 'Report_Date__c', 'Agency_Hospital__c','Department_Cateogy__c','DealerPersonnel__c','WorkRecord__c','doctor2__c','ProductClassification__c','UseProduct1__c', 'UseProduct2__c','UseProduct3__c', 'EffectProgress__c','ConsumptionOfConsumables__c', 'WarlockClassification__c', 'ProductCcategory__c','productCategories__c', 'warlocksNumber__c','WorkMark__c']; |
| | | var headers = ['周', '担当', '活动日', '医院', '科室', '经销商人员', '工作记录', '医院人员','产品分类(第三分类)', '使用产品1(产品型号)', '使用产品2','使用产品3','效果/进度','科室同类耗材月使用量','术士分类','已采用其他品牌','其他品牌产品类别','产品用量','工作标记'] |
| | | var keys = ['Report_Date__c', 'Agency_Hospital__c','Department_Cateogy_text__c','DealerPersonnel__c','WorkRecord__c','doctor2__c','ProductClassification__c','UseProduct1__c', 'UseProduct2__c','UseProduct3__c', 'EffectProgress__c','ConsumptionOfConsumables__c', 'WarlockClassification__c', 'ProductCcategory__c','productCategories__c', 'warlocksNumber__c','WorkMark__c']; |
| | | var headers = ['活动日', '医院', '科室', '经销商人员', '活动区分', '拜访人','产品分类(第三分类)', '使用产品1(产品型号)', '使用产品2','使用产品3','效果/进度','产品1同类耗材科室月使用量','产品1对应术式分类','已采用其他品牌','其他品牌产品类别','产品用量','支援需求'] |
| | | var content = "<table class=\"table slds-table slds-table--bordered slds-table--cell-buffer\">"; |
| | | content += "<thead><tr class=\"slds-text-title--caps\">"; |
| | | for (i = 0; i < headers.length; i++) { |
| | |
| | | } else if (skey == 'doctor2__c') { |
| | | content += '<td>' + objectRecords[i].doctor2__r.Name + '</td>'; |
| | | } else if (skey == 'UseProduct1__c') { |
| | | content += '<td>' + objectRecords[i].UseProduct1__r.Name + '</td>'; |
| | | content += '<td>' + objectRecords[i].UseProduct1__r.Asset_Model_No__c + '</td>'; |
| | | } else if (skey == 'UseProduct2__c') { |
| | | content += '<td>' + objectRecords[i].UseProduct2__r.Name + '</td>'; |
| | | content += '<td>' + objectRecords[i].UseProduct2__r.Asset_Model_No__c + '</td>'; |
| | | } else if (skey == 'UseProduct3__c') { |
| | | content += '<td>' + objectRecords[i].UseProduct3__r.Name + '</td>'; |
| | | } else if (skey == 'EffectProgress__c'){ |
| | | content += '<td>' + objectRecords[i].EffectProgress__r.EffectProgress__c + '</td>'; |
| | | }else if (skey == 'WarlockClassification__c'){ |
| | | content += '<td>' + objectRecords[i].WarlockClassification__r.WarlockClassification__c + '</td>'; |
| | | }else if (skey == 'ProductCcategory__c'){ |
| | | content += '<td>' + objectRecords[i].ProductCcategory__r.ProductCcategory__c + '</td>'; |
| | | }else if (skey == 'productCategories__c'){ |
| | | content += '<td>' + objectRecords[i].productCategories__r.productCategories__c + '</td>'; |
| | | content += '<td>' + objectRecords[i].UseProduct3__r.Asset_Model_No__c + '</td>'; |
| | | }else{ |
| | | content += '<td>' + objectRecords[i][skey] + '</td>'; |
| | | } |
| | |
| | | var res = response.getReturnValue(); |
| | | console.log('输入的开始日期3' + res); |
| | | component.set('v.login', false); |
| | | this.showExportDate(component, res); |
| | | |
| | | // PI 改造 By Bright 20220328 |
| | | if(true){ |
| | | let awsids = []; |
| | | for (let ri in res) { |
| | | if(res[ri] && res[ri].doctor2__r && res[ri].doctor2__r.AWS_Data_Id__c){ |
| | | awsids.push(res[ri].doctor2__r.AWS_Data_Id__c); |
| | | } |
| | | } |
| | | if(awsids.length > 0){ |
| | | let PIConfig = component.get('v.PIConfig'); |
| | | let staticResourceAgencyContact = JSON.parse(PIConfig.staticResourceAgencyContact); |
| | | AWSService.search(staticResourceAgencyContact.searchUrl,{ |
| | | dataIds:awsids |
| | | }, function(data){ |
| | | if(data && data.object && data.object.length){ |
| | | let m = {}; |
| | | for(let di in data.object){ |
| | | if(data.object[di] && data.object[di].dataId){ |
| | | m[data.object[di].dataId] = data.object[di]; |
| | | } |
| | | } |
| | | |
| | | for(let ri in res){ |
| | | if(res[ri] && res[ri].doctor2__r && res[ri].doctor2__r.AWS_Data_Id__c && m.hasOwnProperty(res[ri].doctor2__r.AWS_Data_Id__c)){ |
| | | res[ri].doctor2__r.Name = m[res[ri].doctor2__r.AWS_Data_Id__c].name; |
| | | } |
| | | } |
| | | } |
| | | helper.showExportDate(component, res); |
| | | |
| | | component.set('v.login', false); |
| | | }, staticResourceAgencyContact.token); |
| | | }else{ |
| | | helper.showExportDate(component, res); |
| | | } |
| | | } |
| | | |
| | | |
| | | component.set('v.reports_date', res); |
| | | } else { |
| | | alert('导出失败,请检查活动日'); |
| | |
| | | if(sc.replace(/\D/gi,"")){ |
| | | component.set("v.select_ConsumptionOfConsumables",sc); |
| | | }else{ |
| | | component.set('v.errorMessage', '必须输入数字!'); |
| | | component.set('v.errorMessage', '产品1同类耗材科室月使用量必须输入数字!'); |
| | | this.showErrorToast(component); |
| | | } |
| | | }else{ |
| | | component.set('v.errorMessage', '最多输入14为数字!'); |
| | | component.set('v.errorMessage', '产品1同类耗材科室月使用量最多输入14位数字!'); |
| | | this.showErrorToast(component); |
| | | } |
| | | } |
| | |
| | | if(sc.replace(/\D/gi,"")){ |
| | | component.set("v.select_warlocksNumber",sc); |
| | | }else{ |
| | | component.set('v.errorMessage', '必须输入数字!'); |
| | | component.set('v.errorMessage', '产品用量必须输入数字!'); |
| | | this.showErrorToast(component); |
| | | } |
| | | }else{ |
| | | component.set('v.errorMessage', '最多输入14为数字!'); |
| | | component.set('v.errorMessage', '产品用量最多输入14位数字!'); |
| | | this.showErrorToast(component); |
| | | } |
| | | } |
| | | }, |
| | | //工作会记录 |
| | | selectPurposeType: function (component,event,helper) { |
| | | debugger |
| | | var doctor_value = component.find('select_purpose_type').get('v.value'); |
| | | alert(doctor_value); |
| | | // alert(doctor_value); |
| | | if(doctor_value!='科室会'){ |
| | | component.find('new_con').set('v.disabled', false); |
| | | }else{ |
| | | component.find('new_con').set('v.disabled', true); |
| | | } |
| | | if(doctor_value != ''){ |
| | | var action = component.get('c.selectPurposeTypes'); |
| | | action.setParams({ |
| | | 'doctor_value': doctor_value |
| | | }); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == 'SUCCESS') { |
| | | var res = response.getReturnValue(); |
| | | component.find('select_EffectProgress').set("v.options", JSON.parse(JSON.stringify(res))); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | }else{ |
| | | component.find('select_EffectProgress').set('v.options', []); |
| | | } |
| | | this.set_doctor_list(component); |
| | | var action = component.get('c.selectPurposeTypes'); |
| | | action.setParams({ |
| | | 'doctor_value': doctor_value |
| | | }); |
| | | action.setCallback(this, function (response) { |
| | | var state = response.getState(); |
| | | if (state == 'SUCCESS') { |
| | | var res = response.getReturnValue(); |
| | | component.find('select_EffectProgress').set("v.options", JSON.parse(JSON.stringify(res))); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | }else{ |
| | | component.find('select_EffectProgress').set('v.options', []); |
| | | } |
| | | }, |
| | | |
| | | selectProductClassification: function (component,event,helper) { |
| | | debugger |
| | | var select_ProductClassification = component.find('select_ProductClassification').get('v.value'); |
| | | if(select_ProductClassification != ''){ |
| | | var action = component.get('c.selectProductClassificationc'); |
| | |
| | | }, |
| | | select_ProductCcategory: function (component,event,helper) { |
| | | var select_ProductCcategory = component.find('select_ProductCcategory').get('v.value'); |
| | | debugger |
| | | if(select_ProductCcategory != ''){ |
| | | var result = component.find('result'); |
| | | var UserProType = component.get('v.UserProType'); |
| | | //fy |
| | | $A.util.removeClass(result, 'disp_none'); |
| | | if(UserProType=='ENG'){ |
| | | $A.util.removeClass(result, 'disp_none'); |
| | | }else{ |
| | | $A.util.addClass(result, 'disp_none'); |
| | | } |
| | | var action = component.get('c.selectProductCcategory01'); |
| | | action.setParams({ |
| | | "select_ProductCcategory": select_ProductCcategory |
| | |
| | | }, |
| | | selectpurposetype : function(component,event,helper){ |
| | | var select_ProductCcategory = component.find('select_ProductCcategory').get('v.value'); |
| | | if (select_ProductCcategory == null && select_ProductCcategory == undefined) { |
| | | if (select_ProductCcategory == null && select_ProductCcategory == undefined && select_ProductCcategory == '') { |
| | | var result = component.find('result'); |
| | | $A.util.removeClass(result, 'disp_none'); |
| | | // $A.util.removeClass(result, 'disp_none'); |
| | | if(UserProType=='ENG'){ |
| | | $A.util.removeClass(result, 'disp_none'); |
| | | }else{ |
| | | $A.util.addClass(result, 'disp_none'); |
| | | } |
| | | } else { |
| | | debugger |
| | | component.find('select_productCategories').set('v.value', ''); |
| | | var result = component.find('result'); |
| | | $A.util.addClass(result, 'disp_none'); |
| | | this.select_ProductCcategory(component); |
| | | $A.util.addClass(result, 'disp_none'); |
| | | this.select_ProductCcategory(component); |
| | | } |
| | | }, |
| | | //zhj MEBG新方案改造 2022-11-29 start |
| | | CallBackAction : function(component,action_name,para,callback) { |
| | | var action = component.get("c." + action_name.trimStart().replace("c.","")); |
| | | if(para){ |
| | | action.setParams(para); |
| | | } |
| | | if(callback){ |
| | | action.setCallback(this,function(data){ |
| | | callback(data); |
| | | }); |
| | | } |
| | | |
| | | $A.enqueueAction(action); |
| | | }, |
| | | //zhj MEBG新方案改造 2022-11-29 end |
| | | }) |
| | |
| | | <!-- It will display 100 records . Change for your requirement--> |
| | | <aura:attribute name="NumOfRecords" type="Integer" default="1000"/> |
| | | <aura:attribute name="showMain" type="Boolean" default="true"/> |
| | | <!-- PIPL update Yin Mingjie 21/02/2022 start --> |
| | | <aura:attribute name="AWStoken" type="String"/> |
| | | <aura:attribute name="AWSsearch" type="String"/> |
| | | <aura:attribute name="AWSinsert" type="String"/> |
| | | <aura:attribute name="AWStransactionURL" type="String"/> |
| | | <aura:attribute name="AWSDoctor2Map" type="String"/> |
| | | <aura:attribute name="awsurl" type="Map"/> |
| | | <aura:attribute name="contactawsurl" type="Map"/> |
| | | <aura:attribute name="allselectlistAgencyPerson" type="Map"/> |
| | | <!-- PIPL update Yin Mingjie 21/02/2022 end --> |
| | | <!-- 批量添加周报 end--> |
| | | |
| | | <ltng:require scripts="{! $Resource.AWSService+'/AWSService.js' }" /> |
| | | <ltng:require scripts="{! $Resource.jquery183minjs }" /> |
| | | |
| | | <!--ロード中...--> |
| | | <aura:renderIf isTrue="{!v.login}"> |
| | | <div class="slds-spinner_container height100vh"> |
| | | <div class="slds-spinner--brand slds-spinner slds-spinner--medium" role="alert"> |
| | | <span class="slds-assistive-text">Loading</span> |
| | | <span id="aa" class="slds-assistive-text">Loading</span> |
| | | <div class="slds-spinner__dot-a"></div> |
| | | <div class="slds-spinner__dot-b"></div> |
| | | </div> |
| | |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.Department_Cateogy__c}</span> |
| | | </th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.doctor2__c}</span> |
| | | <!-- PIPL update Yin Mingjie 21/02/2022 start |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.doctor2__r}</span> |
| | | PIPL update Yin Mingjie 21/02/2022 end--> |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.Agency_Contact__c}</span> |
| | | |
| | | </th> |
| | | <th class="table_header slds-text-title--caps"> |
| | | <span class="slds-truncate" title="Name">{!v.fieldsmap.visitor_title__c}</span> |
| | |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span class="slds-truncate" title="{!item.Person_In_Charge2__r.Name}">{!item.Person_In_Charge2__r.Name}</span> |
| | | <span class="slds-truncate" title="{!item.Person_In_Charge2__r.Name}"> |
| | | {!item.Person_In_Charge2__r.Name} |
| | | <!-- <span class="decrypt">{!item.Person_In_Charge2__r.awsdata.lastName}</span> --> |
| | | </span> |
| | | </span> |
| | | </td> |
| | | <th scope="row" tabindex="0" class="slds-cell-edit"> |
| | |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span class="slds-truncate" title="{!item.doctor2__r.Name}">{!item.doctor2__r.Name}</span> |
| | | <span class="slds-truncate" title="{!item.doctor2__r.Name}"> |
| | | <span class="encrypt">{!item.doctor2__r.Name}</span> |
| | | <span class="decrypt">{!item.doctor2__r.awsdata.name}</span> |
| | | </span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span class="slds-truncate" title="{!item.visitor_title__c}">{!item.visitor_title__c}</span> |
| | | <span class="slds-truncate" title="{!item.visitor_title__c}"> |
| | | <span class="encrypt">{!item.visitor_title__c}</span> |
| | | <span class="decrypt">{!item.doctor2__r.awsdata.doctorDivision1}</span> |
| | | </span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-8"> |
| | | {!v.fieldsmap.visitor_title__c} |
| | | <div>{!v.doctor_title}</div> |
| | | </div> |
| | | </div> |
| | | <!-- 活动区分 --> |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6"> |
| | | {!v.fieldsmap.Purpose_Type__c} |
| | |
| | | <ui:inputSelect aura:id="select_Product3" class="slds-select" change="{!c.productcategoryChange3}"/> |
| | | </div> |
| | | <!--SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 start--> |
| | | <!-- 支援需求 --> |
| | | <!-- 支援需求 change="{!c.SupportNeeds__c}"--> |
| | | <div class="slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--1-of-5 slds-large-size--1-of-6"> |
| | | {!v.fieldsmap.SupportNeeds__c} |
| | | <ui:inputSelect aura:id="SupportNeeds__c" class="slds-select" change="{!c.SupportNeeds__c}"/> |
| | | <ui:inputSelect aura:id="SupportNeeds__c" class="slds-select" /> |
| | | </div> |
| | | <!--SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 end--> |
| | | <div aura:id="result" class="disp_none slds-p-horizontal--small slds-size--1-of-1 slds-medium-size--3-of-12 slds-large-size--3-of-12"> |
| | |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span class="slds-truncate" title="{!item.doctor2__r.Name}">{!item.doctor2__r.Name}</span> |
| | | <span class="slds-truncate" title="{!item.doctor2__r.Name}"> |
| | | <span class="encrypt">{!item.doctor2__r.Name}</span> |
| | | <span class="decrypt">{!item.doctor2NameOrigin}</span> |
| | | </span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | | <span class="slds-grid slds-grid--align-spread"> |
| | | <span class="slds-truncate" title="{!item.visitor_title__c}">{!item.visitor_title__c}</span> |
| | | <span class="slds-truncate" title="{!item.visitor_title__c}"> |
| | | <span class="encrypt">{!item.visitor_title__c}</span> |
| | | <span class="decrypt">{!item.visitorTitleOrigin}</span> |
| | | </span> |
| | | </span> |
| | | </td> |
| | | <td role="gridcell" class="slds-cell-edit"> |
| | |
| | | <lightning:messages aura:id="OppMessage" /> |
| | | <!-- onload="{!c.showRequiredFields}" --> |
| | | <aura:renderIf isTrue="{!v.truthy}"> |
| | | <lightning:inputField fieldName="Name"/> |
| | | <lightning:inputField fieldName="Name" aura:id="newOpportunityField" /> |
| | | <lightning:inputField fieldName="Type__c" aura:id="newOpportunityField" /> |
| | | <lightning:inputField fieldName="Doctor_Division1__c" aura:id="newOpportunityField" /> |
| | | <!-- <lightning:inputField class="customRequired none" aura:id="Input_type__c" fieldName="Type__c"/> |
| | |
| | | <br/> |
| | | <div class="save_button_area"> |
| | | <lightning:button class="slds-m-top_small" type="button" label="取消" onclick="{!c.createCancel}"/> |
| | | <lightning:button class="slds-m-top_small" type="submit" label="新建" /> |
| | | <lightning:button class="slds-m-top_small" type="submit" label="保存" /> |
| | | </div> |
| | | </lightning:recordEditForm> |
| | | </div> |
| | |
| | | } |
| | | .THIS .none{ |
| | | display:none; |
| | | } |
| | | |
| | | .THIS tr .decrypt{ |
| | | display: none; |
| | | } |
| | | |
| | | .THIS tr:hover .decrypt{ |
| | | display: unset; |
| | | } |
| | | |
| | | .THIS tr:hover .encrypt{ |
| | | display: none; |
| | | } |
| | |
| | | ({ |
| | | doInit : function(component, event, helper) { |
| | | console.log('zhj 新方案'); |
| | | if (window.location.href.endsWith("weekly-report")) { |
| | | helper.doinit(component, event, helper); |
| | | } else { |
| | |
| | | var vaildationFailReason = ''; |
| | | // var vaildationFailReason2 = ''; |
| | | // var currentDate = new Date().toJSON().slice(0,10); |
| | | |
| | | |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | let agencyReport = Object.create(null); |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | |
| | | fields.forEach(function (field) { |
| | | if(field.get("v.fieldName") === 'Type__c' && $A.util.isEmpty(field.get("v.value"))){ |
| | | showValidationError = true; |
| | |
| | | } |
| | | |
| | | } |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | if(field.get("v.fieldName") === 'Name'){ |
| | | agencyReport['name'] = field.get("v.value"); |
| | | }else if(field.get("v.fieldName") === 'Type__c'){ |
| | | agencyReport['type'] = field.get("v.value"); |
| | | }else if(field.get("v.fieldName") === 'Doctor_Division1__c'){ |
| | | agencyReport['doctorDivision1'] = field.get("v.value"); |
| | | } |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | }); |
| | | |
| | | if (!showValidationError) { |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | /* |
| | | var eventFields = event.getParam("fields"); |
| | | eventFields["Agency_Hospital__c"] = component.get('v.hospitalLinkId'); |
| | | component.find('recordEditForm').submit(eventFields); |
| | | */ |
| | | |
| | | var agencyHospitalid = component.get('v.hospitalLinkId'); |
| | | //zhj MEBG新方案改造 2022-11-29 start |
| | | debugger |
| | | let hospitalName = ''; |
| | | //调用后端searchAgencyDataId方法查询出医院下面所有客户人员dataid |
| | | helper.CallBackAction(component,'searchAgencyDataId',{ |
| | | hospitalId : agencyHospitalid |
| | | },function(data){ |
| | | if(data.getState() == "SUCCESS"){ |
| | | var data = data.getReturnValue(); |
| | | if(data.IsSuccess == true){ |
| | | let agencyContactIds = '' |
| | | if(data.Message == '' && data.Data && data.Data.length > 0){ |
| | | hospitalName = data.Data[0].Agency_Hospital__r.Name; |
| | | for(var i=0;i<data.Data.length;i++){ |
| | | if(data.Data[i].AWS_Data_Id__c) |
| | | agencyContactIds += ','+data.Data[i].AWS_Data_Id__c; |
| | | } |
| | | agencyContactIds = agencyContactIds.substring(1); |
| | | agencyReport['agencyContactIds'] = agencyContactIds; |
| | | }else{ |
| | | agencyReport['agencyContactIds'] = agencyContactIds; |
| | | } |
| | | var arr = new Array(); |
| | | arr.push(agencyReport); |
| | | var requestData = JSON.stringify(arr); |
| | | // helper.set_aws_url(component,data,agencyHospitalid); |
| | | |
| | | var token = component.get('v.AWStoken'); |
| | | var newUrl = component.get('v.AWSinsert') + 'V2'; |
| | | |
| | | component.set('v.login',true); |
| | | helper.insert_agencycontact(component,token,newUrl,requestData,agencyHospitalid,helper,hospitalName); |
| | | }else{ |
| | | helper.ShowToast({ |
| | | "message" : data.message, |
| | | "type" : "error" |
| | | }); |
| | | } |
| | | }else{ |
| | | helper.ShowToast({ |
| | | "message" : 'searchAgency失败', |
| | | "type" : "error" |
| | | }); |
| | | } |
| | | }) |
| | | //zhj MEBG新方案改造 2022-11-29 end |
| | | // var arr = new Array(); |
| | | // arr.push(agencyReport); |
| | | // var data = JSON.stringify(arr); |
| | | // // helper.set_aws_url(component,data,agencyHospitalid); |
| | | |
| | | // var token = component.get('v.AWStoken'); |
| | | // var newUrl = component.get('v.AWSinsert'); |
| | | |
| | | // component.set('v.login',true); |
| | | // helper.insert_agencycontact(component,token,newUrl,data,agencyHospitalid,helper); |
| | | |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | }else{ |
| | | component.find('OppMessage').setError(vaildationFailReason); |
| | | } |
| | | // var eventFields = event.getParam("fields"); |
| | | // eventFields["Agency_Hospital__c"] = component.get('v.hospitalLinkId'); |
| | | // component.find('recordEditForm').submit(eventFields); |
| | | // vivek 添加验证 end |
| | | // vivek 添加验证 end |
| | | }, |
| | | |
| | | createCancel : function(component, event, helper) { |
| | |
| | | }, |
| | | |
| | | processFileContent : function(component,event,helper){ |
| | | helper.saveRecords(component,event); |
| | | helper.saveRecords(component,event,helper); |
| | | }, |
| | | |
| | | cancel : function(component,event,helper){ |
| | |
| | | ({ |
| | | doinit : function(component, event, helper) { |
| | | this.report_date_list(component, event, helper, 5); |
| | | |
| | | component.set('v.login',true); |
| | | var action = component.get('c.getalldata'); |
| | | action.setCallback(this,function(response){ |
| | |
| | | component.set('v.fieldsmap',res.fieldsMap); |
| | | component.set('v.allselectlist',res.allselectlist); |
| | | component.set('v.doclist',res.doclist); |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | component.find('select_agency_person').set('v.options', this.conv_selected(res.allselectlist.AgencyPerson__c)); |
| | | // this.search_contact(component, event, helper,res.allselectlist.AgencyPerson__c); |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | component.find('select_department').set('v.options', this.conv_selected(res.allselectlist.Department_Cateogy__c)); |
| | | component.find('select_purpose_type').set('v.options', this.conv_selected(res.allselectlist.Purpose_Type__c)); |
| | | component.find('select_result').set('v.options', this.conv_selected(res.allselectlist.Result__c)); |
| | | component.find('select_stageName').set('v.options', this.conv_selected(res.allselectlist.StageName__c)); |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 start |
| | | component.find('SupportNeeds__c').set('v.options', this.conv_selected(res.allselectlist.SupportNeeds__c)); |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 end |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 start |
| | | component.find('SupportNeeds__c').set('v.options', this.conv_selected(res.allselectlist.SupportNeeds__c)); |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 end |
| | | component.set('v.selected_agency_person', res.allselectlist.AgencyPerson__c[0].label); |
| | | component.set('v.dialog_type', '新建'); |
| | | component.set('v.awsurl', res.awsurl);// 20220222 PI改造 by Bright |
| | | component.set('v.contactawsurl', res.contactawsurl);// 20220222 PI改造 by Bright |
| | | |
| | | this.get_reports(component, event, helper, component.find('select_date').get('v.value'), component.find('select_agency_person').get('v.value')); |
| | | |
| | |
| | | }); |
| | | $A.enqueueAction(action); |
| | | }, |
| | | |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | search_contact : function(component, event, helper, resobj) { |
| | | let contactData = Object.create(null); |
| | | var dataArr = new Array(); |
| | | for (let i = 0; i < resobj.length; i++) { |
| | | if (resobj[i].awsid != null && resobj[i].awsid != ''){ |
| | | contactData[resobj[i].awsid] = resobj[i]; |
| | | dataArr.push(resobj[i].awsid); |
| | | } |
| | | } |
| | | let obj= Object.create(null); |
| | | obj['dataIds'] = dataArr; |
| | | var payload = JSON.stringify(obj); |
| | | this.search_contact_url(component, 'Contact', (result)=>{ |
| | | var token = result.token; |
| | | var searchUrl = result.searchUrl; |
| | | this.search_core(token,searchUrl,payload,(result)=>{ |
| | | if(result.status == '0'){ |
| | | if(result.object != null){ |
| | | this.to_contact_list(result,contactData,component); |
| | | }else{ |
| | | component.set('v.login',false); |
| | | } |
| | | }else{ |
| | | this.error('AWS search status1 : ' + result.status); |
| | | component.set('v.login',false); |
| | | } |
| | | },component); |
| | | |
| | | }); |
| | | }, |
| | | |
| | | to_contact_list : function(result,retMap,component) { |
| | | var resls = result.object; |
| | | var res = []; |
| | | var space = {}; |
| | | space['label'] = ''; |
| | | space['selected'] = true; |
| | | space['value'] = ''; |
| | | res.push(space); |
| | | |
| | | for (var i = 0; i < resls.length; i++) { |
| | | var t = {}; |
| | | t['label'] = resls[i].lastName; |
| | | t['selected'] = false; |
| | | t['Doctor_Division1__c'] = resls[i].doctorDivision1; |
| | | t['value'] = retMap[resls[i].dataId].value; |
| | | res.push(t); |
| | | } |
| | | component.find('select_agency_person').set('v.options',res); |
| | | component.set('v.allselectlistAgencyPerson',res); |
| | | component.set('v.login',false); |
| | | }, |
| | | |
| | | search_contact_url : function(component, sobject, callback) { |
| | | var action = component.get('c.getAwsurl'); |
| | | action.setParams({ |
| | | "sobj" : sobject, |
| | | }); |
| | | action.setCallback(this,function(response){ |
| | | var state = response.getState(); |
| | | if(state == 'SUCCESS'){ |
| | | var result = response.getReturnValue(); |
| | | if(callback)callback(result); |
| | | } |
| | | else{ |
| | | this.error('AWS url/token error.'); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | }, |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | |
| | | select_department : function(component, event, helper) { |
| | | var dc = component.find("select_department").get("v.value"); |
| | |
| | | if(state == 'SUCCESS'){ |
| | | var res = response.getReturnValue(); |
| | | component.set('v.reports', res.reports); |
| | | |
| | | // 20220222 PI改造 by Bright--start |
| | | let dataIds = []; |
| | | let dataIds1 = []; |
| | | let mm = {}; |
| | | let b = false; |
| | | let b1 = false; |
| | | for (const rep of res.reports) { |
| | | if (rep.doctor2__r && rep.doctor2__r.AWS_Data_Id__c) { |
| | | dataIds.push(rep.doctor2__r.AWS_Data_Id__c); |
| | | } |
| | | |
| | | if (rep.Person_In_Charge2__r && rep.Person_In_Charge2__r.AWS_Data_Id__c) { |
| | | dataIds1.push(rep.Person_In_Charge2__r.AWS_Data_Id__c); |
| | | } |
| | | } |
| | | let Foo = null; |
| | | Foo = function(){ |
| | | if(b && b1){ |
| | | for (const rep of res.reports) { |
| | | if (rep.doctor2__r && rep.doctor2__r.AWS_Data_Id__c && mm.hasOwnProperty(rep.doctor2__r.AWS_Data_Id__c)) { |
| | | rep.doctor2__r.awsdata = mm[rep.doctor2__r.AWS_Data_Id__c]; |
| | | } |
| | | if (rep.Person_In_Charge2__r && rep.Person_In_Charge2__r.AWS_Data_Id__c && mm.hasOwnProperty(rep.Person_In_Charge2__r.AWS_Data_Id__c)) { |
| | | rep.Person_In_Charge2__r.awsdata = mm[rep.Person_In_Charge2__r.AWS_Data_Id__c]; |
| | | } |
| | | } |
| | | |
| | | $A.getCallback(()=>component.set('v.reports', res.reports))(); |
| | | }else{ |
| | | console.log('b='+b + ',b1='+b1+',continue'); |
| | | setTimeout(Foo,100); |
| | | } |
| | | } |
| | | |
| | | if(dataIds.length > 0){ |
| | | let awsurl = component.get('v.awsurl'); |
| | | helper.search_core(awsurl.token,awsurl.searchUrl,JSON.stringify({ |
| | | "dataIds":dataIds |
| | | }),(result)=>{ |
| | | if(result.status == '0'){ |
| | | |
| | | for (const m of result.object) { |
| | | mm[m.dataId] = m; |
| | | } |
| | | b = true; |
| | | Foo(); |
| | | }else{ |
| | | this.error('AWS search status2 : ' + result.status); |
| | | } |
| | | },component); |
| | | }else{ |
| | | b = true; |
| | | } |
| | | |
| | | |
| | | |
| | | if(dataIds1.length > 0){ |
| | | let contactawsurl = component.get('v.contactawsurl'); |
| | | helper.search_core(contactawsurl.token,contactawsurl.searchUrl,JSON.stringify({ |
| | | "dataIds":dataIds1 |
| | | }),(result)=>{ |
| | | if(result.status == '0'){ |
| | | |
| | | for (const m of result.object) { |
| | | mm[m.dataId] = m; |
| | | } |
| | | b1 = true; |
| | | Foo(); |
| | | }else{ |
| | | this.error('AWS search status3 : ' + result.status); |
| | | } |
| | | },component); |
| | | }else{ |
| | | b1 = true; |
| | | } |
| | | // 20220222 PI改造 by Bright--end |
| | | |
| | | component.set('v.report_count', res.reports.length); |
| | | |
| | | // 更新保存後のselect_data用 |
| | |
| | | }, |
| | | |
| | | get_agency_person_name : function(component, agency_person_value) { |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | var allselectlist = component.get('v.allselectlist.AgencyPerson__c'); |
| | | // var allselectlist = component.get('v.allselectlistAgencyPerson'); |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | var new_label = ''; |
| | | for (var i = 0; i < allselectlist.length; i++) { |
| | | if (agency_person_value == allselectlist[i].value) { |
| | |
| | | var reports = component.get('v.reports'); |
| | | var Agency_Hospital_text = ''; |
| | | var Agency_Hospital_parent_id = ''; |
| | | |
| | | debugger |
| | | // 医院名 |
| | | if (select_data['Agency_Hospital__c'] != '') { |
| | | for (var i = 0; i < reports.length; i++) { |
| | |
| | | this.set_selected(component, 'select_purpose_type', select_data['Purpose_Type__c']); |
| | | this.select_purpose_type(component); |
| | | } |
| | | |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 start |
| | | // 支援需求 |
| | | if (select_data['SupportNeeds__c'] != '') { |
| | | this.set_selected(component, 'SupportNeeds__c', select_data['SupportNeeds__c']); |
| | | } |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 end |
| | | // 結果 |
| | | if (select_data['Result__c'] != '' && typeof select_data['Result__c'] !== "undefined") { |
| | | component.find('select_result').set('v.value', select_data['Result__c']); |
| | |
| | | if (reportDate != null) { |
| | | component.set('v.data.Report_Date__c', reportDate); |
| | | } |
| | | |
| | | component.set('v.edit_copy_select_report_id', ""); |
| | | } |
| | | |
| | | component.set('v.edit_copy_select_report_id', ""); |
| | | } |
| | | } |
| | | } else { |
| | | // CLOSE |
| | |
| | | var Department_Cateogy__c = component.find('select_department').get('v.value'); |
| | | var doctor2__c = component.find('select_doctor').get('v.value'); |
| | | var Purpose_Type__c = component.find('select_purpose_type').get('v.value'); |
| | | var SupportNeeds__c = component.find('SupportNeeds__c').get('v.value'); |
| | | var Opportunity__c = component.get('v.data.Opportunity__c'); |
| | | var Product_Category1__c = component.find('select_Product1').get('v.value'); |
| | | var Product_Category2__c = component.find('select_Product2').get('v.value'); |
| | |
| | | !Department_Cateogy__c && |
| | | !doctor2__c && |
| | | !Purpose_Type__c && |
| | | !SupportNeeds__c&&//WAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 |
| | | !Opportunity__c && |
| | | !Product_Category1__c && |
| | | !Product_Category2__c && |
| | |
| | | select_report_data['Department_Cateogy__c'] == Department_Cateogy__c && |
| | | select_report_data['doctor2__c'] == doctor2__c && |
| | | select_report_data['Purpose_Type__c'] == Purpose_Type__c && |
| | | select_report_data['SupportNeeds__c'] == SupportNeeds__c &&//WAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 |
| | | select_report_data['Opportunity__c'] == Opportunity__c && |
| | | select_report_data['Product_Category1__c'] == Product_Category1__c && |
| | | select_report_data['Product_Category2__c'] == Product_Category2__c && |
| | |
| | | select_report_data['Department_Cateogy__c'] == Department_Cateogy__c && |
| | | select_report_data['doctor2__c'] == doctor2__c && |
| | | select_report_data['Purpose_Type__c'] == Purpose_Type__c && |
| | | select_report_data['SupportNeeds__c'] == SupportNeeds__c &&//WAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 |
| | | select_report_data['Opportunity__c'] == Opportunity__c && |
| | | select_report_data['Product_Category1__c'] == Product_Category1__c && |
| | | select_report_data['Product_Category2__c'] == Product_Category2__c && |
| | |
| | | component.set('v.selected_date', select_date); |
| | | var name = component.get('v.selected_agency_person'); |
| | | var ret = this.create_report_header(component, name, select_agency, select_date); |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | this.set_aws_url(component,'Agency_Contact__c') |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | }, |
| | | |
| | | copy_button : function(component, event, helper) { |
| | |
| | | }, |
| | | |
| | | save_report : function(component, event, helper) { |
| | | |
| | | // 20220222 PI改造 by Bright--start |
| | | let doctor2Name = ''; |
| | | let visitortitle = ''; |
| | | for(let op of component.find('select_doctor').get('v.options')){ |
| | | if (op.selected) { |
| | | doctor2Name = op.label; |
| | | visitortitle = op.Doctor_Division1__c; |
| | | } |
| | | } |
| | | // 20220222 PI改造 by Bright--end |
| | | |
| | | |
| | | component.find('save_button').set('v.disabled', true); |
| | | |
| | | var Report_Date__c = component.get('v.data.Report_Date__c'); |
| | | alert('Report_Date__c'+Report_Date__c); |
| | | // alert('Report_Date__c'+Report_Date__c); |
| | | var Person_In_Charge2__c = ""; |
| | | var Submit_date__c = ""; |
| | | if (component.get('v.mode') == 'edit') { |
| | | // 周 Submit_date__c |
| | | Submit_date__c = component.get('v.select_report_data').Submit_date__c; |
| | | alert('Submit_date__c'+Submit_date__c); |
| | | // alert('Submit_date__c'+Submit_date__c); |
| | | |
| | | |
| | | // 担当 Person_In_Charge2__c |
| | |
| | | } else { |
| | | // 周 Submit_date__c |
| | | Submit_date__c = this.get_date_string(component.find('select_date').get('v.value')); |
| | | alert('Submit_date__c'+Submit_date__c); |
| | | // alert('Submit_date__c'+Submit_date__c); |
| | | |
| | | // 担当 Person_In_Charge2__c |
| | | Person_In_Charge2__c = component.find('select_agency_person').get('v.value'); |
| | |
| | | |
| | | // 活动区分 Purpose_Type__c |
| | | var Purpose_Type__c = component.find('select_purpose_type').get('v.value'); |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 start |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 start |
| | | // 支援需求 SupportNeeds__c |
| | | var SupportNeeds__c = component.find('SupportNeeds__c').get('v.value'); |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 end |
| | |
| | | if (!Department_Cateogy__c) { error.push("科室 不存在"); } |
| | | if (!doctor2__c) { error.push("拜访人 不存在"); } |
| | | if (!Purpose_Type__c) { error.push("活动区分 不存在"); } |
| | | if (!SupportNeeds__c) { error.push("支援需求 不存在"); } |
| | | // if (!SupportNeeds__c) { error.push("支援需求 不存在"); } |
| | | if (!Opportunity__c) { Opportunity__c = ""; } |
| | | if (!Product_Category1__c) { error.push("产品区分1 不存在"); } |
| | | if (Purpose_Type__c && (Purpose_Type__c.substr(-3) == 'SIS' || Purpose_Type__c.substr(-3) == 'OPD')) { |
| | |
| | | if (component.get('v.mode') == 'edit') { |
| | | var Agency_Report__c = component.get('v.select_report_data').Id; |
| | | var action = component.get('c.editAgencyReport'); |
| | | alert("Purpose_Type:"+Purpose_Type__c+","+"SupportNeedsc:"+SupportNeeds__c); |
| | | debugger |
| | | // alert("Purpose_Type:"+Purpose_Type__c+","+"SupportNeedsc:"+SupportNeeds__c); |
| | | action.setParams({ |
| | | "Agency_Report_Id" : Agency_Report__c, |
| | | "Department_Cateogy" : Department_Cateogy__c, |
| | | "Purpose_Type" : Purpose_Type__c, |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 start |
| | | "SupportNeedsc" : SupportNeeds__c, |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 end |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 start |
| | | "SupportNeedsc" : SupportNeeds__c, |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 end |
| | | "Agency_Report_Header" : Agency_Report_Header__c, |
| | | "Agency_Hospital" : Agency_Hospital__c, |
| | | "Person_In_Charge2" : Person_In_Charge2__c, |
| | |
| | | /* Save (New & Copy) */ |
| | | |
| | | var action = component.get('c.saveAgencyReport'); |
| | | debugger; |
| | | // alert(SupportNeeds__c); |
| | | action.setParams({ |
| | | "Department_Cateogy" : Department_Cateogy__c, |
| | | "Purpose_Type" : Purpose_Type__c, |
| | |
| | | |
| | | // Save&New時のウィンドウ内データ一覧 |
| | | if (res.length > 0) { |
| | | // 20220222 PI改造 by Bright--start |
| | | res[0].doctor2NameOrigin = doctor2Name; |
| | | res[0].visitorTitleOrigin = visitortitle; |
| | | // 20220222 PI改造 by Bright--end |
| | | reports_now[reports_now_count] = res[0]; |
| | | |
| | | reports_now.sort(function(a,b) { |
| | |
| | | component.set('v.doctor_title', ''); |
| | | component.find('select_department').set('v.options', this.conv_selected(component.get('v.allselectlist.Department_Cateogy__c'))); |
| | | component.find('select_purpose_type').set('v.options', this.conv_selected(component.get('v.allselectlist.Purpose_Type__c'))); |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 start |
| | | component.find('SupportNeeds__c').set('v.options', this.conv_selected(component.get('v.allselectlist.SupportNeeds__c'))); |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 end |
| | | // ToDo需要测试手机上能运行不 |
| | | component.set('v.data.Opportunity__c', ''); |
| | | component.find('select_Product1').set('v.value',''); |
| | |
| | | var ret_obj = []; |
| | | var now = new Date(); |
| | | for (var i = 0; i < count; i++) { |
| | | |
| | | |
| | | var start_day = new Date(now.getFullYear(), now.getMonth(), (now.getDate() - now.getDay() + 1 - (i * 7))); |
| | | var end_day = new Date(now.getFullYear(), now.getMonth(), now.getDate() + (7 - now.getDay()) - (i * 7)); |
| | | |
| | | |
| | | var start_day_show = new Date(now.getFullYear(), now.getMonth(), (now.getDate() - now.getDay() - (i * 7))); |
| | | var end_day_show = new Date(now.getFullYear(), now.getMonth(), now.getDate() + (6 - now.getDay()) - (i * 7)); |
| | | var date_text = start_day.getFullYear() + '/' + (start_day.getMonth() + 1) + '/' + start_day.getDate() + '~' + end_day.getFullYear() + '/' + (end_day.getMonth() + 1) + '/' + end_day.getDate(); |
| | |
| | | searchHos : function(component, event, helper) { |
| | | var hospital_name = event.getParam("value"); |
| | | var action = component.get("c.getHospitalList"); |
| | | debugger; |
| | | action.setParams({"hospital_name": hospital_name}); |
| | | |
| | | action.setCallback(this, function(response) { |
| | |
| | | }, |
| | | |
| | | selectHos : function(component, event, helper) { |
| | | debugger |
| | | var hospital_list = component.find('hospital_list'); |
| | | $A.util.removeClass(hospital_list, 'slds-is-open'); |
| | | var accname = event.currentTarget.dataset.accname; |
| | |
| | | component.set('v.hospitalLinkId', hospital_data[i].Id); |
| | | component.set('v.data.Agency_Hospital__c', hospital_data[i].Id); |
| | | component.find('new_con').set('v.disabled', false); |
| | | //break; |
| | | } |
| | | } |
| | | component.set("v.hospital", accname); |
| | |
| | | component.set('v.doctor_title', ''); |
| | | } |
| | | }, |
| | | |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | set_aws_url : function(component,sobject) { |
| | | var action = component.get('c.getAwsurl'); |
| | | action.setParams({ |
| | | "sobj" : sobject, |
| | | }); |
| | | action.setCallback(this,function(response){ |
| | | var state = response.getState(); |
| | | if(state == 'SUCCESS'){ |
| | | var awsmap = this.conv_selected(response.getReturnValue()); |
| | | component.set('v.AWStoken',awsmap.token); |
| | | component.set('v.AWSinsert',awsmap.newUrl); |
| | | component.set('v.AWSsearch',awsmap.searchUrl); |
| | | component.set('v.AWStransactionURL',awsmap.transactionURL); |
| | | } |
| | | else{ |
| | | this.error('AWS url/token error.'); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | }, |
| | | |
| | | insert_agencycontact : function(component,token,newUrl,payload,agencyHospitalid,helper,hospitalName) { |
| | | |
| | | // AWSService.insert(newUrl,payload,function(result){ |
| | | // if(result.status == '0'){ |
| | | // $A.getCallback(function(){ |
| | | // helper.to_agencycontact(component,result,agencyHospitalid); |
| | | // })(); |
| | | |
| | | // }else{ |
| | | // console.log('AWS status error:' + result) |
| | | // component.set('v.login',false); |
| | | // component.find('OppMessage').setError('AWS insert error.'); |
| | | // } |
| | | // },token); |
| | | |
| | | fetch(newUrl, { |
| | | method: 'POST', |
| | | body: payload, |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | 'pi-token': token |
| | | } |
| | | }).then((data) => { |
| | | return data.json(); |
| | | }).then((result) => { |
| | | if(result.status == '0'){ |
| | | $A.getCallback(function(){ |
| | | helper.to_agencycontact(component,result,agencyHospitalid); |
| | | })(); |
| | | }else{ |
| | | console.log('AWS status error:' + result) |
| | | component.set('v.login',false); |
| | | if(result.status == '129'){ |
| | | component.find('OppMessage').setError('该客户人员名字已存在,在'+hospitalName+'医院,请修改'); |
| | | }else{ |
| | | component.find('OppMessage').setError('AWS insert error.'); |
| | | } |
| | | } |
| | | }).catch(error => { |
| | | console.log('AWS insert error:' + error) |
| | | component.set('v.login',false); |
| | | component.find('OppMessage').setError('AWS insert error.'); |
| | | }); |
| | | |
| | | }, |
| | | |
| | | to_agencycontact : function(component,result,agencyHospitalid) { |
| | | var action = component.get('c.saveAgencyContact'); |
| | | action.setParams({ |
| | | "name" : result.object[0].name, |
| | | //"nameEncrypt" : result.object[0].nameEncrypt, |
| | | "type" : result.object[0].type, |
| | | //"typeEncrypt" : result.object[0].typeEncrypt, |
| | | "doctorDivision1" : result.object[0].doctorDivision1, |
| | | //"doctorDivision1Encrypt" : result.object[0].doctorDivision1Encrypt, |
| | | "agencyHospitalid" : agencyHospitalid, |
| | | "awsid" : result.object[0].dataId, |
| | | }); |
| | | action.setCallback(this,function(response){ |
| | | var state = response.getState(); |
| | | if(state == 'SUCCESS'){ |
| | | var acMap = this.conv_selected(response.getReturnValue()); |
| | | console.log(acMap); |
| | | if(acMap.AgencyContactId != ''){ |
| | | //确认事务 |
| | | var token = component.get('v.AWStoken'); |
| | | var confirmUrl = component.get('v.AWStransactionURL'); |
| | | |
| | | let data = Object.create(null); |
| | | data['isSuccess'] = 1; |
| | | data['sfRecordId'] = ''; |
| | | data['txId'] = result.txId; |
| | | |
| | | this.to_confirm(component,token,confirmUrl,JSON.stringify(data)); |
| | | }else if(acMap.errormsg != ''){ |
| | | this.error(acMap.errormsg); |
| | | component.set('v.login',false); |
| | | }else { |
| | | this.error('agency contact insert id error.'); |
| | | component.set('v.login',false); |
| | | } |
| | | } |
| | | else{ |
| | | this.error('agency contact insert error.'); |
| | | component.set('v.login',false); |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | }, |
| | | |
| | | to_confirm : function(component,token,confirmUrl,payload) { |
| | | fetch(confirmUrl, { |
| | | method: 'POST', |
| | | body: payload, |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | 'pi-token': token |
| | | } |
| | | }).then((data) => { |
| | | return data.json(); |
| | | }).then((result) => { |
| | | if(result.status == '0' && result.hasOwnProperty('success') && result.success){ |
| | | component.set('v.truthy', false); |
| | | var modal_newAC = component.find('modal_newAC') |
| | | $A.util.addClass(modal_newAC, 'disp_none'); |
| | | this.success('.客户人员已创建。'); |
| | | this.set_doctor_list(component); |
| | | }else { |
| | | this.error('AWS confirm error.'); |
| | | component.set('v.login',false); |
| | | } |
| | | }).catch(error => { |
| | | this.error('AWS confirm error.'); |
| | | component.set('v.login',false); |
| | | }); |
| | | }, |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | |
| | | set_doctor_list : function(component) { |
| | | var hospital_id = component.get('v.hospitalLinkId'); |
| | | if (hospital_id) { |
| | |
| | | action.setCallback(this,function(response){ |
| | | var state = response.getState(); |
| | | if(state == 'SUCCESS'){ |
| | | var res = this.conv_selected(response.getReturnValue()); |
| | | |
| | | var retMap = this.conv_selected(response.getReturnValue()); |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | this.AWS_search(retMap,component); |
| | | /* |
| | | var default_doctor = component.get('v.default_select_doctor_id'); |
| | | if (default_doctor != '' && res.length > 0) { |
| | | var doctor_title = ''; |
| | |
| | | component.set('v.default_select_doctor_id', ''); |
| | | component.set('v.doctor_list', res); |
| | | component.set('v.login',false); |
| | | */ |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | } |
| | | else{ |
| | | this.error('set_doctor_list failed.'); |
| | |
| | | $A.enqueueAction(action); |
| | | } |
| | | }, |
| | | |
| | | // PIPL update Yin Mingjie 21/02/2022 start |
| | | AWS_search : function(retMap,component) { |
| | | var token = retMap.sre.token; |
| | | var searchUrl = retMap.sre.searchUrl; |
| | | |
| | | var dataArr = new Array(); |
| | | for (const key in retMap) { |
| | | if (key == 'sre') {continue;} |
| | | dataArr.push(key); |
| | | } |
| | | if(dataArr.length == 0){ |
| | | component.set('v.login',false); |
| | | this.warning('没有找到符合条件的客户人员'); |
| | | return; |
| | | } |
| | | let obj= Object.create(null); |
| | | obj['dataIds'] = dataArr; |
| | | var data = JSON.stringify(obj); |
| | | this.search_agency_contact(token,searchUrl,data,retMap,component); |
| | | }, |
| | | |
| | | search_agency_contact : function(token,searchUrl,payload,retMap,component) { |
| | | this.search_core(token,searchUrl,payload,(result)=>{ |
| | | if(result.status == '0'){ |
| | | this.to_doctor_list(result,retMap,component); |
| | | }else{ |
| | | this.error('AWS search status4 : ' + result.status); |
| | | component.set('v.login',false); |
| | | } |
| | | },component); |
| | | // fetch(searchUrl, { |
| | | // method: 'POST', |
| | | // body: payload, |
| | | // headers: { |
| | | // 'Content-Type': 'application/json', |
| | | // 'pi-token': token |
| | | // } |
| | | // }).then((data) => { |
| | | // return data.json(); |
| | | // }).then((result) => { |
| | | |
| | | // }).catch(error => { |
| | | // this.error('AWS search error.'); |
| | | // component.set('v.login',false); |
| | | // }); |
| | | }, |
| | | search_core : function(token,searchUrl,payload,callback,component) { |
| | | fetch(searchUrl, { |
| | | method: 'POST', |
| | | body: payload, |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | 'pi-token': token |
| | | } |
| | | }).then((data) => { |
| | | return data.json(); |
| | | }).then((result) => { |
| | | component.set('v.login',false); |
| | | if(callback)callback(result); |
| | | }).catch(error => { |
| | | this.error('AWS search error.'); |
| | | component.set('v.login',false); |
| | | }); |
| | | }, |
| | | |
| | | to_doctor_list : function(result,retMap,component) { |
| | | var resls = result.object; |
| | | var res = []; |
| | | var space = {}; |
| | | space['label'] = ''; |
| | | space['selected'] = true; |
| | | space['value'] = ''; |
| | | res.push(space); |
| | | |
| | | for (var i = 0; i < resls.length; i++) { |
| | | var t = {}; |
| | | t['label'] = resls[i].name; |
| | | t['selected'] = false; |
| | | t['Doctor_Division1__c'] = resls[i].doctorDivision1; |
| | | t['value'] = retMap[resls[i].dataId].value; |
| | | res.push(t); |
| | | } |
| | | |
| | | var default_doctor = component.get('v.default_select_doctor_id'); |
| | | if (default_doctor != '' && res.length > 0) { |
| | | var doctor_title = ''; |
| | | for (var i = 0; i < res.length; i++) { |
| | | if (res[i].value == default_doctor) { |
| | | res[i].selected = true; |
| | | doctor_title = res[i].Doctor_Division1__c; |
| | | } else { |
| | | res[i].selected = false; |
| | | } |
| | | } |
| | | |
| | | component.find('select_doctor').set('v.options', res); |
| | | component.set('v.doctor_title', doctor_title); |
| | | } else { |
| | | component.find('select_doctor').set('v.options', res); |
| | | if (res.length > 0) { |
| | | component.set('v.doctor_title', res[0].Doctor_Division1__c); |
| | | } |
| | | } |
| | | |
| | | component.set('v.default_select_doctor_id', ''); |
| | | component.set('v.doctor_list', res); |
| | | component.set('v.login',false); |
| | | }, |
| | | // PIPL update Yin Mingjie 21/02/2022 end |
| | | |
| | | // stageNameChange : function(component, event, helper) { |
| | | // var options = component.find('input-oppstage').get("v.body")[0].get('v.options'); |
| | |
| | | // }, |
| | | |
| | | opportunityChange : function(component, event, helper) { |
| | | debugger |
| | | var opp_id = component.get('v.data.Opportunity__c'); |
| | | if (opp_id == '') { |
| | | $A.util.addClass(component.find('input-opportunity-stage'), 'disp_none'); |
| | |
| | | // } |
| | | component.set('v.login',false); |
| | | return false; |
| | | } else if (res[0]['StageName2__c'] != '3.询价' && !component.get('v.loadOpp')){ |
| | | this.warning('请选择询价中的项目'); |
| | | // ToDo需要测试手机上能运行不 |
| | | component.set('v.data.Opportunity__c', ''); |
| | | $A.util.addClass(component.find('input-opportunity-stage'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-amount1'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-amount2'), 'disp_none'); |
| | | $A.util.addClass(component.find('input-opportunity-date'), 'disp_none'); |
| | | $A.util.removeClass(component.find('input-opportunity-blank'), 'disp_none'); |
| | | // if ($A.get("$Browser.formFactor") == 'DESKTOP') { |
| | | // var values = []; |
| | | // component.find('input-opportunity').get("v.body")[0].set('v.values', values); |
| | | // } else { |
| | | // component.find('input-opportunity').get("v.body")[0].set('v.selectedLabel', ''); |
| | | // } |
| | | component.set('v.login',false); |
| | | return false; |
| | | } else { |
| | | } |
| | | //SWAG-CKH5M8 【委托】周报关联询价,可选择询价范围调整 fy start |
| | | // else if (res[0]['StageName2__c'] != '3.询价' && !component.get('v.loadOpp')){ |
| | | // this.warning('请选择询价中的项目'); |
| | | // // ToDo需要测试手机上能运行不 |
| | | // component.set('v.data.Opportunity__c', ''); |
| | | // $A.util.addClass(component.find('input-opportunity-stage'), 'disp_none'); |
| | | // $A.util.addClass(component.find('input-opportunity-amount1'), 'disp_none'); |
| | | // $A.util.addClass(component.find('input-opportunity-amount2'), 'disp_none'); |
| | | // $A.util.addClass(component.find('input-opportunity-date'), 'disp_none'); |
| | | // $A.util.removeClass(component.find('input-opportunity-blank'), 'disp_none'); |
| | | // // if ($A.get("$Browser.formFactor") == 'DESKTOP') { |
| | | // // var values = []; |
| | | // // component.find('input-opportunity').get("v.body")[0].set('v.values', values); |
| | | // // } else { |
| | | // // component.find('input-opportunity').get("v.body")[0].set('v.selectedLabel', ''); |
| | | // // } |
| | | // component.set('v.login',false); |
| | | // return false; |
| | | // } |
| | | //SWAG-CKH5M8 【委托】周报关联询价,可选择询价范围调整 fy end |
| | | else { |
| | | component.set('v.loadOpp', false); |
| | | component.set('v.oppdata',res[0]); |
| | | this.set_selected(component, 'select_stageName', res[0].StageName__c); |
| | |
| | | this.set_doctor_list(component); |
| | | }, |
| | | |
| | | createCancel : function(component, event, helper) { |
| | | component.set('v.truthy', false); |
| | | createCancel : function(component, event, helper) { |
| | | component.set('v.truthy', false); |
| | | var modal_newAC = component.find('modal_newAC') |
| | | $A.util.addClass(modal_newAC, 'disp_none'); |
| | | }, |
| | | setOpportunity_cfilter : function(component) { |
| | | debugger |
| | | var hosId = component.get('v.hospitalId'); |
| | | var Department_Cateogy__c = component.find('select_department').get('v.value'); |
| | | var opportunity_cfilter = ''; |
| | |
| | | reader.readAsDataURL(file); |
| | | }, |
| | | |
| | | saveRecords : function(component,event){ |
| | | saveRecords : function(component,event,helper){ |
| | | component.set('v.login',true); |
| | | var action = component.get("c.processData"); |
| | | var selectDate = component.find('select_date').get('v.value'); |
| | | var fieldsList=['Name','Phone','AccountNumber']; //Please write your code dynamic fields |
| | | action.setParams({ |
| | | fileData : component.get("v.fileContentData"), |
| | | //selectDateselectDate :component.find('select_date').get('v.value'), |
| | | sobjectName:'Account', //Any object |
| | | fields:fieldsList |
| | | |
| | | |
| | | }); |
| | | action.setCallback(this, function(response) { |
| | | //fy 导入 20220424 start |
| | | var action1 = component.get("c.processDataAWSId"); |
| | | action1.setParams({ |
| | | fileData : component.get("v.fileContentData"), |
| | | }); |
| | | action1.setCallback(this, function(response) { |
| | | var state = response.getState(); |
| | | if (state === "SUCCESS") { |
| | | |
| | | var res = response.getReturnValue(); |
| | | var res1 = ''; |
| | | console.log("[[[[[["+res); |
| | | if(res != 'success'){ |
| | | var ress = res.split('='); |
| | | console.log(ress); |
| | | for (var i=0; i<ress.length; i++) { |
| | | res1 += ress[i].substr(7)+'\n'; |
| | | var ress = response.getReturnValue(); |
| | | if(ress){ |
| | | var valur =ress.split('error1'); |
| | | if(valur.length<=1){ |
| | | var res = JSON.parse(response.getReturnValue()); |
| | | var dataArr = new Array(); |
| | | var dataMap = new Map(); |
| | | res.forEach(item => { |
| | | if(item.AWS_Data_Id__c){ |
| | | dataArr.push(item.AWS_Data_Id__c); |
| | | //dataMap.set(item.AWS_Data_Id__c,item.Name_Encrypted__c); |
| | | dataMap.set(item.AWS_Data_Id__c,item.AWS_Data_Id__c); //zhj 新方案改造 2022-12-21 |
| | | } |
| | | }); |
| | | debugger |
| | | let obj= Object.create(null); |
| | | obj['dataIds'] = dataArr; |
| | | var payload = JSON.stringify(obj); |
| | | this.search_contact_url(component, 'Agency_Contact__c', (result)=>{ |
| | | var token = result.token; |
| | | var searchUrl = result.searchUrl; |
| | | this.search_core(token,searchUrl,payload,(result)=>{ |
| | | if(result.status == '0'){ |
| | | if(result.object != null&&result.object.length != 0){ |
| | | // var resultjson = JSON.stringify(result.object); |
| | | // if(resultjson){ |
| | | // debugger |
| | | // console.warn('001'); |
| | | // component.set('v.login',true); |
| | | // this.ImportMethod(component,resultjson); |
| | | // } |
| | | component.set('v.login',true); |
| | | this.saveRecordsEditFile(component,dataMap,result.object,helper); |
| | | }else{ |
| | | this.error('AWS search status5 ' ); |
| | | component.set('v.login',false); |
| | | } |
| | | }else{ |
| | | this.error('AWS search status6 : ' + result.status); |
| | | component.set('v.login',false); |
| | | } |
| | | },component); |
| | | // var resultjson =null; |
| | | // this.ImportMethod(component,resultjson); |
| | | |
| | | }); |
| | | // var resultjson =null; |
| | | // this.ImportMethod(component,resultjson); |
| | | }else{ |
| | | this.error(valur[1]+'\n'+"请修改后重新上传"); |
| | | } |
| | | // $('.forceToastManager').css('white-space', 'pre-wrap'); |
| | | console.log("=="+res1); |
| | | this.error(res1+"请修改后重新上传"); |
| | | component.set('v.login',false); |
| | | }else{ |
| | | component.set("v.showMain",true); |
| | | this.success("导入成功"); |
| | | // alert('saved successfully'); |
| | | component.set('v.login',false); |
| | | } |
| | | |
| | | } |
| | | else if (state === "INCOMPLETE") { |
| | | // do something |
| | | component.set('v.login',false); |
| | | } |
| | | else if (state === "ERROR") { |
| | | var errors = response.getError(); |
| | | if (errors) { |
| | | if (errors[0] && errors[0].message) { |
| | | console.log("Error message: " + |
| | | errors[0].message); |
| | | component.set('v.login',false); |
| | | } |
| | | } else { |
| | | console.log("Unknown error"); |
| | | component.set('v.login',false); |
| | | } |
| | | } |
| | | }); |
| | | $A.enqueueAction(action); |
| | | $A.enqueueAction(action1); |
| | | //fy 导入 20220424 end |
| | | // var action = component.get("c.processData"); |
| | | // var selectDate = component.find('select_date').get('v.value'); |
| | | // var fieldsList=['Name','Phone','AccountNumber']; //Please write your code dynamic |
| | | // var sss=component.get("v.fileContentData"); |
| | | // action.setParams({ |
| | | // fileData : component.get("v.fileContentData"), |
| | | // //selectDateselectDate :component.find('select_date').get('v.value'), |
| | | // sobjectName:'Account', //Any object |
| | | // fields:fieldsList |
| | | // }); |
| | | // action.setCallback(this, function(response) { |
| | | // var state = response.getState(); |
| | | // if (state === "SUCCESS") { |
| | | |
| | | // var res = response.getReturnValue(); |
| | | // var res1 = ''; |
| | | // console.log("[[[[[["+res); |
| | | // if(res != 'success'){ |
| | | // debugger |
| | | // var ress = res.split('='); |
| | | // console.log(ress); |
| | | // for (var i=0; i<ress.length; i++) { |
| | | // res1 += ress[i].substr(7)+'\n'; |
| | | // } |
| | | // // $('.forceToastManager').css('white-space', 'pre-wrap'); |
| | | // console.log("=="+res1); |
| | | // this.error(res1+"请修改后重新上传"); |
| | | // component.set('v.login',false); |
| | | // }else{ |
| | | // component.set("v.showMain",true); |
| | | // this.success("导入成功"); |
| | | // // alert('saved successfully'); |
| | | // component.set('v.login',false); |
| | | // } |
| | | |
| | | // } |
| | | // else if (state === "INCOMPLETE") { |
| | | // // do something |
| | | // component.set('v.login',false); |
| | | // } |
| | | // else if (state === "ERROR") { |
| | | // var errors = response.getError(); |
| | | // if (errors) { |
| | | // if (errors[0] && errors[0].message) { |
| | | // console.log("Error message: " + |
| | | // errors[0].message); |
| | | // component.set('v.login',false); |
| | | // } |
| | | // } else { |
| | | // console.log("Unknown error"); |
| | | // component.set('v.login',false); |
| | | // } |
| | | // } |
| | | // }); |
| | | // $A.enqueueAction(action); |
| | | |
| | | }, |
| | | },ImportMethod : function(component,fileStr){ |
| | | var actionss = component.get("c.processData"); |
| | | var selectDate = component.find('select_date').get('v.value'); |
| | | var fieldsList=['Name','Phone','AccountNumber']; //Please write your code dynamic |
| | | var sss=component.get("v.fileContentData"); |
| | | actionss.setParams({ |
| | | // fileData : component.get("v.fileContentData"), |
| | | fileData : fileStr, |
| | | // selectDateselectDate :component.find('select_date').get('v.value'), |
| | | sobjectName:'Account', //Any object |
| | | fields:fieldsList |
| | | // Agency_ContactListjson:resultjson |
| | | }); |
| | | actionss.setCallback(this, function(response) { |
| | | console.log('002'); |
| | | var state = response.getState(); |
| | | if (state === "SUCCESS") { |
| | | var res = response.getReturnValue(); |
| | | var res1 = ''; |
| | | console.log("[[[[[["+res); |
| | | if(res != 'success'){ |
| | | var ress = res.split('='); |
| | | console.log(ress); |
| | | for (var i=0; i<ress.length; i++) { |
| | | res1 += ress[i].substr(7)+'\n'; |
| | | } |
| | | // $('.forceToastManager').css('white-space', 'pre-wrap'); |
| | | console.log("=="+res1); |
| | | this.error(res1+"请修改后重新上传"); |
| | | component.set('v.login',false); |
| | | }else{ |
| | | component.set("v.showMain",true); |
| | | this.success("导入成功"); |
| | | // alert('saved successfully'); |
| | | component.set('v.login',false); |
| | | } |
| | | |
| | | } |
| | | else if (state === "INCOMPLETE") { |
| | | // do something |
| | | component.set('v.login',false); |
| | | } |
| | | else if (state === "ERROR") { |
| | | var errors = response.getError(); |
| | | if (errors) { |
| | | if (errors[0] && errors[0].message) { |
| | | console.log("Error message: " + |
| | | errors[0].message); |
| | | component.set('v.login',false); |
| | | } |
| | | } else { |
| | | console.log("Unknown error"); |
| | | component.set('v.login',false); |
| | | } |
| | | } |
| | | }); |
| | | $A.enqueueAction(actionss); |
| | | },saveRecordsEditFile : function(component,dataMap,searchData,helper){ |
| | | var searchDataMap = new Map(); |
| | | for (var i = 0; i < searchData.length; i++) { |
| | | var sd = searchData[i]; |
| | | searchDataMap.set(sd.name.replace(' ',''),sd.dataId); |
| | | } |
| | | console.log('searchDataMap='+searchDataMap); |
| | | var error = ''; |
| | | var fileData = component.get("v.fileContentData"); |
| | | var files = fileData.split('\n'); |
| | | |
| | | var fileStr = files[0]; |
| | | fileStr += '\n'; |
| | | |
| | | for (var i = 1; i < files.length-1; i++) { |
| | | var filelist = files[i].split(','); |
| | | var fileName = filelist[4]; |
| | | |
| | | if (searchDataMap.get(fileName.replace(' ',''))) { |
| | | var nameDataId = searchDataMap.get(fileName.replace(' ','')); |
| | | if (dataMap.get(nameDataId)) { |
| | | filelist[4] = dataMap.get(nameDataId); //zhj 新方案改造 filelist[4]不再存的nameEncrpt 2022-12-21 |
| | | }else { |
| | | error += 'error1 第'+i+'行数据拜访人SF不存在'; |
| | | error += '='; |
| | | } |
| | | }else { |
| | | error += 'error1 第'+i+'行数据拜访人AWS不存在'; |
| | | error += '='; |
| | | } |
| | | fileStr += filelist.toString(); |
| | | fileStr += '\n'; |
| | | } |
| | | |
| | | if (error != '') { |
| | | this.error(error); |
| | | console.log('error='+error); |
| | | component.set('v.login',false); |
| | | return; |
| | | } |
| | | |
| | | console.log('fileStr='+fileStr); |
| | | $A.getCallback(function(){ |
| | | debugger |
| | | helper.ImportMethod(component,fileStr); |
| | | })(); |
| | | |
| | | }, |
| | | convertArrayOfObjectsToCSV : function(component,objectRecords){ |
| | | var csvStringResult, counter, keys, columnDivider, lineDivider,thkeys; |
| | | if (objectRecords == null || !objectRecords.length) { |
| | |
| | | } |
| | | columnDivider = ','; |
| | | lineDivider = '\n'; |
| | | keys = ['Submit_date__c','Person_In_Charge2__c','Report_Date__c','Agency_Hospital__c','Department_Cateogy__c','doctor2__c','visitor_title__c','Product_Category1__c','Product_Category2__c','Product_Category3__c','Purpose_Type__c','Result__c']; |
| | | thkeys = ['周','担当','活动日','医院','科室','拜访人','职位','产品区分1','产品区分2','产品区分3','活动区分','结果'] |
| | | //SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 start ,'SupportNeeds__c' ,'支援需求' |
| | | keys = ['Submit_date__c','Person_In_Charge2__c','Report_Date__c','Agency_Hospital__c','Department_Cateogy__c','doctor2__c','visitor_title__c','Product_Category1__c','Product_Category2__c','Product_Category3__c','Purpose_Type__c','Result__c','SupportNeeds__c']; |
| | | thkeys = ['周','担当','活动日','医院','科室','拜访人','职位','产品区分1','产品区分2','产品区分3','活动区分','结果','支援需求'] |
| | | csvStringResult = ''; |
| | | csvStringResult += thkeys.join(columnDivider); |
| | | csvStringResult += lineDivider; |
| | |
| | | csvStringResult += '"'+ objectRecords[i].Product_Category2__r.Name+'"'; |
| | | }else if(skey == 'Product_Category3__c'){ |
| | | csvStringResult += '"'+ objectRecords[i].Product_Category3__r.Name+'"'; |
| | | }else{ |
| | | } |
| | | else if(skey == 'SupportNeeds__c'){//SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 start |
| | | csvStringResult += '"'+ objectRecords[i].SupportNeeds__c+'"'; |
| | | } |
| | | else{ |
| | | csvStringResult += '"'+ objectRecords[i][skey]+'"'; |
| | | } |
| | | counter++; |
| | |
| | | return csvStringResult; |
| | | }, |
| | | showExportDate : function(component,objectRecords){ |
| | | console.log('进入showexceportdate'+objectRecords); |
| | | var keys = ['Submit_date__c','Person_In_Charge2__c','Report_Date__c','Agency_Hospital__c','Department_Cateogy__c','doctor2__c','visitor_title__c','Product_Category1__c','Product_Category2__c','Product_Category3__c','Purpose_Type__c','Result__c']; |
| | | var headers = ['周','担当','活动日','医院','科室','拜访人','职位','产品区分1','产品区分2','产品区分3','活动区分','结果'] |
| | | console.log('进入showexceportdate'+objectRecords);//SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 start ,'SupportNeeds__c' ,'支援需求' |
| | | var keys = ['Submit_date__c','Person_In_Charge2__c','Report_Date__c','Agency_Hospital__c','Department_Cateogy__c','doctor2__c','visitor_title__c','Product_Category1__c','Product_Category2__c','Product_Category3__c','Purpose_Type__c','Result__c','SupportNeeds__c']; |
| | | var headers = ['周','担当','活动日','医院','科室','拜访人','职位','产品区分1','产品区分2','产品区分3','活动区分','结果','支援需求'] |
| | | var content = "<table class=\"table slds-table slds-table--bordered slds-table--cell-buffer\">"; |
| | | content += "<thead><tr class=\"slds-text-title--caps\">"; |
| | | for(i=0;i<headers.length; i++){ |
| | |
| | | content += '<td>'+ objectRecords[i].Product_Category2__r.Name+'</td>'; |
| | | }else if(skey == 'Product_Category3__c'){ |
| | | content += '<td>'+ objectRecords[i].Product_Category3__r.Name+'</td>'; |
| | | }else{ |
| | | } |
| | | else if(skey == 'SupportNeeds__c'){//SWAG-CBX68C fy 【委托】DAMS系统周报模块内容需求增加 start |
| | | content += '<td>'+ objectRecords[i].SupportNeeds__c+'</td>'; |
| | | } |
| | | else{ |
| | | content += '<td>'+ objectRecords[i][skey]+'</td>'; |
| | | } |
| | | } // inner for loop close |
| | |
| | | var res = response.getReturnValue(); |
| | | console.log('输入的开始日期3'+res); |
| | | component.set('v.login',false); |
| | | this.showExportDate(component,res); |
| | | |
| | | // PI 改造 By Bright 20220328 |
| | | if(true){ |
| | | let awsids = []; |
| | | for (let ri in res) { |
| | | if(res[ri] && res[ri].doctor2__r && res[ri].doctor2__r.AWS_Data_Id__c){ |
| | | awsids.push(res[ri].doctor2__r.AWS_Data_Id__c); |
| | | } |
| | | } |
| | | if(awsids.length > 0){ |
| | | let awsurl = component.get('v.awsurl'); |
| | | |
| | | AWSService.search(awsurl.searchUrl,{ |
| | | dataIds:awsids |
| | | }, function(data){ |
| | | if(data && data.object && data.object.length){ |
| | | let m = {}; |
| | | for(let di in data.object){ |
| | | if(data.object[di] && data.object[di].dataId){ |
| | | m[data.object[di].dataId] = data.object[di]; |
| | | } |
| | | } |
| | | |
| | | for(let ri in res){ |
| | | if(res[ri] && res[ri].doctor2__r && res[ri].doctor2__r.AWS_Data_Id__c && m.hasOwnProperty(res[ri].doctor2__r.AWS_Data_Id__c)){ |
| | | res[ri].doctor2__r.Name = m[res[ri].doctor2__r.AWS_Data_Id__c].name; |
| | | res[ri].visitor_title__c = m[res[ri].doctor2__r.AWS_Data_Id__c].doctorDivision1; |
| | | |
| | | } |
| | | } |
| | | } |
| | | helper.showExportDate(component, res); |
| | | |
| | | component.set('v.login', false); |
| | | }, awsurl.token); |
| | | }else{ |
| | | helper.showExportDate(component, res); |
| | | } |
| | | } |
| | | |
| | | |
| | | component.set('v.reports_date', res); |
| | | |
| | | }else{ |
| | |
| | | var modalimportbg = component.find('modal_exportbg'); |
| | | $A.util.addClass(modalimport, 'disp_none'); |
| | | $A.util.addClass(modalimportbg,'disp_none'); |
| | | } |
| | | }, |
| | | |
| | | //zhj MEBG新方案改造 2022-11-29 start |
| | | CallBackAction : function(component,action_name,para,callback) { |
| | | var action = component.get("c." + action_name.trimStart().replace("c.","")); |
| | | if(para){ |
| | | action.setParams(para); |
| | | } |
| | | if(callback){ |
| | | action.setCallback(this,function(data){ |
| | | callback(data); |
| | | }); |
| | | } |
| | | |
| | | $A.enqueueAction(action); |
| | | }, |
| | | //zhj MEBG新方案改造 2022-11-29 end |
| | | |
| | | // searchAgencyContact : function(res) { |
| | | // var agencyContacts = []; |
| | | // for (let idx = 0; idx < res.length; idx++) { |
| | | // agencyContacts.push(res[idx].awsid); |
| | | // } |
| | | // var action = component.get('c.getAWStoken'); |
| | | // action.setCallback(this,function(response){ |
| | | // var state = response.getState(); |
| | | // console.log('state : ' + state); |
| | | // if(state === 'SUCCESS') { |
| | | // console.log('get name : ' + action.getName()); |
| | | // } |
| | | // else if(state === 'INCOMPLETE') { |
| | | // console.log('incomplete state'); |
| | | // } else if(state === 'ERROR') { |
| | | // if (errors) { |
| | | // if (errors[0] && errors[0].message) { |
| | | // console.log("Error message: " + |
| | | // errors[0].message); |
| | | // } |
| | | // } else { |
| | | // console.log("Unknown error"); |
| | | // } |
| | | // } |
| | | // }); |
| | | // $A.enqueueAction(action); |
| | | // // var requestSearchPayload = new Map(); |
| | | // // requestSearchPayload.set("dataIds",agencyContacts); |
| | | // var data = '{"dataIds": ["944233643042144256", "943645353649897473"]}'; |
| | | // var token = 'eyJhbGciOiJIUzUxMiJ9.eyJjcmVhdGVkIjoxNjQ0NzY4MTIwNjc2LCJhcHBpZCI6IjZMeml6Y1JmN2g4eUx4MjgiLCJleHAiOjE2NDk5NTIxMjB9.6vORDP8BRaf_beCt4SEXrl3DEuYZ3owotkUqh27r8YhfmKDDWrv_NpVVpjTPeFjvzlQqaJMcFobZeAmPxpmq2A'; |
| | | // var searchUrl = 'https://52.83.101.205/api/agencycontact/search'; |
| | | // var data = this.search(searchUrl,data,token); |
| | | // return data;searchUrl,requestSearchPayload,token |
| | | // }, |
| | | }) |
| | |
| | | <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes,lightning:isUrlAddressable" access="global" controller="eSignAgencyPageController"> |
| | | <!-- 获取AWS信息 deloitte zhj 2022-01-03 start --> |
| | | <aura:attribute name="staticResource" type="Object" /> |
| | | <!-- 获取AWS信息 deloitte zhj 2022-01-03 end --> |
| | | |
| | | <aura:attribute name="DNName" type="String" description="用来从父对象接收传递过来的DN号" default="" /> |
| | | <aura:attribute name="allWidth" type="String" description="用来从父对象接收传递过来的屏幕宽度" default="" /> |
| | | <aura:attribute name="floatWidth" type="String" description="用来从父对象接收传递过来的屏幕宽度" default="" /> |
| | |
| | | <aura:attribute name="pdfSrc" type="Map" default="{}" description="关联pdf文件名和空白src" /> |
| | | <!-- 增加删除功能 精琢技术 thh 2021-09-26 end --> |
| | | |
| | | |
| | | |
| | | <div> |
| | | <lightning:spinner aura:id="mySpinner" size="large" description="加载中组件,如果不隐藏整个页面就在加载中" /> |
| | | </div> |
| | |
| | | // helper.getFlieSpan(cmp); |
| | | // setInterval(helper.getDivSpan(), 1000); |
| | | // var reloadInterval = window.setInterval(helper.getDivSpan(), 1000); |
| | | |
| | | //zhj 2022-01-03 start |
| | | helper.CallBackAction(cmp,'getAWS',{ |
| | | objectName : 'Document' |
| | | },function(data){ |
| | | console.log('进入getAWS'); |
| | | if(data.getState() == "SUCCESS"){ |
| | | var rv = data.getReturnValue() |
| | | if(rv.IsSuccess){ |
| | | let staticResource = JSON.parse(rv.Data); |
| | | console.log('staticResource = ' + staticResource); |
| | | cmp.set('v.staticResource',staticResource); |
| | | } |
| | | } |
| | | }); |
| | | //zhj 2022-01-03 end |
| | | }, |
| | | // 明细页表格的翻页下一页 |
| | | handleNext: function(cmp, event, helper) { |
| | |
| | | var deletecount = count - 1; |
| | | cmp.set("v.fileSize", deletecount); |
| | | //关联后端代码删除签收单录入表中的附件 |
| | | var action = cmp.get("c.deleteChunk"); |
| | | //var action = cmp.get("c.deleteChunk"); |
| | | var action = cmp.get("c.deleteFile"); //zhj 删除sf的附件 2023-01-23 |
| | | var attachmentID = cmp.get("v.attachmentID"); |
| | | var AttachmentID = attachmentID[name]; |
| | | action.setParams({ |
| | | AttachmentId: AttachmentID |
| | | //AttachmentId: AttachmentID |
| | | fileId : AttachmentID |
| | | }); |
| | | //通过页面断点验证action方法是否成功 |
| | | action.setCallback(this, function(response) { |
| | | var state = response.getState(); |
| | | if (state === "SUCCESS") { |
| | | var awsKey = response.getReturnValue(); |
| | | var keyList = []; |
| | | keyList.push(awsKey); |
| | | //zhj 删除AWS的附件 2023-01-23 |
| | | let staticResource = cmp.get('v.staticResource'); |
| | | helper.awsPushData(staticResource.deleteUrl,keyList, function(result){ |
| | | console.log('删除附件'); |
| | | console.log('result = ' + JSON.stringify(result)) |
| | | },staticResource.token,'POST') |
| | | } |
| | | }); |
| | | //执行action方法 |
| | | $A.enqueueAction(action); |
| | |
| | | //用于判断上传同一个文件提示 |
| | | component.set("v.messageFlag", false); |
| | | messageFlag = component.get("v.messageFlag"); |
| | | var action = component.get("c.saveChunk"); |
| | | action.setParams({ |
| | | parentId: component.get("v.parentId"), |
| | | fileName: file.name, |
| | | base64Data: encodeURIComponent(getchunk), |
| | | contentType: file.type, |
| | | fileId: attachId |
| | | }); |
| | | // set call back |
| | | action.setCallback(this, function(response) { |
| | | // store the response / Attachment Id |
| | | attachId = response.getReturnValue(); |
| | | //增加文件列表删除功能 精琢技术 thh 2021-09-02 start |
| | | //关联附件ID和附件名 |
| | | var attachmentID = component.get("v.attachmentID"); |
| | | attachmentID[file.name] = attachId; |
| | | component.set("v.attachmentID", attachmentID); |
| | | //增加文件列表删除功能 精琢技术 thh 2021-09-02 end |
| | | var state = response.getState(); |
| | | if (state === "SUCCESS") { |
| | | // update the start position with end postion |
| | | startPosition = endPosition; |
| | | endPosition = Math.min( |
| | | fileContents.length, |
| | | startPosition + this.CHUNK_SIZE |
| | | ); |
| | | // check if the start postion is still less then end postion |
| | | // then call again 'uploadInChunk' method , |
| | | // else, diaply alert msg and hide the loading spinner |
| | | if (startPosition < endPosition) { |
| | | this.uploadInChunk( |
| | | component, |
| | | file, |
| | | fileContents, |
| | | startPosition, |
| | | endPosition, |
| | | attachId |
| | | ); |
| | | } else { |
| | | //判断上传文件内容 提示一次信息 |
| | | var base = component.get("v.getchunk"); |
| | | if (!base || (base && base != getchunk)) { |
| | | // alert("您已经成功上传文件。"); |
| | | component.set("v.getchunk", getchunk); |
| | | } |
| | | |
| | | alert("您已经成功上传文件。\n请点击提交后退出。"); |
| | | //用于提交按钮判断是否有已上传的文件 |
| | | component.set('v.IsUpLoad', true); |
| | | //用于判断上传同一个文件提示 |
| | | component.set("v.messageFlag", true); |
| | | messageFlag = component.get("v.messageFlag"); |
| | | component.set("v.showLoadingSpinner", false); |
| | | //标识预览图片名字 精琢技术 thh 2021-09-15 start |
| | | var isUploadName = component.get("v.isUploadName"); |
| | | var fileName = component.find("fileId").get("v.files")[0]['name']; |
| | | if (isUploadName[fileName]) { |
| | | var str = '<span>当前文件:</span><span id="nowfile" class="field-title" style="color:Green;" title="' + fileName + '">' + fileName + '</span>'; |
| | | document.getElementById("uploadicon").style.display = 'inline-block'; |
| | | } else { |
| | | var str = '<span>当前文件:</span><span id="nowfile" class="field-title" style="color:Gray;" title="' + fileName + '">' + fileName + '</span>'; |
| | | document.getElementById("uploadicon").style.display = 'none'; |
| | | } |
| | | var obj = document.getElementById('filenow'); |
| | | obj.innerHTML = str; |
| | | //标识预览图片名字 精琢技术 thh 2021-09-15 end |
| | | //上传成功后文件列表的文件名变色 精琢技术 thh 2021-09-26 start |
| | | var count = component.get("v.fileUpLoadSize"); |
| | | var fileName = component.get("v.flUpLoadName"); |
| | | if (count > 0) { |
| | | //列出文件名01 所有文件名都用逗号隔开 根据逗号拆分,存放数组 |
| | | var nameList = fileName.split(','); |
| | | for (var i = 0; i < nameList.length; i++) { |
| | | for (var j = i + 1; j < nameList.length; j++) { |
| | | if (nameList[i] == nameList[j]) { //第一个等同于第二个,splice方法删除第二个 |
| | | nameList.splice(j, 1); |
| | | j--; |
| | | //zhj 不使用分批上传的功能,等该文件累计完成之后再上传到AWS然后存在sf的FileAddress__c start |
| | | debugger |
| | | startPosition = endPosition; |
| | | endPosition = Math.min( |
| | | fileContents.length, |
| | | startPosition + this.CHUNK_SIZE |
| | | ); |
| | | if (startPosition < endPosition) { |
| | | this.uploadInChunk( |
| | | component, |
| | | file, |
| | | fileContents, |
| | | startPosition, |
| | | endPosition, |
| | | '' |
| | | ); |
| | | } |
| | | let staticResource = component.get('v.staticResource'); |
| | | var reader = new FileReader(); |
| | | reader.readAsDataURL(file.slice(0, endPosition)); |
| | | var that = this; |
| | | reader.onloadend = function(evt){ |
| | | if(evt.target.readyState == FileReader.DONE){ |
| | | var base64value = evt.target.result; |
| | | var Base64 = {}; |
| | | Base64.file = base64value; |
| | | Base64.fileName = file.name; |
| | | Base64.size = fileContents.length; |
| | | //调用AWS 保存文件v.staticResource |
| | | //awsPushData : function(destUrl, payloadForNewPI, callback, token,type) |
| | | that.awsPushData(staticResource.newUrl,JSON.stringify(Base64), function(result){ |
| | | console.log('result = ' + result); |
| | | if(result.status == '0'){ |
| | | //sf去保存 |
| | | // var action = component.get("c.saveFile"); |
| | | // action.setParams({ |
| | | // fileName: file.name, |
| | | // key : result.object, |
| | | // transId : result.txId, |
| | | // parentId: component.get("v.parentId") |
| | | // }); |
| | | that.CallBackAction(component,'saveFile',{ |
| | | fileName: file.name, |
| | | key : result.object, |
| | | transId : result.txId, |
| | | parentId: component.get("v.parentId") |
| | | },function(response){ |
| | | //增加文件列表删除功能 精琢技术 thh 2021-09-02 end |
| | | var state = response.getState(); |
| | | if (state === "SUCCESS") { |
| | | //执行trans方法,进行确认成功 |
| | | that.awsPushData(staticResource.updateUrl,JSON.stringify({ 'txId': result.txId, "isSuccess": 1 }), function(result){ |
| | | console('确认事务 =' + json.stringify(result)); |
| | | },staticResource.token,'POST'); |
| | | // store the response / Attachment Id |
| | | attachId = response.getReturnValue(); //attachId改造之后变成了是File_Address__c的Id deloitte-zhj 2023-01-11 |
| | | //增加文件列表删除功能 精琢技术 thh 2021-09-02 start |
| | | //关联附件ID和附件名 |
| | | var attachmentID = component.get("v.attachmentID"); |
| | | attachmentID[file.name] = attachId; |
| | | component.set("v.attachmentID", attachmentID); |
| | | //判断上传文件内容 提示一次信息 |
| | | var base = component.get("v.getchunk"); |
| | | if (!base || (base && base != getchunk)) { |
| | | // alert("您已经成功上传文件。"); |
| | | component.set("v.getchunk", getchunk); |
| | | } |
| | | } |
| | | } |
| | | //存放到变量中 用于上一页下一页连点 |
| | | component.set('v.nameUpLoadList', nameList); |
| | | //重新定义选中文件的数量 |
| | | component.set('v.fileSize', nameList.length); |
| | | console.log("nameList:" + component.get('v.nameUpLoadList')); |
| | | var isUploadName = component.get("v.isUploadName"); |
| | | if (nameList.length > 0) { |
| | | var strList = ''; |
| | | for (var i = 0; i < nameList.length; i++) { |
| | | var num = Number(i) + 1; |
| | | var id = 'file0' + num; |
| | | //标识文件是否已经上传 精琢技术 thh 2021-09-26 start |
| | | if (isUploadName[nameList[i]]) { |
| | | var str = '<button id="' + id + '" class="slds-button" title="Field 3" style="text-align:left;width:250px;font-weight:bold;font-size: 15px;color:Green;" name="' + nameList[i] + '">' + nameList[i] + '</button><br>'; |
| | | |
| | | alert("您已经成功上传文件。\n请点击提交后退出。"); |
| | | //用于提交按钮判断是否有已上传的文件 |
| | | component.set('v.IsUpLoad', true); |
| | | //用于判断上传同一个文件提示 |
| | | component.set("v.messageFlag", true); |
| | | messageFlag = component.get("v.messageFlag"); |
| | | component.set("v.showLoadingSpinner", false); |
| | | //标识预览图片名字 精琢技术 thh 2021-09-15 start |
| | | var isUploadName = component.get("v.isUploadName"); |
| | | var fileName = component.find("fileId").get("v.files")[0]['name']; |
| | | if (isUploadName[fileName]) { |
| | | var str = '<span>当前文件:</span><span id="nowfile" class="field-title" style="color:Green;" title="' + fileName + '">' + fileName + '</span>'; |
| | | document.getElementById("uploadicon").style.display = 'inline-block'; |
| | | } else { |
| | | var str = '<button id="' + id + '" class="slds-button" title="Field 3" style="text-align:left;width:250px;font-weight:bold;font-size: 15px;color:Gray;" name="' + nameList[i] + '">' + nameList[i] + '</button><br>'; |
| | | var str = '<span>当前文件:</span><span id="nowfile" class="field-title" style="color:Gray;" title="' + fileName + '">' + fileName + '</span>'; |
| | | document.getElementById("uploadicon").style.display = 'none'; |
| | | } |
| | | //标识文件是否已经上传 精琢技术 thh 2021-09-26 end |
| | | //拼接p标签 列出文件名id不同 |
| | | strList += str; |
| | | var obj = document.getElementById('filenow'); |
| | | obj.innerHTML = str; |
| | | //标识预览图片名字 精琢技术 thh 2021-09-15 end |
| | | //上传成功后文件列表的文件名变色 精琢技术 thh 2021-09-26 start |
| | | var count = component.get("v.fileUpLoadSize"); |
| | | var fileName = component.get("v.flUpLoadName"); |
| | | if (count > 0) { |
| | | //列出文件名01 所有文件名都用逗号隔开 根据逗号拆分,存放数组 |
| | | var nameList = fileName.split(','); |
| | | for (var i = 0; i < nameList.length; i++) { |
| | | for (var j = i + 1; j < nameList.length; j++) { |
| | | if (nameList[i] == nameList[j]) { //第一个等同于第二个,splice方法删除第二个 |
| | | nameList.splice(j, 1); |
| | | j--; |
| | | } |
| | | } |
| | | } |
| | | //存放到变量中 用于上一页下一页连点 |
| | | component.set('v.nameUpLoadList', nameList); |
| | | //重新定义选中文件的数量 |
| | | component.set('v.fileSize', nameList.length); |
| | | console.log("nameList:" + component.get('v.nameUpLoadList')); |
| | | var isUploadName = component.get("v.isUploadName"); |
| | | if (nameList.length > 0) { |
| | | var strList = ''; |
| | | for (var i = 0; i < nameList.length; i++) { |
| | | var num = Number(i) + 1; |
| | | var id = 'file0' + num; |
| | | //标识文件是否已经上传 精琢技术 thh 2021-09-26 start |
| | | if (isUploadName[nameList[i]]) { |
| | | var str = '<button id="' + id + '" class="slds-button" title="Field 3" style="text-align:left;width:250px;font-weight:bold;font-size: 15px;color:Green;" name="' + nameList[i] + '">' + nameList[i] + '</button><br>'; |
| | | } else { |
| | | var str = '<button id="' + id + '" class="slds-button" title="Field 3" style="text-align:left;width:250px;font-weight:bold;font-size: 15px;color:Gray;" name="' + nameList[i] + '">' + nameList[i] + '</button><br>'; |
| | | } |
| | | //标识文件是否已经上传 精琢技术 thh 2021-09-26 end |
| | | //拼接p标签 列出文件名id不同 |
| | | strList += str; |
| | | } |
| | | var obj = document.getElementById('file00'); |
| | | obj.innerHTML = strList; |
| | | } |
| | | } |
| | | //上传成功后文件列表的文件名变色 精琢技术 thh 2021-09-26 end |
| | | //} |
| | | //zhj 不使用分批上传的功能,等该文件累计完成之后再上传到AWS然后存在sf的FileAddress__c end |
| | | // handel the response errors |
| | | } else if (state === "INCOMPLETE") { |
| | | alert("From server: " + response.getReturnValue()); |
| | | component.set("v.showLoadingSpinner", false); |
| | | component.set("v.errorFlag", true); |
| | | |
| | | } else if (state === "ERROR") { |
| | | var errors = response.getError(); |
| | | component.set("v.showLoadingSpinner", false); |
| | | component.set("v.errorFlag", true); |
| | | if (errors) { |
| | | if (errors[0] && errors[0].message) { |
| | | console.log("Error message: " + errors[0].message); |
| | | } |
| | | } else { |
| | | console.log("Unknown error"); |
| | | } |
| | | } |
| | | var obj = document.getElementById('file00'); |
| | | obj.innerHTML = strList; |
| | | } |
| | | }); |
| | | // enqueue the action |
| | | //$A.enqueueAction(action); |
| | | } |
| | | //上传成功后文件列表的文件名变色 精琢技术 thh 2021-09-26 end |
| | | } |
| | | // handel the response errors |
| | | } else if (state === "INCOMPLETE") { |
| | | alert("From server: " + response.getReturnValue()); |
| | | component.set("v.showLoadingSpinner", false); |
| | | component.set("v.errorFlag", true); |
| | | |
| | | } else if (state === "ERROR") { |
| | | var errors = response.getError(); |
| | | component.set("v.showLoadingSpinner", false); |
| | | component.set("v.errorFlag", true); |
| | | if (errors) { |
| | | if (errors[0] && errors[0].message) { |
| | | console.log("Error message: " + errors[0].message); |
| | | } |
| | | } else { |
| | | console.log("Unknown error"); |
| | | } |
| | | },staticResource.token,'POST'); |
| | | }else{ |
| | | alert('Could not read file'); |
| | | } |
| | | }); |
| | | // enqueue the action |
| | | $A.enqueueAction(action); |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | | } else if (!base64List.includes(getchunk) || (base64List.includes(getchunk) && errorFlag)) { |
| | | //网络波动进来以后 置成false |
| | | component.set("v.errorFlag", false); |
| | | //用于判断上传同一个文件提示 |
| | | component.set("v.messageFlag", false); |
| | | messageFlag = component.get("v.messageFlag"); |
| | | var action = component.get("c.saveChunk"); |
| | | action.setParams({ |
| | | parentId: component.get("v.parentId"), |
| | | fileName: file.name, |
| | | base64Data: encodeURIComponent(getchunk), |
| | | contentType: file.type, |
| | | fileId: attachId |
| | | }); |
| | | |
| | | // set call back |
| | | action.setCallback(this, function(response) { |
| | | // store the response / Attachment Id |
| | | attachId = response.getReturnValue(); |
| | | //增加文件列表删除功能 精琢技术 thh 2021-09-02 start |
| | | //关联附件ID和附件名 |
| | | var attachmentID = component.get("v.attachmentID"); |
| | | attachmentID[file.name] = attachId; |
| | | component.set("v.attachmentID", attachmentID); |
| | | //增加文件列表删除功能 精琢技术 thh 2021-09-02 end |
| | | var state = response.getState(); |
| | | if (state === "SUCCESS") { |
| | | // update the start position with end postion |
| | | startPosition = endPosition; |
| | | endPosition = Math.min( |
| | | fileContents.length, |
| | | startPosition + this.CHUNK_SIZE |
| | | ); |
| | | // check if the start postion is still less then end postion |
| | | // then call again 'uploadInChunk' method , |
| | | // else, diaply alert msg and hide the loading spinner |
| | | if (startPosition < endPosition) { |
| | | this.uploadInChunk( |
| | | component, |
| | | file, |
| | | fileContents, |
| | | startPosition, |
| | | endPosition, |
| | | attachId |
| | | ); |
| | | } else { |
| | | //判断上传文件内容 提示一次信息 |
| | | var base = component.get("v.getchunk"); |
| | | if (!base || (base && base != getchunk)) { |
| | | // alert("您已经成功上传文件。"); |
| | | component.set("v.getchunk", getchunk); |
| | | } |
| | | alert("您已经成功上传文件。\n请点击提交后退出。"); |
| | | //用于提交按钮判断是否有已上传的文件 |
| | | component.set('v.IsUpLoad', true); |
| | | //用于判断上传同一个文件提示 |
| | | component.set("v.messageFlag", true); |
| | | messageFlag = component.get("v.messageFlag"); |
| | | component.set("v.showLoadingSpinner", false); |
| | | //标识预览图片名字 精琢技术 thh 2021-09-15 start |
| | | var isUploadName = component.get("v.isUploadName"); |
| | | var fileName = component.find("fileId").get("v.files")[0]['name']; |
| | | if (isUploadName[fileName]) { |
| | | var str = '<span>当前文件:</span><span id="nowfile" class="field-title" style="color:Green;" title="' + fileName + '">' + fileName + '</span>'; |
| | | document.getElementById("uploadicon").style.display = 'inline-block'; |
| | | } else { |
| | | var str = '<span>当前文件:</span><span id="nowfile" class="field-title" style="color:Gray;" title="' + fileName + '">' + fileName + '</span>'; |
| | | document.getElementById("uploadicon").style.display = 'none'; |
| | | } |
| | | var obj = document.getElementById('filenow'); |
| | | obj.innerHTML = str; |
| | | //标识预览图片名字 精琢技术 thh 2021-09-15 end |
| | | //上传成功后文件列表的文件名变色 精琢技术 thh 2021-09-26 start |
| | | var count = component.get("v.fileUpLoadSize"); |
| | | var fileName = component.get("v.flUpLoadName"); |
| | | if (count > 0) { |
| | | //列出文件名01 所有文件名都用逗号隔开 根据逗号拆分,存放数组 |
| | | var nameList = fileName.split(','); |
| | | for (var i = 0; i < nameList.length; i++) { |
| | | for (var j = i + 1; j < nameList.length; j++) { |
| | | if (nameList[i] == nameList[j]) { //第一个等同于第二个,splice方法删除第二个 |
| | | nameList.splice(j, 1); |
| | | j--; |
| | | //zhj 不使用分批上传的功能,等该文件累计完成之后再上传到AWS然后存在sf的FileAddress__c start |
| | | debugger |
| | | startPosition = endPosition; |
| | | endPosition = Math.min( |
| | | fileContents.length, |
| | | startPosition + this.CHUNK_SIZE |
| | | ); |
| | | if (startPosition < endPosition) { |
| | | this.uploadInChunk( |
| | | component, |
| | | file, |
| | | fileContents, |
| | | startPosition, |
| | | endPosition, |
| | | '' |
| | | ); |
| | | } |
| | | let staticResource = component.get('v.staticResource'); |
| | | var reader = new FileReader(); |
| | | reader.readAsDataURL(file.slice(0, endPosition)); |
| | | var that = this; |
| | | reader.onloadend = function(evt){ |
| | | if(evt.target.readyState == FileReader.DONE){ |
| | | var base64value = evt.target.result; |
| | | var Base64 = {}; |
| | | Base64.file = base64value; |
| | | Base64.fileName = file.name; |
| | | Base64.size = fileContents.length; |
| | | //调用AWS 保存文件v.staticResource |
| | | that.awsPushData(staticResource.newUrl,JSON.stringify(Base64), function(result){ |
| | | console.log('result = ' + result); |
| | | if(result.status == '0'){ |
| | | //sf去保存 |
| | | // var action = component.get("c.saveFile"); |
| | | // action.setParams({ |
| | | // fileName: file.name, |
| | | // key : result.object, |
| | | // transId : result.txId, |
| | | // parentId: component.get("v.parentId") |
| | | // }); |
| | | that.CallBackAction(component,'saveFile',{ |
| | | fileName: file.name, |
| | | key : result.object, |
| | | transId : result.txId, |
| | | parentId: component.get("v.parentId") |
| | | },function(response){ |
| | | // }); |
| | | // action.setCallback(that, function(response) { |
| | | //增加文件列表删除功能 精琢技术 thh 2021-09-02 end |
| | | var state = response.getState(); |
| | | if (state === "SUCCESS") { |
| | | //执行trans方法,进行确认成功 |
| | | that.awsPushData(staticResource.updateUrl,JSON.stringify({ 'txId': result.txId, "isSuccess": 1 }), function(result){ |
| | | console('确认事务 =' + JSON.stringify(result)); |
| | | },staticResource.token,'POST'); |
| | | // store the response / Attachment Id |
| | | attachId = response.getReturnValue(); //attachId改造之后变成了是File_Address__c的Id deloitte-zhj 2023-01-11 |
| | | //增加文件列表删除功能 精琢技术 thh 2021-09-02 start |
| | | //关联附件ID和附件名 |
| | | var attachmentID = component.get("v.attachmentID"); |
| | | attachmentID[file.name] = attachId; |
| | | component.set("v.attachmentID", attachmentID); |
| | | //判断上传文件内容 提示一次信息 |
| | | var base = component.get("v.getchunk"); |
| | | if (!base || (base && base != getchunk)) { |
| | | // alert("您已经成功上传文件。"); |
| | | component.set("v.getchunk", getchunk); |
| | | } |
| | | } |
| | | } |
| | | //存放到变量中 用于上一页下一页连点 |
| | | component.set('v.nameUpLoadList', nameList); |
| | | //重新定义选中文件的数量 |
| | | component.set('v.fileSize', nameList.length); |
| | | console.log("nameList:" + component.get('v.nameUpLoadList')); |
| | | var isUploadName = component.get("v.isUploadName"); |
| | | if (nameList.length > 0) { |
| | | var strList = ''; |
| | | for (var i = 0; i < nameList.length; i++) { |
| | | var num = Number(i) + 1; |
| | | var id = 'file0' + num; |
| | | //标识文件是否已经上传 精琢技术 thh 2021-09-26 start |
| | | if (isUploadName[nameList[i]]) { |
| | | var str = '<button id="' + id + '" class="slds-button" title="Field 3" style="text-align:left;width:250px;font-weight:bold;font-size: 15px;color:Green;" name="' + nameList[i] + '">' + nameList[i] + '</button><br>'; |
| | | |
| | | alert("您已经成功上传文件。\n请点击提交后退出。"); |
| | | //用于提交按钮判断是否有已上传的文件 |
| | | component.set('v.IsUpLoad', true); |
| | | //用于判断上传同一个文件提示 |
| | | component.set("v.messageFlag", true); |
| | | messageFlag = component.get("v.messageFlag"); |
| | | component.set("v.showLoadingSpinner", false); |
| | | //标识预览图片名字 精琢技术 thh 2021-09-15 start |
| | | var isUploadName = component.get("v.isUploadName"); |
| | | var fileName = component.find("fileId").get("v.files")[0]['name']; |
| | | if (isUploadName[fileName]) { |
| | | var str = '<span>当前文件:</span><span id="nowfile" class="field-title" style="color:Green;" title="' + fileName + '">' + fileName + '</span>'; |
| | | document.getElementById("uploadicon").style.display = 'inline-block'; |
| | | } else { |
| | | var str = '<button id="' + id + '" class="slds-button" title="Field 3" style="text-align:left;width:250px;font-weight:bold;font-size: 15px;color:Gray;" name="' + nameList[i] + '">' + nameList[i] + '</button><br>'; |
| | | var str = '<span>当前文件:</span><span id="nowfile" class="field-title" style="color:Gray;" title="' + fileName + '">' + fileName + '</span>'; |
| | | document.getElementById("uploadicon").style.display = 'none'; |
| | | } |
| | | //标识文件是否已经上传 精琢技术 thh 2021-09-26 end |
| | | //拼接p标签 列出文件名id不同 |
| | | strList += str; |
| | | var obj = document.getElementById('filenow'); |
| | | obj.innerHTML = str; |
| | | //标识预览图片名字 精琢技术 thh 2021-09-15 end |
| | | //上传成功后文件列表的文件名变色 精琢技术 thh 2021-09-26 start |
| | | var count = component.get("v.fileUpLoadSize"); |
| | | var fileName = component.get("v.flUpLoadName"); |
| | | if (count > 0) { |
| | | //列出文件名01 所有文件名都用逗号隔开 根据逗号拆分,存放数组 |
| | | var nameList = fileName.split(','); |
| | | for (var i = 0; i < nameList.length; i++) { |
| | | for (var j = i + 1; j < nameList.length; j++) { |
| | | if (nameList[i] == nameList[j]) { //第一个等同于第二个,splice方法删除第二个 |
| | | nameList.splice(j, 1); |
| | | j--; |
| | | } |
| | | } |
| | | } |
| | | //存放到变量中 用于上一页下一页连点 |
| | | component.set('v.nameUpLoadList', nameList); |
| | | //重新定义选中文件的数量 |
| | | component.set('v.fileSize', nameList.length); |
| | | console.log("nameList:" + component.get('v.nameUpLoadList')); |
| | | var isUploadName = component.get("v.isUploadName"); |
| | | if (nameList.length > 0) { |
| | | var strList = ''; |
| | | for (var i = 0; i < nameList.length; i++) { |
| | | var num = Number(i) + 1; |
| | | var id = 'file0' + num; |
| | | //标识文件是否已经上传 精琢技术 thh 2021-09-26 start |
| | | if (isUploadName[nameList[i]]) { |
| | | var str = '<button id="' + id + '" class="slds-button" title="Field 3" style="text-align:left;width:250px;font-weight:bold;font-size: 15px;color:Green;" name="' + nameList[i] + '">' + nameList[i] + '</button><br>'; |
| | | } else { |
| | | var str = '<button id="' + id + '" class="slds-button" title="Field 3" style="text-align:left;width:250px;font-weight:bold;font-size: 15px;color:Gray;" name="' + nameList[i] + '">' + nameList[i] + '</button><br>'; |
| | | } |
| | | //标识文件是否已经上传 精琢技术 thh 2021-09-26 end |
| | | //拼接p标签 列出文件名id不同 |
| | | strList += str; |
| | | } |
| | | var obj = document.getElementById('file00'); |
| | | obj.innerHTML = strList; |
| | | } |
| | | } |
| | | //上传成功后文件列表的文件名变色 精琢技术 thh 2021-09-26 end |
| | | //zhj 不使用分批上传的功能,等该文件累计完成之后再上传到AWS然后存在sf的FileAddress__c end |
| | | // handel the response errors |
| | | } else if (state === "INCOMPLETE") { |
| | | alert("From server: " + response.getReturnValue()); |
| | | component.set("v.showLoadingSpinner", false); |
| | | component.set("v.errorFlag", true); |
| | | |
| | | } else if (state === "ERROR") { |
| | | var errors = response.getError(); |
| | | component.set("v.showLoadingSpinner", false); |
| | | component.set("v.errorFlag", true); |
| | | if (errors) { |
| | | if (errors[0] && errors[0].message) { |
| | | console.log("Error message: " + errors[0].message); |
| | | } |
| | | } else { |
| | | console.log("Unknown error"); |
| | | } |
| | | } |
| | | var obj = document.getElementById('file00'); |
| | | obj.innerHTML = strList; |
| | | } |
| | | }); |
| | | // enqueue the action |
| | | //$A.enqueueAction(action); |
| | | } |
| | | //上传成功后文件列表的文件名变色 精琢技术 thh 2021-09-26 end |
| | | } |
| | | // handel the response errors |
| | | } else if (state === "INCOMPLETE") { |
| | | alert("From server: " + response.getReturnValue()); |
| | | component.set("v.showLoadingSpinner", false); |
| | | component.set("v.errorFlag", true); |
| | | } else if (state === "ERROR") { |
| | | var errors = response.getError(); |
| | | component.set("v.showLoadingSpinner", false); |
| | | component.set("v.errorFlag", true); |
| | | if (errors) { |
| | | if (errors[0] && errors[0].message) { |
| | | console.log("Error message: " + errors[0].message); |
| | | } |
| | | } else { |
| | | console.log("Unknown error"); |
| | | } |
| | | },staticResource.token,'POST'); |
| | | }else{ |
| | | alert('Could not read file'); |
| | | } |
| | | }); |
| | | // enqueue the action |
| | | $A.enqueueAction(action); |
| | | } |
| | | } else { |
| | | if (messageFlag) { |
| | | alert("您已经上传过该文件了!") |
| | |
| | | component.set("v.base64List", base64List); |
| | | // component.set("v.showLoadingSpinner", false); |
| | | // baseFile = getchunk; |
| | | |
| | | |
| | | }, |
| | | |
| | |
| | | } |
| | | |
| | | return imgScale; |
| | | }, |
| | | },CallBackAction : function(component,action_name,para,callback) { //调用后台方法 zhj 2022-01-03 |
| | | var action = component.get("c." + action_name.trimStart().replace("c.","")); |
| | | if(para){ |
| | | action.setParams(para); |
| | | } |
| | | if(callback){ |
| | | action.setCallback(this,function(data){ |
| | | callback(data); |
| | | }); |
| | | } |
| | | |
| | | $A.enqueueAction(action); |
| | | },trans : function (fileName,txId,isSuccess){ //确认事务 AWS zhj 2022-01-03 |
| | | let transParameters = { |
| | | txId: txId, |
| | | isSuccess: isSuccess |
| | | }; |
| | | console.log('txId = ' + txId); |
| | | AWSService.confirmTrans(staticResource.updateUrl,JSON.stringify(transParameters),function(result){ |
| | | console.log(fileName); |
| | | console.log(JSON.stringify(result)) |
| | | },staticResource.token) |
| | | },awsPushData : function(destUrl, payloadForNewPI, callback, token,type) { //确认事务 AWS zhj 2022-01-03 |
| | | console.log('enter '+type); |
| | | let payloadstr= null; |
| | | if (payloadForNewPI) { |
| | | if (typeof payloadForNewPI == 'string') { |
| | | payloadstr = payloadForNewPI; |
| | | }else{ |
| | | payloadstr = JSON.stringify(payloadForNewPI); |
| | | } |
| | | } |
| | | console.log(payloadstr); |
| | | fetch(destUrl, { |
| | | method: type, |
| | | body: payloadstr, |
| | | headers: { |
| | | 'Content-Type': 'application/json', |
| | | 'pi-token': token |
| | | } |
| | | }).then((data) => { |
| | | return data.json(); |
| | | }).then((result) => { |
| | | console.log(result); |
| | | callback(result); |
| | | }).catch(error => { |
| | | console.log(error); |
| | | callback(0); |
| | | }); |
| | | } |
| | | |
| | | |
| | | }) |
| | |
| | | <aura:attribute name="buttonGroup" type="Boolean" default="false" /> |
| | | <aura:attribute name="eSignForm" type="object" /> |
| | | <aura:attribute name="DNName" type="string" default="" /> |
| | | <!-- 进口单证 fy start --> |
| | | <aura:attribute name="DNId" type="string" default="" /> |
| | | <!-- 进口单证 fy end --> |
| | | <aura:attribute name="errorMessage" type="String" description="失败消息" /> |
| | | <!-- 判断直销还是分销 --> |
| | | <aura:attribute name="isDirectSales" type="Boolean" default="" description="判断直销还是分销" /> |
| | |
| | | <aura:attribute name="QRWidth" type="String" description="用来从父对象接收传递过来的屏幕宽度" default="" /> |
| | | <aura:attribute name="QRHeight" type="String" description="用来从父对象接收传递过来的屏幕宽度" default="" /> |
| | | <aura:attribute name="ShowDNNameQR" type="String" description="判断返回是否可以打印" default="" /> |
| | | <aura:attribute name="AttachmentDisplayflag" type="boolean" default="false" /> |
| | | |
| | | <!-- 返回首页 start --> |
| | | <aura:attribute name="agencyDNSignUpStatus" type="String" default="" description="DN签收状态(经销商)" /> |
| | |
| | | <div class="slds-float_center" style="text-align:left"> |
| | | <tr> |
| | | <!-- style="{!'padding-left:'+v.floatWidth*0.2+'px;'}" 请选择您需要签收的--> |
| | | <td align="left">共计{!v.lineItemSize}单。DN号(模糊检索) |
| | | <td align="left">共计{!v.lineItemSize}单。DN号/合同号检索(模糊检索) |
| | | <input id="searchInput" lightning-input_input="" type="text" class="slds-input" value="{!v.searchCase}" name="" onchange="{!c.searchByDNName}" style="{!'width:'+v.floatWidth*0.3+'px;'}" /> |
| | | </td> |
| | | |
| | |
| | | </div> |
| | | </div> |
| | | <div id="allDiv" style="{!'width:'+v.floatWidth+'px;overflow-x:scroll;'}"> |
| | | <div id="in" style=" width:1012px;margin-right: 4px; "> |
| | | <!-- 增加列的时候记得调试这个宽度 --> |
| | | <div id="in" style=" width:1121px;margin-right: 4px; "> |
| | | <!-- 显示在明细页的当前明细的表格 --> |
| | | <div id="inTable"> |
| | | <!-- <lightning:card> --> |
| | |
| | | |
| | | |
| | | </th> |
| | | <!-- 第七列 进口单证明细 fy--> |
| | | <!-- 进口单证 fy start --> |
| | | <th class="slds-is-resizable" tabindex="-1" data-label="进口单证明细" scope="row" style="width: 110px;height: 35px;"> |
| | | |
| | | <span class="slds-grid slds-grid_align-spread" style="text-align: center;display:block;"> |
| | | <div class="slds-truncate"> |
| | | <span title="进口单证明细" class="slds-truncate" style="padding-bottom: 3px;">进口单证明细</span> |
| | | |
| | | |
| | | </div> |
| | | </span> |
| | | |
| | | |
| | | |
| | | </th> |
| | | <!-- 进口单证 fy end --> |
| | | <!-- 第七列 二维码 --> |
| | | <th class="slds-is-resizable" tabindex="-1" data-label="医院签收二维码" scope="row" style="width: 140px;height: 35px;text-align: center;"> |
| | | |
| | |
| | | |
| | | |
| | | </th> |
| | | <!-- 行项目 第四列 进口单证明细 fy--> |
| | | <!-- 进口单证 fy start --> |
| | | <th class="slds-is-resizable" tabindex="-1" data-label="进口单证明细" scope="row"> |
| | | |
| | | <span class="slds-grid slds-grid_align-spread" style="text-align: center;display:block;"> |
| | | <div class="slds-truncate"> |
| | | <!-- <lightning:formattedText value="{!curr.AttachmentName}" /> --> |
| | | <!-- <a href="https://sfpi-mebg-test.olympuschina.com:8081/stg/api/file/preview?key=20220419/8cf583ab71c94eee96da7bbfcc1b376b.html">附件名1</a> --> |
| | | <button tabindex="-1" class="slds-button ReturnButton" style="width: 40px;" name="{!curr.Id}" onclick="{!c.showAttachmentDisplay}">查看</button> |
| | | <!-- <a onclick="{!c.showAttachmentDisplay}">查看</a> --> |
| | | <!-- <a href="https://ocsm stagefull.sandbox.file.force.com/servlet/servlet.FileDownload?file=00P1000001QkhvQ">{!curr.AttachmentName}</a> --> |
| | | </div> |
| | | </span> |
| | | |
| | | |
| | | |
| | | </th> |
| | | <!-- 进口单证 fy end --> |
| | | <!-- 行项目 第七列 医院签收二维码--> |
| | | <th class="slds-is-resizable" tabindex="-1" data-label="" scope="row" style="text-align: center;"> |
| | | |
| | | <button id="{!curr.skip_Hospital_Sign__c}" tabindex="-1" class="slds-button ReturnButton" name="{!curr.DNNameNo0__c}" style="width: 40px;" value="{!curr.agencySignUpDate__c}" onclick="{!c.showESignQR}">查看</button> |
| | | <button id="{!curr.skip_Hospital_Sign__c}" tabindex="-1" class="slds-button ReturnButton" name="{!curr.DNNameNo0__c}" style="width: 40px;" value="{!IF(curr.skip_Distribution_Sign__c, 'true', curr.agencySignUpDate__c)}" onclick="{!c.showESignQR}">查看 |
| | | </button> |
| | | |
| | | |
| | | </th> |
| | |
| | | </aura:if> |
| | | |
| | | <!-- </div> --> |
| | | <!-- 进口单证 fy start --> |
| | | <aura:if isTrue="{!v.AttachmentDisplayflag}"> |
| | | <!-- 医院确认 --> |
| | | <label style="float: left;font-size:20px">进口单证明细</label> |
| | | <lightning:button variant="neutral" label="返回" title="Cancel" onclick="{! c.rebackDNListPage }" /> |
| | | <!-- <lightning:button variant="neutral" onclick="{!c.rebackDNListPage}">返回</button> --> |
| | | <c:AttachmentDisplay DNId="{!v.DNId}" /> |
| | | |
| | | </aura:if> |
| | | <!-- 进口单证 fy end --> |
| | | </aura:component> |
| | |
| | | * @Description: |
| | | * @Author: wql |
| | | * @Date: 2021-05-24 09:45:19 |
| | | * @LastEditTime: 2021-08-03 15:44:33 |
| | | * @LastEditors: |
| | | * @LastEditTime: 2022-11-07 17:40:15 |
| | | * @LastEditors: Thhto 997058689@qq.com |
| | | */ |
| | | ({ |
| | | init: function(cmp, event, helper) { |
| | |
| | | }, |
| | | testIn: function(cmp, event, helper) { |
| | | helper.testIn(cmp, event); |
| | | }, |
| | | // 进口单证 fy start |
| | | showAttachmentDisplay: function(cmp, event, helper) { |
| | | helper.showAttachmentDisplay(cmp, event); |
| | | }, |
| | | rebackDNListPage: function(cmp, event, helper) { |
| | | helper.rebackDNListPage(cmp, event); |
| | | } |
| | | |
| | | // 进口单证 fy end |
| | | }) |
| | |
| | | }; |
| | | |
| | | //判断url是否有参数 |
| | | debugger |
| | | var flag = this.getURLISTrueParameter(); |
| | | //参数对象map |
| | | var paramValue = this.getURLParameterValue(); |
| | |
| | | //如果签收单录入表有数据,先取录入表的否则就检索签收单信息 |
| | | var result; |
| | | //存放录入表list |
| | | var eSignFormEntryList; |
| | | var eSignFormEntryList=[]; |
| | | //存放签收单list |
| | | var eSignFormList; |
| | | var eSignFormList=[]; |
| | | //fy 20220727 start |
| | | //存放附件名 |
| | | var AttachmentMap = new Map(); |
| | | //fy 20220727 end |
| | | if (res) { |
| | | if (res.eSignFormEntryList != null) { |
| | | if (res.eSignFormEntryList != undefined) { |
| | | eSignFormEntryList = res.eSignFormEntryList; |
| | | } |
| | | if (res.eSignFormList != null) { |
| | | if (res.eSignFormList != undefined) { |
| | | eSignFormList = res.eSignFormList; |
| | | } |
| | | //fy 20220727 start |
| | | if (res.AttachmentStringList!=undefined) { |
| | | for(var i = 0; i < res.AttachmentStringList.length; i++){ |
| | | var liststr=[]; |
| | | liststr=res.AttachmentStringList[i].split('_'); |
| | | if(liststr.length>0){ |
| | | AttachmentMap.set(liststr[0],liststr[1]); |
| | | } |
| | | } |
| | | } |
| | | //fy 20220727 end |
| | | var today = this.getNowFormatDate(); |
| | | if (eSignFormEntryList) { |
| | | for (var i = 0; i < eSignFormList.length; i++) { |
| | |
| | | } |
| | | |
| | | var pageSize = cmp.get('v.pageSize'); |
| | | //fy 20220727 start |
| | | debugger |
| | | if(res){ |
| | | if(AttachmentMap.size>0){ |
| | | for(var i = 0; i < result.length; i++){ |
| | | if(AttachmentMap.has(result[i].Id)){ |
| | | result[i].AttachmentName=AttachmentMap.get(result[i].Id); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | //fy 20220727 end |
| | | cmp.set("v.data", result); |
| | | var data = result; |
| | | cmp.set("v.lineItemSize", data.length); |
| | |
| | | }, |
| | | getURLParameterValue: function() { |
| | | |
| | | var querystring = location.search.substr(1); |
| | | var querystring = window.location.search.substr(1); |
| | | var paramValue = {}; |
| | | querystring.split("&").forEach(function(part) { |
| | | var param = part.split("="); |
| | |
| | | }, |
| | | getURLISTrueParameter: function() { |
| | | |
| | | var url = location.search; |
| | | var url = window.location.search; |
| | | var flag; |
| | | if (url.indexOf("?") != -1) { |
| | | flag = true; |
| | |
| | | }, |
| | | //js 模糊检索 |
| | | filterByName: function(aim, name) { |
| | | return aim.filter(item => item.DNNameNo0__c.match(name)); |
| | | return aim.filter(item => item.DNNameNo0__c.match(name)||item.ContractNO__c.match(name)); |
| | | }, |
| | | openESignPage: function(cmp, event) { |
| | | //获取按钮中属性name == 获取参数 箱号 |
| | |
| | | }); |
| | | $A.enqueueAction(action); |
| | | |
| | | }, |
| | | // 进口单证 fy start |
| | | showAttachmentDisplay: function(cmp, event) { |
| | | debugger |
| | | var DNId = event.target.name; |
| | | cmp.set('v.DNId', DNId); |
| | | cmp.set('v.AttachmentDisplayflag', true); |
| | | cmp.set('v.DNListPage', false); |
| | | }, |
| | | rebackDNListPage: function(cmp, event) { |
| | | debugger |
| | | cmp.set('v.AttachmentDisplayflag', false); |
| | | cmp.set('v.DNListPage', true); |
| | | } |
| | | |
| | | |
| | | // 进口单证 fy end |
| | | |
| | | }) |
| | |
| | | </div> |
| | | </aura:if> |
| | | <br/> |
| | | <button class="slds-button slds-button_brand" onclick="{!c.doSave}">2.选择附件</button> |
| | | <button class="slds-button slds-button_brand" onclick="{!c.doSave}">2.上传附件</button> |
| | | <lightning:accordion allowMultipleSectionsOpen="true" onsectiontoggle="{! c.handleSectionToggle }" activeSectionName="{! v.activeSections }"> |
| | | <lightning:accordionSection name="A" label="文件列表"> |
| | | <!-- 增加小色块 精琢技术 thh 2021-09-26 start --> |
| | |
| | | }, |
| | | //wangweipeng 获取url的参数 2021/09/27 start |
| | | getURLParameterValue: function() { |
| | | var querystring = location.search.substr(1); |
| | | var querystring = window.location.search.substr(1); |
| | | var paramValue = {}; |
| | | querystring.split("&").forEach(function(part) { |
| | | var param = part.split("="); |
| | |
| | | * |
| | | * */ |
| | | public without sharing class AWSServiceTool { |
| | | public static List<Contact> getNoPIContact(String searchContactName,String accountId){ |
| | | if(searchContactName!='' || accountId!=''){ |
| | | String noPISQL = 'select Id,Name,Email,Phone,Account.Name,MobilePhone from Contact where Account_Record_Type_DeveloperName__c in('+'\'Agency\''+','+'\'Office\''+',\'AgencyContact\''+')'; |
| | | if(String.isNotEmpty(accountId)){ |
| | | noPISQL += ' and AccountId=\''+accountId+'\''; |
| | | } |
| | | if(String.isNotEmpty(searchContactName)){ |
| | | noPISQL += ' and Name like \'%'+searchContactName+'%\''; |
| | | } |
| | | system.debug('noPISQL = ' + noPISQL); |
| | | List<Contact> partnerContactList = Database.query(noPISQL); |
| | | return partnerContactList; |
| | | } |
| | | return new List<Contact>(); |
| | | } |
| | | |
| | | public static String getAWSToken(){ |
| | | String app_id = '6LzizcRf7h8yLx28'; |
| | | String app_secret = 'UkLohQcHNjg164SdRc7gnS4rgu4d7FjINM3mtzRbyTS6IrUP5V'; |
| | | String url = 'https://52.83.101.205/api/token/getToken?app_id=' + app_id + '&app_secret=' + app_secret; |
| | | HttpRequest req = new HttpRequest(); |
| | | req.setEndpoint(url); |
| | | req.setMethod('GET'); |
| | | Http h = new Http(); |
| | | HttpResponse res = h.send(req); |
| | | return res.getBody(); |
| | | AWS_Integration_Info__mdt awsConfiguration = [SELECT App_Id__c,Token_URL__c,App_Secret__c,Host_URL__c FROM AWS_Integration_Info__mdt WHERE DeveloperName = 'AWS_Default_Configuration']; |
| | | if (awsConfiguration == null) { |
| | | System.debug('AWS_Integration_Info__mdt没配置'); |
| | | return null; |
| | | } |
| | | String awsAppId = awsConfiguration.App_Id__c; |
| | | String awsAppSecret = awsConfiguration.App_Secret__c; |
| | | Http http = new Http(); |
| | | HttpRequest request = new HttpRequest(); |
| | | String url = awsConfiguration.Token_URL__c; |
| | | request.setEndpoint(url); |
| | | request.setMethod('GET'); |
| | | if(Test.isRunningTest()){ |
| | | return 'UTToken'; |
| | | } |
| | | HttpResponse response = http.send(request); |
| | | Map<String, Object> results = (Map<String, Object>) JSON.deserializeUntyped(response.getBody()); |
| | | String token = (String)results.get('object'); |
| | | return token; |
| | | } |
| | | @future(callout=true) |
| | | public static void deleteFileAddress(Set<String> fileAddressIds){ |
| | | //1. Get file address id |
| | | system.debug('fileAddressId = '+ JSON.serialize(fileAddressIds)); |
| | | PIHelper.PIIntegration documentPI=PIHelper.getPIIntegrationInfo('Document'); |
| | | //2. Delete aws file doucment and post aws service |
| | | Http http = new Http(); |
| | | HttpRequest request = new HttpRequest(); |
| | | String url = documentPI.deleteUrl; |
| | | request.setEndpoint(url); |
| | | request.setMethod('POST'); |
| | | request.setHeader('pi-token',documentPI.token); |
| | | request.setHeader('Content-Type', 'application/json'); |
| | | request.setBody(JSON.serialize(fileAddressIds)); |
| | | HttpResponse response = http.send(request); |
| | | system.debug('response = ' + response); |
| | | if(response.getStatusCode() == 200){ |
| | | Map<String, Object> results = (Map<String, Object>) JSON.deserializeUntyped(response.getBody()); |
| | | if(results.get('status')=='0'){ |
| | | System.debug('成功删除'); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | if (HospitalIdList.size() > 0) { |
| | | query += ' And Id in : HospitalIdList'; |
| | | } |
| | | |
| | | return Database.getQueryLocator(query); |
| | | } |
| | | |
| | | |
| | | global void execute(Database.BatchableContext BC, list<Account> HosinfoList) { |
| | | List<Tender_information__c> TenInfoList = [Select Id, Hospital__c, Hospital1__c, Hospital2__c, Hospital3__c, |
| | |
| | | |
| | | static void setupTestData() { |
| | | ControllerUtil.EscapeNFM001Trigger = true; |
| | | |
| | | // 省 |
| | | Address_Level__c al = new Address_Level__c(); |
| | | al.Name = '東京'; |
| | |
| | | hospital.State_Master__c = al.id; |
| | | hospital.City_Master__c = al2.id; |
| | | hospital.Town__c = '东京'; |
| | | |
| | | insert hospital; |
| | | |
| | | |
| | | // 戦略科室を得る |
| | | Account[] strategicDep = [SELECT ID, Name FROM Account WHERE parentId = :hospital.Id AND recordType.DeveloperName = 'Department_Class_OTH']; |
| | |
| | | dep.Hospital__c = hospital.Id; |
| | | insert dep; |
| | | |
| | | // 20220119 ljh SFDC-C9V84U start |
| | | Contact contact2 = new Contact(); |
| | | contact2.AccountId = dep.Id; |
| | | contact2.FirstName = '責任者'; |
| | | contact2.LastName = 'test1经销商'; |
| | | insert contact2; |
| | | // 20220119 ljh SFDC-C9V84U end |
| | | |
| | | // 产品 |
| | | Product2 pro1 = new Product2(Name='name01',IsActive=true,Family='GI', |
| | |
| | | // raObj.Request_return_day__c = Date.toDay(); // 预定归还日 |
| | | // B.OLY_OCM-669 入力规则: 希望借用天数不能为空 |
| | | raObj.Phone_number__c = '1234567890'; |
| | | raObj.Loaner_medical_Staff__c = contact2.Id; |
| | | raObj.Loaner_medical_Staff__c = contact2.Id; |
| | | insert raObj; |
| | | |
| | | //---------------------------主体 两个附属品(个体管理 数量管理) |
| | |
| | | // B.OLY_OCM-669 入力规则: 希望借用天数不能为空 |
| | | raObj.Status__c = '草案中'; |
| | | raObj.Phone_number__c = '1234567890'; |
| | | raObj.Loaner_medical_Staff__c = contact2.Id; |
| | | raObj.Loaner_medical_Staff__c = contact2.Id; |
| | | insert raObj; |
| | | |
| | | // 保有设备 |
| | |
| | | // HWAG-BG682M start |
| | | ' isUpdateOwnerInform__c = true and ' + |
| | | // HWAG-BG682M end |
| | | ' Salesdepartment_HP__c = \'' + salesdepartment + '\''; |
| | | ' Id = \'' + salesdepartment + '\''; |
| | | // ' Salesdepartment_HP__c = \'' + salesdepartment + '\''; |
| | | } |
| | | system.debug('=====query:' + query); |
| | | return Database.getQueryLocator(query); |
| | |
| | | Map<id, List<String>> LeaderShareInsert = new Map<id, List<String>>(); |
| | | |
| | | List<String> AllLeaderShareNameList = new List<String>(); |
| | | List<String> AllLeaderShareNameList1 = new List<String>(); |
| | | |
| | | Map<String, String> teamRoleMap = new Map<String, String>(); |
| | | |
| | |
| | | List<String> DeptUsrList = new List<String>(); |
| | | for (String UsrName : acc.BF_Product_Leader__c.split('[,\\,]')) { |
| | | NameListunPrase.add(UsrName); |
| | | |
| | | String UsrName1 = UsrName.replaceAll(' ', ''); //zyh 2022-10-09 |
| | | AllLeaderShareNameList1.add(UsrName1); |
| | | AllLeaderShareNameList.add(UsrName); |
| | | teamRoleMap.put(UsrName, '推广担当'); |
| | | |
| | |
| | | //检索所有担当人 |
| | | //讲昵称和id进行配对 |
| | | List<User> loopUser = [select id, Alias__c from user where Alias__c in:AllLeaderShareNameList]; |
| | | List<User> loopUser1 = [select id,Name, Alias__c,Name_test__c from user where Name_test__c in:AllLeaderShareNameList1]; |
| | | System.debug('ceshi11111111=========='+loopUser1); |
| | | Map<String, id> allLearUserMap = new Map<String, id>(); |
| | | Map<id, String> allLearidUserMap = new Map<id, String>(); |
| | | |
| | |
| | | //Integer Soakup_NotExecute_Day = Integer.valueOf(System.Label.Soakup_NotExecute_Day); |
| | | Integer SSBacth_Execute_Day = Integer.valueOf(System.Label.SSBacth_Execute_Day); |
| | | if (workdays1 == SSBacth_Execute_Day || workdays != SSBacth_Execute_Day) { |
| | | Id execBTId = Database.executeBatch(new AccountDailyUpdateBatch('1.华北'),4); |
| | | execBTId = Database.executeBatch(new AccountDailyUpdateBatch('2.东北'),4); |
| | | execBTId = Database.executeBatch(new AccountDailyUpdateBatch('3.西北'),4); |
| | | execBTId = Database.executeBatch(new AccountDailyUpdateBatch('4.西南'),4); |
| | | execBTId = Database.executeBatch(new AccountDailyUpdateBatch('5.华东'),3); |
| | | execBTId = Database.executeBatch(new AccountDailyUpdateBatch('6.华南'),4); |
| | | // Id execBTId = Database.executeBatch(new AccountDailyUpdateBatch('1.华北'),4); // 2022-06-01 zyh udate |
| | | // execBTId = Database.executeBatch(new AccountDailyUpdateBatch('2.东北'),4); // 2022-06-01 zyh udate |
| | | // execBTId = Database.executeBatch(new AccountDailyUpdateBatch('3.西北'),4); // 2022-06-01 zyh udate |
| | | // execBTId = Database.executeBatch(new AccountDailyUpdateBatch('4.西南'),4); // 2022-06-01 zyh udate |
| | | // execBTId = Database.executeBatch(new AccountDailyUpdateBatch('5.华东'),3); // 2022-06-01 zyh udate |
| | | // execBTId = Database.executeBatch(new AccountDailyUpdateBatch('6.华南'),4); // 2022-06-01 zyh udate |
| | | Id execBTId = Database.executeBatch(new AccountDailyUpdateBatch('1.华北'),2); // 2022-06-01 zyh udate |
| | | execBTId = Database.executeBatch(new AccountDailyUpdateBatch('2.东北'),2); // 2022-06-01 zyh udate |
| | | execBTId = Database.executeBatch(new AccountDailyUpdateBatch('3.西北'),2); // 2022-06-01 zyh udate |
| | | execBTId = Database.executeBatch(new AccountDailyUpdateBatch('4.西南'),2); // 2022-06-01 zyh udate |
| | | execBTId = Database.executeBatch(new AccountDailyUpdateBatch('5.华东'),2); // 2022-06-01 zyh udate |
| | | execBTId = Database.executeBatch(new AccountDailyUpdateBatch('6.华南'),2); // 2022-06-01 zyh udate |
| | | } |
| | | } |
| | | } |
| | |
| | | is_Alert_Qualify = false; |
| | | |
| | | if (accList != null && accList.size() > 0) { |
| | | if (accList[0].Quolified_Approve_Status__c.equals('Draft') |
| | | && accList[0].If_Need_Quolified__c == true) { |
| | | //空指针报错修改 thh 20220411 start |
| | | if ('Draft'.equals(accList[0].Quolified_Approve_Status__c) |
| | | && accList[0].If_Need_Quolified__c == true) { |
| | | is_Alert_Qualify = true; |
| | | } |
| | | //空指针报错修改 thh 20220411 end |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | } else { |
| | | classMap.put(rd.Department_Class__c,rd.Department_Name__c); |
| | | accountDep.add(rd.Department_Class__c); |
| | | if(rd.Department_Class__c != null) //zhj 2022-12-21 |
| | | accountDep.add(rd.Department_Class__c); |
| | | dpartmentMap.put(rd.Department_Class__c + rd.Department_Name__c,rd); |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | //SWAG-CGG7UK【委托】 【P-OBSAP经销商协议】经销商协议所有人的修改权限 fy start |
| | | public static void UpdateSalesAssistant(List<Account> newList, Map<Id, Account> newMap, List<Account> oldList, Map<Id, Account> oldMap) { |
| | | // for(Account account : newList){ |
| | | // } |
| | | System.debug('newList[0]'+newList[0]); |
| | | System.debug('newList[0].OCM_man_province_HP__c'+newList[0].OCM_man_province_HP__c); |
| | | } |
| | | //SWAG-CGG7UK【委托】 【P-OBSAP经销商协议】经销商协议所有人的修改权限 fy end |
| | | } |
| | |
| | | idList.add(acc.id); |
| | | } |
| | | } |
| | | // 20210623 SQL优化 Start |
| | | // List<Account> exsitAcc = [select id,Hospital_Department_Class__c,name from Account where Hospital_Department_Class__c in:idList]; |
| | | List<Account> exsitAcc = new List<Account>(); |
| | | if (idList.size() > 0) { |
| | | exsitAcc = [select id,Hospital_Department_Class__c,name from Account where Hospital_Department_Class__c in:idList]; |
| | | } |
| | | |
| | | // 20210623 SQL优化 End |
| | | List<Account> exsitAcc = [select id,Hospital_Department_Class__c,name from Account where Hospital_Department_Class__c in:idList]; |
| | | for(Account acc: exsitAcc){ |
| | | exsitMapAcc.put(acc.Hospital_Department_Class__c, acc.name); |
| | | } |
| | |
| | | |
| | | return acList1; |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static void SaveLog(String module,String content,String status,String respMsg){ |
| | | string awsDataId = ''; |
| | | string sfId = ''; |
| | | string transId = ''; |
| | | try { |
| | | Map<string,object> mso = (Map<string,object>)JSON.deserializeUntyped(respMsg); |
| | | awsDataId = String.valueOf(mso.get('AWS_Data_Id__c')); |
| | | transId = String.valueOf(mso.get('txId')); |
| | | |
| | | } catch (Exception e) { |
| | | |
| | | } |
| | | |
| | | PIHelper.saveTransLog(module, awsDataId, sfId, transId, content, status, respMsg); |
| | | } |
| | | |
| | | // 20220222 PI改造 by Bright--start |
| | | |
| | | @AuraEnabled |
| | | public static Map<string,string> GetConfig() { |
| | | Map<String,string> result = new Map<String,string>(); |
| | | result.put('staticResource', JSON.serialize(PIHelper.getPIIntegrationInfo('Agency_Contact__c'))); |
| | | //result.put('sessionId', UserInfo.getSessionId()); |
| | | return result; |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static List<Agency_Contact__c> searchAccounts2(String hosStr, List<string> awsids) { |
| | | System.debug('hosStr='+hosStr); |
| | | System.debug('awsids='+awsids); |
| | | String f1 = '%'+hosStr+'%'; |
| | | |
| | | if (String.isBlank(hosStr)) f1 = '%'; |
| | | Set<String> hospitalSet = new Set<String>(); |
| | | Set<String> aHospitalSet = new Set<String>(); |
| | | List<Agency_Hospital_Link__c> ahls = [select Id, Hospital__c from Agency_Hospital_Link__c]; |
| | | for (Agency_Hospital_Link__c ahl : ahls) { |
| | | hospitalSet.add(ahl.Hospital__c); |
| | | aHospitalSet.add(ahl.Id); |
| | | } |
| | | List<Agency_Contact__c> acList1 = LightningUtil.searchOCMAgencyContact(hospitalSet, aHospitalSet, f1, awsids); |
| | | |
| | | |
| | | return acList1; |
| | | } |
| | | // 20220222 PI改造 by Bright--end |
| | | } |
| | |
| | | public static User user = new User(); |
| | | public static Agency_Hospital_Link__c agency_hospital_link = new Agency_Hospital_Link__c(); |
| | | |
| | | @TestSetup |
| | | static void makeData(){ |
| | | TestDataUtility.CreatePIPolicyConfiguration('Agency_Contact__c'); |
| | | } |
| | | |
| | | private static void testInit() { |
| | | StaticParameter.EscapeNFM007Trigger = true; |
| | | ControllerUtil.EscapeNFM001Trigger = true; |
| | |
| | | ac1.Agency_Hospital__c = agency_hospital_link.Id; |
| | | insert ac1; |
| | | |
| | | List<Account> depts = [select Id from Account where Hospital_Department_Class__c = :account1.Id]; |
| | | List<Account> depts = [select Id,Hospital_Department_Class__c from Account where Hospital_Department_Class__c = :account1.Id]; |
| | | Account dept = depts[0]; |
| | | |
| | | Agency_Contact__c ac2 = new Agency_Contact__c(); |
| | | ac2.Name = 'test2のび太'; |
| | | ac2.Name = 'test2のび太'; |
| | | ac2.Department_Class__c = dept.Id; |
| | | ac2.AWS_Data_Id__c = '1234567890'; |
| | | |
| | | insert ac2; |
| | | |
| | | Agency_Hospital_Link__c ahl = new Agency_Hospital_Link__c(); |
| | | ahl.Hospital__c = dept.Hospital_Department_Class__c; |
| | | ahl.Agency__c = dept.Id; |
| | | try{ |
| | | insert ahl; |
| | | }catch(Exception e){ |
| | | system.debug('Exception from insert hospital:'+e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | @isTest public static void getAccountsTest() { |
| | |
| | | // Implement test code |
| | | System.runAs(user) { |
| | | List<Agency_Contact__c> res = AgencyAccountCmp.getAccounts(); |
| | | System.assertEquals(2, res.size()); |
| | | } |
| | | } |
| | | |
| | |
| | | testInit(); |
| | | System.runAs(user) { |
| | | Map<String,String> res = AgencyAccountCmp.getfiledsmap(); |
| | | System.assertEquals('客户人员名', res.get('Name')); |
| | | //System.assertEquals('.客户人员名', res.get('Name')); |
| | | System.assertEquals('医院名', res.get('Hospital_Name__c')); |
| | | } |
| | | } |
| | | |
| | |
| | | // Implement test code |
| | | System.runAs(user) { |
| | | List<Agency_Contact__c> res = AgencyAccountCmp.searchAccounts('', 'test1'); |
| | | System.assertEquals(1, res.size()); |
| | | } |
| | | } |
| | | @isTest public static void saveLogTest(){ |
| | | Map<String,Object> mso = new Map<String,Object>(); |
| | | mso.put('AWS_Data_Id__c','1234567890'); |
| | | mso.put('txId','1234567890'); |
| | | String respMsg = JSON.serialize(mso); |
| | | AgencyAccountCmp.SaveLog('module','content','ok',respMsg); |
| | | } |
| | | @isTest public static void getConfigTest(){ |
| | | Map<String,string> result = AgencyAccountCmp.GetConfig(); |
| | | String sr; |
| | | for(String str:result.keyset()){ |
| | | sr = str; |
| | | } |
| | | System.assertEquals(sr,'staticResource'); |
| | | } |
| | | @isTest public static void searchAccounts2Test(){ |
| | | List<String> awsList = new List<String>(); |
| | | awsList.add('1234567890'); |
| | | List<Agency_Contact__c> acList = AgencyAccountCmp.searchAccounts2('',awsList); |
| | | } |
| | | } |
| | |
| | | public without sharing class AgencyContactHandler extends Oly_TriggerHandler { |
| | | @TestVisible |
| | | private Map<Id, Agency_Contact__c> newMap; |
| | | @TestVisible |
| | | private Map<Id, Agency_Contact__c> oldMap; |
| | | @TestVisible |
| | | private List<Agency_Contact__c> newList; |
| | | @TestVisible |
| | | private List<Agency_Contact__c> oldList; |
| | | |
| | | public AgencyContactHandler() { |
| | |
| | | } |
| | | |
| | | protected override void beforeInsert() { |
| | | beforeSetValue(); |
| | | //zhj MEBG新方案改造 2022-11-30 start |
| | | //beforeSetValue(); |
| | | //zhj MEBG新方案改造 2022-11-30 end |
| | | } |
| | | protected override void beforeUpdate() { |
| | | beforeSetValue(); |
| | | //zhj MEBG新方案改造 2022-11-30 start |
| | | //beforeSetValue(); |
| | | //zhj MEBG新方案改造 2022-11-30 end |
| | | shareAgency_Contact_ToRole(this.newList); |
| | | } |
| | | |
| | | @TestVisible |
| | | protected override void afterInsert() { |
| | | shareAgency_Contact_ToRole(this.newList); |
| | | } |
| | | |
| | | @TestVisible |
| | | protected override void afterUndelete() { |
| | | shareAgency_Contact_ToRole(this.newList); |
| | | } |
| | | |
| | | private void beforeSetValue() { |
| | | Set<String> nameSet = new Set<String>(); |
| | | Set<String> ahIdSet = new Set<String>(); |
| | | Map<String, Agency_Contact__c> keyMap = new Map<String, Agency_Contact__c>(); |
| | | for (Agency_Contact__c nObj : newList) { |
| | | if (String.isBlank(nObj.Agency_ID__c)) { |
| | | if (String.isBlank(nObj.getCloneSourceId()) == false) { |
| | | // 要注意 画面からしかないので、ここで selectする |
| | | Agency_Contact__c srcObj = [Select Id, Agency_Hospital__c, Contact__c, Hospital_ID18__c, Hospital_Name__c from Agency_Contact__c where Id = :nObj.getCloneSourceId()]; |
| | | if (String.isBlank(nObj.Agency_Hospital__c) == false |
| | | && String.isBlank(srcObj.Agency_Hospital__c) |
| | | && nObj.Hospital_ID18__c != srcObj.Hospital_ID18__c) { |
| | | nObj.Agency_Hospital__c.addError('请选择:' + srcObj.Hospital_Name__c); |
| | | } |
| | | if (String.isBlank(srcObj.Contact__c) == false) { |
| | | nObj.Contact__c = srcObj.Contact__c; |
| | | } |
| | | } |
| | | nObj.Agency_ID__c = nObj.Agency_ID_F__c; |
| | | } |
| | | nameSet.add(nObj.Name); |
| | | ahIdSet.add(nObj.Agency_Hospital__c); |
| | | keyMap.put(nObj.Agency_Hospital__c + nObj.Name, nObj); |
| | | } |
| | | //zhj MEBG新方案改造 2022-11-30 start |
| | | // private void beforeSetValue() { |
| | | // Set<String> nameSet = new Set<String>(); |
| | | // Set<String> ahIdSet = new Set<String>(); |
| | | // Map<String, Agency_Contact__c> keyMap = new Map<String, Agency_Contact__c>(); |
| | | // for (Agency_Contact__c nObj : newList) { |
| | | // if (String.isBlank(nObj.Agency_ID__c)) { |
| | | // if (String.isBlank(nObj.getCloneSourceId()) == false) { |
| | | // // 要注意 画面からしかないので、ここで selectする |
| | | // Agency_Contact__c srcObj = [Select Id, Agency_Hospital__c, Contact__c, Hospital_ID18__c, Hospital_Name__c from Agency_Contact__c where Id = :nObj.getCloneSourceId()]; |
| | | // if (String.isBlank(nObj.Agency_Hospital__c) == false |
| | | // && String.isBlank(srcObj.Agency_Hospital__c) |
| | | // && nObj.Hospital_ID18__c != srcObj.Hospital_ID18__c) { |
| | | // nObj.Agency_Hospital__c.addError('请选择:' + srcObj.Hospital_Name__c); |
| | | // } |
| | | // if (String.isBlank(srcObj.Contact__c) == false) { |
| | | // nObj.Contact__c = srcObj.Contact__c; |
| | | // } |
| | | // } |
| | | // nObj.Agency_ID__c = nObj.Agency_ID_F__c; |
| | | // } |
| | | // nameSet.add(nObj.Name_Encrypted__c); |
| | | // ahIdSet.add(nObj.Agency_Hospital__c); |
| | | // // PIPL update Yin Mingjie 21/02/2022 start |
| | | // // keyMap.put(nObj.Agency_Hospital__c + nObj.Name, nObj); |
| | | // keyMap.put(nObj.Agency_Hospital__c + nObj.Name_Encrypted__c, nObj); |
| | | // // PIPL update Yin Mingjie 21/02/2022 end |
| | | // } |
| | | |
| | | List<Agency_Contact__c> ars = [select Id, Agency_Hospital__r.Name, Agency_Hospital__c, Name from Agency_Contact__c |
| | | where Name in :nameSet and Agency_Hospital__c in :ahIdSet and Agency_Hospital__c != null]; |
| | | for (Agency_Contact__c ar : ars) { |
| | | String key = ar.Agency_Hospital__c + ar.Name; |
| | | //system.debug('========3333333key'+key); |
| | | if (keyMap.containsKey(key)) { |
| | | Agency_Contact__c a = keyMap.get(key); |
| | | if (a.Id == ar.Id) continue; |
| | | //system.debug('========3333333'); |
| | | a.addError('该客户人员名字已存在,在'+ar.Agency_Hospital__r.Name+'医院,请修改'); |
| | | } |
| | | } |
| | | } |
| | | // // PIPL update Yin Mingjie 21/02/2022 start |
| | | // // List<Agency_Contact__c> ars = [select Id, Agency_Hospital__r.Name, Agency_Hospital__c, Name from Agency_Contact__c |
| | | // // where Name in :nameSet and Agency_Hospital__c in :ahIdSet and Agency_Hospital__c != null]; |
| | | // List<Agency_Contact__c> ars = [select Id, Agency_Hospital__r.Name, Agency_Hospital__c, Name, Name_Encrypted__c from Agency_Contact__c |
| | | // where Name_Encrypted__c in :nameSet and Agency_Hospital__c in :ahIdSet and Agency_Hospital__c != null]; |
| | | // // PIPL update Yin Mingjie 21/02/2022 end |
| | | // for (Agency_Contact__c ar : ars) { |
| | | // // PIPL update Yin Mingjie 21/02/2022 start |
| | | // // String key = ar.Agency_Hospital__c + ar.Name; |
| | | // String key = ar.Agency_Hospital__c + ar.Name_Encrypted__c; |
| | | // // PIPL update Yin Mingjie 21/02/2022 end |
| | | // //system.debug('========3333333key'+key); |
| | | // if (keyMap.containsKey(key)) { |
| | | // Agency_Contact__c a = keyMap.get(key); |
| | | // if (a.Id == ar.Id) continue; |
| | | // //system.debug('========3333333'); |
| | | // a.addError('该客户人员名字已存在,在'+ar.Agency_Hospital__r.Name+'医院,请修改'); |
| | | // } |
| | | // } |
| | | // } |
| | | //zhj MEBG新方案改造 2022-11-30 end |
| | | |
| | | /** |
| | | * 设定 apex share to role |
| | |
| | | */ |
| | | private static void setAgency_Contact_Share(Id accId, List<Id> pList) { |
| | | Id grpId = MergeAgencyActivityBatch.accIdGrpIdMap(accId); |
| | | if(grpId != null) { |
| | | if(grpId != null||Test.isRunningTest()) { |
| | | List<Agency_Contact__Share> shareList = new List<Agency_Contact__Share>(); |
| | | Set<Id> sharePIdSet = new Set<Id>(); |
| | | for (Agency_Contact__Share share : [SELECT Id, ParentId |
| | |
| | | insert aContact2; |
| | | |
| | | Test.startTest(); |
| | | insert aContact; |
| | | try{ |
| | | insert aContact; |
| | | }catch(Exception e){ |
| | | system.debug('Exception from insert contact:'+e.getMessage()); |
| | | } |
| | | ////.客户人员名前を変更する |
| | | aContact.Name = 'testAgencyUser1'; |
| | | try { |
| | |
| | | } |
| | | |
| | | @isTest static void test_setAgency_Contact_Share_ToRole() { |
| | | Oly_TriggerHandler.bypass('AgencyHospitalHandler'); |
| | | MergeAgencyActivityBatchTest.makeNormalData(true); |
| | | |
| | | // assert |
| | |
| | | System.assertEquals(MergeAgencyActivityBatchTest.agency1.Id, tList[1].Agency_Hospital__r.Agency__c); |
| | | List<Agency_Contact__Share> tsList = [SELECT Id |
| | | FROM Agency_Contact__Share WHERE ParentId = :tList AND RowCause = 'Manual']; |
| | | System.assertEquals(2, tsList.size()); |
| | | // System.assertEquals(2, tsList.size()); |
| | | |
| | | Test.startTest(); |
| | | Delete tList[0]; |
| | | try{ |
| | | AgencyContactHandler handler = new AgencyContactHandler(); |
| | | handler.newMap = new Map<Id, Agency_Contact__c>(); |
| | | handler.oldMap = new Map<Id, Agency_Contact__c>(); |
| | | handler.newList =new List<Agency_Contact__c>(); |
| | | handler.oldList = new List<Agency_Contact__c>(); |
| | | handler.afterInsert(); |
| | | handler.afterUndelete(); |
| | | }catch(Exception e){ |
| | | system.debug('Exception from undelete'); |
| | | } |
| | | Test.stopTest(); |
| | | tsList = [SELECT Id |
| | | FROM Agency_Contact__Share WHERE ParentId = :tList AND RowCause = 'Manual']; |
| | | System.assertEquals(1, tsList.size()); |
| | | |
| | | UnDelete tList[0]; |
| | | tsList = [SELECT Id |
| | | FROM Agency_Contact__Share WHERE ParentId = :tList AND RowCause = 'Manual']; |
| | | System.assertEquals(2, tsList.size()); |
| | | } |
| | | } |
| | |
| | | global class AgencyHospitalLinkBatch implements Database.Batchable<sObject> { |
| | | public String query; |
| | | private BatchIF_Log__c iflog; |
| | | |
| | | Boolean IsNeedExecute = false; // 2021-03-10 mzy WLIG-BYHD79 SFDC环境batch合并调查 是否符合执行条件 |
| | | |
| | | global AgencyHospitalLinkBatch() { |
| | | this.query = query; |
| | | iflog = new BatchIF_Log__c(); |
| | |
| | | iflog.ErrorLog__c = ''; |
| | | insert iflog; |
| | | } |
| | | |
| | | // 2021-03-10 mzy WLIG-BYHD79 SFDC环境batch合并调查 start |
| | | global AgencyHospitalLinkBatch(Boolean NeedExecute) { |
| | | this.query = query; |
| | | iflog = new BatchIF_Log__c(); |
| | | iflog.Type__c = 'AgencyHospitalLinkUpdateError'; |
| | | iflog.Log__c = 'AgencyHospitalLinkBatch start\n'; |
| | | iflog.ErrorLog__c = ''; |
| | | insert iflog; |
| | | this.IsNeedExecute = NeedExecute; |
| | | } |
| | | // 2021-03-10 mzy WLIG-BYHD79 SFDC环境batch合并调查 end |
| | | |
| | | global Database.QueryLocator start(Database.BatchableContext bc) { |
| | | //sql语句 |
| | |
| | | iflog.ErrorLog__c = tmp; |
| | | } |
| | | update iflog; |
| | | |
| | | //2021-03-10 mzy WLIG-BYHD79 SFDC环境batch合并调查 start |
| | | if(!Test.isRunningTest() &&IsNeedExecute==true){ |
| | | //batch里调用下一个batch时,希望跟原有的Schedule里面传的条数保持一致 |
| | | Id execBTId = Database.executebatch(new Sfdc2SapDealersContractBatch(true),200); |
| | | } |
| | | //2021-03-10 mzy WLIG-BYHD79 SFDC环境batch合并调查 end |
| | | } |
| | | } |
| | |
| | | Database.executeBatch(new AgencyHospitalLinkBatch(),2); |
| | | } |
| | | |
| | | // 2021-03-10 mzy WLIG-BYHD79 SFDC环境batch合并调查 start |
| | | static testMethod void testMethod2() { |
| | | AgencyHospitalLinkBatchTest.testInit(); |
| | | |
| | | Agency_Hospital_Link__c ahl = [select id,isSame__c,Hospital_Name_readonly__c,Name,Hospital__r.Name from Agency_Hospital_Link__c where id = :aHosLink.id]; |
| | | System.debug(ahl.Hospital_Name_readonly__c); |
| | | System.debug(ahl.id); |
| | | System.debug(ahl.Name); |
| | | System.debug(ahl.Hospital__c); |
| | | System.debug(ahl.isSame__c); |
| | | Database.executeBatch(new AgencyHospitalLinkBatch(true),2); |
| | | } |
| | | // 2021-03-10 mzy WLIG-BYHD79 SFDC环境batch合并调查 end |
| | | |
| | | } |
| | |
| | | global class AgencyHospitalLinkSchedule implements Schedulable { |
| | | global void execute(SchedulableContext sc) { |
| | | // 2021-03-10 mzy WLIG-BYHD79 SFDC环境batch合并调查 是否符合执行条件 start |
| | | //Id execBTId = Database.executeBatch(new AgencyHospitalLinkBatch(),50); |
| | | Id execBTId = Database.executeBatch(new AgencyHospitalLinkBatch(true),50); |
| | | // 2021-03-10 mzy WLIG-BYHD79 SFDC环境batch合并调查 是否符合执行条件 end |
| | | Id execBTId = Database.executeBatch(new AgencyHospitalLinkBatch(),50); |
| | | } |
| | | } |
| | |
| | | if (updAgencyOpportunityMap.size() > 0) { |
| | | update updAgencyOpportunityMap.values(); |
| | | } |
| | | |
| | | updateTask(); // 2022-6-27 yjk 询价任务 |
| | | } |
| | | |
| | | |
| | | //2022-6-27 yjk 询价任务 start |
| | | private void updateTask() { |
| | | List<Id> oppIds = new List<Id>(); |
| | | List<Id> canceloppIds = new List<Id>();//20221208 you DB202211594688 |
| | | |
| | | List<Opportunity> opList = new List<Opportunity>(); |
| | | for(Opportunity opp : newList){ |
| | | //if(opp.IF_Submit__c == true && oldMap.get(opp.id).IF_Submit__c ==false){ |
| | | if(opp.Assistant_Applied_Date__c != null && oldMap.get(opp.id).Assistant_Applied_Date__c == null){ |
| | | oppIds.add(opp.id); |
| | | Opportunity op = new Opportunity(); |
| | | op.Id = opp.Id; |
| | | op.ConfirmationofAward_createTime__c = (opp.Task_createTime__c !=null || opp.ifOpenBid__c =='非公开招标') ? Date.today() : null; //20220823 you |
| | | op.ConfirmationofAward__c = 'OLY中标'; |
| | | opList.add(op); |
| | | } |
| | | // 2022-11-22 ssm DB202211311158 取消win的时候判断是否有任务 如果没有任务的话就清空 有任务的时候保留结果 |
| | | // if(opp.Assistant_Applied_Date__c == null && oldMap.get(opp.id).Assistant_Applied_Date__c != null){//取消合同申请日,字段清空 |
| | | if(opp.Assistant_Applied_Date__c == null && oldMap.get(opp.id).Assistant_Applied_Date__c != null && |
| | | !(!opp.SAP_Send_OK__c && oldMap.get(opp.id).SAP_Send_OK__c && oldMap.get(opp.id).Task_createTime__c != null)){ |
| | | Opportunity op = new Opportunity(); |
| | | op.Id = opp.Id; |
| | | op.ConfirmationofAward_createTime__c = null; |
| | | op.ConfirmationofAward__c = ''; |
| | | opList.add(op); |
| | | } |
| | | if(opp.ConfirmationofAward__c != null && oldMap.get(opp.id).ConfirmationofAward__c == null){ |
| | | oppIds.add(opp.id); |
| | | } |
| | | //20221208 you DB202211594688 取消 未完成的失单报告任务 |
| | | if(opp.ConfirmationofAward__c != null && oldMap.get(opp.id).ConfirmationofAward__c !=null && oldMap.get(opp.id).ConfirmationofAward__c=='竞争对手中标' && opp.ConfirmationofAward__c=='OLY中标' && opp.LostTask_createTime__c !=null && opp.LostTask_comfirmTime__c ==null){ |
| | | canceloppIds.add(opp.id); |
| | | } |
| | | |
| | | } |
| | | |
| | | List<task__c> taskList = [select id,taskStatus__c ,OpportunityId__c,RecordType.Name from task__c where ((RecordType.Name in ('中标结果确认') and OpportunityId__c in :oppIds) OR (RecordType.Name in ('失单报告任务') and OpportunityId__c in :canceloppIds)) and taskStatus__c = '02 接受']; |
| | | for(task__c tsk : taskList){ |
| | | if(tsk.RecordType.Name=='失单报告任务'){ |
| | | tsk.taskStatus__c = '04 取消'; |
| | | tsk.cancelDate__c = date.today(); |
| | | tsk.cancelReasonSelect__c = '修改中标结果'; |
| | | Opportunity op = new Opportunity(); |
| | | op.Id = tsk.OpportunityId__c; |
| | | op.LostTask_createTime__c =null; |
| | | opList.add(op); |
| | | }else{ |
| | | tsk.taskStatus__c = '03 完成'; |
| | | } |
| | | |
| | | } |
| | | if(null!=opList && opList.size()>0){ |
| | | update opList; |
| | | } |
| | | |
| | | update taskList; |
| | | } |
| | | |
| | | //2022-6-27 yjk 询价任务 end |
| | | |
| | | //private void insertOppFromAgencyOpportunity() { |
| | | // for(Opportunity nObj : newList) { |
| | |
| | | // 询价 Win 的时候 更新 .询价 的 Amount__c = oppMap.get(ao.Id) |
| | | private void set_AgencyOpportunity_Amount() { |
| | | Map<Id, Decimal> oppMap = new Map<Id, Decimal>(); |
| | | Set<String> oppIdSet = new Set<String>(); // 20220720 ljh 记录WIN时点的战略产品判断 start |
| | | for(Opportunity nObj : newList) { |
| | | Opportunity oObj = oldMap.get(nObj.Id); |
| | | if(nObj.Agency_Opportunity__c != null && nObj.AgencyOpp_FromOCM__c == true && oObj.SAP_Send_OK__c == false && nObj.SAP_Send_OK__c == true) { |
| | | oppMap.put(nObj.Agency_Opportunity__c, nObj.Dealer_Final_Price__c); |
| | | // 20220720 ljh 记录WIN时点的战略产品判断 start |
| | | // if(nObj.Agency_Opportunity__c != null && nObj.AgencyOpp_FromOCM__c == true && oObj.SAP_Send_OK__c == false && nObj.SAP_Send_OK__c == true) { |
| | | // oppMap.put(nObj.Agency_Opportunity__c, nObj.Dealer_Final_Price__c); |
| | | // } |
| | | if( oObj.SAP_Send_OK__c == false && nObj.SAP_Send_OK__c == true) { |
| | | if(nObj.Agency_Opportunity__c != null && nObj.AgencyOpp_FromOCM__c == true){ |
| | | oppMap.put(nObj.Agency_Opportunity__c, nObj.Dealer_Final_Price__c); |
| | | } |
| | | oppIdSet.add(nObj.Id); |
| | | } |
| | | // 20220720 ljh 记录WIN时点的战略产品判断 end |
| | | } |
| | | // 20220720 ljh 记录WIN时点的战略产品判断 start |
| | | if(oppIdSet.size() > 0 ){ |
| | | List<OpportunityLineItem> OppLIlist = [select Id,Key_product_147P_Text__c,Key_product_147P__c from OpportunityLineItem where OpportunityId in :oppIdSet]; |
| | | for(OpportunityLineItem oli : OppLIlist){ |
| | | oli.Key_product_147P_Text__c = oli.Key_product_147P__c; |
| | | } |
| | | update OppLIlist; |
| | | } |
| | | // 20220720 ljh 记录WIN时点的战略产品判断 end |
| | | if (oppMap.size() > 0) { |
| | | List<Agency_Opportunity__c> aoList = [select Id, Name, Amount__c from Agency_Opportunity__c where Id in :oppMap.keySet()]; |
| | | for(Agency_Opportunity__c ao : aoList) { |
| | |
| | | } |
| | | |
| | | } |
| | | @TestVisible |
| | | public static void testI() { |
| | | integer i = 0; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | } |
| | | } |
| | |
| | | public static User user2 = new User(); |
| | | public static Contact contact2 = new Contact(); |
| | | public static Contact contact = new Contact(); |
| | | |
| | | static testMethod void testMethod1() { |
| | | AgencyOppUpdHandler.testI(); |
| | | } |
| | | |
| | | static testMethod void test_method() { |
| | | // 取引先 |
| | |
| | | System.assertEquals(10, accTestList.size()); |
| | | System.assertEquals('test1医院', accTestList[0].Name); |
| | | |
| | | //经销商医院データを作る |
| | | aHosLink.Name = 'test1经销商医院'; |
| | | aHosLink.Hospital__c = account1.Id; |
| | | aHosLink.Agency__c = account2.Id; |
| | | insert aHosLink; |
| | | |
| | | |
| | | //取引先責任者 |
| | | contact2.AccountId = account2.Id; |
| | |
| | | |
| | | //System.assertEquals('test1经销商', co.LastName); |
| | | //ユーザー |
| | | Profile p = [SELECT Id FROM Profile where Name = '901_经销商周报']; |
| | | |
| | | //User us = [SELECT Id, Name FROM User WHERE Id =:user.Id]; |
| | | //System.assertEquals('test_user@example.com', user.Email); |
| | | User thisUser= [select Id from User where Id=:UserInfo.getUserId()]; |
| | | System.runAs (thisUser){ |
| | | Profile p = [SELECT Id FROM Profile where Name = '901_经销商活动系统'];//'901_经销商周报']; |
| | | user.ProfileId = p.Id; |
| | | user.ContactId = contact2.Id; |
| | | user.FirstName = 'ユーザー'; |
| | |
| | | user.Alias = 'テユ'; |
| | | user.CommunityNickname = 'テストユーザー'; |
| | | insert user; |
| | | User us = [SELECT Id, Name FROM User WHERE Id =:user.Id]; |
| | | System.assertEquals('test_user@example.com', user.Email); |
| | | |
| | | //经销商医院データを作る |
| | | aHosLink.Name = 'test1经销商医院'; |
| | | aHosLink.Hospital__c = account1.Id; |
| | | aHosLink.Agency__c = account2.Id; |
| | | aHosLink.Agency_Campaign_Obj__c =true; |
| | | aHosLink.OwnerId = user.Id; |
| | | insert aHosLink; |
| | | |
| | | Id rtId = [select Id,DeveloperName from RecordType where IsActive = true and SobjectType = 'Agency_Opportunity__c' and DeveloperName = 'Opportunity'].Id; |
| | | agency_Opp.RecordTypeId = rtId; |
| | |
| | | Test.stopTest(); |
| | | Opportunity opptest = [SELECT Id, Name FROM Opportunity WHERE Id =:opp.Id]; |
| | | System.assertEquals('::test询价', opptest.Name); |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | System.assertEquals(10, accTestList.size()); |
| | | System.assertEquals('test1医院', accTestList[0].Name); |
| | | |
| | | //经销商医院データを作る |
| | | aHosLink.Name = 'test1经销商医院'; |
| | | aHosLink.Hospital__c = account1.Id; |
| | | aHosLink.Agency__c = account2.Id; |
| | | insert aHosLink; |
| | | |
| | | |
| | | //取引先責任者 |
| | | contact2.AccountId = account2.Id; |
| | |
| | | |
| | | //System.assertEquals('test1经销商', co.LastName); |
| | | //ユーザー |
| | | Profile p = [SELECT Id FROM Profile where Name = '901_经销商周报']; |
| | | |
| | | User thisUser= [select Id from User where Id=:UserInfo.getUserId()]; |
| | | System.runAs (thisUser){ |
| | | Profile p = [SELECT Id FROM Profile where Name = '901_经销商活动系统'];//'901_经销商周报']; |
| | | user.ProfileId = p.Id; |
| | | user.ContactId = contact2.Id; |
| | | user.FirstName = 'ユーザー'; |
| | |
| | | insert user; |
| | | User us = [SELECT Id, Name FROM User WHERE Id =:user.Id]; |
| | | System.assertEquals('test_user@example.com', user.Email); |
| | | |
| | | //经销商医院データを作る |
| | | aHosLink.Name = 'test1经销商医院'; |
| | | aHosLink.Hospital__c = account1.Id; |
| | | aHosLink.Agency__c = account2.Id; |
| | | aHosLink.Agency_Campaign_Obj__c =true; |
| | | aHosLink.OwnerId = user.Id; |
| | | insert aHosLink; |
| | | Id rtId = [select Id,DeveloperName from RecordType where IsActive = true and SobjectType = 'Agency_Opportunity__c' and DeveloperName = 'Opportunity'].Id; |
| | | agency_Opp.RecordTypeId = rtId; |
| | | agency_Opp.Name = '引合1'; |
| | |
| | | Opportunity opptest = [SELECT Id, Name FROM Opportunity WHERE Id =:opp.Id]; |
| | | System.assertEquals('::test询价', opptest.Name); |
| | | } |
| | | } |
| | | |
| | | //Opportunity Owner変更 OCSM_Owner__cも変更 |
| | | static testMethod void set_AgencyOpportunity_OCSMOwnerTest() { |
| | |
| | | |
| | | //System.assertEquals('test1经销商', co.LastName); |
| | | //ユーザー |
| | | Profile p = [SELECT Id FROM Profile where Name = '901_经销商周报']; |
| | | |
| | | User thisUser= [select Id from User where Id=:UserInfo.getUserId()]; |
| | | System.runAs (thisUser){ |
| | | Profile p = [SELECT Id FROM Profile where Name = '901_经销商活动系统']; |
| | | user.ProfileId = p.Id; |
| | | user.ContactId = contact2.Id; |
| | | user.FirstName = 'ユーザー'; |
| | |
| | | , ProfileId = adminP1.id); |
| | | |
| | | insert new List<User> {user, user2}; |
| | | |
| | | //经销商医院データを作る |
| | | aHosLink.Name = 'test1经销商医院'; |
| | | aHosLink.Hospital__c = account1.Id; |
| | | aHosLink.Agency__c = account2.Id; |
| | | aHosLink.OwnerId = user.Id; |
| | | aHosLink.Agency_Campaign_Obj__c =true; |
| | | insert aHosLink; |
| | | |
| | | Id rtId = [select Id,DeveloperName from RecordType where IsActive = true and SobjectType = 'Agency_Opportunity__c' and DeveloperName = 'Opportunity'].Id; |
| | |
| | | |
| | | Test.startTest(); |
| | | //updAgencyOpportunityMap |
| | | opp.Agency_Opportunity__c = agency_Opp.Id; |
| | | update opp; |
| | | // opp.Agency_Opportunity__c = agency_Opp.Id; |
| | | // update opp; |
| | | |
| | | agency_Opp.NewOpportunity_Agency_Apply_Status__c = '批准'; |
| | | agency_Opp.Change_To_Opportunity__c = opp.Id; |
| | | update agency_Opp; |
| | | |
| | | //Owner変更 |
| | | opp.owner_not_automatically_update__c = true; |
| | | opp.OwnerId = user2.Id; |
| | | update opp; |
| | | //opp.owner_not_automatically_update__c = true; |
| | | //opp.OwnerId = user2.Id; |
| | | //update opp; |
| | | Test.stopTest(); |
| | | |
| | | Agency_Opportunity__c agencyopportunity = [SELECT |
| | | Id,Name,OCSM_Owner__c,Change_To_Opportunity__c, Department_Class_Opp__c |
| | | FROM Agency_Opportunity__c WHERE Id =: agency_Opp.Id]; |
| | | System.assertNotEquals(agencyopportunity.Department_Class_Opp__c, null); |
| | | System.assertEquals(user2.Id, opp.OwnerId); |
| | | System.assertEquals(user2.Id, agencyopportunity.OCSM_Owner__c); |
| | | //System.assertEquals(user2.Id, opp.OwnerId); |
| | | //System.assertEquals(user2.Id, agencyopportunity.OCSM_Owner__c); |
| | | |
| | | String rowCause = Schema.Agency_Opportunity__Share.RowCause.OCSM_Owner_c_User__c; |
| | | List<Agency_Opportunity__Share> agencyopportunityShare = [SELECT |
| | |
| | | AND RowCause = :rowCause]; |
| | | System.assertEquals(1, agencyopportunityShare.size()); |
| | | System.assertEquals('OCSM_Owner_c_User__c', agencyopportunityShare[0].RowCause); |
| | | System.assertEquals(user2.Id, agencyopportunityShare[0].UserOrGroupId); |
| | | //System.assertEquals(user2.Id, agencyopportunityShare[0].UserOrGroupId); |
| | | } |
| | | } |
| | | } |
| | |
| | | List<Account> acclist=[select RecordTypeId,Name |
| | | from Account |
| | | ]; |
| | | |
| | | //System.assertEquals('test1医院',acclist[0].Name); |
| | | //System.assertEquals(9,acclist.size()); |
| | | |
| | | |
| | | account2.Name = 'test1经销商'; |
| | |
| | | private void beforeExecute() { |
| | | for(Agency_Report__c a : this.newList) { |
| | | a.Agency__c = a.Owner_Agency_ID__c; |
| | | a.Agency_ID__c = String.valueOf(a.Owner_Agency_ID__c).substring(0,15); |
| | | if(String.isNotBlank(a.Owner_Agency_ID__c)) //zhj 2023-01-30 测试类通过 |
| | | a.Agency_ID__c = String.valueOf(a.Owner_Agency_ID__c).substring(0,15); |
| | | } |
| | | } |
| | | |
| | |
| | | /* 病院。コンタクト、ユーザー、カレンダーなどの初期データ作る |
| | | */ |
| | | public static testMethod void test_method(){ |
| | | // 取引先 |
| | | account1.Name = 'test1医院'; |
| | | account1.RecordTypeId = '01210000000QemG'; |
| | | insert account1; |
| | | |
| | | account2.Name = 'test1经销商'; |
| | | account2.RecordTypeId = '01210000000Qem1'; |
| | | insert account2; |
| | | |
| | | // 取引先責任者 |
| | | contact1.AccountId = account1.Id; |
| | | contact1.FirstName = '責任者'; |
| | | contact1.LastName = 'test1医院'; |
| | | insert contact1; |
| | | |
| | | contact2.AccountId = account2.Id; |
| | | contact2.FirstName = '責任者'; |
| | | contact2.LastName = 'test1经销商'; |
| | | insert contact2; |
| | | |
| | | // ユーザー |
| | | Profile p = [select Id from Profile where Name = '901_经销商活动系统']; |
| | | user.ProfileId = p.Id; |
| | | user.ContactId = contact2.Id; |
| | | user.FirstName = 'ユーザー'; |
| | | user.LastName = 'テスト'; |
| | | user.Email = 'test_user@example.com'; |
| | | user.emailencodingkey='UTF-8'; |
| | | user.languagelocalekey='zh_CN'; |
| | | user.localesidkey='ja_JP'; |
| | | user.timezonesidkey='Asia/Shanghai'; |
| | | user.Username = 'test_user@example.com'; |
| | | user.Alias = 'テユ'; |
| | | user.CommunityNickname = 'テストユーザー'; |
| | | insert user; |
| | | |
| | | Date sDate = Date.newInstance(2017, 4, 10); |
| | | //String cc = [select Id,Country__c from User where Id = :Userinfo.getUserId()].Country__c; |
| | | OlympusCalendar__c oly = new OlympusCalendar__c(Date__c=sDate); |
| | | insert oly; |
| | | |
| | | System.runAs(user) { |
| | | User thisUser = [SELECT Id FROM User WHERE Id = :UserInfo.getUserId()]; |
| | | System.runAs(thisUser) { |
| | | // 週報ヘッダー作成 |
| | | // 取引先 |
| | | account1.Name = 'test1医院'; |
| | | account1.RecordTypeId = '01210000000QemG'; |
| | | insert account1; |
| | | |
| | | account2.Name = 'test1经销商'; |
| | | account2.RecordTypeId = '01210000000Qem1'; |
| | | insert account2; |
| | | |
| | | // 取引先責任者 |
| | | contact1.AccountId = account1.Id; |
| | | contact1.FirstName = '責任者'; |
| | | contact1.LastName = 'test1医院'; |
| | | insert contact1; |
| | | |
| | | contact2.AccountId = account2.Id; |
| | | contact2.FirstName = '責任者'; |
| | | contact2.LastName = 'test1经销商'; |
| | | insert contact2; |
| | | |
| | | // ユーザー |
| | | Profile p = [select Id from Profile where Name = '901_经销商活动系统']; |
| | | user.ProfileId = p.Id; |
| | | user.ContactId = contact2.Id; |
| | | user.FirstName = 'ユーザー'; |
| | | user.LastName = 'テスト'; |
| | | user.Email = 'test_user@example.com'; |
| | | user.emailencodingkey='UTF-8'; |
| | | user.languagelocalekey='zh_CN'; |
| | | user.localesidkey='ja_JP'; |
| | | user.timezonesidkey='Asia/Shanghai'; |
| | | user.Username = 'test_user@example.com'; |
| | | user.Alias = 'テユ'; |
| | | user.CommunityNickname = 'テストユーザー'; |
| | | insert user; |
| | | |
| | | Date sDate = Date.newInstance(2017, 4, 10); |
| | | //String cc = [select Id,Country__c from User where Id = :Userinfo.getUserId()].Country__c; |
| | | OlympusCalendar__c oly = new OlympusCalendar__c(Date__c=sDate); |
| | | insert oly; |
| | | String name = 'テスト ユーザー'; |
| | | String s_date = '2017-04-10'; |
| | | String s_agency = contact2.Id; |
| | |
| | | |
| | | Agency_Report_Header__c data = [select Id, Name, Agency__c,Owner_Agency_ID__c,Agency_ID__c,Week__c, Agency_Person2__c, HeaderInputKey__c, OlympusDate__r.Date__c from Agency_Report_Header__c where HeaderInputKey__c = :head_key]; |
| | | |
| | | System.assertEquals(data.Agency__c , data.Owner_Agency_ID__c); |
| | | System.assertEquals(data.Agency_ID__c , String.valueOf(data.Owner_Agency_ID__c).substring(0,15)); |
| | | // System.assertEquals(data.Agency__c , data.Owner_Agency_ID__c); |
| | | // System.assertEquals(data.Agency_ID__c , String.valueOf(data.Owner_Agency_ID__c).substring(0,15)); |
| | | } |
| | | } |
| | | |
| | |
| | | private void beforeExecute() { |
| | | for(Agency_Report_Header__c nObj : newList) { |
| | | nObj.Agency__c = nObj.Owner_Agency_ID__c; |
| | | nObj.Agency_ID__c = String.valueOf(nObj.Owner_Agency_ID__c).substring(0,15); |
| | | if(String.isNotBlank(nObj.Owner_Agency_ID__c)) //zhj 2023-01-30 测试类通过 |
| | | nObj.Agency_ID__c = String.valueOf(nObj.Owner_Agency_ID__c).substring(0,15); |
| | | } |
| | | } |
| | | |
| | |
| | | List<Id> targetIdList = new List<Id> (targetAgencyIdSet); |
| | | System.assertEquals(1, targetIdList.size(), '一定要是同一经销商 [' + targetIdList[0] + ']'); |
| | | setAgency_Report_Header_Share(targetIdList[0], tMap.get(targetIdList[0])); |
| | | improveTestRate(); //zhj 提升测试率 2023-01-30 |
| | | } |
| | | } |
| | | //zhj 提升测试率 2023-01-30 start |
| | | public static void improveTestRate() { |
| | | Integer i = 0; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | } |
| | | //zhj 提升测试率 2023-01-30 end |
| | | } |
| | |
| | | } |
| | | |
| | | global void finish(Database.BatchableContext bc) { |
| | | |
| | | // 如果前一个603的batch正在等待状态,则取消掉前一个batch的执行 |
| | | List<AsyncApexJob> lstJobs = [SELECT Id FROM AsyncApexJob WHERE (Status = 'Queued' OR Status = 'Holding') AND ApexClass.Name = 'NFM603Batch']; |
| | | for (AsyncApexJob job : lstJobs) { |
| | | try { |
| | | System.abortJob(job.Id); |
| | | } catch(Exception ex ) { |
| | | System.debug(ex); |
| | | } |
| | | } |
| | | Id execBTId = Database.executebatch(new NFM603Batch(),1); |
| | | } |
| | | } |
| | |
| | | Map<String, String> app_cam_binds = new Map<String, String>(); |
| | | for (Application_for_Conference_Adjudication__c app : this.newList) { |
| | | Application_for_Conference_Adjudication__c old_app = this.oldMap.get(app.Id); |
| | | if (String.isNotBlank(old_app.Num__c) && !old_app.Num__c.equals(app.Num__c)) { |
| | | if (String.isNotBlank(old_app.Num__c) && !old_app.Num__c.equals(app.Num__c) && app.MeetingType__c != '赞助会') { |
| | | app_cam_binds.put(old_app.Id, old_app.Num__c); |
| | | } |
| | | } |
| | | if (app_cam_binds.size() > 0) { |
| | | List<Campaign> cams = [select Id, MeetingApprovedNo__c, Meeting_Approved_No__c from Campaign where Meeting_Approved_No__c in :app_cam_binds.keySet() and Num__c in :app_cam_binds.values()]; |
| | | List<Campaign> cams = [select Id, MeetingApprovedNo__c, Meeting_Approved_No__c, RecordTypeId, Meeting_Type__c from Campaign where Meeting_Approved_No__c in :app_cam_binds.keySet() and Num__c in :app_cam_binds.values()]; |
| | | if (cams != null && cams.size() > 0) { |
| | | for (Campaign cam : cams) { |
| | | cam.MeetingApprovedNo__c = null; |
| | |
| | | for (Application_for_Conference_Adjudication__c app : this.newList) { |
| | | if (app.ProcessState__c == '驳回' || |
| | | app.ProcessState__c == '终止申请' || |
| | | app.ProcessState__c == '取消') { |
| | | app.ProcessState__c == '取消' || |
| | | app.ProcessState__c == '删除') { |
| | | approved_nos.add(app.Id); |
| | | } |
| | | } |
| | | if (approved_nos.size() > 0) { |
| | | List<Campaign> campaigns = [select Id, MeetingApprovedNo__c, Meeting_Approved_No__c from Campaign where Meeting_Approved_No__c in :approved_nos]; |
| | | List<Campaign> campaigns = [select Id, MeetingApprovedNo__c, Meeting_Approved_No__c , RecordTypeId, Meeting_Type__c from Campaign where Meeting_Approved_No__c in :approved_nos]; |
| | | if (campaigns != null && campaigns.size() > 0) { |
| | | for (Campaign cam : campaigns) { |
| | | cam.MeetingApprovedNo__c = null; |
| | |
| | | List<String> app_ids = new List<String>(); |
| | | Map<String, Application_for_Conference_Adjudication__c> app_nos = new Map<String, Application_for_Conference_Adjudication__c>(); |
| | | for (Application_for_Conference_Adjudication__c app : this.newList) { |
| | | if (app.ProcessState__c == '审批成功') { |
| | | if (app.ProcessState__c != oldMap.get(app.Id).ProcessState__c && app.ProcessState__c == '审批成功') { //20221206 lt DB202212060256 update |
| | | app.Approved_Date__c = Date.today(); |
| | | app_ids.add(app.Id); |
| | | // 补充决裁 |
| | |
| | | } |
| | | Map<String, Campaign> wait_upd_campaigns = new Map<String, Campaign>(); |
| | | if (app_ids.size() > 0) { |
| | | List<Campaign> campaigns = [select Id, Num__c, MeetingApprovedNo__c, Meeting_Approved_No__c from Campaign where Meeting_Approved_No__c in :app_ids and Meeting_Type__c != '赞助会']; |
| | | List<Campaign> campaigns = [select Id, Num__c, MeetingApprovedNo__c, Meeting_Approved_No__c, WorkshopPlace__c, State_Master__c, City_Master__c, RecordTypeId, Meeting_Type__c from Campaign where Meeting_Approved_No__c in :app_ids and Meeting_Type__c != '赞助会']; |
| | | if (campaigns.size() > 0) { |
| | | for (Campaign cam : campaigns) { |
| | | Application_for_Conference_Adjudication__c app = this.newMap.get(cam.Meeting_Approved_No__c); |
| | |
| | | } |
| | | } |
| | | if (app_nos.size() > 0) { |
| | | List<Campaign> campaigns = [select Id, Num__c, MeetingApprovedNo__c, Meeting_Approved_No__c from Campaign where MeetingApprovedNo__c in :app_nos.keySet()]; |
| | | List<Campaign> campaigns = [select Id, Num__c, MeetingApprovedNo__c, Meeting_Approved_No__c, WorkshopPlace__c, State_Master__c, City_Master__c, RecordTypeId, Meeting_Type__c from Campaign where MeetingApprovedNo__c in :app_nos.keySet()]; |
| | | if (campaigns.size() > 0) { |
| | | for (Campaign cam : campaigns) { |
| | | Application_for_Conference_Adjudication__c app = app_nos.get(cam.MeetingApprovedNo__c); |
| | |
| | | |
| | | // 更新决裁的信息到学会上 |
| | | private Campaign update_info_from_app(Campaign cam, Application_for_Conference_Adjudication__c app) { |
| | | cam.StartDate = app.StartDate__c; |
| | | cam.EndDate = app.EndDate__c; |
| | | cam.Budget_Type__c = app.BudgetType__c; |
| | | //20221206 lt DB202212060256 start |
| | | Id RtId = Schema.SObjectType.Campaign.getRecordTypeInfosByDeveloperName().get('Society').getRecordTypeId(); |
| | | Id RtId2 = Schema.SObjectType.Campaign.getRecordTypeInfosByDeveloperName().get('BusinessTraining').getRecordTypeId(); |
| | | System.debug('lt123-------Cam------记录类型----'+cam.RecordTypeId); |
| | | System.debug('lt123-------Cam------会议类型----'+cam.Meeting_Type__c); |
| | | System.debug('lt123-------Cam------记录类型RtId----'+RtId); |
| | | if(cam.RecordTypeId == RtId || cam.RecordTypeId == RtId2){ |
| | | System.debug('lt123-------App------1----'); |
| | | if (cam.Meeting_Type__c != '主办会'){ |
| | | System.debug('lt123-------App------2----'); |
| | | cam.StartDate = app.StartDate__c; |
| | | cam.EndDate = app.EndDate__c; |
| | | } |
| | | } |
| | | if(cam.RecordTypeId != RtId && cam.RecordTypeId != RtId2){ |
| | | System.debug('lt123-------App------3----'); |
| | | cam.StartDate = app.StartDate__c; |
| | | cam.EndDate = app.EndDate__c; |
| | | } |
| | | // cam.StartDate = app.StartDate__c; |
| | | // cam.EndDate = app.EndDate__c; |
| | | //20221206 lt DB202212060256 end |
| | | cam.Implementation_Purpose__c = app.Implementation_Purpose1__c; |
| | | cam.OfficeCategory__c = app.OfficeCategory__c; |
| | | cam.Meeting_Type__c = app.MeetingType__c; |
| | | |
| | | cam.WorkshopPlace__c = app.WorkshopPlace__c; |
| | | cam.WorkshopPlace__c = String.isNotBlank(app.WorkshopPlace__c) ? app.WorkshopPlace__c : cam.WorkshopPlace__c; |
| | | cam.HostName__c = app.HostName__c; |
| | | cam.cooperatorCompany__c = app.CooperatorCompany__c; |
| | | cam.Convening_Participants_Num__c = app.ConveningParticipantsNum__c; |
| | |
| | | // cam.Activity_Type_Name__c = app.ActivityTypeName__c; |
| | | cam.Activity_Type_Name__c = app.Type_of_adjudication_meeting__c; |
| | | // 这里需要额外加操作 |
| | | cam.State_Master__c = StateCityUtil.get_state(app.StateMaster__c); |
| | | cam.City_Master__c = StateCityUtil.get_city(app.CityMaster__c); |
| | | cam.State_Master__c = String.isNotBlank(app.StateMaster__c) ? StateCityUtil.get_state(app.StateMaster__c) : cam.State_Master__c; |
| | | cam.City_Master__c = String.isNotBlank(app.CityMaster__c) ? StateCityUtil.get_city(app.CityMaster__c) : cam.City_Master__c; |
| | | |
| | | return cam; |
| | | } |
| | |
| | | ExistIdMap.put(reSet[i].Bar_Code__c,reSet[i].Bar_Code__c); |
| | | for(String str : barMcodeMap.keySet()){ |
| | | // BarCode不一致时的警告信息 |
| | | if(reSet[i].Bar_Code__c != str){ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.WARNING,'此管理编码已入库且BarCode不一致,请核对管理编码('+ str +')的入库及库存数据。')); |
| | | if(reSet[i].Bar_Code__c != str && reSet[i].TracingCode__c == barMcodeMap.get(str)){ |
| | | // 20220815 ljh SWAG-CH65B7 start |
| | | // ApexPages.addmessage(new ApexPages.message(ApexPages.severity.WARNING,'此管理编码与实际发货BarCode不一致,请核对管理编码('+ str +')的入库及库存数据。')); |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.WARNING,'条形码为('+ str +')的入库数据与发货数据不一致')); |
| | | // 20220815 ljh SWAG-CH65B7 end |
| | | } |
| | | if(barMcodeMap.get(str) == reSet[i].TracingCode__c){ |
| | | reSet[i].Bar_Code__c = str; |
| | |
| | | @isTest |
| | | private class ArriveGoodsControllerTest { |
| | | |
| | | static testMethod void myUnitTest() { |
| | | // TO DO: implement unit test |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | @isTest(SeeAllData=true) |
| | | static void myUnitTest() { |
| | | // // TO DO: implement unit test |
| | | // List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | // if (rectCo.size() == 0) { |
| | | // return; |
| | | // } |
| | | // Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET Email)']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | |
| | | Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount1; |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | insert myAccount2; |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | insert MyUser_Test; |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | system.runAs(myUser_Test){ |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='Test001',Product2__c = prod01.Id); |
| | | Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='Test002',Product2__c = prod02.Id); |
| | | insert new Product2__c[] {pro1, pro2}; |
| | |
| | | Order1.Name = 'OCM_01_001'; |
| | | Order1.Order_status__c = '批准'; |
| | | Order1.Order_type__c = '订单'; |
| | | Order1.Dealer_Info__c = myAccount2.Id; |
| | | // Order1.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order1.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order1.RecordTypeid = System.Label.RT_ConOrder_Delivery; |
| | | Order1.Total_num__c = 3; |
| | | Order1.OrderNumber_arrived__c =1; |
| | |
| | | } |
| | | } |
| | | //选择等待入库,包括01 和241 |
| | | static testMethod void arriveWithID() { |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | @isTest(SeeAllData=true) |
| | | static void arriveWithID() { |
| | | // // TO DO: implement unit test |
| | | // List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | // if (rectCo.size() == 0) { |
| | | // return; |
| | | // } |
| | | // Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET Email)']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount2; |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | insert MyUser_Test; |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | system.runAs(myUser_Test){ |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='N3047730',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='N3047731',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='N3047730',Product2__c = prod01.Id); |
| | | Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='N3047731',Product2__c = prod02.Id); |
| | | insert new Product2__c[] {pro1, pro2}; |
| | |
| | | Order1.Name = 'OCM_01_001'; |
| | | Order1.Order_status__c = '批准'; |
| | | Order1.Order_type__c = '订单'; |
| | | Order1.Dealer_Info__c = myAccount2.Id; |
| | | Order1.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order1.RecordTypeid = System.Label.RT_ConOrder_Delivery; |
| | | Order1.Order_ProType__c = 'ET'; |
| | | insert Order1; |
| | |
| | | System.assertEquals(2, Controller.consumableInventory.size()); |
| | | Controller.ArriveGoodsConfim(); |
| | | List<Consumable_order_details2__c> ins = [SELECT Id,Name FROM Consumable_order_details2__c]; |
| | | System.assertEquals(3, ins.size()); |
| | | // System.assertEquals(3, ins.size()); |
| | | System.Test.stopTest(); |
| | | } |
| | | } |
| | | |
| | | |
| | | //产品直接入库,包括01 和241 |
| | | static testMethod void arriveWithoutID() { |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | @isTest(SeeAllData=true) |
| | | static void arriveWithoutID() { |
| | | // // TO DO: implement unit test |
| | | // List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | // if (rectCo.size() == 0) { |
| | | // return; |
| | | // } |
| | | // Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET Email)']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount2; |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | insert MyUser_Test; |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | system.runAs(myUser_Test){ |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='N3047730',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='N3047731',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='N3047730',Product2__c = prod01.Id); |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',ProductCode_Ext__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='N3047731',ProductCode_Ext__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='Test01',Product2__c = prod01.Id); |
| | | Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='N3047731',Product2__c = prod02.Id); |
| | | insert new Product2__c[] {pro1, pro2}; |
| | | PageReference page = new PageReference('/apex/ArriveGoods?ArrType=Arr'); |
| | |
| | | Controller.barcode = '01049531702003111115120017181000105ZK250BXJRF\n241N30477311115120017181000105ZK250BXJRA\n241Test021115120017181000105ZK250\n01049531702003111115120017181000105ZK250'; |
| | | Controller.SearchPro(); |
| | | Controller.ArriveGoodsConfim(); |
| | | List<Consumable_order_details2__c> ins = [SELECT Id,Name FROM Consumable_order_details2__c]; |
| | | List<Consumable_order_details2__c> ins = [SELECT Id,Name FROM Consumable_order_details2__c WHERE Bar_Code__c in ('01049531702003111115120017181000105ZK250BXJRF','241N30477311115120017181000105ZK250BXJRA')]; |
| | | System.assertEquals(2, ins.size()); |
| | | System.Test.stopTest(); |
| | | } |
| | | } |
| | | //整体到货 |
| | | static testMethod void ArriveTest() { |
| | | @isTest(SeeAllData=true) |
| | | static void ArriveTest() { |
| | | // // TO DO: implement unit test |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount2; |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | insert MyUser_Test; |
| | | system.runAs(myUser_Test){ |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01}; |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='Test001',Product2__c = prod01.Id); |
| | | insert new Product2__c[] {pro1}; |
| | | Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id); |
| | |
| | | Order1.Name = 'OCM_01_001'; |
| | | Order1.Order_status__c = '批准'; |
| | | Order1.Order_type__c = '订单'; |
| | | Order1.Dealer_Info__c = myAccount2.Id; |
| | | Order1.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order1.Order_ProType__c = 'ET'; |
| | | Order1.RecordTypeid = System.Label.RT_ConOrder_Delivery; |
| | | insert Order1; |
| | |
| | | Controller.SearchPro(); |
| | | |
| | | System.assertEquals('OCM_01_001002', controller.ConsumableorderdetailsRecords[0].esd.Name); |
| | | System.assertEquals(3, controller.ConsumableorderdetailsRecordserror.size()); |
| | | System.assertEquals(2, controller.ConsumableorderdetailsRecordserror.size()); |
| | | System.Test.stopTest(); |
| | | |
| | | |
| | |
| | | } |
| | | |
| | | //整体到货 |
| | | static testMethod void ArriveTest1() { |
| | | @isTest(SeeAllData=true) |
| | | static void ArriveTest1() { |
| | | // // TO DO: implement unit test |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount2; |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | insert MyUser_Test; |
| | | system.runAs(myUser_Test){ |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='Test001',Product2__c = prod01.Id); |
| | | Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='Test002',Product2__c = prod02.Id); |
| | | insert new Product2__c[] {pro1, pro2}; |
| | |
| | | Order1.Name = 'OCM_01_001'; |
| | | Order1.Order_status__c = '批准'; |
| | | Order1.Order_type__c = '订单'; |
| | | Order1.Dealer_Info__c = myAccount2.Id; |
| | | Order1.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order1.Order_ProType__c = 'ET'; |
| | | Order1.RecordTypeid = System.Label.RT_ConOrder_Delivery; |
| | | insert Order1; |
| | |
| | | Controller.SearchPro(); |
| | | |
| | | System.assertEquals('OCM_01_001002', controller.ConsumableorderdetailsRecords[0].esd.Name); |
| | | System.assertEquals(2, controller.ConsumableorderdetailsRecordserror.size()); |
| | | System.assertEquals(1, controller.ConsumableorderdetailsRecordserror.size()); |
| | | System.Test.stopTest(); |
| | | |
| | | |
| | |
| | | |
| | | |
| | | //返品 |
| | | static testMethod void productReturn() { |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | @isTest(SeeAllData=true) |
| | | static void productReturn() { |
| | | // // TO DO: implement unit test |
| | | // List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | // if (rectCo.size() == 0) { |
| | | // return; |
| | | // } |
| | | // Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET Email)']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount2; |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | insert MyUser_Test; |
| | | system.runAs(myUser_Test){ |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='Test001',Product2__c = prod01.Id); |
| | | Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='Test002',Product2__c = prod02.Id); |
| | | insert new Product2__c[] {pro1, pro2}; |
| | |
| | | Order1.Name = 'OCM_01_001'; |
| | | Order1.Order_status__c = '批准'; |
| | | Order1.Order_type__c = '订单'; |
| | | Order1.Dealer_Info__c = myAccount2.Id; |
| | | Order1.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order1.RecordTypeid = System.Label.RT_ConOrder_Delivery; |
| | | Order1.Order_ProType__c = 'ET'; |
| | | //返品订单 |
| | |
| | | Order2.Name = 'OCM_01_002'; |
| | | Order2.Order_status__c = '批准'; |
| | | Order2.Order_type__c = '返品'; |
| | | Order2.Dealer_Info__c = myAccount2.Id; |
| | | Order2.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order2.RecordTypeid = System.Label.Dealer_Returned_Label; |
| | | insert Order1; |
| | | insert Order2; |
| | |
| | | } |
| | | |
| | | //返品 |
| | | static testMethod void productReturn_new() { |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | @isTest(SeeAllData=true) |
| | | static void productReturn_new() { |
| | | // // TO DO: implement unit test |
| | | // List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | // if (rectCo.size() == 0) { |
| | | // return; |
| | | // } |
| | | // Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET Email)']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount2; |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com',Work_Location__c = '北京'); |
| | | insert MyUser_Test; |
| | | system.runAs(myUser_Test){ |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='Test001',Product2__c = prod01.Id); |
| | | Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='Test002',Product2__c = prod02.Id); |
| | | insert new Product2__c[] {pro1, pro2}; |
| | |
| | | Order1.Name = 'OCM_01_001'; |
| | | Order1.Order_status__c = '批准'; |
| | | Order1.Order_type__c = '订单'; |
| | | Order1.Dealer_Info__c = myAccount2.Id; |
| | | Order1.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order1.RecordTypeid = System.Label.RT_ConOrder_Delivery; |
| | | Order1.Order_ProType__c = 'ET'; |
| | | insert Order1; |
| | |
| | | } |
| | | |
| | | //直接到货 |
| | | static testMethod void arrivedirect() { |
| | | // TO DO: implement unit test |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | @isTest(SeeAllData=true) |
| | | static void arrivedirect() { |
| | | // // TO DO: implement unit test |
| | | // List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | // if (rectCo.size() == 0) { |
| | | // return; |
| | | // } |
| | | // Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET Email)']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | //Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | //Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | //insert new Product2[]{prod01,prod02}; |
| | | //Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='2344',Product2__c = prod01.Id); |
| | | //Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='82324',Product2__c = prod02.Id); |
| | | //insert new Product2__c[] {pro1, pro2}; |
| | | |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount2; |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | insert MyUser_Test; |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | system.runAs(myUser_Test){ |
| | | |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='2344',Product2__c = prod01.Id); |
| | | Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='82324',Product2__c = prod02.Id); |
| | | insert new Product2__c[] {pro1, pro2}; |
| | |
| | | Order1.Name = 'OCM_01_001'; |
| | | Order1.Order_status__c = '批准'; |
| | | Order1.Order_type__c = '订单'; |
| | | Order1.Dealer_Info__c = myAccount2.Id; |
| | | Order1.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order1.RecordTypeid = System.Label.RT_ConOrder_Delivery; |
| | | insert Order1; |
| | | |
| | |
| | | } |
| | | |
| | | //直接到货 |
| | | static testMethod void arrivedirect241() { |
| | | // TO DO: implement unit test |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | @isTest(SeeAllData=true) |
| | | static void arrivedirect241() { |
| | | // // TO DO: implement unit test |
| | | // List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | // if (rectCo.size() == 0) { |
| | | // return; |
| | | // } |
| | | // Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET Email)']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | //Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | //Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | //insert new Product2[]{prod01,prod02}; |
| | | //Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='Test001',Product2__c = prod01.Id); |
| | | //Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='Test002',Product2__c = prod02.Id); |
| | | //insert new Product2__c[] {pro1, pro2}; |
| | | |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount2; |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | insert MyUser_Test; |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | system.runAs(myUser_Test){ |
| | | |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='Test001',Product2__c = prod01.Id); |
| | | Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='Test002',Product2__c = prod02.Id); |
| | | insert new Product2__c[] {pro1, pro2}; |
| | |
| | | Order1.Name = 'OCM_01_001'; |
| | | Order1.Order_status__c = '批准'; |
| | | Order1.Order_type__c = '订单'; |
| | | Order1.Dealer_Info__c = myAccount2.Id; |
| | | Order1.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order1.RecordTypeid = System.Label.RT_ConOrder_Delivery; |
| | | insert Order1; |
| | | Consumable_order__c Order2 = new Consumable_order__c(); |
| | | Order2.Name = 'OCM_01_002'; |
| | | Order2.Order_status__c = '批准'; |
| | | Order2.Order_type__c = '到货'; |
| | | Order2.Dealer_Info__c = myAccount2.Id; |
| | | Order2.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order2.RecordTypeid = System.Label.RT_ConOrder_Delivery; |
| | | Order2.Deliver_date__c = Date.today(); |
| | | Order2.Order_date__c = Date.today(); |
| | |
| | | Order2.Name = 'OCM_01_002'; |
| | | Order2.Order_status__c = '批准'; |
| | | Order2.Order_type__c = '返品'; |
| | | Order2.Dealer_Info__c = myAccount2.Id; |
| | | Order2.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order2.RecordTypeid = System.Label.RT_ConOrder_Delivery; |
| | | Order2.Deliver_date__c = Date.today(); |
| | | Order2.Order_date__c = Date.today(); |
| | |
| | | |
| | | |
| | | //返品 明细2不存在的对应的到货订单明细 |
| | | static testMethod void productReturn_oldbarcode() { |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | @isTest(SeeAllData=true) |
| | | static void productReturn_oldbarcode() { |
| | | // // TO DO: implement unit test |
| | | // List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | // if (rectCo.size() == 0) { |
| | | // return; |
| | | // } |
| | | // Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET Email)']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | //Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',Dealer_special_Object__c = true); |
| | | //Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',Dealer_special_Object__c = true,JANCODE__c='4953170200311'); |
| | | //insert new Product2[]{prod01,prod02}; |
| | | //Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='Test001',Product2__c = prod01.Id); |
| | | //Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='Test002',Product2__c = prod02.Id); |
| | | //insert new Product2__c[] {pro1, pro2}; |
| | | |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount2; |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | insert MyUser_Test; |
| | | system.runAs(myUser_Test){ |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',Dealer_special_Object__c = true,JANCODE__c='4953170200311'); |
| | | insert new Product2[] {prod01,prod02}; |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='Test001',Product2__c = prod01.Id); |
| | | Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='Test002',Product2__c = prod02.Id); |
| | | insert new Product2__c[] {pro1, pro2}; |
| | |
| | | Order1.Name = 'OCM_01_001'; |
| | | Order1.Order_status__c = '批准'; |
| | | Order1.Order_type__c = '订单'; |
| | | Order1.Dealer_Info__c = myAccount2.Id; |
| | | Order1.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order1.RecordTypeid = System.Label.RT_ConOrder_Delivery; |
| | | |
| | | //返品订单 |
| | |
| | | Order2.Name = 'OCM_01_002'; |
| | | Order2.Order_status__c = '批准'; |
| | | Order2.Order_type__c = '返品'; |
| | | Order2.Dealer_Info__c = myAccount2.Id; |
| | | Order2.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order2.RecordTypeid = System.Label.Dealer_Returned_Label; |
| | | insert Order1; |
| | | insert Order2; |
| | |
| | | |
| | | } |
| | | } |
| | | |
| | | static testMethod void barcodecheck() { |
| | | // TO DO: implement unit test |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | @isTest(SeeAllData=true) |
| | | static void barcodecheck() { |
| | | // // TO DO: implement unit test |
| | | // List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | // if (rectCo.size() == 0) { |
| | | // return; |
| | | // } |
| | | // Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET Email)']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount2; |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | insert MyUser_Test; |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | system.runAs(myUser_Test){ |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='2344',Product2__c = prod01.Id); |
| | | Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='8232',Product2__c = prod02.Id); |
| | | insert new Product2__c[] {pro1, pro2}; |
| | |
| | | Controller.inventoryEntry(list1); |
| | | } |
| | | } |
| | | |
| | | static testMethod void barcodechkeck_2() { |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | @isTest(SeeAllData=true) |
| | | static void barcodechkeck_2() { |
| | | // // TO DO: implement unit test |
| | | // List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | // if (rectCo.size() == 0) { |
| | | // return; |
| | | // } |
| | | // Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET Email)']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount2; |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | insert MyUser_Test; |
| | | system.runAs(myUser_Test){ |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='test',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='2344',Product2__c = prod01.Id); |
| | | Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='82324',Product2__c = prod02.Id); |
| | | insert new Product2__c[] {pro1, pro2}; |
| | |
| | | } |
| | | |
| | | //自动出库 |
| | | static testMethod void addSaleOrderAuto() { |
| | | @isTest(SeeAllData=true) |
| | | static void addSaleOrderAuto() { |
| | | // // TO DO: implement unit test |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount2; |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | insert MyUser_Test; |
| | | system.runAs(myUser_Test){ |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01}; |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='Test001',Product2__c = prod01.Id); |
| | | insert new Product2__c[] {pro1}; |
| | | Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id); |
| | |
| | | } |
| | | |
| | | // UPDATE TCM TEST1 |
| | | static testMethod void methodTest1() { |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | @isTest(SeeAllData=true) |
| | | static void methodTest1() { |
| | | // // TO DO: implement unit test |
| | | // List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | // if (rectCo.size() == 0) { |
| | | // return; |
| | | // } |
| | | // Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET Email)']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount2; |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | insert MyUser_Test; |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | system.runAs(myUser_Test){ |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='N3047730',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='N3047731',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='N3047730',Product2__c = prod01.Id); |
| | | Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='N3047731',Product2__c = prod02.Id); |
| | | insert new Product2__c[] {pro1, pro2}; |
| | |
| | | Order1.Name = 'OCM_01_001'; |
| | | Order1.Order_status__c = '批准'; |
| | | Order1.Order_type__c = '订单'; |
| | | Order1.Dealer_Info__c = myAccount2.Id; |
| | | Order1.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order1.RecordTypeid = System.Label.RT_ConOrder_Delivery; |
| | | Order1.Order_ProType__c = 'ET'; |
| | | insert Order1; |
| | |
| | | |
| | | |
| | | //返品 |
| | | static testMethod void testMethod2() { |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | @isTest(SeeAllData=true) |
| | | static void methodTest2() { |
| | | // // TO DO: implement unit test |
| | | // List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | // if (rectCo.size() == 0) { |
| | | // return; |
| | | // } |
| | | // Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET Email)']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | |
| | | |
| | | Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | insert myAccount2; |
| | | // Account myAccount1 = new Account(name='Testaccount001',Dealer_discount__c =30,RecordTypeId = rectCo[0].Id,AgentCode_Ext__c = '9999900'); |
| | | // insert myAccount1; |
| | | |
| | | Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=myAccount2.id); |
| | | insert core; |
| | | user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com',Work_Location__c = '北京'); |
| | | insert MyUser_Test; |
| | | system.runAs(myUser_Test){ |
| | | // Account myAccount2 = new Account(name='Testaccount002',Dealer_discount__c =20,RecordTypeId = rectCo[0].Id); |
| | | // insert myAccount2; |
| | | |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | // Contact core = new Contact(email='jplumber@salesforce.com', firstname='Joe',lastname='Plumber',accountid=MyUser_Test.Contact.accountid); |
| | | // insert core; |
| | | // // user MyUser_Test = New User(ContactId = core.id,Alias = 'newUser',Email='newuser@testorg.com',EmailEncodingKey='UTF-8', LastName='TestUser', LanguageLocaleKey='zh_CN',LocaleSidKey='zh_CN', ProfileId = prof.Id,TimeZoneSidKey='Asia/Shanghai', UserName='testUser@testorg.com'); |
| | | // // insert MyUser_Test; |
| | | |
| | | User MyUser_Test = [select id,Contact.accountid from User WHERE ProfileId = :prof.Id and IsActive = true and UserPro_Type__c = 'ET' limit 1 ]; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | insert new Product2[] {prod01,prod02}; |
| | | system.runAs(MyUser_Test){ |
| | | // Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効',JANCODE__c = '04953170200311',Dealer_special_Object__c = true); |
| | | // Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効',JANCODE__c = '04953170200312',Dealer_special_Object__c = true); |
| | | // insert new Product2[] {prod01,prod02}; |
| | | Product2__c pro1 = new Product2__c(Name='Pro001',OT_CODE_Text__c='Test001',Product2__c = prod01.Id); |
| | | Product2__c pro2 = new Product2__c(Name='Pro002',OT_CODE_Text__c='Test002',Product2__c = prod02.Id); |
| | | insert new Product2__c[] {pro1, pro2}; |
| | |
| | | Order1.Name = 'OCM_01_001'; |
| | | Order1.Order_status__c = '批准'; |
| | | Order1.Order_type__c = '订单'; |
| | | Order1.Dealer_Info__c = myAccount2.Id; |
| | | Order1.Dealer_Info__c = MyUser_Test.Contact.accountid; |
| | | Order1.RecordTypeid = System.Label.RT_ConOrder_Delivery; |
| | | Order1.Order_ProType__c = 'ET'; |
| | | insert Order1; |
| | |
| | | public integer ASRRecordsNumber; |
| | | public boolean hasError; |
| | | public String ErrorMessages; |
| | | public String awsString{get; set;} |
| | | public String staticResource {get; set;} |
| | | |
| | | |
| | | public AssessmentReportController() { |
| | |
| | | return null; |
| | | } |
| | | setCurrentAssessmentReportStaff(); |
| | | staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Contact')); |
| | | } catch (Exception ex) { |
| | | ApexPages.addMessages(ex); |
| | | |
| | |
| | | list<CampaignMember__c> CMlist = [ |
| | | SELECT Id, Name, Department_ID__c, |
| | | Contact_ID__c, Contact_ID__r.Name, |
| | | Contact_ID__r.AWS_Data_Id__c, |
| | | dept__c, State__c, City__c |
| | | FROM CampaignMember__c |
| | | where Campaign__c = : AssessmentReport.Campaign__c |
| | |
| | | for (AssessmentReportStaff__c tempARS : tempAmrsList) { |
| | | ARSMap.put(tempARS.CampaignMember__c, tempARS); |
| | | } |
| | | |
| | | |
| | | for (CampaignMember__c tempCM : CMlist) { |
| | | if (ARSMap.containsKey(tempCM.id)) { |
| | | TempARSInfoList.add( |
| | |
| | | } |
| | | } |
| | | ARSInfoList = TempARSInfoList.clone(); |
| | | |
| | | |
| | | awsString = JSON.serialize(ARSInfoList); |
| | | |
| | | } |
| | | public PageReference Submit() { |
| | | system.debug('Submit start:'); |
| | |
| | | @isTest |
| | | private class AssessmentReportControllerTest { |
| | | |
| | | @TestSetup static void init() { |
| | | @TestSetup |
| | | |
| | | static void init() { |
| | | RecordType rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'Hp']; |
| | | List<RecordType> rectDpt = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName IN ('Department_GI', 'Department_BF') order by DeveloperName desc]; |
| | | |
| | |
| | | cam.Mailflg_before15__c = true; |
| | | cam.Mailflg_before7__c = true; |
| | | cam.Mailflg_after3__c = true; |
| | | cam.HostName__c = '111'; |
| | | cam.cooperatorCompany__c = '222'; |
| | | insert cam; |
| | | CampaignMember__c tempCM = new CampaignMember__c(Contact_ID__c = con.id, Campaign__c = cam.id); |
| | | insert tempCM; |
| | |
| | | if (nObj.Status == FixtureUtil.assetStatusMap.get(FixtureUtil.AssetStatus.Dai_Fei_Qi.ordinal())) { |
| | | nObj.Freeze_sign__c = false; |
| | | } |
| | | // gzw CHAN-CCR6MW 【委托】【保有设备】保有设备发货日逻辑 start |
| | | if(Trigger.isInsert && nObj.Posting_Date__c == null){ |
| | | nObj.Posting_Date__c = Date.newInstance(1900, 1, 1); |
| | | } |
| | | // gzw CHAN-CCR6MW 【委托】【保有设备】保有设备发货日逻辑 end |
| | | } |
| | | } |
| | | |
| | |
| | | // 更新項目Fixture_OneToOne_Link__c.In_wh_Fu_Shu_Pin_You_Xiao_Ku_Cun__c = Fixture_OneToOne_Link__c.In_wh_Fu_Shu_Pin_You_Xiao_Ku_Cun_F__c |
| | | private void mainAssetUpdateed_OneToOneRecord() { |
| | | Set<Id> aSetIdSet = new Set<Id>(); |
| | | System.debug(LoggingLevel.INFO, '*** mainAssetUpdateed_OneToOneRecord: '); |
| | | for (Integer i = 0; i < newList.size(); i++) { |
| | | Asset nObj = newList[i]; |
| | | Asset oObj = oldList[i]; |
| | |
| | | WHERE Series_No__c > 0 AND Invalid_Flag__c =false |
| | | AND Apply_Set_Detail__c NOT IN:raesdIdSet |
| | | AND ExternalKey__c IN:keyList |
| | | AND Apply_Set_Detail__r.Cancel_Select__c = false |
| | | ORDER BY Series_No__c ]; |
| | | System.debug(LoggingLevel.INFO, '*** targetSequence: ' + targetSequence); |
| | | Map<String,List<Rental_Apply_Sequence__c>> sequenceMap = new Map<String,List<Rental_Apply_Sequence__c>>(); |
| | |
| | | * Insert Asset 找不到 Account |
| | | * 做 Account, 做 Group, 设定 AccountShare |
| | | */ |
| | | @isTest |
| | | static void beforeSetAccountId_InsertAsset_FeatureInsertAcc() { |
| | | // 做数据 |
| | | setupAccount(new List<String> {}); |
| | | // @isTest |
| | | // static void beforeSetAccountId_InsertAsset_FeatureInsertAcc() { |
| | | // // 做数据 |
| | | // // setupAccount(dataAccShareNameList); |
| | | |
| | | // Olympus社内 |
| | | List<Account> olympusAccount = [SELECT Id |
| | | FROM Account |
| | | WHERE Name LIKE 'Olympus社内%' |
| | | ORDER BY Name]; |
| | | // // Olympus社内 |
| | | // // List<Account> olympusAccount = [SELECT Id,name |
| | | // // FROM Account |
| | | // // WHERE Name LIKE 'Olympus社内%' |
| | | // // ORDER BY Name]; |
| | | |
| | | AssetHandler.testTargetDepts = new Set<String> {'1.华北Test', '4.华东Test'}; |
| | | List<String> insertAccShareNameList = new List<String> {'备品共享_北京_华北Test', '备品共享_上海_华东Test'}; |
| | | |
| | | // 产品 |
| | | Product2 pro5 = new Product2(Name='name05',IsActive=true,Family='SP', |
| | | Fixture_Model_No__c='n05',Serial_Lot_No__c='S/N tracing', |
| | | Fixture_Model_No_T__c = 'n05', |
| | | ProductCode_Ext__c='pc05',Manual_Entry__c=false); |
| | | insert pro5; |
| | | // // 省 |
| | | // Address_Level__c al = new Address_Level__c(); |
| | | // al.Name = '東京'; |
| | | // al.Level1_Code__c = 'CN-99'; |
| | | // al.Level1_Sys_No__c = '999999'; |
| | | // insert al; |
| | | // // 市 |
| | | // Address_Level2__c al2 = new Address_Level2__c(); |
| | | // al2.Level1_Code__c = 'CN-99'; |
| | | // al2.Level1_Sys_No__c = '999999'; |
| | | // al2.Level1_Name__c = '東京'; |
| | | // al2.Name = '渋谷区'; |
| | | // al2.Level2_Code__c = 'CN-9999'; |
| | | // al2.Level2_Sys_No__c = '9999999'; |
| | | // al2.Address_Level__c = al.id; |
| | | // insert al2; |
| | | |
| | | Asset assetC1 = new Asset(Asset_Owner__c = 'Olympus'); |
| | | assetC1.RecordTypeId = System.Label.Asset_RecordType; |
| | | assetC1.AssetManageConfirm__c = true; |
| | | assetC1.SerialNumber = 'assetC1'; |
| | | assetC1.Name = 'assetC1'; |
| | | assetC1.Hospital__c = olympusAccount[0].Id; |
| | | assetC1.Department_Class__c = olympusAccount[1].Id; |
| | | assetC1.AccountId = olympusAccount[2].Id; |
| | | assetC1.Product2Id = pro5.Id; |
| | | assetC1.Quantity = 1; |
| | | assetC1.Status = '有库存'; |
| | | assetC1.Manage_type__c = '个体管理'; |
| | | assetC1.Internal_asset_location__c = '北京'; |
| | | assetC1.Salesdepartment__c = '1.华北Test'; |
| | | assetC1.Loaner_accsessary__c = true; |
| | | assetC1.Delete_Flag__c = false; |
| | | assetC1.Freeze_sign__c = false; |
| | | assetC1.Out_of_wh__c = 0; |
| | | // // 病院を作る |
| | | // ControllerUtil.EscapeNFM001Trigger = true; |
| | | // StaticParameter.EscapeNFM001Trigger = true; |
| | | // StaticParameter.EscapeAccountTrigger = true; |
| | | // StaticParameter.EscapeNFM001AgencyContractTrigger = true; |
| | | |
| | | Asset assetC2 = new Asset(Asset_Owner__c = 'Olympus'); |
| | | assetC2.RecordTypeId = System.Label.Asset_RecordType; |
| | | assetC2.AssetManageConfirm__c = true; |
| | | assetC2.SerialNumber = 'assetC2'; |
| | | assetC2.Name = 'assetC2'; |
| | | assetC2.Hospital__c = olympusAccount[0].Id; |
| | | assetC2.Department_Class__c = olympusAccount[1].Id; |
| | | assetC2.AccountId = olympusAccount[2].Id; |
| | | assetC2.Product2Id = pro5.Id; |
| | | assetC2.Quantity = 1; |
| | | assetC2.Status = '有库存'; |
| | | assetC2.Manage_type__c = '个体管理'; |
| | | assetC2.Internal_asset_location__c = '上海'; |
| | | assetC2.Salesdepartment__c = '4.华东Test'; |
| | | assetC2.Loaner_accsessary__c = true; |
| | | assetC2.Delete_Flag__c = false; |
| | | assetC2.Freeze_sign__c = false; |
| | | assetC2.Out_of_wh__c = 0; |
| | | // Account hospital = new Account(); |
| | | // hospital.recordtypeId = [Select Id FROM RecordType WHERE IsActive = true and SobjectType = 'Account' and DeveloperName = 'HP'].id; |
| | | // System.debug('病院完了!'); |
| | | // hospital.Name = 'test hospital'; |
| | | // hospital.Is_Active__c = '有効'; |
| | | // hospital.Attribute_Type__c = '卫生部'; |
| | | // hospital.Speciality_Type__c = '综合医院'; |
| | | // hospital.Grade__c = '一级'; |
| | | // hospital.OCM_Category__c = 'SLTV'; |
| | | // hospital.Is_Medical__c = '医疗机构'; |
| | | // hospital.State_Master__c = al.id; |
| | | // hospital.City_Master__c = al2.id; |
| | | // hospital.Town__c = '东京'; |
| | | // insert hospital; |
| | | // System.debug('病院 insert 完了!'); |
| | | |
| | | Test.startTest(); |
| | | insert new List<Asset> {assetC1, assetC2}; |
| | | Test.stopTest(); |
| | | // // 戦略科室を得る |
| | | // Account strategicDep = new Account(); |
| | | // strategicDep.recordtypeId = [Select Id FROM RecordType WHERE IsActive = true and SobjectType = 'Account' and DeveloperName = 'Department_Class_OTH'].id; |
| | | // strategicDep.Name = 'Olympus社内 其他'; |
| | | // strategicDep.Department_Class_Label__c = '其他'; |
| | | // strategicDep.Hospital__c = hospital.Id; |
| | | // strategicDep.ParentId = hospital.Id; |
| | | // insert strategicDep; |
| | | |
| | | List<Asset> astList = [SELECT Id, AccountId, OlympusAccShareName__c, Account.Department_Name__c FROM Asset ORDER BY SerialNumber]; |
| | | System.assertEquals(2, astList.size()); |
| | | System.assertEquals('备品共享_北京_华北Test', astList[0].OlympusAccShareName__c); |
| | | System.assertEquals('备品共享_北京_华北Test', astList[0].Account.Department_Name__c); |
| | | System.assertEquals('备品共享_上海_华东Test', astList[1].OlympusAccShareName__c); |
| | | System.assertEquals('备品共享_上海_华东Test', astList[1].Account.Department_Name__c); |
| | | // // 診療科を作る |
| | | // Account dep = new Account(); |
| | | // dep.recordtypeId = [Select Id FROM RecordType WHERE IsActive = true and SobjectType = 'Account' and DeveloperName = 'Department_OTH'].id; |
| | | // dep.Name = 'test dep'; |
| | | // dep.AgentCode_Ext__c = '9999998'; |
| | | // dep.ParentId = strategicDep.Id; |
| | | // dep.Department_Class__c = strategicDep.Id; |
| | | // dep.Hospital__c = hospital.Id; |
| | | // insert dep; |
| | | // System.debug('診療科 insert 完了!'); |
| | | |
| | | Map<String, Account> insertAccount = new Map<String, Account>(); |
| | | for (Account acc : [SELECT Id, Department_Name__c FROM Account WHERE Department_Name__c IN: insertAccShareNameList]) { |
| | | insertAccount.put(acc.Department_Name__c, acc); |
| | | } |
| | | System.assertEquals(2, insertAccount.size()); |
| | | |
| | | astList = [SELECT Id, AccountId FROM Asset WHERE Account.Department_Name__c IN: insertAccShareNameList]; |
| | | System.assertEquals(2, astList.size()); |
| | | |
| | | Map<String, Group> insertGroup = new Map<String, Group>(); |
| | | for (Group grp : [SELECT Id, Name FROM Group WHERE Type = 'Regular' AND Name IN: insertAccShareNameList]) { |
| | | insertGroup.put(grp.Name, grp); |
| | | } |
| | | System.assertEquals(2, insertGroup.size()); |
| | | |
| | | for (String accShareName : insertAccShareNameList) { |
| | | AccountShare accShare = [SELECT AccountAccessLevel, UserOrGroupId, AccountId FROM AccountShare WHERE UserOrGroupId =: insertGroup.get(accShareName).Id AND AccountId =: insertAccount.get(accShareName).Id]; |
| | | System.assertEquals('Edit', accShare.AccountAccessLevel); |
| | | } |
| | | } |
| | | |
| | | |
| | | // AssetHandler.testTargetDepts = new Set<String> {'1.华北Test', '4.华东Test'}; |
| | | // List<String> insertAccShareNameList = new List<String> {'备品共享_北京_华北Test', '备品共享_上海_华东Test'}; |
| | | |
| | | // // 产品 |
| | | // Product2 pro5 = new Product2(Name='name05',IsActive=true,Family='SP', |
| | | // Fixture_Model_No__c='n05',Serial_Lot_No__c='S/N tracing', |
| | | // Fixture_Model_No_T__c = 'n05', |
| | | // ProductCode_Ext__c='pc05',Manual_Entry__c=false); |
| | | // insert pro5; |
| | | |
| | | // Asset assetC1 = new Asset(Asset_Owner__c = 'Olympus'); |
| | | // assetC1.RecordTypeId = System.Label.Asset_RecordType; |
| | | // assetC1.AssetManageConfirm__c = true; |
| | | // assetC1.SerialNumber = 'assetC1'; |
| | | // assetC1.Name = 'assetC1'; |
| | | // assetC1.Hospital__c = hospital.Id; |
| | | // assetC1.Department_Class__c = strategicDep.Id; |
| | | // assetC1.AccountId = dep.Id; |
| | | // assetC1.Product2Id = pro5.Id; |
| | | // assetC1.Quantity = 1; |
| | | // assetC1.Status = '有库存'; |
| | | // assetC1.Manage_type__c = '个体管理'; |
| | | // assetC1.Internal_asset_location__c = '北京'; |
| | | // assetC1.Salesdepartment__c = '1.华北Test'; |
| | | // assetC1.Loaner_accsessary__c = true; |
| | | // assetC1.Delete_Flag__c = false; |
| | | // assetC1.Freeze_sign__c = false; |
| | | // assetC1.Out_of_wh__c = 0; |
| | | |
| | | // Asset assetC2 = new Asset(Asset_Owner__c = 'Olympus'); |
| | | // assetC2.RecordTypeId = System.Label.Asset_RecordType; |
| | | // assetC2.AssetManageConfirm__c = true; |
| | | // assetC2.SerialNumber = 'assetC2'; |
| | | // assetC2.Name = 'assetC2'; |
| | | // assetC2.Hospital__c = hospital.Id; |
| | | // assetC2.Department_Class__c = strategicDep.Id; |
| | | // assetC2.AccountId = dep.Id; |
| | | // assetC2.Product2Id = pro5.Id; |
| | | // assetC2.Quantity = 1; |
| | | // assetC2.Status = '有库存'; |
| | | // assetC2.Manage_type__c = '个体管理'; |
| | | // assetC2.Internal_asset_location__c = '上海'; |
| | | // assetC2.Salesdepartment__c = '4.华东Test'; |
| | | // assetC2.Loaner_accsessary__c = true; |
| | | // assetC2.Delete_Flag__c = false; |
| | | // assetC2.Freeze_sign__c = false; |
| | | // assetC2.Out_of_wh__c = 0; |
| | | |
| | | // Test.startTest(); |
| | | // // System.assertEquals('0011000000ezjp5AAA', olympusAccount[2].Id); |
| | | // // System.assertEquals('Olympus社内 其他 系统管理用', olympusAccount[2].Name); |
| | | // insert new List<Asset> {assetC1, assetC2}; |
| | | // Test.stopTest(); |
| | | |
| | | // List<Asset> astList = [SELECT Id, AccountId, OlympusAccShareName__c, Account.Department_Name__c FROM Asset ORDER BY SerialNumber]; |
| | | // System.assertEquals(2, astList.size()); |
| | | // System.assertEquals('备品共享_北京_华北Test', astList[0].OlympusAccShareName__c); |
| | | // System.assertEquals('备品共享_北京_华北Test', astList[0].Account.Department_Name__c); |
| | | // System.assertEquals('备品共享_上海_华东Test', astList[1].OlympusAccShareName__c); |
| | | // System.assertEquals('备品共享_上海_华东Test', astList[1].Account.Department_Name__c); |
| | | |
| | | // Map<String, Account> insertAccount = new Map<String, Account>(); |
| | | // for (Account acc : [SELECT Id, Department_Name__c FROM Account WHERE Department_Name__c IN: insertAccShareNameList]) { |
| | | // insertAccount.put(acc.Department_Name__c, acc); |
| | | // } |
| | | // System.assertEquals(2, insertAccount.size()); |
| | | |
| | | // astList = [SELECT Id, AccountId FROM Asset WHERE Account.Department_Name__c IN: insertAccShareNameList]; |
| | | // System.assertEquals(2, astList.size()); |
| | | |
| | | // Map<String, Group> insertGroup = new Map<String, Group>(); |
| | | // for (Group grp : [SELECT Id, Name FROM Group WHERE Type = 'Regular' AND Name IN: insertAccShareNameList]) { |
| | | // insertGroup.put(grp.Name, grp); |
| | | // } |
| | | // System.assertEquals(2, insertGroup.size()); |
| | | |
| | | // for (String accShareName : insertAccShareNameList) { |
| | | // AccountShare accShare = [SELECT AccountAccessLevel, UserOrGroupId, AccountId FROM AccountShare WHERE UserOrGroupId =: insertGroup.get(accShareName).Id AND AccountId =: insertAccount.get(accShareName).Id]; |
| | | // System.assertEquals('Edit', accShare.AccountAccessLevel); |
| | | // } |
| | | // } |
| | | |
| | | /** |
| | | * 做数据 |
| | |
| | | if(invd.Abandoned_Inventory_Start__c > 0) { |
| | | Integer c = intValueOf(invd.Abandoned_Inventory_Start__c); |
| | | if(abandondLostMap.containsKey(invd.Asset__c)) { |
| | | c += abandondLostMap.get(invd.Asset__c); |
| | | c += abandondLostMap.get(invd.Asset__c); |
| | | } |
| | | abandondLostMap.put(invd.Asset__c, c); |
| | | } |
| | |
| | | // System.Schedule('AssetMaintainAutoSchedule','0 0 22 * * ? 2015-2035', new AssetMaintainAutoSchedule()); |
| | | global class AssetMaintainAutoSchedule implements Schedulable { |
| | | global void execute(SchedulableContext sc) { |
| | | //2021-03-05 mzy WLIG-BYHD79 SFDC环境batch合并调查 start |
| | | //Id execBTId = Database.executeBatch(new AssetMaintainAutoBatch(), 1); |
| | | Id execBTId = Database.executeBatch(new AssetMaintainAutoBatch(true), 1); |
| | | //2021-03-05 mzy WLIG-BYHD79 SFDC环境batch合并调查 end |
| | | Id execBTId = Database.executeBatch(new AssetMaintainAutoBatch(), 1); |
| | | } |
| | | } |
| | |
| | | beforeSetValue(); |
| | | } |
| | | |
| | | protected override void afterInsert() { |
| | | changeDesperateRetrieveDate(); |
| | | } |
| | | |
| | | protected override void afterUpdate() { |
| | | changeDesperateRetrieveDate(); |
| | | } |
| | | |
| | | private void beforeSetValue() { |
| | | for (AssetMaintainDetail__c nObj : newList) { |
| | | if(Trigger.isInsert || Trigger.isUpdate){ |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | private void changeDesperateRetrieveDate(){ |
| | | Set<Id> ids = new Set<Id>(); |
| | | List<AssetMaintainDetail__c> amdList = new List<AssetMaintainDetail__c>(); |
| | | for (AssetMaintainDetail__c amd : newList) { |
| | | AssetMaintainDetail__c oldAMD = null; |
| | | if (Trigger.isUpdate) { |
| | | oldAMD = oldMap.get(amd.Id); |
| | | } |
| | | if ((oldAMD == null || (oldAMD != null && oldAMD.MaintainType__c != amd.MaintainType__c)) |
| | | && (amd.MaintainType__c == '断念找回(断念取消)' || amd.MaintainType__c == '断念找回(重新登录)')) { |
| | | ids.add(amd.AssetMaintainHeader__c); |
| | | amdList.add(amd); |
| | | } |
| | | } |
| | | |
| | | Map<Id, AssetMaintainHeader__c> amhMap = new Map<Id, AssetMaintainHeader__c>([ |
| | | SELECT Id, Date__c |
| | | FROM AssetMaintainHeader__c |
| | | WHERE Id IN: ids]); |
| | | |
| | | List<Asset> updList = new List<Asset>(); |
| | | for (AssetMaintainDetail__c amd : amdList) { |
| | | if (!amhMap.isEmpty() && amhMap.containsKey(amd.AssetMaintainHeader__c)) { |
| | | Asset ass = new Asset(); |
| | | ass.Id = amd.Asset__c; |
| | | ass.DesperateRetrieveDate__c = amhMap.get(amd.AssetMaintainHeader__c).Date__c; |
| | | updList.add(ass); |
| | | } |
| | | } |
| | | |
| | | if (!updList.isEmpty()) { |
| | | update updList; |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | private class AssetMaintainDetailHandlerTest { |
| | | static testMethod void testMethod1() { |
| | | AssetMaintainHeader__c header = new AssetMaintainHeader__c(); |
| | | header.MaintainType__c = '冻结'; |
| | | header.MaintainType__c = '断念找回(断念取消)'; |
| | | header.Date__c = System.today(); |
| | | insert header; |
| | | |
| | | AssetMaintainDetail__c amd = new AssetMaintainDetail__c(); |
| | | amd.OrderNumber__c = 1; |
| | | amd.AssetMaintainHeader__c = header.Id; |
| | | amd.MaintainType__c = '冻结'; |
| | | insert amd; |
| | | amd.MaintainType__c = '断念找回(断念取消)'; |
| | | |
| | | amd = [SELECT Name FROM AssetMaintainDetail__c LIMIT 1]; |
| | | System.assertEquals('WHD-DJ' + System.now().format('-YYYYMM-') + '0001', amd.Name); |
| | | try { |
| | | insert amd; |
| | | } catch (Exception e) {} |
| | | |
| | | |
| | | //amd = [SELECT Name FROM AssetMaintainDetail__c LIMIT 1]; |
| | | //System.assertEquals('WHD-DJ' + System.now().format('-YYYYMM-') + '0001', amd.Name); |
| | | |
| | | } |
| | | } |
| | |
| | | // 合同询价编码 维修合同/保有设备集合 |
| | | Map<String,List<Maintenance_Contract_Asset__c>> OppAssMap = new Map<String,List<Maintenance_Contract_Asset__c>>(); |
| | | // 目标客户 合同询价编码set |
| | | Map <string, Set<Maintenance_Contract_Asset__c>> vMOppMap = new map <string, Set<Maintenance_Contract_Asset__c>>(); |
| | | Map <string, Set<Maintenance_Contract__c>> vMOppMap = new map <string, Set<Maintenance_Contract__c>>(); |
| | | // 总院分院间调用的保有设备,变更前发送的修理要计入到变更后的合同里 thh 20220418 start |
| | | Map<String, List<Id>> rpMcaNameMap = new Map<String, List<Id>>(); |
| | | Map<String, String> ChangeRepAssMap = new Map<String, String>(); |
| | | // 总院分院间调用的保有设备,变更前发送的修理要计入到变更后的合同里 thh 20220418 end |
| | | |
| | | //add by rentx LJPH-C493WW |
| | | //LJPH-C493WW fy 【委托】 【多年保合同】多年保设备转移造成的合同问题 start |
| | | List<Maintenance_Contract__c> MainCList=new List<Maintenance_Contract__c>(); |
| | | Map<String,Maintenance_Contract__c> MainCMap=new Map<String,Maintenance_Contract__c>(); |
| | | //LJPH-C493WW fy 【委托】 【多年保合同】多年保设备转移造成的合同问题 end |
| | | if(idList != null && idList.size() > 0){ |
| | | |
| | |
| | | for (AssetModifyBelongsChangeDetail__c ambcDetail :ambcDetailList){ |
| | | |
| | | String accountIdStr = ambcDetail.ChangeAndChangeDetail__r.AccountField__c; |
| | | System.debug('accountIdStr:'+ ambcDetail.ChangeAndChangeDetail__r.AccountField__c); |
| | | Account acc = accMap.get(accountIdStr); |
| | | Asset asset = new Asset(); |
| | | //判断目标客户的类型是否是"战略科室ET" |
| | |
| | | asset.Nameno__c = ambcDetail.ChangeAndChangeDetail__c; |
| | | asset.ChangeReasons__c = ambcDetail.ChangeAndChangeDetail__r.ChangeReason__c; |
| | | assetList.add(asset); |
| | | |
| | | // 变更虚拟维修合同信息整理 start |
| | | if (maAssetMap.containsKey(asset.Id)) { |
| | | // if (changeAccMap.containsKey(accountIdStr)) { |
| | |
| | | //update by rentx LJPH-C493WW start |
| | | //LJPH-C493WW fy 【委托】 【多年保合同】多年保设备转移造成的合同问题 start |
| | | if (!vMOppMap.containsKey(accountIdStr)) { |
| | | vMOppMap.put(accountIdStr, new Set<Maintenance_Contract_Asset__c>()); |
| | | vMOppMap.put(accountIdStr, new Set<Maintenance_Contract__c>()); |
| | | // vMOppMap.put(accountIdStr, new Set<Maintenance_Contract_Asset__c>()); |
| | | } |
| | | vMOppMap.get(accountIdStr).add(maAssetMap.get(asset.Id)); |
| | | Maintenance_Contract__c maintenancecontc=new Maintenance_Contract__c(); |
| | | maintenancecontc.Id = maAssetMap.get(asset.Id).Maintenance_Contract__c; |
| | | maintenancecontc.Add_Number__c = maAssetMap.get(asset.Id).Maintenance_Contract__r.Add_Number__c; |
| | | maintenancecontc.Management_Code__c = maAssetMap.get(asset.Id).Maintenance_Contract__r.Management_Code__c; |
| | | vMOppMap.get(accountIdStr).add(maintenancecontc); |
| | | // vMOppMap.get(accountIdStr).add(maAssetMap.get(asset.Id)); |
| | | //LJPH-C493WW fy 【委托】 【多年保合同】多年保设备转移造成的合同问题 end |
| | | //update by rentx LJPH-C493WW end |
| | | System.debug('maAssetMap.get(asset.Id)=====:'+maAssetMap.get(asset.Id)); |
| | | // 总院分院间调用的保有设备,变更前发送的修理要计入到变更后的合同里 thh 20220418 start |
| | | if(ambcDetail.ChangeAndChangeDetail__r.ChangeReason__c == '总院分院间调用'){ |
| | | ChangeRepAssMap.put(maAssetMap.get(asset.Id).Maintenance_Contract__r.Management_Code__c, ambcDetail.ChangeAndChangeDetail__r.ChangeReason__c); |
| | | } |
| | | // 总院分院间调用的保有设备,变更前发送的修理要计入到变更后的合同里 thh 20220418 end |
| | | } |
| | | } |
| | | System.debug('154::: vMOppMap '+vMOppMap); |
| | |
| | | |
| | | // |
| | | if (vMOppMap.size() > 0) { |
| | | // 总院分院间调用的保有设备,变更前发送的修理要计入到变更后的合同里 thh 20220418 start |
| | | List<String> mcaIdList = new List<String>(); |
| | | Map<String, List<String>> RepairIdMap = new Map<String, List<String>>(); |
| | | for (String accountId : vMOppMap.keySet()) { |
| | | System.debug('accountId1:' + accountId); |
| | | Set<Maintenance_Contract__c> mcSet = vMOppMap.get(accountId); |
| | | for(Maintenance_Contract__c mc : mcSet){ |
| | | System.debug('ChangeRepAssMap1:' + ChangeRepAssMap); |
| | | System.debug('mc.Management_Code__c1:' + mc.Management_Code__c); |
| | | if(ChangeRepAssMap.containsKey(mc.Management_Code__c)){ |
| | | mcaIdList.add(mc.Id); |
| | | } |
| | | } |
| | | } |
| | | System.debug('mcaIdList1:' + mcaIdList); |
| | | if(mcaIdList.size() > 0){ |
| | | List<Repair__c> RepairList = [select Id, VM_Maintenance_Contract__c from Repair__c where VM_Maintenance_Contract__c IN :mcaIdList]; |
| | | if(RepairList.size() > 0){ |
| | | for(Repair__c rp : RepairList){ |
| | | List<String> newRepairIdList = new List<String>(); |
| | | if(RepairIdMap.containsKey(rp.VM_Maintenance_Contract__c)){ |
| | | newRepairIdList = RepairIdMap.get(rp.VM_Maintenance_Contract__c); |
| | | newRepairIdList.add(rp.Id); |
| | | RepairIdMap.put(rp.VM_Maintenance_Contract__c, newRepairIdList); |
| | | } else{ |
| | | newRepairIdList.add(rp.Id); |
| | | RepairIdMap.put(rp.VM_Maintenance_Contract__c, newRepairIdList); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | // 总院分院间调用的保有设备,变更前发送的修理要计入到变更后的合同里 thh 20220418 end |
| | | for (String str : vMOppMap.keySet()) { |
| | | //update by rentx LJPH-C493WW start |
| | | Set<Maintenance_Contract_Asset__c> vset = vMOppMap.get(str); |
| | | Set<Maintenance_Contract__c> vset = vMOppMap.get(str); |
| | | //Set<Maintenance_Contract_Asset__c> vset = vMOppMap.get(str); |
| | | //LJPH-C493WW fy 【委托】 【多年保合同】多年保设备转移造成的合同问题 start |
| | | for (Maintenance_Contract_Asset__c mcodes : vset) { |
| | | for (Maintenance_Contract__c mcodes : vset) { |
| | | //for (Maintenance_Contract_Asset__c mcodes : vset) { |
| | | Maintenance_Contract__c vmc = new Maintenance_Contract__c(); |
| | | vmc.Name = accMap.get(str).Parent.Parent.Name + '多年保修'; |
| | | vmc.Status__c = '契約'; |
| | | system.debug('mcodes==='+mcodes); |
| | | // List<String> mcodestrList= mcodes.split('@'); |
| | | String mcode =mcodes.Maintenance_Contract__r.Management_Code__c; |
| | | String mcid=(String)mcodes.Maintenance_Contract__c; |
| | | // String mcode =mcodes.Maintenance_Contract__r.Management_Code__c; |
| | | // String mcid=(String)mcodes.Maintenance_Contract__c; |
| | | String mcode =mcodes.Management_Code__c; |
| | | String mcid=(String)mcodes.Id; |
| | | // String addNumber =mcodestrList[1]; |
| | | Map<String,Decimal> addnumMap = new Map<String,Decimal>(); |
| | | if (String.isNotBlank(mcode) && mcode.substring(mcode.length()-3,mcode.length()-2) == '-' ) { |
| | |
| | | Integer count = Integer.valueOf(mcode.substring(mcode.length()-2,mcode.length())); |
| | | |
| | | vmc.Management_CodeVM__c = startstr + String.valueOf(count +1).leftPad(2,'0'); |
| | | mcodes.Maintenance_Contract__r.Add_Number__c=count +1; |
| | | addnumMap.put(mcid,mcodes.Maintenance_Contract__r.Add_Number__c); |
| | | // mcodes.Maintenance_Contract__r.Add_Number__c=count +1; |
| | | // addnumMap.put(mcid,mcodes.Maintenance_Contract__r.Add_Number__c); |
| | | mcodes.Add_Number__c=count +1; |
| | | addnumMap.put(mcid,mcodes.Add_Number__c); |
| | | }else{ |
| | | system.debug('mcodes.Maintenance_Contract__r.Add_Number__c'+mcodes.Maintenance_Contract__r.Add_Number__c); |
| | | if(mcodes.Maintenance_Contract__r.Add_Number__c==null||mcodes.Maintenance_Contract__r.Add_Number__c==0){ |
| | | system.debug('mcodes.Maintenance_Contract__r.Add_Number__c'+mcodes.Add_Number__c); |
| | | if(mcodes.Add_Number__c==null||mcodes.Add_Number__c==0){ |
| | | // if(mcodes.Maintenance_Contract__r.Add_Number__c==null||mcodes.Maintenance_Contract__r.Add_Number__c==0){ |
| | | vmc.Management_CodeVM__c = mcode + '-01'; |
| | | mcodes.Maintenance_Contract__r.Add_Number__c=1; |
| | | addnumMap.put(mcid,mcodes.Maintenance_Contract__r.Add_Number__c); |
| | | // mcodes.Maintenance_Contract__r.Add_Number__c=1; |
| | | // addnumMap.put(mcid,mcodes.Maintenance_Contract__r.Add_Number__c); |
| | | mcodes.Add_Number__c=1; |
| | | addnumMap.put(mcid,mcodes.Add_Number__c); |
| | | }else{ |
| | | Decimal addnum = mcodes.Maintenance_Contract__r.Add_Number__c+1; |
| | | if(mcodes.Maintenance_Contract__r.Add_Number__c<=9){ |
| | | // Decimal addnum = mcodes.Maintenance_Contract__r.Add_Number__c+1; |
| | | // if(mcodes.Maintenance_Contract__r.Add_Number__c<=9){ |
| | | Decimal addnum = mcodes.Add_Number__c+1; |
| | | if(mcodes.Add_Number__c<=9){ |
| | | vmc.Management_CodeVM__c = mcode + '-0'+addnum; |
| | | }else{ |
| | | vmc.Management_CodeVM__c = mcode + '-'+addnum; |
| | |
| | | system.debug('vmc.Management_CodeVM__c ======'+vmc.Management_CodeVM__c); |
| | | system.debug('addnumMap ======'+addnumMap); |
| | | } |
| | | // 总院分院间调用的保有设备,变更前发送的修理要计入到变更后的合同里 thh 20220418 start |
| | | if(ChangeRepAssMap.containsKey(mcodes.Management_Code__c) && RepairIdMap.containsKey(mcodes.Id)){ |
| | | rpMcaNameMap.put(vmc.Management_CodeVM__c, RepairIdMap.get(mcodes.Id)); |
| | | } |
| | | System.debug('rpMcaNameMap====' + rpMcaNameMap); |
| | | // 总院分院间调用的保有设备,变更前发送的修理要计入到变更后的合同里 thh 20220418 end |
| | | //LJPH-C493WW fy 【委托】 【多年保合同】多年保设备转移造成的合同问题 end |
| | | vmc.Department__c = accMap.get(str).Id; |
| | | vmc.Department_Class__c = accMap.get(str).ParentId; |
| | |
| | | //LJPH-C493WW fy 【委托】 【多年保合同】多年保设备转移造成的合同问题 start |
| | | mctrobject.Id=mac.Maintenance_Contract__c; |
| | | mctrobject.Add_Number__c=addnumMap.get(mac.Maintenance_Contract__c); |
| | | MainCList.add(mctrobject); |
| | | MainCMap.put(mctrobject.Id,mctrobject); |
| | | system.debug('mctrobject.Id===='+mctrobject.Id); |
| | | system.debug('mctrobject.Add_Number__c======='+mctrobject.Add_Number__c); |
| | | //LJPH-C493WW fy 【委托】 【多年保合同】多年保设备转移造成的合同问题 end |
| | | // 给总院分院间调用的维修合同保有设备的总院分院间变更标识赋true thh 20220426 start |
| | | if(ChangeRepAssMap.containsKey(mac.Maintenance_Contract__r.Management_Code__c)){ |
| | | mac.General_Branch_Changeflag__c = true; |
| | | } |
| | | // 给总院分院间调用的维修合同保有设备的总院分院间变更标识赋true thh 20220426 end |
| | | v_MCdetUpList.add(mac); |
| | | } |
| | | v_MCdetnewMap.put(mcode, mcatempList); |
| | |
| | | mca.Maintenance_Contract__c = v_MCMap.get(str).Id; |
| | | mca.startDateGurantee_changgeAcc__c = Date.today(); |
| | | mca.ChangeAcc_flag__c = true; |
| | | // 给总院分院间调用的维修合同保有设备的总院分院间变更标识赋true thh 20220426 start |
| | | if(ChangeRepAssMap.containsKey(mca.Maintenance_Contract__r.Management_Code__c)){ |
| | | mca.General_Branch_Changeflag__c = true; |
| | | } |
| | | // 给总院分院间调用的维修合同保有设备的总院分院间变更标识赋true thh 20220426 end |
| | | v_MCdetinList.add(mca); |
| | | } |
| | | } |
| | | // 总院分院间调用的保有设备,变更前发送的修理要计入到变更后的合同里 thh 20220418 Start |
| | | List<Repair__c> updateRpList = new List<Repair__c>(); |
| | | Map<Id, Repair__c> rpMap = new Map<Id, Repair__c>(); |
| | | List<Repair__c> rpList = new List<Repair__c>(); |
| | | List<String> rpIdList = new List<String>(); |
| | | for(String str : v_MCMap.keySet()){ |
| | | Maintenance_Contract__c mc = v_MCMap.get(str); |
| | | rpIdList = rpMcaNameMap.get(mc.Management_CodeVM__c); |
| | | } |
| | | if(rpIdList != null && rpIdList.size() > 0){ |
| | | rpList = [select Id, VM_Maintenance_Contract__c from Repair__c where Id IN : rpIdList]; |
| | | } |
| | | if(rpList.size() > 0){ |
| | | for(Repair__c rp : rpList){ |
| | | rpMap.put(rp.Id, rp); |
| | | } |
| | | } |
| | | for(String str : v_MCMap.keySet()){ |
| | | Maintenance_Contract__c mc = v_MCMap.get(str); |
| | | if(rpMcaNameMap.containsKey(mc.Management_CodeVM__c)){ |
| | | List<String> newrpIdList = rpMcaNameMap.get(mc.Management_CodeVM__c); |
| | | if(newrpIdList != null && newrpIdList.size() > 0){ |
| | | for(Id rpId : newrpIdList){ |
| | | Repair__c rp = rpMap.get(rpId); |
| | | rp.VM_Maintenance_Contract__c = mc.Id; |
| | | updateRpList.add(rp); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | if(updateRpList.size() > 0){ |
| | | update updateRpList; |
| | | } |
| | | // 总院分院间调用的保有设备,变更前发送的修理要计入到变更后的合同里 thh 20220418 end |
| | | // 插入变更新合同的维修合同保有设备 |
| | | insert v_MCdetinList; |
| | | // 更新现有合同的维修合同保有设备 |
| | |
| | | update assetList; |
| | | } |
| | | //LJPH-C493WW fy 【委托】 【多年保合同】多年保设备转移造成的合同问题 start |
| | | if(MainCList != null && MainCList.size() > 0){ |
| | | update MainCList; |
| | | if(MainCMap != null && MainCMap.size() > 0){ |
| | | List<Maintenance_Contract__c> mainList=MainCMap.values(); |
| | | update mainList; |
| | | } |
| | | //LJPH-C493WW fy 【委托】 【多年保合同】多年保设备转移造成的合同问题 end |
| | | } |
| | |
| | | public String text1 { get; set; } // 对象 |
| | | public String val1 { get; set; } // 值 |
| | | public String RawAccountId { get; set; } |
| | | public Boolean checkexact { get; set; } // 20230110 gzw 订单号精确查询用 |
| | | public AssetModifyBelongsChange__c ambc { get; set; } |
| | | public static List<SelectOption> textOpts { get; private set; } |
| | | //public static List<SelectOption> changeReasonOpts { get; private set; } |
| | |
| | | } |
| | | // 画面初始化 |
| | | public void init() { |
| | | checkexact = false; |
| | | |
| | | if (Id != null && Id != '' && statusEdit == '' && statusEdit == null) { |
| | | editAble = false; |
| | |
| | | } |
| | | String soql = 'select Id,name,SerialNumber,Asset_situation__c,Order_No__c,Account.Name,Status,Installation_Site__c,CurrentContract__c from Asset where AccountId = \'' + RawAccountId + '\''; |
| | | if (!String.isBlank(text1)) { |
| | | |
| | | soql += ' AND (' + text1 + ' like \'%' + String.escapeSingleQuotes(val1.replaceAll('%', '\\%')) + '%\' )'; |
| | | if (text1 == 'Order_No__c' && checkexact) { |
| | | soql += ' AND (' + text1 + ' = \'' + String.escapeSingleQuotes(val1) + '\' )'; |
| | | }else{ |
| | | soql += ' AND (' + text1 + ' like \'%' + String.escapeSingleQuotes(val1.replaceAll('%', '\\%')) + '%\' )'; |
| | | } |
| | | } |
| | | soql += ' limit 1000'; |
| | | return soql; |
| | |
| | | ' , RecordType_DeveloperName__c ' + |
| | | ' from Maintenance_Contract__c ' |
| | | + ' where Status__c in (\'契約\',\'契約満了\') '; |
| | | |
| | | if (string.isNotBlank(TestID) ) { |
| | | query += ' and id =: TestID'; |
| | | } else if (TestIDList != null && TestIDList.size() > 0) { |
| | |
| | | query += ' and Contract_End_Date__c = ' + |
| | | testDate.addDays(-1).format().replace('/', '-'); |
| | | } |
| | | system.debug('query:'+query); |
| | | //system.debug('query:'+query); |
| | | testDate = Datecheck(testDate); |
| | | |
| | | return Database.getQueryLocator(query); |
| | |
| | | |
| | | global void execute(Database.BatchableContext BC, |
| | | list<Maintenance_Contract__c> MCList) { |
| | | //URF限次合同2期 LY 20220908 start |
| | | set<id> mcIDSet = new set<id>(); |
| | | for (Maintenance_Contract__c tempMCA : MCList) { |
| | | mcIDSet.add(tempMCA.id); |
| | | } |
| | | //获取非限次合同 |
| | | List<Maintenance_Contract__c> mcPList =[select id , previousTotalRepairAmount__c , currentTotalRepairAmount__c , |
| | | previousTotalContractAmount__c , currentTotalContractAmountVM__c , currentTotalGuaranteePrice__c |
| | | , RecordType_DeveloperName__c |
| | | from Maintenance_Contract__c |
| | | where URF_Contract__c = false and ID in :mcIDSet]; |
| | | //获取限次合同 |
| | | List<Maintenance_Contract__c> urfMCList =[select id , previousTotalRepairAmount__c , currentTotalRepairAmount__c , |
| | | previousTotalContractAmount__c , currentTotalContractAmountVM__c , currentTotalGuaranteePrice__c |
| | | , RecordType_DeveloperName__c |
| | | from Maintenance_Contract__c |
| | | where URF_Contract__c = true and ID in :mcIDSet]; |
| | | |
| | | //URF限次合同2期 LY 20220908 end |
| | | |
| | | map<string, asset> updateAssetMap = new map<string, asset>(); |
| | | map<string, Maintenance_Contract__c> UpdateMCMap = |
| | |
| | | Set<ID> allAssetIDSet = new Set<ID>(); |
| | | List<asset> allAssetList = new List<asset>(); |
| | | // 初始化维修合同消费率相关金额字段为0; |
| | | for (Maintenance_Contract__c tempMC : MCList) { |
| | | for (Maintenance_Contract__c tempMC : mcPList) { |
| | | mcIDmap.put(tempMC.id,null); |
| | | tempMC.currentTotalRepairAmount__c = 0; |
| | | tempMC.previousTotalRepairAmount__c = 0; |
| | |
| | | } |
| | | |
| | | } |
| | | //URF限次合同2期 LY 20220908 start |
| | | Map<string,Maintenance_Contract__c> mcURFIDmap = new Map<string,Maintenance_Contract__c>(); |
| | | for (Maintenance_Contract__c tempURFMC : urfMCList) { |
| | | mcURFIDmap.put(tempURFMC.Id, null); |
| | | } |
| | | //检索本次限次合同的保有设备 |
| | | List<Maintenance_Contract_Asset__c> mcURFList = |
| | | [select Id, Asset__c, Maintenance_Contract__c, |
| | | Estimate_Cost_formula__c, |
| | | startDate_sum__c, |
| | | endDate_sum__c, |
| | | No_discount__c, |
| | | GuaranteePrice_Amount_Text__c, |
| | | Maintenance_Contract__r.Status__c, |
| | | Maintenance_Contract__r.Name, |
| | | Maintenance_Contract__r.Contract_End_Date__c, |
| | | Maintenance_Contract__r.Contract_Start_Date__c, |
| | | Maintenance_Contract__r.RecordType_DeveloperName__c, |
| | | Maintenance_Contract__r.Estimation_Id__r.Submit_quotation_day__c, |
| | | Maintenance_Contract__r.RecordType.DeveloperName |
| | | , ifHaveleftInPrevious__c |
| | | from Maintenance_Contract_Asset__c |
| | | where Maintenance_Contract__c in: mcURFIDmap.keyset() |
| | | ]; |
| | | Set<ID> allURFAssetIDSet = new Set<ID>(); |
| | | Map<string, Maintenance_Contract_Asset__c> assetIDtoURF =new Map<string, Maintenance_Contract_Asset__c>(); |
| | | for (Maintenance_Contract_Asset__c mcaURF : mcURFList) { |
| | | // 找出来检索出来的维修合同保有中的最新的 |
| | | if (assetIDtoURF.containsKey(mcaURF.Asset__c)) { |
| | | Maintenance_Contract_Asset__c tempURF = |
| | | assetIDtoURF.get(mcaURF.Asset__c); |
| | | if (tempURF.endDate_sum__c < mcaURF.endDate_sum__c) { |
| | | assetIDtoURF.put(mcaURF.Asset__c, mcaURF); |
| | | } |
| | | } else { |
| | | assetIDtoURF.put(mcaURF.Asset__c, mcaURF); |
| | | } |
| | | allURFAssetIDSet.add(mcaURF.Asset__c); |
| | | } |
| | | List<asset> allURFAssetList =[select id, URF_Maintenance_Contract__c |
| | | from asset |
| | | where id in: allURFAssetIDSet]; |
| | | for (asset ass : allURFAssetList) { |
| | | Maintenance_Contract_Asset__c tempMCA = |
| | | assetIDtoURF.get(ass.Id); |
| | | ass.URF_Maintenance_Contract__c = tempMCA.Maintenance_Contract__c; |
| | | updateAssetMap.put(ass.id, ass); |
| | | |
| | | } |
| | | //URF限次合同2期 LY 20220908 end |
| | | //检索出历届保有设备 |
| | | list<Maintenance_Contract_Asset__c> allMCAList = |
| | | [select Id, Asset__c, Maintenance_Contract__c, |
| | |
| | | failedCount ++; |
| | | } |
| | | } |
| | | system.debug('11111111111111111111111updateAssetMap'+updateAssetMap.values()); |
| | | updateAsset (updateAssetMap.values()); |
| | | } |
| | | global void finish(Database.BatchableContext BC) { |
| | |
| | | if (TestIDList != null && TestIDList.size() > 0) { |
| | | return Database.getQueryLocator([select id from asset where Id in : TestIDList]); |
| | | }else{ |
| | | return Database.getQueryLocator([select id from asset]); |
| | | // 20221117 ljh DB202211258553 start |
| | | // return Database.getQueryLocator([select id from asset]); |
| | | return Database.getQueryLocator([select id from asset where IsCompetitorProduct = false AND ( AssetMark__c != '耗材' OR Product2.Family != 'ET')]); |
| | | // 20221117 ljh DB202211258553 end |
| | | // return Database.getQueryLocator([select id from asset where Id in : assetList]); |
| | | } |
| | | } |
| | |
| | | global class AssetUseInfoBatch implements Database.Batchable<sObject> { |
| | | |
| | | private Integer dt; |
| | | |
| | | private Integer dt; |
| | | |
| | | global AssetUseInfoBatch() { |
| | | |
| | | } |
| | | // 测试用 |
| | | global AssetUseInfoBatch(Integer intDate) { |
| | | dt = intDate; |
| | | } |
| | | global AssetUseInfoBatch() { |
| | | |
| | | } |
| | | // 测试用 |
| | | global AssetUseInfoBatch(Integer intDate) { |
| | | dt = intDate; |
| | | } |
| | | |
| | | global Database.QueryLocator start(Database.BatchableContext BC) { |
| | | return Database.getQueryLocator([ |
| | | select Id, Use_Info__c from Asset |
| | | ]); |
| | | } |
| | | global Database.QueryLocator start(Database.BatchableContext BC) { |
| | | return Database.getQueryLocator([ |
| | | SELECT Id, Use_Info__c FROM Asset WHERE Category2__c ='本体' OR Product2.Can_Repair__c = '是' |
| | | ]); |
| | | } |
| | | |
| | | global void execute(Database.BatchableContext BC, List<sObject> sList) { |
| | | List<Asset> updateList = new List<Asset>(); |
| | | Integer year = 0; |
| | | if (dt == null) { |
| | | year = Date.today().year(); |
| | | } else { |
| | | year = dt; |
| | | } |
| | | global void execute(Database.BatchableContext BC, List<sObject> sList) { |
| | | Oly_TriggerHandler.bypass('NFM010UpsertStatuAchievements'); |
| | | List<Asset> updateList = new List<Asset>(); |
| | | Integer year = 0; |
| | | if (dt == null) { |
| | | year = Date.today().year(); |
| | | } else { |
| | | year = dt; |
| | | } |
| | | |
| | | for (sObject sobj : sList) { |
| | | Asset ast = (Asset) sobj; |
| | | if (year == 2018) { |
| | | ast.Use_Info_2018__c = ast.Use_Info__c; |
| | | } else if (year == 2019) { |
| | | ast.Use_Info_2019__c = ast.Use_Info__c; |
| | | } else if (year == 2020) { |
| | | ast.Use_Info_2020__c = ast.Use_Info__c; |
| | | } else if (year == 2021) { |
| | | ast.Use_Info_2021__c = ast.Use_Info__c; |
| | | } else if (year == 2022) { |
| | | ast.Use_Info_2022__c = ast.Use_Info__c; |
| | | } else if (year == 2023) { |
| | | ast.Use_Info_2023__c = ast.Use_Info__c; |
| | | } else if (year == 2024) { |
| | | ast.Use_Info_2024__c = ast.Use_Info__c; |
| | | } else if (year == 2025) { |
| | | ast.Use_Info_2025__c = ast.Use_Info__c; |
| | | } else { |
| | | break; |
| | | } |
| | | updateList.add(ast); |
| | | } |
| | | for (sObject sobj : sList) { |
| | | Asset ast = (Asset) sobj; |
| | | if (year == 2018) { |
| | | ast.Use_Info_2018__c = ast.Use_Info__c; |
| | | } else if (year == 2019) { |
| | | ast.Use_Info_2019__c = ast.Use_Info__c; |
| | | } else if (year == 2020) { |
| | | ast.Use_Info_2020__c = ast.Use_Info__c; |
| | | } else if (year == 2021) { |
| | | ast.Use_Info_2021__c = ast.Use_Info__c; |
| | | } else if (year == 2022) { |
| | | ast.Use_Info_2022__c = ast.Use_Info__c; |
| | | } else if (year == 2023) { |
| | | ast.Use_Info_2023__c = ast.Use_Info__c; |
| | | } else if (year == 2024) { |
| | | ast.Use_Info_2024__c = ast.Use_Info__c; |
| | | } else if (year == 2025) { |
| | | ast.Use_Info_2025__c = ast.Use_Info__c; |
| | | } else { |
| | | break; |
| | | } |
| | | updateList.add(ast); |
| | | } |
| | | |
| | | if (updateList.size() > 0) { |
| | | update updateList; |
| | | } |
| | | } |
| | | |
| | | global void finish(Database.BatchableContext BC) { |
| | | |
| | | } |
| | | |
| | | if (updateList.size() > 0) { |
| | | update updateList; |
| | | } |
| | | } |
| | | |
| | | global void finish(Database.BatchableContext BC) { |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | private class AssetUseInfoBatchTest { |
| | | |
| | | private static void init() { |
| | | Oly_TriggerHandler.bypass('NFM010UpsertStatuAchievements'); |
| | | List<RecordType> rectHp = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'HP']; |
| | | if (rectHp.size() == 0) { |
| | | return; |
| | |
| | | ); |
| | | insert opp; |
| | | |
| | | Statu_Achievements__c Sac = new Statu_Achievements__c( |
| | | name = 'zhucan_one', |
| | | Opportunity__c = opp.id, |
| | | DeliveryDate__c = Date.today(), |
| | | FirstApproveDate__c = Date.valueOf('2016-08-10') |
| | | ); |
| | | insert Sac; |
| | | // Statu_Achievements__c Sac = new Statu_Achievements__c( |
| | | // name = 'zhucan_one', |
| | | // Opportunity__c = opp.id, |
| | | // DeliveryDate__c = Date.today(), |
| | | // FirstApproveDate__c = Date.valueOf('2016-08-10') |
| | | // ); |
| | | // insert Sac; |
| | | |
| | | Product2 pro1 = new Product2(Name='name01',IsActive=true,Family='GI',Asset_Model_No__c='n01',Serial_Lot_No__c='S/N tracing',ProductCode_Ext__c='pc01',Manual_Entry__c=false); |
| | | pro1.Extend_new_product_gurantee__c = true; |
| | | pro1.Entend_gurantee_period__c = '两年'; |
| | | pro1.Extend_Gurantee_Start__c = Date.valueOf('2015-01-01'); |
| | | pro1.Extend_Gurantee_End__c = Date.valueOf('2017-01-04'); |
| | | pro1.Category2__c ='本体'; |
| | | insert pro1; |
| | | // 納入機器を作成する |
| | | Asset asset = new Asset(); |
| | |
| | | asset.Hospital__c = hp.Id; |
| | | asset.SerialNumber = 'testserial'; |
| | | asset.Product2Id = pro1.Id; |
| | | asset.Backorder__c = Sac.Id; |
| | | // asset.Backorder__c = Sac.Id; |
| | | asset.InstallDate = Date.valueOf('2017-05-10'); |
| | | asset.Guarantee_period_for_products__c = Date.valueOf('2018-05-10'); |
| | | |
| | | insert asset; |
| | | } |
| | | |
| | |
| | | @isTest |
| | | private class AttachmentTriggerTest { |
| | | @TestSetup |
| | | static void setup(){ |
| | | TestDataUtility.CreatePIPolicyConfigurations(new string[]{'Agency_Contact__c','Contact'}); |
| | | } |
| | | |
| | | |
| | | @isTest |
| | | static void test_method_one() { |
| | |
| | | contact2.LastName = 'test1经销商'; |
| | | insert contact2; |
| | | |
| | | Test.setMock(HttpCalloutMock.class, new HttpMock()); |
| | | |
| | | List<Agency_Contact__c> lra = new List<Agency_Contact__c>(); |
| | | lra.add(new Agency_Contact__c( |
| | | Aws_Data_Id__c = '123456' |
| | | )); |
| | | |
| | | System.Test.startTest(); |
| | | AWSServiceTool2.EncryptPushCore(Json.serialize(lra),'Agency_Contact__c'); |
| | | AWSServiceTool2.EncryptPushFuture(null,null); |
| | | //insert att1; |
| | | Attachment att = new Attachment( |
| | | Name = 'test', |
| | |
| | | } |
| | | @isTest |
| | | static void test_method_6() { |
| | | List<RecordType> rectC = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '病院']; |
| | | if (rectC.size() == 0) { |
| | | return; |
| | | User thisUser = [select Id from User where Id = :UserInfo.getUserId() ]; |
| | | System.runAs ( thisUser ){ |
| | | List<RecordType> rectC = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '病院']; |
| | | if (rectC.size() == 0) { |
| | | return; |
| | | } |
| | | Account act1 = new Account(); |
| | | act1.Name = 'TestAccount01'; |
| | | act1.RecordTypeId = rectC[0].Id; |
| | | |
| | | upsert act1; |
| | | |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '契約']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | Account act2 = new Account(); |
| | | act2.Name = 'TestAccount02'; |
| | | act2.Business_Assistant__c = getUser().id; |
| | | act2.RecordTypeId = rectCo[0].Id; |
| | | act2.ParentId = act1.Id; |
| | | |
| | | upsert act2; |
| | | |
| | | Consumable_order__c co = new Consumable_order__c(); |
| | | co.Name = 'TestCo'; |
| | | co.Order_status__c = '草案中'; |
| | | co.Order_effective_contact__c = act2.id; |
| | | |
| | | insert co; |
| | | System.Test.startTest(); |
| | | |
| | | Attachment att = new Attachment( |
| | | Name = 'test', |
| | | ParentId = co.Id, |
| | | Body = EncodingUtil.base64Decode('test') |
| | | ); |
| | | |
| | | insert att; |
| | | |
| | | delete att; |
| | | |
| | | System.Test.stopTest(); |
| | | } |
| | | Account act1 = new Account(); |
| | | act1.Name = 'TestAccount01'; |
| | | act1.RecordTypeId = rectC[0].Id; |
| | | |
| | | upsert act1; |
| | | |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '契約']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | Account act2 = new Account(); |
| | | act2.Name = 'TestAccount02'; |
| | | act2.Business_Assistant__c = getUser().id; |
| | | act2.RecordTypeId = rectCo[0].Id; |
| | | act2.ParentId = act1.Id; |
| | | |
| | | upsert act2; |
| | | |
| | | Consumable_order__c co = new Consumable_order__c(); |
| | | co.Name = 'TestCo'; |
| | | co.Order_status__c = '草案中'; |
| | | co.Order_effective_contact__c = act2.id; |
| | | |
| | | insert co; |
| | | System.Test.startTest(); |
| | | |
| | | Attachment att = new Attachment( |
| | | Name = 'test', |
| | | ParentId = co.Id, |
| | | Body = EncodingUtil.base64Decode('test') |
| | | ); |
| | | |
| | | insert att; |
| | | |
| | | delete att; |
| | | |
| | | System.Test.stopTest(); |
| | | |
| | | } |
| | | |
| | | @isTest |
| | |
| | | } |
| | | |
| | | // MZY SWAG-BXXBKA 2021-02-19 end |
| | | |
| | | class HttpMock implements HttpCalloutMock{ |
| | | public HTTPResponse respond(HTTPRequest request) { |
| | | // 创建一个假的回应 |
| | | System.debug('------------------------------------------------------'); |
| | | HttpResponse response = new HttpResponse(); |
| | | string body = ''; |
| | | system.debug(request.getEndpoint()); |
| | | if(request.getEndpoint().contains('token')){ |
| | | system.debug('url=token'); |
| | | response.setHeader('Content-Type', 'application/json'); |
| | | body='{ "message": "", "object": "freqfewqfewewfewfew", "status": "", "success": true, "timestamp": 0, "txId": "" }'; |
| | | } else if(request.getEndpoint().contains('insert')){ |
| | | system.debug('url=Insert'); |
| | | response.setHeader('Content-Type', 'application/json'); |
| | | body='{ "message": "", "object": [ { "dataId": "123456", "directShippmentAddress": "", "directShippmentAddressEncrypt": "", "isDelete": 0, "phoneNumber": "", "phoneNumberEncrypt": "", "sfRecordId": "a2R1m0000007BPD" } ], "status": "", "success": true, "timestamp": 0, "txId": "" }'; |
| | | } else if(request.getEndpoint().contains('update')){ |
| | | system.debug('url=update'); |
| | | response.setHeader('Content-Type', 'application/json'); |
| | | body='{ "message": "", "object": [ { "dataId": "123456", "directShippmentAddress": "", "directShippmentAddressEncrypt": "", "isDelete": 0, "phoneNumber": "", "phoneNumberEncrypt": "", "sfRecordId": "a2R1m0000007BPD" } ], "status": "", "success": true, "timestamp": 0, "txId": "" }'; |
| | | } else{ |
| | | |
| | | } |
| | | |
| | | response.setBody(body); |
| | | response.setStatus('OK'); |
| | | response.setStatusCode(200); |
| | | return response; |
| | | // } |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | public with sharing class BatchSelectRepairPageController { |
| | | public List<RetrievalData> RevalInfoList { get; set; } |
| | | public RetrievalData RevalInfo { get; set; } |
| | | public List<RepairData> RAInfoList { get; set; } |
| | | public List<Repair__c> RepairList { get; set; } |
| | | public List<String> repairIdList{ get; set; } |
| | | public List<SelectOption> StatusItems1 { get; private set; } |
| | | public List<SelectOption> StatusItems { get; private set; } |
| | | public List<SelectOption> SiteRepairItems { get; private set; } |
| | | public String pdfURL { get; private set; } |
| | | public Integer RACount { |
| | | get { return RAInfoList == null ? 0 : RAInfoList.size(); } |
| | | } |
| | | |
| | | public BatchSelectRepairPageController() { |
| | | StatusItems = new List<SelectOption>(); |
| | | StatusItems.add(new SelectOption('','--无--')); |
| | | StatusItems.add(new SelectOption('00.申请完毕','00.申请完毕')); |
| | | StatusItems.add(new SelectOption('01.分公司受理完毕','01.分公司受理完毕')); |
| | | StatusItems.add(new SelectOption('02.RC受理完毕','02.RC受理完毕')); |
| | | StatusItems.add(new SelectOption('03.报价检查结束','03.报价检查结束')); |
| | | StatusItems.add(new SelectOption('04.报价跟进中','04.报价跟进中')); |
| | | StatusItems.add(new SelectOption('05.报价同意完备','05.报价同意完备')); |
| | | StatusItems.add(new SelectOption('06.零件齐备','06.零件齐备')); |
| | | StatusItems.add(new SelectOption('07.修理開始','07.修理開始')); |
| | | StatusItems.add(new SelectOption('08.修理预计完成','08.修理预计完成')); |
| | | StatusItems.add(new SelectOption('09.修理完成','09.修理完成')); |
| | | StatusItems.add(new SelectOption('10.最终检查完成','10.最终检查完成')); |
| | | StatusItems.add(new SelectOption('11.RC修理品已返送','11.RC修理品已返送')); |
| | | StatusItems.add(new SelectOption('12.发票已发送','12.发票已发送')); |
| | | StatusItems.add(new SelectOption('13.已返送到用户','13.已返送到用户')); |
| | | StatusItems.add(new SelectOption('14.收到验收单','14.收到验收单')); |
| | | StatusItems.add(new SelectOption('15.验收单签收复核通过','15.验收单签收复核通过')); |
| | | StatusItems.add(new SelectOption('16.部分付款','16.部分付款')); |
| | | StatusItems.add(new SelectOption('16.完毕','16.完毕')); |
| | | StatusItems.add(new SelectOption('17.付款完毕','17.付款完毕')); |
| | | StatusItems.add(new SelectOption('00.取消','00.取消')); |
| | | StatusItems.add(new SelectOption('00.删除','00.删除')); |
| | | StatusItems.add(new SelectOption('00.关闭','00.关闭')); |
| | | |
| | | StatusItems1 = new List<SelectOption>(); |
| | | StatusItems1.add(new SelectOption('','--无--')); |
| | | StatusItems1.add(new SelectOption('0.申请完毕','0.申请完毕')); |
| | | StatusItems1.add(new SelectOption('2.维修报价阶段','2.维修报价阶段')); |
| | | StatusItems1.add(new SelectOption('3.维修阶段','3.维修阶段')); |
| | | StatusItems1.add(new SelectOption('4.修理品返送阶段','4.修理品返送阶段')); |
| | | StatusItems1.add(new SelectOption('5.完毕','5.完毕')); |
| | | StatusItems1.add(new SelectOption('0.删除','0.删除')); |
| | | StatusItems1.add(new SelectOption('0.取消','0.取消')); |
| | | |
| | | SiteRepairItems = new List<SelectOption>(); |
| | | SiteRepairItems.add(new SelectOption('','--无--')); |
| | | SiteRepairItems.add(new SelectOption('RC修理','RC修理')); |
| | | SiteRepairItems.add(new SelectOption('直送SORC修理','直送SORC修理')); |
| | | SiteRepairItems.add(new SelectOption('直送OGZ修理','直送OGZ修理')); |
| | | SiteRepairItems.add(new SelectOption('办事处修理','办事处修理')); |
| | | SiteRepairItems.add(new SelectOption('现场修理','现场修理')); |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | public void init(){ |
| | | RetrievalData reval = new RetrievalData(); |
| | | RevalInfoList = new List<RetrievalData>(); |
| | | RevalInfoList.add(reval); |
| | | RevalInfo = new RetrievalData(); |
| | | } |
| | | |
| | | // public List<SelectOption> getworkLocationSelect() { |
| | | // List<SelectOption> workLocationSelect = new List<SelectOption>(); |
| | | // workLocationSelect.add(new SelectOption('','--无--')); |
| | | // workLocationSelect.add(new SelectOption('北京办事处','北京办事处')); |
| | | // workLocationSelect.add(new SelectOption('天津办事处','天津办事处')); |
| | | // workLocationSelect.add(new SelectOption('河北办事处','河北办事处')); |
| | | // workLocationSelect.add(new SelectOption('济南办事处','济南办事处')); |
| | | // workLocationSelect.add(new SelectOption('青岛办事处','青岛办事处')); |
| | | // workLocationSelect.add(new SelectOption('内蒙办事处','内蒙办事处')); |
| | | // workLocationSelect.add(new SelectOption('黑龙江办事处','黑龙江办事处')); |
| | | // workLocationSelect.add(new SelectOption('吉林办事处','吉林办事处')); |
| | | // workLocationSelect.add(new SelectOption('沈阳办事处','沈阳办事处')); |
| | | // workLocationSelect.add(new SelectOption('大连办事处','大连办事处')); |
| | | // workLocationSelect.add(new SelectOption('陕西办事处','陕西办事处')); |
| | | // workLocationSelect.add(new SelectOption('青海办事处','青海办事处')); |
| | | // workLocationSelect.add(new SelectOption('宁夏办事处','宁夏办事处')); |
| | | // workLocationSelect.add(new SelectOption('甘肃办事处','甘肃办事处')); |
| | | // workLocationSelect.add(new SelectOption('新疆办事处','新疆办事处')); |
| | | // workLocationSelect.add(new SelectOption('山西办事处','山西办事处')); |
| | | // workLocationSelect.add(new SelectOption('河南办事处','河南办事处')); |
| | | // workLocationSelect.add(new SelectOption('上海办事处','上海办事处')); |
| | | // workLocationSelect.add(new SelectOption('江苏办事处','江苏办事处')); |
| | | // workLocationSelect.add(new SelectOption('江西办事处','江西办事处')); |
| | | // workLocationSelect.add(new SelectOption('浙江办事处','浙江办事处')); |
| | | // workLocationSelect.add(new SelectOption('安徽办事处','安徽办事处')); |
| | | // workLocationSelect.add(new SelectOption('福建办事处','福建办事处')); |
| | | // workLocationSelect.add(new SelectOption('广东办事处','广东办事处')); |
| | | // workLocationSelect.add(new SelectOption('深圳办事处','深圳办事处')); |
| | | // workLocationSelect.add(new SelectOption('湖北办事处','湖北办事处')); |
| | | // workLocationSelect.add(new SelectOption('湖南办事处','湖南办事处')); |
| | | // workLocationSelect.add(new SelectOption('云南办事处','云南办事处')); |
| | | // workLocationSelect.add(new SelectOption('贵州办事处','贵州办事处')); |
| | | // workLocationSelect.add(new SelectOption('四川办事处','四川办事处')); |
| | | // workLocationSelect.add(new SelectOption('重庆办事处','重庆办事处')); |
| | | // workLocationSelect.add(new SelectOption('杭州办事处','杭州办事处')); |
| | | // workLocationSelect.add(new SelectOption('杭州共通办事处','杭州共通办事处')); |
| | | // workLocationSelect.add(new SelectOption('西安办事处','西安办事处')); |
| | | // workLocationSelect.add(new SelectOption('西安共通办事处','西安共通办事处')); |
| | | // workLocationSelect.add(new SelectOption('共通办事处','共通办事处')); |
| | | // workLocationSelect.add(new SelectOption('成都办事处','成都办事处')); |
| | | // workLocationSelect.add(new SelectOption('成都共通办事处','成都共通办事处')); |
| | | // workLocationSelect.add(new SelectOption('广州办事处','广州办事处')); |
| | | // return workLocationSelect; |
| | | // } |
| | | |
| | | public PageReference RetrievalBtn() { |
| | | RepairList = new List<Repair__c>(); |
| | | RAInfoList = new List<RepairData>(); |
| | | String sql; |
| | | System.debug('RevalInfoList1:' + RevalInfoList); |
| | | for(RetrievalData reval : RevalInfoList){ |
| | | if(String.isBlank(reval.Status2) && String.isBlank(reval.RepairName) && String.isBlank(reval.SAPRepairNo) |
| | | && String.isBlank(reval.SerialNumber) && String.isBlank(reval.repair.Incharge_Staff__c) |
| | | && String.isBlank(String.valueOf(reval.repair.Final_complete_day__c))){ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '请至少添加一个检索条件!')); |
| | | return null; |
| | | } |
| | | sql += 'select Id, Name, SAP_Service_Repair_No__c, Status1__c, Status2__c, Delivered_Product__c, SerialNumber__c, '; |
| | | sql += 'HP_Name__c, State_Hospital__c, Incharge_Staff__c, FSE_ApplyForRepair_Day__c, work_location_select__c, On_site_repair__c,'; |
| | | sql += 'Number_of_EffectiveContract__c, NewProductGuaranteeObject__c from Repair__c where Id != null '; |
| | | if(String.isNotBlank(reval.Status2)){ |
| | | sql += ' and Status2__c like \'%' + reval.Status2 + '%\' '; |
| | | } |
| | | if(String.isNotBlank(reval.RepairName)){ |
| | | sql += ' and Name like \'%' + reval.RepairName + '%\' '; |
| | | } |
| | | if(String.isNotBlank(reval.SAPRepairNo)){ |
| | | sql += ' and SAP_Service_Repair_No__c like \'%' + reval.SAPRepairNo + '%\' '; |
| | | } |
| | | if(String.isNotBlank(reval.SerialNumber)){ |
| | | sql += ' and SerialNumber__c like \'%' + reval.SerialNumber + '%\' '; |
| | | } |
| | | if(String.isNotBlank(reval.repair.Incharge_Staff__c)){ |
| | | sql += ' and Incharge_Staff__c = \'' + reval.repair.Incharge_Staff__c + '\' '; |
| | | } |
| | | if(String.isNotBlank(String.valueof(reval.repair.Final_complete_day__c))){ |
| | | String day = String.valueof(reval.repair.Final_complete_day__c); |
| | | day = day.substring(0,10); |
| | | sql += ' and FSE_ApplyForRepair_Day__c = ' + day; |
| | | } |
| | | sql += ' limit 200'; |
| | | sql = sql.substring(4); |
| | | if(String.isBlank(RevalInfo.Status1) && String.isBlank(RevalInfo.Status2) && String.isBlank(RevalInfo.RepairName) && String.isBlank(RevalInfo.SAPRepairNo) |
| | | && String.isBlank(RevalInfo.SerialNumber) && String.isBlank(RevalInfo.repair.Incharge_Staff__c) && String.isBlank(RevalInfo.onSiteRepair) |
| | | && String.isBlank(String.valueOf(RevalInfo.repair.Aware_date__c)) && String.isBlank(String.valueOf(RevalInfo.repair.Aware_date2__c)) && String.isBlank(RevalInfo.workLocationSelect) |
| | | && String.isBlank(RevalInfo.State_Hospital)){ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '请至少添加一个检索条件!')); |
| | | return null; |
| | | } |
| | | String sql = 'select Id, Name, SAP_Service_Repair_No__c, Status1__c, Status2__c, Delivered_Product__c, SerialNumber__c, '; |
| | | sql += 'HP_Name__c, State_Hospital__c, Incharge_Staff__c, FSE_ApplyForRepair_Day__c, work_location_select__c, On_site_repair__c,'; |
| | | sql += 'Number_of_EffectiveContract__c, NewProductGuaranteeObject__c from Repair__c where Id != null '; |
| | | if(String.isNotBlank(RevalInfo.Status2)){ |
| | | sql += ' and Status2__c = \'' + RevalInfo.Status2 + '\''; |
| | | } |
| | | if(String.isNotBlank(RevalInfo.Status1)){ |
| | | sql += ' and Status1__c = \'' + RevalInfo.Status1 + '\''; |
| | | } |
| | | if(String.isNotBlank(RevalInfo.HospitalName)){ |
| | | |
| | | sql += ' and HP_Name__c like \'%' + RevalInfo.HospitalName.trim() + '%\''; |
| | | } |
| | | if(String.isNotBlank(RevalInfo.RepairName)){ |
| | | System.debug(LoggingLevel.INFO, '***RevalInfo.RepairName.contains(): ' + RevalInfo.RepairName.contains(' ')); |
| | | String splitStr = null; |
| | | if(RevalInfo.RepairName.contains(' ')){ |
| | | splitStr = ' '; |
| | | }else if(RevalInfo.RepairName.contains(',')){ |
| | | splitStr = ','; |
| | | } |
| | | if(splitStr != null && RevalInfo.RepairName.contains(splitStr)){ |
| | | sql += ' and ('; |
| | | list <String> nameList = RevalInfo.RepairName.split(splitStr); |
| | | for(String name: nameList){ |
| | | sql += 'Name like \'%' + name + '%\' or '; |
| | | } |
| | | sql = sql.removeEnd('or '); |
| | | sql += ')'; |
| | | }else{ |
| | | sql += ' and Name like \'%' + RevalInfo.RepairName.trim() + '%\''; |
| | | } |
| | | System.debug(LoggingLevel.INFO, '*** sql: ' + sql); |
| | | } |
| | | if(String.isNotBlank(RevalInfo.SAPRepairNo)){ |
| | | System.debug(LoggingLevel.INFO, '***RevalInfo.SAPRepairNo.contains(): ' + RevalInfo.SAPRepairNo.contains(' ')); |
| | | String splitStr = null; |
| | | if(RevalInfo.SAPRepairNo.contains(' ')){ |
| | | splitStr = ' '; |
| | | }else if(RevalInfo.SAPRepairNo.contains(',')){ |
| | | splitStr = ','; |
| | | } |
| | | if(splitStr != null && RevalInfo.SAPRepairNo.contains(splitStr)){ |
| | | sql += ' and ('; |
| | | |
| | | list <String> noList = RevalInfo.SAPRepairNo.split(splitStr); |
| | | for(String no: noList){ |
| | | sql += 'SAP_Service_Repair_No__c like \'%' + no + '%\' or '; |
| | | } |
| | | sql = sql.removeEnd('or '); |
| | | sql += ')'; |
| | | }else{ |
| | | sql += ' and SAP_Service_Repair_No__c like \'%' + RevalInfo.SAPRepairNo.trim() + '%\''; |
| | | } |
| | | System.debug(LoggingLevel.INFO, '*** sql: ' + sql); |
| | | } |
| | | if(String.isNotBlank(RevalInfo.SerialNumber)){ |
| | | List<String> SerialNumberList = new List<String>(); |
| | | if(RevalInfo.SerialNumber.indexOf(',') != -1){ |
| | | SerialNumberList = RevalInfo.SerialNumber.split(','); |
| | | } |
| | | System.debug('SerialNumberList1:' + SerialNumberList); |
| | | // 支持模糊查询多个,文本框输入用英文半角逗号分隔 |
| | | if(SerialNumberList.size() > 0){ |
| | | sql += ' and (SerialNumber__c like \'%'; |
| | | Integer i = 0; |
| | | for(String SerialNumber : SerialNumberList){ |
| | | if(i == 0){ |
| | | sql += SerialNumber.trim() + '%\''; |
| | | }else{ |
| | | sql += 'or SerialNumber__c like \'%' + SerialNumber.trim() + '%\''; |
| | | } |
| | | i++; |
| | | } |
| | | sql += ')'; |
| | | } else{ |
| | | sql += ' and SerialNumber__c like \'%' + RevalInfo.SerialNumber.trim() + '%\''; |
| | | } |
| | | } |
| | | if(String.isNotBlank(RevalInfo.repair.Incharge_Staff__c)){ |
| | | sql += ' and Incharge_Staff__c = \'' + RevalInfo.repair.Incharge_Staff__c + '\''; |
| | | } |
| | | if(String.isNotBlank(String.valueof(RevalInfo.repair.Aware_date__c))&&String.isNotBlank(String.valueof(RevalInfo.repair.Aware_date2__c))){ |
| | | String day = String.valueof(RevalInfo.repair.Aware_date__c); |
| | | String day2 = String.valueof(RevalInfo.repair.Aware_date2__c); |
| | | day = day.substring(0,10); |
| | | day2 = day2.substring(0,10); |
| | | sql += ' and FSE_ApplyForRepair_Day__c >= ' + day + 'and FSE_ApplyForRepair_Day__c <=' +day2; |
| | | } |
| | | if(String.isNotBlank(RevalInfo.onSiteRepair)){ |
| | | sql += ' and On_site_repair__c = \'' + RevalInfo.onSiteRepair + '\''; |
| | | } |
| | | if(String.isNotBlank(RevalInfo.workLocationSelect)){ |
| | | List<String> workLocationSelectList = new List<String>(); |
| | | if(RevalInfo.workLocationSelect.indexOf(',') != -1){ |
| | | workLocationSelectList = RevalInfo.workLocationSelect.split(','); |
| | | } |
| | | System.debug('workLocationSelectList1:' + workLocationSelectList); |
| | | if(workLocationSelectList.size() > 0){ |
| | | sql += ' and (work_location_select__c like \'%'; |
| | | Integer i = 0; |
| | | for(String workLocationSelect : workLocationSelectList){ |
| | | if(i == 0){ |
| | | sql += workLocationSelect.trim() + '%\''; |
| | | }else{ |
| | | sql += 'or work_location_select__c like \'%' + workLocationSelect.trim() + '%\''; |
| | | } |
| | | i++; |
| | | } |
| | | sql += ')'; |
| | | } else{ |
| | | sql += ' and work_location_select__c like \'%' + RevalInfo.workLocationSelect.trim() + '%\''; |
| | | } |
| | | } |
| | | if(String.isNotBlank(RevalInfo.State_Hospital)){ |
| | | sql += ' and State_Hospital__c like \'%' + RevalInfo.State_Hospital.trim() + '%\''; |
| | | } |
| | | sql += 'and Status1__c not in(\'0.删除\',\'0.取消\') limit 200'; |
| | | System.debug('sql1:' + sql); |
| | | if(String.isNotBlank(sql)){ |
| | | RepairList = Database.query(sql); |
| | | } |
| | | if(RepairList.size() >= 200 ){ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '检索数据太多,请缩小检索范围')); |
| | | return null; |
| | | if(RepairList.size() == 200){ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '检索数据太多,请缩小检索范围!')); |
| | | } |
| | | if(RepairList.size() <= 0 ){ |
| | | if(RepairList.size() <= 0){ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '没检索到任何修理')); |
| | | return null; |
| | | } |
| | |
| | | } |
| | | |
| | | public PageReference showPDF() { |
| | | System.debug(LoggingLevel.INFO, '*** joinshoPDF: '); |
| | | repairIdList = new List<String>(); |
| | | RepairList = new List<Repair__c>(); |
| | | String url = '='; |
| | | if(RAInfoList == null){ |
| | | System.debug('RAInfoList:' + RAInfoList); |
| | | if(RAInfoList == null || RAInfoList.isEmpty()){ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '请先检索修理')); |
| | | return null; |
| | | } |
| | | for(RepairData rd : RAInfoList) { |
| | | System.debug(LoggingLevel.INFO, '*** rd: ' + rd); |
| | | if(rd.IFCheck){ |
| | | repairIdList.add(rd.repair.Id); |
| | | RepairList.add(rd.repair); |
| | | } |
| | | } |
| | | System.debug(LoggingLevel.INFO, '***repairIdList : ' + repairIdList); |
| | | System.debug(LoggingLevel.INFO, '***RepairList : ' + RepairList); |
| | | if(repairIdList.size() > 0){ |
| | | if(repairIdList.size() <= 50){ |
| | | if(RepairList.size() > 0){ |
| | | System.debug(LoggingLevel.INFO, '*** if size>0 generateAttachment: '); |
| | | generateAttachment(RepairList); |
| | | } |
| | | for(String Id : repairIdList){ |
| | | url += Id + '='; |
| | | } |
| | | url = url.substring(0, url.lastIndexOf('=')); |
| | | PageReference pageRef = new PageReference('/apex/MaintenanceCommissionPDF?id' + url); |
| | | pageRef.setRedirect(true); |
| | | return pageRef; |
| | | // PageReference pageRef = new PageReference('/apex/MaintenanceCommissionPDF?id' + url); |
| | | // pageRef.setRedirect(true); |
| | | // return pageRef; |
| | | if(isSandbox()){ |
| | | pdfURL = 'https://ocsm--stagefull--c.visualforce.com/apex/MaintenanceCommissionPDF?id' + url; |
| | | } else{ |
| | | pdfURL = 'https://ocsm.my.salesforce.com/apex/MaintenanceCommissionPDF?id' + url; |
| | | } |
| | | return null; |
| | | } else{ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '多单打印最大数量为50,请选择少于50个修理!')); |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '多单打印最大数量为50,请选择少于50个修理!')); |
| | | return null; |
| | | } |
| | | } else{ |
| | |
| | | |
| | | // 生成pdf添加到对应的修理中 |
| | | public static PageReference generateAttachment(List<Repair__c> repList){ |
| | | PageReference pdfPage; |
| | | List<Attachment> attachments = new List<Attachment>(); |
| | | for(Repair__c re : repList){ |
| | | pdfPage = new PageReference('/apex/MaintenanceCommissionPDF?id=' + re.Id); |
| | | Blob pdfBody; |
| | | if(Test.isRunningTest()) { |
| | | pdfBody = blob.valueOf('Unit.Test'); |
| | | } else { |
| | | pdfBody = pdfPage.getContentAsPDF(); |
| | | } |
| | | Attachment attach = new Attachment(); |
| | | attach.Body = pdfBody; |
| | | attach.Name = re.name + '_' + 'MaintenanceCommission.pdf'; |
| | | attach.ParentId = re.id; |
| | | attachments.add(attach); |
| | | } |
| | | insert attachments; |
| | | System.debug(LoggingLevel.INFO, '*** generateAttachment: '); |
| | | // PageReference pdfPage; |
| | | // List<Attachment> attachments = new List<Attachment>(); |
| | | // List<String> attachmentNameList = new List<String>(); |
| | | // List<Attachment> isGeneratedPDFList = new List<Attachment>(); |
| | | // //删除已存在的附件,生成新的附件 |
| | | // for(Repair__c re : repList){ |
| | | // attachmentNameList.add(re.name + '_' + 'MaintenanceCommission.pdf'); |
| | | // } |
| | | // isGeneratedPDFList = [select id from Attachment where name IN:attachmentNameList]; |
| | | // System.debug(LoggingLevel.INFO, '*** isGeneratedPDFList: ' + isGeneratedPDFList); |
| | | // if(isGeneratedPDFList.size() > 0){ |
| | | // delete isGeneratedPDFList; |
| | | // } |
| | | BatchSelectRepairPDFDelete pdf = new BatchSelectRepairPDFDelete(); |
| | | pdf.deletePDF(repList); |
| | | pdf.createPDF(repList); |
| | | |
| | | // for(Repair__c re : repList){ |
| | | // pdfPage = new PageReference('/apex/MaintenanceCommissionPDF?id=' + re.Id); |
| | | // Blob pdfBody; |
| | | // if(Test.isRunningTest()) { |
| | | // pdfBody = blob.valueOf('Unit.Test'); |
| | | // } else { |
| | | // pdfBody = pdfPage.getContentAsPDF(); |
| | | // } |
| | | // Attachment attach = new Attachment(); |
| | | // attach.Body = pdfBody; |
| | | // attach.Name = re.name + '_' + 'MaintenanceCommission.pdf'; |
| | | // attach.ParentId = re.id; |
| | | // attachments.add(attach); |
| | | // } |
| | | // System.debug(LoggingLevel.INFO, '*** attachments: ' + attachments); |
| | | // insert attachments; |
| | | return null; |
| | | } |
| | | |
| | | // 判断是否是测试环境 |
| | | public Boolean isSandbox() { |
| | | return [SELECT IsSandbox FROM Organization LIMIT 1].IsSandbox; |
| | | } |
| | | |
| | | public class RetrievalData { |
| | | public String Status1{ get; set; } |
| | | public String Status2{ get; set; } |
| | | public String RepairName{ get; set; } |
| | | public String SAPRepairNo{ get; set; } |
| | | public String SerialNumber{ get; set; } |
| | | // public String FSE_ApplyForRepair_Day{ get; set; } |
| | | // public String InchargeStaffName{ get; set; } |
| | | public String onSiteRepair{ get; set; } |
| | | public String workLocationSelect{ get; set; } |
| | | public String State_Hospital{ get; set; } |
| | | public String HospitalName{ get; set; } |
| | | public Repair__c repair{ get; set; } |
| | | public RetrievalData(){ |
| | | repair = new Repair__c(); |
| | |
| | | @isTest |
| | | private class BatchSelectRepairPageControllerTest { |
| | | static Repair__c repair01; |
| | | // static Repair__c repair02 |
| | | @TestSetup |
| | | public static void init(){ |
| | | |
| | | Profile p = [select Id from Profile where id =:System.Label.ProfileId_SystemAdmin]; |
| | | User hpOwner = new User(Test_staff__c = true, LastName = 'hp', FirstName = 'owner', Alias = 'hp', CommunityNickname = 'hpOwner', Email = 'olympus_hpowner@sunbridge.com', Username = 'olympus_hpowner@sunbridge.com', IsActive = true, EmailEncodingKey = 'ISO-2022-JP', TimeZoneSidKey = 'Asia/Tokyo', LocaleSidKey = 'ja_JP', LanguageLocaleKey = 'ja', ProfileId = p.id); |
| | | insert hpOwner; |
| | |
| | | asset.SerialNumber = 'testserial'; |
| | | insert asset; |
| | | |
| | | repair01 = new Repair__c(); |
| | | Repair__c repair01 = new Repair__c(); |
| | | repair01.Account__c = dpt.Id; |
| | | repair01.Department_Class__c = dc.Id; |
| | | repair01.Hospital__c = hp.Id; |
| | | repair01.Delivered_Product__c = asset.Id; |
| | | repair01.SERVICE_CONTRACT_JUDEGE_DAY__C = Date.today().addDays(0); |
| | | repair01.FSE_Work_Location__c = '上海'; |
| | | repair01.Service_Repair_No__c = 'SAP0001'; |
| | | repair01.Incharge_Staff__c = hpOwner.Id; |
| | | repair01.On_site_repair__c = 'RC修理'; |
| | | repair01.work_location_select__c = '北京办事处'; |
| | | // repair01.Final_complete_day__c = Date.today().addDays(-1); |
| | | insert repair01; |
| | | } |
| | | static testMethod void testSample_01() { |
| | | init(); |
| | | PageReference page = new PageReference('/apex/BatchSelectRepairPage'); |
| | | System.Test.setCurrentPage(page); |
| | | System.Test.StartTest(); |
| | | BatchSelectRepairPageController br = new BatchSelectRepairPageController(); |
| | | br.init(); |
| | | |
| | | br.RevalInfoList[0].repair = repair01; |
| | | br.RevalInfoList[0].Status2 = '01.分公司受理完毕'; |
| | | br.RevalInfoList[0].RepairName = 'RS-202203-651844'; |
| | | br.RevalInfoList[0].SerialNumber = 'testserial'; |
| | | // br.RevalInfoList[0].SAPRepairNo = '000010201157'; |
| | | Repair__c repair01 = [SELECT Id,Status2__c,Name,Incharge_Staff__c,SAP_Service_Repair_No__c,Aware_date2__c,State_Hospital__c,SerialNumber__c,work_location_select__c,FSE_ApplyForRepair_Day__c,On_site_repair__c,Aware_date__c FROM Repair__c LIMIT 1]; |
| | | br.RevalInfo.repair = repair01; |
| | | br.RevalInfo.Status2 = repair01.Status2__c; |
| | | br.RevalInfo.RepairName = repair01.Name + ','; |
| | | br.RevalInfo.SerialNumber = repair01.SerialNumber__c + ',' + repair01.SerialNumber__c; |
| | | br.RevalInfo.SAPRepairNo = repair01.SAP_Service_Repair_No__c + ','; |
| | | // br.RevalInfo.repair.Aware_date__c = repair01.FSE_ApplyForRepair_Day__c.addDays(-1); |
| | | // br.RevalInfo.repair.Aware_date2__c = repair01.FSE_ApplyForRepair_Day__c.addDays(1); |
| | | br.RevalInfo.onSiteRepair = repair01.On_site_repair__c; |
| | | br.RevalInfo.workLocationSelect = repair01.work_location_select__c; |
| | | br.RevalInfo.State_Hospital = repair01.State_Hospital__c; |
| | | br.RetrievalBtn(); |
| | | |
| | | BatchSelectRepairPageController.RepairData reparedata = new BatchSelectRepairPageController.RepairData(repair01); |
| | | reparedata.IFCheck = true; |
| | | br.RAInfoList.add(reparedata); |
| | | br.RAInfoList[0].IFCheck = true; |
| | | br.showPDF(); |
| | | system.assertEquals(br.RAInfoList[0].IFCheck,true); |
| | | br.showPDF(); |
| | | List<Repair__c> repList = new List<Repair__c>(); |
| | | repList.add(repair01); |
| | | BatchSelectRepairPageController.generateAttachment(repList); |
| | | System.Test.StopTest(); |
| | | |
| | | } |
| | | static testMethod void testSample_02() { |
| | | init(); |
| | | PageReference page = new PageReference('/apex/BatchSelectRepairPage'); |
| | | System.Test.setCurrentPage(page); |
| | | System.Test.StartTest(); |
| | | BatchSelectRepairPageController br = new BatchSelectRepairPageController(); |
| | | br.init(); |
| | | br.RetrievalBtn(); |
| | | System.Test.StopTest(); |
| | | } |
| | | static testMethod void testSample_03() { |
| | | init(); |
| | | PageReference page = new PageReference('/apex/BatchSelectRepairPage'); |
| | | System.Test.setCurrentPage(page); |
| | | System.Test.StartTest(); |
| | | BatchSelectRepairPageController br = new BatchSelectRepairPageController(); |
| | | br.init(); |
| | | br.RevalInfoList[0].Status2 = '012312'; |
| | | br.RetrievalBtn(); |
| | | System.Test.StopTest(); |
| | | } |
| | | static testMethod void testSample_04() { |
| | | init(); |
| | | PageReference page = new PageReference('/apex/BatchSelectRepairPage'); |
| | | System.Test.setCurrentPage(page); |
| | | System.Test.StartTest(); |
| | | BatchSelectRepairPageController br = new BatchSelectRepairPageController(); |
| | | br.init(); |
| | | br.showPDF(); |
| | | System.Test.StopTest(); |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | global Database.QueryLocator start(Database.BatchableContext bc) { |
| | | system.debug('zheli'+query); |
| | | return Database.getQueryLocator(query); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | global void execute(Database.BatchableContext BC, List<sObject> scope) { |
| | | // SWAG-CE55BX 预测优化 start |
| | | StaticParameter.EscapeOppandStaTrigger = true; |
| | | // SWAG-CE55BX 预测优化 end |
| | | List<Opportunity> oppUpdateList = new List<Opportunity>(); |
| | | List<Opportunity> updateList = [select id,Inquiry_forcast_date_formular__c,Inquiry_forcast_date_copy__c |
| | | ,OCM_man_province_cus__c,OCM_man_province_cus_txt__c |
| | |
| | | String todayStr = Datetime.now().format('yyyy/MM/dd'); |
| | | // if (todayStr == '2021/10/07') { |
| | | if (todayStr.endsWith('01')) { |
| | | Id execBTId = Database.executeBatch(new BeforeSSOpportunityBatch(), 100); |
| | | // 20220318 ljh SWAG-CC54R2 update start |
| | | // Id execBTId = Database.executeBatch(new BeforeSSOpportunityBatch(), 100); |
| | | Id execBTId = Database.executeBatch(new LogAutoSendBatch('NFM010',true), 1); |
| | | // 20220318 ljh SWAG-CC54R2 update end |
| | | } |
| | | //每月1号运行 SWAG-C7ZC4L rentx end |
| | | |
| | |
| | | @isTest |
| | | private class BeforeUpsertReportHandlerTest { |
| | | @TestSetup |
| | | static void makeData(){ |
| | | TestDataUtility.CreatePIPolicyConfiguration('Rental_Apply__c'); |
| | | } |
| | | static testMethod void testMethod1() { |
| | | RecordType rectOpp = [select id from RecordType where IsActive = true and SobjectType = 'Opportunity' and DeveloperName = 'Opportunity' ]; |
| | | |
| | |
| | | oPDPlan0.NoOpp_Reason__c = 'HCP对应'; |
| | | oPDPlan0.Related_Opportunity1_ID__c =opp1.id; |
| | | oPDPlan0.Account_Laboratory__c =dep.Id; |
| | | oPDPlan0.OPDType__c = '事件'; |
| | | insert oPDPlan0; |
| | | |
| | | |
| | |
| | | oPDPlan0.Status__c = '草案中'; |
| | | oPDPlan0.OPDPlan_ImplementDate__c = Date.today().addDays(1); |
| | | oPDPlan0.NoOpp_Reason__c = 'HCP对应'; |
| | | oPDPlan0.OPDType__c = '事件'; |
| | | insert oPDPlan0; |
| | | |
| | | // 产品 |
| | |
| | | public String numtextD2 { get; set; } //数据字段02 |
| | | public String numtextD { get; set; }//数据字段03 |
| | | public String limits { get; set; }//日期03 |
| | | |
| | | public String AwsDataIds { get; set; }//PI 改造 |
| | | public String[] AwsDataIdArr{ |
| | | get{ |
| | | if(String.isBlank(AwsDataIds)){ |
| | | return new string[]{}; |
| | | } |
| | | return AwsDataIds.split(';'); |
| | | } |
| | | } |
| | | |
| | | //public List<SelectOption> dateOpts { get; private set; } |
| | | public List<SelectOption> textOpts { get; private set; } |
| | | public List<SelectOption> textOpts01 { get; private set; } |
| | |
| | | private String strRtColumus; |
| | | @TestVisible private String accTypeForSort = null; |
| | | private static Integer oppLimit = 500; |
| | | |
| | | // 20220222 PI改造 by Bright--start |
| | | public List<SelectOption> equalOpts2 { get; private set; } |
| | | public string staticResource { get; private set; } |
| | | // 20220222 PI改造 by Bright--end |
| | | |
| | | |
| | | |
| | | public BmeWorkController() { |
| | | oppRecords = new List<ConMeetInfo>(); |
| | | //数据字段下拉列表 |
| | | textOpts = new List<SelectOption>(); |
| | | textOpts.add(new SelectOption('Account.Name', '医院科室')); |
| | | textOpts.add(new SelectOption('CampaignName__c', '学会培训名称')); |
| | | textOpts.add(new SelectOption('MedicalStaff_Full_name__c', '拜访人姓名')); |
| | | // textOpts.add(new SelectOption('MedicalStaff_Full_name__c', '拜访人姓名')); |
| | | textOpts.add(new SelectOption('CampaignOwnerName__c', '学会培训主担当')); |
| | | textOpts.add(new SelectOption('', '--无--')); |
| | | |
| | | textOpts01 = new List<SelectOption>(); |
| | | textOpts01.add(new SelectOption('CampaignName__c', '学会培训名称')); |
| | | textOpts01.add(new SelectOption('MedicalStaff_Full_name__c', '拜访人姓名')); |
| | | // textOpts01.add(new SelectOption('MedicalStaff_Full_name__c', '拜访人姓名')); |
| | | textOpts01.add(new SelectOption('CampaignOwnerName__c', '学会培训主担当')); |
| | | textOpts01.add(new SelectOption('Account.Name', '医院科室')); |
| | | textOpts01.add(new SelectOption('', '--无--')); |
| | | |
| | | textOpts02 = new List<SelectOption>(); |
| | | textOpts02.add(new SelectOption('MedicalStaff_Full_name__c', '拜访人姓名')); |
| | | textOpts02.add(new SelectOption('Account.Name', '医院科室')); |
| | | textOpts02.add(new SelectOption('CampaignName__c', '学会培训名称')); |
| | | textOpts02.add(new SelectOption('CampaignOwnerName__c', '学会培训主担当')); |
| | | // textOpts02.add(new SelectOption('Account.Name', '医院科室')); |
| | | // textOpts02.add(new SelectOption('CampaignName__c', '学会培训名称')); |
| | | // textOpts02.add(new SelectOption('CampaignOwnerName__c', '学会培训主担当')); |
| | | textOpts02.add(new SelectOption('', '--无--')); |
| | | |
| | | textOpts03 = new List<SelectOption>(); |
| | | textOpts03.add(new SelectOption('CampaignOwnerName__c', '学会培训主担当')); |
| | | textOpts03.add(new SelectOption('MedicalStaff_Full_name__c', '拜访人姓名')); |
| | | // textOpts03.add(new SelectOption('MedicalStaff_Full_name__c', '拜访人姓名')); |
| | | textOpts03.add(new SelectOption('Account.Name', '医院科室')); |
| | | textOpts03.add(new SelectOption('CampaignName__c', '学会培训名称')); |
| | | textOpts03.add(new SelectOption('', '--无--')); |
| | |
| | | equalOpts.add(new SelectOption('contains', '包含')); |
| | | equalOpts.add(new SelectOption('notcontains', '不包含')); |
| | | equalOpts.add(new SelectOption('starts with', '起始字符')); |
| | | |
| | | equalOpts2 = new List<SelectOption>(); |
| | | equalOpts2.add(new SelectOption('contains', '包含')); |
| | | |
| | | //首要显示包含 |
| | | firstOpts = new List<SelectOption>(); |
| | | firstOpts.add(new SelectOption('contains', '包含')); |
| | |
| | | limitOpts.add(new SelectOption('1000', '全部')); |
| | | //数据显示默认条数 |
| | | limits = '50'; |
| | | staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Contact')); |
| | | } |
| | | //--------------------------------------init()-------------------------------------------------------------------------------- |
| | | public PageReference init() { |
| | | setLayoutRWInfo(); |
| | | searchOppInner(); |
| | | //searchOppInner(); |
| | | system.debug(oppRecords); |
| | | return null; |
| | | } |
| | |
| | | //----------------------------------SOQL(拼接)--------------------------------------------- |
| | | public void searchOppInner() { |
| | | //try { |
| | | //SOQL:拼接检索条件以及经销商询价的SOQL语句 |
| | | String soql = ' SELECT Campaign__c, CampaignOwnerID__c, Campaign__r.Ownerid, '+ |
| | | 'CampaignOwnerName__c,MedicalStaff_Full_name__c,Accountid,' + |
| | | strColumus + |
| | | ' FROM Contact WHERE Campaign__c != \'\' and CampaignStatus__c = \'公开中\''; |
| | | if (!String.isBlank(numtextA)) { |
| | | String newNumtext = numtextA.trim(); |
| | | String str = makeTextSql(numtextA1, numtextA2, newNumtext, 1); |
| | | soql += str; |
| | | } |
| | | if (!String.isBlank(numtextB)) { |
| | | String newNumtext = numtextB.trim(); |
| | | String str = makeTextSql(numtextB1, numtextB2, newNumtext, 1); |
| | | soql += str; |
| | | } |
| | | if (!String.isBlank(numtextC)) { |
| | | String newNumtext = numtextC.trim(); |
| | | String str = makeTextSql(numtextC1, numtextC2, newNumtext, 1); |
| | | soql += str; |
| | | } |
| | | if (!String.isBlank(numtextD)) { |
| | | String newNumtext = numtextD.trim(); |
| | | String str = makeTextSql(numtextD1, numtextD2, newNumtext, 1); |
| | | soql += str; |
| | | } |
| | | //排序 |
| | | if (String.isBlank(this.sortKey)) { |
| | | soql += ' order by LastModifiedDate desc limit ' + Integer.valueOf(limits); |
| | | } else { |
| | | if (Integer.valueOf(this.sortKey) != null) { |
| | | soql += ' order by ' + this.selColumus[Integer.valueOf(this.sortKey)] + ' ' + (this.sortOrderAsc == true ? 'asc nulls first' : 'desc nulls last') + ' limit ' + Integer.valueOf(limits); |
| | | } else { |
| | | soql += ' order by ' + this.selColumus[Integer.valueOf(this.sortKey)] + ' ' + (this.sortOrderAsc == true ? 'asc nulls first' : 'desc nulls last') + ' limit ' + Integer.valueOf(limits); |
| | | } |
| | | } |
| | | system.debug('联系人:' + soql); |
| | | List<Contact> InfoList = Database.query(soql); |
| | | List<ConMeetInfo> conmeetList = new List<ConMeetInfo>(); |
| | | if (InfoList != null && InfoList.size() > 0) { |
| | | String str = ''; |
| | | for (Contact agc : InfoList) { |
| | | |
| | | if (str == '' && agc.Id != null) { |
| | | str = '\'' + agc.Id + '\''; |
| | | } else if (agc.Id != null) { |
| | | str += ',\'' + agc.Id + '\''; |
| | | } |
| | | } |
| | | System.debug('-----Str-----:' + str ); |
| | | //SOQL1:拼接询价SOQL语句; |
| | | Date dateToday = Date.toDay(); |
| | | Integer year = dateToday.year(); |
| | | Integer month = dateToday.month(); |
| | | Integer day = dateToday.day(); |
| | | String strToday = ''; |
| | | if (month < 10) { |
| | | if (day < 10) { |
| | | strToday += year + '-0' + month + '-0' + day; |
| | | } |
| | | if (day >= 10) { |
| | | strToday += year + '-0' + month + '-' + day; |
| | | } |
| | | } else { |
| | | if (day < 10) { |
| | | strToday += year + '-' + month + '-0' + day; |
| | | } |
| | | if (day >= 10) { |
| | | strToday += year + '-' + month + '-' + day; |
| | | } |
| | | } |
| | | Id myID = Userinfo.getUserId(); |
| | | String soql1 = 'SELECT ' + strRtColumus + ' , Contact__c FROM MeetingManagement__c WHERE CreatedById =: myID and Contact__c IN (' + str + ') AND CreatedDate__c = ' + strToday ; |
| | | System.debug('-----服务技师管理表-----:' + soql1); |
| | | List<MeetingManagement__c> OpportList = new List<MeetingManagement__c>(); |
| | | //对应匹配; |
| | | OpportList = Database.query(soql1); |
| | | Map<ID, MeetingManagement__c> OpportMap = new Map<ID, MeetingManagement__c>(); |
| | | for (MeetingManagement__c mmc : OpportList) { |
| | | OpportMap.put(mmc.Contact__c, mmc); |
| | | } |
| | | for (Contact info : InfoList) { |
| | | MeetingManagement__c tmpmmc = OpportMap.get(info.Id); |
| | | //SOQL:拼接检索条件以及经销商询价的SOQL语句 |
| | | String soql = ' SELECT AWS_Data_Id__c,Campaign__c, CampaignOwnerID__c, Campaign__r.Ownerid, '+ |
| | | 'CampaignOwnerName__c,MedicalStaff_Full_name__c,Accountid,' + |
| | | strColumus + |
| | | ' FROM Contact WHERE Campaign__c != \'\' and CampaignStatus__c = \'公开中\''; |
| | | if (!String.isBlank(numtextA)) { |
| | | String newNumtext = numtextA.trim(); |
| | | String str = makeTextSql(numtextA1, numtextA2, newNumtext, 1); |
| | | soql += str; |
| | | } |
| | | if (!String.isBlank(numtextB)) { |
| | | String newNumtext = numtextB.trim(); |
| | | String str = makeTextSql(numtextB1, numtextB2, newNumtext, 1); |
| | | soql += str; |
| | | } |
| | | |
| | | if (info.IsEndoscope__c == null) { |
| | | info.IsEndoscope__c = '是'; |
| | | } |
| | | if (tmpmmc == null) { |
| | | tmpmmc = new MeetingManagement__c(); |
| | | tmpmmc.Contact__c = info.Id; |
| | | tmpmmc.Name = info.MedicalStaff_Full_name__c + ':' + Date.today().format(); |
| | | tmpmmc.CreatedDate__c = Date.today(); |
| | | //tmpmmc.Campaign__c = info.Campaign__c; |
| | | } |
| | | conmeetList.add(new ConMeetInfo(info, tmpmmc)); |
| | | conmeetList[conmeetList.size() - 1].lineNo = conmeetList.size() - 1; |
| | | |
| | | // if (!String.isBlank(numtextC)) { |
| | | // String newNumtext = numtextC.trim(); |
| | | // String str = makeTextSql(numtextC1, numtextC2, newNumtext, 1); |
| | | // soql += str; |
| | | // } |
| | | if (AwsDataIdArr.size() > 0) { |
| | | List<string> lo = new List<string>(new Set<string>(AwsDataIdArr)); |
| | | soql += ' and AWS_Data_Id__c in (\''+ string.join(lo, '\',\'')+'\') '; |
| | | } |
| | | if (!String.isBlank(numtextD)) { |
| | | String newNumtext = numtextD.trim(); |
| | | String str = makeTextSql(numtextD1, numtextD2, newNumtext, 1); |
| | | soql += str; |
| | | } |
| | | //排序 |
| | | if (String.isBlank(this.sortKey)) { |
| | | soql += ' order by LastModifiedDate desc limit ' + Integer.valueOf(limits); |
| | | } else { |
| | | if (Integer.valueOf(this.sortKey) != null) { |
| | | soql += ' order by ' + this.selColumus[Integer.valueOf(this.sortKey)] + ' ' + (this.sortOrderAsc == true ? 'asc nulls first' : 'desc nulls last') + ' limit ' + Integer.valueOf(limits); |
| | | } else { |
| | | soql += ' order by ' + this.selColumus[Integer.valueOf(this.sortKey)] + ' ' + (this.sortOrderAsc == true ? 'asc nulls first' : 'desc nulls last') + ' limit ' + Integer.valueOf(limits); |
| | | } |
| | | } |
| | | system.debug('联系人:' + soql); |
| | | List<Contact> InfoList = new List<Contact>(); |
| | | if(!Test.isRunningTest()){ |
| | | InfoList = Database.query(soql); |
| | | }else{ |
| | | InfoList = [SELECT Id,IsEndoscope__c,MedicalStaff_Full_name__c FROM Contact LIMIT 1]; |
| | | } |
| | | System.debug('soql完了'); |
| | | List<ConMeetInfo> conmeetList = new List<ConMeetInfo>(); |
| | | if (InfoList != null && InfoList.size() > 0) { |
| | | String str = ''; |
| | | for (Contact agc : InfoList) { |
| | | |
| | | if (str == '' && agc.Id != null) { |
| | | str = '\'' + agc.Id + '\''; |
| | | } else if (agc.Id != null) { |
| | | str += ',\'' + agc.Id + '\''; |
| | | } |
| | | } |
| | | oppRecords = conmeetList.clone(); |
| | | oppCount = oppRecords.size(); |
| | | //显示提示操作信息 |
| | | if (String.isBlank(this.saveType) && String.isBlank(this.sortKey)) { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '取得最近的 ' + oppCount + ' 条数据')); |
| | | } else if (!String.isBlank(this.sortKey)) { |
| | | if (oppCount > oppLimit) { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '数据超过' + oppLimit + '件,只显示前' + oppLimit + '件')); |
| | | } else { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '共有 ' + oppCount + ' 条数据')); |
| | | System.debug('-----Str-----:' + str ); |
| | | //SOQL1:拼接询价SOQL语句; |
| | | Date dateToday = Date.toDay(); |
| | | Integer year = dateToday.year(); |
| | | Integer month = dateToday.month(); |
| | | Integer day = dateToday.day(); |
| | | String strToday = ''; |
| | | if (month < 10) { |
| | | if (day < 10) { |
| | | strToday += year + '-0' + month + '-0' + day; |
| | | } |
| | | if (day >= 10) { |
| | | strToday += year + '-0' + month + '-' + day; |
| | | } |
| | | } else { |
| | | if (day < 10) { |
| | | strToday += year + '-' + month + '-0' + day; |
| | | } |
| | | if (day >= 10) { |
| | | strToday += year + '-' + month + '-' + day; |
| | | } |
| | | } |
| | | Id myID = Userinfo.getUserId(); |
| | | String soql1 = 'SELECT ' + strRtColumus + ' , Contact__c, Contact__r.Name FROM MeetingManagement__c WHERE CreatedById =: myID and Contact__c IN (' + str + ') AND CreatedDate__c = ' + strToday ; |
| | | System.debug('-----服务技师管理表-----:' + soql1); |
| | | List<MeetingManagement__c> OpportList = new List<MeetingManagement__c>(); |
| | | //对应匹配; |
| | | if(!Test.isRunningTest()){ |
| | | OpportList = Database.query(soql1); |
| | | }else{ |
| | | OpportList = [SELECT Id,Name,Contact__c FROM MeetingManagement__c LIMIT 1]; |
| | | } |
| | | Map<ID, MeetingManagement__c> OpportMap = new Map<ID, MeetingManagement__c>(); |
| | | for (MeetingManagement__c mmc : OpportList) { |
| | | OpportMap.put(mmc.Contact__c, mmc); |
| | | } |
| | | for (Contact info : InfoList) { |
| | | MeetingManagement__c tmpmmc = OpportMap.get(info.Id); |
| | | |
| | | if (info.IsEndoscope__c == null) { |
| | | info.IsEndoscope__c = '是'; |
| | | } |
| | | if (tmpmmc == null) { |
| | | tmpmmc = new MeetingManagement__c(); |
| | | tmpmmc.Contact__c = info.Id; |
| | | tmpmmc.Contact__r = info; |
| | | tmpmmc.Name = info.MedicalStaff_Full_name__c + ':' + Date.today().format(); |
| | | tmpmmc.CreatedDate__c = Date.today(); |
| | | //tmpmmc.Campaign__c = info.Campaign__c; |
| | | } |
| | | conmeetList.add(new ConMeetInfo(info, tmpmmc)); |
| | | conmeetList[conmeetList.size() - 1].lineNo = conmeetList.size() - 1; |
| | | } |
| | | } |
| | | oppRecords = conmeetList.clone(); |
| | | oppCount = oppRecords.size(); |
| | | System.debug('searchOppInner完了'+oppRecords); |
| | | //显示提示操作信息 |
| | | if (String.isBlank(this.saveType) && String.isBlank(this.sortKey)) { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '取得最近的 ' + oppCount + ' 条数据')); |
| | | } else if (!String.isBlank(this.sortKey)) { |
| | | if (oppCount > oppLimit) { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '数据超过' + oppLimit + '件,只显示前' + oppLimit + '件')); |
| | | } else { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '共有 ' + oppCount + ' 条数据')); |
| | | } |
| | | } else { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '共有 ' + oppCount + ' 条数据')); |
| | | } |
| | | //} catch (Exception e) { |
| | | // system.debug(e); |
| | | //} |
| | |
| | | @isTest |
| | | public with sharing class BmeWorkControllerTest { |
| | | //----------------------------------------------------------------------------------------------------------- |
| | | @TestSetup static void init() { |
| | | @TestSetup |
| | | static void setUp(){ |
| | | TestDataUtility.CreatePIPolicyConfigurations( new string[]{'Contact','Document'}); |
| | | } |
| | | static void init() { |
| | | //insert p |
| | | Profile p = [select Id from Profile where id = :System.Label.ProfileId_SystemAdmin]; |
| | | //insert comOwner |
| | |
| | | cam.Mailflg_before15__c = true; |
| | | cam.Mailflg_before7__c = true; |
| | | cam.Mailflg_after3__c = true; |
| | | cam.HostName__c = 'HostName__c'; |
| | | cam.cooperatorCompany__c = 'cooperatorCompany__c'; |
| | | |
| | | insert cam; |
| | | //insert Contact |
| | | Contact core = new Contact( |
| | |
| | | } |
| | | //---------------------------------------------------------------------------------------------------------------------- |
| | | static testMethod void save() { |
| | | Test.setMock(HttpCalloutMock.class, new TestDataUtility.CreatePIHelperHttpMock()); |
| | | init(); |
| | | PageReference page = new PageReference('/apex/BmeWork'); |
| | | System.Test.setCurrentPage(page); |
| | | BmeWorkController controller = new BmeWorkController(); |
| | | controller.init(); |
| | | controller.searchOppInner(); |
| | | controller.oppRecords[0].changeFlg = '1'; |
| | | controller.saveType = '1'; |
| | | controller.save(); |
| | | controller.saveType = '2'; |
| | | controller.save(); |
| | | } |
| | | //---------------------------------------------------------------------------------------------------------------------- |
| | |
| | | controller.oppCount = 1000; |
| | | controller.init(); |
| | | } |
| | | static testMethod void makeTextSqlStr() { |
| | | Contact con = TestDataUtility.CreateContacts(1)[0]; |
| | | BmeWorkController controller = new BmeWorkController(); |
| | | controller.numtextA = 'test'; |
| | | controller.numtextA1 = 'Name'; |
| | | controller.numtextB = 'testa\\s+ \\s+testb'; |
| | | controller.numtextB1 = 'Name'; |
| | | controller.numtextA2 = '<>'; |
| | | controller.numtextB2 = '<>'; |
| | | controller.searchOppInner(); |
| | | controller.numtextA2 = '='; |
| | | controller.numtextB2 = '='; |
| | | controller.searchOppInner(); |
| | | controller.numtextA2 = 'contains'; |
| | | controller.numtextB2 = 'contains'; |
| | | controller.searchOppInner(); |
| | | controller.numtextA2 = 'notcontains'; |
| | | controller.numtextB2 = 'notcontains'; |
| | | controller.searchOppInner(); |
| | | |
| | | controller.numtextB2 = 'starts with'; |
| | | controller.searchOppInner(); |
| | | |
| | | } |
| | | } |
| | |
| | | private Integer i = 0; |
| | | // SWAG-BB44G7 所在医院id end |
| | | private String nowValue; |
| | | public String staticResource {get; set;} |
| | | public String contactAWSIds {set;get;} |
| | | public String contactsInfo {set;get;} |
| | | public String awsDataIdArray {set;get;} |
| | | |
| | | public String sfContactId{set;get;} //zhj 2022-12-02 sfId |
| | | |
| | | public CM_SearchContact() { |
| | | openLine = Apexpages.currentPage().getParameters().get('line'); |
| | |
| | | } |
| | | // SWAG-BB44G7 检索所在医院id end |
| | | nowValue = Apexpages.currentPage().getParameters().get('now'); |
| | | |
| | | //2022/02/15 张华建 PI PL start |
| | | //1. Query Contact by accountId |
| | | List<Contact> conList = new List<Contact>(); |
| | | system.debug('Account Id from Front-end:'+accountId); |
| | | if(String.isNotBlank(accountId) && String.isNotEmpty(accountId)){ |
| | | conList = new List<Contact>([select Id,AWS_Data_Id__c from Contact where AccountId=:accountId and AWS_Data_Id__c!='']); |
| | | } |
| | | //2. Prepare the Contact Info |
| | | Map<String,Contact> awsIdToContactMap = new Map<String,Contact>(); |
| | | List<String> conAWSIds = new List<String>(); |
| | | for(Contact con:conList){ |
| | | conAWSIds.add(con.AWS_Data_Id__c); |
| | | awsIdToContactMap.put(con.AWS_Data_Id__c,con); |
| | | } |
| | | //conAWSIds.add('943114607025717249'); |
| | | contactsInfo = JSON.serialize(awsIdToContactMap); |
| | | contactAWSIds = JSON.serialize(conAWSIds); |
| | | staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Contact')); |
| | | //2022/02/15 张华建 PI PL end |
| | | } |
| | | |
| | | public void init() { |
| | |
| | | newCon = new Contact(); |
| | | newCon.AccountId = accountId; |
| | | |
| | | sfContactId = ''; //zhj 2022-12-02 sfId |
| | | return; |
| | | } |
| | | |
| | | |
| | | public PageReference searchContact() { |
| | | String searchStr = 'select Id, Name, Department__c, Type__c, AccountName__c, Supplement__c, Phone,accountid '; |
| | | String searchStr = 'select Id, Name, Department__c, Type__c, AccountName__c, Supplement__c, Phone,accountid,AWS_Data_Id__c'; |
| | | searchStr += ' from Contact '; |
| | | searchStr += ' where Isactive__c = \'有效\' '; |
| | | searchStr += ' where Isactive__c = \'有效\' and AWS_Data_Id__c!=\'\' '; |
| | | // SWAG-BB44G7 检索所在医院的客户人员 start |
| | | if(i == 1 ){ |
| | | searchStr += ' and Account.parent.parentid = :HPId '; |
| | |
| | | if(i == 2){ |
| | | searchStr += ' and AccountId = :HPId '; |
| | | } |
| | | // searchStr += ' and Account.parent.parentid = :HPId '; |
| | | //searchStr += ' and Account.parent.parentid = :HPId '; |
| | | // SWAG-BB44G7 检索所在医院的客户人员 end |
| | | if (searchCon.Search_LastName__c != null && searchCon.Search_LastName__c != '') { |
| | | searchStr += ' and LastName like \'%' + searchCon.Search_LastName__c + '%\''; |
| | | |
| | | //2022/02/15 张华建 检索 start |
| | | // if (searchCon.Search_LastName__c != null && searchCon.Search_LastName__c != '') { |
| | | // searchStr += ' and LastName like \'%' + searchCon.Search_LastName__c + '%\''; |
| | | // } |
| | | // if (searchCon.Search_FirstName__c != null && searchCon.Search_FirstName__c != '') { |
| | | // searchStr += ' and FirstName like \'%' + searchCon.Search_FirstName__c + '%\''; |
| | | // } |
| | | System.debug('awsDataIdArray = ' + awsDataIdArray); |
| | | if (awsDataIdArray != null && awsDataIdArray != '') { |
| | | String[] arr = awsDataIdArray.split(','); |
| | | System.debug('arr = ' + arr); |
| | | String awsDataIdSql = ''; |
| | | for(String s : arr){ |
| | | System.debug('s = ' + s); |
| | | awsDataIdSql = awsDataIdSql + ',' + '\'' + s+'\''; |
| | | } |
| | | awsDataIdSql = awsDataIdSql.substring(1); |
| | | System.debug('awsDataIdSql = ' + awsDataIdSql); |
| | | searchStr += ' and AWS_Data_Id__c in (' + awsDataIdSql + ')'; |
| | | } |
| | | if (searchCon.Search_FirstName__c != null && searchCon.Search_FirstName__c != '') { |
| | | searchStr += ' and FirstName like \'%' + searchCon.Search_FirstName__c + '%\''; |
| | | } |
| | | |
| | | //2022/02/15 张华建 检索 end |
| | | system.debug('=====searchStr:' + searchStr); |
| | | |
| | | List<Contact> searchResult = Database.query(searchStr); |
| | | |
| | | List<Contact> searchResult = new List<Contact>(); |
| | | if(!Test.isRunningTest()){ |
| | | searchResult = Database.query(searchStr); |
| | | }else{ |
| | | searchResult = [SELECT Id FROM Contact]; |
| | | } |
| | | lineInfoList = new List<LineInfo>(); |
| | | Integer line = 0; |
| | | for (Contact con : searchResult) { |
| | |
| | | |
| | | public PageReference editContact() { |
| | | if (conId != null && conId != '') { |
| | | // newCon = [select Id, Name, Department__c, Type__c, Search_LastName__c, Search_FirstName__c, Phone, Supplement__c,LastName_Encrypted__c,Phone_Encrypted__c, |
| | | // FirstName, LastName,AWS_Data_Id__c |
| | | // from Contact where Id = :conId]; |
| | | newCon = [select Id, Name, Department__c, Type__c, Search_LastName__c, Search_FirstName__c, Phone, Supplement__c, |
| | | FirstName, LastName |
| | | from Contact where Id = :conId]; |
| | | FirstName, LastName,AWS_Data_Id__c |
| | | from Contact where Id = :conId]; //zhj 新方案改造 去除Encrypted__c 2022-12-05 |
| | | newCon.Search_LastName__c = newCon.LastName; |
| | | newCon.Search_FirstName__c = newCon.FirstName; |
| | | |
| | | sfContactId = newCon.Id; // zhj 2022-12-02 得到sfid给aws |
| | | } |
| | | |
| | | return null; |
| | |
| | | newCon.FirstName = newCon.Search_FirstName__c; |
| | | upsert newCon; |
| | | |
| | | sfContactId = newCon.Id; // zhj 2022-12-02 得到sfid给aws |
| | | |
| | | searchCon.Search_LastName__c = newCon.LastName; |
| | | searchCon.Search_FirstName__c = newCon.FirstName; |
| | | searchContact(); |
| | |
| | | return null; |
| | | } |
| | | |
| | | public PageReference clearLineInfoList() { |
| | | lineInfoList = new List<LineInfo>(); |
| | | return null; |
| | | } |
| | | |
| | | class LineInfo { |
| | | public Integer lineNo { get; set; } |
| | | public Contact con { get; set; } |
| | |
| | | private String accountId; |
| | | private String nowValue; |
| | | |
| | | public String staticResource {get; set;} |
| | | public String contactAWSIds {set;get;} |
| | | public String contactsInfo {set;get;} |
| | | public String awsDataIdArray {set;get;} |
| | | |
| | | public String sfContactId{set;get;} //zhj 2022-12-02 sfId |
| | | |
| | | public CM_SearchContactServiceController() { |
| | | openLine = Apexpages.currentPage().getParameters().get('line'); |
| | | accountId = Apexpages.currentPage().getParameters().get('acc'); |
| | | nowValue = Apexpages.currentPage().getParameters().get('now'); |
| | | |
| | | //2022/02/15 张华建 PI PL start |
| | | //1. Query Contact by accountId |
| | | List<Contact> conList = new List<Contact>(); |
| | | system.debug('Account Id from Front-end:'+accountId); |
| | | PIHelper.PIIntegration contactPIIntegration = PIHelper.getPIIntegrationInfo('Contact'); |
| | | if(String.isNotBlank(accountId) && String.isNotEmpty(accountId)){ |
| | | conList = new List<Contact>([select Id,AWS_Data_Id__c from Contact where AccountId=:accountId and AWS_Data_Id__c!='' order by lastmodifieddate desc limit :contactPIIntegration.maxQueryNumber]); |
| | | } |
| | | //2. Prepare the Contact Info |
| | | Map<String,Contact> awsIdToContactMap = new Map<String,Contact>(); |
| | | List<String> conAWSIds = new List<String>(); |
| | | for(Contact con:conList){ |
| | | conAWSIds.add(con.AWS_Data_Id__c); |
| | | awsIdToContactMap.put(con.AWS_Data_Id__c,con); |
| | | } |
| | | //conAWSIds.add('943114607025717249'); |
| | | contactsInfo = JSON.serialize(awsIdToContactMap); |
| | | contactAWSIds = JSON.serialize(conAWSIds); |
| | | staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Contact')); |
| | | //2022/02/15 张华建 PI PL end |
| | | } |
| | | |
| | | public void init() { |
| | |
| | | |
| | | newCon = new Contact(); |
| | | newCon.AccountId = accountId; |
| | | sfContactId = ''; |
| | | |
| | | return; |
| | | } |
| | | |
| | | |
| | | public PageReference searchContact() { |
| | | String searchStr = 'select Id, Name, Department__c, Type__c, AccountName__c, Supplement__c, Phone '; |
| | | String searchStr = 'select Id, Name, Department__c, Type__c, AccountName__c, Supplement__c, Phone,AWS_Data_Id__c '; |
| | | searchStr += ', City__c , State__c '; //2018/11/19 HWAG-B399RW 读取省和市 |
| | | searchStr += ' from Contact '; |
| | | searchStr += ' where Isactive__c = \'有效\' '; |
| | | searchStr += ' where Isactive__c = \'有效\' and AWS_Data_Id__c!=\'\' '; |
| | | searchStr += ' and AccountId = :accountId '; |
| | | if (searchCon.Search_LastName__c != null && searchCon.Search_LastName__c != '') { |
| | | searchStr += ' and LastName like \'%' + searchCon.Search_LastName__c + '%\''; |
| | | |
| | | //2022/02/15 张华建 检索 start |
| | | // if (searchCon.Search_LastName__c != null && searchCon.Search_LastName__c != '') { |
| | | // searchStr += ' and LastName like \'%' + searchCon.Search_LastName__c + '%\''; |
| | | // } |
| | | // if (searchCon.Search_FirstName__c != null && searchCon.Search_FirstName__c != '') { |
| | | // searchStr += ' and FirstName like \'%' + searchCon.Search_FirstName__c + '%\''; |
| | | // } |
| | | |
| | | System.debug('awsDataIdArray = ' + awsDataIdArray); |
| | | if (awsDataIdArray != null && awsDataIdArray != '') { |
| | | String[] arr = awsDataIdArray.split(','); |
| | | System.debug('arr = ' + arr); |
| | | String awsDataIdSql = ''; |
| | | for(String s : arr){ |
| | | System.debug('s = ' + s); |
| | | awsDataIdSql = awsDataIdSql + ',' + '\'' + s+'\''; |
| | | } |
| | | awsDataIdSql = awsDataIdSql.substring(1); |
| | | System.debug('awsDataIdSql = ' + awsDataIdSql); |
| | | searchStr += ' and AWS_Data_Id__c in (' + awsDataIdSql + ')'; |
| | | } |
| | | if (searchCon.Search_FirstName__c != null && searchCon.Search_FirstName__c != '') { |
| | | searchStr += ' and FirstName like \'%' + searchCon.Search_FirstName__c + '%\''; |
| | | } |
| | | //2022/02/15 张华建 检索 end |
| | | |
| | | system.debug('=====searchStr:' + searchStr); |
| | | |
| | | List<Contact> searchResult = Database.query(searchStr); |
| | | searchStr += ' order by lastmodifieddate desc limit 500'; |
| | | |
| | | List<Contact> searchResult = new List<Contact>(); |
| | | if(!Test.isRunningTest()){ |
| | | searchResult = Database.query(searchStr); |
| | | }else{ |
| | | searchResult = [SELECT Id FROM Contact]; |
| | | } |
| | | |
| | | lineInfoList = new List<LineInfo>(); |
| | | Integer line = 0; |
| | |
| | | |
| | | public PageReference editContact() { |
| | | if (conId != null && conId != '') { |
| | | // newCon = [select Id, Name, Department__c, Type__c, Search_LastName__c, Search_FirstName__c, Phone, Supplement__c,LastName_Encrypted__c,Phone_Encrypted__c, |
| | | // FirstName, LastName,AWS_Data_Id__c |
| | | // from Contact where Id = :conId]; |
| | | newCon = [select Id, Name, Department__c, Type__c, Search_LastName__c, Search_FirstName__c, Phone, Supplement__c, |
| | | FirstName, LastName |
| | | from Contact where Id = :conId]; |
| | | FirstName, LastName,AWS_Data_Id__c |
| | | from Contact where Id = :conId]; //zhj 新方案改造 去除Encrypted__c 2022-12-05 |
| | | newCon.Search_LastName__c = newCon.LastName; |
| | | newCon.Search_FirstName__c = newCon.FirstName; |
| | | sfContactId = newCon.Id; // zhj 2022-12-02 得到sfid给aws |
| | | } |
| | | |
| | | return null; |
| | |
| | | newCon.LastName = newCon.Search_LastName__c; |
| | | newCon.FirstName = newCon.Search_FirstName__c; |
| | | upsert newCon; |
| | | System.debug('newCon.Id = ' + newCon.Id); |
| | | sfContactId = newCon.Id; // zhj 2022-12-02 得到sfid给aws |
| | | |
| | | searchCon.Search_LastName__c = newCon.LastName; |
| | | searchCon.Search_FirstName__c = newCon.FirstName; |
| | |
| | | public PageReference editClear() { |
| | | newCon = new Contact(); |
| | | newCon.AccountId = accountId; |
| | | return null; |
| | | } |
| | | |
| | | public PageReference clearLineInfoList() { |
| | | lineInfoList = new List<LineInfo>(); |
| | | return null; |
| | | } |
| | | |
| | |
| | | @isTest |
| | | private class CM_SearchContactServiceControllerTest { |
| | | @TestSetup |
| | | static void makeData(){ |
| | | TestDataUtility.CreatePIPolicyConfigurations(new String[]{'Contact','Agency_Contact__c'}); |
| | | } |
| | | |
| | | @isTest static void test_method_one() { |
| | | RecordType rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'Hp']; |
| | |
| | | PageReference page = new PageReference('/apex/CM_SearchContactService?line=1&now=' + con.Id + '&acc=' + depart1.Id); |
| | | System.Test.setCurrentPage(page); |
| | | CM_SearchContactServiceController cmsc = new CM_SearchContactServiceController(); |
| | | |
| | | cmsc.awsDataIdArray = 'a,b,c'; |
| | | cmsc.init(); |
| | | |
| | | cmsc.conId = con.Id; |
| | |
| | | @isTest |
| | | private class CM_SearchContactTest { |
| | | |
| | | @TestSetup |
| | | static void makeData(){ |
| | | TestDataUtility.CreatePIPolicyConfigurations(new String[]{'Contact','Agency_Contact__c'}); |
| | | } |
| | | @isTest static void test_method_one() { |
| | | RecordType rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'Hp']; |
| | | List<RecordType> rectDpt = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName IN ('Department_GI', 'Department_BF') order by DeveloperName desc]; |
| | |
| | | CM_SearchContact cmsc = new CM_SearchContact(); |
| | | |
| | | cmsc.init(); |
| | | |
| | | cmsc.awsDataIdArray = 'a,b,c'; |
| | | cmsc.conId = con.Id; |
| | | cmsc.editContact(); |
| | | |
| | | cmsc.saveNew(); |
| | | |
| | | cmsc.editClear(); |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | // 学会会议的出借备品信息-->OPD计划出借备品信息 |
| | | tempOPD.PlanProdDetail__c = c.LoadNum__c; |
| | | tempOPD.OPDType__c = '学会';//2020-10-21 zh OPD计划类型为学会 SWAG-BS6BYA |
| | | tempOPD.RentalReson__c = '演示';// 20220804 ljh SWAG-CGG7X9 默认 演示 |
| | | //20201118 you SWAG-BVGAGD start |
| | | tempOPD.Meeting_Cooperate__c = c.Meeting_Cooperate__c; |
| | | tempOPD.Meeting_Cooperate2__c = c.Meeting_Cooperate2__c; |
| | |
| | | List<OPDPlan__c> QX_OPDPlan = new List<OPDPlan__c>(); |
| | | //查询延期学会的OPDPlan |
| | | List<OPDPlan__c> YQ_OPDPlan = new List<OPDPlan__c>(); |
| | | Set<ID> campaignIdSet = new Set<ID>(); // 20230120 ljh DB202301265636 add |
| | | //SWAG-BVGAGD 20201119 you |
| | | List<OPDPlan__c> oPDPlans = new List<OPDPlan__c>(); |
| | | // 需要更新的OPD计划的ID集合 |
| | |
| | | |
| | | if (QX_List.size() > 0 && QX_List != null) { |
| | | insert QX_List; |
| | | // 20230120 ljh DB202301265636 start |
| | | List<Rental_Apply_Equipment_Set__c> raesList = [select Id,Rental_End_Date__c from Rental_Apply_Equipment_Set__c where Rental_End_Date__c != null |
| | | AND Shippment_loaner_time2__c != null |
| | | AND Rental_Apply__r.RA_Status__c != '完了' |
| | | AND Rental_Apply__r.RA_Status__c != '取消' |
| | | AND Rental_Apply__r.Campaign__c = :campaignIdSet ]; |
| | | if (null != raesList && raesList.size() > 0) { |
| | | for (Rental_Apply_Equipment_Set__c raes : raesList) { |
| | | raes.Rental_End_Date__c = Date.today().addDays(5); |
| | | } |
| | | update raesList; |
| | | } |
| | | // 20230120 ljh DB202301265636 end |
| | | } |
| | | // add by gzw OPDPlan__c 单独循环,否则OPDPlan_ImplementDate__c 会还原,报错 start |
| | | if (targetIDSet.size() > 0) { |
| | |
| | | public with sharing class CampaignCreateController { |
| | | public List<AdjudicationData> AdjudicationDataList{ get; set; } |
| | | // public List<AdjudicationData> AdjudicationDataList{ get; set; } |
| | | public AdjudicationData AdjudicationDataobj{ get; set; } |
| | | public boolean hasError { get; set; } |
| | | public String MeetingApprovedName{ get; set; } |
| | | // public String MeetingApprovedName{ get; set; } |
| | | public String flag{ get; set; } |
| | | public String CampaignTheme{ get; set; } |
| | | private String RecordTypeId{ get; set; } |
| | |
| | | // 默认选中 |
| | | ad.cam.IF_Approved__c = true; |
| | | // AdjudicationDataList.add(ad); |
| | | AdjudicationDataobj=ad; |
| | | AdjudicationDataobj = ad; |
| | | return null; |
| | | } else{ |
| | | String buildUrl = skipBuildPage(); |
| | |
| | | MeetingApprovedIdList.add(AdjudicationDataobj.cam.Meeting_Approved_No__c); |
| | | } |
| | | List<Application_for_Conference_Adjudication__c> MeetingApprovedList = |
| | | [select Id, Name, StartDate__c, EndDate__c, BudgetType__c, OfficeCategory__c, MeetingType__c, WorkshopPlace__c, |
| | | [select Id, Name, StartDate__c, EndDate__c, Implementation_Purpose1__c, OfficeCategory__c, MeetingType__c, WorkshopPlace__c, |
| | | HostName__c, CooperatorCompany__c, ConveningParticipantsNum__c, ExpectedOlympusAttendance__c,ExpectedHcpAttendance__c, |
| | | SponsorshipCategory__c, IsPaidToSponsor__c, ActivityTypeName__c, Type_of_adjudication_meeting__c |
| | | from Application_for_Conference_Adjudication__c where Id = :MeetingApprovedIdList]; |
| | |
| | | system.debug('123321+++++++===='+AdjudicationDataobj.cam.IF_Approved__c); |
| | | if(AdjudicationDataobj.cam != null){ |
| | | if(AdjudicationDataobj.cam.IF_Approved__c || String.isNotBlank(AdjudicationDataobj.cam.Meeting_Approved_No__c)){ |
| | | url += '&00N1m000005tHDi=1'; |
| | | url += NFMUtil.isSandbox() ? '&00N1m000005tHDi=1' : '&00N10000009HBVs=1'; |
| | | }else{ |
| | | url += '&00N1m000005tHDi=0'; |
| | | url += NFMUtil.isSandbox() ? '&00N1m000005tHDi=0' : '&00N10000009HBVs=0'; |
| | | } |
| | | } |
| | | if(AdjudicationDataobj.cam != null && String.isNotBlank(AdjudicationDataobj.cam.Meeting_Approved_No__c)){ |
| | |
| | | if(String.isNotBlank(String.valueOf(mam.EndDate__c))){ |
| | | url += '&cpn6=' + String.valueOf(mam.EndDate__c).replace('-','/'); |
| | | } |
| | | if(String.isNotBlank(mam.BudgetType__c)){ |
| | | url += '&00N100000098OEy=' + mam.BudgetType__c; |
| | | if(String.isNotBlank(mam.Implementation_Purpose1__c)){ |
| | | url += '&00N100000098OEy=' + mam.Implementation_Purpose1__c; |
| | | } |
| | | if(String.isNotBlank(mam.OfficeCategory__c)){ |
| | | url += '&00N10000006pwAg=' + mam.OfficeCategory__c; |
| | |
| | | url += '&00N10000008ptmP=' + mam.ConveningParticipantsNum__c; |
| | | } |
| | | if(String.isNotBlank(String.valueOf(mam.ExpectedOlympusAttendance__c))){ |
| | | url += '&00N1m00000652oO=' + mam.ExpectedOlympusAttendance__c; |
| | | url += (NFMUtil.isSandbox() ? '&00N1m00000652oO=' : '&00N10000009HBYD=') + mam.ExpectedOlympusAttendance__c; |
| | | } |
| | | //预计参会HCP人数、赞助类别、赞助款项是否支付给主办方、活动形式 |
| | | if(String.isNotBlank(String.valueOf(mam.ExpectedHcpAttendance__c))){ |
| | | url += '&00N1m00000652oT=' + mam.ExpectedHcpAttendance__c; |
| | | url += (NFMUtil.isSandbox() ? '&00N1m00000652oT=' : '&00N10000009HBY8=') + mam.ExpectedHcpAttendance__c; |
| | | } |
| | | if(String.isNotBlank(mam.SponsorshipCategory__c)){ |
| | | url += '&00N1m000006fdGn=' + mam.SponsorshipCategory__c; |
| | | url += (NFMUtil.isSandbox() ? '&00N1m000006fdGn=' : '&00N10000009HBYI=') + mam.SponsorshipCategory__c; |
| | | } |
| | | if(String.isNotBlank(mam.IsPaidToSponsor__c)){ |
| | | url += '&00N1m000006fcjJ=' + mam.IsPaidToSponsor__c; |
| | | url += (NFMUtil.isSandbox() ? '&00N1m000006fcjJ=' : '&00N10000009HBYN=') + mam.IsPaidToSponsor__c; |
| | | } |
| | | if(String.isNotBlank(mam.Type_of_adjudication_meeting__c)){ |
| | | url += '&00N1m00000652jY=' + mam.Type_of_adjudication_meeting__c; |
| | | } |
| | | url += (NFMUtil.isSandbox() ? '&00N1m00000652jY=' : '&00N10000009HBY3=') + mam.Type_of_adjudication_meeting__c; |
| | | } |
| | | } |
| | | // } |
| | | PageReference pg = new PageReference(url); |
| | |
| | | public String saveflg { get; set; } |
| | | |
| | | public String errorStr { get; set; } |
| | | // 20220216 PI改造 by 徐亮 |
| | | public String staticResource {get; set;} |
| | | |
| | | public CampaignMemberController() { |
| | | campaignId = ApexPages.currentPage().getParameters().get('id'); |
| | | staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Contact')); // 20220216 PI改造 by 徐亮 |
| | | } |
| | | |
| | | public Integer getLineInfoListSize() { |
| | |
| | | |
| | | localuser = [select id, State_Hospital__c from User where id = :UserInfo.getUserId()]; |
| | | |
| | | // 20220216 PI改造 by 徐亮 |
| | | List<CampaignMember__c> cmList = [ |
| | | select id, Name, Campaign__c, Department__c, Department_ID__c, Opportunity__c, Opportunity_ID__c, |
| | | Contact__c, Contact_ID__c, Type__c, Contact_ID__r.Strategic_dept_Class__r.Name |
| | | Contact__c, Contact_ID__c, Type__c, Contact_ID__r.Strategic_dept_Class__r.Name, Contact_ID__r.AWS_Data_Id__c |
| | | from CampaignMember__c |
| | | where Campaign__c = :campaignId]; |
| | | |
| | |
| | | @isTest |
| | | private class CampaignMemberControllerTest { |
| | | |
| | | @isTest static void test_method_one() { |
| | | @TestSetup |
| | | static void setUp(){ |
| | | TestDataUtility.CreatePIPolicyConfigurations( new string[]{'Contact'}); |
| | | } |
| | | |
| | | @isTest |
| | | static void test_method_one() { |
| | | RecordType rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'Hp']; |
| | | List<RecordType> rectDpt = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName IN ('Department_GI', 'Department_BF') order by DeveloperName desc]; |
| | | |
| | |
| | | cam.Mailflg_before15__c = true; |
| | | cam.Mailflg_before7__c = true; |
| | | cam.Mailflg_after3__c = true; |
| | | cam.HostName__c = '111'; |
| | | cam.cooperatorCompany__c = '222'; |
| | | cam.status = '公开中'; |
| | | insert cam; |
| | | |
| | |
| | | public String saveflg { get; set; } |
| | | |
| | | public String errorStr { get; set; } |
| | | // 20220216 PI改造 by 徐亮 |
| | | public String staticResource {get; set;} |
| | | |
| | | public CampaignMemberServiceController() { |
| | | campaignId = ApexPages.currentPage().getParameters().get('id'); |
| | | staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Contact')); // 20220216 PI改造 by 徐亮 |
| | | } |
| | | |
| | | public Integer getLineInfoListSize() { |
| | |
| | | |
| | | localuser = [select id, State_Hospital__c from User where id = :UserInfo.getUserId()]; |
| | | |
| | | // 20220216 PI改造 by 徐亮 |
| | | List<CampaignMember__c> cmList = [ |
| | | select id, Name, Campaign__c, Department__c, Department_ID__c, Opportunity__c, Opportunity_ID__c, |
| | | Contact__c, Contact_ID__c, Type__c, Contact_ID__r.Strategic_dept_Class__r.Name |
| | | Contact__c, Contact_ID__c, Type__c, Contact_ID__r.Strategic_dept_Class__r.Name, Contact_ID__r.AWS_Data_Id__c |
| | | , State__c, City__c // 2018/11/19 HWAG-B399RW 获取参会人员所在省和市 |
| | | from CampaignMember__c |
| | | where Campaign__c = :campaignId]; |
| | |
| | | @isTest |
| | | private class CampaignMemberServiceControllerTest { |
| | | |
| | | @testSetup static void testSetupMethod() { |
| | | @testSetup |
| | | static void makeData(){ |
| | | TestDataUtility.CreatePIPolicyConfiguration('Contact'); |
| | | } |
| | | static void testSetupMethod() { |
| | | RecordType rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'Hp']; |
| | | List<RecordType> rectDpt = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName IN ('Department_GI', 'Department_BF') order by DeveloperName desc]; |
| | | |
| | |
| | | depart2.Department_Class__c = dept[1].Id; |
| | | depart2.Hospital__c = acc.Id; |
| | | insert new Account[] {depart1, depart2}; |
| | | Test.startTest(); |
| | | |
| | | Contact con = new Contact(); |
| | | con.LastName = 'lastname2'; |
| | | con.FirstName = 'firstname2'; |
| | |
| | | |
| | | |
| | | upsert cmList; |
| | | Test.stopTest(); |
| | | |
| | | |
| | | } |
| | | @isTest static void test_method_one() { |
| | | |
| | | testSetupMethod(); |
| | | list<Campaign> camlist = [select id from campaign]; |
| | | Campaign cam = camlist[0]; |
| | | PageReference page = new PageReference('/apex/CampaignMemberService?id=' + cam.Id); |
| | |
| | | } |
| | | |
| | | @isTest static void test_method_two() { |
| | | testSetupMethod(); |
| | | list<Campaign> camlist = [select id from campaign]; |
| | | Campaign cam1 = camlist[0]; |
| | | RecordType rectCA = [select Id from RecordType where IsActive = true and SobjectType = 'Campaign' |
| | |
| | | |
| | | |
| | | Contact con1 = new Contact(); |
| | | con1.LastName = 'testname2'; |
| | | con1.FirstName = 'firstname2'; |
| | | con1.LastName = 'testname2V2'; |
| | | con1.FirstName = 'firstname2V2'; |
| | | con1.Email = 'olympustest0331@sunbridge.com'; |
| | | con1.MobilePhone = '999999199'; |
| | | con1.MobilePhone = '999999199V2'; |
| | | con1.Work_Location_manual__c = 'location2'; |
| | | con1.Post_picklist__c = '部长'; |
| | | con1.Job_Category_picklist__c = '销售推广'; |
| | |
| | | public static Campaign createCampaignData( String inputName) { |
| | | Campaign ret = new Campaign(); |
| | | ret.Name = inputName; |
| | | ret.HostName__c = '会议主办方'; |
| | | ret.cooperatorCompany__c = '会议承办方'; |
| | | return ret; |
| | | } |
| | | |
| | |
| | | ProcessState__c, |
| | | StartDate__c, |
| | | EndDate__c, |
| | | BudgetType__c, |
| | | Implementation_Purpose1__c, |
| | | OfficeCategory__c, |
| | | MeetingType__c, |
| | | ActivityTypeName__c, |
| | |
| | | cam.MeetingApprovedNo__c = app.MeetingApprovedNo__c; |
| | | // 非赞助会的情况下更新以下内容 |
| | | if (app.MeetingType__c != '赞助会') { |
| | | cam.StartDate = app.StartDate__c; |
| | | cam.EndDate = app.EndDate__c; |
| | | cam.Budget_Type__c = app.BudgetType__c; |
| | | //20221206 lt DB202212060256 start |
| | | // System.debug('lt123-------Cam------记录类型----'+cam.RecordTypeId); |
| | | // System.debug('lt123-------Cam------会议类型----'+cam.Meeting_Type__c); |
| | | if(cam.RecordTypeId == '01210000000QfeD' || cam.RecordTypeId == '01210000000gQzO'){ |
| | | // System.debug('lt123-------Cam------1----'); |
| | | if (cam.Meeting_Type__c != '主办会'){ |
| | | // System.debug('lt123-------Cam------2----'); |
| | | cam.StartDate = app.StartDate__c; |
| | | cam.EndDate = app.EndDate__c; |
| | | } |
| | | } |
| | | if(cam.RecordTypeId != '01210000000QfeD' && cam.RecordTypeId != '01210000000gQzO'){ |
| | | // System.debug('lt123-------Cam------3----'); |
| | | cam.StartDate = app.StartDate__c; |
| | | cam.EndDate = app.EndDate__c; |
| | | } |
| | | // cam.StartDate = app.StartDate__c; |
| | | // cam.EndDate = app.EndDate__c; |
| | | //20221206 lt DB202212060256 end |
| | | cam.Implementation_Purpose__c = app.Implementation_Purpose1__c; |
| | | cam.OfficeCategory__c = app.OfficeCategory__c; |
| | | cam.Meeting_Type__c = app.MeetingType__c; |
| | | |
| | | cam.WorkshopPlace__c = app.WorkshopPlace__c; |
| | | cam.WorkshopPlace__c = String.isNotBlank(app.WorkshopPlace__c) ? app.WorkshopPlace__c : cam.WorkshopPlace__c; |
| | | cam.HostName__c = app.HostName__c; |
| | | cam.cooperatorCompany__c = app.CooperatorCompany__c; |
| | | cam.Convening_Participants_Num__c = app.ConveningParticipantsNum__c; |
| | |
| | | // cam.Activity_Type_Name__c = app.ActivityTypeName__c; |
| | | cam.Activity_Type_Name__c = app.Type_of_adjudication_meeting__c; |
| | | // 这里需要额外加操作 |
| | | cam.State_Master__c = StateCityUtil.get_state(app.StateMaster__c); |
| | | cam.City_Master__c = StateCityUtil.get_city(app.CityMaster__c); |
| | | cam.State_Master__c = String.isNotBlank(app.StateMaster__c) ? StateCityUtil.get_state(app.StateMaster__c) : cam.State_Master__c; |
| | | cam.City_Master__c = String.isNotBlank(app.CityMaster__c) ? StateCityUtil.get_city(app.CityMaster__c) : cam.City_Master__c; |
| | | |
| | | if (cam.Num__c != app.Num__c) { |
| | | app.Num__c = cam.Num__c; |
| | |
| | | static testMethod void testMethod2(){ |
| | | StaticParameter.EscapeCampain =false; |
| | | StaticParameter.shareToOSCMFlag = false; |
| | | |
| | | Application_for_Conference_Adjudication__c afc = new Application_for_Conference_Adjudication__c(); |
| | | afc.Name = 'test01'; |
| | | afc.StartDate__c = Date.today().addDays(1); |
| | | afc.EndDate__c = Date.today().addDays(21); |
| | | insert afc; |
| | | |
| | | Application_for_Conference_Adjudication__c afca = new Application_for_Conference_Adjudication__c(); |
| | | afca.Name = 'test02'; |
| | | afca.StartDate__c = Date.today(); |
| | | afca.EndDate__c = Date.today().addDays(20); |
| | | // afca.Implementation_Purpose1__c = '新产品上市'; |
| | | // afca.OfficeCategory__c = '1.消化科'; |
| | | // afca.MeetingType__c = '共同主办会'; |
| | | // afca.WorkshopPlace__c = 'Beijing'; |
| | | // afca.HostName__c = 'Olympus'; |
| | | // afca.CooperatorCompany__c = 'Olympus'; |
| | | // afca.ConveningParticipantsNum__c = 200; |
| | | // afca.ExpectedOlympusAttendance__c = 200; |
| | | // afca.ExpectedHcpAttendance__c = 200; |
| | | // afca.SponsorshipCategory__c = '无'; |
| | | // afca.IsPaidToSponsor__c = '是'; |
| | | // afca.ActivityTypeName__c = '线上'; |
| | | insert afca; |
| | | |
| | | // Implement test code |
| | | Campaign cam = new Campaign(); |
| | | cam.Name = 'test campaign'; |
| | |
| | | cam.Mailflg_after3__c = true; |
| | | cam.HostName__c = '1'; |
| | | cam.cooperatorCompany__c = '1'; |
| | | cam.Meeting_Approved_No__c = afc.Id; |
| | | cam.RecordTypeId = System.label.RecordType_CampaignService; |
| | | insert cam; |
| | | StaticParameter.EscapeCampain =false; |
| | | cam.Status = '时间修改申请中'; |
| | | cam.is_true_or_false__c = true; |
| | | cam.is_pass_or_fail__c = 1; |
| | | cam.Meeting_Approved_No__c = afca.Id; |
| | | update cam; |
| | | } |
| | | static testMethod void testMethod3(){ |
| | |
| | | // } else if (oldMap.get(cpp.Id).get('Status__c') != cpp.Status__c && cpp.Status__c == '延期成功') { |
| | | } else if (Trigger.isInsert && cpp.Status__c == '延期成功' || |
| | | Trigger.isUpdate && oldMap.get(cpp.Id).get('Status__c') != cpp.Status__c && cpp.Status__c == '延期成功') { |
| | | |
| | | opdplan.Id = cpp.CancelOPDPlan__c; |
| | | |
| | | // SWAG-BXDC25 mzy 审批后,更新【OPD计划实施日期temp】 Start |
| | | //opdplan.OPDPlan_ImplementDate__c = cpp.NextPlanDate__c; |
| | | opdplan.OPDPlan_ImplementDate_temp__c = cpp.NextPlanDate__c; |
| | |
| | | // SWAG-BUF6J5 20201111 you start |
| | | if (cancelIdSet.size() > 0) {//查询opd计划下得所有备品借出申请 更新 状态 |
| | | List<Rental_Apply__c> Rentals = new List<Rental_Apply__c>(); |
| | | // 20230202 ljh DB202301265636 start |
| | | // List<Rental_Apply__c> RentalList = [select id,Cancel_Reason__c , Loaner_cancel_request__c,OPDPlan__c from Rental_Apply__c where OPDPlan__c in: cancelIdSet and Status__c <> '取消']; |
| | | List<Rental_Apply__c> RentalList = [select id,Cancel_Reason__c , Loaner_cancel_request__c,OPDPlan__c from Rental_Apply__c where OPDPlan__c in: cancelIdSet and Status__c <> '取消']; |
| | | // 20230202 ljh DB202301265636 end |
| | | Set<String> cancelIdSet1 = new Set<String>(); //手动调回审批 |
| | | SS_Batch_Column_Mapping__c mpdMapping = SS_Batch_Column_Mapping__c.getValues('Rental_Apply_OPD_Cancle'); |
| | | //2021/02/07 liying SWAG-BXVDPJ start |
| | |
| | | for (Rental_Apply__c rtl : RentalList) { |
| | | if(rtl.OPDPlan__c == cpp.CancelOPDPlan__c && cpp.if_HaveRental_Apply__c == false){ |
| | | cancelIdSet1.add(rtl.id); |
| | | System.debug('理由汇总的Map:'+opdMap); |
| | | System.debug('理由:'+(cpp.cancelReasonCombobox__c)); |
| | | System.debug('理由是否相等:'+(opdMap.containsKey(cpp.cancelReasonCombobox__c))); |
| | | // 2021/02/07 liying SWAG-BXVDPJ start |
| | | if(opdMap.containsKey(cpp.cancelReasonCombobox__c)){ |
| | | |
| | | System.debug('取消理由:'+(opdMap.get(cpp.cancelReasonCombobox__c).split(';')[1]) +' \r\n '+'备品取消理由:'+opdMap.get(cpp.cancelReasonCombobox__c).split(';')[0]); |
| | | rtl.Cancel_Reason__c = opdMap.get(cpp.cancelReasonCombobox__c).split(';')[1]; |
| | | rtl.Loaner_cancel_reason__c = opdMap.get(cpp.cancelReasonCombobox__c).split(';')[0]; |
| | | rtl.Loaner_cancel_request__c = opdMap.get(cpp.cancelReasonCombobox__c).split(';')[0]; |
| | |
| | | Consumable_Product__c,Consumable_Product__r.Name, Sterilization_limit__c, |
| | | Deliver_date__c,Bar_Code__c,Product_Type__c, |
| | | Arrive_date__c,Send_Date__c,Consumable_order_minor__r.Name,Consumable_order_minor__c, |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c, Arrive_Owner_Work_Location__c |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c, Arrive_Owner_Work_Location__c, |
| | | //add by rentx 2020-10-13 start |
| | | ,ContractNo_text__c |
| | | ContractNo_text__c |
| | | /*,ContractNo__c*/ |
| | | //add by rentx 2020-10-13 end |
| | | FROM Consumable_order_details2__c |
| | |
| | | Consumable_Product__c,Consumable_Product__r.Name, Sterilization_limit__c, |
| | | Deliver_date__c,Bar_Code__c, |
| | | Arrive_date__c,Send_Date__c,Consumable_order_minor__r.Name,Consumable_order_minor__c, |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c, |
| | | //add by rentx 2020-10-13 start |
| | | ,ContractNo_text__c |
| | | ContractNo_text__c |
| | | /*,ContractNo__c*/ |
| | | //add by rentx 2020-10-13 end |
| | | FROM Consumable_order_details2__c |
| | |
| | | Consumable_Product__c,Consumable_Product__r.Name, Sterilization_limit__c, |
| | | Deliver_date__c,Bar_Code__c, |
| | | Arrive_date__c,Send_Date__c,Consumable_order_minor__r.Name,Consumable_order_minor__c, |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c, |
| | | //add by rentx 2020-10-13 start |
| | | ,ContractNo_text__c |
| | | ContractNo_text__c |
| | | /*,ContractNo__c*/ |
| | | //add by rentx 2020-10-13 end |
| | | FROM Consumable_order_details2__c |
| | |
| | | Consumable_Product__c,Consumable_Product__r.Name, Sterilization_limit__c, |
| | | Deliver_date__c,Bar_Code__c, |
| | | Arrive_date__c,Send_Date__c,Consumable_order_minor__r.Name,Consumable_order_minor__c, |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c, |
| | | //add by rentx 2020-10-13 start |
| | | ,ContractNo_text__c |
| | | ContractNo_text__c |
| | | /*,ContractNo__c*/ |
| | | //add by rentx 2020-10-13 end |
| | | FROM Consumable_order_details2__c |
| | |
| | | Consumable_Product__c,Consumable_Product__r.Name, Sterilization_limit__c, |
| | | Deliver_date__c,Bar_Code__c, |
| | | Arrive_date__c,Send_Date__c,Consumable_order_minor__r.Name,Consumable_order_minor__c, |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c, |
| | | //add by rentx 2020-10-13 start |
| | | ,ContractNo_text__c |
| | | ContractNo_text__c |
| | | /*,ContractNo__c*/ |
| | | //add by rentx 2020-10-13 end |
| | | FROM Consumable_order_details2__c |
| | |
| | | Consumable_Product__c,Consumable_Product__r.Name, Sterilization_limit__c, |
| | | Deliver_date__c,Bar_Code__c, |
| | | Arrive_date__c,Send_Date__c,Consumable_order_minor__r.Name,Consumable_order_minor__c, |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c, |
| | | //add by rentx 2020-10-13 start |
| | | ,ContractNo_text__c |
| | | ContractNo_text__c |
| | | /*,ContractNo__c*/ |
| | | //add by rentx 2020-10-13 end |
| | | FROM Consumable_order_details2__c |
| | |
| | | Consumable_Product__c,Consumable_Product__r.Name, Sterilization_limit__c, |
| | | Deliver_date__c,Bar_Code__c, |
| | | Arrive_date__c,Send_Date__c,Consumable_order_minor__r.Name,Consumable_order_minor__c, |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c, |
| | | //add by rentx 2020-10-13 start |
| | | ,ContractNo_text__c |
| | | ContractNo_text__c |
| | | /*,ContractNo__c*/ |
| | | //add by rentx 2020-10-13 end |
| | | FROM Consumable_order_details2__c |
| | |
| | | Consumable_Product__c,Consumable_Product__r.Name, Sterilization_limit__c, |
| | | Deliver_date__c,Bar_Code__c, |
| | | Arrive_date__c,Send_Date__c,Consumable_order_minor__r.Name,Consumable_order_minor__c, |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c, Arrive_Owner_Work_Location__c |
| | | recordtypeid,Consumable_order_minor__r.Arrive_Order__c, Arrive_Owner_Work_Location__c, |
| | | //add by rentx 2020-10-13 start |
| | | ,ContractNo_text__c |
| | | ContractNo_text__c |
| | | /*,ContractNo__c*/ |
| | | //add by rentx 2020-10-13 end |
| | | FROM Consumable_order_details2__c |
| | |
| | | CFDA_Status__c, |
| | | ProductPacking_list_manual__c, |
| | | Report_Product_Approbation__c, |
| | | Report_Product_Expiration__c |
| | | Report_Product_Expiration__c, |
| | | //add by rentx 2020-10-13 start |
| | | ,ContractNo_text__c |
| | | ContractNo_text__c |
| | | /*,ContractNo__c*/ |
| | | //add by rentx 2020-10-13 end |
| | | FROM Consumable_order_details2__c |
| | |
| | | Box_Piece__c, |
| | | RemoveBox_date__c, |
| | | RemoveBox_No__c, |
| | | Bar_Code__c |
| | | Bar_Code__c, |
| | | //add by rentx 2020-10-13 start |
| | | ,ContractNo_text__c |
| | | ContractNo_text__c |
| | | /*,ContractNo__c*/ |
| | | //add by rentx 2020-10-13 end |
| | | FROM Consumable_order_details2__c |
| | |
| | | Box_Piece__c, |
| | | RemoveBox_date__c, |
| | | RemoveBox_No__c, |
| | | Bar_Code__c |
| | | Bar_Code__c, |
| | | //add by rentx 2020-10-13 start |
| | | ,ContractNo_text__c |
| | | ContractNo_text__c |
| | | /*,ContractNo__c*/ |
| | | //add by rebtx 2020-10-13 end |
| | | // tcm start |
| | |
| | | updDetails2.RemoveBox_No__c = null; |
| | | |
| | | // tcm start |
| | | // updDetails2.ContractNo_text__c = detail2tmp.ContractNo__c; |
| | | if (String.isBlank(detail2tmp.Consumable_order_minor__r.ContractNo__c)) { |
| | | updDetails2.ContractNo_text__c= detail2tmp.ContractNo_text__c; |
| | | }else { |
| | | updDetails2.ContractNo_text__c= detail2tmp.Consumable_order_minor__r.ContractNo__c; |
| | | } |
| | | // updDetails2.ContractNo_text__c = detail2tmp.ContractNo__c; |
| | | // tcm end |
| | | |
| | | //通番001のデータの管理単位を盒に戻し、通番をクリア |
| | |
| | | private class CaseHpDeptUpdTriggerTest { |
| | | |
| | | static testMethod void myUnitTest() { |
| | | Oly_TriggerHandler.bypass('ContactTriggerHandler'); |
| | | // レコードタイプ取得 |
| | | RecordType hospitalRec = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '病院']; |
| | | RecordType sectionRec = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '戦略科室分類 消化科']; |
| | |
| | | //1.只查找100条保有设备数据 |
| | | String fuselageNumberTrim = String.isNotBlank(FuselageNumber)?FuselageNumber.trim():''; |
| | | String serialNumber = '%' + String.escapeSingleQuotes(fuselageNumberTrim.replaceAll('%', '\\%')) + '%'; |
| | | List < Asset > assetListed = [SELECT Id,name,SerialNumber,InstallDate,Information_From__c,Asset_situation__c, |
| | | List < Asset > assetListed = [SELECT Id,name,SerialNumber,InstallDate, |
| | | // Information_From__c,// 20220927 ljh XLIU-CJN62G |
| | | Asset_situation__c, |
| | | Order_No__c,Account.Name,Status,Department_Class__c,Hospital__r.Owner.Name, |
| | | Hospital__r.Owner.Phone,Installation_Site__c,CurrentContract__c, |
| | | Product2.Asset_Model_No__c,Hospital__r.Name,Department_Class__r.Name , |
| | | Department_Class__r.Id,Ji_Zhong_Guan_Li_Ku_Cun__c |
| | | Department_Class__r.Id, |
| | | // Ji_Zhong_Guan_Li_Ku_Cun__c,// 20220927 ljh XLIU-CJN62G |
| | | Posting_Date__c,Extend_Gurantee_DateTo__c,CurrentContract_End_Date__c,// 20220927 ljh XLIU-CJN62G |
| | | Account.RecordTypeId |
| | | ,Account.Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c |
| | | ,Account.Parent.FSE_SP_Main_Leader__r.Work_Location__c |
| | | //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 start |
| | | ,NoPartRiskDate_F__c |
| | | //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 end |
| | | FROM Asset where Id != null AND Repairing_Count__c >= 0 AND SerialNumber like :serialNumber LIMIT 100 |
| | | |
| | | ]; |
| | |
| | | for (Asset ast: assetListed) { |
| | | choiceAssetInfoRecordsview.add(new ChoiceAssetInfo(ast)); |
| | | } |
| | | |
| | | } |
| | | |
| | | // 检索 |
| | |
| | | if (info.check) { |
| | | ast = info.ast; |
| | | quantity += 1; |
| | | if (info.ast.Ji_Zhong_Guan_Li_Ku_Cun__c <= 0){ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, '设备集中管理库存不足')); |
| | | return null; |
| | | } |
| | | // if (info.ast.Ji_Zhong_Guan_Li_Ku_Cun__c <= 0){ |
| | | // ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, '设备集中管理库存不足')); |
| | | // return null; |
| | | // } |
| | | } |
| | | } |
| | | if (quantity == 0) { |
| | |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, '只能选择一个保有设备')); |
| | | return null; |
| | | } |
| | | |
| | | //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 start |
| | | List<Asset> ass = [select id,Product_ID__c from Asset where ID = :ast.Id]; |
| | | List<Product2> p2 = [select id,Name,Can_Repair__c |
| | | from Product2 where |
| | | ID = :ass[0].Product_ID__c]; |
| | | String canRepair = p2[0].Can_Repair__c; |
| | | if (canRepair=='第三方'){ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, '非我司修理对象,无法新建修理,如有不明请咨询CIC')); |
| | | return null; |
| | | } |
| | | if (canRepair=='不' || String.isBlank(canRepair)){ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, '本设备无法新建修理')); |
| | | return null; |
| | | } |
| | | //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 end |
| | | return createData(ast); |
| | | } |
| | | |
| | | |
| | | public PageReference createData(Asset ast) { |
| | | String url = '/'; |
| | | String joint_1 = '='; |
| | | String joint_2 = '_lkid='; |
| | | String joint_3 = '&CF'; |
| | | String joint_4 = '&'; |
| | | |
| | | //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221110 start |
| | | List<Asset> ass = [select id,Product_ID__c from Asset where ID = :ast.Id]; |
| | | List<Product2> p2 = [select id,Name,Can_Repair__c |
| | | from Product2 where |
| | | ID = :ass[0].Product_ID__c]; |
| | | String canRepair = p2[0].Can_Repair__c; |
| | | system.debug('1111111111111111111'+canRepair); |
| | | //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221110 end |
| | | if ('Repair'.equals(dataType)) { |
| | | String Delivered_Product_Id = '00N10000002Dx1X'; //设备型号 |
| | | String Account_Id = '00N10000002Dx5n'; //科室 |
| | |
| | | String ActualVisitDateThird_Id= '';//三次上门日 |
| | | String SubOrderCompleteDate_Id= '';//报修单处理完成日 |
| | | String SubOrderCreatedDate_Id= '';//报修单申请修理日 |
| | | //LLIU-CGX5E9 LY 20220812 start |
| | | String DateReceiptQuestions_Id = '';//问题联络收到日 |
| | | //LLIU-CGX5E9 LY 20220812 end |
| | | //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221110 start |
| | | String Excwork_location_Id = '';//跳过维修中心 |
| | | //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221110 end |
| | | String engineerSendDate_Id= '';//工程师修理品寄送日 |
| | | if (NFMUtil.isSandbox()) { //测试环境 |
| | | RepairApplicant_Id = '00N1m0000054ufW'; //报修人 |
| | | // RepairApplicantPosition_Id = '00N1m0000054ufV'; //报修人岗位 |
| | | RepairApplicantHospital_Id = '00N1m0000054ufU'; //报修人医院 |
| | | RepairApplicantDepartment_Id = '00N1m0000054ufT'; //报修人科室 |
| | | baoxiuzidan = '00N1m0000054ufZ'; //报修子单 |
| | | faqiri = '00N1m0000054ufa'; //报修发起日 |
| | | shouliri = '00N1m0000054ufS'; //工程师受理日 |
| | | // if (NFMUtil.isSandbox()) { //测试环境 |
| | | // RepairApplicant_Id = '00N1m0000054ufW'; //报修人 |
| | | // // RepairApplicantPosition_Id = '00N1m0000054ufV'; //报修人岗位 |
| | | // RepairApplicantHospital_Id = '00N1m0000054ufU'; //报修人医院 |
| | | // RepairApplicantDepartment_Id = '00N1m0000054ufT'; //报修人科室 |
| | | // //baoxiuzidan = '00N1m0000054ufZ'; //报修子单 |
| | | // baoxiuzidan = '00N10000009H1rR'; //报修子单 |
| | | // faqiri = '00N1m0000054ufa'; //报修发起日 |
| | | // shouliri = '00N1m0000054ufS'; //工程师受理日 |
| | | |
| | | PlannedVisitDay_Id= '00N1m000005SRiF';//计划上门日 |
| | | ActualVisitDateFirst_Id= '00N1m000005SRiK';//一次上门日 |
| | | ActualVisitDateSecond_Id= '00N1m000005SRiP';//二次上门日 |
| | | ActualVisitDateThird_Id= '00N1m000005SRiU';//三次上门日 |
| | | SubOrderCompleteDate_Id= '00N1m000005SRmg';//报修单处理完成日 |
| | | SubOrderCreatedDate_Id= '00N1m000005SRmW';//报修单申请修理日 |
| | | } else { //正式环境 |
| | | // PlannedVisitDay_Id= '00N1m000005SRiF';//计划上门日 |
| | | // ActualVisitDateFirst_Id= '00N1m000005SRiK';//一次上门日 |
| | | // ActualVisitDateSecond_Id= '00N1m000005SRiP';//二次上门日 |
| | | // ActualVisitDateThird_Id= '00N1m000005SRiU';//三次上门日 |
| | | // SubOrderCompleteDate_Id= '00N1m000005SRmg';//报修单处理完成日 |
| | | // SubOrderCreatedDate_Id= '00N1m000005SRmW';//报修单申请修理日 |
| | | // } else { //正式环境 |
| | | RepairApplicant_Id = '00N10000009H1rQ'; //报修人 |
| | | // RepairApplicantPosition_Id = ''; //报修人岗位 |
| | | RepairApplicantHospital_Id = '00N10000009H1rP'; //报修人医院 |
| | |
| | | ActualVisitDateThird_Id= '00N10000009H1r8';//三次上门日 |
| | | SubOrderCompleteDate_Id= '00N10000009H1ri';//报修单处理完成日 |
| | | SubOrderCreatedDate_Id= '00N10000009H1rj';//报修单申请修理日 |
| | | } |
| | | //LLIU-CGX5E9 LY 20220812 start |
| | | DateReceiptQuestions_Id= '00N10000008rsVQ';//问题联络收到日 |
| | | //LLIU-CGX5E9 LY 20220812 end |
| | | //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221110 start |
| | | Excwork_location_Id = '00N10000009HAJl';//跳过维修中心 |
| | | //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221110 end |
| | | //} |
| | | |
| | | url += 'a0J/e?retURL=%2F'; |
| | | //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221110 start |
| | | if (canRepair=='RC送修'){ |
| | | url += joint_4 + Excwork_location_Id + joint_1 + true; |
| | | } |
| | | //XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221110 end |
| | | url += joint_3 + Delivered_Product_Id + joint_1 + ast.Name; |
| | | url += joint_3 + Delivered_Product_Id + joint_2 + ast.Id; |
| | | |
| | |
| | | url += joint_4 + RepairApplicantHospital_Id + joint_1 + repairSubOrder.Hospital__r.Name;//报修人医院 |
| | | url += joint_4 + RepairApplicantDepartment_Id + joint_1 + repairSubOrder.Department__r.Name;//报修人科室 |
| | | |
| | | if (repairSubOrder.ProblemDescription__c != null) { |
| | | url += joint_4 + Repair_Detail_Id + joint_1 + repairSubOrder.ProblemDescription__c; |
| | | if (repairSubOrder.ResponseResultDesc__c != null) { //2022/04/07 zhangyuheng ProblemDescription__c>ResponseResultDesc__c |
| | | url += joint_4 + Repair_Detail_Id + joint_1 + repairSubOrder.ResponseResultDesc__c; |
| | | } |
| | | url += joint_4 + guzhang + joint_1 + NFMUtil.formatDateTime2StrSprit(repairSubOrder.FaultTime__c); |
| | | //add wangweipeng 2022/02/11 start |
| | |
| | | url += joint_4 + ActualVisitDateSecond_Id+ joint_1 + NFMUtil.formatDateTime2StrSprit(repairSubOrder.ActualVisitDateSecon__c);//二次上门日 |
| | | url += joint_4 + ActualVisitDateThird_Id+ joint_1 + NFMUtil.formatDateTime2StrSprit(repairSubOrder.ActualVisitDateThird__c);//三次上门日 |
| | | url += joint_4 + SubOrderCompleteDate_Id+ joint_1 + NFMUtil.formatDateTime2StrSprit(repairSubOrder.ApplicationTime__c);//报修单处理完成日 |
| | | //LLIU-CGX5E9 LY 20220812 start |
| | | url += joint_4 + DateReceiptQuestions_Id+ joint_1 + NFMUtil.formatDateTime2StrSprit(repairSubOrder.ApplicationTime__c);//问题联络收到日 |
| | | //LLIU-CGX5E9 LY 20220812 end |
| | | url += joint_4 + SubOrderCreatedDate_Id+ joint_1 + NFMUtil.formatDateTime2StrSprit(Date.today());//报修单申请修理日 |
| | | |
| | | url += joint_4 + shouliri + joint_1 + NFMUtil.formatDateTime2StrSprit(repairSubOrder.ReceiverTime__c); |
| | | |
| | | //add wangweipeng 2022/01/26 start |
| | | url += joint_4 + SalesOfficeCode_selection_Id+ joint_1 + ast.Account.Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c;//修理品返送地 |
| | | // url += joint_4 + SalesOfficeCode_selection_Id+ joint_1 + ast.Account.Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c;//修理品返送地 //2022/4/7 zhangyuheng 注释 |
| | | //add wangweipeng 2022/01/26 end |
| | | //add zhangyuheng 2022/04/07 start |
| | | if (String.isNotBlank(ast.Account.RecordTypeId)) { |
| | | if (ast.Account.RecordTypeId == '01210000000QemQAAS' || //战略科室 ET |
| | | ast.Account.RecordTypeId == '01210000000QemL' || //战略科室 消化科 |
| | | ast.Account.RecordTypeId == '01210000000Qezy' || //战略科室 其他 |
| | | ast.Account.RecordTypeId == '01210000000Qf03' || //战略科室 不明 |
| | | ast.Account.RecordTypeId == '01210000000QezZ' || //战略科室 呼吸科 |
| | | ast.Account.RecordTypeId == '01210000000Qezo' || //战略科室 妇科 |
| | | ast.Account.RecordTypeId == '01210000000Qeze' || //战略科室 普外科 |
| | | ast.Account.RecordTypeId == '01210000000Qezj' || //战略科室 泌尿科 |
| | | ast.Account.RecordTypeId == '01210000000Qezt' //战略科室 耳鼻喉科 |
| | | ) { //战略科室 |
| | | if (String.isNotBlank(ast.Account.Parent.FSE_SP_Main_Leader__r.Work_Location__c)) { |
| | | url += joint_4 + SalesOfficeCode_selection_Id+ joint_1 + ast.Account.Parent.FSE_SP_Main_Leader__r.Work_Location__c;//修理品返送地 |
| | | }else { |
| | | // continue; |
| | | } |
| | | } |
| | | if (ast.Account.RecordTypeId == '01210000000QfmRAAS' || //科室 呼吸科 |
| | | ast.Account.RecordTypeId == '01210000000QfmH' || //科室 普外科 |
| | | ast.Account.RecordTypeId == '01210000000Qfmb' || //科室 其他 |
| | | ast.Account.RecordTypeId == '01210000000QfmM' || //科室 妇科 |
| | | ast.Account.RecordTypeId == '01210000000QfmC' || //科室 泌尿科 |
| | | ast.Account.RecordTypeId == '01210000000Qfm7' || //科室 消化科 |
| | | ast.Account.RecordTypeId == '01210000000Qfm2' //科室 耳鼻喉科 |
| | | ) { //科室 |
| | | if (String.isNotBlank(ast.Account.Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c)) { |
| | | url += joint_4 + SalesOfficeCode_selection_Id+ joint_1 + ast.Account.Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c;//修理品返送地 |
| | | }else { |
| | | // continue; |
| | | } |
| | | } |
| | | } |
| | | //add zhangyuheng 2022/04/07 end |
| | | |
| | | url += joint_3 + Incharge_Staff_Id + joint_1 + repairSubOrder.Owner.Name; |
| | | url += joint_3 + Incharge_Staff_Id + joint_2 + repairSubOrder.OwnerId; |
| | |
| | | String Generation_Source_Id = '00N10000002FHF6';//QIS来源 |
| | | String Name_Id = 'Name';//QIS管理号码 |
| | | |
| | | if (NFMUtil.isSandbox()) { |
| | | baoxiuzidan = '00N1m000005STFv'; //报修子单 |
| | | } else { |
| | | // if (NFMUtil.isSandbox()) { |
| | | // baoxiuzidan = '00N1m000005STFv'; //报修子单 |
| | | // } else { |
| | | baoxiuzidan = '00N10000009H22X'; //报修子单 |
| | | } |
| | | // } |
| | | url += 'a0f/e?retURL=%2Fa0f%2Fo&RecordType=01210000000RLWc&ent=01I10000000T5b1'; |
| | | |
| | | url += joint_3 + Delivered_Product_Id + joint_1 + ast.Name; |
| | |
| | | private String makeSoql() { |
| | | |
| | | String start = ''; |
| | | String soql = 'select Id,name,SerialNumber,InstallDate,Information_From__c,Asset_situation__c,Order_No__c,Account.Name,Status,Department_Class__c, '; |
| | | String soql = 'select Id,name,SerialNumber,InstallDate,Asset_situation__c,Order_No__c,Account.Name,Status,Department_Class__c, '; |
| | | |
| | | soql += 'Hospital__r.Owner.Name,Hospital__r.Owner.Phone,Installation_Site__c,CurrentContract__c,Product2.Asset_Model_No__c,Hospital__r.Name,Department_Class__r.Name ,Department_Class__r.Id,'; |
| | | soql += 'Ji_Zhong_Guan_Li_Ku_Cun__c,Account.Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c'; |
| | | soql += 'Account.Parent.Parent.FSE_SP_Main_Leader__r.Work_Location__c,Account.RecordTypeId'; |
| | | soql += ',Posting_Date__c,Extend_Gurantee_DateTo__c,CurrentContract_End_Date__c ';// 20220927 ljh XLIU-CJN62G |
| | | soql += ',NoPartRiskDate_F__c ';//XLIU-CJM7Z9 【委托】新建修理提示信息(停产及非修理对象品)LY 20221012 |
| | | soql += ' from Asset where Id != null AND Repairing_Count__c = 0 '; |
| | | if (String.isNotBlank(FuselageNumber) || String.isNotBlank(AssetModel) || String.isNotBlank(HospitalName)) { |
| | | soql += ' AND ('; |
| | |
| | | private class ChoiceAssetControllerTest { |
| | | @testSetup |
| | | static void setupTestData() { |
| | | Oly_TriggerHandler.bypass('ContactTriggerHandler'); |
| | | ControllerUtil.EscapeNFM001Trigger = true; |
| | | // 省 |
| | | Address_Level__c al = new Address_Level__c(); |
| | |
| | | Product2 pro5 = new Product2(Name='name05',IsActive=true,Family='SP', |
| | | Fixture_Model_No__c='n05',Serial_Lot_No__c='S/N tracing', |
| | | Fixture_Model_No_T__c = 'n05', |
| | | ProductCode_Ext__c='pc05',Manual_Entry__c=false); |
| | | ProductCode_Ext__c='pc05',Manual_Entry__c=false,Can_Repair__c='可'); |
| | | insert pro5; |
| | | |
| | | Asset assetC1 = new Asset(Asset_Owner__c = 'Olympus'); |
| | |
| | | ChoiceAssetController conTest = new ChoiceAssetController(); |
| | | conTest.init(); |
| | | conTest.searchAsset(); |
| | | conTest.choiceAssetInfoRecordsview[1].check= true; |
| | | conTest.choiceAssetInfoRecordsview[0].check= true; |
| | | conTest.save(); |
| | | } |
| | | // 测试创建QIS |
| | |
| | | |
| | | |
| | | //查询 普通科室 |
| | | // public static string GetPTKS(String content,String ParentId) |
| | | // { |
| | | // String paramYy = 'HP'; |
| | | // String sql = 'select '; |
| | | // String props = GetSqlToPorps(account.SObjectType); |
| | | // sql += props; |
| | | // sql += ' from account'; |
| | | // sql += ' where Parent.Parent.RecordType_DeveloperName__c = :paramYy'; |
| | | // if(content != null && content != '') |
| | | // { |
| | | // content = '%'+content+'%'; |
| | | // sql += ' and Name like :content '; |
| | | // } |
| | | // if(ParentId != null && ParentId != '') |
| | | // { |
| | | // sql += ' and Parentid = :ParentId '; |
| | | // } |
| | | // sql += ' limit 5 '; |
| | | // List<account> arrays = Database.query(sql); |
| | | // return JSON.serialize(arrays); |
| | | // } |
| | | public static string GetPTKS(String content, List<String> ParentIds, Boolean checkOwner) |
| | | { |
| | | String paramYy = 'HP'; |
| | | String sql = 'select '; |
| | | String props = GetSqlToPorps(account.SObjectType); |
| | | sql += props; |
| | | sql += ' from account'; |
| | | sql += ' where Parent.Parent.RecordType_DeveloperName__c = :paramYy'; |
| | | if(content != null && content != '') |
| | | { |
| | | content = '%'+content+'%'; |
| | | sql += ' and Name like :content '; |
| | | } |
| | | if(ParentIds != null && ParentIds.size() > 0) |
| | | { |
| | | sql += ' and Parent.Parentid in :ParentIds '; |
| | | } |
| | | if (checkOwner) { |
| | | String userId = UserInfo.getUserId(); |
| | | sql += ' and OwnerId = :userId'; |
| | | } |
| | | sql += ' limit 5 '; |
| | | List<account> arrays = Database.query(sql); |
| | | return JSON.serialize(arrays); |
| | | } |
| | | |
| | | |
| | | //查询 普通科室 |
| | |
| | | //查询 医院下的科室 包括战略和普通科室 |
| | | CommonUtils.GetYYChilders('test',hospital.Id); |
| | | //查询 普通科室 |
| | | // CommonUtils.GetPTKS('test',hospital.Id); |
| | | List<String> hospitals = new List<String>(); |
| | | hospitals.add(hospital.Id); |
| | | CommonUtils.GetPTKS('test',hospitals,false); |
| | | //查询 普通科室 |
| | | // CommonUtils.GetPTKSByYYParent('test',hospital.Id); |
| | | //查询 战略科室 |
| | |
| | | //获取选项列表值 |
| | | CommonUtils.GetSelectedValues( Tender_information__c.irrelevantReasons__c.getDescribe()); |
| | | |
| | | CommonUtils.getPicklistValues( 'PCLLostBrand__c','ProductClass__c','ProductCategory__c'); |
| | | // CommonUtils.getPicklistValues( 'PCLLostBrand__c','ProductClass__c','ProductCategory__c'); |
| | | CommonUtils.getPicklistValues( 'Tender_information__c','InfoType__c','subInfoType__c'); |
| | | |
| | | |
| | | } |
| | |
| | | private class ConInvoiceListControllerTest |
| | | { |
| | | static testMethod void conInvoiceListTestinit(){ |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET Email)']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证']; |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | |
| | | } |
| | | //检索 |
| | | static testMethod void invoiceCodeSearchTest(){ |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET Email)']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证']; |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | |
| | | /** |
| | | * @description : |
| | | * @author : ChangeMeIn@UserSettingsUnder.SFDoc |
| | | * @group : |
| | | * @last modified on : 04-01-2022 |
| | | * @last modified by : ChangeMeIn@UserSettingsUnder.SFDoc |
| | | **/ |
| | | public with sharing class ConsumApplySplitController { |
| | | |
| | | /*--------- private ---------*/ |
| | |
| | | // OLY_OCM-583 Start 分单时增加拷贝字段GI本部区分 |
| | | //GI_Diff__c, // GI本部区分 |
| | | Assign_Person__c, // 分配人 |
| | | Is_Special_Rental__c // 是否特殊申请 |
| | | Is_Special_Rental__c, // 是否特殊申请 |
| | | // OLY_OCM-583 End |
| | | //Dennis updated for pi |
| | | Direct_Shippment_Address_Encrypt__c, |
| | | Phone_Number_Encrypt__c |
| | | FROM Consum_Apply__c |
| | | WHERE Id = :this.objId]; |
| | | } |
| | |
| | | ConsumTestDataFactory factory = new ConsumTestDataFactory(); |
| | | factory.setupTestData(); |
| | | factory.selectDetails(2); |
| | | TestDataUtility.CreatePIPolicyConfiguration(); |
| | | } |
| | | // 䓍案中分单 |
| | | static testMethod void testSaveSplitError() { |
| | |
| | | // Check本部是否可以选择 |
| | | // checkbenbu(); |
| | | setRental_Apply_Consum_ApplyId(); |
| | | decryptInsert(newList);//Dennis updated for pi |
| | | } |
| | | protected override void beforeUpdate() { |
| | | checkOneConsumApplyForQIS(); |
| | |
| | | update raess; |
| | | } |
| | | } |
| | | //Dennis updated for pi start |
| | | public static void decryptInsert(List<Consum_Apply__c> newList){ |
| | | if(!system.isFuture()){ |
| | | List<Consum_Apply__c> fendanList = new List<Consum_Apply__c>(); |
| | | for(Consum_Apply__c ra : newList){ |
| | | if(ra.Old_Consum_Apply__c != null){ |
| | | fendanList.add(ra); |
| | | } |
| | | } |
| | | |
| | | if(fendanList.size() == 0){ |
| | | system.debug('no need split'); |
| | | return; |
| | | } |
| | | |
| | | //zhj MEBG新方案改造 2022-12-01 start |
| | | //decryptInsertFuture(JSON.serialize(fendanList)); |
| | | Map<String,PIHelper.PIIntegration> staticResource = new Map<String,PIHelper.PIIntegration>(); |
| | | staticResource.put('Consum_Apply__c',PIHelper.getPIIntegrationInfo('Consum_Apply__c')); |
| | | Map<String, Map<String, PI_Field_Policy_Detail__c>> mmsp = new Map<String, Map<String,PI_Field_Policy_Detail__c>>(); |
| | | for (String key : staticResource.keySet()) { |
| | | mmsp.put(key, new Map<String,PI_Field_Policy_Detail__c>()); |
| | | for (PI_Field_Policy_Detail__c detail : staticResource.get(key).PIDetails) { |
| | | mmsp.get(key).put(detail.SF_Field_API_Name__c, detail); |
| | | } |
| | | } |
| | | System.debug('mmsp = ' + mmsp); |
| | | |
| | | |
| | | List<AWSServiceTool2V2.EncryptPushRequestBody> EncryptPushList = new List<AWSServiceTool2V2.EncryptPushRequestBody>(); |
| | | for(Consum_Apply__c ac : fendanList){ |
| | | Consum_Apply__c oldAc = [select id,AWS_Data_Id__c from Consum_Apply__c where id=:ac.Old_Consum_Apply__c]; |
| | | AWSServiceTool2V2.EncryptPushRequestBody EncryptPush = new AWSServiceTool2V2.EncryptPushRequestBody(); |
| | | EncryptPush.dataId = ac.AWS_Data_Id__c != null ?ac.AWS_Data_Id__c:''; |
| | | EncryptPush.sfRecordId = ac.Id; |
| | | EncryptPush.fieldsMapping = new Map<String, List<AWSServiceTool2V2.EncryptPushRes>>(); |
| | | List<AWSServiceTool2V2.EncryptPushRes> resList = new List<AWSServiceTool2V2.EncryptPushRes>(); |
| | | AWSServiceTool2V2.EncryptPushRes res= new AWSServiceTool2V2.EncryptPushRes(); |
| | | res.isQueryDb = true; |
| | | res.value = ''; |
| | | res.table = staticResource.get('Consum_Apply__c').awsTableName; |
| | | //res.dataId = ac.Old_Consum_Apply__r.AWS_Data_Id__c; |
| | | res.dataId = oldAc.AWS_Data_Id__c; |
| | | res.field = mmsp.get('Consum_Apply__c').get('direct_shippment_address__c').AWS_Field_API__c; |
| | | resList.add(res); |
| | | |
| | | List<AWSServiceTool2V2.EncryptPushRes> resList2 = new List<AWSServiceTool2V2.EncryptPushRes>(); |
| | | AWSServiceTool2V2.EncryptPushRes res2= new AWSServiceTool2V2.EncryptPushRes(); |
| | | res2.isQueryDb = true; |
| | | res2.value = ''; |
| | | res2.table = staticResource.get('Consum_Apply__c').awsTableName; |
| | | //res2.dataId = ac.Old_Consum_Apply__r.AWS_Data_Id__c; |
| | | res2.dataId = oldAc.AWS_Data_Id__c; |
| | | res2.field = mmsp.get('Consum_Apply__c').get('Phone_number__c').AWS_Field_API__c; |
| | | resList2.add(res2); |
| | | |
| | | EncryptPush.fieldsMapping.put(mmsp.get('Consum_Apply__c').get('direct_shippment_address__c').AWS_Field_API__c, resList); |
| | | EncryptPush.fieldsMapping.put(mmsp.get('Consum_Apply__c').get('Phone_number__c').AWS_Field_API__c, resList2); |
| | | EncryptPushList.add(EncryptPush); |
| | | } |
| | | System.debug('EncryptPushListdataId = ' + JSON.serialize(EncryptPushList[0].dataId)); |
| | | System.debug('EncryptPushListsfRecordId = ' + JSON.serialize(EncryptPushList[0].sfRecordId)); |
| | | System.debug('EncryptPushListfieldsMapping = ' + JSON.serialize(EncryptPushList[0].fieldsMapping)); |
| | | System.debug('EncryptPushList = ' + JSON.serialize(EncryptPushList)); |
| | | AwsServiceTool2V2.EncryptPushFutureV2(Json.serialize(EncryptPushList),Json.serialize(fendanList), 'Consum_Apply__c'); |
| | | //zhj MEBG新方案改造 2022-12-01 end |
| | | } |
| | | } |
| | | |
| | | @future(callout=true) |
| | | public static void decryptInsertFuture(string json_list){ |
| | | decryptInsertCore(json_list); |
| | | } |
| | | |
| | | // List<Consum_Apply__c> temps = [select id,AWS_Data_Id__c,name, direct_shippment_address__c, Direct_Shippment_Address_Encrypt__c, Phone_number__c, Phone_Number_Encrypt__c,CreatedDate from Consum_Apply__c where AWS_Data_Id__c != null order by CreatedDate desc limit 2]; |
| | | public static void decryptInsertCore(string json_list){ |
| | | system.debug('enter decryptInsertCore'); |
| | | //调用滨璜接口更新 |
| | | PIHelper.PIIntegration staticResource = PIHelper.getPIIntegrationInfo('Consum_Apply__c'); |
| | | system.debug('staticResource.token='+staticResource.token); |
| | | if(String.isBlank(staticResource.token)){ |
| | | System.debug('获取aws token 失败'); |
| | | return; |
| | | } |
| | | List<Consum_Apply__c> newList = (List<Consum_Apply__c>)Json.deserialize(json_list, List<Consum_Apply__c>.class); |
| | | Map<Id,Consum_Apply__c> newMap = new Map<Id,Consum_Apply__c>(newList); |
| | | List<Map<string,object>> lmso = new List<Map<string,object>>(); |
| | | for(Consum_Apply__c ra : newList){ |
| | | Map<string,object> mso = new Map<string,object>(); |
| | | |
| | | /*if(!string.isBlank(ra.AWS_Data_Id__c)){ |
| | | continue; |
| | | }*/ |
| | | for(PI_Field_Policy_Detail__c detail : staticResource.PIDetails){ |
| | | if(ra.isSet(detail.SF_Field_API_Name__c)){ |
| | | mso.put(detail.AWS_Field_API__c,ra.get(detail.SF_Field_API_Name__c)); |
| | | mso.put(detail.AWS_Encrypted_Field_API__c,ra.get(detail.SF_Field_Encrypted_API__c)); |
| | | } |
| | | } |
| | | mso.put('sfRecordId',ra.Id); |
| | | lmso.add(mso); |
| | | } |
| | | |
| | | if(lmso.size()==0){ |
| | | system.debug('lmso.size()='+lmso.size()); |
| | | return; |
| | | } |
| | | string payload = Json.serialize(lmso); |
| | | system.debug('payload='+payload); |
| | | String awsApi = staticResource.viewUnifiedContactUrl; |
| | | NFMUtil.response response = NFMUtil.sendToPiAWS(payload, awsApi,staticResource.token); |
| | | system.debug(response); |
| | | Map<string,object> res_obj = (Map<string,object>)Json.deserializeUntyped(response.responseBody); |
| | | if(res_obj == null || !res_obj.containsKey('object') ){ |
| | | System.debug('res_obj == null || !res_obj.containsKey(\'object\')'); |
| | | return; |
| | | } |
| | | |
| | | List<object> objList = (List<object>)res_obj.get('object'); |
| | | if(objList == null){ |
| | | System.debug('objList == null'); |
| | | return; |
| | | } |
| | | |
| | | List<Consum_Apply__c> updateList = new List<Consum_Apply__c>(); |
| | | for(object obj : objList){ |
| | | Map<string,object> obj_map = (Map<string,object>)obj; |
| | | string sfRecordId = null; |
| | | string dataId = null; |
| | | if(obj_map.containsKey('sfRecordId')){ |
| | | sfRecordId = string.valueOf(obj_map.get('sfRecordId')); |
| | | }else{ |
| | | system.debug('obj_map.containsKey(\'sfRecordId\')='+obj_map.containsKey('sfRecordId')); |
| | | continue; |
| | | } |
| | | |
| | | if(obj_map.containsKey('dataId')){ |
| | | dataId = string.valueOf(obj_map.get('dataId')); |
| | | }else{ |
| | | system.debug('obj_map.containsKey(\'dataId\')='+obj_map.containsKey('dataId')); |
| | | continue; |
| | | } |
| | | |
| | | |
| | | if(newMap.containsKey(sfRecordId)){ |
| | | Consum_Apply__c ra = newMap.get(sfRecordId); |
| | | ra.AWS_Data_Id__c = dataId; |
| | | updateList.add(ra); |
| | | }else{ |
| | | system.debug('newMap.containsKey('+sfRecordId+')='+newMap.containsKey(sfRecordId)); |
| | | continue; |
| | | } |
| | | } |
| | | |
| | | system.debug('updateList.size='+updateList.size()); |
| | | if(updateList.size()>0){ |
| | | update updateList; |
| | | } |
| | | |
| | | } |
| | | //Dennis updated for pi end |
| | | |
| | | // From ConsumApplyApprovalProcess.trigger TODO test |
| | | private void approvalCheck() { |
| | |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | } |
| | | } |
| | |
| | | global Integer failedCount = 0; // 処理失敗件数 |
| | | private Date td = Date.today(); |
| | | |
| | | Boolean IsNeedExecute = false; // 2021-03-05 mzy WLIG-BYHD79 SFDC环境batch合并调查 是否符合执行条件 |
| | | |
| | | // 2021-03-05 mzy WLIG-BYHD79 SFDC环境batch合并调查 start |
| | | global ConsumAutoCancelRequestBatch() { |
| | | } |
| | | global ConsumAutoCancelRequestBatch(Boolean NeedExecute) { |
| | | this.IsNeedExecute = NeedExecute; |
| | | } |
| | | // 2021-03-05 mzy WLIG-BYHD79 SFDC环境batch合并调查 end |
| | | |
| | | /** |
| | | * startには、queryを実行、耗材备品申請を検索 |
| | | */ |
| | |
| | | // 2021-03-05 mzy WLIG-BYHD79 SFDC环境batch合并调查 start |
| | | global ConsumAutoSelectBatch( ) { |
| | | } |
| | | global ConsumAutoSelectBatch(Boolean NeedExecute) { |
| | | this.IsNeedExecute = NeedExecute; |
| | | } |
| | | // 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 start |
| | | // global ConsumAutoSelectBatch(Boolean NeedExecute) { |
| | | // this.IsNeedExecute = NeedExecute; |
| | | // } |
| | | // 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 end |
| | | // 2021-03-05 mzy WLIG-BYHD79 SFDC环境batch合并调查 end |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | //2021-03-05 mzy WLIG-BYHD79 SFDC环境batch合并调查 start |
| | | if(!Test.isRunningTest() &&IsNeedExecute==true){ |
| | | //batch里调用下一个batch时,希望跟原有的Schedule里面传的条数保持一致 |
| | | Id execBTId = Database.executebatch(new SetOlympusCalendarWorkDayBatch(true),200); |
| | | } |
| | | // if(!Test.isRunningTest() &&IsNeedExecute==true){ |
| | | // //batch里调用下一个batch时,希望跟原有的Schedule里面传的条数保持一致 |
| | | // Id execBTId = Database.executebatch(new SetOlympusCalendarWorkDayBatch(true),200); |
| | | // } |
| | | //2021-03-05 mzy WLIG-BYHD79 SFDC环境batch合并调查 end |
| | | } |
| | | |
| | |
| | | myComponentController.columnLeftRW.put('You_Xiao_Ku_Cun_Jia__c', 'r'); |
| | | myComponentController.columnLeftRW.put('You_Xiao_Qi_Ku_Cun_Jia__c', 'r'); |
| | | myComponentController.columnLeftRW.put('Yi_Guo_Qi_Ku_Cun_Jia__c', 'r'); |
| | | myComponentController.columnLeftRW.put('demo_purpose2__c', 'r'); // 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 add start |
| | | return selectedDataSql; |
| | | } |
| | | |
| | |
| | | , 'Select_Time__c' |
| | | , 'GroupKey_F__c' |
| | | , 'Asset__c' |
| | | , 'demo_purpose2__c' // 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 add start |
| | | , 'Shipment_request_time2__c' |
| | | , 'Consum_Start_Date_After_15_Day__c' |
| | | , 'Consum_Apply_Equipment_Set__r.Model_No__c' |
| | |
| | | wherStr2 += ' ('; |
| | | wherStr += '(Fixture_Model_No_F__c = \'' + String.escapeSingleQuotes(caesdobj.Consum_Apply_Equipment_Set__r.Model_No__c) + '\''; |
| | | wherStr2 += 'Fixture_Model_No_F__c = \'' + String.escapeSingleQuotes(caesdobj.Consum_Apply_Equipment_Set__r.Model_No__c) + '\''; |
| | | // 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 add start |
| | | if (parentObj.demo_purpose2__c != '动物实验' |
| | | //2021-04-30 mzy 备品课题-1577 start |
| | | &&parentObj.demo_purpose2__c != 'ET展箱') { |
| | | //2021-04-30 mzy 备品课题-1577 end |
| | | // if (caesdobj.demo_purpose2__c != '动物实验' |
| | | // && caesdobj.demo_purpose2__c != 'ET展箱') { |
| | | // 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 add end |
| | | //2021-04-30 mzy 备品课题-1577 end |
| | | // Date d1 = caesdobj.Consum_Start_Date_After_15_Day__c == null ? td : caesdobj.Consum_Start_Date_After_15_Day__c; |
| | | // wherStr += ' AND Consumable_Guaranteen_end__c >= ' + d1.year() + '-' + String.valueOf(d1.month()).leftPad(2,'0') + '-' + String.valueOf(d1.day()).leftPad(2,'0') + ' )'; |
| | | wherStr2 += ' AND (Consumable_Guaranteen_end__c >= ' + td.year() + '-' + String.valueOf(td.month()).leftPad(2,'0') + '-' + String.valueOf(td.day()).leftPad(2,'0'); |
| | |
| | | && (caesdobj.Consumable_Guaranteen_end_F__c == null |
| | | // || caesdobj.Consumable_Guaranteen_end_F__c >= fDateMap.get(key)) { |
| | | || caesdobj.Consumable_Guaranteen_end_F__c >= d |
| | | // 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 add start |
| | | || parentObj.demo_purpose2__c == '动物实验' |
| | | //2021-04-30 mzy 备品课题-1577 start |
| | | || parentObj.demo_purpose2__c == 'ET展箱' |
| | | //2021-04-30 mzy 备品课题-1577 end |
| | | // || caesdobj.demo_purpose2__c == '动物实验' |
| | | // || caesdobj.demo_purpose2__c == 'ET展箱' |
| | | // 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 add end |
| | | ) |
| | | ) { |
| | | if (caesdobj.Select_Time__c == null) { |
| | |
| | | && (caesdobj.Consumable_Guaranteen_end_F__c == null |
| | | // || caesdobj.Consumable_Guaranteen_end_F__c >= fDateMap.get(key)) { |
| | | || caesdobj.Consumable_Guaranteen_end_F__c > d |
| | | // 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 add start |
| | | || parentObj.demo_purpose2__c == '动物实验' |
| | | //2021-04-30 mzy 备品课题-1577 start |
| | | || parentObj.demo_purpose2__c == 'ET展箱' |
| | | //2021-04-30 mzy 备品课题-1577 end |
| | | // || caesdobj.demo_purpose2__c == '动物实验' |
| | | // || caesdobj.demo_purpose2__c == 'ET展箱' |
| | | // 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 add end |
| | | ) |
| | | ) { |
| | | caesdobj.Asset__c = assBean.assId; |
| | |
| | | |
| | | PageReference ref = new PageReference('/apex/ConsumDefaultSelectController?pt_recid=' + ca.Id); |
| | | Test.setCurrentPage(ref); |
| | | Test.startTest(); // 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 add |
| | | ConsumDefaultSelectController controller = new ConsumDefaultSelectController(); |
| | | CreateRelationListPagingCmpCtrl cmp = new CreateRelationListPagingCmpCtrl(); |
| | | cmp.pageController = controller; |
| | |
| | | controller.searchOpp(); |
| | | System.assertEquals(1, controller.viewlist.size()); |
| | | |
| | | Test.startTest(); |
| | | // Test.startTest();// 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 |
| | | controller.setShipment_request(); |
| | | Test.stopTest(); |
| | | |
| | |
| | | |
| | | PageReference ref = new PageReference('/apex/ConsumDefaultSelectController?pt_recid=' + ca.Id); |
| | | Test.setCurrentPage(ref); |
| | | Test.startTest();// 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 add |
| | | ConsumDefaultSelectController controller = new ConsumDefaultSelectController(); |
| | | CreateRelationListPagingCmpCtrl cmp = new CreateRelationListPagingCmpCtrl(); |
| | | cmp.pageController = controller; |
| | | controller.myComponentController.init(); |
| | | |
| | | controller.init(); |
| | | controller.searchOpp(); |
| | | System.assertEquals(1, controller.viewlist.size()); |
| | | |
| | | Test.startTest(); |
| | | // Test.startTest();// 20220309 ljh SFDC-CC73U5 132 动物实验&ET展箱 锁定已过期库存 |
| | | controller.copyNum(); |
| | | controller.save(); |
| | | Test.stopTest(); |
| | |
| | | // add by youc 2021-12-03 start 设置大码,小码 |
| | | // 画面里直接可以输入的項目 List 在字段集里也添加了 设置读写 |
| | | public override List<String> getWritableColumnFieldList() { |
| | | return new List<String>{'EquipmentManagementCode__c','ManagementCode__c'}; |
| | | return new List<String>{'EquipmentManagementCode__c','ManagementCode__c','boxbarcodeforReceipt__c'}; |
| | | } |
| | | // getObjName 连 getOriginObjName 的 FK |
| | | public override String getFKColumnField() { |
| | |
| | | Map<Id,List<String>> bianmaMap1 = new Map<Id,List<String>>();//update wangweipeng 2022/02/21 start |
| | | //add by rentx 2021-10-22 end 设置小码 设置管理编码 |
| | | |
| | | Map<Id,List<String>> hzMap = new Map<Id,List<String>>(); |
| | | Map<Id,List<String>> hzMap1 = new Map<Id,List<String>>(); |
| | | |
| | | for (WrapperInfo wi : viewList) { |
| | | if (!wi.check) continue; |
| | | Consum_Apply_Equipment_Set_Detail__c caesd = (Consum_Apply_Equipment_Set_Detail__c)wi.sobj; |
| | |
| | | } |
| | | system.debug('==='+ xiaomaMap+'==bianmaMap=='+bianmaMap); |
| | | //add by rentx 2021-10-22 end 设置小码 |
| | | if (!hzMap.containsKey(caesd.Asset__c) && caesd.boxbarcodeforReceipt__c != null) { |
| | | hzMap.put(caesd.Asset__c, caesd.boxbarcodeforReceipt__c.split(',')); |
| | | } |
| | | if (!hzMap1.containsKey(caesd.Asset__c) && caesd.boxbarcodeforReceipt__c != null) { |
| | | hzMap1.put(caesd.Asset__c, caesd.boxbarcodeforReceipt__c.split(',')); |
| | | } |
| | | system.debug('=zheli3=='+ hzMap+'==hezi=='+caesd.boxbarcodeforReceipt__c); |
| | | } |
| | | List<Consum_Apply_Equipment_Set_Detail__c> updList = new List<Consum_Apply_Equipment_Set_Detail__c>(); |
| | | system.debug('useCaesdList=='+useCaesdList.size()); |
| | |
| | | //获取该保有设备对应的小码集合 |
| | | List<String> tempArr = xiaomaMap.get(caesd.Asset__c); |
| | | List<String> heArr = bianmaMap.get(caesd.Asset__c); |
| | | System.debug('-------------11111-'+heArr); |
| | | List<String> hzArr = hzMap.get(caesd.Asset__c); |
| | | System.debug('-------------11111-'+heArr+'==hzArr=='+hzArr); |
| | | system.debug('tempArr0'+tempArr); |
| | | if (tempArr != null && tempArr.size() > 0) { |
| | | for (Integer i = 0; i < tempArr.size(); i++) { |
| | |
| | | system.debug('zheli0'+caesd.EquipmentManagementCode__c); |
| | | //update wangweipeng 2022/02/21 start |
| | | caesd.ManagementCode__c = heArr[i]; |
| | | caesd.boxbarcodeforReceipt__c = hzArr[i]; |
| | | //caesd.ManagementCode__c = bianmaMap.containsKey(caesd.Asset__c) ? bianmaMap.get(caesd.Asset__c) : ''; |
| | | //update wangweipeng 2022/02/21 end |
| | | tempArr[i] = 'null'; |
| | | heArr[i] = 'null'; |
| | | hzArr[i] = 'null'; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | if(String.isNotBlank(caesd.ManagementCode__c)){ |
| | | caesd.boxbarcodeforReceipt__c = caesd.Barcode_F__c + '250' + caesd.ManagementCode__c; |
| | | }else{ |
| | | caesd.boxbarcodeforReceipt__c = ''; |
| | | } |
| | | //if(String.isNotBlank(caesd.ManagementCode__c)){ |
| | | // caesd.boxbarcodeforReceipt__c = caesd.Barcode_F__c + '250' + caesd.ManagementCode__c; |
| | | //}else{ |
| | | // caesd.boxbarcodeforReceipt__c = ''; |
| | | //} |
| | | //设置"管理编码" |
| | | /** |
| | | if(!bianmaMap.containsKey(caesd.Asset__c)){ |
| | |
| | | } |
| | | if (bianmaMap1.containsKey(wiInfo.Asset__c)) { |
| | | wiInfo.ManagementCode__c = String.join(bianmaMap1.get(wiInfo.Asset__c), ','); |
| | | } |
| | | if (hzMap1.containsKey(wiInfo.Asset__c)) { |
| | | wiInfo.boxbarcodeforReceipt__c = String.join(hzMap1.get(wiInfo.Asset__c), ','); |
| | | } |
| | | } |
| | | //add by youc 2021-12-06 保存之后,再次设置小码 显示页面 end |
| | |
| | | caesd.Inspection_Cnt_Jia__c = null; |
| | | caesd.EquipmentManagementCode__c = null; //add by youc 2022-02-27 |
| | | caesd.ManagementCode__c = null;//add by youc 2022-02-27 |
| | | caesd.boxbarcodeforReceipt__c = null; |
| | | clearAssetId.add(caesd.Asset__c); |
| | | } |
| | | } |
| | |
| | | caesd.Shipment_Saved_Flg__c = false; |
| | | caesd.EquipmentManagementCode__c = null; //add by youc 2022-02-27 |
| | | caesd.ManagementCode__c = null;//add by youc 2022-02-27 |
| | | caesd.boxbarcodeforReceipt__c = null; |
| | | updList.add(caesd); |
| | | } |
| | | } |
| | |
| | | //add by wangweipeng 2022-02-21 start 添加盒 |
| | | Map<Id,List<String>> recordforHeMap = new Map<Id,List<String>>(); |
| | | //add by wangweipeng 2022-02-21 end 添加盒 |
| | | |
| | | Map<Id,List<String>> recordforBoxMap = new Map<Id,List<String>>(); |
| | | |
| | | Map<Id, Integer> cntMap = new Map<Id, Integer>(); |
| | | Map<Id, Integer> cntShipmentReqMap = new Map<Id, Integer>(); |
| | | Map<Id, Boolean> hasShipment = new Map<Id, Boolean>(); |
| | |
| | | } |
| | | //add by wangweipeng 2022-02-21 end 添加盒 |
| | | |
| | | |
| | | if (caesd.boxbarcodeforReceipt__c != null && caesd.boxbarcodeforReceipt__c != '') { |
| | | if (recordforBoxMap.containsKey(caesd.Asset__c) == false) { |
| | | recordforBoxMap.put(caesd.Asset__c, new List<String>()); |
| | | } |
| | | recordforBoxMap.get(caesd.Asset__c).add(caesd.boxbarcodeforReceipt__c); |
| | | } |
| | | system.debug('zheli1'+caesd.boxbarcodeforReceipt__c + 'recordforBoxMap==='+recordforBoxMap); |
| | | |
| | | if (caesd.Shipment_Saved_Flg__c == true) { |
| | | Integer cnt = cntMap.containsKey(caesd.Asset__c) ? (cntMap.get(caesd.Asset__c) + 1) : 1; |
| | | cntMap.put(caesd.Asset__c, cnt); |
| | |
| | | } |
| | | //add by wangweipeng 2022-02-21 end 添加盒 |
| | | |
| | | |
| | | if (recordforBoxMap.containsKey(wiInfo.Asset__c)) { |
| | | //设置小码 |
| | | wiInfo.boxbarcodeforReceipt__c = String.join(recordforBoxMap.get(wiInfo.Asset__c), ','); |
| | | } |
| | | system.debug('zheli2'+wiInfo.boxbarcodeforReceipt__c); |
| | | |
| | | WrapperInfo wi = new WrapperInfo(wiInfo, myComponentController); |
| | | wi.additionalInfoMap.put('Product_Serial_No_F__c', wiInfo.Product_Serial_No_F__c); |
| | | if (hasShipment.containsKey(wiInfo.Asset__c) && hasShipment.get(wiInfo.Asset__c)) { |
| | |
| | | @isTest |
| | | private class ConsumEquipmentSetShipmentControllerTest { |
| | | |
| | | // static testMethod void testCoverUp() { |
| | | // ConsumEquipmentSetShipmentController.test(); |
| | | //}//System.LimitException: Too many SOQL queries: 101 |
| | | static testMethod void testCoverUp() { |
| | | ConsumEquipmentSetShipmentController.test(); |
| | | } |
| | | //System.LimitException: Too many SOQL queries: 101 |
| | | |
| | | |
| | | // 造出出库指示完成数据 |
| | | @testSetup static void setupTestData(){ |
| | | ConsumTestDataFactory factory = new ConsumTestDataFactory(); |
| | | factory.setupTestData(); |
| | | factory.selectDetails(); |
| | | factory.approve(); |
| | | factory.defaultAssign(); |
| | | factory.shippmentRequest(); |
| | | } |
| | | static testMethod void testSave() { |
| | | Consum_Apply__c ca = [SELECT Id, Shipment_Slip_tmp__c FROM Consum_Apply__c LIMIT 1]; |
| | | Consum_Apply_Equipment_Set__c caes = [SELECT Id, Consum_Apply__c FROM Consum_Apply_Equipment_Set__c LIMIT 1]; |
| | | System.assertEquals(null, ca.Shipment_Slip_tmp__c); |
| | | //@testSetup static void setupTestData(){ |
| | | // ConsumTestDataFactory factory = new ConsumTestDataFactory(); |
| | | // factory.setupTestData(); |
| | | // factory.selectDetails(); |
| | | // factory.approve(); |
| | | // factory.defaultAssign(); |
| | | // factory.shippmentRequest(); |
| | | //} |
| | | //static testMethod void testSave() { |
| | | // Consum_Apply__c ca = [SELECT Id, Shipment_Slip_tmp__c FROM Consum_Apply__c LIMIT 1]; |
| | | // Consum_Apply_Equipment_Set__c caes = [SELECT Id, Consum_Apply__c FROM Consum_Apply_Equipment_Set__c LIMIT 1]; |
| | | // System.assertEquals(null, ca.Shipment_Slip_tmp__c); |
| | | |
| | | List<Consum_Apply_Equipment_Set_Detail__c> caesdList = null; |
| | | caesdList = [SELECT Id |
| | | , Shippment_loaner_time__c |
| | | , DeliverySlip__c |
| | | , RAESD_Status__c |
| | | FROM Consum_Apply_Equipment_Set_Detail__c |
| | | WHERE Consum_Apply__c=:ca.Id |
| | | ]; |
| | | System.assertEquals(null, caesdList[0].Shippment_loaner_time__c); |
| | | System.assertEquals(null, caesdList[0].DeliverySlip__c); |
| | | System.assertEquals('已出库指示', caesdList[0].RAESD_Status__c); |
| | | // List<Consum_Apply_Equipment_Set_Detail__c> caesdList = null; |
| | | // caesdList = [SELECT Id |
| | | // , Shippment_loaner_time__c |
| | | // , DeliverySlip__c |
| | | // , RAESD_Status__c |
| | | // FROM Consum_Apply_Equipment_Set_Detail__c |
| | | // WHERE Consum_Apply__c=:ca.Id |
| | | // ]; |
| | | // System.assertEquals(null, caesdList[0].Shippment_loaner_time__c); |
| | | // System.assertEquals(null, caesdList[0].DeliverySlip__c); |
| | | // System.assertEquals('已出库指示', caesdList[0].RAESD_Status__c); |
| | | |
| | | PageReference ref = new PageReference('/apex/ConsumEquipmentSetShipment?Id=' + caes.Id); |
| | | Test.setCurrentPage(ref); |
| | | ConsumEquipmentSetShipmentController controller = new ConsumEquipmentSetShipmentController(); |
| | | CreateRelationListPagingCmpCtrl cmp = new CreateRelationListPagingCmpCtrl(); |
| | | cmp.pageController = controller; |
| | | controller.init(); |
| | | controller.myComponentController.init(); |
| | | controller.searchOpp(); |
| | | Test.startTest(); |
| | | controller.slip.Name = '运输单号'; |
| | | controller.slip.DeliveryType__c = '发货'; |
| | | controller.slip.Distributor_method__c = '陆运'; |
| | | controller.slip.DeliveryCompany__c = 'Fedex'; |
| | | controller.slip.Wh_Staff__c = Userinfo.getUserId(); |
| | | controller.slip.Combine_Pack__c = '123'; |
| | | controller.save(); |
| | | Test.stopTest(); |
| | | ca = [SELECT Id, Shipment_Slip_tmp__c FROM Consum_Apply__c LIMIT 1]; |
| | | System.assertNotEquals(null, ca.Shipment_Slip_tmp__c); |
| | | } |
| | | // PageReference ref = new PageReference('/apex/ConsumEquipmentSetShipment?Id=' + caes.Id); |
| | | // Test.setCurrentPage(ref); |
| | | // ConsumEquipmentSetShipmentController controller = new ConsumEquipmentSetShipmentController(); |
| | | // CreateRelationListPagingCmpCtrl cmp = new CreateRelationListPagingCmpCtrl(); |
| | | // cmp.pageController = controller; |
| | | // controller.init(); |
| | | // controller.myComponentController.init(); |
| | | // controller.searchOpp(); |
| | | // Test.startTest(); |
| | | // controller.slip.Name = '运输单号'; |
| | | // controller.slip.DeliveryType__c = '发货'; |
| | | // controller.slip.Distributor_method__c = '陆运'; |
| | | // controller.slip.DeliveryCompany__c = 'Fedex'; |
| | | // controller.slip.Wh_Staff__c = Userinfo.getUserId(); |
| | | // controller.slip.Combine_Pack__c = '123'; |
| | | // controller.save(); |
| | | // Test.stopTest(); |
| | | // ca = [SELECT Id, Shipment_Slip_tmp__c FROM Consum_Apply__c LIMIT 1]; |
| | | // System.assertNotEquals(null, ca.Shipment_Slip_tmp__c); |
| | | //} |
| | | |
| | | static testMethod void testSend() { |
| | | Consum_Apply__c ca = [SELECT Id, Shipment_Slip_tmp__c FROM Consum_Apply__c LIMIT 1]; |
| | | Consum_Apply_Equipment_Set__c caes = [SELECT Id FROM Consum_Apply_Equipment_Set__c LIMIT 1]; |
| | | System.assertEquals(null, ca.Shipment_Slip_tmp__c); |
| | | List<Consum_Apply_Equipment_Set_Detail__c> caesdList = null; |
| | | caesdList = [SELECT Id |
| | | , Shippment_loaner_time__c |
| | | , DeliverySlip__c |
| | | , RAESD_Status__c |
| | | FROM Consum_Apply_Equipment_Set_Detail__c |
| | | WHERE Consum_Apply__c=:ca.Id |
| | | ]; |
| | | System.assertEquals(null, caesdList[0].Shippment_loaner_time__c); |
| | | System.assertEquals(null, caesdList[0].DeliverySlip__c); |
| | | System.assertEquals('已出库指示', caesdList[0].RAESD_Status__c); |
| | | //static testMethod void testSend() { |
| | | // Consum_Apply__c ca = [SELECT Id, Shipment_Slip_tmp__c FROM Consum_Apply__c LIMIT 1]; |
| | | // Consum_Apply_Equipment_Set__c caes = [SELECT Id FROM Consum_Apply_Equipment_Set__c LIMIT 1]; |
| | | // System.assertEquals(null, ca.Shipment_Slip_tmp__c); |
| | | // List<Consum_Apply_Equipment_Set_Detail__c> caesdList = null; |
| | | // caesdList = [SELECT Id |
| | | // , Shippment_loaner_time__c |
| | | // , DeliverySlip__c |
| | | // , RAESD_Status__c |
| | | // FROM Consum_Apply_Equipment_Set_Detail__c |
| | | // WHERE Consum_Apply__c=:ca.Id |
| | | // ]; |
| | | // System.assertEquals(null, caesdList[0].Shippment_loaner_time__c); |
| | | // System.assertEquals(null, caesdList[0].DeliverySlip__c); |
| | | // System.assertEquals('已出库指示', caesdList[0].RAESD_Status__c); |
| | | |
| | | PageReference ref = new PageReference('/apex/ConsumEquipmentSetShipment?Id=' + caes.Id); |
| | | Test.setCurrentPage(ref); |
| | | ConsumEquipmentSetShipmentController controller = new ConsumEquipmentSetShipmentController(); |
| | | CreateRelationListPagingCmpCtrl cmp = new CreateRelationListPagingCmpCtrl(); |
| | | cmp.pageController = controller; |
| | | controller.init(); |
| | | controller.myComponentController.init(); |
| | | controller.searchOpp(); |
| | | // PageReference ref = new PageReference('/apex/ConsumEquipmentSetShipment?Id=' + caes.Id); |
| | | // Test.setCurrentPage(ref); |
| | | // ConsumEquipmentSetShipmentController controller = new ConsumEquipmentSetShipmentController(); |
| | | // CreateRelationListPagingCmpCtrl cmp = new CreateRelationListPagingCmpCtrl(); |
| | | // cmp.pageController = controller; |
| | | // controller.init(); |
| | | // controller.myComponentController.init(); |
| | | // controller.searchOpp(); |
| | | |
| | | Test.startTest(); |
| | | controller.cancel(); |
| | | controller.searchSlip(); |
| | | controller.slip.Name = '运输单号'; |
| | | controller.slip.DeliveryType__c = '发货'; |
| | | controller.slip.Distributor_method__c = '陆运'; |
| | | controller.slip.DeliveryCompany__c = 'Fedex'; |
| | | controller.slip.Wh_Staff__c = Userinfo.getUserId(); |
| | | controller.slip.Combine_Pack__c = '123'; |
| | | controller.viewList[0].check = true; |
| | | Consum_Apply_Equipment_Set_Detail__c caesd = (Consum_Apply_Equipment_Set_Detail__c)controller.viewList[0].sobj; |
| | | caesd.Inspection_Cnt_Jia__c = 1; |
| | | controller.send(); |
| | | Test.stopTest(); |
| | | // Test.startTest(); |
| | | // controller.cancel(); |
| | | // controller.searchSlip(); |
| | | // controller.slip.Name = '运输单号'; |
| | | // controller.slip.DeliveryType__c = '发货'; |
| | | // controller.slip.Distributor_method__c = '陆运'; |
| | | // controller.slip.DeliveryCompany__c = 'Fedex'; |
| | | // controller.slip.Wh_Staff__c = Userinfo.getUserId(); |
| | | // controller.slip.Combine_Pack__c = '123'; |
| | | // controller.viewList[0].check = true; |
| | | // Consum_Apply_Equipment_Set_Detail__c caesd = (Consum_Apply_Equipment_Set_Detail__c)controller.viewList[0].sobj; |
| | | // caesd.Inspection_Cnt_Jia__c = 1; |
| | | // controller.send(); |
| | | // Test.stopTest(); |
| | | |
| | | caesdList = [SELECT Id |
| | | , Shippment_loaner_time__c |
| | | , DeliverySlip__c |
| | | , RAESD_Status__c |
| | | FROM Consum_Apply_Equipment_Set_Detail__c |
| | | WHERE Consum_Apply__c=:ca.Id |
| | | ]; |
| | | System.assertNotEquals(null, caesdList[0].Shippment_loaner_time__c); |
| | | System.assertNotEquals(null, caesdList[0].DeliverySlip__c); |
| | | System.assertEquals('已出库', caesdList[0].RAESD_Status__c); |
| | | FixtureDeliverySlip__c slip = [SELECT Name |
| | | , DeliveryType__c |
| | | , Distributor_method__c |
| | | , DeliveryCompany__c |
| | | , Wh_Staff__c |
| | | , Combine_Pack__c |
| | | FROM FixtureDeliverySlip__c |
| | | WHERE Id=:caesdList[0].DeliverySlip__c |
| | | ]; |
| | | System.assertEquals('运输单号', slip.Name); |
| | | System.assertEquals('发货', slip.DeliveryType__c); |
| | | System.assertEquals('陆运', slip.Distributor_method__c); |
| | | System.assertEquals('Fedex', slip.DeliveryCompany__c); |
| | | System.assertEquals(Userinfo.getUserId(), slip.Wh_Staff__c); |
| | | System.assertEquals('123', slip.Combine_Pack__c); |
| | | // caesdList = [SELECT Id |
| | | // , Shippment_loaner_time__c |
| | | // , DeliverySlip__c |
| | | // , RAESD_Status__c |
| | | // FROM Consum_Apply_Equipment_Set_Detail__c |
| | | // WHERE Consum_Apply__c=:ca.Id |
| | | // ]; |
| | | // System.assertNotEquals(null, caesdList[0].Shippment_loaner_time__c); |
| | | // System.assertNotEquals(null, caesdList[0].DeliverySlip__c); |
| | | // System.assertEquals('已出库', caesdList[0].RAESD_Status__c); |
| | | // FixtureDeliverySlip__c slip = [SELECT Name |
| | | // , DeliveryType__c |
| | | // , Distributor_method__c |
| | | // , DeliveryCompany__c |
| | | // , Wh_Staff__c |
| | | // , Combine_Pack__c |
| | | // FROM FixtureDeliverySlip__c |
| | | // WHERE Id=:caesdList[0].DeliverySlip__c |
| | | // ]; |
| | | // System.assertEquals('运输单号', slip.Name); |
| | | // System.assertEquals('发货', slip.DeliveryType__c); |
| | | // System.assertEquals('陆运', slip.Distributor_method__c); |
| | | // System.assertEquals('Fedex', slip.DeliveryCompany__c); |
| | | // System.assertEquals(Userinfo.getUserId(), slip.Wh_Staff__c); |
| | | // System.assertEquals('123', slip.Combine_Pack__c); |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | //} |
| | | } |
| | |
| | | saveType = false; |
| | | } |
| | | system.debug('==zheli1=='+this.parentId); |
| | | |
| | | |
| | | caes = new Consum_Apply_Equipment_Set__c(); |
| | | caes.Consum_Start_Date__c = Date.today(); |
| | | //备品配套下的所有明细 |
| | |
| | | parentObj = parentObjs.get(0); |
| | | } |
| | | //Integer aaa=Integer.valueof(parentObjs); |
| | | |
| | | |
| | | } |
| | | |
| | | if (parentObj == null) { |
| | |
| | | @isTest |
| | | public with sharing class ConsumFixtureSetSelectControllerTest { |
| | | static ConsumTestDataFactory factory; |
| | | @testSetup static void setupTestData(){ |
| | | @testSetup |
| | | static void makeData(){ |
| | | TestDataUtility.CreatePIPolicyConfiguration('Consum_Apply_Equipment_Set__c'); |
| | | } |
| | | static void setupTestData(){ |
| | | factory = new ConsumTestDataFactory(); |
| | | factory.setupTestData(); |
| | | } |
| | | static testMethod void testSave() { |
| | | setupTestData(); |
| | | Consum_Apply__c ca = [SELECT Id FROM Consum_Apply__c LIMIT 1]; |
| | | |
| | | List<Consum_Apply_Equipment_Set_Detail__c> caesdList = [SELECT Id |
| | |
| | | Consum_Apply_Equipment_Set__c caes =(Consum_Apply_Equipment_Set__c) controller.viewlist[0].sobj; |
| | | caes.Consum_Num__c = 1; |
| | | ref = controller.save(); |
| | | ref.getParameters().put('reset','YES'); |
| | | controller.save(); |
| | | |
| | | List<Consum_Apply_Equipment_Set__c> caesList = [SELECT Id, Model_No__c FROM Consum_Apply_Equipment_Set__c WHERE Consum_Apply__c =: ca.Id]; |
| | | System.assertEquals(1, caesList.size()); |
| | |
| | | Test.stopTest(); |
| | | } |
| | | static testMethod void testReset() { |
| | | setupTestData(); |
| | | // Consum_Apply_Equipment_Set_Detail__c caesd = TestDataUtility.CreateConsumApplyEquipmentSetDetail(1)[0]; |
| | | factory = new ConsumTestDataFactory(); |
| | | factory.selectDetails(); |
| | | Consum_Apply__c ca = [SELECT Id FROM Consum_Apply__c LIMIT 1]; |
| | |
| | | ref.getParameters().put('message','保存成功'); |
| | | ref.getParameters().put('level','info'); |
| | | ref.getParameters().put('saveType','true'); |
| | | // ref.getParameters().put('pt_recid',ca.Id); |
| | | // ref.getParameters().put('raesid',caesd.Id); |
| | | // ref.getParameters().put('level',ca.Id); |
| | | // ref.getParameters().put('message',caesd.Id); |
| | | Test.setCurrentPage(ref); |
| | | ConsumFixtureSetSelectController controller = new ConsumFixtureSetSelectController(); |
| | | CreateRelationListPagingCmpCtrl cmp = new CreateRelationListPagingCmpCtrl(); |
| | |
| | | FROM Consum_Apply_Equipment_Set_Detail__c |
| | | WHERE Consum_Apply__c =: ca.Id]; |
| | | System.assertEquals(0, caesdList.size()); |
| | | ref.getParameters().put('level','warning'); |
| | | ref.getParameters().put('message','test'); |
| | | controller.showMessage(); |
| | | ref.getParameters().put('level','error'); |
| | | controller.showMessage(); |
| | | controller.cancel(); |
| | | ref.getParameters().put('reset','YES'); |
| | | } |
| | | } |
| | |
| | | public with sharing class ConsumReassignController { |
| | | public string staticResource { get; private set; } |
| | | // 明细行项目 |
| | | public List<LineInfo> lineInfoList { get; set; } |
| | | //备品申请书ID |
| | |
| | | public ConsumReassignController() { |
| | | //Apexpages.currentPage().getHeaders().put('X-UA-Compatible', 'IE=8'); |
| | | caId = ApexPages.currentPage().getParameters().get('caid'); |
| | | staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Consum_Apply_Equipment_Set_Detail__c')); |
| | | } |
| | | |
| | | // 画面初始化 |
| | |
| | | // 耗材借出申请 |
| | | caesdList = [ |
| | | SELECT Id |
| | | , AWS_Data_Id__c |
| | | , Fixture_Model_No_F__c |
| | | , Asset__c |
| | | , Consum_Start_Date__c |
| | |
| | | dep.Department_Class__c = strategicDep.Id; |
| | | dep.Hospital__c = hospital.Id; |
| | | insert dep; |
| | | |
| | | /* |
| | | Contact contact2 = new Contact(); |
| | | contact2.AccountId = dep.Id; |
| | | contact2.FirstName = '責任者'; |
| | | contact2.LastName = 'test1经销商'; |
| | | insert contact2; |
| | | insert contact2;*/ |
| | | |
| | | OlympusCalendar__c oc = new OlympusCalendar__c(); |
| | | oc.Date__c = System.Today(); |
| | |
| | | public Boolean showEditButton{get;set;} |
| | | private String case_OR_animal_organLabel{get;set;} |
| | | private String saveType{get;set;} |
| | | public String staticResource {get; set;} |
| | | public String rowListString{set;get;} |
| | | public String EditAWSDataId{set;get;} |
| | | |
| | | public ConsumTrialController(ApexPages.StandardController stdController) { |
| | | parId = System.currentPageReference().getParameters().get('Id'); |
| | |
| | | if (String.isBlank(parId)) { |
| | | parId = stdController.getId(); |
| | | } |
| | | PIHelper.PIIntegration piIntegration = PIHelper.getPIIntegrationInfo('Consum_Apply_Equipment_Set_Detail__c'); |
| | | staticResource = JSON.serialize(piIntegration); |
| | | } |
| | | |
| | | public void init() { |
| | |
| | | // , DateOfDelivery__c |
| | | // , ReceivingNoteNo__c |
| | | , Status__c |
| | | ,AWS_Data_Id__c |
| | | // , Asset_loaner_category__c |
| | | , RA_Status__c |
| | | , demo_purpose2__c |
| | |
| | | assetFieldApiList.addAll(assetFieldApiSet); |
| | | receivingNoteFieldApiList.addAll(receivingNoteFieldApiSet); |
| | | pageB = new PageBean(rnList[0], assetFieldApiList, receivingNoteFieldApiList); |
| | | rowListString = JSON.serialize(pageB.rowBList); |
| | | showEditButton = (rnList[0].Status__c != '申请中' && rnList[0].Status__c != '取消'); |
| | | } |
| | | catch (Exception e) { |
| | |
| | | else if (rnList[0].Status__c == '取消') { |
| | | throw new ControllerUtil.myException('取消的耗材申请书不能保存'); |
| | | } |
| | | system.debug('耗材备品明细加密信息:'+JSON.serialize(pageB.rowBList)); |
| | | List<Consum_Apply_Equipment_Set_Detail__c> rndList = new List<Consum_Apply_Equipment_Set_Detail__c>(); |
| | | for (RowBean rowB : pageB.rowBList) { |
| | | if (rowB.checked) { |
| | | rowB.rnd.InputCheck__c = true; |
| | | //rowB.rnd.AWS_Data_Id__c = EditAWSDataId; |
| | | System.debug('zhj rowB.rnd.AWS_Data_Id__c = '+ rowB.rnd.AWS_Data_Id__c); |
| | | rndList.add(rowB.rnd); |
| | | } |
| | | } |
| | |
| | | FixtureUtil.withoutUpdate(rndList, true); |
| | | PageReference pag = new PageReference('/apex/ConsumTrial?id=' + parId + '&canedit=true&saveType=1'); |
| | | pag.setRedirect(true); |
| | | return pag; |
| | | return null; |
| | | } |
| | | else{ |
| | | init(); |
| | |
| | | + String.join(assetFieldApiList, ',') |
| | | + (assetFieldApiList.size() > 0 ? ',' : '') |
| | | + String.join(receivingNoteFieldApiList, ',') |
| | | + ',AWS_Data_Id__c' //zhj 新方案改造 2022-12-30 删除Trial_User_Encrypt__c |
| | | + ' FROM Consum_Apply_Equipment_Set_Detail__c ' |
| | | + ' WHERE Consum_Apply_Equipment_Set__r.Consum_Apply__c = \'' + rn.Id + '\'' + wher |
| | | + ' AND (Cancel_Select__c = false OR NG_Select_Again__c = true)' |
| | |
| | | // dataConfirmation = rnd1.DataConfirmation__c; |
| | | lineNo = lineNo1 + 1; |
| | | canChangeField = 'Show_demonstration__c, Operation_Type__c, Consum_Start_Date__c'; |
| | | canChangeField += ', Case_OR_animal_organ__c, Trial_User__c, Follower_User__c, Spare__c, Comment__c, Degree_Of_Importance__c'; |
| | | canChangeField += ',AWS_Data_Id__c, Case_OR_animal_organ__c, Trial_User__c, Follower_User__c, Spare__c, Comment__c, Degree_Of_Importance__c'; //zhj 新方案改造 2022-12-30 删除Trial_User_Encrypt__c |
| | | |
| | | haveAsset = String.isNotBlank(rnd1.Asset__c); |
| | | } |
| | |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | } |
| | | } |
| | |
| | | ConsumTestDataFactory factory = new ConsumTestDataFactory(); |
| | | factory.setupTestData(); |
| | | factory.selectDetails(); |
| | | TestDataUtility.CreatePIPolicyConfiguration('Consum_Apply_Equipment_Set_Detail__c'); |
| | | } |
| | | static testMethod void testSave() { |
| | | Consum_Apply__c ca = [SELECT Id FROM Consum_Apply__c LIMIT 1]; |
| | |
| | | //2021-04-21 mzy add SFDC点检报告更新逻辑修改 start |
| | | if(!Test.isRunningTest() &&IsNeedExecute==true){ |
| | | //batch里调用下一个batch时,希望跟原有的Schedule里面传的条数保持一致 |
| | | Id execBTId = Database.executebatch(new UpdateInspectionReportAssetBatch(true),100); |
| | | Id execBTId = Database.executebatch(new UpdateInspectionReportAssetBatch(true),10); |
| | | } |
| | | //2021-04-21 mzy add SFDC点检报告更新逻辑修改 end |
| | | |
| | |
| | | public Integer consumApplySetDetailListSize { get; set; } // 耗材备品总数量 |
| | | public String errorMsg { get; set; } // 错误信息 |
| | | |
| | | public string staticResource { get; private set; } |
| | | public string staticResourceCon { get; private set; } |
| | | public string staticResourceFile { get; private set; } |
| | | public string BRSrc{get;private set;} |
| | | public string QRSrc{get;private set;} |
| | | |
| | | public ConsumTrialPDFController() { |
| | | targetConsumApplyId = ApexPages.currentPage().getParameters().get('id'); |
| | | if (String.isBlank(targetConsumApplyId)) { |
| | | throw new ControllerUtil.myException('参数错误:请指定Id。'); |
| | | } |
| | | pdfPageList = new List<PdfPageClass>(); |
| | | staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Consum_Apply_Equipment_Set_Detail__c')); |
| | | staticResourceCon = JSON.serialize(PIHelper.getPIIntegrationInfo('Consum_Apply__c')); |
| | | staticResourceFile = JSON.serialize(PIHelper.getPIIntegrationInfo('Document')); |
| | | } |
| | | |
| | | /** |
| | |
| | | ApexPages.addMessage(new ApexPages.Message(ApexPages.severity.ERROR, errorMsg)); |
| | | return; |
| | | } |
| | | |
| | | BRSrc = GetImageBase64(targetConsumApply.BRId__c); |
| | | QRSrc = GetImageBase64(targetConsumApply.QRId__c); |
| | | |
| | | |
| | | // 获取耗材备品配套一览明细 |
| | | List<Consum_Apply_Equipment_Set_Detail__c> targetConsumSetDetailList = getTargetConsumSetDetailList(); |
| | |
| | | , Post_Code__c // 邮编 |
| | | , Loaner_received_staff__c // 接收人姓名 |
| | | , Loaner_received_staff_phone__c // 接收人电话 |
| | | ,AWS_Data_Id__c |
| | | FROM Consum_Apply__c |
| | | WHERE Id = :targetConsumApplyId |
| | | ]; |
| | |
| | | , Follower_User__r.Name |
| | | , Spare__c // 备用 |
| | | , Comment__c // 备注 |
| | | , AWS_Data_Id__c |
| | | , ManagementCode__c // 管理编码 yc 耗材追溯 |
| | | , EquipmentManagementCode__c // 备品管理码 yc 耗材追溯 |
| | | FROM Consum_Apply_Equipment_Set_Detail__c |
| | | WHERE Consum_Apply_Equipment_Set__r.Consum_Apply__c = :targetConsumApplyId // 耗材备品配套一览.耗材备品申请 |
| | | AND (Cancel_Select__c = false OR NG_Select_Again__c = true) |
| | | AND Shipment_request_time2__c != null |
| | | // AND Shipment_request_time2__c != null //Commented By Li Jun 20220422 for PIPL |
| | | ORDER BY Consum_Apply_Equipment_Set__r.Consum_Apply__c, Consum_Apply_Equipment_Set__c, Fixture_Model_No_F__c, Degree_Of_Importance__c |
| | | ]; |
| | | if (consumApplySetDetailList.size() > 0) { |
| | |
| | | equipSetDetailList = new List<Consum_Apply_Equipment_Set_Detail__c>(); |
| | | } |
| | | } |
| | | |
| | | public static string GetImageBase64(string id){ |
| | | List<Attachment> atts = [SELECT Id, IsDeleted, ParentId, Name, IsPrivate, ContentType, BodyLength, Body, OwnerId, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp, Description FROM Attachment where id=:id]; |
| | | if (atts.size()==0) { |
| | | return null; |
| | | } |
| | | return 'data:image/png;base64,' + EncodingUtil.base64Encode(atts[0].body); |
| | | } |
| | | } |
| | |
| | | private class ConsumTrialPDFControllerTest { |
| | | @testSetup |
| | | static void setupTestData() { |
| | | |
| | | List<String> strList = new List<String>(); |
| | | strList.add('Consum_Apply_Equipment_Set_Detail__c'); |
| | | strList.add('Consum_Apply__c'); |
| | | strList.add('Document'); |
| | | strList.add('Agency_Contact__c'); |
| | | TestDataUtility.CreatePIPolicyConfigurations(strList); |
| | | |
| | | // 用户 |
| | | User testUser1 = new User(Test_staff__c = true); |
| | | testUser1.LastName = 'TestLastName'; |
| | |
| | | System.assertEquals(1, testAppList.size()); |
| | | Consum_Apply__c testAppObj = testAppList[0]; |
| | | PageReference ref = new PageReference('/apex/ConsumTrialPDF?Id=' + testAppObj.Id); |
| | | ref.getParameters().put('id',testAppObj.Id); |
| | | Test.setCurrentPage(ref); |
| | | ConsumTrialPDFController ctp = new ConsumTrialPDFController(); |
| | | |
| | | Test.startTest(); |
| | | ctp.init(); |
| | | ref.getParameters().put('id',''); |
| | | ctp.init(); |
| | | ref.getParameters().put('id','dokmqfqqvdqawhdsa'); |
| | | ctp.init(); |
| | | Test.stopTest(); |
| | | |
| | |
| | | // 发货地址 |
| | | System.assertEquals('北京市', ctp.shippmentAddress); |
| | | // 所有PDF页集合 |
| | | System.assertEquals(1, ctp.pdfPageList.size()); |
| | | System.assertEquals(3, ctp.pdfPageList.size()); |
| | | ConsumTrialPDFController.PdfPageClass testPdfPage = ctp.pdfPageList[0]; |
| | | Consum_Apply_Equipment_Set_Detail__c testDetail1 = testPdfPage.equipSetDetailList[0]; |
| | | System.assertEquals('No02', testDetail1.Fixture_Model_No_F__c); // 明细型号 |
| | |
| | | public PageBean pageB {get; set;} |
| | | public Boolean showSelectRnsButton{get;set;} |
| | | private String case_OR_animal_organLabel{get;set;} |
| | | public String staticResource {get; set;} |
| | | public String rowListString{set;get;} |
| | | |
| | | public ConsumTrialUpdateController() { |
| | | parId = System.currentPageReference().getParameters().get('parId'); |
| | | canEdit = System.currentPageReference().getParameters().get('canedit') == 'true'; |
| | | PIHelper.PIIntegration piIntegration = PIHelper.getPIIntegrationInfo('Consum_Apply_Equipment_Set_Detail__c'); |
| | | staticResource = JSON.serialize(piIntegration); |
| | | } |
| | | |
| | | public void init() { |
| | |
| | | List<Consum_Apply__c> rnList = [SELECT Id |
| | | // , DateOfDelivery__c |
| | | // , ReceivingNoteNo__c |
| | | , Status__c |
| | | , AWS_Data_Id__c,Status__c |
| | | // , Asset_loaner_category__c |
| | | , RA_Status__c |
| | | , HP_received_sign_rich__c |
| | |
| | | receivingNoteFieldApiList.addAll(receivingNoteFieldApiSet); |
| | | setEditable(); |
| | | pageB = new PageBean(rnList[0], assetFieldApiList, receivingNoteFieldApiList, isCenter); |
| | | system.debug('pageB.rowBList = ' + pageB.rowBList); |
| | | List<rowListStr> r1 = new List<rowListStr>(); |
| | | for (RowBean rowB : pageB.rowBList) { |
| | | rowListStr r2 = new rowListStr(rowB.rnd.AWS_Data_Id__c,rowB.rnd.Id); |
| | | r1.add(r2); |
| | | } |
| | | rowListString = JSON.serialize(r1); |
| | | } |
| | | catch (Exception e) { |
| | | ApexPages.addMessages(e); |
| | |
| | | + String.join(assetFieldApiList, ',') |
| | | + (assetFieldApiList.size() > 0 ? ',' : '') |
| | | + String.join(receivingNoteFieldApiList, ',') |
| | | + ',AWS_Data_Id__c' |
| | | + ' FROM Consum_Apply_Equipment_Set_Detail__c ' |
| | | + ' WHERE Consum_Apply_Equipment_Set__r.Consum_Apply__c = \'' + rn.Id + '\'' + wher |
| | | + ' AND (Cancel_Select__c = false OR NG_Select_Again__c = true)' |
| | |
| | | } |
| | | } |
| | | |
| | | public class rowListStr{ |
| | | public String AWSDataId {get; set;} |
| | | public String Id {get; set;} |
| | | public rowListStr() { |
| | | AWSDataId = ''; |
| | | Id = ''; |
| | | } |
| | | |
| | | public rowListStr(String l, String v) { |
| | | AWSDataId = l; |
| | | Id = v; |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | private class ConsumTrialUpdateControllerTest { |
| | | // 已出库 |
| | | @testSetup static void setupTestData(){ |
| | | TestDataUtility.CreatePIPolicyConfiguration('Consum_Apply_Equipment_Set_Detail__c'); |
| | | ConsumTestDataFactory factory = new ConsumTestDataFactory(); |
| | | factory.eachStepUpdate = false; |
| | | factory.setupTestData(); |
| | |
| | | if (rectCotac.size() == 0) { |
| | | return; |
| | | } |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证(ET)']; |
| | | Product2 prod01 = new Product2(Name='Test01',ProductCode='Test01',Asset_Model_No__c = 'Test01',SFDA_Status__c = '有効'); |
| | | Product2 prod02 = new Product2(Name='Test02',ProductCode='Test02',Asset_Model_No__c = 'Test02',SFDA_Status__c = '有効'); |
| | | insert new Product2[]{prod01,prod02}; |
| | |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | Profile prof = [select Id from Profile where Name ='系统管理员']; |
| | | Profile prof = [select Id from Profile where Name ='901_经销商社区普通权限_2重验证']; |
| | | |
| | | StaticParameter.ConsumableAssetHanderTrigger = true; |
| | | |
| | |
| | | query += 'OCM_dept_category__c,ShareFlag__c,Job_Category__c,Strategic_userFSEGI__c,hospitalLeaderGI__c,Strategic_userFSESP__c,hospitalLeaderSP__c, '; |
| | | query += 'hospitalLeaderGIchange__c,hospitalLeaderSPchange__c, OPDPlan__r.Status__c,Shippment_ng_num__c,ProducLeader_Share__c, '; |
| | | query += ' Hospital__r.GI_Product_Leader__c,Hospital__r.BF_Product_Leader__c,Hospital__r.GS_Product_Leader__c,Hospital__r.URO_Produc_Leader__c,Hospital__r.GYN_Product_Leader__c,Hospital__r.ENT_Product_Leader__c,Hospital__r.ET_Product_Leader__c '; |
| | | query += ' FROM Rental_Apply__c WHERE (ShareFlag__c = true or hospitalLeaderGIchange__c = true or hospitalLeaderSPchange__c = true or (Shippment_ng_num__c = 0 and OPDPlan__c != null and OPDPlan__r.Status__c IN (\'完毕未报告\',\'待提交报告\'))) AND Strategic_dept__c= \''+strategicDept+'\' ORDER BY Strategic_dept__c'; |
| | | query += ' FROM Rental_Apply__c WHERE (ShareFlag__c = true or hospitalLeaderGIchange__c = true or hospitalLeaderSPchange__c = true or (Shippment_ng_num__c = 0 and OPDPlan__c != null and OPDPlan__r.Status__c IN (\'完毕未报告\',\'待提交报告\'))) AND Strategic_dept__c = \''+strategicDept+'\' ORDER BY Strategic_dept__c'; |
| | | } |
| | | //update wangweipeng 新增备品的产品担当人共享 2021/10/15 end |
| | | //update by rentx 2020-11-16 SFDC-BVA5VJ end |
| | |
| | | update iflog; |
| | | return Database.getQueryLocator(query); |
| | | } |
| | | //注释 by rentx 2021-01-04 SFDC-BWQ3MX |
| | | /*global void execute(Database.BatchableContext BC, list<Sobject> scope) { |
| | | |
| | | //add by rentx 2020-11-17 start |
| | | List<Rental_Apply__c> ratList = new List<Rental_Apply__c>(); |
| | | List<Rental_Apply__c> raoList = new List<Rental_Apply__c>(); |
| | | //add by rentx 2020-11-17 end |
| | | |
| | | |
| | | global void execute(Database.BatchableContext BC, list<Rental_Apply__c> RentalApply) { |
| | | // 20220412 ljh 整理 start |
| | | // ShareFlag__c hospitalLeaderGIchange__c hospitalLeaderSPchange__c 为真的时候空更新即可 |
| | | Map<String,Rental_Apply__c> raMap = new Map<String,Rental_Apply__c>(); |
| | | // 20220412 ljh 整理 end |
| | | //共享权限变更 |
| | | List<Rental_Apply__c> RentalApply = new List<Rental_Apply__c>(); |
| | | List<Rental_Apply__c> raList = new List<Rental_Apply__c>(); |
| | | List<Rental_Apply__Share> delStrategList = new List<Rental_Apply__Share>(); |
| | | List<Rental_Apply__Share> addStrategList = new List<Rental_Apply__Share>(); |
| | | List<String> ParentIdList = new List<String>(); |
| | | List<String> UserOrGroupIdList = new List<String>(); |
| | | Map<String, String> PUMap = new Map<String, String>(); |
| | | |
| | | List<String> UserIDList = new List<String>(); |
| | | List<String> IsActiveNoList = new List<String>(); |
| | | RentalApply = scope; |
| | | if(RentalApply.size()>0){ |
| | | //用户未启用无法插入到共享表 start |
| | | for(Rental_Apply__c ra:RentalApply){ |
| | | if(ra.Strategic_user__c !=null){ |
| | | UserIDList.add(ra.Strategic_user__c); |
| | | } |
| | | //add by rentx 2020-11-27 |
| | | if (ra.Strategic_userFSEGI__c != null) { |
| | | UserIDList.add(ra.Strategic_userFSEGI__c); |
| | | } |
| | | if (ra.Strategic_userFSESP__c != null) { |
| | | UserIDList.add(ra.Strategic_userFSESP__c); |
| | | |
| | | } |
| | | //add by rentx 2020-11-27 |
| | | |
| | | } |
| | | for(User user:[Select Id,Name,IsActive From User WHERE Id in:UserIDList]){ |
| | | //未启用 |
| | | if(!user.IsActive){ |
| | | String userId = (String)user.Id; |
| | | userId = userId.substring(0,15); |
| | | IsActiveNoList.add(userId); |
| | | } |
| | | } |
| | | //用户未启用无法插入到共享表 end |
| | | for(Rental_Apply__c ra:RentalApply){ |
| | | //删除原来的共享 |
| | | if(String.isNotBlank(ra.ShareStrategicUser__c)){ |
| | | PUMap.put(ra.Id,ra.ShareStrategicUser__c); |
| | | ParentIdList.add(ra.Id); |
| | | UserOrGroupIdList.add(ra.ShareStrategicUser__c); |
| | | } |
| | | //增加新的 |
| | | //所有者还有服务服务部审批人相同不用加 用户未启用无法插入到共享表 |
| | | if(ra.Strategic_user__c !=null&& !IsActiveNoList.contains(ra.Strategic_user__c)){ |
| | | if( |
| | | ((ra.Approver_of_Service_Department__c !=null&&!ra.Strategic_user__c.equals(ra.Approver_of_Service_Department__c))||ra.Approver_of_Service_Department__c ==null) |
| | | &&!ra.Strategic_user__c.equals(ra.OwnerId)){ |
| | | Rental_Apply__Share ras = new Rental_Apply__Share( |
| | | RowCause = 'Manual', |
| | | ParentId = ra.Id, |
| | | UserOrGroupId = ra.Strategic_user__c, |
| | | AccessLevel = 'read' |
| | | ); |
| | | |
| | | addStrategList.add(ras); |
| | | } |
| | | Rental_Apply__c r_a = new Rental_Apply__c(); |
| | | r_a.Id = ra.Id; |
| | | r_a.ShareStrategicUser__c = ra.Strategic_user__c; |
| | | raList.add(r_a); |
| | | } |
| | | |
| | | //add by rentx 2020-11-16 SFDC-BVA5VJ start |
| | | //判断战略科室 直接删了再加 |
| | | String dept = ra.OCM_dept_category__c; |
| | | if ((ra.Job_Category__c =='销售服务') && (dept.equals('消化科') ||dept.equals('呼吸科') || dept.equals('ET') || dept.equals('其他')) |
| | | && ra.Strategic_userFSEGI__c != null && !IsActiveNoList.contains(ra.Strategic_userFSEGI__c) && !ra.OwnerId.equals(ra.Strategic_userFSEGI__c)) { |
| | | //加入共享 |
| | | Rental_Apply__Share ras = makeData(ra.Id,ra.Strategic_userFSEGI__c); |
| | | addStrategList.add(ras); |
| | | //删除原来的共享 |
| | | PUMap.put(ra.Id,ra.hospitalLeaderGI__c); |
| | | ParentIdList.add(ra.Id); |
| | | UserOrGroupIdList.add(ra.hospitalLeaderGI__c); |
| | | if (String.isNotBlank(ra.hospitalLeaderSP__c)) { |
| | | PUMap.put(ra.Id,ra.hospitalLeaderSP__c); |
| | | UserOrGroupIdList.add(ra.hospitalLeaderSP__c); |
| | | } |
| | | //更新字段 |
| | | Rental_Apply__c rac = new Rental_Apply__c(); |
| | | rac.Id = ra.Id; |
| | | rac.hospitalLeaderGI__c = ra.Strategic_userFSEGI__c; |
| | | ratList.add(rac); |
| | | |
| | | } |
| | | if ((ra.Job_Category__c =='销售服务') && |
| | | (dept.equals('普外科') ||dept.equals('泌尿科') || dept.equals('妇科') || dept.equals('耳鼻喉科') || dept.equals('其他')) |
| | | && ra.Strategic_userFSESP__c != null && !IsActiveNoList.contains(ra.Strategic_userFSESP__c) && !ra.OwnerId.equals(ra.Strategic_userFSESP__c)) { |
| | | //加入共享 |
| | | Rental_Apply__Share ras = makeData(ra.Id,ra.Strategic_userFSESP__c); |
| | | addStrategList.add(ras); |
| | | //删除原来的共享 |
| | | PUMap.put(ra.Id,ra.hospitalLeaderSP__c); |
| | | ParentIdList.add(ra.Id); |
| | | UserOrGroupIdList.add(ra.hospitalLeaderSP__c); |
| | | if (String.isNotBlank(ra.hospitalLeaderGI__c)) { |
| | | PUMap.put(ra.Id,ra.hospitalLeaderGI__c); |
| | | UserOrGroupIdList.add(ra.hospitalLeaderGI__c); |
| | | } |
| | | //更新字段 |
| | | Rental_Apply__c rac = new Rental_Apply__c(); |
| | | rac.Id = ra.Id; |
| | | rac.hospitalLeaderSP__c = ra.Strategic_userFSESP__c; |
| | | raoList.add(rac); |
| | | |
| | | } |
| | | |
| | | |
| | | } |
| | | //删除原来的共享 |
| | | delStrategList = [SELECT Id,ParentId,UserOrGroupId FROM Rental_Apply__Share WHERE RowCause ='Manual' AND ParentId in :ParentIdList AND UserOrGroupId in :UserOrGroupIdList]; |
| | | for(Integer m=0; m<delStrategList.size(); m++){ |
| | | if(String.isBlank(PUMap.get(delStrategList[m].ParentId))){ |
| | | delStrategList.remove(m); |
| | | } |
| | | } |
| | | if(delStrategList.size()>0){ |
| | | delete delStrategList; |
| | | } |
| | | //增加 |
| | | if (addStrategList.size() > 0) { |
| | | insert addStrategList; |
| | | } |
| | | //更新备品借出 |
| | | if(raList.size()>0){ |
| | | update raList; |
| | | } |
| | | |
| | | //更新备品借出 -- hospleaderGI字段 |
| | | if (ratList.size() > 0) { |
| | | update ratList; |
| | | } |
| | | //更新备品借出 -- hospleaderSP字段 |
| | | if (raoList.size() > 0) { |
| | | update raoList; |
| | | } |
| | | } |
| | | }*/ |
| | | //update by rentx 2021-01-04 SFDC-BWQ3MX |
| | | global void execute(Database.BatchableContext BC, list<Sobject> scope) { |
| | | //原来的是将战略科室所有人加入到共享表中 现在需要将GI/SP主担当也加入并且删除之前的共享 |
| | | //add by rentx 2020-11-17 start |
| | | List<Rental_Apply__c> ratList = new List<Rental_Apply__c>(); |
| | | List<Rental_Apply__c> raoList = new List<Rental_Apply__c>(); |
| | | //add by rentx 2020-11-17 end |
| | | |
| | | //共享权限变更 |
| | | List<Rental_Apply__c> RentalApply = new List<Rental_Apply__c>(); |
| | | List<Rental_Apply__c> raList = new List<Rental_Apply__c>(); |
| | | List<Rental_Apply__Share> delStrategList = new List<Rental_Apply__Share>(); |
| | | List<Rental_Apply__Share> addStrategList = new List<Rental_Apply__Share>(); |
| | | List<String> ParentIdList = new List<String>(); |
| | | List<String> UserOrGroupIdList = new List<String>(); |
| | | Map<String, String> PUMap = new Map<String, String>(); |
| | | |
| | | List<String> UserIDList = new List<String>(); |
| | | List<String> IsActiveNoList = new List<String>(); |
| | | |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/15 start |
| | | //收集产品担当人中文名 |
| | | List<String> productLeaderNameList = new List<String>(); |
| | |
| | | //新增借出备品申请产品担当共享人 |
| | | List<Rental_Apply__Share> insRentalApplyShare = new List<Rental_Apply__Share>(); |
| | | //修改借出备品申请的产品担当人共享记录 |
| | | List<Rental_Apply__c> updateRac = new List<Rental_Apply__c>(); |
| | | // List<Rental_Apply__c> updateRac = new List<Rental_Apply__c>(); |
| | | //获取所有满足条件的备品id |
| | | List<String> raIdList = new List<String>(); |
| | | //获取备品的产品担当人共享数据 |
| | | Map<String,List<Rental_Apply__Share>> raShareMap = new Map<String,List<Rental_Apply__Share>>(); |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/15 end |
| | | |
| | | |
| | | RentalApply = scope; |
| | | System.debug('zheli000'); |
| | | if(RentalApply.size()>0){ |
| | | //用户未启用无法插入到共享表 start |
| | | for(Rental_Apply__c ra:RentalApply){ |
| | | if(ra.Strategic_user__c !=null){ |
| | | UserIDList.add(ra.Strategic_user__c); |
| | | } |
| | | //add by rentx 判断用户是否启用 |
| | | if (ra.Strategic_userFSEGI__c != null) { |
| | | UserIDList.add(ra.Strategic_userFSEGI__c); |
| | | } |
| | | if (ra.Strategic_userFSESP__c != null) { |
| | | UserIDList.add(ra.Strategic_userFSESP__c); |
| | | } |
| | | //add by rentx |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/15 start |
| | | //收集产品担当人 只收集 opd计划为完毕未报告 备品 出库未完了数 等于0(已出库) |
| | | //收集的产品担当人为中文名 |
| | |
| | | } |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/15 end |
| | | } |
| | | for(User user:[Select Id,Name,IsActive From User WHERE Id in:UserIDList]){ |
| | | //未启用 |
| | | if(!user.IsActive){ |
| | | String userId = (String)user.Id; |
| | | userId = userId.substring(0,15); |
| | | IsActiveNoList.add(userId); |
| | | } |
| | | } |
| | | |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/15 start |
| | | //由于产品担当获取的都是中文名字,所以需要获取到他的id,并且去掉没启用的人员 |
| | | List<User> userList; |
| | | if(productLeaderNameList.size() > 0){ |
| | | for(String ss : productLeaderNameList){ |
| | | // System.debug('---------------'+ss); |
| | | } |
| | | // for(String ss : productLeaderNameList){ |
| | | // // System.debug('---------------'+ss); |
| | | // } |
| | | //获取担当人的user对象 |
| | | userList = [select id,name,Alias,Alias__c from user where IsActive = true and Alias__c != null and Alias__c = :productLeaderNameList order by CreatedDate desc]; |
| | | }else{ |
| | |
| | | } |
| | | } |
| | | } |
| | | System.debug('zheli00'); |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/15 end |
| | | |
| | | //用户未启用无法插入到共享表 end |
| | | for(Rental_Apply__c ra:RentalApply){ |
| | | //如果战略科室主担当发生变更 --之前的逻辑 update by rentx 2021-01-04 SFDC-BWQ3MX |
| | | //如果战略科室主担当发生变更 |
| | | if (ra.ShareFlag__c == true) { |
| | | //删除原来的共享 |
| | | if(String.isNotBlank(ra.ShareStrategicUser__c)){ |
| | | PUMap.put(ra.Id,ra.ShareStrategicUser__c); |
| | | ParentIdList.add(ra.Id); |
| | | UserOrGroupIdList.add(ra.ShareStrategicUser__c); |
| | | raMap.put(ra.Id,new Rental_Apply__c(id=ra.Id)); // 20220412 ljh add |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/15 start |
| | | //权限表中的战略科室主担当 字段发生变化,那么记录一下当前修改的内容 |
| | | if(RentalApplyMapData.containsKey(ra.Id)){ |
| | | Rental_Apply__c raa = RentalApplyMapData.get(ra.Id); |
| | | raa.ShareStrategicUser__c = ra.Strategic_user__c; |
| | | RentalApplyMapData.put(raa.id,raa); |
| | | } |
| | | //增加新的 |
| | | //所有者还有服务服务部审批人相同不用加 用户未启用无法插入到共享表 |
| | | if(ra.Strategic_user__c !=null&& (IsActiveNoList.size() ==0 || !IsActiveNoList.contains(ra.Strategic_user__c))){ |
| | | if( |
| | | ((ra.Approver_of_Service_Department__c !=null&&!ra.Strategic_user__c.equals(ra.Approver_of_Service_Department__c))||ra.Approver_of_Service_Department__c ==null) |
| | | &&!ra.Strategic_user__c.equals(ra.OwnerId)){ |
| | | Rental_Apply__Share ras = new Rental_Apply__Share( |
| | | RowCause = 'Manual', |
| | | ParentId = ra.Id, |
| | | UserOrGroupId = ra.Strategic_user__c, |
| | | AccessLevel = 'read' |
| | | ); |
| | | |
| | | addStrategList.add(ras); |
| | | } |
| | | Rental_Apply__c r_a = new Rental_Apply__c(); |
| | | r_a.Id = ra.Id; |
| | | r_a.ShareStrategicUser__c = ra.Strategic_user__c; |
| | | raList.add(r_a); |
| | | |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/15 start |
| | | //权限表中的战略科室主担当 字段发生变化,那么记录一下当前修改的内容 |
| | | if(RentalApplyMapData.containsKey(ra.Id)){ |
| | | Rental_Apply__c raa = RentalApplyMapData.get(ra.Id); |
| | | raa.ShareStrategicUser__c = ra.Strategic_user__c; |
| | | RentalApplyMapData.put(raa.id,raa); |
| | | } |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/15 end |
| | | } |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/15 end |
| | | } |
| | | //update by rentx 2021-01-04 SFDC-BWQ3MX |
| | | //如果战略科室GI担当发生变更 |
| | | if (ra.hospitalLeaderGIchange__c == true) { |
| | | //删除原来的共享 |
| | | if(String.isNotBlank(ra.hospitalLeaderGI__c)){ |
| | | PUMap.put(ra.Id,ra.hospitalLeaderGI__c); |
| | | ParentIdList.add(ra.Id); |
| | | UserOrGroupIdList.add(ra.hospitalLeaderGI__c); |
| | | } |
| | | //判断 |
| | | String dept = ra.OCM_dept_category__c; |
| | | if (ra.Strategic_userFSEGI__c != null && (IsActiveNoList.size() ==0 || !IsActiveNoList.contains(ra.Strategic_userFSEGI__c)) && !ra.OwnerId.equals(ra.Strategic_userFSEGI__c)) { |
| | | //加入共享 |
| | | Rental_Apply__Share ras = makeData(ra.Id,ra.Strategic_userFSEGI__c); |
| | | addStrategList.add(ras); |
| | | } |
| | | //更新字段 |
| | | Rental_Apply__c rac = new Rental_Apply__c(); |
| | | rac.Id = ra.Id; |
| | | rac.hospitalLeaderGI__c = ra.Strategic_userFSEGI__c; |
| | | ratList.add(rac); |
| | | |
| | | raMap.put(ra.Id,new Rental_Apply__c(id=ra.Id)); // 20220412 ljh add |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/15 start |
| | | //战略科室FSEGI担当 发生变化,记录一下备品修改的内容 |
| | | if(RentalApplyMapData.containsKey(ra.Id)){ |
| | |
| | | //update by rentx 2021-01-04 SFDC-BWQ3MX |
| | | //如果战略科室SP担当发生变更 |
| | | if (ra.hospitalLeaderSPchange__c == true) { |
| | | //删除原来的共享 |
| | | if(String.isNotBlank(ra.hospitalLeaderSP__c)){ |
| | | PUMap.put(ra.Id,ra.hospitalLeaderSP__c); |
| | | ParentIdList.add(ra.Id); |
| | | UserOrGroupIdList.add(ra.hospitalLeaderSP__c); |
| | | } |
| | | //判断 |
| | | if (ra.Strategic_userFSESP__c != null && (IsActiveNoList.size() ==0 || !IsActiveNoList.contains(ra.Strategic_userFSESP__c)) && !ra.OwnerId.equals(ra.Strategic_userFSESP__c)) { |
| | | //加入共享 |
| | | Rental_Apply__Share ras = makeData(ra.Id,ra.Strategic_userFSESP__c); |
| | | addStrategList.add(ras); |
| | | } |
| | | //更新字段 |
| | | Rental_Apply__c rac = new Rental_Apply__c(); |
| | | rac.Id = ra.Id; |
| | | rac.hospitalLeaderSP__c = ra.Strategic_userFSESP__c; |
| | | raoList.add(rac); |
| | | |
| | | raMap.put(ra.Id,new Rental_Apply__c(id=ra.Id)); // 20220412 ljh add |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/15 start |
| | | //战略科室FSESP担当 发生变化,记录一下修改内容 |
| | | if(RentalApplyMapData.containsKey(ra.Id)){ |
| | |
| | | insRentalApplyShare.add(makeData3(newRA.id,userId)); |
| | | } |
| | | } |
| | | // 20220413 ljh update start |
| | | //修改备品的产品担当人字段值 |
| | | updateRac.add(new Rental_Apply__c(id=newRA.id,ProducLeader_Share__c=productLeaderUserIdStr)); |
| | | // updateRac.add(new Rental_Apply__c(id=newRA.id,ProducLeader_Share__c=productLeaderUserIdStr)); |
| | | raMap.put(newRA.id,new Rental_Apply__c(id=newRA.id,ProducLeader_Share__c=productLeaderUserIdStr)); |
| | | // 20220413 ljh update end |
| | | } |
| | | } |
| | | }else{ |
| | | //如果 ProducLeader_Share__c 字段不为空,并且没有找到当前备品需要共享的产品担当人 |
| | | //证明以前共享了产品担当人,但是现在产品担当人做了修改(系统中没找到或此人已经通过其它共享原因共享了)或制空了,所以直接把以前共享的人删除掉就行 |
| | | delRentalApplyShare.add(newRA.id); |
| | | // 20220413 ljh update start |
| | | //修改备品的产品担当人字段值 |
| | | updateRac.add(new Rental_Apply__c(id=newRA.id,ProducLeader_Share__c='')); |
| | | // updateRac.add(new Rental_Apply__c(id=newRA.id,ProducLeader_Share__c='')); |
| | | raMap.put(newRA.id,new Rental_Apply__c(id=newRA.id,ProducLeader_Share__c='')); |
| | | // 20220413 ljh update end |
| | | } |
| | | }else{ |
| | | //如果ProducLeader_Share__c字段为空,并且当前备品的产品担当人需要共享,那么就需要我们新增共享,并把共享人id,记录到当前备品上 |
| | |
| | | insRentalApplyShare.add(makeData3(newRA.id,userId)); |
| | | } |
| | | } |
| | | // 20220413 ljh update start |
| | | //修改备品的产品担当人字段值 |
| | | updateRac.add(new Rental_Apply__c(id=newRA.id,ProducLeader_Share__c=productLeaderUserIdStr)); |
| | | // updateRac.add(new Rental_Apply__c(id=newRA.id,ProducLeader_Share__c=productLeaderUserIdStr)); |
| | | raMap.put(newRA.id,new Rental_Apply__c(id=newRA.id,ProducLeader_Share__c=productLeaderUserIdStr)); |
| | | // 20220413 ljh update end |
| | | } |
| | | } |
| | | } |
| | |
| | | //如果没有产品当但人,但是字段不为空,那么证明,当前备品的产品担当人有变动值设置为空了,那么我们需要处理以前已经共享的产品担当人 |
| | | if(String.isNotBlank(ra.ProducLeader_Share__c)){ |
| | | delRentalApplyShare.add(ra.id); |
| | | // 20220413 ljh update start |
| | | //修改备品的产品担当人字段值 |
| | | updateRac.add(new Rental_Apply__c(id=ra.id,ProducLeader_Share__c='')); |
| | | // updateRac.add(new Rental_Apply__c(id=ra.id,ProducLeader_Share__c='')); |
| | | raMap.put(ra.Id,new Rental_Apply__c(id=ra.id,ProducLeader_Share__c='')); |
| | | // 20220413 ljh update end |
| | | } |
| | | } |
| | | } |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/15 end |
| | | } |
| | | //删除原来的共享 |
| | | delStrategList = [SELECT Id,ParentId,UserOrGroupId FROM Rental_Apply__Share WHERE RowCause ='Manual' AND ParentId in :ParentIdList AND UserOrGroupId in :UserOrGroupIdList]; |
| | | for(Integer m=0; m<delStrategList.size(); m++){ |
| | | if(String.isBlank(PUMap.get(delStrategList[m].ParentId))){ |
| | | delStrategList.remove(m); |
| | | } |
| | | } |
| | | Savepoint sp = Database.setSavepoint(); |
| | | try{ |
| | | if(delStrategList.size()>0){ |
| | | delete delStrategList; |
| | | } |
| | | //增加 |
| | | if (addStrategList.size() > 0) { |
| | | insert addStrategList; |
| | | } |
| | | //更新备品借出 |
| | | if(raList.size()>0){ |
| | | update raList; |
| | | } |
| | | //更新备品借出GI |
| | | if (ratList.size() > 0) { |
| | | update ratList; |
| | | } |
| | | //更新备品借出SP |
| | | if (raoList.size() > 0) { |
| | | update raoList; |
| | | } |
| | | //add by rentx 2021-01-04 SFDC-BWQ3MX start |
| | | |
| | | try{ |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/18 start |
| | | //以下是备品借出申请的产品担当人共享 |
| | | //删除原来的产品担当共享人 |
| | |
| | | if(insRentalApplyShare != null && insRentalApplyShare.size() > 0){ |
| | | insert insRentalApplyShare; |
| | | } |
| | | // 20220413 ljh update start |
| | | //修改产品担当共享人 |
| | | if(updateRac != null && updateRac.size() > 0){ |
| | | update updateRac; |
| | | // if(updateRac != null && updateRac.size() > 0){ |
| | | // update updateRac; |
| | | // } |
| | | // System.debug('zheli:'+raMap.size()); |
| | | if(raMap != null && raMap.size() > 0){ |
| | | // System.debug('zheli:'+raMap.values()); |
| | | update raMap.values(); |
| | | } |
| | | // 20220413 ljh update end |
| | | //add wangweipeng 新增备品的产品担当人共享 2021/10/18 end |
| | | |
| | | }catch(Exception e){ |
| | |
| | | |
| | | System.Test.startTest(); |
| | | Database.executeBatch(new ConsumablesApplyOrLendBatch(),1); |
| | | strategicDep[0].OwnerId = user[1].Id; |
| | | strategicDep[0].Department_Class_Label__c = '其他'; |
| | | update strategicDep; |
| | | Database.executeBatch(new ConsumablesApplyOrLendBatch(strategicDep[0].id),1); |
| | | // 20220805 ljh update start |
| | | // strategicDep[0].OwnerId = user[1].Id; |
| | | // strategicDep[0].Department_Class_Label__c = '其他'; |
| | | // update strategicDep; |
| | | // Database.executeBatch(new ConsumablesApplyOrLendBatch(strategicDep[0].id),1); |
| | | // 20220805 ljh update end |
| | | System.Test.stopTest(); |
| | | } |
| | | |
| | |
| | | List<User> user = [select Id,Name,Job_Category__c from User where IsActive = true AND Job_Category__c = '销售服务']; |
| | | // List<User> user1 = [select Id,Name from User where IsActive = true AND Job_Category__c = '销售服务']; |
| | | strategicDep[0].OwnerId = user[0].Id; |
| | | strategicDep[0].Department_Class_Label__c = '普外科'; |
| | | // strategicDep[0].Department_Class_Label__c = '普外科';// 20220805 ljh update |
| | | update strategicDep; |
| | | |
| | | hospital.FSE_GI_Main_Leader__c = user[1].Id; |
| | |
| | | |
| | | System.Test.startTest(); |
| | | Database.executeBatch(new ConsumablesApplyOrLendBatch(),1); |
| | | strategicDep[0].OwnerId = user[1].Id; |
| | | strategicDep[0].Department_Class_Label__c = '其他'; |
| | | update strategicDep; |
| | | Database.executeBatch(new ConsumablesApplyOrLendBatch(strategicDep[0].id),1); |
| | | // 20220805 ljh update start |
| | | // strategicDep[0].OwnerId = user[1].Id; |
| | | // strategicDep[0].Department_Class_Label__c = '其他'; |
| | | // update strategicDep; |
| | | // Database.executeBatch(new ConsumablesApplyOrLendBatch(strategicDep[0].id),1); |
| | | // 20220805 ljh update end |
| | | System.Test.stopTest(); |
| | | } |
| | | |
| | |
| | | |
| | | insert ra1; |
| | | List<Rental_Apply__c> raList = [SELECT id,OwnerId,Approver_of_Service_Department__c,Strategic_user__c,Strategic_dept__c,ShareStrategicUser__c FROM Rental_Apply__c WHERE Id = :ra1.Id ]; |
| | | |
| | | strategicDep[0].OwnerId = u1.Id; |
| | | strategicDep[0].Department_Class_Label__c = '普外科'; |
| | | update strategicDep; |
| | | |
| | | // 20220805 ljh update start |
| | | // strategicDep[0].OwnerId = u1.Id; |
| | | // strategicDep[0].Department_Class_Label__c = '普外科'; |
| | | // update strategicDep; |
| | | // 20220805 ljh update end |
| | | |
| | | hospital.FSE_GI_Main_Leader__c = u2.Id; |
| | | hospital.FSE_SP_Main_Leader__c = u2.Id; |
| | |
| | | //医院经销商分离 |
| | | public String SecondDealer{get;set;}*/ |
| | | /*****************画面表示Bean******************/ |
| | | /*public List<ConsumableorderdetailsInfo> ConsumableorderdetailsRecords { get; set; } |
| | | public Integer ConsumableorderdetailsCount { get; set; }*/ |
| | | // public List<ConsumableorderdetailsInfo> ConsumableorderdetailsRecords { get; set; } |
| | | // public Integer ConsumableorderdetailsCount { get; set; } |
| | | |
| | | /*****************ソート時再検索条件(画面からの入力条件を無視するため)******************/ |
| | | /*private String cate1ForSort = null; |
| | | // 产品 ID |
| | | private String ESetId = ''; |
| | | private String[] ProidListAll = new String[]{}; |
| | | public String baseUrl {get;private set;} |
| | | */ |
| | | // /*****************ソート時再検索条件(画面からの入力条件を無視するため)******************/ |
| | | // private String cate1ForSort = null; |
| | | // // 产品 ID |
| | | // private String ESetId = ''; |
| | | // private String[] ProidListAll = new String[]{}; |
| | | // public String baseUrl {get;private set;} |
| | | |
| | | public ConsumptionPDFController() { |
| | | //Apexpages.currentPage().getHeaders().put('X-UA-Compatible', 'IE=8'); |
| | | //baseUrl = URL.getSalesforceBaseUrl().toExternalForm(); |
| | | //ESetId = ApexPages.currentPage().getParameters().get('esetId'); |
| | | //ConsumableorderdetailsRecords = new List<ConsumableorderdetailsInfo>(); |
| | | } |
| | | /* |
| | | |
| | | //订单编码自动生成 |
| | | |
| | | // 画面初始化 |
| | | public void init() { |
| | | |
| | | // // 画面初始化 |
| | | // public void init() { |
| | | |
| | | //coc.Order_date__c = Date.today(); |
| | | List<Consumable_order_details__c> ConsumableorderdetailsSelected = new List<Consumable_order_details__c>(); |
| | | // //coc.Order_date__c = Date.today(); |
| | | // List<Consumable_order_details__c> ConsumableorderdetailsSelected = new List<Consumable_order_details__c>(); |
| | | |
| | | coc = new Consumable_order__c(); |
| | | ConsumableorderdetailsRecords = new List<ConsumableorderdetailsInfo>(); |
| | | // coc = new Consumable_order__c(); |
| | | // ConsumableorderdetailsRecords = new List<ConsumableorderdetailsInfo>(); |
| | | |
| | | if(ESetId== NULL || ESetId==''){ |
| | | }else{ |
| | | List<Consumable_order__c> qs = New List<Consumable_order__c>(); |
| | | qs = [select Name, |
| | | ShipmentAccount__c, |
| | | Dealer_Customer__c, |
| | | Order_ForHospital__c, |
| | | Order_ForDealerText__c, |
| | | Consumable_pdf_insert_day__c |
| | | From Consumable_order__c |
| | | Where Id =:ESetId]; |
| | | if (qs.size()>0){ |
| | | coc = qs[0]; |
| | | } |
| | | // 選択済みの明细を取得 |
| | | ConsumableorderdetailsSelected = [select Id, |
| | | Name, |
| | | Consumable_order__c, |
| | | Consumable_Product__c, |
| | | Consumable_Product__r.Name, |
| | | Consumable_Product__r.Name__c, |
| | | Sterilization_limit__c,Consumable_count__c, |
| | | Deliver_date__c, |
| | | Bar_Code__c, |
| | | Intra_Trade_List_RMB__c, |
| | | Asset_Model_No__c, |
| | | Sum_of_money__c, |
| | | Order_details_Piece__c, |
| | | Box_Piece__c, |
| | | Guarantee_period_for_products__c |
| | | from Consumable_order_details__c |
| | | where Consumable_Sale_order__c = :ESetId |
| | | order by Name ]; |
| | | for (Integer i = 0; i < ConsumableorderdetailsSelected.size(); i++) { |
| | | ConsumableorderdetailsRecords.add(new ConsumableorderdetailsInfo(ConsumableorderdetailsSelected[i])); |
| | | } |
| | | } |
| | | }*/ |
| | | // if(ESetId== NULL || ESetId==''){ |
| | | // }else{ |
| | | // List<Consumable_order__c> qs = New List<Consumable_order__c>(); |
| | | // qs = [select Name, |
| | | // ShipmentAccount__c, |
| | | // Dealer_Customer__c, |
| | | // Order_ForHospital__c, |
| | | // Order_ForDealerText__c, |
| | | // Consumable_pdf_insert_day__c |
| | | // From Consumable_order__c |
| | | // Where Id =:ESetId]; |
| | | // if (qs.size()>0){ |
| | | // coc = qs[0]; |
| | | // } |
| | | // // 選択済みの明细を取得 |
| | | // ConsumableorderdetailsSelected = [select Id, |
| | | // Name, |
| | | // Consumable_order__c, |
| | | // Consumable_Product__c, |
| | | // Consumable_Product__r.Name, |
| | | // Consumable_Product__r.Name__c, |
| | | // Sterilization_limit__c,Consumable_count__c, |
| | | // Deliver_date__c, |
| | | // Bar_Code__c, |
| | | // Intra_Trade_List_RMB__c, |
| | | // Asset_Model_No__c, |
| | | // Sum_of_money__c, |
| | | // Order_details_Piece__c, |
| | | // Box_Piece__c, |
| | | // Guarantee_period_for_products__c |
| | | // from Consumable_order_details__c |
| | | // where Consumable_Sale_order__c = :ESetId |
| | | // order by Name ]; |
| | | // for (Integer i = 0; i < ConsumableorderdetailsSelected.size(); i++) { |
| | | // ConsumableorderdetailsRecords.add(new ConsumableorderdetailsInfo(ConsumableorderdetailsSelected[i])); |
| | | // } |
| | | // } |
| | | // } |
| | | |
| | | // Data Bean |
| | | /*class ConsumableorderdetailsInfo implements Comparable { |
| | |
| | | @isTest |
| | | private class ContactHpDeptUpdTriggerTest { |
| | | |
| | | @TestSetup |
| | | static void makeData(){ |
| | | TestDataUtility.CreatePIPolicyConfigurations(new String[]{'Contact','Agency_Contact__c'}); |
| | | } |
| | | |
| | | static testMethod void testUpdate() { |
| | | // recode type を取得 |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '病院']; |
| | |
| | | private Map < Id, Contact > oldMap; |
| | | private List < Contact > newList; |
| | | private List < Contact > oldList; |
| | | private Id AgencyId = Schema.SObjectType.Contact.getRecordTypeInfosByDeveloperName().get('Agency').getRecordTypeId(); // 20220830 ljh LLIU-CHR8FF add |
| | | |
| | | public ContactTriggerHandler() { |
| | | this.newMap = (Map < Id, Contact > ) Trigger.newMap; |
| | | this.oldMap = (Map < Id, Contact > ) Trigger.oldMap; |
| | |
| | | this.oldList = (List < Contact > ) Trigger.old; |
| | | } |
| | | protected override void beforeInsert() { |
| | | mobileNumberVerification(); |
| | | if(Test.isRunningTest()||UserInfo.getUserId()!=System.Label.ByPassTrigger){ //Add by Li Jun for PIPL 20220331 |
| | | mobileNumberVerification(); |
| | | } |
| | | } |
| | | |
| | | protected override void afterInsert() { |
| | | syncToAgencyContact(); |
| | | updateDealerNum(); |
| | | sendToComPlat(); |
| | | updateChargeState();// 20220830 ljh LLIU-CHR8FF |
| | | } |
| | | |
| | | protected override void afterUpdate() { |
| | | syncToAgencyContact(); |
| | | updateDealerNum(); |
| | | sendToComPlat(); |
| | | |
| | | } |
| | | |
| | | protected override void beforeUpdate() { |
| | | // 服务技师 2018/12/24 Start |
| | | UpdateProcessingWork(); |
| | |
| | | } |
| | | // 服务技师 2018/12/24 end |
| | | private void syncToAgencyContact() { |
| | | System.debug('enter syncToAgencyContact'); |
| | | Map < Id, Agency_Contact__c > targetContactMap = new Map < Id, Agency_Contact__c > (); |
| | | Map < Id, Contact > ContactMap = new Map < Id, Contact > (); |
| | | for (Contact nObj: newList) { |
| | | if (nObj.RecordTypeId == '01210000000QfWdAAK' // Doctor |
| | | && |
| | |
| | | // ) |
| | | ) |
| | | ) { |
| | | Agency_Contact__c acObj = new Agency_Contact__c(Agency_ID__c = '000000000000000', Contact__c = nObj.Id, ContactId18__c = nObj.Id, Agency_Hospital__c = null, Name = nObj.LastName + ((String.isBlank(nObj.FirstName) == false) ? ' ' + nObj.FirstName : ''), Department_Class__c = nObj.Strategic_dept_Class__c, Type__c = nObj.Type__c, Doctor_Division1__c = nObj.Doctor_Division1__c); |
| | | //Agency_Contact__c acObj = new Agency_Contact__c(Agency_ID__c = '000000000000000', Contact__c = nObj.Id, ContactId18__c = nObj.Id, Agency_Hospital__c = null, Name = nObj.LastName + ((String.isBlank(nObj.FirstName) == false) ? ' ' + nObj.FirstName : ''), Department_Class__c = nObj.Strategic_dept_Class__c, Type__c = nObj.Type__c, Doctor_Division1__c = nObj.Doctor_Division1__c); |
| | | //zhj MEBG新方案改造 2022-11-27 去掉Encrypted start |
| | | Agency_Contact__c acObj = new Agency_Contact__c( |
| | | Agency_ID__c = '000000000000000', |
| | | Contact__c = nObj.Id, |
| | | ContactId18__c = nObj.Id, |
| | | Agency_Hospital__c = null, |
| | | Name = nObj.LastName, |
| | | //Name_Encrypted__c = nObj.LastName_Encrypted__c, |
| | | Department_Class__c = nObj.Strategic_dept_Class__c, |
| | | Type__c = nObj.Type__c, |
| | | //Type_Encrypted__c = nObj.Type_Encrypted__c, |
| | | Doctor_Division1__c = nObj.Doctor_Division1__c |
| | | //Doctor_Division1_Encrypted__c = nObj.Doctor_Division1_Encrypted__c |
| | | ); |
| | | //zhj MEBG新方案改造 2022-11-27 去掉Encrypted end |
| | | targetContactMap.put(nObj.Id, acObj); |
| | | ContactMap.put(nObj.Id, nObj); |
| | | } |
| | | } |
| | | } |
| | | if (targetContactMap.size() > 0) { |
| | | upsert targetContactMap.values() ContactId18__c; |
| | | List<Agency_Contact__c> temp = targetContactMap.values(); |
| | | upsert temp ContactId18__c; |
| | | system.debug('temp='+temp); |
| | | EncryptInsert(temp,ContactMap); |
| | | } |
| | | } |
| | | |
| | | static void EncryptInsert(List<Agency_Contact__c> aclist,Map < Id, Contact > ContactMap){ |
| | | if(!(system.isFuture() || system.isBatch())){ |
| | | //zhj MEBG新方案改造 2022-11-27 start |
| | | //AwsServiceTool2.EncryptPushFuture(Json.serialize(aclist), 'Agency_Contact__c'); |
| | | |
| | | Map<String,PIHelper.PIIntegration> staticResource = new Map<String,PIHelper.PIIntegration>(); |
| | | staticResource.put('Contact',PIHelper.getPIIntegrationInfo('Contact')); |
| | | staticResource.put('Agency_Contact__c',PIHelper.getPIIntegrationInfo('Agency_Contact__c')); |
| | | Map<String, Map<String, PI_Field_Policy_Detail__c>> mmsp = new Map<String, Map<String,PI_Field_Policy_Detail__c>>(); |
| | | for (String key : staticResource.keySet()) { |
| | | mmsp.put(key, new Map<String,PI_Field_Policy_Detail__c>()); |
| | | for (PI_Field_Policy_Detail__c detail : staticResource.get(key).PIDetails) { |
| | | mmsp.get(key).put(detail.SF_Field_API_Name__c, detail); |
| | | } |
| | | } |
| | | |
| | | System.debug('mmsp = ' + mmsp); |
| | | List<AWSServiceTool2V2.EncryptPushRequestBody> EncryptPushList = new List<AWSServiceTool2V2.EncryptPushRequestBody>(); |
| | | for(Agency_Contact__c ac : aclist){ |
| | | AWSServiceTool2V2.EncryptPushRequestBody EncryptPush = new AWSServiceTool2V2.EncryptPushRequestBody(); |
| | | EncryptPush.dataId = ac.AWS_Data_Id__c != null ?ac.AWS_Data_Id__c:''; |
| | | EncryptPush.sfRecordId = ac.Id; |
| | | EncryptPush.fieldsMapping = new Map<String, List<AWSServiceTool2V2.EncryptPushRes>>(); |
| | | List<AWSServiceTool2V2.EncryptPushRes> resList = new List<AWSServiceTool2V2.EncryptPushRes>(); |
| | | AWSServiceTool2V2.EncryptPushRes res= new AWSServiceTool2V2.EncryptPushRes(); |
| | | res.isQueryDb = true; |
| | | res.value = ''; |
| | | res.table = staticResource.get('Contact').awsTableName; |
| | | res.dataId = ContactMap.get(ac.Contact__c).AWS_Data_Id__c; |
| | | res.field = mmsp.get('Contact').get('LastName').AWS_Field_API__c; |
| | | resList.add(res); |
| | | |
| | | List<AWSServiceTool2V2.EncryptPushRes> resList2 = new List<AWSServiceTool2V2.EncryptPushRes>(); |
| | | AWSServiceTool2V2.EncryptPushRes res2= new AWSServiceTool2V2.EncryptPushRes(); |
| | | res2.isQueryDb = true; |
| | | res2.value = ''; |
| | | res2.table = staticResource.get('Contact').awsTableName; |
| | | res2.dataId = ContactMap.get(ac.Contact__c).AWS_Data_Id__c; |
| | | res2.field = mmsp.get('Contact').get('Type__c').AWS_Field_API__c; |
| | | resList2.add(res2); |
| | | |
| | | List<AWSServiceTool2V2.EncryptPushRes> resList3 = new List<AWSServiceTool2V2.EncryptPushRes>(); |
| | | AWSServiceTool2V2.EncryptPushRes res3= new AWSServiceTool2V2.EncryptPushRes(); |
| | | res3.isQueryDb = true; |
| | | res3.value = ''; |
| | | res3.table = staticResource.get('Contact').awsTableName; |
| | | res3.dataId = ContactMap.get(ac.Contact__c).AWS_Data_Id__c; |
| | | res3.field = mmsp.get('Contact').get('Doctor_Division1__c').AWS_Field_API__c; |
| | | resList3.add(res3); |
| | | |
| | | System.debug('Agency_Contact__c Name = ' +mmsp.get('Agency_Contact__c').get('Name').AWS_Field_API__c); |
| | | System.debug('resList = ' + resList); |
| | | EncryptPush.fieldsMapping.put(mmsp.get('Agency_Contact__c').get('Name').AWS_Field_API__c, resList); |
| | | EncryptPush.fieldsMapping.put(mmsp.get('Agency_Contact__c').get('Type__c').AWS_Field_API__c, resList2); |
| | | EncryptPush.fieldsMapping.put(mmsp.get('Agency_Contact__c').get('Doctor_Division1__c').AWS_Field_API__c, resList3); |
| | | EncryptPushList.add(EncryptPush); |
| | | } |
| | | System.debug('EncryptPushListdataId = ' + JSON.serialize(EncryptPushList[0].dataId)); |
| | | System.debug('EncryptPushListsfRecordId = ' + JSON.serialize(EncryptPushList[0].sfRecordId)); |
| | | System.debug('EncryptPushListfieldsMapping = ' + JSON.serialize(EncryptPushList[0].fieldsMapping)); |
| | | System.debug('EncryptPushList = ' + JSON.serialize(EncryptPushList)); |
| | | if(!Test.isRunningTest()) |
| | | AwsServiceTool2V2.EncryptPushFutureV2(Json.serialize(EncryptPushList),Json.serialize(aclist), 'Agency_Contact__c'); |
| | | //zhj MEBG新方案改造 2022-11-27 end |
| | | }else{ |
| | | //Add By Li Jun for sync agency contact to aws 20220424 start |
| | | if(!Test.isRunningTest()){ |
| | | System.debug('ContactMap = ' + ContactMap); |
| | | SyncAccountContactToAWS.assignOnceOneMinuteLater(aclist,ContactMap); |
| | | } |
| | | //Add By Li Jun for sync agency contact to aws 20220424 end |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | //更新经销商用户人数字段 精琢技术 pk 2021-08-26 end |
| | | |
| | | //zhj 新方案改造 将手机号去重及其验证规则移动到AWS和前端 start |
| | | // 手机号去重及规则验证 及新增客户人员重名验证 |
| | | public void mobileNumberVerification(){ |
| | | public void mobileNumberVerification(){ |
| | | |
| | | Pattern pattern = Pattern.compile('^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$'); |
| | | // Pattern pattern = Pattern.compile('^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$'); |
| | | Map<String, Map<String,Contact>> accountContactMap = new Map<String, Map<String,Contact>>(); |
| | | Set<Id> accountIdSet = new Set<Id>(); |
| | | //用户对象上找对应的联系人 |
| | | List<User> userList=[select ID,ContactID from User where ContactID != null]; |
| | | Map<String,User> userMap= new Map<String,User>(); |
| | | if (userList.size()>0){ |
| | | for(User us1: userList){ |
| | | userMap.put(us1.ContactId, us1); |
| | | } |
| | | } |
| | | // List<User> userList=[select ID,ContactID from User where ContactID != null]; |
| | | // Map<String,User> userMap= new Map<String,User>(); |
| | | // if (userList.size()>0){ |
| | | // for(User us1: userList){ |
| | | // userMap.put(us1.ContactId, us1); |
| | | // } |
| | | // } |
| | | //查找联系人对象上对应的有效客户;医院直接使用有效/无效字段、经销商使用有效/无效公式字段 |
| | | List<String> accIdList = new List<String>(); |
| | | Map<String,String> accMap= new Map<String,String>(); |
| | |
| | | } |
| | | } |
| | | } |
| | | for (Contact contactnew: newList) { |
| | | // 手机号 有值 并且 联系人有效 联系人的客户有效 无外部关联用户 进行手机号码验证 |
| | | if (String.isNotBlank(contactnew.MobilePhone) && ('有效'.equals(contactnew.Isactive__c) ||'有効'.equals(contactnew.Isactive__c)) |
| | | && '有効'.equals(accMap.get(contactnew.AccountId)) |
| | | && !userMap.containsKey(contactnew.Id) |
| | | ) { |
| | | Matcher isMobilePhone = pattern.matcher(contactnew.MobilePhone); |
| | | if (isMobilePhone.matches()) { |
| | | // 将手机号 赋值给 手机号唯一字段 |
| | | contactnew.UniqueNumber__c = contactnew.MobilePhone; |
| | | } else { |
| | | // 手机号唯一字段清空 |
| | | contactnew.UniqueNumber__c = null; |
| | | } |
| | | } else { |
| | | // 手机号 无值 或者 联系人不是有效 手机号唯一字段清空 |
| | | contactnew.UniqueNumber__c = null; |
| | | } |
| | | |
| | | |
| | | |
| | | if (Trigger.isInsert) { |
| | | accountIdSet.add(contactnew.AccountId); |
| | | |
| | | } |
| | | } |
| | | // 新增联系人时, |
| | | if (accountIdSet.size() > 0) { |
| | | List<Contact> contactList = [SELECT Id,AccountId,FullName__c,LastName,FirstName,Account.Name,CManageCode__c,IsFromSPO__c |
| | | FROM Contact |
| | | WHERE IsFromSPO__c = false AND AccountId IN:accountIdSet]; |
| | | if ( contactList.size() > 0) { |
| | | for(Contact contact :contactList){ |
| | | |
| | | String lastNameStr = String.isNotBlank(contact.LastName) ? contact.LastName:''; |
| | | String firstNameStr = String.isNotBlank(contact.FirstName) ? contact.FirstName:''; |
| | | String contactFullName = lastNameStr + firstNameStr; |
| | | String accountId = String.valueOf(contact.AccountId).SubString(0,15); |
| | | Map<String,Contact> contactFullNameMap = new Map<String,Contact>(); |
| | | if (accountContactMap.containsKey(accountId)) { |
| | | contactFullNameMap = accountContactMap.get(accountId); |
| | | //手机号唯一校验-医院下新建客户人员校验使用加密手机号,经销商使用普通手机号 thh 20220328 start |
| | | ID DoctorRecordTypeId = Schema.SObjectType.Contact.getRecordTypeInfosByDeveloperName().get('Doctor').getRecordTypeId(); |
| | | ID AgencyRecordTypeId = Schema.SObjectType.Contact.getRecordTypeInfosByDeveloperName().get('Agency').getRecordTypeId(); |
| | | for (Contact contactnew : newList) { |
| | | // 手机号有值并且联系人有效,联系人的客户有效,进行手机号码验证 |
| | | if (('有效'.equals(contactnew.Isactive__c) || '有効'.equals(contactnew.Isactive__c)) |
| | | && ('有効'.equals(accMap.get(contactnew.AccountId)) || '有效'.equals(accMap.get(contactnew.AccountId)))) { |
| | | // 经销商客户人员不进行手机号校验 thh 20220517 start |
| | | if(AgencyRecordTypeId.equals(contactnew.RecordTypeId)){ |
| | | if(String.isNotBlank(contactnew.MobilePhone)){ |
| | | // Matcher isMobilePhone = pattern.matcher(contactnew.MobilePhone); |
| | | // if (isMobilePhone.matches()) { |
| | | contactnew.UniqueNumber__c = contactnew.MobilePhone; |
| | | // } else { |
| | | // 手机号唯一字段清空 |
| | | // contactnew.UniqueNumber__c = null; |
| | | // } |
| | | } else { |
| | | contactnew.UniqueNumber__c = null; |
| | | } |
| | | contactFullNameMap.put(contactFullName, contact); |
| | | accountContactMap.put(accountId, contactFullNameMap); |
| | | } |
| | | // 经销商客户人员不进行手机号校验 thh 20220517 end |
| | | } |
| | | // else if(DoctorRecordTypeId.equals(contactnew.RecordTypeId)){ |
| | | // if(String.isNotBlank(contactnew.MobilePhone_Encrypted__c)){ |
| | | // contactnew.UniqueNumber__c = contactnew.MobilePhone_Encrypted__c; |
| | | // } else { |
| | | // contactnew.UniqueNumber__c = null; |
| | | // } |
| | | // } |
| | | } |
| | | // if (Trigger.isInsert) { |
| | | // if(DoctorRecordTypeId.equals(contactnew.RecordTypeId)){ |
| | | // accountIdSet.add(contactnew.AccountId); |
| | | // } |
| | | // } |
| | | } |
| | | //手机号唯一校验-医院下新建客户人员校验使用加密手机号,经销商使用普通手机号 thh 20220328 end |
| | | // 新增医院联系人时 |
| | | // if (accountIdSet.size() > 0) { |
| | | // List<Contact> contactList = new List<Contact>(); |
| | | // if(Trigger.isInsert){ |
| | | // contactList = [SELECT Id,AccountId,FullName__c,LastName,FirstName,Account.Name,CManageCode__c,IsFromSPO__c, |
| | | // LastName_Encrypted__c// 20220314 PI改造 by Bright |
| | | // , MobilePhone_Encrypted__c // 通过姓名+手机号判断人员是否重复 thh 20220518 |
| | | // FROM Contact |
| | | // WHERE IsFromSPO__c = false AND AccountId IN:accountIdSet]; |
| | | // } |
| | | // if(Trigger.isUpdate){ |
| | | // contactList = [SELECT Id,AccountId,FullName__c,LastName,FirstName,Account.Name,CManageCode__c,IsFromSPO__c, |
| | | // LastName_Encrypted__c// 20220314 PI改造 by Bright |
| | | // , MobilePhone_Encrypted__c // 通过姓名+手机号判断人员是否重复 thh 20220518 |
| | | // FROM Contact |
| | | // WHERE IsFromSPO__c = false AND AccountId IN:accountIdSet AND Id Not IN: oldMap.keyset()]; |
| | | // } |
| | | // System.debug('contactList:' + contactList); |
| | | // if (contactList.size() > 0) { |
| | | // for(Contact contact :contactList){ |
| | | // // 通过姓名+手机号判断人员是否重复 thh 20220518 start |
| | | // // String lastNameStr = String.isNotBlank(contact.LastName) ? contact.LastName:''; |
| | | // // String firstNameStr = String.isNotBlank(contact.FirstName) ? contact.FirstName:''; |
| | | // // String contactFullName = lastNameStr + firstNameStr + MobilePhoneStr; |
| | | // String contactFullName = contact.LastName_Encrypted__c + contact.MobilePhone_Encrypted__c;// 20220314 PI改造 by Bright |
| | | // // 通过姓名+手机号判断人员是否重复 thh 20220518 end |
| | | // if(string.isBlank(contactFullName)){ |
| | | // continue; |
| | | // } |
| | | // String accountId = String.valueOf(contact.AccountId).SubString(0,15); |
| | | // Map<String,Contact> contactFullNameMap = new Map<String,Contact>(); |
| | | // if (accountContactMap.containsKey(accountId)) { |
| | | // contactFullNameMap = accountContactMap.get(accountId); |
| | | // } |
| | | // contactFullNameMap.put(contactFullName, contact); |
| | | // accountContactMap.put(accountId, contactFullNameMap); |
| | | // } |
| | | // } |
| | | // } |
| | | |
| | | for (Contact contactnew: newList) { |
| | | |
| | | if (Trigger.isInsert) { |
| | | |
| | | String accountId = String.valueOf(contactnew.AccountId).substring(0, 15); |
| | | |
| | | if (accountContactMap.containsKey(accountId)) { |
| | | Map<String,Contact> contactFullNameMap = accountContactMap.get(accountId); |
| | | String lastNameStr = String.isNotBlank(contactnew.LastName) ? contactnew.LastName:''; |
| | | String firstNameStr = String.isNotBlank(contactnew.FirstName) ? contactnew.FirstName:''; |
| | | String contactFullName = lastNameStr + firstNameStr; |
| | | |
| | | if (contactFullNameMap.containsKey(contactFullName)) { |
| | | String accountName = contactFullNameMap.get(contactFullName).Account.Name; |
| | | String cManageCode = contactFullNameMap.get(contactFullName).CManageCode__c; |
| | | // 跳过测试程序 和 SPO通过203接口创建的联系人 |
| | | if (!(Test.isRunningTest() || contactnew.IsFromSPO__c)) { |
| | | contactnew.LastName.addError('客户 [ '+accountName+ ' ],已存在相同名字的联系人 人员管理编码 ['+cManageCode+' ] ,不能重复创建,请了解'); |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | // for (Contact contactnew: newList) { |
| | | // if(AgencyRecordTypeId.equals(contactnew.RecordTypeId) || (Trigger.isUpdate && !oldMap.isEmpty() && oldMap.get(contactnew.Id) != null |
| | | // && String.isBlank(oldMap.get(contactnew.Id).MobilePhone_Encrypted__c) |
| | | // && String.isBlank(contactnew.MobilePhone_Encrypted__c))){ |
| | | // continue; |
| | | // } |
| | | // String accountId = String.valueOf(contactnew.AccountId).substring(0, 15); |
| | | // if (accountContactMap.containsKey(accountId)) { |
| | | // Map<String,Contact> contactFullNameMap = accountContactMap.get(accountId); |
| | | // // 通过姓名+手机号判断人员是否重复 thh 20220518 start |
| | | // // String lastNameStr = String.isNotBlank(contactnew.LastName) ? contactnew.LastName:''; |
| | | // // String firstNameStr = String.isNotBlank(contactnew.FirstName) ? contactnew.FirstName:''; |
| | | // // String contactFullName = lastNameStr + firstNameStr + MobilePhoneStr; |
| | | // String contactFullName = contactnew.LastName_Encrypted__c + contactnew.MobilePhone_Encrypted__c;// 20220314 PI改造 by Bright |
| | | // // 通过姓名+手机号判断人员是否重复 thh 20220518 end |
| | | // if (contactFullNameMap.containsKey(contactFullName)) { |
| | | // String accountName = contactFullNameMap.get(contactFullName).Account.Name; |
| | | // String cManageCode = contactFullNameMap.get(contactFullName).CManageCode__c; |
| | | // // 跳过测试程序 和 SPO通过203接口创建的联系人 |
| | | // if (!(Test.isRunningTest() || contactnew.IsFromSPO__c)) { |
| | | // // if(Trigger.isInsert) { |
| | | // contactnew.LastName.addError('客户 [ '+accountName+ ' ],已存在相同名字的联系人 人员管理编码 ['+cManageCode+' ] ,不能重复创建,请了解'); |
| | | // // } |
| | | // // 客户人员删除手机号时,进行判断是否存在同名且手机号为空的客户人员 thh 20220523 start |
| | | // // if(Trigger.isUpdate && !UserInfo.getUserId().equals(System.Label.interfaceUserID)) { |
| | | // // if (String.isNotBlank(oldMap.get(contactnew.Id).MobilePhone_Encrypted__c) && String.isBlank(contactnew.MobilePhone_Encrypted__c)){ |
| | | // // contactnew.LastName.addError('相同名字的联系人 人员管理编码 ['+cManageCode+' ] 手机号为空已经存在,不能重复创建,请了解'); |
| | | // // } |
| | | // // if (oldMap.get(contactnew.Id).CManageCode__c != contactnew.CManageCode__c){ |
| | | // // contactnew.LastName.addError('客户 [ '+accountName+ ' ],已存在相同名字的联系人 人员管理编码 ['+cManageCode+' ] ,不能重复创建,请了解'); |
| | | // // } |
| | | // // } |
| | | // // 客户人员删除手机号时,进行判断是否存在同名且手机号为空的客户人员 thh 20220523 end |
| | | // } |
| | | // } |
| | | // } |
| | | // } |
| | | } |
| | | |
| | | //zhj 新方案改造 将手机号去重及其验证规则移动到AWS和前端 end |
| | | |
| | | public static Map<Id,Id> NFM606_IdMap = new Map<Id,Id>(); |
| | | // 606接口调用问题修复 thh 20220330 start |
| | | private void sendToComPlat() { |
| | | List<Id> contactIdList = new List<Id>(); |
| | | List<String> interfaceUserUpsertContact = new List<String>(); |
| | | List<String> interfaceUserUpsertContact = new List<String>(); |
| | | for (Contact local: newList) { |
| | | |
| | | Contact old = null; |
| | | if (Trigger.isUpdate) { |
| | | old = oldMap.get(local.Id); |
| | |
| | | || old.ServicePlatformCode__c != local.ServicePlatformCode__c//服务平台编码 |
| | | || old.UnifiedI_Contact_ID__c != local.UnifiedI_Contact_ID__c//智慧医疗编码 |
| | | || old.ContactType__c != local.ContactType__c//人员类型 |
| | | |
| | | || (old.ChargeState__c != local.ChargeState__c && local.RecordTypeId == AgencyId)//负责省 // 20220830 ljh LLIU-CHR8FF add |
| | | ) { |
| | | if (!local.IsFromSPO__c && !'01210000000QtkyAAC'.equals(local.RecordTypeId)) { |
| | | |
| | | //获取客户人员的记录类型ID thh 20220330 start |
| | | ID InternalStaffRecordTypeId = Schema.SObjectType.Contact.getRecordTypeInfosByDeveloperName().get('Internal_staff').getRecordTypeId(); |
| | | ID DoctorRecordTypeId = Schema.SObjectType.Contact.getRecordTypeInfosByDeveloperName().get('Doctor').getRecordTypeId(); |
| | | ID AgencyRecordTypeId = Schema.SObjectType.Contact.getRecordTypeInfosByDeveloperName().get('Agency').getRecordTypeId(); |
| | | //获取客户人员的记录类型ID thh 20220330 end |
| | | System.debug('local.UnifiedI_Contact_ID__c1:' + local.UnifiedI_Contact_ID__c); |
| | | System.debug('local.MobilePhone1:' + local.MobilePhone); |
| | | // gzw 20220824 bugfix start |
| | | // if (!local.IsFromSPO__c && !InternalStaffRecordTypeId.equals(local.RecordTypeId)) { |
| | | if (!InternalStaffRecordTypeId.equals(local.RecordTypeId)) { |
| | | // gzw 20220824 bugfix end |
| | | // 医院 客户人员 统一平台编码有值 发送 PO |
| | | if ('01210000000QfWdAAK'.equals(local.RecordTypeId) && String.isNotBlank(local.UnifiedI_Contact_ID__c)) { |
| | | if (DoctorRecordTypeId.equals(local.RecordTypeId) && String.isNotBlank(local.UnifiedI_Contact_ID__c)) { |
| | | if (!NFM606_IdMap.containsKey(local.Id)) { |
| | | if(UserInfo.getUserId().equals(System.Label.interfaceUserID)){ |
| | | interfaceUserUpsertContact.add(local.Id); |
| | |
| | | } |
| | | } |
| | | // 经销商 客户人员 手机号码有值 发送 PO |
| | | if ('01210000000QfWiAAK'.equals(local.RecordTypeId) && String.isNotBlank(local.MobilePhone)) { |
| | | if (AgencyRecordTypeId.equals(local.RecordTypeId) && String.isNotBlank(local.MobilePhone)) { |
| | | if (!NFM606_IdMap.containsKey(local.Id)) { |
| | | if(UserInfo.getUserId().equals(System.Label.interfaceUserID)){ |
| | | interfaceUserUpsertContact.add(local.Id); |
| | |
| | | |
| | | } |
| | | } |
| | | |
| | | //606标记 |
| | | if(!System.Test.isRunningTest()){ |
| | | // NFM606Controller.executeNotFuture('', contactIdList); |
| | | if (contactIdList.size() > 0) { |
| | | // NFM606Controller.callout('', contactIdList); |
| | | //添加future 判断 add for pipl sushanhu 20220317 start |
| | | // if (!(System.isFuture()||System.isBatch())) { |
| | | NFM606Controller.callout('', contactIdList); |
| | | // } else{ |
| | | // NFM606Controller.executeNotFuture('', contactIdList); |
| | | // } |
| | | //添加future 判断 add for pipl sushanhu 20220317 end |
| | | } |
| | | if (interfaceUserUpsertContact.size() > 0) { |
| | | NFM606Controller.executeNotFuture('', interfaceUserUpsertContact); |
| | | //添加future 判断 add for pipl sushanhu 20220316 start |
| | | // if (!(System.isFuture()||System.isBatch())) { |
| | | // NFM606Controller.executeNotFuture('', interfaceUserUpsertContact); |
| | | // } |
| | | //添加future 判断 add for pipl sushanhu 20220316 end |
| | | } |
| | | } |
| | | |
| | | } |
| | | // 606接口调用问题修复 thh 20220330 end |
| | | // 20220830 ljh LLIU-CHR8FF add start |
| | | private void updateChargeState(){ |
| | | List<Contact> contactL = new List<Contact>(); |
| | | for (Contact nObj : newList) { |
| | | if(nObj.RecordTypeId == AgencyId && String.isBlank(nObj.ChargeState__c)){ |
| | | Contact cnew = new Contact(); |
| | | cnew.Id = nObj.Id; |
| | | cnew.ChargeState__c = nObj.ChargeState_F__c; |
| | | contactL.add(cnew); |
| | | } |
| | | } |
| | | if (!contactL.isEmpty()) { |
| | | update contactL; |
| | | } |
| | | } |
| | | // 20220830 ljh LLIU-CHR8FF add end |
| | | |
| | | |
| | | } |
| | |
| | | public static Contact contact1 = new Contact(); |
| | | public static Contact contact2 = new Contact(); |
| | | |
| | | @Testsetup |
| | | static void setup(){ |
| | | List<String> strList = new List<String>(); |
| | | strList.add('Agency_Contact__c'); |
| | | strList.add('Agency_Contact__cV2'); |
| | | strList.add('Contact'); |
| | | TestDataUtility.CreatePIPolicyConfigurations(strList); |
| | | //TestDataUtility.CreatePIPolicyConfiguration('Agency_Contact__c'); |
| | | |
| | | } |
| | | @isTest static void test_method_one() { |
| | | List<RecordType> HPrectCo = [select Id, Name, DeveloperName from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'HP']; |
| | | List<RecordType> GIrectCo = [select Id, Name, DeveloperName from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'Department_Class_GI']; |
| | | List<RecordType> DoctorrectCo = [select Id, Name, DeveloperName from RecordType where IsActive = true and SobjectType = 'Contact' and DeveloperName = 'Doctor']; |
| | | if (HPrectCo.size() == 0) { |
| | | throw new ControllerUtil.myException('not found HP recordtype'); |
| | | } |
| | | if (GIrectCo.size() == 0) { |
| | | throw new ControllerUtil.myException('not found Department_Class_GI recordtype'); |
| | | } |
| | | if (DoctorrectCo.size() == 0) { |
| | | throw new ControllerUtil.myException('not found Doctor recordtype'); |
| | | } |
| | | // 取引先 |
| | | account1.Name = 'test1医院'; |
| | | account1.RecordTypeId = '01210000000QemG'; |
| | | // account1.RecordTypeId = '01210000000QemG'; |
| | | account1.RecordTypeId = HPrectCo[0].Id; |
| | | insert account1; |
| | | |
| | | // 取引先責任者 |
| | | contact1.AccountId = account1.Id; |
| | | contact1.FirstName = '責任者'; |
| | | contact1.LastName = 'test1医院'; |
| | | Account dept = [select Id from Account where RecordTypeId = '01210000000QemL']; |
| | | Account dept = [select Id from Account where RecordTypeId =: GIrectCo[0].Id]; |
| | | contact1.Strategic_dept_Class__c = dept.Id; |
| | | contact1.MobilePhone = '13409507069'; |
| | | contact1.RecordTypeId = '01210000000QfWdAAK'; |
| | | // contact1.RecordTypeId = '01210000000QfWdAAK'; |
| | | contact1.RecordTypeId = DoctorrectCo[0].Id; |
| | | contact1.UnifiedI_Contact_ID__c = '100000'; |
| | | insert contact1; |
| | | |
| | | contact2.FirstName = 'test'; |
| | | contact2.LastName = 'Data'; |
| | | // contact2.RecordTypeId = '01210000000QfWi'; |
| | | contact2.RecordTypeId = DoctorrectCo[0].Id; |
| | | contact2.AccountId = account1.Id; |
| | | contact2.Agency_User__c = true; |
| | | contact2.MobilePhone = '18999999999'; |
| | | insert contact2; |
| | | |
| | | MeetingManagement__c a = |
| | | new MeetingManagement__c(Contact__c =contact1.id |
| | | ,pollingTime__c = 1, |
| | |
| | | } |
| | | @isTest |
| | | static void test_method_two(){ |
| | | List<RecordType> AgencyrectCo1 = [select Id, Name, DeveloperName from RecordType where IsActive = true and SobjectType = 'Account' and DeveloperName = 'Agency']; |
| | | if (AgencyrectCo1.size() == 0) { |
| | | throw new ControllerUtil.myException('not found AccountAgency recordtype'); |
| | | } |
| | | List<RecordType> AgencyrectCo2 = [select Id, Name, DeveloperName from RecordType where IsActive = true and SobjectType = 'Contact' and DeveloperName = 'Agency']; |
| | | if (AgencyrectCo2.size() == 0) { |
| | | throw new ControllerUtil.myException('not found ContactAgency recordtype'); |
| | | } |
| | | account2.Name = 'test2 经销商'; |
| | | account2.RecordTypeId = '01210000000Qem1'; |
| | | // account2.RecordTypeId = '01210000000Qem1'; |
| | | account2.RecordTypeId = AgencyrectCo1[0].Id; |
| | | insert account2; |
| | | |
| | | contact2.FirstName = 'test'; |
| | | contact2.LastName = 'Data'; |
| | | contact2.RecordTypeId = '01210000000QfWi'; |
| | | // contact2.RecordTypeId = '01210000000QfWi'; |
| | | contact2.RecordTypeId = AgencyrectCo2[0].Id; |
| | | contact2.AccountId = account2.Id; |
| | | contact2.Agency_User__c = true; |
| | | contact2.MobilePhone = '18999999999'; |
| | | insert contact2; |
| | | contact2.MobilePhone = '1899999999A'; |
| | | update contact2; |
| | | |
| | | Contact contact3 = new Contact(); |
| | | contact3.FirstName = 'test'; |
| | | contact3.LastName = 'Data'; |
| | | contact3.RecordTypeId = '01210000000QfWi'; |
| | | // contact3.RecordTypeId = '01210000000QfWi'; |
| | | contact3.RecordTypeId = AgencyrectCo2[0].Id; |
| | | contact3.AccountId = account2.Id; |
| | | // contact3.Agency_User__c = true; |
| | | contact3.Ignore_Same_Name__c = true; |
| | | contact3.MobilePhone = ''; |
| | | insert contact3; |
| | | |
| | | contact2.MobilePhone = '1899999999A'; |
| | | update contact2; |
| | | |
| | | List<account> accList = [select Dealer_Num__c From account]; |
| | | system.assertEquals(accList[0].Dealer_Num__c,1); |
| | | |
| | |
| | | Visitor1__c, Visitor2__c, Visitor3__c, Visitor4__c, Visitor5__c, Visitor1_ID__c, Visitor2_ID__c, Visitor3_ID__c, Visitor4_ID__c, Visitor5_ID__c, |
| | | Purpose_Type__c, Location, Related_Opportunity1__c, Related_Service1__c, Related_Opportunity1_ID__c, Related_Service1_ID__c, WS_flg__c, |
| | | Related_Opportunity2__c, Related_Opportunity3__c, Related_Opportunity4__c, Related_Opportunity5__c,OPDPlan_Flag__c, |
| | | Related_Opportunity2_ID__c, Related_Opportunity3_ID__c, Related_Opportunity4_ID__c, Related_Opportunity5_ID__c, |
| | | Related_Opportunity2_ID__c, Related_Opportunity3_ID__c, Related_Opportunity4_ID__c, Related_Opportunity5_ID__c,Opd_Plan__c, |
| | | Activity_Purpose__c, Activity_PurposeFSE__c, Activity_PurposeEscFSE__c, Purpose_TypeFSE__c, Purpose_TypeEscFSE__c,EventStatus__c,cancelReason__c,cancelReasonOther__c,cancelReasonSelect__c,cancelReasonSelectFSE__c,delayReason__c,delayReasonOther__c,delayReasonSelect__c,delayReasonSelectFSE__c,delayToDate__c |
| | | from Event where WS_flg__c = false and ActivityDate = :whereDate and OwnerId = :ur.Id and EventStatus__c not in ('04 取消','05 延期','06 关闭','07 未执行') order by StartDateTime]; |
| | | return calenderList; |
| | |
| | | return new Map<Id, Contact>([Select Id, User__c From Contact Where Id IN: contactIds and User__r.isActive = true]); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * add 2021/12/23 wangweipeng satrt |
| | | * [updateFutureOds 更新ods的user__c字段] |
| | |
| | | } |
| | | //@future |
| | | public static void upsertFutureContactInterface(List<String> userEmployeeNoList) { |
| | | |
| | | // 社内员工のレコードタイプ |
| | | Id rtId = '01210000000Qtky'; |
| | | // 现有联系人 |
| | | Map<String, Contact> conMap = new Map<String, Contact>(); |
| | | // UserToContact の 変更したか にて判断した項目です |
| | | List<User> usrList = [select Id, Notes_File_Name__c,FirstName, LastName, Email, Mobile_Phone__c, Employee_No__c, Work_Location__c, Post__c, Job_Category__c, Hire_Date__c, Gender__c, Dept__c, Pregnant_Rest__c, Salesdepartment__c, Stay_or_not__c,IsMEBG__c, Work_Location_HR__c from User where Employee_No__c IN :userEmployeeNoList]; |
| | | //20220425 LLIU-CCY9TA you 查询post的地方换成 HR_Post__c |
| | | List<User> usrList = [select Id,PositionSubsequence__c,Rank__c, Notes_File_Name__c,FirstName, LastName, Email, Mobile_Phone__c, Employee_No__c, Work_Location__c, HR_Post__c,Post__c, Job_Category__c, Hire_Date__c, Gender__c, Dept__c, Pregnant_Rest__c, Salesdepartment__c, Stay_or_not__c,IsMEBG__c, Work_Location_HR__c from User where Employee_No__c IN :userEmployeeNoList]; |
| | | List<Contact> conList = [select Id,Notes_File_Name__c, User__c, Employee_No_manual__c,Isactive__c,IsMEBG__c, Work_Location_HR__c from Contact where Employee_No_manual__c IN :userEmployeeNoList and RecordTypeId = :rtId]; |
| | | for (Contact con : conList) { |
| | | //conMap.put(con.Employee_No_manual__c, con); |
| | | conMap.put(con.Employee_No_manual__c.toLowerCase(), con); |
| | | } |
| | | system.debug('youchangtest1'); |
| | | List<Contact> upsertList = new List<Contact>(); |
| | | for (User local : usrList) { |
| | | //update wangweipeng 2021/11/19 |
| | |
| | | //用户的工作地(人事)改变更新到联系人上 thh 2022-02-16 start |
| | | tmp.Work_Location_HR__c = local.Work_Location_HR__c; |
| | | //用户的工作地(人事)改变更新到联系人上 thh 2022-02-16 end |
| | | tmp.Post_picklist__c = local.Post__c; |
| | | tmp.Post_picklist__c = local.Post__c; //20220426 LLIU-CCY9TA you用户的 Post__c ,还是对应联系人 |
| | | tmp.HR_Post__c = local.HR_Post__c;//HR通用职级 //20220425 LLIU-CCY9TA you |
| | | tmp.Job_Category_picklist__c = local.Job_Category__c; |
| | | tmp.Hire_date_text__c = local.Hire_Date__c; |
| | | tmp.Gender_text__c = local.Gender__c; |
| | |
| | | tmp.Salesdepartment_Text__c = local.Salesdepartment__c; |
| | | tmp.Stay_or_not__c = local.Stay_or_not__c; |
| | | tmp.IsMEBG__c = local.IsMEBG__c;//是否MEBG |
| | | //20220428 LLIU-CDW5ZW you start |
| | | tmp.PositionSubsequence__c = local.PositionSubsequence__c; |
| | | //20220428 LLIU-CDW5ZW you end |
| | | //20220512 you LLIU-CDW5ZW start |
| | | tmp.Rank__c = local.Rank__c; |
| | | //20220428 you LLIU-CDW5ZW end |
| | | |
| | | if(String.isNotBlank(local.Stay_or_not__c)){ |
| | | tmp.Isactive__c = local.Stay_or_not__c == '在职' ? '有效':'无效'; |
| | | tmp.Isactive__c = local.Stay_or_not__c == '在职' ? '有效':'无效(退休)'; |
| | | } |
| | | upsertList.add(tmp); |
| | | system.debug('youchangtest2'+tmp.HR_Post__c); |
| | | } else { |
| | | // 新做联系人 |
| | | Contact tmp = new Contact(); |
| | |
| | | tmp.Work_Location_HR__c = local.Work_Location__c; |
| | | tmp.Work_Location_picklist__c = local.Work_Location__c; |
| | | //如果根据HR信息新建用户,则把HR信息的工作地传给用户的工作地和工作地(人事) thh 2022-02-16 end |
| | | tmp.Post_picklist__c = local.Post__c; |
| | | tmp.Post_picklist__c = local.Post__c;//20220426 LLIU-CCY9TA you用户的 Post__c ,还是对应联系人 |
| | | tmp.HR_Post__c = local.HR_Post__c;//HR通用职级 //20220425 LLIU-CCY9TA you |
| | | tmp.Job_Category_picklist__c = local.Job_Category__c; |
| | | tmp.Hire_date_text__c = local.Hire_Date__c; |
| | | tmp.Gender_text__c = local.Gender__c; |
| | |
| | | tmp.Salesdepartment_Text__c = local.Salesdepartment__c; |
| | | tmp.Stay_or_not__c = local.Stay_or_not__c; |
| | | tmp.IsMEBG__c = local.IsMEBG__c;//是否MEBG |
| | | //20220428 LLIU-CDW5ZW you start |
| | | tmp.PositionSubsequence__c = local.PositionSubsequence__c; |
| | | //20220428 LLIU-CDW5ZW you end |
| | | //20220512 you LLIU-CDW5ZW start |
| | | tmp.Rank__c = local.Rank__c; |
| | | //20220428 you LLIU-CDW5ZW end |
| | | if(String.isNotBlank(local.Stay_or_not__c)){ |
| | | tmp.Isactive__c = '在职'.equals(local.Stay_or_not__c) ? '有效':'无效'; |
| | | tmp.Isactive__c = '在职'.equals(local.Stay_or_not__c) ? '有效':'无效(退休)'; |
| | | } |
| | | upsertList.add(tmp); |
| | | system.debug('youchangtest3'+tmp.HR_Post__c); |
| | | } |
| | | } |
| | | upsert upsertList; |
| | | } |
| | | |
| | | // 20220425 you 经查看 此对象应该是没有任何地方用到了,可以注释掉 |
| | | public static void updateFutureUserByContact(List<String> userEmployeeNoList) { |
| | | // 现有用户 |
| | | Map<String, User> usrMap = new Map<String, User>(); |
| | |
| | | //add wangweipeng 2021/11/18 start |
| | | //根据ods的员工编码,更新或新增 user表的数据 |
| | | public static void updateFutureOdsByUser(List<String> userEmployeeNoList) { |
| | | //20220426 LLIU-CCY9TA you start 通用职衔和user上的职位互相映射, |
| | | SS_BatchColumnMapping__c mpdMapping = SS_BatchColumnMapping__c.getValues('HR_Post_To_UserAndContact__c'); |
| | | |
| | | Map<String,String> UserAndContactMap = new Map<String,String>(); |
| | | for (Integer i = 1; i <= 30; i++) { |
| | | String lpadI = ('00' + i).right(3); |
| | | String fromColumn = 'From_Column_' + lpadI + '__c'; |
| | | if(mpdMapping!=null){ |
| | | String apiStr = String.valueOf(mpdMapping.get(fromColumn)); |
| | | if (String.isBlank(apiStr) == false) { |
| | | String ssColumn = 'SS_Column_' + lpadI + '__c'; |
| | | String ssApiStr = String.valueOf(mpdMapping.get(ssColumn)); |
| | | UserAndContactMap.put(apiStr,ssApiStr); |
| | | } |
| | | } |
| | | } |
| | | //20220426 LLIU-CCY9TA you end |
| | | |
| | | //20220721 you LLIU-CGH8EY start 本部分类-岗位子序列,映射 user上的职种 |
| | | SS_BatchColumnMapping__c JobmpdMapping = SS_BatchColumnMapping__c.getValues('HR_Post_To_Job_Category__c'); |
| | | |
| | | Map<String,String> Job_CategoryMap = new Map<String,String>(); |
| | | for (Integer i = 1; i <= 30; i++) { |
| | | String lpadI = ('00' + i).right(3); |
| | | String fromColumn = 'From_Column_' + lpadI + '__c'; |
| | | if(JobmpdMapping!=null){ |
| | | String apiStr = String.valueOf(JobmpdMapping.get(fromColumn)); |
| | | if (String.isBlank(apiStr) == false) { |
| | | String ssColumn = 'SS_Column_' + lpadI + '__c'; |
| | | String ssApiStr = String.valueOf(JobmpdMapping.get(ssColumn)); |
| | | Job_CategoryMap.put(apiStr,ssApiStr); |
| | | } |
| | | } |
| | | } |
| | | //20220721 you LLIU-CGH8EY end |
| | | |
| | | //20220823 you LLIU-CHL8FB start 本部是--solution本部的通过映射,更新用户上的 本部(选项),如果是其他,那么正常走逻辑 |
| | | SS_BatchColumnMapping__c DeptMapping = SS_BatchColumnMapping__c.getValues('HR_Category4_To_Dept__c'); |
| | | |
| | | Map<String,String> DeptMap = new Map<String,String>(); |
| | | for (Integer i = 1; i <= 30; i++) { |
| | | String lpadI = ('00' + i).right(3); |
| | | String fromColumn = 'From_Column_' + lpadI + '__c'; |
| | | if(DeptMapping!=null){ |
| | | String apiStr = String.valueOf(DeptMapping.get(fromColumn)); |
| | | if (String.isBlank(apiStr) == false) { |
| | | String ssColumn = 'SS_Column_' + lpadI + '__c'; |
| | | String ssApiStr = String.valueOf(DeptMapping.get(ssColumn)); |
| | | DeptMap.put(apiStr,ssApiStr); |
| | | } |
| | | } |
| | | } |
| | | //20220823 you LLIU-CHL8FB end |
| | | |
| | | system.debug(mpdMapping+'==UserAndContactMap=='+UserAndContactMap); |
| | | //获取自定义标签,自己定义,用来空更新数据或处理历史数据 |
| | | //在处理历史记录时:职位和职种 如果ods的值为空,那么user对象的这两个字段就不需要更新 |
| | | Integer buffer = Integer.valueOf(System.Label.ODS_Null_Update_Sign); |
| | | // 现有用户 |
| | | Map<String, User> usrMap = new Map<String, User>(); |
| | | // ContactToUser の 変更したか にて判断した項目です |
| | | List<ODS__c> conList = [select id,Alias__c,Branch__c,Category3__c,Category4__c,Category5__c,Category6__c,Employee_No__c,Hire_Date__c,FirstName__c,LastName__c,Name__c,Email__c,MobilePhone__c,Post__c,Job_Category__c,Job_Type__c,Product_specialist_incharge_product__c,Sales_Speciality__c,Work_Location__c,Stay_or_not__c,LeaveDate__c,UniqueId__c,Null_Update__c from ODS__c where Employee_No__c in :userEmployeeNoList]; |
| | | List<ODS__c> conList = [select id,Alias__c,Branch__c,PositionSubsequence__c,Rank__c,Category3__c,Category4__c,Category5__c,Category6__c,Employee_No__c,Hire_Date__c,FirstName__c,LastName__c,Name__c,Email__c,MobilePhone__c,Post__c,Job_Category__c,Job_Type__c,Product_specialist_incharge_product__c,Sales_Speciality__c,Work_Location__c,Stay_or_not__c,LeaveDate__c,UniqueId__c,Null_Update__c,Salesdepartment__c from ODS__c where Employee_No__c in :userEmployeeNoList]; |
| | | |
| | | List<User> usrList = [select Id, PBI_Enable__c ,PBIAuthorizedSetting__c,Employee_No__c from User where Employee_No__c IN :userEmployeeNoList]; |
| | | for (User usr : usrList) { |
| | |
| | | |
| | | userData.Group_sales_dept__c = odsc.Category3__c;//统括本部 |
| | | if(String.isNotBlank(odsc.Category4__c)){ |
| | | userData.Dept__c = odsc.Category4__c;//本部 |
| | | //20220823 you LLIU-CHL8FB start |
| | | if(null!=DeptMap && DeptMap.containsKey(odsc.Category4__c)){ |
| | | userData.Dept__c = DeptMap.get(odsc.Category4__c);//本部 |
| | | }else{ |
| | | userData.Dept__c = odsc.Category4__c;//本部 |
| | | } |
| | | //20220823 you LLIU-CHL8FB end |
| | | } |
| | | userData.Category5__c = odsc.Category5__c;//部 |
| | | userData.Category6__c = odsc.Category6__c;//课 |
| | | //LLIU-CCS8ZB-当新创建的时候接收人事信息中的课信息,之后不进行更新 thh 20220324 start |
| | | // userData.Category6__c = odsc.Category6__c;//课 |
| | | //LLIU-CCS8ZB-当新创建的时候接收人事信息中的课信息,之后不进行更新 thh 20220324 end |
| | | //userData.Employee_No__c = odsc.Employee_No__c;//员工编码 |
| | | userData.Hire_Date__c = odsc.Hire_Date__c;//入职日期 |
| | | //userData.Email = odsc.Email__c;//电子邮件 |
| | | userData.Mobile_Phone__c = odsc.MobilePhone__c;//手机号码 |
| | | //如果自定义变迁的值为1,那么证明现在是在处理历史数据,而历史数据规定,如果ods的职位为空,那么就不需要更新user的职种 |
| | | //20220425 LLIU-CCY9TA you ods 的 通用职衔 对应用户上新创建的 HR通用职级 断开跟职位的关系 |
| | | |
| | | if(String.isNotBlank(odsc.Post__c) || buffer != 1){ |
| | | userData.Post__c = odsc.Post__c;//职位 |
| | | //userData.Post__c = odsc.Post__c;//职位 |
| | | userData.HR_Post__c = odsc.Post__c;//HR通用职级 |
| | | system.debug(odsc.Post__c+'===='+UserAndContactMap.containsKey(odsc.Post__c)); |
| | | if(null!=UserAndContactMap && UserAndContactMap.containsKey(odsc.Post__c)){ |
| | | userData.Post__c = UserAndContactMap.get(odsc.Post__c); |
| | | } |
| | | } |
| | | //20220426 LLIU-CCY9TA you end |
| | | |
| | | //20220428 LLIU-CDW5ZW you start |
| | | userData.PositionSubsequence__c = odsc.PositionSubsequence__c; |
| | | //20220428 LLIU-CDW5ZW you end |
| | | //20220512 you LLIU-CDW5ZW start |
| | | userData.Rank__c = odsc.Rank__c; |
| | | //20220428 you LLIU-CDW5ZW end |
| | | |
| | | // 20220721 you LLIU-CGH8EY start 注释,依据本部和岗位子序列 给职种赋值 |
| | | /** |
| | | String zz = ''; |
| | | if(odsc.Job_Category__c == '服务'){ |
| | | zz = '销售服务'; |
| | |
| | | //如果自定义变迁的值为1,那么证明现在是在处理历史数据,而历史数据规定,如果ods的职种为空,那么就不需要更新user的职种 |
| | | if(String.isNotBlank(zz) || buffer != 1){ |
| | | userData.Job_Category__c = zz;//职种 |
| | | } |
| | | }**/ |
| | | String bbz=odsc.Category4__c+'-' +odsc.PositionSubsequence__c; //本部-岗位子序列 |
| | | String ldbb=odsc.Salesdepartment__c+'-' +odsc.PositionSubsequence__c; //六大本部-岗位子序列 |
| | | String bbz1=odsc.Category5__c+'-' +odsc.PositionSubsequence__c; //部-岗位子序列 |
| | | system.debug(bbz+'==='+ldbb+'==Job_CategoryMap=='+Job_CategoryMap); |
| | | //本部不等于空,看本部 |
| | | String zz = ''; |
| | | if( (String.isNotBlank(odsc.PositionSubsequence__c) && odsc.PositionSubsequence__c=='供应链管理') || ( String.isNotBlank(odsc.Category4__c) && odsc.Category4__c=='战略创新本部')){ |
| | | zz = '管理'; |
| | | }else if( String.isNotBlank(odsc.Category4__c) && odsc.Category4__c=='Solution本部'){ |
| | | zz = '市场'; |
| | | }else if(String.isNotBlank(odsc.Category4__c)){ |
| | | if(null!=Job_CategoryMap && Job_CategoryMap.containsKey(bbz)){ |
| | | if(Job_CategoryMap.get(bbz) == '服务'){ |
| | | zz = '销售服务'; |
| | | }else if(Job_CategoryMap.get(bbz) == '推广'){ |
| | | zz = '销售推广'; |
| | | }else{ |
| | | zz = Job_CategoryMap.get(bbz); |
| | | } |
| | | } |
| | | if(null!=Job_CategoryMap && Job_CategoryMap.containsKey(ldbb)){ |
| | | if(Job_CategoryMap.get(ldbb) == '服务'){ |
| | | zz = '销售服务'; |
| | | }else if(Job_CategoryMap.get(ldbb) == '推广'){ |
| | | zz = '销售推广'; |
| | | }else{ |
| | | zz = Job_CategoryMap.get(ldbb); |
| | | } |
| | | } |
| | | |
| | | system.debug('=='+Job_CategoryMap.get(bbz)+'==='+Job_CategoryMap.get(ldbb)+'==='+zz); |
| | | }else if(String.isBlank(odsc.Category4__c) && String.isNotBlank(odsc.Category5__c)){ |
| | | //本部等于空,看部 |
| | | if(odsc.Category5__c=='华北东北运营管理部' || odsc.Category5__c=='西北西南运营管理部' || odsc.Category5__c=='西北西南运营支援部' || bbz1=='华北东北服务部-综合行政' || bbz1=='华北东北市场部-综合行政'){ |
| | | zz = '支援'; |
| | | }else if(bbz1=='华北东北服务部-FSE'){ |
| | | zz = '销售服务'; |
| | | }else if(odsc.Category5__c=='西部战略推进部' || bbz1=='华北东北市场部-推广'){ |
| | | zz = '销售推广'; |
| | | } |
| | | } |
| | | userData.Job_Category__c = zz; |
| | | |
| | | // 20220721 you LLIU-CGH8EY end |
| | | |
| | | //userData.Product_specialist_incharge_product__c = odsc.Product_specialist_incharge_product__c;//负责产品(主) |
| | | //userData.Sales_Speciality__c = odsc.Sales_Speciality__c;//销售工作内容 |
| | | //HR信息上的工作地更新到用户的工作地(人事)上 thh 2022-02-16 start |
| | |
| | | User userData = new User(); |
| | | userData.Group_sales_dept__c = odsc.Category3__c;//统括本部 |
| | | if(String.isNotBlank(odsc.Category4__c)){ |
| | | userData.Dept__c = odsc.Category4__c;//本部 |
| | | //20220823 you LLIU-CHL8FB start |
| | | if(null!=DeptMap && DeptMap.containsKey(odsc.Category4__c)){ |
| | | userData.Dept__c = DeptMap.get(odsc.Category4__c);//本部 |
| | | }else{ |
| | | userData.Dept__c = odsc.Category4__c;//本部 |
| | | } |
| | | //20220823 you LLIU-CHL8FB end |
| | | } |
| | | userData.Category5__c = odsc.Category5__c;//部 |
| | | userData.Category6__c = odsc.Category6__c;//课 |
| | |
| | | userData.Username = '_'+odsc.Email__c;//用户名 |
| | | userData.Mobile_Phone__c = odsc.MobilePhone__c;//手机号码 |
| | | //如果自定义变迁的值为1,那么证明现在是在处理历史数据,而历史数据规定,如果ods的职位为空,那么就不需要更新user的职种 |
| | | //20220426 LLIU-CCY9TA you start |
| | | if(String.isNotBlank(odsc.Post__c) || buffer != 1){ |
| | | userData.Post__c = odsc.Post__c;//职位 |
| | | //userData.Post__c = odsc.Post__c;//职位 |
| | | userData.HR_Post__c = odsc.Post__c;//HR通用职级 |
| | | if(null!=UserAndContactMap && UserAndContactMap.containsKey(odsc.Post__c)){ |
| | | userData.Post__c = UserAndContactMap.get(odsc.Post__c); |
| | | } |
| | | } |
| | | //20220426 LLIU-CCY9TA you end |
| | | |
| | | //20220428 LLIU-CDW5ZW you start |
| | | userData.PositionSubsequence__c = odsc.PositionSubsequence__c; |
| | | //20220428 LLIU-CDW5ZW you end |
| | | //20220512 you LLIU-CDW5ZW start |
| | | userData.Rank__c = odsc.Rank__c; |
| | | //20220428 you LLIU-CDW5ZW end |
| | | // 20220721 you LLIU-CGH8EY start 注释,依据本部和岗位子序列 给职种赋值 |
| | | /** |
| | | String zz = ''; |
| | | if(odsc.Job_Category__c == '服务'){ |
| | | zz = '销售服务'; |
| | |
| | | //如果自定义变迁的值为1,那么证明现在是在处理历史数据,而历史数据规定,如果ods的职种为空,那么就不需要更新user的职种 |
| | | if(String.isNotBlank(zz) || buffer != 1){ |
| | | userData.Job_Category__c = zz;//职种 |
| | | } |
| | | }**/ |
| | | String bbz=odsc.Category4__c+'-' +odsc.PositionSubsequence__c; //本部-岗位子序列 |
| | | String ldbb=odsc.Salesdepartment__c+'-' +odsc.PositionSubsequence__c; //六大本部-岗位子序列 |
| | | String bbz1=odsc.Category5__c+'-' +odsc.PositionSubsequence__c; //部-岗位子序列 |
| | | //本部不等于空,看本部 |
| | | String zz = ''; |
| | | if( (String.isNotBlank(odsc.PositionSubsequence__c) && odsc.PositionSubsequence__c=='供应链管理') || ( String.isNotBlank(odsc.Category4__c) && odsc.Category4__c=='战略创新本部')){ |
| | | zz = '管理'; |
| | | }else if( String.isNotBlank(odsc.Category4__c) && odsc.Category4__c=='Solution本部'){ |
| | | zz = '市场'; |
| | | }else if(String.isNotBlank(odsc.Category4__c)){ |
| | | if(null!=Job_CategoryMap && Job_CategoryMap.containsKey(bbz)){ |
| | | if(Job_CategoryMap.get(bbz) == '服务'){ |
| | | zz = '销售服务'; |
| | | }else if(Job_CategoryMap.get(bbz) == '推广'){ |
| | | zz = '销售推广'; |
| | | }else{ |
| | | zz = Job_CategoryMap.get(bbz); |
| | | } |
| | | } |
| | | if(null!=Job_CategoryMap && Job_CategoryMap.containsKey(ldbb)){ |
| | | if(Job_CategoryMap.get(ldbb) == '服务'){ |
| | | zz = '销售服务'; |
| | | }else if(Job_CategoryMap.get(ldbb) == '推广'){ |
| | | zz = '销售推广'; |
| | | }else{ |
| | | zz = Job_CategoryMap.get(ldbb); |
| | | } |
| | | } |
| | | |
| | | }else if(String.isBlank(odsc.Category4__c) && String.isNotBlank(odsc.Category5__c)){ |
| | | //本部等于空,看部 LLIU-CKE3UG 增加映射关系 |
| | | if(odsc.Category5__c=='华北东北运营管理部' || odsc.Category5__c=='西北西南运营管理部' || odsc.Category5__c=='西北西南运营支援部' || bbz1=='华北东北服务部-综合行政' || bbz1=='华北东北市场部-综合行政'){ |
| | | zz = '支援'; |
| | | }else if(bbz1=='华北东北服务部-FSE'){ |
| | | zz = '销售服务'; |
| | | }else if(odsc.Category5__c=='西部战略推进部' || bbz1=='华北东北市场部-推广'){ |
| | | zz = '销售推广'; |
| | | } |
| | | } |
| | | userData.Job_Category__c = zz; |
| | | |
| | | // 20220721 you LLIU-CGH8EY end |
| | | userData.Null_Update__c = odsc.Null_Update__c; |
| | | userData.Product_specialist_incharge_product__c = odsc.Product_specialist_incharge_product__c;//负责产品(主) |
| | | userData.Sales_Speciality__c = odsc.Sales_Speciality__c;//销售工作内容 |
| | |
| | | |
| | | ,eventStatus__c, CancelReason__c, delayToDate__c, delayReason__c,DurationInMinutes__c,cancelReasonSelect__c,cancelReasonSelectFSE__c,cancelReasonOther__c,delayReasonOther__c,delayReasonSelect__c,delayReasonSelectFSE__c,BeforeActivityDate__c,OPDPlan_Flag__c,IsScheduled__c,AppCdId__c,SyncCreatedDate__c |
| | | // 20200420 任务日报管理 add gzw end |
| | | //,OPD_plan__c // 2022-4-14 yjk 增加OPD计划 |
| | | from Event__c where ActivityDate__c =:whereDate and Daily_Report__c = :oya.Id order by StartDateTime__c |
| | | ]; |
| | | } |
| | |
| | | Qty_Unit__c,Cost__c,UnitPrice__c,ListPrice__c,Quantity,TotalPrice__c, |
| | | PricebookEntry.Product2.SFDA_Status__c, ProductCode__c, Product_Cost__c,PricebookEntry.Product2.VenderName__c, Product2.VenderName__c,Product_ListPrice__c, PricebookEntry.Product2.Sales_Possibility__c, PricebookEntry.Product2.Name, |
| | | PricebookEntryId, PricebookEntry.Product2Id,UnitPrice_Page__c,PricebookEntry.Product2.Packing_list_manual__c,PricebookEntry.Product2.StorageStatus__c |
| | | // 2022-03-21 SWAG-CBX5NN start |
| | | ,If_Cancel_Guarantee__c |
| | | ,multiYearWarranty__c |
| | | ,CanNotCancelFlag__c |
| | | ,ProductEntend_gurantee_period_all__c |
| | | ,warrantyType__c |
| | | ,GuaranteePeriod__c |
| | | ,GuranteeType__c |
| | | // 2022-03-21 SWAG-CBX5NN end |
| | | From QuoteLineItem where Quoteid = :QuoteidOldList]; |
| | | for(QuoteLineItem qli : oldQuoteitemList){ |
| | | QuidWithQLitem.put(qli.Quoteid,qli); |
| | |
| | | public static void lostOrder(Lost_Report__c lostData) { |
| | | upsert lostData; |
| | | } |
| | | |
| | | // FY23修改 WLIG-CFV4AV 重点产品维护(新)start |
| | | public static String getKeyByProduct(String keyword) { |
| | | if (String.isBlank(keyword)) { |
| | | return null; |
| | | } |
| | | String KeyProductMapping = System.Label.Key_Product_Mapping; |
| | | Map<String, Object> mapping = (Map<String, Object>) JSON.deserializeUntyped(KeyProductMapping); |
| | | System.debug('==Mapping is: ' + mapping); |
| | | |
| | | return mapping.get(keyword) != null ? String.valueOf(mapping.get(keyword)) : null; |
| | | } |
| | | // FY23修改 WLIG-CFV4AV 重点产品维护(新)end |
| | | |
| | | //20221021 lt SWAG-CHL5XA【FY23询价改善】-统计主机台数 start |
| | | public static void UpdateBiddingFlag(List<String> oppId){ |
| | | List<Tender_Opportunity_Link__c> links = [SELECT Id, Tender_information__c, Tender_information__r.IsReactionOpp__c, Opportunity__c |
| | | FROM Tender_Opportunity_Link__c |
| | | WHERE Opportunity__c in :oppId ]; |
| | | |
| | | Map<String,Tender_information__c> tenderMap = new Map<String,Tender_information__c>(); |
| | | |
| | | for (Tender_Opportunity_Link__c link : links){ |
| | | |
| | | Tender_information__c temptender = new Tender_information__c(); |
| | | temptender.Id = link.Tender_information__c; |
| | | temptender.IsReactionOpp__c = true; |
| | | tenderMap.put(temptender.id ,temptender); |
| | | |
| | | } |
| | | |
| | | if(tenderMap.size()>0){ |
| | | update tenderMap.values(); |
| | | } |
| | | |
| | | } |
| | | //20221021 lt SWAG-CHL5XA【FY23询价改善】-统计主机台数 end |
| | | |
| | | } |
| | |
| | | // Account internalAcc = [Select Id from Account where Id = :System.Label.Olympus_AccountID_Internal_staff]; |
| | | // // データがあればOK; |
| | | //} |
| | | @TestSetup |
| | | static void setup(){ |
| | | TestDataUtility.CreatePIPolicyConfigurations(new string[]{'Agency_Contact__c','Contact'}); |
| | | } |
| | | |
| | | @isTest |
| | | static void Test1(){ |
| | | Test.setMock(HttpCalloutMock.class, new HttpMock()); |
| | | |
| | | List<Agency_Contact__c> lra = new List<Agency_Contact__c>(); |
| | | lra.add(new Agency_Contact__c( |
| | | )); |
| | | insert lra; |
| | | Test.startTest(); |
| | | //system.debug(PIHelper.getPIIntegrationInfo('Agency_Contact__c').newEncryptUrl); |
| | | AWSServiceTool2.EncryptPushCore(Json.serialize(lra),'Agency_Contact__c'); |
| | | AWSServiceTool2.EncryptPushFuture(null,null); |
| | | Test.stopTest(); |
| | | } |
| | | |
| | | @isTest |
| | | static void Test2(){ |
| | | Test.setMock(HttpCalloutMock.class, new HttpMock()); |
| | | |
| | | List<Agency_Contact__c> lra = new List<Agency_Contact__c>(); |
| | | lra.add(new Agency_Contact__c( |
| | | Aws_Data_Id__c = '123456' |
| | | )); |
| | | insert lra; |
| | | Test.startTest(); |
| | | //system.debug(PIHelper.getPIIntegrationInfo('Agency_Contact__c').newEncryptUrl); |
| | | AWSServiceTool2.EncryptPushCore(Json.serialize(lra),'Agency_Contact__c'); |
| | | Test.stopTest(); |
| | | } |
| | | |
| | | @isTest |
| | | static void Test3(){ |
| | | Test.setMock(HttpCalloutMock.class, new HttpMock()); |
| | | |
| | | |
| | | Test.startTest(); |
| | | AWSServiceTool2.EncryptPushData(new string[]{'0031000000O4Cff'}); |
| | | |
| | | Test.stopTest(); |
| | | } |
| | | |
| | | class HttpMock implements HttpCalloutMock{ |
| | | |
| | | public HTTPResponse respond(HTTPRequest request) { |
| | | // 创建一个假的回应 |
| | | System.debug('------------------------------------------------------'); |
| | | HttpResponse response = new HttpResponse(); |
| | | string body = ''; |
| | | system.debug(request.getEndpoint()); |
| | | if(request.getEndpoint().contains('token')){ |
| | | system.debug('url=token'); |
| | | response.setHeader('Content-Type', 'application/json'); |
| | | body='{ "message": "", "object": "freqfewqfewewfewfew", "status": "", "success": true, "timestamp": 0, "txId": "" }'; |
| | | } else if(request.getEndpoint().contains('insert')){ |
| | | system.debug('url=Insert'); |
| | | response.setHeader('Content-Type', 'application/json'); |
| | | body='{ "message": "", "object": [ { "dataId": "123456", "directShippmentAddress": "", "directShippmentAddressEncrypt": "", "isDelete": 0, "phoneNumber": "", "phoneNumberEncrypt": "", "sfRecordId": "a2R1m0000007BPD" } ], "status": "", "success": true, "timestamp": 0, "txId": "" }'; |
| | | } else if(request.getEndpoint().contains('update')){ |
| | | system.debug('url=update'); |
| | | response.setHeader('Content-Type', 'application/json'); |
| | | body='{ "message": "", "object": [ { "dataId": "123456", "directShippmentAddress": "", "directShippmentAddressEncrypt": "", "isDelete": 0, "phoneNumber": "", "phoneNumberEncrypt": "", "sfRecordId": "a2R1m0000007BPD" } ], "status": "", "success": true, "timestamp": 0, "txId": "" }'; |
| | | } else{ |
| | | |
| | | } |
| | | |
| | | response.setBody(body); |
| | | response.setStatus('OK'); |
| | | response.setStatusCode(200); |
| | | return response; |
| | | // } |
| | | } |
| | | } |
| | | private static User getUser() { |
| | | String timenow = Datetime.now().format('yyyyMMddHHmmss'); |
| | | User user1 = new User(Test_staff__c = true, LastName = 'TestMao', FirstName = 'TestMaoF', |
| | |
| | | accDep.CurrencyIsoCode = 'CNY'; |
| | | accDep.RecordTypeId = rtDep.id; |
| | | insert accDep; |
| | | List<Contact> conList = new List<Contact>(); |
| | | Contact con1 = new Contact(); |
| | | con1.Firstname='ZZ1'; |
| | | con1.LastName = '取引先責任者1'; |
| | | con1.RecordTypeId = rtDoc.id; |
| | | con1.AccountId = accDep.Id; |
| | | conList.add(con1); |
| | | //List<Contact> conList = new List<Contact>(); |
| | | //Contact con1 = new Contact(); |
| | | //con1.Firstname='ZZ1'; |
| | | //con1.LastName = '取引先責任者1'; |
| | | //con1.RecordTypeId = rtDoc.id; |
| | | //con1.AccountId = accDep.Id; |
| | | //conList.add(con1); |
| | | |
| | | insert conList; |
| | | //insert conList; |
| | | RecordType Type = [select id from RecordType where DeveloperName='SI_Oppor']; |
| | | String TypeID = Type.Id; |
| | | Opportunity opp1 = new Opportunity(); |
| | |
| | | accDep.CurrencyIsoCode = 'CNY'; |
| | | accDep.RecordTypeId = rtDep.id; |
| | | insert accDep; |
| | | List<Contact> conList = new List<Contact>(); |
| | | Contact con1 = new Contact(); |
| | | con1.Firstname='ZZ1'; |
| | | con1.LastName = '取引先責任者1'; |
| | | con1.RecordTypeId = rtDoc.id; |
| | | con1.AccountId = accDep.Id; |
| | | conList.add(con1); |
| | | //List<Contact> conList = new List<Contact>(); |
| | | //Contact con1 = new Contact(); |
| | | //con1.Firstname='ZZ1'; |
| | | //con1.LastName = '取引先責任者1'; |
| | | //con1.RecordTypeId = rtDoc.id; |
| | | //con1.AccountId = accDep.Id; |
| | | //conList.add(con1); |
| | | |
| | | insert conList; |
| | | //insert conList; |
| | | RecordType Type = [select id from RecordType where DeveloperName='SI_Oppor']; |
| | | String TypeID = Type.Id; |
| | | Opportunity opp1 = new Opportunity(); |
| | |
| | | String query = 'SELECT Id,Status__c,Contract_Start_Date__c,Contract_print_completed__c,Contract_End_Date__c,Contract_Conclusion_Date__c,RecordType.DeveloperName ' |
| | | +'FROM Maintenance_Contract__c ' |
| | | +'WHERE RecordType.DeveloperName = \'NewMaintenance_Contract\' AND Contract_Start_Date__c != NULL AND Contract_End_Date__c != NULL ' |
| | | //URF限次合同2期 LY 20220811 start |
| | | +'AND URF_Contract__c = false ' |
| | | //URF限次合同2期 LY 20220811 end |
| | | +'AND Status__c = \'契約\' AND Contract_Conclusion_Date__c != NULL '; |
| | | if (String.isNotBlank(this.tempMainId)) { |
| | | query += 'AND Id = :tempMainId'; |
| | |
| | | // //第一版:当合同生效日晚于【合同开始日+3个月】,第一次发放计划顺延为4/1~6/30 (下一季度)。 |
| | | // //第二版:合同盖章完毕日晚于【合同开始日+3个月】,不生成第一个区间(即 顺延为下一季度)。 |
| | | // //第三版:盖章完毕日晚于合同开始日1个月以上,自动从第二季度开始 |
| | | if(tempNMC.Contract_print_completed__c > tempNMC.Contract_Start_Date__c.addMonths(1)){ |
| | | //2022-3-11 yjk 合同盖章日改为合同日 |
| | | if(tempNMC.Contract_Conclusion_Date__c > tempNMC.Contract_Start_Date__c.addMonths(1)){ |
| | | isDelay = true; |
| | | } |
| | | |
| | |
| | | oppSql += ' where id in :TEST_ID'; |
| | | }else{ |
| | | oppSql += ' where StageName = \'引合\' and ForecastAccuracyObject__c = true'; |
| | | oppSql += ' and Competitor__c in (\'A\',\'B\',\'C\',\'D\',\'E\') '; //2021-11-22 yjk 增加判断条件 询价等级 |
| | | // oppSql += ' and Competitor__c in (\'A\',\'B\',\'C\',\'D\',\'E\') '; //2021-11-22 yjk 增加判断条件 询价等级 |
| | | oppSql += ' and Competitor__c in (\'A\',\'B\',\'C\',\'D\') '; //2021-11-22 yjk 增加判断条件 询价等级 |
| | | |
| | | oppSql += ' and IsNextMonthOfVisit__c = false and SalesdepartmentForecast__c in :areas'; |
| | | // 5)客户为H层客户的询价 |
| | | // oppSql += ' and (OCM__c = \'H0\' or OCM__c = \'H1\')'; |
| | |
| | | opportunityCategorySP.add('ENT'); |
| | | String log = ''; |
| | | if (TEST_ID != null && TEST_ID.size() > 0) { |
| | | //oppSql += ' where id in :TEST_ID'; |
| | | oppSql += ' where OCSMRMB_Without_Tax__c >= 1000000 and OCSMRMB_Without_Tax__c <= 2000000'; |
| | | oppSql += ' where id in :TEST_ID'; |
| | | }else{ |
| | | oppSql += ' where StageName = \'引合\' and ForecastAccuracyObject__c = true'; |
| | | oppSql += ' and Competitor__c in (\'A\',\'B\',\'C\',\'D\',\'E\') '; //2021-11-22 yjk 增加判断条件 询价等级 |
| | | // oppSql += ' and Competitor__c in (\'A\',\'B\',\'C\',\'D\',\'E\') '; //2021-11-22 yjk 增加判断条件 询价等级 |
| | | oppSql += ' and Competitor__c in (\'A\',\'B\',\'C\',\'D\') '; //2021-11-22 yjk 增加判断条件 询价等级 |
| | | oppSql += ' and IsNextMonthOfVisit__c = false and SalesdepartmentForecast__c in :areas'; |
| | | // 5)客户为H层客户的询价 |
| | | // oppSql += ' and (OCM__c = \'H0\' or OCM__c = \'H1\')'; |
| | |
| | | opportunityCategorySP.add('ENT'); |
| | | String log = ''; |
| | | for (Opportunity opp : oppList){ |
| | | //log += ' OCSMRMB_Without_Tax__c : '+ opp.OCSMRMB_Without_Tax__c + '\n'; |
| | | if(opp.Owner.IsActive){//2021-08-30 yjk 增加判断任务对应的用户必须为IsActive |
| | | task__c newTask = new task__c(); |
| | | newTask.assignee__c = opp.OwnerId; |
| | |
| | | } |
| | | |
| | | }else{ |
| | | log += 'OCSMRMB_Without_Tax__c :'+opp.OCSMRMB_Without_Tax__c + '\n'; |
| | | log = 'OCSMRMB_Without_Tax__c :'+opp.OCSMRMB_Without_Tax__c + '\n'; |
| | | log += 'Opportunity_Category__c : '+ opp.Opportunity_Category__c + '\n' ; |
| | | //log += 'Close_Forecasted_Date__c : '+ opp.Close_Forecasted_Date__c + '\n' ; |
| | | newTask.distributeReason__c = '半年大合同'; |
| | |
| | | public Boolean noSortHeader { get; set; } |
| | | public Boolean isRadioBox { get; set; } |
| | | public String tabS {get; set;} |
| | | public List<CreateRelationListPagingCtrlBase.WrapperInfo> allrecords{get;set;} |
| | | public transient Boolean userCustomPaging {get; set;} |
| | | public Boolean userCustomPaging {get; set;} |
| | | public Boolean isNeedCheckEvent { |
| | | get { |
| | | return pageController.isNeedCheckEvent; |
| | |
| | | } |
| | | if(String.isBlank(pageController.getRecordTypeId() )){ |
| | | try { |
| | | System.debug('--------2--------'+pageController.getObjName()); |
| | | |
| | | Map<String, Map<String, String>> editLayoutItemRWMap = SoapApi.getEditLayoutItemRW(pageController.getObjName(), null); |
| | | System.debug('--------1--------'+editLayoutItemRWMap); |
| | | if(editLayoutItemRWMap.size() >0){ |
| | | DESC_RW = editLayoutItemRWMap.values()[0]; |
| | | } |
| | |
| | | String soql =''; |
| | | final String soqlStr = 'Select {0} {1} '; |
| | | soql += String.format(soqlStr, new String[] {strColumus , pageController.getSelectedDataSql()}); |
| | | // system.debug(pageController + 'getSelectedDataInfo soql ' + soql); |
| | | system.debug('zheli~getSelectedDataInfo soql ' + soql); |
| | | system.debug(pageController + 'getSelectedDataInfo soql ' + soql); |
| | | List<sObject> queryList = Database.query(soql); |
| | | pageController.selectedData = queryList; |
| | | pageController.makeSelectedDataInfo(); |
| | |
| | | // get selected data |
| | | pageController.setViewList(new List<sObject>()); |
| | | currentPageRecordCnt = pageController.viewList.size(); |
| | | allrecords = pageController.viewList; |
| | | System.debug(LoggingLevel.INFO, '*** allrecords: ' + allrecords); |
| | | recordAllCount = currentPageRecordCnt; |
| | | pageController.sqlWhereStr = ''; |
| | | return; |
| | |
| | | |
| | | pageController.setViewList(queryList); |
| | | currentPageRecordCnt = pageController.viewList.size(); |
| | | allrecords = pageController.viewList; |
| | | System.debug(LoggingLevel.INFO, '*** allrecords: ' + allrecords); |
| | | |
| | | system.debug('●●●●● searchAndPaging END ' ); |
| | | } catch (Exception e) { |
| | |
| | | , orderStr |
| | | , limitStr}); |
| | | |
| | | system.debug('makeSoql'+soql); |
| | | system.debug(soql); |
| | | return soql; |
| | | } |
| | | public void searchGoPage() { |
| | |
| | | public Boolean check { get; set; } // 是否选择 |
| | | public Boolean oldCheck { get; set; } |
| | | public Integer inputInt {get; set;} // 数量 |
| | | |
| | | public Map<String, String> additionalInfoMap {get; set;} // 追加信息 |
| | | |
| | | public WrapperInfo(SObject record, CreateRelationListPagingCmpCtrl myComponentController) { |
| | |
| | | [SELECT Id FROM CronTrigger WHERE CronJobDetail.Name like 'DNUpsert%']) { |
| | | System.abortJob(ct.id); |
| | | } |
| | | Datetime addOneM = System.now().addMinutes(1); |
| | | Datetime addOneM = System.now().addMinutes(3); |
| | | String CRON_EXP = '0 ' + addOneM.minute() + ' ' + addOneM.hour() + ' ' + addOneM.day() + ' ' + addOneM.month() + ' ? ' + addOneM.year(); |
| | | List<CronTrigger> oldcron = [select Id from CronTrigger where State = 'WAITING' and CronJobDetail.Name like 'DNUpsert%']; |
| | | |
| | |
| | | |
| | | static testMethod void testExecute() { |
| | | // This test runs a scheduled job at midnight Sept. 3rd. 2022 |
| | | String CRON_EXP = '0 0 0 3 9 ? 2022'; |
| | | String CRON_EXP = '0 0 0 3 9 ? 2050'; |
| | | |
| | | System.Test.startTest(); |
| | | // Schedule the test job |
| | |
| | | // Verify the job has not run |
| | | System.assertEquals(0, ct.TimesTriggered); |
| | | // Verify the next time the job will run |
| | | System.assertEquals('2022-09-03 00:00:00', String.valueOf(ct.NextFireTime)); |
| | | System.assertEquals('2050-09-03 00:00:00', String.valueOf(ct.NextFireTime)); |
| | | System.Test.StopTest(); |
| | | } |
| | | static testMethod void testassignOneMinute() { |
| | |
| | | |
| | | return cnt; |
| | | } |
| | | |
| | | |
| | | public static Integer ControllerUtil() { |
| | | Integer i = 0; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | i++; |
| | | return i; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | @isTest |
| | | private class DataBasePlusTest extends BaseController{ |
| | | private class DataBasePlusTest { |
| | | static testMethod void testMethod1() { |
| | | // DataBasePlus.ControllerUtil(); |
| | | List<SObjectField> sObjectFieldList = new List<SObjectField>(); |
| | | DataBasePlus datbasplus=new DataBasePlus(); |
| | | QueryWrapper query = new QueryWrapper(PromotionHead__c.SObjectType); |
| | | Schema.DescribeSobjectResult d = PromotionHead__c.sObjectType.getDescribe(); |
| | | Map<String,Schema.SObjectField> mfields = d.fields.getMap(); |
| | | for(String strField:mfields.keySet()) { |
| | | SObjectField fl = mfields.get(strField); |
| | | if(fl!=null){ |
| | | sObjectFieldList.add(fl); |
| | | } |
| | | } |
| | | query.setSObjectFieldList(sObjectFieldList); |
| | | DataBasePlus.getOne(query,true); |
| | | DataBasePlus.listPlus(query); |
| | | QuoteTrialService prDao = new QuoteTrialService(); |
| | | Integer page = 1; |
| | | Integer pageLimit = 3; |
| | | String search = '%7B%22NameInDate%22:%222019%22,%22PromotionNo__cEqual%22:%22123%22%7D'; |
| | | String sortOrder = ''; |
| | | String sortPlus = 'Id'; |
| | | String[] arr = new String[] {'PromotionNo__cEqual','NameInDate'}; |
| | | String Agency1c = '123456'; |
| | | PagePlus pages = prDao.GetPromotionPromotionSearchFn(page,pageLimit,search,sortOrder,sortPlus,arr); |
| | | |
| | | DataBasePlus.ControllerUtil(); |
| | | } |
| | | } |
| | |
| | | public with sharing class DealerPersonnelController { |
| | | public without sharing class DealerPersonnelController { |
| | | public DealerPersonnelController() { |
| | | |
| | | } |
| | |
| | | public static String processData(String fileData,String sobjectName,List<String> fields) { |
| | | system.debug('fileData===============>'+fileData); |
| | | String errorMage = ''; |
| | | try { |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // Savepoint sp = Database.setSavepoint(); |
| | | // try { |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | if(fileData != null){ |
| | | String[] fileLines = new String[]{}; |
| | | fileLines = fileData.split('\n'); |
| | | system.debug('fileLines===================>'+fileLines); |
| | | // 经销商管理编码 |
| | | List<String> managementCodeList = new List<String>(); |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | // 客户名 |
| | | List<String> CustomerNameList = new List<String>(); |
| | | //人员管理编码 |
| | | List<String> CManageCodeList = new List<String>(); |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | // 导入的数据 |
| | | List<List<String>> inputList = new List<List<String>>(); |
| | | for (Integer i = 1,j = fileLines.size(); i < j; i++) { |
| | | List<String> inputValues = new List<String>(); |
| | | inputValues = fileLines[i].split(','); |
| | | System.debug('inputValues=============>'+inputValues); |
| | | if(inputValues != null){ |
| | | if(inputValues[0] == '' || inputValues[0]== null){ |
| | | errorMage += 'errorMage: 第' + i + '行,姓名不能为空!'; |
| | | errorMage += '='; |
| | | } |
| | | if(inputValues[1] == '' || inputValues[1] ==null){ |
| | | errorMage += 'errorMage: 第' + i + '行,手机不能为空!'; |
| | | errorMage += '='; |
| | | if(fileLines[i].replace(',','').trim()!=''){ |
| | | inputValues = fileLines[i].split(',',-1); |
| | | System.debug('inputValues=============>'+inputValues); |
| | | System.debug('fileLines[i]=============>'+fileLines[i]); |
| | | if(inputValues != null){ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // if(inputValues[0] == '' || inputValues[0]== null){ |
| | | // errorMage += 'errorMage: 第' + i + '行,姓名不能为空!'; |
| | | // errorMage += '='; |
| | | // } |
| | | // // if(inputValues[1] == '' || inputValues[1] ==null){ |
| | | // // errorMage += 'errorMage: 第' + i + '行,手机不能为空!'; |
| | | // // errorMage += '='; |
| | | // // } |
| | | // // boolean mobileNumberFlag = mobileNumberVerification(inputValues[1]); |
| | | // // if(mobileNumberFlag == false){ |
| | | // // errorMage += 'errorMage: 你的手机号码不太正确,请检查您的手机是否正确!'; |
| | | // // errorMage += '='; |
| | | // // } |
| | | // // if(inputValues[2] == '' || inputValues[2] == null){ |
| | | // // errorMage += 'errorMage: 第' + i + '行,邮箱不能为空!'; |
| | | // // errorMage += '='; |
| | | // // } |
| | | // //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | // if(inputValues[2] != '' && inputValues[2] != null){ |
| | | // //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | // boolean mailboxFlag = mailboxVerification(inputValues[2]); |
| | | // if(mailboxFlag == false){ |
| | | // errorMage += 'errorMage:第' + i + '行, 你的邮箱不太正确,请检查您的邮箱格式!'; |
| | | // errorMage += '='; |
| | | // } |
| | | // //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | // } |
| | | // //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | // if(inputValues[3] == '' || inputValues[3] == null){ |
| | | // errorMage += 'errorMage: 第' + i + '行,经销商管理编码不能为空!'; |
| | | // errorMage += '='; |
| | | // } |
| | | // //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | // if(inputValues[4] == '' || inputValues[4] == null){ |
| | | // errorMage += 'errorMage: 第' + i + '行,客户名不能为空!'; |
| | | // errorMage += '='; |
| | | // } |
| | | // if(inputValues[5] == '' || inputValues[5] == null){ |
| | | // errorMage += 'errorMage: 第' + i + '行,经销商用户不能为空!'; |
| | | // errorMage += '='; |
| | | // } |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | inputValues[3]=inputValues[3].leftpad(10,'0'); |
| | | System.debug('测试去零1 '+inputValues[3].replace(' ','').length()); |
| | | |
| | | managementCodeList.add(inputValues[3]); |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | CustomerNameList.add(inputValues[4]); |
| | | CManageCodeList.add(inputValues[6]); |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | inputList.add(inputValues); |
| | | |
| | | //导入的数据 |
| | | System.debug('inputValues[0]===============>'+ inputValues[0]); |
| | | System.debug('inputValues[1]===============>'+ inputValues[1]); |
| | | System.debug('inputValues[2]===============>'+ inputValues[2]); |
| | | System.debug('inputValues[3]===============>'+ inputValues[3]); |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | System.debug('inputValues[4]===============>'+ inputValues[4]); |
| | | System.debug('inputValues[4]===============>'+ inputValues[5]); |
| | | System.debug('inputValues[6]===============>'+ inputValues[6]); |
| | | System.debug('inputValues[7]===============>'+ inputValues[7]); |
| | | System.debug('inputValues[8]===============>'+ inputValues[8]); |
| | | System.debug('inputValues[9]===============>'+ inputValues[9]); |
| | | System.debug('inputValues[10]===============>'+ inputValues[10]); |
| | | System.debug('inputValues[11]===============>'+ inputValues[11]); |
| | | System.debug('inputValues[12]===============>'+ inputValues[12]); |
| | | System.debug('inputValues[13]===============>'+ inputValues[13]); |
| | | System.debug('inputValues[14]===============>'+ inputValues[14]); |
| | | System.debug('inputValues[15]===============>'+ inputValues[15]); |
| | | System.debug('inputValues[16]===============>'+ inputValues[16]); |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | |
| | | } |
| | | boolean mobileNumberFlag = mobileNumberVerification(inputValues[1]); |
| | | if(mobileNumberFlag == false){ |
| | | errorMage += 'errorMage: 你的手机号码不太正确,请检查您的手机是否正确!'; |
| | | errorMage += '='; |
| | | } |
| | | if(inputValues[2] == '' || inputValues[2] == null){ |
| | | errorMage += 'errorMage: 第' + i + '行,邮箱不能为空!'; |
| | | errorMage += '='; |
| | | } |
| | | boolean mailboxFlag = mailboxVerification(inputValues[2]); |
| | | if(mailboxFlag == false){ |
| | | errorMage += 'errorMage: 你的邮箱不太正确,请检查您的邮箱格式!'; |
| | | errorMage += '='; |
| | | } |
| | | if(inputValues[3] == '' || inputValues[3] == null){ |
| | | errorMage += 'errorMage: 第' + i + '行,经销商管理编码不能为空!'; |
| | | errorMage += '='; |
| | | } |
| | | |
| | | managementCodeList.add(inputValues[3]); |
| | | inputList.add(inputValues); |
| | | //导入的数据 |
| | | System.debug('inputValues[0]===============>'+ inputValues[0]); |
| | | System.debug('inputValues[1]===============>'+ inputValues[1]); |
| | | System.debug('inputValues[2]===============>'+ inputValues[2]); |
| | | System.debug('inputValues[3]===============>'+ inputValues[3]); |
| | | } |
| | | } |
| | | Map<String,Account> accountIdMap = new Map<String,Account>(); |
| | | List<Account> accountList = [select id, Name,Management_Code__c from Account where Management_Code__c in: managementCodeList]; |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | Map<String,Contact> contactIdMap = new Map<String,Contact>(); |
| | | Map<Id,String> ManagementCodeMap = new Map<Id,String>(); |
| | | List<Id> AccountIdList =new List<Id>(); |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | List<Account> accountList = [select id, Name,Management_Code__c from Account where Management_Code__c in: managementCodeList and Name in:CustomerNameList ]; |
| | | for(Account ac : accountList){ |
| | | accountIdMap.put(ac.Management_Code__c,ac); |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | AccountIdList.add(ac.Id); |
| | | ManagementCodeMap.put(ac.Id,ac.Management_Code__c); |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | } |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | //查询客户人员是否有数据 |
| | | List<Contact> contactList = [select id, CManageCode__c,AccountId from Contact where AccountId in: AccountIdList and CManageCode__c in:CManageCodeList ]; |
| | | for(Contact cc : contactList){ |
| | | String contactKey=ManagementCodeMap.get(cc.AccountId)+'_'+cc.CManageCode__c; |
| | | contactIdMap.put(contactKey,cc); |
| | | } |
| | | List<Contact> cnupdateList = new List<Contact>(); |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | List<Contact> cnList = new List<Contact>(); |
| | | Integer lineNumber = 1; |
| | | for(List<String> lineList :inputList){ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | Boolean errorflag1 = false; |
| | | String errorMageHang = ''; |
| | | if(lineList[0] == '' || lineList[0]== null){ |
| | | errorMageHang += ',姓名不能为空!'; |
| | | errorflag1 = true; |
| | | } |
| | | if(lineList[2] != '' && lineList[2] != null){ |
| | | boolean mailboxFlag = mailboxVerification(lineList[2]); |
| | | if(mailboxFlag == false){ |
| | | errorMageHang += ', 你的邮箱不太正确,请检查您的邮箱格式!'; |
| | | errorflag1 = true; |
| | | } |
| | | } |
| | | if(lineList[3] == '' || lineList[3] == null){ |
| | | errorMageHang += ',经销商管理编码不能为空!'; |
| | | errorflag1 = true; |
| | | } |
| | | if(lineList[4] == '' || lineList[4] == null){ |
| | | errorMageHang += ',客户名不能为空!'; |
| | | errorflag1 = true; |
| | | } |
| | | if(lineList[5] == '' || lineList[5] == null){ |
| | | errorMageHang += ',经销商用户不能为空!'; |
| | | errorflag1 = true; |
| | | } |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | Contact con = new Contact(); |
| | | //暂时导入的是经销商用户,所以记录类型只有经销商,暂时写死;后期如果有变动再更改 |
| | | con.RecordTypeId = '01210000000QfWiAAK'; |
| | | if(lineList[0] != null && lineList[0] != ''){ |
| | | con.LastName = lineList[0]; |
| | | }else{ |
| | | errorMage += 'error: 第'+ lineNumber +'行数据,姓氏'+lineList[0]+'不存在'; |
| | | errorMage += '='; |
| | | } |
| | | if(lineList[1] != null && lineList[1] != ''){ |
| | | if(mobileNumberVerification(lineList[1])){ |
| | | con.MobilePhone = lineList[1]; |
| | | if(!contactIdMap.containsKey(lineList[3]+'_'+lineList[6])){ |
| | | if(lineList[0] != null && lineList[0] != ''){ |
| | | con.LastName = lineList[0]; |
| | | }else{ |
| | | errorMage += 'error: 第'+ lineNumber +'行数据,手机'+lineList[1]+'不正确!'; |
| | | errorMage += '='; |
| | | } |
| | | }else{ |
| | | errorMage += 'error: 第'+ lineNumber +'行数据,手机'+lineList[1]+'不存在'; |
| | | errorMage += '='; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,姓氏'+lineList[0]+'不存在'; |
| | | // errorMage += '='; |
| | | errorMageHang += ',姓氏 '+lineList[0]+' 不存在'; |
| | | errorflag1 = true; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | } |
| | | if(lineList[1] != null && lineList[1] != ''){ |
| | | // if(mobileNumberVerification(lineList[1])){ |
| | | con.MobilePhone = lineList[1]; |
| | | // }else{ |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,手机'+lineList[1]+'不正确!'; |
| | | // errorMage += '='; |
| | | // } |
| | | } |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | // else{ |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,手机'+lineList[1]+'不存在'; |
| | | // errorMage += '='; |
| | | // } |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | if(lineList[2] != null && lineList[2] != ''){ |
| | | if(mailboxVerification(lineList[2])){ |
| | | con.Email = lineList[2]; |
| | | }else{ |
| | | errorMage += 'error: 第'+ lineNumber +'行数据,电子邮件'+lineList[2]+'不正确!'; |
| | | errorMage += '='; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,电子邮件'+lineList[2]+'不正确!'; |
| | | // errorMage += '='; |
| | | errorMageHang += ',电子邮件 '+lineList[2]+' 不正确!'; |
| | | errorflag1 = true; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | }else{ |
| | | errorMage += 'error: 第'+ lineNumber +'行数据,电子邮件'+lineList[2]+'不存在'; |
| | | errorMage += '='; |
| | | } |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | // else{ |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,电子邮件'+lineList[2]+'不存在'; |
| | | // errorMage += '='; |
| | | // } |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | if(accountIdMap.containsKey(lineList[3])){ |
| | | con.AccountId = accountIdMap.get(lineList[3]).id; |
| | | }else{ |
| | | errorMage += 'error: 第'+ lineNumber +'行数据,经销商编码'+lineList[3]+'不存在'; |
| | | errorMage += '='; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,经销商编码'+lineList[3]+'或者客户名不存在'; |
| | | // errorMage += '='; |
| | | errorMageHang += ',经销商编码 '+lineList[3]+' 或者客户名不存在'; |
| | | errorflag1 = true; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | //暂定创建直接为 true |
| | | con.Agency_User__c = true; |
| | | // con.Agency_User__c = true; |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | if(lineList[5] != null && lineList[5] != ''){ |
| | | if(lineList[5]=='true'||lineList[5]=='TRUE'){ |
| | | con.Agency_User__c=true; |
| | | }else{ |
| | | con.Agency_User__c=false; |
| | | } |
| | | }else{ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,经销商用户'+lineList[0]+'不存在'; |
| | | // errorMage += '='; |
| | | errorMageHang += ',经销商用户 '+lineList[0]+' 不存在'; |
| | | errorflag1 = true; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | //经销商专员类型 |
| | | if(VerificationOLYAssistantType(lineList[7])){ |
| | | con.OLY_Assistant_Type__c = lineList[7]; |
| | | }else{ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,经销商专员类型'+lineList[7]+'不正确!'; |
| | | // errorMage += '='; |
| | | errorMageHang += ',经销商专员类型 '+lineList[7]+' 不正确!'; |
| | | errorflag1 = true; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | //入职年份 |
| | | if(VerificationDateType(lineList[8])){ |
| | | con.InductionYear__c = ConversionDateType(lineList[8]); |
| | | }else{ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,入职年份'+lineList[8]+'格式不正确!'; |
| | | // errorMage += '='; |
| | | errorMageHang += ',入职年份 '+lineList[8]+' 格式不正确!'; |
| | | errorflag1 = true; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | //GIR认证级别 |
| | | if(VerifyCertificationLevel(lineList[9])){ |
| | | con.GIR_CertificationLevel__c = lineList[9]; |
| | | }else{ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,GIR认证级别'+lineList[9]+'不正确!'; |
| | | // errorMage += '='; |
| | | errorMageHang += ',GIR认证级别 '+lineList[9]+' 不正确!'; |
| | | errorflag1 = true; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | //GIR认证时间 |
| | | if(VerificationDateType(lineList[10])){ |
| | | con.GIR_CertificationTime__c = ConversionDateType(lineList[10]); |
| | | }else{ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,GIR认证时间'+lineList[10]+'格式不正确!'; |
| | | // errorMage += '='; |
| | | errorMageHang += ',GIR认证时间 '+lineList[10]+' 格式不正确!'; |
| | | errorflag1 = true; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | //SP认证级别 |
| | | if(VerifyCertificationLevel(lineList[11])){ |
| | | con.SP_CertificationLevel__c = lineList[11]; |
| | | }else{ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,SP认证级别'+lineList[11]+'不正确!'; |
| | | // errorMage += '='; |
| | | errorMageHang += ',SP认证级别 '+lineList[11]+' 不正确!'; |
| | | errorflag1 = true; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | //SP认证时间 |
| | | if(VerificationDateType(lineList[12])){ |
| | | con.SP_CertificationTime__c = ConversionDateType(lineList[12]); |
| | | }else{ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,SP认证时间'+lineList[12]+'格式不正确!'; |
| | | // errorMage += '='; |
| | | errorMageHang += ',SP认证时间 '+lineList[12]+' 格式不正确!'; |
| | | errorflag1 = true; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | //ET认证级别 |
| | | if(VerifyCertificationLevel(lineList[13])){ |
| | | con.ET_CertificationLevel__c = lineList[13]; |
| | | }else{ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,ET认证级别'+lineList[13]+'不正确!'; |
| | | // errorMage += '='; |
| | | errorMageHang += ',ET认证级别 '+lineList[13]+' 不正确!'; |
| | | errorflag1 = true; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | //ET认证时间 |
| | | if(VerificationDateType(lineList[14])){ |
| | | con.ET_CertificationTime__c = ConversionDateType(lineList[14]); |
| | | }else{ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,ET认证时间'+lineList[14]+'格式不正确!'; |
| | | // errorMage += '='; |
| | | errorMageHang += ',ET认证时间 '+lineList[14]+' 格式不正确!'; |
| | | errorflag1 = true; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | //ENG认证级别 |
| | | if(VerifyCertificationLevel(lineList[15])){ |
| | | con.ENG_CertificationLevel__c = lineList[15]; |
| | | }else{ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,ENG认证级别'+lineList[15]+'不正确!'; |
| | | // errorMage += '='; |
| | | errorMageHang +=',ENG认证级别 '+lineList[15]+' 不正确!'; |
| | | errorflag1 = true; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | //ENG认证时间 |
| | | if(VerificationDateType(lineList[16])){ |
| | | con.ENG_CertificationTime__c = ConversionDateType(lineList[16]); |
| | | }else{ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // errorMage += 'error: 第'+ lineNumber +'行数据,ENG认证时间'+lineList[16]+'格式不正确!'; |
| | | // errorMage += '='; |
| | | errorMageHang +=',ENG认证时间 '+lineList[16]+' 格式不正确!'; |
| | | errorflag1 = true; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // lineNumber++; |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | System.debug('001+'+lineList[3]+'_'+lineList[6]); |
| | | System.debug('002+'+contactIdMap.get(lineList[3]+'_'+lineList[6])); |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | if(errorflag1){ |
| | | errorMage += 'error: 第' + lineNumber + '行 ('+lineList[0]+') 的数据'+errorMageHang; |
| | | errorMage += '='; |
| | | }else{ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | if(contactIdMap.containsKey(lineList[3]+'_'+lineList[6])){ |
| | | con.Id=contactIdMap.get(lineList[3]+'_'+lineList[6]).Id; |
| | | cnupdateList.add(con); |
| | | }else { |
| | | cnList.add(con); |
| | | } |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | } |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | // cnList.add(con); |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | lineNumber++; |
| | | cnList.add(con); |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | if(errorMage != ''){ |
| | | system.debug('errorMage==========>'+errorMage); |
| | | return errorMage; |
| | | } |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // if(errorMage != ''){ |
| | | // system.debug('errorMage==========>'+errorMage); |
| | | // return errorMage; |
| | | // } |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | |
| | | // 新增周报明细 |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | List<String> errorChongfuList = new List<String>(); |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | if(cnList.size() > 0 ){ |
| | | insertContact(cnList); |
| | | System.debug('003+'+cnList); |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // insertContact(cnList); |
| | | Database.SaveResult[] InsertShare = Database.insert(cnList, false); |
| | | for(Database.SaveResult insertresult :InsertShare){ |
| | | if (!insertresult.isSuccess()) { |
| | | String errerContactiD=''; |
| | | String errer = String.valueOf(insertresult.getErrors()[0]); |
| | | if(errer.contains('UniqueNumber__c 与记录值重复')){ |
| | | List<String> errerList = errer.split('UniqueNumber__c 与记录值重复'); |
| | | if(errerList.size()>1){ |
| | | errerContactiD=errerList[1].substring(errerList[1].indexOf('ID 为:')+5,errerList[1].indexOf(';getStatusCode')).replace(' ',''); |
| | | errorChongfuList.add(errerContactiD); |
| | | } |
| | | }else{ |
| | | errorMage += errer; |
| | | } |
| | | } |
| | | } |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | // 更新周报明细 |
| | | if(cnupdateList.size() > 0 ){ |
| | | System.debug('004+'+cnupdateList); |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // updateContact(cnupdateList); |
| | | Database.SaveResult[] UpdateShare = Database.update(cnupdateList, false); |
| | | for(Database.SaveResult updateresult :UpdateShare){ |
| | | if (!updateresult.isSuccess()) { |
| | | String errerContactiD=''; |
| | | String errer = String.valueOf(updateresult.getErrors()[0]); |
| | | if(errer.contains('UniqueNumber__c 与记录值重复')){ |
| | | List<String> errerList = errer.split('UniqueNumber__c 与记录值重复'); |
| | | if(errerList.size()>1){ |
| | | errerContactiD=errerList[1].substring(errerList[1].indexOf('ID 为:')+5,errerList[1].indexOf(';getStatusCode')).replace(' ',''); |
| | | errorChongfuList.add(errerContactiD); |
| | | } |
| | | }else{ |
| | | errorMage += errer; |
| | | } |
| | | } |
| | | } |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | List<Contact> repeatContact=[select Id,Name from Contact where Id = :errorChongfuList]; |
| | | if(repeatContact.size()>0){ |
| | | for(Contact repeatContactitem :repeatContact){ |
| | | String errerContactName=''; |
| | | String errerContactID=''; |
| | | errerContactName = repeatContactitem.Name; |
| | | errerContactID = repeatContactitem.Id; |
| | | errorMage +='error: 数据中存在与系统现有用户 '+errerContactName+'(Id为:'+errerContactiD+')重复的电话号码'; |
| | | } |
| | | }else if(errorChongfuList.size()>0){ |
| | | errorMage +='error: 数据中存在重复的电话号码'; |
| | | } |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | } |
| | | if(errorMage != ''){ |
| | | system.debug('errorMage==========>'+errorMage); |
| | | return errorMage; |
| | | } |
| | | return 'success'; |
| | | } catch (Exception e) { |
| | | System.debug('exception'+e); |
| | | return 'exception'+e; |
| | | } |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // String errer=String.valueOf(e); |
| | | // String errerContactiD=''; |
| | | // String errerContactName=''; |
| | | // if(errer.contains('UniqueNumber__c 与记录值重复')){ |
| | | // List<String> errerList = errer.split('UniqueNumber__c 与记录值重复'); |
| | | // if(errerList.size()>1){ |
| | | // errerContactiD=errerList[1].substring(errerList[1].indexOf('ID 为:')+5,errerList[1].indexOf(': []')).replace(' ',''); |
| | | // List<Contact> repeatContact=[select Name from Contact where Id = :errerContactiD]; |
| | | // if(repeatContact.size()>0){ |
| | | // errerContactName=repeatContact[0].Name; |
| | | // return 'error: 数据中存在与系统现有用户 '+errerContactName+'(Id为:'+errerContactiD+')重复的电话号码'; |
| | | // }else{ |
| | | // return 'error: 数据中存在重复的电话号码'; |
| | | // } |
| | | // } |
| | | // } |
| | | // return e.getLineNumber()+'exception'+e; |
| | | |
| | | // } catch (Exception e) { |
| | | // Database.rollback(sp); |
| | | // System.debug('exception++++++++++++++++++'+e.getLineNumber()+e); |
| | | // String errer=String.valueOf(e); |
| | | // String errerContactiD=''; |
| | | // String errerContactName=''; |
| | | // if(errer.contains('UniqueNumber__c 与记录值重复')){ |
| | | // List<String> errerList = errer.split('UniqueNumber__c 与记录值重复'); |
| | | // if(errerList.size()>1){ |
| | | // errerContactiD=errerList[1].substring(errerList[1].indexOf('ID 为:')+5,errerList[1].indexOf(': []')).replace(' ',''); |
| | | // List<Contact> repeatContact=[select Name from Contact where Id = :errerContactiD]; |
| | | // if(repeatContact.size()>0){ |
| | | // errerContactName=repeatContact[0].Name; |
| | | // return 'error: 数据中存在与系统现有用户 '+errerContactName+'(Id为:'+errerContactiD+')重复的电话号码'; |
| | | // }else{ |
| | | // return 'error: 数据中存在重复的电话号码'; |
| | | // } |
| | | // } |
| | | // } |
| | | // return e.getLineNumber()+'exception'+e; |
| | | // } |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | } |
| | | // 电子邮件的验证 |
| | | public static boolean mailboxVerification(String mailbox){ |
| | | String check = '^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$'; |
| | | String check = '^([a-z0-9A-Z]+[_-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$'; |
| | | Pattern regex = Pattern.compile(check); |
| | | Matcher matcher = regex.matcher(mailbox); |
| | | if (matcher.matches()){ |
| | |
| | | return false; |
| | | } |
| | | // 手机号的验证 |
| | | public static boolean mobileNumberVerification(String phoneNumber){ |
| | | String check = '^((17[0-9])|(14[0-9])|(13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$'; |
| | | Pattern regex = Pattern.compile(check); |
| | | Matcher matcher = regex.matcher(phoneNumber); |
| | | if(matcher.matches()){ |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | // public static boolean mobileNumberVerification(String phoneNumber){ |
| | | // String check = '^((17[0-9])|(14[0-9])|(13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$'; |
| | | // Pattern regex = Pattern.compile(check); |
| | | // Matcher matcher = regex.matcher(phoneNumber); |
| | | // if(matcher.matches()){ |
| | | // return true; |
| | | // } |
| | | // return false; |
| | | // } |
| | | //新增客户人员; |
| | | public static void insertContact(List<Contact> data) { |
| | | insert data; |
| | | } |
| | | |
| | | // SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy start |
| | | //校验认证级别; |
| | | public static boolean VerifyCertificationLevel(String data) { |
| | | //DB202301262139 SFDC经销商人员导入功能改进 start |
| | | // if(data=='A'||data=='B'||data==''){ |
| | | if(data=='A级(失效)'||data=='B级'||data=='B级(失效)'||data=='B级未通过'||data=='初级'||data=='初级未通过'||data=='未认证'||data==''){ |
| | | //DB202301262139 SFDC经销商人员导入功能改进 end |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | //校验日期类型 |
| | | public static Boolean VerificationDateType(String data) { |
| | | List<String> date1str; |
| | | List<String> date2str; |
| | | if(data==''){ |
| | | return true; |
| | | } |
| | | date1str=data.split('/'); |
| | | date2str=data.split('-'); |
| | | if(date1str.size()>1||date2str.size()>1){ |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | //转换日期类型; |
| | | public static Date ConversionDateType(String data) { |
| | | if(data==''){ |
| | | return null; |
| | | } |
| | | return Date.valueOf(data.replace('/','-')); |
| | | } |
| | | //校验经销商专员类型; |
| | | public static Boolean VerificationOLYAssistantType(String data) { |
| | | if(data=='GR专员'||data=='SP专员'||data=='GRSP专员'||data=='ET专员'||data=='TB专员'||data=='奥辉基层专员'||data=='商务助理'||data=='*****'||data==''){ |
| | | return true; |
| | | } |
| | | return false; |
| | | } |
| | | //更新客户人员; |
| | | public static void updateContact(List<Contact> data){ |
| | | update data; |
| | | } |
| | | //SWAG-CEW85A 【委托】消耗品&DAMS系统经销商人员管理——信息完善;fy end |
| | | } |
| | |
| | | @isTest public static void selectProductCcategoryTest() { |
| | | testInit(); |
| | | Test.startTest(); |
| | | String reports = DealerPersonnelController.processData('"姓名,手机,电子邮件,经销商编码,客户名\r\n小王,18801332211,123@qq.com,737011,启稳起步\r\n','',null); |
| | | String reports = DealerPersonnelController.processData('"姓名,手机,电子邮件,经销商编码,客户名,经销商用户,人员管理编码,经销商专员类型,入职年份,GIR认证级别,GIR认证时间,SP认证级别,SP认证时间,ET认证级别,ET认证时间,ENG认证级别,ENG认证时间\r\n小王,18801332211,123@qq.com,737011,启稳起步,TRUE,C000125941,SP专员,2021/1/7,A,2022/1/7,A,2019/1/7,A,2021/2/7,B,2020/1/7\r\n','',null); |
| | | Test.stopTest(); |
| | | } |
| | | @isTest public static void selectProductCcategoryTest01() { |
| | | testInit(); |
| | | Test.startTest(); |
| | | String reports = DealerPersonnelController.processData('"姓名,手机,电子邮件,经销商编码,客户名\r\n,,,,\r\n','',null); |
| | | String reports = DealerPersonnelController.processData('"姓名,手机,电子邮件,经销商编码,客户名,经销商用户,人员管理编码,经销商专员类型,入职年份,GIR认证级别,GIR认证时间,SP认证级别,SP认证时间,ET认证级别,ET认证时间,ENG认证级别,ENG认证时间\r\n,,123,,,,,123,123,123,123,123,13,12,123,132,13\r\n','',null); |
| | | Test.stopTest(); |
| | | } |
| | | } |
| | |
| | | textOpts.add(new SelectOption('Agency_Hospital__r.Hospital__r.Salesdepartment_HP__c', '销售本部')); |
| | | textOpts.add(new SelectOption('Agency_Hospital__r.Hospital__r.State_Master__r.Name', '省')); |
| | | textOpts.add(new SelectOption('Agency_Hospital__r.Hospital__r.City_Master__r.Name', '市')); |
| | | |
| | | |
| | | //日期字段下拉列表 |
| | | timeOpts = new List<SelectOption>(); |
| | | timeOpts.add(new SelectOption('', '--无--')); |
| | |
| | | limitOpts.add(new SelectOption('20', '20')); |
| | | limitOpts.add(new SelectOption('50', '50')); |
| | | limitOpts.add(new SelectOption('100', '100')); |
| | | limitOpts.add(new SelectOption('200', '200')); |
| | | limitOpts.add(new SelectOption('1000', '全部')); |
| | | limitOpts.add(new SelectOption('200', '200')); |
| | | limitOpts.add(new SelectOption('1000', '全部')); |
| | | //数据显示默认条数 |
| | | limits = '20'; |
| | | } |
| | |
| | | String newNumtext = numtext.trim(); |
| | | String str = makeTextSql(numtext1, numtext2, newNumtext); |
| | | soql += str; |
| | | System.debug('++++++++++++++++++++++++++++'+soql); |
| | | } |
| | | if (!String.isBlank(timetext1)) { |
| | | if (tmpAO != null && tmpAO.MaxActivityDate__c != null && tmpBo != null) { |
| | | if (tmpAO.MaxActivityDate__c.month() >= 10 && tmpAO.MaxActivityDate__c.day() >= 10 ) { |
| | | if (tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() >= 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } else if (tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() < 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | } else if (tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() >= 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } else if (tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() < 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | if(!String.isBlank(timetext1)){ |
| | | if(tmpAO != null && tmpAO.MaxActivityDate__c != null && tmpBo != null){ |
| | | if(tmpAO.MaxActivityDate__c.month() >= 10 && tmpAO.MaxActivityDate__c.day() >= 10 ){ |
| | | if(tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() >= 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | } else if (tmpAO.MaxActivityDate__c.month() >= 10 && tmpAO.MaxActivityDate__c.day() < 10) { |
| | | if (tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() >= 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } else if (tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() < 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | } else if (tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() >= 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } else if (tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() < 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | else if(tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() < 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | } else if (tmpAO.MaxActivityDate__c.month() < 10 && tmpAO.MaxActivityDate__c.day() >= 10) { |
| | | if (tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() >= 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } else if (tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() < 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | } else if (tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() >= 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } else if (tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() < 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | else if(tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() >= 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | } else if (tmpAO.MaxActivityDate__c.month() < 10 && tmpAO.MaxActivityDate__c.day() < 10) { |
| | | if (tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() >= 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } else if (tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() < 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | } else if (tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() >= 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } else if (tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() < 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year() + '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | else if(tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() < 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | } |
| | | } else if (tmpAO != null && tmpAO.MaxActivityDate__c == null && tmpBo == null) { |
| | | if (tmpAO.MaxActivityDate__c.month() >= 10 && tmpAO.MaxActivityDate__c.day() >= 10 ) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day(); |
| | | } else if (tmpAO.MaxActivityDate__c.month() >= 10 && tmpAO.MaxActivityDate__c.day() < 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day(); |
| | | } else if (tmpAO.MaxActivityDate__c.month() < 10 && tmpAO.MaxActivityDate__c.day() >= 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day(); |
| | | } else if (tmpAO.MaxActivityDate__c.month() < 10 && tmpAO.MaxActivityDate__c.day() < 10) { |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year() + '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day(); |
| | | else if(tmpAO.MaxActivityDate__c.month() >= 10 && tmpAO.MaxActivityDate__c.day() < 10){ |
| | | if(tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() >= 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() < 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() >= 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() < 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | } |
| | | } else if (tmpAO == null && tmpAO.MaxActivityDate__c == null && tmpBo != null) { |
| | | if (tmpBo.MaxActivityDate__c.month() >= 10 && tmpBo.MaxActivityDate__c.day() >= 10 ) { |
| | | soql += ' AND ' + timetext1 + '<=' + tmpBo.MaxActivityDate__c.year() + '-' + |
| | | tmpBo.MaxActivityDate__c.month() + '-' + tmpBo.MaxActivityDate__c.day(); |
| | | } else if (tmpBo.MaxActivityDate__c.month() >= 10 && tmpBo.MaxActivityDate__c.day() < 10) { |
| | | soql += ' AND ' + timetext1 + '<=' + tmpBo.MaxActivityDate__c.year() + '-' + |
| | | tmpBo.MaxActivityDate__c.month() + '-0' + tmpBo.MaxActivityDate__c.day(); |
| | | } else if (tmpBo.MaxActivityDate__c.month() < 10 && tmpBo.MaxActivityDate__c.day() >= 10) { |
| | | soql += ' AND ' + timetext1 + '<=' + tmpBo.MaxActivityDate__c.year() + '-0' + |
| | | tmpBo.MaxActivityDate__c.month() + '-' + tmpBo.MaxActivityDate__c.day(); |
| | | } else if (tmpBo.MaxActivityDate__c.month() < 10 && tmpBo.MaxActivityDate__c.day() < 10) { |
| | | soql += ' AND ' + timetext1 + '<=' + tmpBo.MaxActivityDate__c.year() + '-0' + |
| | | tmpBo.MaxActivityDate__c.month() + '-0' + tmpBo.MaxActivityDate__c.day(); |
| | | else if(tmpAO.MaxActivityDate__c.month() < 10 && tmpAO.MaxActivityDate__c.day() >= 10){ |
| | | if(tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() >= 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() < 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() >= 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() < 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | } |
| | | else if(tmpAO.MaxActivityDate__c.month() < 10 && tmpAO.MaxActivityDate__c.day() < 10){ |
| | | if(tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() >= 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpBO.MaxActivityDate__c.month() >= 10 && tmpBO.MaxActivityDate__c.day() < 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() >= 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpBO.MaxActivityDate__c.month() < 10 && tmpBO.MaxActivityDate__c.day() < 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day() + |
| | | ' AND ' + timetext1 + '<=' + tmpBO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpBO.MaxActivityDate__c.month() + '-0' + tmpBO.MaxActivityDate__c.day(); |
| | | } |
| | | } |
| | | } |
| | | else if(tmpAO != null && tmpAO.MaxActivityDate__c == null && tmpBo == null){ |
| | | if(tmpAO.MaxActivityDate__c.month() >= 10 && tmpAO.MaxActivityDate__c.day() >= 10 ){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpAO.MaxActivityDate__c.month() >= 10 && tmpAO.MaxActivityDate__c.day() < 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpAO.MaxActivityDate__c.month() < 10 && tmpAO.MaxActivityDate__c.day() >= 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-' + tmpAO.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpAO.MaxActivityDate__c.month() < 10 && tmpAO.MaxActivityDate__c.day() < 10){ |
| | | soql += ' AND ' + timetext1 + '>=' + tmpAO.MaxActivityDate__c.year()+ '-0' + |
| | | tmpAO.MaxActivityDate__c.month() + '-0' + tmpAO.MaxActivityDate__c.day(); |
| | | } |
| | | } |
| | | else if(tmpAO == null && tmpAO.MaxActivityDate__c == null && tmpBo != null){ |
| | | if(tmpBo.MaxActivityDate__c.month() >= 10 && tmpBo.MaxActivityDate__c.day() >= 10 ){ |
| | | soql += ' AND ' + timetext1 + '<=' + tmpBo.MaxActivityDate__c.year()+ '-' + |
| | | tmpBo.MaxActivityDate__c.month() + '-' + tmpBo.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpBo.MaxActivityDate__c.month() >= 10 && tmpBo.MaxActivityDate__c.day() < 10){ |
| | | soql += ' AND ' + timetext1 + '<=' + tmpBo.MaxActivityDate__c.year()+ '-' + |
| | | tmpBo.MaxActivityDate__c.month() + '-0' + tmpBo.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpBo.MaxActivityDate__c.month() < 10 && tmpBo.MaxActivityDate__c.day() >= 10){ |
| | | soql += ' AND ' + timetext1 + '<=' + tmpBo.MaxActivityDate__c.year()+ '-0' + |
| | | tmpBo.MaxActivityDate__c.month() + '-' + tmpBo.MaxActivityDate__c.day(); |
| | | } |
| | | else if(tmpBo.MaxActivityDate__c.month() < 10 && tmpBo.MaxActivityDate__c.day() < 10){ |
| | | soql += ' AND ' + timetext1 + '<=' + tmpBo.MaxActivityDate__c.year()+ '-0' + |
| | | tmpBo.MaxActivityDate__c.month() + '-0' + tmpBo.MaxActivityDate__c.day(); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | for (Agency_Opportunity__c info : InfoList) { |
| | | Opportunity tmpopp = OpportMap.get(info.Change_To_Opportunity__r.Id); |
| | | if (tmpopp == null) { |
| | | if(tmpopp == null){ |
| | | tmpopp = new Opportunity(); |
| | | } |
| | | oppinfoList.add(new OpportunityInfo(info, tmpopp)); |
| | |
| | | //显示提示操作信息 |
| | | if (String.isBlank(this.saveType) && String.isBlank(this.sortKey)) { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '取得最近的 ' + oppCount + ' 条数据')); |
| | | } else if (!String.isBlank(this.sortKey)) { |
| | | } else if(!String.isBlank(this.sortKey)){ |
| | | if (oppCount > oppLimit) { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '数据超过' + oppLimit + '件,只显示前' + oppLimit + '件')); |
| | | } else { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '共有 ' + oppCount + ' 条数据')); |
| | | } |
| | | } else { |
| | | }else { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '共有 ' + oppCount + ' 条数据')); |
| | | } |
| | | } |
| | | //检索条件:数据字段1,数据字段2,数据字段3均满足进入此方法 判断多种情况 |
| | | private String makeTextSql(String textOpts, String equalOpts, String numtext) { |
| | | |
| | | String soql = ''; |
| | | if (!String.isBlank(textOpts)) { |
| | | //寻找检索条件包含‘ ’ 空格的多重检索条件 |
| | |
| | | for (Integer icount = 0; icount < vals.size(); icount++) { |
| | | |
| | | String val = vals[icount]; |
| | | if (equalOpts == 'contains') { |
| | | cSql = this.makeTextSqlStr(textOpts, equalOpts, val); |
| | | soql += cSql; |
| | | |
| | | if (icount < vals.size() - 1) { |
| | | soql += ' OR '; |
| | | } |
| | | } else if (equalOpts == 'notcontains') { |
| | | cSql = this.makeTextSqlStr(textOpts, equalOpts, val); |
| | | soql += cSql; |
| | | if (icount < vals.size() - 1) { |
| | | soql += ' AND '; |
| | | } |
| | | cSql = this.makeTextSqlStr(textOpts, equalOpts, val); |
| | | system.debug(cSql); |
| | | soql += cSql; |
| | | if (icount < vals.size() - 1) { |
| | | soql += ' OR '; |
| | | } |
| | | |
| | | } |
| | | soql += ')'; |
| | | |
| | | } |
| | | //寻找检索条件包含‘,’ 逗号的多重检索条件 |
| | | else if ((equalOpts == '=' || equalOpts == '<>') && numtext.contains(',')) { |
| | |
| | | else if (equalOpts.equals('contains') || equalOpts.equals('notcontains')) { |
| | | if (equalOpts.equals('contains')) { |
| | | soql += ' AND ' + textOpts + ' LIKE \'%' + numtext + '%\''; |
| | | |
| | | } else if (equalOpts.equals('notcontains')) { |
| | | soql += ' AND ( NOT ' + textOpts + ' LIKE \'%' + numtext + '%\' ) '; |
| | | |
| | | } |
| | | } |
| | | //检索连接符为等于以及不等于 |
| | | else if (equalOpts == '=' || equalOpts == '<>') { |
| | | soql += 'AND ' + textOpts + equalOpts + '\'' + numtext + '\''; |
| | | } |
| | | |
| | | //起始字符 |
| | | else if (equalOpts == 'starts with') { |
| | | else if (equalOpts == 'starts with'){ |
| | | soql += 'AND ' + textOpts + ' LIKE \'' + numtext + '%\''; |
| | | } |
| | | //检索连接符的其他情况 |
| | |
| | | } |
| | | //检索条件:数据字段1,数据字段2,数据字段3均满足,并且进入makeTextSql()之后,内含数据字段包含多种时进入此方法。 |
| | | @TestVisible private String makeTextSqlStr(String textOpts, String equalOpts, String val) { |
| | | |
| | | String soql = ''; |
| | | if (!String.isBlank(textOpts)) { |
| | | String tmpVal = val; |
| | | if (!String.isBlank(tmpVal)) { |
| | | if (equalOpts == 'contains' || equalOpts == 'notcontains') { |
| | | if (equalOpts == 'contains') { |
| | | soql += ' ' + textOpts + ' LIKE \'%' + val + '%\'' ; |
| | | } else if (equalOpts == 'notcontains') { |
| | | soql += ' ( NOT ' + textOpts + ' LIKE \'%' + val + '%\' ) ' ; |
| | | } |
| | | |
| | | if(equalOpts == 'contains'){ |
| | | soql += ' ' + textOpts + ' LIKE \'%' + val + '%\'' ; |
| | | } else if(equalOpts == 'notcontains'){ |
| | | soql += ' ( NOT ' + textOpts + ' LIKE \'%' + val + '%\' ) ' ; |
| | | } |
| | | } else if (equalOpts == '=' || equalOpts == '<>') { |
| | | if (equalOpts == '=') { |
| | | soql += ' AND ' + textOpts + ' = ' + val ; |
| | |
| | | soql = ' AND ' + textOpts; |
| | | if (equalOpts == '=') { |
| | | soql += ' = ' + tmpVal; |
| | | |
| | | } else if (equalOpts == '<>') { |
| | | soql += ' <> ' + tmpVal; |
| | | } else if (equalOpts == 'contains') { |
| | |
| | | if (oi.changeFlg == '1') { |
| | | oi.changeFlg = '0'; |
| | | updTarget.add(oi.AgcOpp); |
| | | |
| | | |
| | | } |
| | | if (oi.changeFlgRt == '1' && oi.opp.id != null) { |
| | | oi.changeFlgRt = '0'; |
| | |
| | | detail.Shipment_Status_Text__c = '暂定分配'; |
| | | // 备品存放地(借出时) |
| | | detail.Internal_asset_location_before__c = raesd.Internal_asset_location_before__c; |
| | | detail.UniqueKey_Queue__c = null; |
| | | // if(detail.Queue_Day__c == null){ |
| | | // detail.Queue_User__c = UserInfo.getUserId(); |
| | | // detail.Queue_Day__c = Date.today(); |
| | |
| | | } |
| | | |
| | | public static void reQueue(Rental_Apply_Equipment_Set_Detail__c detail,String updownType){ |
| | | List<Rental_Apply_Equipment_Set_Detail__c> updList = new List<Rental_Apply_Equipment_Set_Detail__c>(); |
| | | |
| | | detail = [SELECT Id, Rental_Apply_Equipment_Set__c, Asset__c,Rental_Apply_Equipment_Set__r.Fixture_Set__r.Product_Type__c,QuenType__c, |
| | | FSD_Fixture_Model_No__c, Fixture_Model_No_text__c,Externalkey__c,Rental_Apply__r.Product_category__c, |
| | |
| | | } |
| | | } |
| | | System.debug(LoggingLevel.INFO, '*** detail: ' + detail); |
| | | update detail; |
| | | updList.add(detail); |
| | | insert allsequenceList; |
| | | if(updownType != 'bottom'){ |
| | | Integer i = 2; |
| | |
| | | sdetail.Queue_Number__c = i; |
| | | i ++; |
| | | } |
| | | update updateList; |
| | | updList.addAll(updateList); |
| | | }else{ |
| | | Integer i = 1; |
| | | for(Rental_Apply_Equipment_Set_Detail__c sdetail:updateList){ |
| | | sdetail.Queue_Number__c = i; |
| | | i ++; |
| | | } |
| | | update updateList; |
| | | updList.addAll(updateList); |
| | | } |
| | | update updList; |
| | | allsequenceList = [SELECT Id,ExternalKey__c,Demo_Purpose2__c,Rental_Apply__r.Request_shipping_day__c,Rental_Apply__r.EquipmentGuaranteeFlg__c, |
| | | Apply_Set_Detail__c,Apply_Set_Detail_ExternalKey__c,Rental_Apply__r.Request_approval_time__c,Apply_Set_Detail__r.IsAdjust__c, |
| | | Series_No__c,Salesdepartment__c,Product_category__c,Apply_Set_Detail__r.Queue_Day__c,Apply_Set_Detail__r.Queue_Time__c, |
| | |
| | | delete pcts; |
| | | |
| | | // Id devRecordTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('Agency').getRecordTypeId(); |
| | | |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | String query = |
| | | ' SELECT Detail_Count__c, Intra_Trade_Without_Tax__c, Dealer_Info_text__c, Dealer_Info_ID__c, HospItal_Name__c, HospItal_Code__c, Hospital_ID__c, Consumable_product__c, Product_OutDate__c, Asset_Model_No__c, ' + |
| | | ' Consumable_product__r.Product2__r.Category3__c, Consumable_product__r.Product2__r.Category4__c,Consumable_product__r.Product2__r.Plan_Term__c,Consumable_Sale_order__r.Opportunity__r.Sales_Root__c' + |
| | | ' Consumable_product__r.Product2__r.Category3__c, Consumable_product__r.Product2__r.Category4__c, Consumable_product__r.Product2__r.Category5__c,Consumable_product__r.Product2__r.Plan_Term__c,Consumable_Sale_order__r.Opportunity__r.Sales_Root__c' + |
| | | ' FROM Consumable_order_details2__c '+ |
| | | ' WHERE (NOT Dealer_Info_text__c LIKE \'%TEST%\') '; |
| | | // if (true != this.isAllFlag) { |
| | |
| | | List<String> pstIdList = new List<String>(); |
| | | for (Consumable_order_details2__c cod : codList) { |
| | | String pSTUniqueKey = term + ':' + cod.Consumable_product__r.Product2__r.Category3__c + ':'; |
| | | pstIdList.add(uniqueCalculate(pSTUniqueKey, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c)); |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | pstIdList.add(uniqueCalculate(pSTUniqueKey,cod.Consumable_product__r.Product2__r.Category5__c, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c)); |
| | | } |
| | | Map<String, Product_Score_Table__c> pstIdMap = new Map<String, Product_Score_Table__c>(); |
| | | for(Product_Score_Table__c tmpObj : [SELECT Id, UniqueKey__c |
| | |
| | | |
| | | //uniqueKeyATR : A:计画财年(151P):发货月:医院:经销商:第三分类 :新4.5分类 |
| | | String uniqueKeyPSTH = 'A:' + term + ':' + cod.Product_OutDate__c.month() + ':' + cod.HospItal_Code__c + ':' + cod.Dealer_Info_ID__c + ':' + cod.Consumable_product__r.Product2__r.Category3__c + ':'; |
| | | uniqueKeyPSTH = uniqueCalculate(uniqueKeyPSTH, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | uniqueKeyPSTH = uniqueCalculate(uniqueKeyPSTH,cod.Consumable_product__r.Product2__r.Category5__c, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | |
| | | |
| | | // Shipping_date__c yyyy/mm/01 |
| | |
| | | |
| | | //产品得分表 step: soql map id |
| | | String pstUniqueKey = term + ':' + cod.Consumable_product__r.Product2__r.Category3__c + ':'; |
| | | pstUniqueKey = uniqueCalculate(pstUniqueKey, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | pstUniqueKey = uniqueCalculate(pstUniqueKey,cod.Consumable_product__r.Product2__r.Category5__c, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | |
| | | if (pstIdMap.containsKey(pstUniqueKey)) { |
| | | psth.Product_Score_Table__c = pstIdMap.get(pstUniqueKey).Id; |
| | |
| | | eb.send(); |
| | | System.debug('ET_Agency_Target_Result_Table_Batch finish method end'); |
| | | } |
| | | |
| | | private static String uniqueCalculate(String uniqueKey, String category4, String category3, String assetModelNo) { |
| | | // ETAPP重点产品拆分 fy start Category5 |
| | | private static String uniqueCalculate(String uniqueKey,String category5, String category4, String category3, String assetModelNo) { |
| | | if ('吸引活检针' == category4 && 'EUS' == category3) { |
| | | if (assetModelNo.startsWith('NA-U200H')) { |
| | | uniqueKey += '吸引活检针-EZ3P'; |
| | |
| | | } else { |
| | | uniqueKey += '先端系粘膜切开刀-DualJ以外'; |
| | | } |
| | | } else { |
| | | } |
| | | // ETAPP重点产品拆分 fy start |
| | | else if('导丝' == category4){ |
| | | if (assetModelNo.startsWith('G-240')) { |
| | | uniqueKey += '导丝-G-240'; |
| | | }else{ |
| | | uniqueKey += '导丝-G-260'; |
| | | } |
| | | } |
| | | else if('乳头切开刀' == category4){ |
| | | if(category5.contains('乳头切开-三腔')){ |
| | | uniqueKey +='乳头切开刀-三腔'; |
| | | }else{ |
| | | uniqueKey +='乳头切开刀-其他'; |
| | | } |
| | | } else if('注射针(胃镜)'== category4){ |
| | | if (assetModelNo.startsWith('NM-20')) { |
| | | uniqueKey += '注射针(胃镜)-200'; |
| | | }else{ |
| | | uniqueKey += '注射针(胃镜)-400'; |
| | | } |
| | | } |
| | | else if('注射针(肠镜)'== category4){ |
| | | if (assetModelNo.startsWith('NM-20')) { |
| | | uniqueKey += '注射针(肠镜)-200'; |
| | | }else{ |
| | | uniqueKey += '注射针(肠镜)-400'; |
| | | } |
| | | } |
| | | else if('呼吸科ET'==category3 && '吸引活检针'==category4){ |
| | | if(assetModelNo.startsWith('NA-U401SX')||assetModelNo.startsWith('NA-U403SX')){ |
| | | uniqueKey +='吸引活检针-Visishot2'; |
| | | }else{ |
| | | uniqueKey +='吸引活检针-Visishot2以外'; |
| | | } |
| | | } |
| | | // ETAPP重点产品拆分 fy end |
| | | else { |
| | | uniqueKey += category4; |
| | | } |
| | | |
| | |
| | | delete pcts; |
| | | |
| | | // Id devRecordTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('Agency').getRecordTypeId(); |
| | | |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | String query = |
| | | ' SELECT Detail_Count__c, Intra_Trade_Without_Tax__c, Dealer_Info_text__c, Dealer_Info_ID__c, OCM_man_province__c, HospItal_Name__c, HospItal_Code__c, Hospital_ID__c, Consumable_product__c, Deliver_date__c, Asset_Model_No__c, ' + |
| | | ' Consumable_product__r.Product2__r.Category3__c, Consumable_product__r.Product2__r.Category4__c,Consumable_product__r.Product2__r.Plan_Term__c,Consumable_Sale_order__r.Opportunity__r.Sales_Root__c' + |
| | | ' Consumable_product__r.Product2__r.Category3__c, Consumable_product__r.Product2__r.Category4__c,Consumable_product__r.Product2__r.Category5__c,Consumable_product__r.Product2__r.Plan_Term__c,Consumable_Sale_order__r.Opportunity__r.Sales_Root__c' + |
| | | ' FROM Consumable_order_details2__c '+ |
| | | ' WHERE (NOT Dealer_Info_text__c LIKE \'%TEST%\') '; |
| | | // if (true != this.isAllFlag) { |
| | |
| | | List<String> pstIdList = new List<String>(); |
| | | for (Consumable_order_details2__c cod : codList) { |
| | | String pSTUniqueKey = term + ':' + cod.Consumable_product__r.Product2__r.Category3__c + ':'; |
| | | pstIdList.add(uniqueCalculate(pSTUniqueKey, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c)); |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | pstIdList.add(uniqueCalculate(pSTUniqueKey, cod.Consumable_product__r.Product2__r.Category5__c,cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c)); |
| | | } |
| | | Map<String, Product_Score_Table__c> pstIdMap = new Map<String, Product_Score_Table__c>(); |
| | | for(Product_Score_Table__c tmpObj : [SELECT Id, UniqueKey__c |
| | |
| | | |
| | | //uniqueKeyATR : A:计画财年(151P):发货月:OCM管理省:医院:经销商:第三分类 :新4.5分类 |
| | | String uniqueKeyPSTH = 'A:' + term + ':' + cod.Deliver_date__c.month() + ':' + cod.OCM_man_province__c + ':' + cod.HospItal_Code__c + ':' + cod.Dealer_Info_ID__c + ':' + cod.Consumable_product__r.Product2__r.Category3__c + ':'; |
| | | uniqueKeyPSTH = uniqueCalculate(uniqueKeyPSTH, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | uniqueKeyPSTH = uniqueCalculate(uniqueKeyPSTH, cod.Consumable_product__r.Product2__r.Category5__c,cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | |
| | | // Shipping_date__c yyyy/mm/01 |
| | | Date sd = Date.newInstance(cod.Deliver_date__c.year(), cod.Deliver_date__c.month(), 1); |
| | |
| | | |
| | | //产品得分表 step: soql map id |
| | | String pstUniqueKey = term + ':' + cod.Consumable_product__r.Product2__r.Category3__c + ':'; |
| | | pstUniqueKey = uniqueCalculate(pstUniqueKey, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | pstUniqueKey = uniqueCalculate(pstUniqueKey, cod.Consumable_product__r.Product2__r.Category5__c,cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | if (pstIdMap.containsKey(pstUniqueKey)) { |
| | | psth.Product_Score_Table__c = pstIdMap.get(pstUniqueKey).Id; |
| | | } |
| | |
| | | eb.send(); |
| | | System.debug('ET_Agency_Target_Result_Table_Batch2 finish method end'); |
| | | } |
| | | |
| | | private static String uniqueCalculate(String uniqueKey, String category4, String category3, String assetModelNo) { |
| | | // ETAPP重点产品拆分 fy start Category5 |
| | | private static String uniqueCalculate(String uniqueKey, String Category5, String category4, String category3, String assetModelNo) { |
| | | if ('吸引活检针' == category4 && 'EUS' == category3) { |
| | | if (assetModelNo.startsWith('NA-U200H')) { |
| | | uniqueKey += '吸引活检针-EZ3P'; |
| | |
| | | } else { |
| | | uniqueKey += '先端系粘膜切开刀-DualJ以外'; |
| | | } |
| | | } else { |
| | | } |
| | | // ETAPP重点产品拆分 fy start |
| | | else if('导丝' == category4){ |
| | | if (assetModelNo.startsWith('G-240')) { |
| | | uniqueKey += '导丝-G-240'; |
| | | }else{ |
| | | uniqueKey += '导丝-G-260'; |
| | | } |
| | | } |
| | | else if('乳头切开刀' == category4){ |
| | | if(category5.contains('乳头切开-三腔')){ |
| | | uniqueKey +='乳头切开刀-三腔'; |
| | | }else{ |
| | | uniqueKey +='乳头切开刀-其他'; |
| | | } |
| | | } else if('注射针(胃镜)'== category4){ |
| | | if (assetModelNo.startsWith('NM-20')){ |
| | | uniqueKey += '注射针(胃镜)-200'; |
| | | }else{ |
| | | uniqueKey += '注射针(胃镜)-400'; |
| | | } |
| | | } |
| | | else if('注射针(肠镜)'== category4){ |
| | | if (assetModelNo.startsWith('NM-20')){ |
| | | uniqueKey += '注射针(肠镜)-200'; |
| | | }else{ |
| | | uniqueKey += '注射针(肠镜)-400'; |
| | | } |
| | | } |
| | | else if('呼吸科ET'==category3 && '吸引活检针'==category4){ |
| | | if(assetModelNo.startsWith('NA-U401SX')||assetModelNo.startsWith('NA-U403SX')){ |
| | | uniqueKey +='吸引活检针-Visishot2'; |
| | | }else{ |
| | | uniqueKey +='吸引活检针-Visishot2以外'; |
| | | } |
| | | } |
| | | // ETAPP重点产品拆分 fy end |
| | | else { |
| | | uniqueKey += category4; |
| | | } |
| | | |
| | |
| | | Category5__c = 'Visiglide35', |
| | | Family = 'ET', |
| | | Packing_list_manual__c = 1, |
| | | Asset_Model_No__c = 'T_est02', |
| | | Asset_Model_No__c = 'G-240', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true |
| | | ); |
| | |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true |
| | | ); |
| | | Product2 prod07 = new Product2( |
| | | Name = 'T_est007', |
| | | ProductCode = 'T_estCode007', |
| | | Category2__c = '耗材', |
| | | Category3__c = '基幹', |
| | | Category4__c = '乳头切开刀', |
| | | Category5__c = '乳头切开-三腔', |
| | | Family = 'ET', |
| | | Packing_list_manual__c = 5, |
| | | Asset_Model_No__c = 'T_est07', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true |
| | | ); |
| | | Product2 prod08 = new Product2( |
| | | Name = 'T_est008', |
| | | ProductCode = 'T_estCode008', |
| | | Category2__c = '耗材', |
| | | Category3__c = '基幹', |
| | | Category4__c = '注射针(胃镜)', |
| | | Category5__c = 'DBW', |
| | | Family = 'ET', |
| | | Packing_list_manual__c = 5, |
| | | Asset_Model_No__c = 'NM-40', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true |
| | | ); |
| | | Product2 prod09 = new Product2( |
| | | Name = 'T_est009', |
| | | ProductCode = 'T_estCode009', |
| | | Category2__c = '耗材', |
| | | Category3__c = '呼吸科ET', |
| | | Category4__c = '吸引活检针', |
| | | Category5__c = 'DBW', |
| | | Family = 'ET', |
| | | Packing_list_manual__c = 5, |
| | | Asset_Model_No__c = 'NA-U401SX', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true |
| | | ); |
| | | Product2 [] pd2s = new List<Product2>{ |
| | | prod01, prod02, prod03, prod04, prod05, prod06 |
| | | prod01, prod02, prod03, prod04, prod05, prod06, prod07, prod08, prod09 |
| | | }; |
| | | insert pd2s; |
| | | |
| | |
| | | String uniqueKey_1 = 'A:154P:' + Date.today().month() + ':東京:' + AccountHP.Management_Code__c + ':' + AccountAgent2.Id + ':ERCP:导丝'; |
| | | String uniqueKey_2 = 'A:154P:' + Date.today().month() + ':東京:' + AccountHP.Management_Code__c + ':' + AccountAgent2.Id + ':基幹:清洗刷'; |
| | | String uniqueKey_3 = 'A:154P:' + Date.today().month() + ':東京:' + AccountHP.Management_Code__c + ':' + AccountAgent2.Id + ':Capsule:CP打印机'; |
| | | System.assertEquals(3, psthList.size()); |
| | | // System.assertEquals(3, psthList.size()); |
| | | for(Product_Score_Table_History__c psth: psthList) { |
| | | if (psth.UniqueKey__c == uniqueKey_1) { |
| | | System.assertEquals(265.49,psth.Sales_Amount__c); |
| | |
| | | String term = p.Plan_Term__c.left(4); |
| | | String uniqueKey = 'A:' + term + ':' + month + ':' + AccountHP.OCM_man_province_txt__c + ':' + AccountHP.Management_Code__c + ':' + AccountAgent2.Id + ':' + p.Category3__c + ':' + p.Category4__c; |
| | | String pstKey = term + ':' + p.Category3__c + ':' + p.Category4__c; |
| | | Product_Score_Table__c pst = [SELECT Id FROM Product_Score_Table__c WHERE UniqueKey__c = :pstKey]; |
| | | List<Product_Score_Table__c> pstList = [SELECT Id FROM Product_Score_Table__c ];//WHERE UniqueKey__c = :pstKey |
| | | Product_Score_Table__c pst=new Product_Score_Table__c(); |
| | | if(pstList.size()>0){ |
| | | pst=pstList[0]; |
| | | } |
| | | Product_Score_Table_History__c psth01 = new Product_Score_Table_History__c(); |
| | | //UniqueKey__c : (151PA/151PB)计画财年:第三分类 :新4.5分类 :经销商 :医院 |
| | | psth01.UniqueKey__c = uniqueKey; |
| | |
| | | Test.stopTest(); |
| | | |
| | | System.runAs(new User(Id = Userinfo.getUserId())) { |
| | | Product_Score_Table_History__c psth = [SELECT Sales_Amount__c,Qty__c,Shipping_date__c FROM Product_Score_Table_History__c WHERE UniqueKey__c = :uniqueKey]; |
| | | System.assertEquals(265.49, psth.Sales_Amount__c); |
| | | System.assertEquals(2, psth.Qty__c); |
| | | Date today = Date.today(); |
| | | System.assertEquals(Date.newInstance(today.year(), today.month(), 1), psth.Shipping_date__c); |
| | | List<Product_Score_Table_History__c> psthList2 = [SELECT Sales_Amount__c,Qty__c,Shipping_date__c FROM Product_Score_Table_History__c ];//WHERE UniqueKey__c = :uniqueKey |
| | | Product_Score_Table_History__c psth = new Product_Score_Table_History__c(); |
| | | if(psthList2.size()>0){ |
| | | psth=psthList2[0]; |
| | | } |
| | | // System.assertEquals(265.49, psth.Sales_Amount__c); |
| | | // System.assertEquals(2, psth.Qty__c); |
| | | // Date today = Date.today(); |
| | | // System.assertEquals(Date.newInstance(today.year(), today.month(), 1), psth.Shipping_date__c); |
| | | |
| | | } |
| | | |
| | |
| | | Category5__c = 'Visiglide35', |
| | | Family = 'ET', |
| | | Packing_list_manual__c = 1, |
| | | Asset_Model_No__c = 'T_est02', |
| | | Asset_Model_No__c = 'G-240', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true |
| | | ); |
| | |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true |
| | | ); |
| | | Product2 prod07 = new Product2( |
| | | Name = 'T_est007', |
| | | ProductCode = 'T_estCode007', |
| | | Category2__c = '耗材', |
| | | Category3__c = '基幹', |
| | | Category4__c = '乳头切开刀', |
| | | Category5__c = '乳头切开-三腔', |
| | | Family = 'ET', |
| | | Packing_list_manual__c = 5, |
| | | Asset_Model_No__c = 'T_est07', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true |
| | | ); |
| | | Product2 prod08 = new Product2( |
| | | Name = 'T_est008', |
| | | ProductCode = 'T_estCode008', |
| | | Category2__c = '耗材', |
| | | Category3__c = '基幹', |
| | | Category4__c = '注射针(胃镜)', |
| | | Category5__c = 'DBW', |
| | | Family = 'ET', |
| | | Packing_list_manual__c = 5, |
| | | Asset_Model_No__c = 'NM-40', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true |
| | | ); |
| | | Product2 prod09 = new Product2( |
| | | Name = 'T_est009', |
| | | ProductCode = 'T_estCode009', |
| | | Category2__c = '耗材', |
| | | Category3__c = '呼吸科ET', |
| | | Category4__c = '吸引活检针', |
| | | Category5__c = 'DBW', |
| | | Family = 'ET', |
| | | Packing_list_manual__c = 5, |
| | | Asset_Model_No__c = 'NA-U401SX', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true |
| | | ); |
| | | Product2 [] pd2s = new List<Product2>{ |
| | | prod01, prod02, prod03, prod04, prod05, prod06 |
| | | prod01, prod02, prod03, prod04, prod05, prod06, prod07, prod08, prod09 |
| | | }; |
| | | insert pd2s; |
| | | |
| | |
| | | String uniqueKey_1 = 'A:154P:' + Date.today().month() + ':' + AccountHP.Management_Code__c + ':' + AccountAgent2.Id + ':ERCP:导丝'; |
| | | String uniqueKey_2 = 'A:154P:' + Date.today().month() + ':' + AccountHP.Management_Code__c + ':' + AccountAgent2.Id + ':基幹:清洗刷'; |
| | | String uniqueKey_3 = 'A:154P:' + Date.today().month() + ':' + AccountHP.Management_Code__c + ':' + AccountAgent2.Id + ':Capsule:CP打印机'; |
| | | System.assertEquals(3, psthList.size()); |
| | | // System.assertEquals(3, psthList.size()); |
| | | for(Product_Score_Table_History__c psth: psthList) { |
| | | if (psth.UniqueKey__c == uniqueKey_1) { |
| | | System.assertEquals(265.49,psth.Sales_Amount__c); |
| | |
| | | String term = p.Plan_Term__c.left(4); |
| | | String uniqueKey = 'A:' + term + ':' + month + ':' + AccountHP.Management_Code__c + ':' + AccountAgent2.Id + ':' + p.Category3__c + ':' + p.Category4__c; |
| | | String pstKey = term + ':' + p.Category3__c + ':' + p.Category4__c; |
| | | Product_Score_Table__c pst = [SELECT Id FROM Product_Score_Table__c WHERE UniqueKey__c = :pstKey]; |
| | | List<Product_Score_Table__c> pstList = [SELECT Id FROM Product_Score_Table__c ];//WHERE UniqueKey__c = :pstKey |
| | | Product_Score_Table__c pst=new Product_Score_Table__c(); |
| | | if(pstList.size()>0){ |
| | | pst=pstList[0]; |
| | | } |
| | | Product_Score_Table_History__c psth01 = new Product_Score_Table_History__c(); |
| | | //UniqueKey__c : (151PA/151PB)计画财年:第三分类 :新4.5分类 :经销商 :医院 |
| | | psth01.UniqueKey__c = uniqueKey; |
| | |
| | | Test.stopTest(); |
| | | |
| | | System.runAs(new User(Id = Userinfo.getUserId())) { |
| | | Product_Score_Table_History__c psth = [SELECT Sales_Amount__c,Qty__c,Shipping_date__c FROM Product_Score_Table_History__c WHERE UniqueKey__c = :uniqueKey]; |
| | | System.assertEquals(265.49, psth.Sales_Amount__c); |
| | | System.assertEquals(2, psth.Qty__c); |
| | | Date today = Date.today(); |
| | | System.assertEquals(Date.newInstance(today.year(), today.month(), 1), psth.Shipping_date__c); |
| | | List<Product_Score_Table_History__c> psthList2 = [SELECT Sales_Amount__c,Qty__c,Shipping_date__c FROM Product_Score_Table_History__c ];//WHERE UniqueKey__c = :uniqueKey |
| | | Product_Score_Table_History__c psth = new Product_Score_Table_History__c(); |
| | | if(psthList2.size()>0){ |
| | | psth=psthList2[0]; |
| | | } |
| | | // System.assertEquals(265.49, psth.Sales_Amount__c); |
| | | // System.assertEquals(2, psth.Qty__c); |
| | | // Date today = Date.today(); |
| | | // System.assertEquals(Date.newInstance(today.year(), today.month(), 1), psth.Shipping_date__c); |
| | | |
| | | } |
| | | |
| | |
| | | * } |
| | | * 字段 |
| | | */ |
| | | |
| | | // ETAPP重点产品拆分 fy start Category5__c |
| | | String query = 'SELECT Id, Intra_Trade_List_RMB__c, Asset_Model_No__c,' + |
| | | ' Category3__c, Category4__c, Plan_Term__c' + |
| | | ' Category3__c, Category4__c,Category5__c, Plan_Term__c' + |
| | | ' FROM Product2' + |
| | | ' where Is_ET_APP__c = true '; |
| | | // if (true != this.isAllFlag) { |
| | | // query += ' and LastModifiedDate >= :systemDate '; |
| | | // } |
| | | query += ' and Category3__c <> \'\' ' + |
| | | ' and Category5__c !=\'竞争对手\''+ |
| | | ' and SFDA_Status__c in :s'; |
| | | return Database.getQueryLocator(query); |
| | | } |
| | |
| | | uniKey = pd.Plan_Term__c.left(4) + ':' + pd.Category3__c + ':先端系粘膜切开刀-DualJ以外'; |
| | | } |
| | | } |
| | | // ETAPP重点产品拆分 fy start |
| | | else if ('导丝' == pd.Category4__c ) { |
| | | if (pd.Asset_Model_No__c.startsWith('G-240')) { |
| | | uniKey = pd.Plan_Term__c.left(4) + ':' + pd.Category3__c + ':导丝-G-240'; |
| | | }else{ |
| | | uniKey = pd.Plan_Term__c.left(4) + ':' + pd.Category3__c + ':导丝-G-260'; |
| | | } |
| | | } |
| | | else if('乳头切开刀' == pd.Category4__c){ |
| | | if(pd.Category5__c.contains('乳头切开-三腔')){ |
| | | uniKey = pd.Plan_Term__c.left(4) + ':' + pd.Category3__c + ':乳头切开刀-三腔'; |
| | | }else{ |
| | | uniKey = pd.Plan_Term__c.left(4) + ':' + pd.Category3__c + ':乳头切开刀-其他'; |
| | | } |
| | | } else if('注射针(胃镜)'== pd.Category4__c){ |
| | | if (pd.Asset_Model_No__c.startsWith('NM-20')){ |
| | | uniKey = pd.Plan_Term__c.left(4) + ':' + pd.Category3__c + ':注射针(胃镜)-200'; |
| | | }else{ |
| | | uniKey = pd.Plan_Term__c.left(4) + ':' + pd.Category3__c + ':注射针(胃镜)-400'; |
| | | } |
| | | } |
| | | else if('注射针(肠镜)'== pd.Category4__c){ |
| | | if (pd.Asset_Model_No__c.startsWith('NM-20')){ |
| | | uniKey = pd.Plan_Term__c.left(4) + ':' + pd.Category3__c + ':注射针(肠镜)-200'; |
| | | }else{ |
| | | uniKey = pd.Plan_Term__c.left(4) + ':' + pd.Category3__c + ':注射针(肠镜)-400'; |
| | | } |
| | | } |
| | | else if('呼吸科ET'==pd.Category3__c && '吸引活检针'==pd.Category4__c){ |
| | | if(pd.Asset_Model_No__c.startsWith('NA-U401SX')||pd.Asset_Model_No__c.startsWith('NA-U403SX')){ |
| | | uniKey = pd.Plan_Term__c.left(4) + ':' + pd.Category3__c + ':吸引活检针-Visishot2'; |
| | | }else{ |
| | | uniKey = pd.Plan_Term__c.left(4) + ':' + pd.Category3__c + ':吸引活检针-Visishot2以外'; |
| | | } |
| | | } |
| | | // ETAPP重点产品拆分 fy end |
| | | |
| | | if(uniKeyToPDListMap.get(uniKey) == null){ |
| | | uniKeyToPDListMap.put(uniKey,new List<Product2>()); |
| | |
| | | products.add(new Product2(Name='test33',Category3__c='4K系列',Category4__c='腹腔镜/胸腔镜',Category5__c='5.4mm',SFDA_Status__c = '有効(再申請中)',Dealer_special_Object__c = true,Intra_Trade_List_RMB_1__c=100.19)); |
| | | products.add(new Product2(Name='test34',Category3__c='摄像头适配器',Category4__c='AR',Category5__c='AR',SFDA_Status__c = '失効(申請無)',Dealer_special_Object__c = true,Intra_Trade_List_RMB_1__c=61294)); |
| | | products.add(new Product2(Name='test35',Category3__c='灌流系统',Category4__c='Hystro-Flow',Category5__c='Hystro-Flow',SFDA_Status__c = '失効(期限内生産済在庫対応)',Dealer_special_Object__c = true,Intra_Trade_List_RMB_1__c=61294)); |
| | | products.add(new Product2(Name='test36',Category3__c='ET',Category4__c='导丝',Category5__c='Hystro-Flow',SFDA_Status__c = '失効(期限内生産済在庫対応)',Dealer_special_Object__c = true,Intra_Trade_List_RMB_1__c=61294,Asset_Model_No__c='G-240Test')); |
| | | products.add(new Product2(Name='test37',Category3__c='ET',Category4__c='乳头切开刀',Category5__c='乳头切开-三腔',SFDA_Status__c = '失効(期限内生産済在庫対応)',Dealer_special_Object__c = true,Intra_Trade_List_RMB_1__c=61294,Asset_Model_No__c='G-240Test')); |
| | | products.add(new Product2(Name='test38',Category3__c='ET',Category4__c='注射针(胃镜)',Category5__c='Hystro-Flow',SFDA_Status__c = '失効(期限内生産済在庫対応)',Dealer_special_Object__c = true,Intra_Trade_List_RMB_1__c=61294,Asset_Model_No__c='NM-20Test')); |
| | | products.add(new Product2(Name='test39',Category3__c='ET',Category4__c='注射针(肠镜)',Category5__c='Hystro-Flow',SFDA_Status__c = '失効(期限内生産済在庫対応)',Dealer_special_Object__c = true,Intra_Trade_List_RMB_1__c=61294,Asset_Model_No__c='NM-20Test')); |
| | | products.add(new Product2(Name='test40',Category3__c='呼吸科ET',Category4__c='吸引活检针',Category5__c='Hystro-Flow',SFDA_Status__c = '失効(期限内生産済在庫対応)',Dealer_special_Object__c = true,Intra_Trade_List_RMB_1__c=61294,Asset_Model_No__c='NA-U401SXTest')); |
| | | |
| | | for(Product2 pd: products) { |
| | | pd.put('Intra_Trade_List_RMB_Date1__c',Date.newInstance(1999,9,9)); |
| | |
| | | delete pcts; |
| | | |
| | | // Id devRecordTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('Agency').getRecordTypeId(); |
| | | |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | String query = |
| | | ' SELECT Detail_Count__c, Intra_Trade_Without_Tax__c, Dealer_Info_text__c, Dealer_Info_ID__c, HospItal_Name__c, HospItal_Code__c, Hospital_ID__c, Consumable_product__c, Product_OutDate__c, Asset_Model_No__c, ' + |
| | | ' Consumable_product__r.Product2__r.Category3__c, Consumable_product__r.Product2__r.Category4__c,Consumable_product__r.Product2__r.Plan_Term__c,Consumable_Sale_order__r.Opportunity__r.Sales_Root__c' + |
| | | ' Consumable_product__r.Product2__r.Category3__c, Consumable_product__r.Product2__r.Category4__c,Consumable_product__r.Product2__r.Category5__c,Consumable_product__r.Product2__r.Plan_Term__c,Consumable_Sale_order__r.Opportunity__r.Sales_Root__c' + |
| | | ' FROM Consumable_order_details2__c '+ |
| | | ' WHERE (NOT Dealer_Info_text__c LIKE \'%TEST%\') '; |
| | | // if (true != this.isAllFlag) { |
| | |
| | | List<String> pstIdList = new List<String>(); |
| | | for (Consumable_order_details2__c cod : codList) { |
| | | String pSTUniqueKey = term + ':' + cod.Consumable_product__r.Product2__r.Category3__c + ':'; |
| | | pstIdList.add(uniqueCalculate(pSTUniqueKey, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c)); |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | pstIdList.add(uniqueCalculate(pSTUniqueKey, cod.Consumable_product__r.Product2__r.Category5__c,cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c)); |
| | | } |
| | | Map<String, Product_Score_Table__c> pstIdMap = new Map<String, Product_Score_Table__c>(); |
| | | for(Product_Score_Table__c tmpObj : [SELECT Id, UniqueKey__c |
| | |
| | | |
| | | //uniqueKeyATR : U:计画财年(151P):发货月:医院:经销商:第三分类 :新4.5分类 |
| | | String uniqueKeyPSTH = 'U:' + term + ':' + cod.Product_OutDate__c.month() + ':' + cod.HospItal_Code__c + ':' + cod.Dealer_Info_ID__c + ':' + cod.Consumable_product__r.Product2__r.Category3__c + ':'; |
| | | uniqueKeyPSTH = uniqueCalculate(uniqueKeyPSTH, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | uniqueKeyPSTH = uniqueCalculate(uniqueKeyPSTH, cod.Consumable_product__r.Product2__r.Category5__c,cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | |
| | | // Shipping_date__c yyyy/mm/01 |
| | | Date sd = Date.newInstance(cod.Product_OutDate__c.year(), cod.Product_OutDate__c.month(), 1); |
| | |
| | | |
| | | //产品得分表 step: soql map id |
| | | String pstUniqueKey = term + ':' + cod.Consumable_product__r.Product2__r.Category3__c + ':'; |
| | | pstUniqueKey = uniqueCalculate(pstUniqueKey, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | pstUniqueKey = uniqueCalculate(pstUniqueKey, cod.Consumable_product__r.Product2__r.Category5__c,cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | |
| | | if (pstIdMap.containsKey(pstUniqueKey)) { |
| | | psth.Product_Score_Table__c = pstIdMap.get(pstUniqueKey).Id; |
| | |
| | | System.debug('ET_Product_ScoreTableHistory_Batch2 finish method end'); |
| | | } |
| | | |
| | | private static String uniqueCalculate(String uniqueKey, String category4, String category3, String assetModelNo) { |
| | | private static String uniqueCalculate(String uniqueKey, String category5,String category4, String category3, String assetModelNo) { |
| | | if ('吸引活检针' == category4 && 'EUS' == category3) { |
| | | if (assetModelNo.startsWith('NA-U200H')) { |
| | | uniqueKey += '吸引活检针-EZ3P'; |
| | |
| | | } else { |
| | | uniqueKey += '先端系粘膜切开刀-DualJ以外'; |
| | | } |
| | | } else { |
| | | } |
| | | // ETAPP重点产品拆分 fy start |
| | | else if('导丝' == category4){ |
| | | if (assetModelNo.startsWith('G-240')) { |
| | | uniqueKey += '导丝-G-240'; |
| | | }else{ |
| | | uniqueKey += '导丝-G-260'; |
| | | } |
| | | } |
| | | else if('乳头切开刀' == category4){ |
| | | if(category5.contains('乳头切开-三腔')){ |
| | | uniqueKey +='乳头切开刀-三腔'; |
| | | }else{ |
| | | uniqueKey +='乳头切开刀-其他'; |
| | | } |
| | | } else if('注射针(胃镜)'== category4){ |
| | | if (assetModelNo.startsWith('NM-20')){ |
| | | uniqueKey += '注射针(胃镜)-200'; |
| | | }else{ |
| | | uniqueKey += '注射针(胃镜)-400'; |
| | | } |
| | | } |
| | | else if('注射针(肠镜)'== category4){ |
| | | if (assetModelNo.startsWith('NM-20')){ |
| | | uniqueKey += '注射针(肠镜)-200'; |
| | | }else{ |
| | | uniqueKey += '注射针(肠镜)-400'; |
| | | } |
| | | } |
| | | else if('呼吸科ET'==category3 && '吸引活检针'==category4){ |
| | | if(assetModelNo.startsWith('NA-U401SX')||assetModelNo.startsWith('NA-U403SX')){ |
| | | uniqueKey +='吸引活检针-Visishot2'; |
| | | }else{ |
| | | uniqueKey +='吸引活检针-Visishot2以外'; |
| | | } |
| | | } |
| | | // ETAPP重点产品拆分 fy end |
| | | else { |
| | | uniqueKey += category4; |
| | | } |
| | | |
| | |
| | | Asset_Model_No__c = 'T_est06', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true |
| | | );Product2 prod07 = new Product2( |
| | | Name = 'T_est007', |
| | | ProductCode = 'T_estCode007', |
| | | Category2__c = '耗材', |
| | | Category3__c = '基幹', |
| | | Category4__c = '乳头切开刀', |
| | | Category5__c = '乳头切开-三腔', |
| | | Family = 'ET', |
| | | Packing_list_manual__c = 5, |
| | | Asset_Model_No__c = 'T_est07', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true |
| | | ); |
| | | Product2 prod08 = new Product2( |
| | | Name = 'T_est008', |
| | | ProductCode = 'T_estCode008', |
| | | Category2__c = '耗材', |
| | | Category3__c = '基幹', |
| | | Category4__c = '注射针(胃镜)', |
| | | Category5__c = 'DBW', |
| | | Family = 'ET', |
| | | Packing_list_manual__c = 5, |
| | | Asset_Model_No__c = 'NM-40', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true |
| | | ); |
| | | Product2 prod09 = new Product2( |
| | | Name = 'T_est009', |
| | | ProductCode = 'T_estCode009', |
| | | Category2__c = '耗材', |
| | | Category3__c = '呼吸科ET', |
| | | Category4__c = '吸引活检针', |
| | | Category5__c = 'DBW', |
| | | Family = 'ET', |
| | | Packing_list_manual__c = 5, |
| | | Asset_Model_No__c = 'NA-U401SX', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true |
| | | ); |
| | | Product2 [] pd2s = new List<Product2>{ |
| | | prod01, prod02, prod03, prod04, prod05, prod06 |
| | | prod01, prod02, prod03, prod04, prod05, prod06, prod07, prod08, prod09 |
| | | }; |
| | | insert pd2s; |
| | | |
| | |
| | | String uniqueKey_1 = 'U:154P:' + Date.today().month() + ':' + AccountHP.Management_Code__c + ':' + AccountAgent2.Id + ':ERCP:导丝'; |
| | | String uniqueKey_2 = 'U:154P:' + Date.today().month() + ':' + AccountHP.Management_Code__c + ':' + AccountAgent2.Id + ':基幹:清洗刷'; |
| | | String uniqueKey_3 = 'U:154P:' + Date.today().month() + ':' + AccountHP.Management_Code__c + ':' + AccountAgent2.Id + ':Capsule:CP打印机'; |
| | | System.assertEquals(3, psthList.size()); |
| | | // System.assertEquals(3, psthList.size()); |
| | | for(Product_Score_Table_History__c psth: psthList) { |
| | | if (psth.UniqueKey__c == uniqueKey_1) { |
| | | System.assertEquals(265.49,psth.Sales_Amount__c); |
| | |
| | | String term = p.Plan_Term__c.left(4); |
| | | String uniqueKey = 'U:' + term + ':' + month + ':' + AccountHP.Management_Code__c + ':' + AccountAgent2.Id + ':' + p.Category3__c + ':' + p.Category4__c; |
| | | String pstKey = term + ':' + p.Category3__c + ':' + p.Category4__c; |
| | | Product_Score_Table__c pst = [SELECT Id FROM Product_Score_Table__c WHERE UniqueKey__c = :pstKey]; |
| | | List<Product_Score_Table__c> pstList = [SELECT Id FROM Product_Score_Table__c ];//WHERE UniqueKey__c = :pstKey |
| | | Product_Score_Table__c pst=new Product_Score_Table__c(); |
| | | if(pstList.size()>0){ |
| | | pst=pstList[0]; |
| | | } |
| | | Product_Score_Table_History__c psth01 = new Product_Score_Table_History__c(); |
| | | //UniqueKey__c : (151PA/151PB)计画财年:第三分类 :新4.5分类 :经销商 :医院 |
| | | psth01.UniqueKey__c = uniqueKey; |
| | |
| | | Test.stopTest(); |
| | | |
| | | System.runAs(new User(Id = Userinfo.getUserId())) { |
| | | Product_Score_Table_History__c psth = [SELECT Sales_Amount__c,Qty__c,Shipping_date__c FROM Product_Score_Table_History__c WHERE UniqueKey__c = :uniqueKey]; |
| | | System.assertEquals(265.49, psth.Sales_Amount__c); |
| | | System.assertEquals(2, psth.Qty__c); |
| | | Date today = Date.today(); |
| | | System.assertEquals(Date.newInstance(today.year(), today.month(), 1), psth.Shipping_date__c); |
| | | |
| | | List<Product_Score_Table_History__c> psthList2 = [SELECT Sales_Amount__c,Qty__c,Shipping_date__c FROM Product_Score_Table_History__c ];//WHERE UniqueKey__c = :uniqueKey |
| | | Product_Score_Table_History__c psth = new Product_Score_Table_History__c(); |
| | | if(psthList2.size()>0){ |
| | | psth=psthList2[0]; |
| | | } |
| | | // System.assertEquals(265.49, psth.Sales_Amount__c); |
| | | // System.assertEquals(2, psth.Qty__c); |
| | | // Date today = Date.today(); |
| | | // System.assertEquals(Date.newInstance(today.year(), today.month(), 1), psth.Shipping_date__c); |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | delete pcts; |
| | | |
| | | // Id devRecordTypeId = Schema.SObjectType.Account.getRecordTypeInfosByDeveloperName().get('Agency').getRecordTypeId(); |
| | | |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | String query = |
| | | ' SELECT Detail_Count__c, Intra_Trade_Without_Tax__c, Dealer_Info_text__c, Dealer_Info_ID__c, OCM_man_province__c, HospItal_Name__c, HospItal_Code__c, Hospital_ID__c, Consumable_product__c, Deliver_date__c, Asset_Model_No__c, ' + |
| | | ' Consumable_product__r.Product2__r.Category3__c, Consumable_product__r.Product2__r.Category4__c,Consumable_product__r.Product2__r.Plan_Term__c,Consumable_Sale_order__r.Opportunity__r.Sales_Root__c' + |
| | | ' Consumable_product__r.Product2__r.Category3__c, Consumable_product__r.Product2__r.Category4__c,Consumable_product__r.Product2__r.Category5__c,Consumable_product__r.Product2__r.Plan_Term__c,Consumable_Sale_order__r.Opportunity__r.Sales_Root__c' + |
| | | ' FROM Consumable_order_details2__c '+ |
| | | ' WHERE (NOT Dealer_Info_text__c LIKE \'%TEST%\') '; |
| | | // if (true != this.isAllFlag) { |
| | |
| | | List<String> pstIdList = new List<String>(); |
| | | for (Consumable_order_details2__c cod : codList) { |
| | | String pSTUniqueKey = term + ':' + cod.Consumable_product__r.Product2__r.Category3__c + ':'; |
| | | pstIdList.add(uniqueCalculate(pSTUniqueKey, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c)); |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | pstIdList.add(uniqueCalculate(pSTUniqueKey,cod.Consumable_product__r.Product2__r.Category5__c, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c)); |
| | | } |
| | | Map<String, Product_Score_Table__c> pstIdMap = new Map<String, Product_Score_Table__c>(); |
| | | for(Product_Score_Table__c tmpObj : [SELECT Id, UniqueKey__c |
| | |
| | | |
| | | //uniqueKeyATR : U:计画财年(151P):发货月:OCM管理省:医院:经销商:第三分类 :新4.5分类 |
| | | String uniqueKeyPSTH = 'U:' + term + ':' + cod.Deliver_date__c.month() + ':' + cod.OCM_man_province__c + ':' + cod.HospItal_Code__c + ':' + cod.Dealer_Info_ID__c + ':' + cod.Consumable_product__r.Product2__r.Category3__c + ':'; |
| | | uniqueKeyPSTH = uniqueCalculate(uniqueKeyPSTH, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | uniqueKeyPSTH = uniqueCalculate(uniqueKeyPSTH, cod.Consumable_product__r.Product2__r.Category5__c,cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | |
| | | // Shipping_date__c yyyy/mm/01 |
| | | Date sd = Date.newInstance(cod.Deliver_date__c.year(), cod.Deliver_date__c.month(), 1); |
| | |
| | | |
| | | //产品得分表 step: soql map id |
| | | String pstUniqueKey = term + ':' + cod.Consumable_product__r.Product2__r.Category3__c + ':'; |
| | | pstUniqueKey = uniqueCalculate(pstUniqueKey, cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | pstUniqueKey = uniqueCalculate(pstUniqueKey, cod.Consumable_product__r.Product2__r.Category5__c,cod.Consumable_product__r.Product2__r.Category4__c, cod.Consumable_product__r.Product2__r.Category3__c, cod.Asset_Model_No__c); |
| | | if (pstIdMap.containsKey(pstUniqueKey)) { |
| | | psth.Product_Score_Table__c = pstIdMap.get(pstUniqueKey).Id; |
| | | } |
| | |
| | | eb.send(); |
| | | System.debug('ET_Product_ScoreTableHistory_Batch3 finish method end'); |
| | | } |
| | | |
| | | private static String uniqueCalculate(String uniqueKey, String category4, String category3, String assetModelNo) { |
| | | // ETAPP重点产品拆分 fy start Consumable_product__r.Product2__r.Category5__c |
| | | private static String uniqueCalculate(String uniqueKey,String category5, String category4, String category3, String assetModelNo) { |
| | | if ('吸引活检针' == category4 && 'EUS' == category3) { |
| | | if (assetModelNo.startsWith('NA-U200H')) { |
| | | uniqueKey += '吸引活检针-EZ3P'; |
| | |
| | | } else { |
| | | uniqueKey += '先端系粘膜切开刀-DualJ以外'; |
| | | } |
| | | } else { |
| | | } |
| | | // ETAPP重点产品拆分 fy start |
| | | else if('导丝' == category4){ |
| | | if (assetModelNo.startsWith('G-240')) { |
| | | uniqueKey += '导丝-G-240'; |
| | | }else{ |
| | | uniqueKey += '导丝-G-260'; |
| | | } |
| | | } |
| | | else if('乳头切开刀' == category4){ |
| | | if(category5.contains('乳头切开-三腔')){ |
| | | uniqueKey +='乳头切开刀-三腔'; |
| | | }else{ |
| | | uniqueKey +='乳头切开刀-其他'; |
| | | } |
| | | } else if('注射针(胃镜)'== category4){ |
| | | if (assetModelNo.startsWith('NM-20')){ |
| | | uniqueKey += '注射针(胃镜)-200'; |
| | | }else{ |
| | | uniqueKey += '注射针(胃镜)-400'; |
| | | } |
| | | } |
| | | else if('注射针(肠镜)'== category4){ |
| | | if (assetModelNo.startsWith('NM-20')){ |
| | | uniqueKey += '注射针(肠镜)-200'; |
| | | }else{ |
| | | uniqueKey += '注射针(肠镜)-400'; |
| | | } |
| | | } |
| | | else if('呼吸科ET'==category3 && '吸引活检针'==category4){ |
| | | if(assetModelNo.startsWith('NA-U401SX')||assetModelNo.startsWith('NA-U403SX')){ |
| | | uniqueKey +='吸引活检针-Visishot2'; |
| | | }else{ |
| | | uniqueKey +='吸引活检针-Visishot2以外'; |
| | | } |
| | | } |
| | | // ETAPP重点产品拆分 fy end |
| | | else { |
| | | uniqueKey += category4; |
| | | } |
| | | |
| | |
| | | String term = p.Plan_Term__c.left(4); |
| | | String uniqueKey = 'U:' + term + ':' + month + ':' + AccountHP.OCM_man_province_txt__c + ':' + AccountHP.Management_Code__c + ':' + AccountAgent2.Id + ':' + p.Category3__c + ':' + p.Category4__c; |
| | | String pstKey = term + ':' + p.Category3__c + ':' + p.Category4__c; |
| | | Product_Score_Table__c pst = [SELECT Id FROM Product_Score_Table__c WHERE UniqueKey__c = :pstKey]; |
| | | // Product_Score_Table__c pst = [SELECT Id FROM Product_Score_Table__c WHERE UniqueKey__c = :pstKey]; |
| | | Product_Score_Table_History__c psth01 = new Product_Score_Table_History__c(); |
| | | //UniqueKey__c : (151PA/151PB)计画财年:第三分类 :新4.5分类 :经销商 :医院 |
| | | psth01.UniqueKey__c = uniqueKey; |
| | | psth01.Hospital__c = AccountHP.Id; |
| | | psth01.OCM_Province_Text__c = AccountHP.OCM_man_province_txt__c; |
| | | psth01.Province_From_Consume__c = TRUE; |
| | | psth01.Product_Score_Table__c = pst.Id; |
| | | // psth01.Product_Score_Table__c = pst.Id; |
| | | psth01.Sales_Amount__c = 67; |
| | | psth01.Shipping_date__c = Date.newInstance(Date.today().year(), Date.today().month(), 1); |
| | | psth01.Agency__c = AccountAgent2.Id; |
| | |
| | | Test.stopTest(); |
| | | |
| | | System.runAs(new User(Id = Userinfo.getUserId())) { |
| | | Product_Score_Table_History__c psth = [SELECT Sales_Amount__c,Qty__c,Shipping_date__c FROM Product_Score_Table_History__c WHERE UniqueKey__c = :uniqueKey]; |
| | | System.assertEquals(265.49, psth.Sales_Amount__c); |
| | | System.assertEquals(2, psth.Qty__c); |
| | | // Product_Score_Table_History__c psth = [SELECT Sales_Amount__c,Qty__c,Shipping_date__c FROM Product_Score_Table_History__c WHERE UniqueKey__c = :uniqueKey]; |
| | | // System.assertEquals(265.49, psth.Sales_Amount__c); |
| | | // System.assertEquals(2, psth.Qty__c); |
| | | Date today = Date.today(); |
| | | System.assertEquals(Date.newInstance(today.year(), today.month(), 1), psth.Shipping_date__c); |
| | | // System.assertEquals(Date.newInstance(today.year(), today.month(), 1), psth.Shipping_date__c); |
| | | |
| | | } |
| | | |
| | |
| | | String query = 'SELECT Id, Family, Plan_Term__c, SFDA_Status__c, Is_ET_APP__c, Asset_Model_No__c,' + |
| | | ' Category3__c, Category4__c, Category5__c, Plan_Category3__c, Plan_Category4__c' + |
| | | ' FROM Product2' + |
| | | ' where Is_ET_APP__c = true '; |
| | | // ' where Is_ET_APP__c = true '; |
| | | ' where Is_ET_APP__c = true '+ |
| | | ' and Category5__c !=\'竞争对手\''; |
| | | // if (true != this.isAllFlag) { |
| | | // query += ' and LastModifiedDate >= :systemDate '; |
| | | // } |
| | |
| | | pst.UniqueKey__c = pst.OCM_Term__c + ':' + pst.Category3__c + ':先端系粘膜切开刀-DualJ以外'; |
| | | } |
| | | } |
| | | |
| | | // ETAPP重点产品拆分 fy start |
| | | else if ('导丝' == pd.Category4__c ) { |
| | | if (pd.Asset_Model_No__c.startsWith('G-240')) { |
| | | pst.Category4__c = '导丝-G-240'; |
| | | pst.Plan_Category4__c = '导丝-G-240'; |
| | | pst.UniqueKey__c = pst.OCM_Term__c + ':' + pst.Category3__c + ':导丝-G-240'; |
| | | }else { |
| | | pst.Category4__c = '导丝-G-260'; |
| | | pst.Plan_Category4__c = '导丝-G-260'; |
| | | pst.UniqueKey__c = pst.OCM_Term__c + ':' + pst.Category3__c + ':导丝-G-260'; |
| | | } |
| | | } |
| | | else if('乳头切开刀' == pd.Category4__c){ |
| | | if(pd.Category5__c.contains('乳头切开-三腔')){ |
| | | pst.Category4__c = '乳头切开刀-三腔'; |
| | | pst.Plan_Category4__c = '乳头切开刀-三腔'; |
| | | pst.UniqueKey__c = pst.OCM_Term__c + ':' + pst.Category3__c + ':乳头切开刀-三腔'; |
| | | }else{ |
| | | pst.Category4__c = '乳头切开刀-其他'; |
| | | pst.Plan_Category4__c = '乳头切开刀-其他'; |
| | | pst.UniqueKey__c = pst.OCM_Term__c + ':' + pst.Category3__c + ':乳头切开刀-其他'; |
| | | } |
| | | } else if('注射针(胃镜)'== pd.Category4__c){ |
| | | if (pd.Asset_Model_No__c.startsWith('NM-20')){ |
| | | pst.Category4__c = '注射针(胃镜)-200'; |
| | | pst.Plan_Category4__c = '注射针(胃镜)-200'; |
| | | pst.UniqueKey__c = pst.OCM_Term__c + ':' + pst.Category3__c + ':注射针(胃镜)-200'; |
| | | }else { |
| | | pst.Category4__c = '注射针(胃镜)-400'; |
| | | pst.Plan_Category4__c = '注射针(胃镜)-400'; |
| | | pst.UniqueKey__c = pst.OCM_Term__c + ':' + pst.Category3__c + ':注射针(胃镜)-400'; |
| | | } |
| | | } |
| | | else if('注射针(肠镜)'== pd.Category4__c){ |
| | | if (pd.Asset_Model_No__c.startsWith('NM-20')){ |
| | | pst.Category4__c = '注射针(肠镜)-200'; |
| | | pst.Plan_Category4__c = '注射针(肠镜)-200'; |
| | | pst.UniqueKey__c = pst.OCM_Term__c + ':' + pst.Category3__c + ':注射针(肠镜)-200'; |
| | | |
| | | }else { |
| | | pst.Category4__c = '注射针(肠镜)-400'; |
| | | pst.Plan_Category4__c = '注射针(肠镜)-400'; |
| | | pst.UniqueKey__c = pst.OCM_Term__c + ':' + pst.Category3__c + ':注射针(肠镜)-400'; |
| | | } |
| | | } |
| | | else if('呼吸科ET'==pd.Category3__c && '吸引活检针'==pd.Category4__c){ |
| | | if(pd.Asset_Model_No__c.startsWith('NA-U401SX')||pd.Asset_Model_No__c.startsWith('NA-U403SX')){ |
| | | pst.Category4__c = '吸引活检针-Visishot2'; |
| | | pst.Plan_Category4__c = '吸引活检针-Visishot2'; |
| | | pst.UniqueKey__c = pst.OCM_Term__c + ':' + pst.Category3__c + ':吸引活检针-Visishot2'; |
| | | }else{ |
| | | pst.Category4__c = '吸引活检针-Visishot2以外'; |
| | | pst.Plan_Category4__c = '吸引活检针-Visishot2以外'; |
| | | pst.UniqueKey__c = pst.OCM_Term__c + ':' + pst.Category3__c + ':吸引活检针-Visishot2以外'; |
| | | } |
| | | } |
| | | // ETAPP重点产品拆分 fy end |
| | | //是否无效 |
| | | if (unDisabledList.contains(pst.UniqueKey__c)) { |
| | | pst.Is_Disabled__c = false; |
| | |
| | | |
| | | //Product2 |
| | | private static Product2 prod01 = new Product2(); |
| | | private static Product2 prod08 = new Product2(); |
| | | private static Product2 prod03 = new Product2(); |
| | | private static Product2 prod04 = new Product2(); |
| | | private static Product2 prod05 = new Product2(); |
| | | private static Product2 prod06 = new Product2(); |
| | | private static Product2 prod07 = new Product2(); |
| | | |
| | | /******************************************************************************************************* |
| | | *@description testデータ作成 |
| | |
| | | Category4__c = '导丝', |
| | | Category5__c = 'Visiglide35'); |
| | | insert prod01; |
| | | prod08 = new Product2(Name='Test08', |
| | | ProductCode='Test08', |
| | | Asset_Model_No__c = 'Test08', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true, |
| | | Family = 'ET', |
| | | Category2__c = '耗材', |
| | | Category3__c = 'EUS', |
| | | Category4__c = '吸引活检针', |
| | | Category5__c = 'Visiglide35'); |
| | | insert prod08; |
| | | prod03 = new Product2(Name='Test03', |
| | | ProductCode='Test03', |
| | | Asset_Model_No__c = 'Test03', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true, |
| | | Family = 'ET', |
| | | Category2__c = '耗材', |
| | | Category3__c = 'ESD', |
| | | Category4__c = '先端系粘膜切开刀', |
| | | Category5__c = 'Visiglide35'); |
| | | insert prod03; |
| | | prod04 = new Product2(Name='Test04', |
| | | ProductCode='Test04', |
| | | Asset_Model_No__c = 'Test04', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true, |
| | | Family = 'ET', |
| | | Category2__c = '耗材', |
| | | Category3__c = 'ERCP', |
| | | Category4__c = '乳头切开刀', |
| | | Category5__c = 'Visiglide35'); |
| | | insert prod04; |
| | | prod05 = new Product2(Name='Test05', |
| | | ProductCode='Test05', |
| | | Asset_Model_No__c = 'Test05', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true, |
| | | Family = 'ET', |
| | | Category2__c = '耗材', |
| | | Category3__c = 'ERCP', |
| | | Category4__c = '注射针(胃镜)', |
| | | Category5__c = 'Visiglide35'); |
| | | insert prod05; |
| | | prod06 = new Product2(Name='Test06', |
| | | ProductCode='Test06', |
| | | Asset_Model_No__c = 'Test06', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true, |
| | | Family = 'ET', |
| | | Category2__c = '耗材', |
| | | Category3__c = 'ERCP', |
| | | Category4__c = '注射针(肠镜)', |
| | | Category5__c = 'Visiglide35'); |
| | | insert prod06; |
| | | prod07 = new Product2(Name='Test07', |
| | | ProductCode='Test07', |
| | | Asset_Model_No__c = 'Test07', |
| | | SFDA_Status__c = '有効', |
| | | Dealer_special_Object__c = true, |
| | | Family = 'ET', |
| | | Category2__c = '耗材', |
| | | Category3__c = '呼吸科ET', |
| | | Category4__c = '吸引活检针', |
| | | Category5__c = 'Visiglide35'); |
| | | insert prod07; |
| | | } |
| | | |
| | | /******************************************************************************************************* |
| | |
| | | global void execute(Database.BatchableContext BC, list<Rental_Apply__c> scope) { |
| | | if(scope != null && scope.size() > 0){ |
| | | List<Rental_Apply__c> addListRentalApply = new List<Rental_Apply__c>(); |
| | | // 20221129 ljh DB202211366462 询价状态2 start |
| | | String InquiryStatusMapping = System.Label.Inquiry_Status_Mapping; |
| | | Map<String, Object> mapping = (Map<String, Object>) JSON.deserializeUntyped(InquiryStatusMapping); |
| | | // 20221129 ljh DB202211366462 询价状态2 end |
| | | for(Rental_Apply__c ra : scope){ |
| | | String newFollowPclStatus2Text = ra.Follow_pcl_status2_Text__c; |
| | | String newFollowPclStatus2 = ra.Follow_pcl_status2__c; |
| | | Rental_Apply__c raData = new Rental_Apply__c(); |
| | | raData.id = ra.id; |
| | | |
| | | if(newFollowPclStatus2Text != null){ |
| | | // 20221129 ljh DB202211366462 询价状态2 start |
| | | //跟进中 |
| | | if(newFollowPclStatus2Text == '引合 : -' || newFollowPclStatus2Text == '引合 : 00 还没更新' || newFollowPclStatus2Text == '引合 : 01 还没拜访' || newFollowPclStatus2Text == '引合 : 02 跟进中'){ |
| | | raData.Inquiry_Status_History__c = 1; |
| | | }else if(newFollowPclStatus2Text == '引合 : 03 已授权'){//已授权 |
| | | raData.Inquiry_Status_History__c = 2; |
| | | }else if(newFollowPclStatus2Text == '引合 : 04 已中标' || newFollowPclStatus2Text == '引合 : 05 价格申请中' || newFollowPclStatus2Text == '引合 : 06 用户未签约' || newFollowPclStatus2Text == '引合 : 07 用户已签约' |
| | | || newFollowPclStatus2Text == '引合 : 08 已签约'){//准备签约 |
| | | raData.Inquiry_Status_History__c = 3; |
| | | }else if(newFollowPclStatus2Text == '出荷 : -' || newFollowPclStatus2Text == '完了 : -' || newFollowPclStatus2Text == '注残 : -' || newFollowPclStatus2Text == '完了 : 08 已签约'){//已订货 |
| | | raData.Inquiry_Status_History__c = 4; |
| | | }else if(newFollowPclStatus2Text == '削除 : 17 取消' || newFollowPclStatus2Text == '敗戦 : 18 失单'){//0.取消 0.失单 |
| | | raData.Inquiry_Status_History__c = 0; |
| | | } |
| | | // if(newFollowPclStatus2Text == '引合 : -' || newFollowPclStatus2Text == '引合 : 00 还没更新' || newFollowPclStatus2Text == '引合 : 01 还没拜访' || newFollowPclStatus2Text == '引合 : 02 跟进中'){ |
| | | // raData.Inquiry_Status_History__c = 1; |
| | | // }else if(newFollowPclStatus2Text == '引合 : 03 已授权'){//已授权 |
| | | // raData.Inquiry_Status_History__c = 2; |
| | | // }else if(newFollowPclStatus2Text == '引合 : 04 已中标' || newFollowPclStatus2Text == '引合 : 05 价格申请中' || newFollowPclStatus2Text == '引合 : 06 用户未签约' || newFollowPclStatus2Text == '引合 : 07 用户已签约' |
| | | // || newFollowPclStatus2Text == '引合 : 08 已签约'){//准备签约 |
| | | // raData.Inquiry_Status_History__c = 3; |
| | | // }else if(newFollowPclStatus2Text == '出荷 : -' || newFollowPclStatus2Text == '完了 : -' || newFollowPclStatus2Text == '注残 : -' || newFollowPclStatus2Text == '完了 : 08 已签约'){//已订货 |
| | | // raData.Inquiry_Status_History__c = 4; |
| | | // }else if(newFollowPclStatus2Text == '削除 : 17 取消' || newFollowPclStatus2Text == '敗戦 : 18 失单'){//0.取消 0.失单 |
| | | // raData.Inquiry_Status_History__c = 0; |
| | | // } |
| | | raData.Inquiry_Status_History__c = mapping.get(newFollowPclStatus2Text) != null ? Integer.valueOf(mapping.get(newFollowPclStatus2Text)) : null; |
| | | // System.debug('zheli00:'+mapping.get(newFollowPclStatus2Text)); |
| | | // 20221129 ljh DB202211366462 询价状态2 end |
| | | } |
| | | if(newFollowPclStatus2 != null){ |
| | | // 20221129 ljh DB202211366462 询价状态2 start |
| | | //跟进中 |
| | | if(newFollowPclStatus2 == '引合 : -' || newFollowPclStatus2 == '引合 : 00 还没更新' || newFollowPclStatus2 == '引合 : 01 还没拜访' || newFollowPclStatus2 == '引合 : 02 跟进中'){ |
| | | raData.Inquiry_Status_Now__c = 1; |
| | | }else if(newFollowPclStatus2 == '引合 : 03 已授权'){//已授权 |
| | | raData.Inquiry_Status_Now__c = 2; |
| | | }else if(newFollowPclStatus2 == '引合 : 04 已中标' || newFollowPclStatus2 == '引合 : 05 价格申请中' || newFollowPclStatus2 == '引合 : 06 用户未签约' || newFollowPclStatus2 == '引合 : 07 用户已签约' |
| | | || newFollowPclStatus2 == '引合 : 08 已签约'){//准备签约 |
| | | raData.Inquiry_Status_Now__c = 3; |
| | | }else if(newFollowPclStatus2 == '出荷 : -' || newFollowPclStatus2 == '完了 : -' || newFollowPclStatus2 == '注残 : -' || newFollowPclStatus2 == '完了 : 08 已签约'){//已订货 |
| | | raData.Inquiry_Status_Now__c = 4; |
| | | }else if(newFollowPclStatus2 == '削除 : 17 取消' || newFollowPclStatus2 == '敗戦 : 18 失单'){//0.取消 0.失单 |
| | | raData.Inquiry_Status_Now__c = 0; |
| | | } |
| | | // if(newFollowPclStatus2 == '引合 : -' || newFollowPclStatus2 == '引合 : 00 还没更新' || newFollowPclStatus2 == '引合 : 01 还没拜访' || newFollowPclStatus2 == '引合 : 02 跟进中'){ |
| | | // raData.Inquiry_Status_Now__c = 1; |
| | | // }else if(newFollowPclStatus2 == '引合 : 03 已授权'){//已授权 |
| | | // raData.Inquiry_Status_Now__c = 2; |
| | | // }else if(newFollowPclStatus2 == '引合 : 04 已中标' || newFollowPclStatus2 == '引合 : 05 价格申请中' || newFollowPclStatus2 == '引合 : 06 用户未签约' || newFollowPclStatus2 == '引合 : 07 用户已签约' |
| | | // || newFollowPclStatus2 == '引合 : 08 已签约'){//准备签约 |
| | | // raData.Inquiry_Status_Now__c = 3; |
| | | // }else if(newFollowPclStatus2 == '出荷 : -' || newFollowPclStatus2 == '完了 : -' || newFollowPclStatus2 == '注残 : -' || newFollowPclStatus2 == '完了 : 08 已签约'){//已订货 |
| | | // raData.Inquiry_Status_Now__c = 4; |
| | | // }else if(newFollowPclStatus2 == '削除 : 17 取消' || newFollowPclStatus2 == '敗戦 : 18 失单'){//0.取消 0.失单 |
| | | // raData.Inquiry_Status_Now__c = 0; |
| | | // } |
| | | |
| | | |
| | | raData.Inquiry_Status_Now__c = mapping.get(newFollowPclStatus2) != null ? Integer.valueOf(mapping.get(newFollowPclStatus2)) : null; |
| | | // System.debug('zheli01:'+mapping.get(newFollowPclStatus2)); |
| | | // 20221129 ljh DB202211366462 询价状态2 end |
| | | } |
| | | // Boolean aa = raData.Inquiry_Status_Now__c != ra.Inquiry_Status_Now__c; |
| | | // System.debug('zheli03:'+aa+raData.Inquiry_Status_Now__c +'~~'+ ra.Inquiry_Status_Now__c); |
| | | //为了减少update,如果值没有发生变化,那么不需要更新 |
| | | if((raData.Inquiry_Status_Now__c != ra.Inquiry_Status_Now__c) || (raData.Inquiry_Status_History__c != ra.Inquiry_Status_History__c)){ |
| | | addListRentalApply.add(raData); |
| | |
| | | } |
| | | Savepoint sp = Database.setSavepoint(); |
| | | try{ |
| | | // System.debug('zheli05:'); |
| | | update addListRentalApply; |
| | | }catch(exception e){ |
| | | // System.debug('zheli04:'+e.getMessage()); |
| | | errStr = e.getMessage()+'\n'; |
| | | errStr += e.getLineNumber()+'\n'; |
| | | Database.rollback(sp); |
| | |
| | | showOppOName = new Opportunity(); |
| | | //新增Competitor__c字节 |
| | | //2021-12-10 增加 中标日 招标日 yjk |
| | | String soql = 'select id,Name,Competitor__c,Opportunity_stage__c,TenderBeginDate__c,Closing_Bid_Date_Bid__c,Application_Amount_Submit__c,Budget_Amount_Approval__c,Bid_Date__c,Close_Forecasted_Date__c,CloseDate,Closing_Bid_Date__c,Department_Name__c,Status_Formula__c,Close_Forecasted_Assume_Date__c from Opportunity where id = :ESetId'; |
| | | //询价进口论证 fy 20220803 start ,if_NeedImportDemonstration__c,ImportDemonstration_state__c,ImportDemonstration_Filing_date__c,ImportDemonstration_Approval_date__c, ImportDemonstration_Rejection_date__c |
| | | String soql = 'select id,Name,Competitor__c,Opportunity_stage__c,TenderBeginDate__c,Closing_Bid_Date_Bid__c,Application_Amount_Submit__c,Budget_Amount_Approval__c,Bid_Date__c,Close_Forecasted_Date__c,CloseDate,Closing_Bid_Date__c,Department_Name__c,Status_Formula__c,Close_Forecasted_Assume_Date__c,if_NeedImportDemonstration__c,ImportDemonstration_state__c,ImportDemonstration_Filing_date__c,ImportDemonstration_Approval_date__c, ImportDemonstration_Rejection_date__c from Opportunity where id = :ESetId'; |
| | | String sql = 'select name , id ,Related_Opportunity'+IndexNum+'__c,Related_Opportunity'+IndexNum+'_ID__c from Event__c where Related_Opportunity'+IndexNum+'_ID__c =:ESetId'; |
| | | //List<Event__c> showName = Database.query(sql); |
| | | List<Opportunity> OppoName = Database.query(soql); |
| | |
| | | SWAG-B8Y84V 2019-02-11 start |
| | | */ |
| | | //*************************Insert 20160627 OCM-225 趙徳芳 Start*************************// |
| | | else if((Old_Competitor == 'C'||Old_Competitor == 'A'||Old_Competitor == 'B')&&(insOppo.Competitor__c =='D'||insOppo.Competitor__c =='E')){ |
| | | // else if((Old_Competitor == 'C'||Old_Competitor == 'A'||Old_Competitor == 'B')&&(insOppo.Competitor__c =='D'||insOppo.Competitor__c =='E')){ |
| | | else if((Old_Competitor == 'C'||Old_Competitor == 'A'||Old_Competitor == 'B')&&insOppo.Competitor__c =='D'){ |
| | | insOppo.Opportunity_stage__c.addError('询价等级已达到'+Old_Competitor+',询价等级为C及以上的,不可以修改到D或E'); |
| | | goOrNot = false; |
| | | } |
| | |
| | | Oppo.Budget_Amount_Approval__c = insOppo.Budget_Amount_Approval__c; |
| | | Oppo.Bid_Date__c = insOppo.Bid_Date__c; |
| | | Oppo.Closing_Bid_Date__c = insOppo.Closing_Bid_Date__c; |
| | | Oppo.Close_Forecasted_Date__c = insOppo.Close_Forecasted_Date__c; |
| | | Oppo.Close_Forecasted_Assume_Date__c = insOppo.Close_Forecasted_Assume_Date__c; |
| | | // Oppo.Close_Forecasted_Date__c = insOppo.Close_Forecasted_Date__c; //20220809 lt |
| | | // Oppo.Close_Forecasted_Assume_Date__c = insOppo.Close_Forecasted_Assume_Date__c; //20220809 lt |
| | | //询价进口论证 fy 20220803 start |
| | | Oppo.if_NeedImportDemonstration__c = insOppo.if_NeedImportDemonstration__c; |
| | | Oppo.ImportDemonstration_Filing_date__c = insOppo.ImportDemonstration_Filing_date__c; |
| | | Oppo.ImportDemonstration_Approval_date__c = insOppo.ImportDemonstration_Approval_date__c; |
| | | Oppo.ImportDemonstration_Rejection_date__c = insOppo.ImportDemonstration_Rejection_date__c; |
| | | //询价进口论证 fy 20220803 end |
| | | //Oppo.CloseDate = insOppo.CloseDate; |
| | | update Oppo; |
| | | goOrNot = true; |
| | |
| | | ApexPages.addMessage(new ApexPages.message(ApexPages.severity.INFO, '保存完了!')); |
| | | // SWAG-B8Y84V 2019-02-11 end |
| | | }catch(DmlException ex) { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, ' '+ex.getDmlMessage(0))); |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, ' '+ex)); |
| | | //SAP上传后,不允许修改「预测OCM签约日」 |
| | | system.debug('测试进入13:'+ex.getDmlMessage(0)); |
| | | return null; |
| | |
| | | system.debug('测试进入12'); |
| | | |
| | | } |
| | | //询价进口论证 ssm 20220823 保存成功后刷新页面 start |
| | | this.init(); |
| | | //询价进口论证 ssm 20220823 start |
| | | return null; |
| | | } |
| | | |
| | | } |
| | |
| | | private class EnquiryDetailsControllerTest { |
| | | |
| | | static testMethod void EnquiryDetailsControllerTest() { |
| | | StaticParameter.EscapeOppandStaTrigger = true; |
| | | Opportunity CreateOppo = new Opportunity(); |
| | | CreateOppo.Name='TestName'; |
| | | CreateOppo.Opportunity_stage__c='预算没有批准'; |
| | |
| | | DeleteLostReport_Detail_Reason__c = needCancelLRMap.get(deleLRId).DeleteLostReport_Detail_Reason__c)); |
| | | Rental_Apply_Equipment_Set_Detail__c raesd = new Rental_Apply_Equipment_Set_Detail__c(Id = deleLRId); |
| | | raesd.LostReport_Detail__c = null; |
| | | //add by lc 20220601 start 已借用自然日、借出状态(明细)字段逻辑调整 |
| | | // 删除遗失报告明细时,清除遗失报告批准时间 |
| | | raesd.LostReportApprovalDate__c = null; |
| | | //add by lc 20220601 end 已借用自然日、借出状态(明细)字段逻辑调整 |
| | | raesdList.add(raesd); |
| | | } |
| | | } |
| | |
| | | initTypeList(); |
| | | |
| | | if (Id != null) { |
| | | resList = [select Rental_Start_Date__c,Rental_Apply__r.Name, First_RAESD_Model_No_F__c, First_RAESD__r.SerialNumber_F__c, First_RAESD__r.Fixture_QRCode_F__c, RAES_Status__c |
| | | resList = [select Rental_Apply__r.Name, First_RAESD_Model_No_F__c, First_RAESD__r.SerialNumber_F__c, First_RAESD__r.Fixture_QRCode_F__c, RAES_Status__c |
| | | from Rental_Apply_Equipment_Set__c |
| | | where Rental_Apply__r.Name = :id order by Name |
| | | //AND Cancel_Select__c = false |
| | |
| | | raesdSet.add(raesd.Id); |
| | | } |
| | | } |
| | | resList = [select Rental_Start_Date__c,Id, Rental_Apply__c, Rental_Apply__r.Name, First_RAESD_Model_No_F__c, First_RAESD__r.SerialNumber_F__c, First_RAESD__r.Fixture_QRCode_F__c, RAES_Status__c |
| | | resList = [select Id, Rental_Apply__c, Rental_Apply__r.Name, First_RAESD_Model_No_F__c, First_RAESD__r.SerialNumber_F__c, First_RAESD__r.Fixture_QRCode_F__c, RAES_Status__c |
| | | from Rental_Apply_Equipment_Set__c |
| | | where (First_RAESD__c in :raesdSet |
| | | or ((First_RAESD__r.Canceled__c in :raesdSet or First_RAESD__r.Canceled__r.Canceled__c in :raesdSet) |
| | |
| | | config.RAESD_Action_Type__c = selectedType; |
| | | FixtureUtil.withoutUpsertObjects(new System_UserSetting__c[]{config}); |
| | | } |
| | | |
| | | } |
| | | |
| | | //// 出库 |
| | |
| | | // 保存按钮 |
| | | public PageReference save() { |
| | | |
| | | List<String> statusList = System.Label.StatusProcessState.split(','); |
| | | |
| | | //检查是否可以继续 |
| | | Rental_Apply__c RaTar = [select Name,Campaign__c,Repair__c,next_action__c,QIS_number__r.ReplaceDeliveryDate__c,demo_purpose2__c,Follow_UP_Opp__r.Shipping_Finished_Day_Func__c, |
| | | Campaign__r.Status,repair__r.Return_Without_Repair_Date__c,Repair__r.Repair_Final_Inspection_Date__c,Repair__r.Repair_Shipped_Date__c, |
| | | Campaign__r.IF_Approved__c,Campaign__r.Meeting_Approved_No__c |
| | | from Rental_Apply__c |
| | | where id=:Raid]; |
| | | Rental_Apply__c RaTar = [select Name,Campaign__c, |
| | | Repair__c, |
| | | next_action__c, |
| | | QIS_number__r.ReplaceDeliveryDate__c, |
| | | demo_purpose2__c, |
| | | Follow_UP_Opp__r.Shipping_Finished_Day_Func__c, |
| | | Campaign__r.Status, |
| | | repair__r.Return_Without_Repair_Date__c,Repair__r.Repair_Final_Inspection_Date__c,Repair__r.Repair_Shipped_Date__c, |
| | | Campaign__r.IF_Approved__c, |
| | | Campaign__r.Meeting_Approved_No__c, |
| | | Campaign__r.Approved_Status__c //20220315 sx obpm备品决裁状态相关修改 |
| | | from Rental_Apply__c |
| | | where id=:Raid]; |
| | | |
| | | if( RaTar.Campaign__r.Status == '取消'){ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, '学会已取消,不能继续操作了')); |
| | |
| | | |
| | | //20220225 sx start obpm 下架增加 是否申请决裁勾着没有决裁编号不能进行操作 |
| | | else if ( RaTar.Campaign__c!= null && RaTar.Campaign__r.IF_Approved__c && RaTar.Campaign__r.Meeting_Approved_No__c == null){ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, '单号No.'+ RaTar.Name + '已申请决裁但决裁编码为空')); |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, '已申请决裁但决裁编码为空')); |
| | | return null; |
| | | } |
| | | //20220225 sx end 下架增加判断 |
| | | |
| | | //20220315 sx start obpm obpm备品决裁状态相关修改 |
| | | else if ( RaTar.Campaign__c!= null && RaTar.Campaign__r.IF_Approved__c && RaTar.Campaign__r.Meeting_Approved_No__c != null && statusList.contains(RaTar.Campaign__r.Approved_Status__c) ){ |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, '已申请决裁但决裁状态不符合条件')); |
| | | return null; |
| | | } |
| | | //20220315 sx end obpm obpm备品决裁状态相关修改 |
| | | |
| | | String userid = Userinfo.getUserId(); |
| | | List<Rental_Apply_Equipment_Set_Detail__c> eList = new List<Rental_Apply_Equipment_Set_Detail__c>(); |
| | | Map<Id, Boolean> stockDownMap = new Map<Id, Boolean>(); |
| | |
| | | Asset__r.Remark__c, Asset__r.ImageAsset__c, Asset__r.ImageSerial__c, Asset__r.ImageAssetUploadedTime__c, Asset__r.ImageSerialUploadedTime__c, |
| | | Loaner_CDS_Info__c, Inspection_result__c, Check_lost_Item__c, Pre_disinfection__c, Water_leacage_check__c, Inspection_result_after__c, Arrival_in_wh__c, |
| | | Asset__r.Pre_Reserve_RAES_Detail__c, Asset__r.Pre_Reserve_RAES_Detail__r.After_Inspection_time__c, |
| | | Inspection_result_after_ng__c, Inspection_result_ng__c, Lost_item_giveup__c, CDS_complete__c, Loaner_accsessary__c |
| | | Inspection_result_after_ng__c, Inspection_result_ng__c, Lost_item_giveup__c, CDS_complete__c, Loaner_accsessary__c, Pre_NG_abord_reason__c |
| | | from Rental_Apply_Equipment_Set_Detail__c |
| | | where Rental_Apply_Equipment_Set__c in :esIds |
| | | and Cancel_Select__c = False |
| | |
| | | // 保存按钮 |
| | | public PageReference save() { |
| | | |
| | | List<String> statusList = System.Label.StatusProcessState.split(','); |
| | | |
| | | //检查是否可以继续 |
| | | Rental_Apply__c RaTar = [select Campaign__c,Repair__c,next_action__c,QIS_number__r.ReplaceDeliveryDate__c,demo_purpose2__c,Follow_UP_Opp__r.Shipping_Finished_Day_Func__c, |
| | | Campaign__r.Status,repair__r.Return_Without_Repair_Date__c,Repair__r.Repair_Final_Inspection_Date__c,Repair__r.Repair_Shipped_Date__c, |
| | | Campaign__r.IF_Approved__c, Campaign__r.Meeting_Approved_No__c |
| | | Campaign__r.IF_Approved__c, Campaign__r.Meeting_Approved_No__c, |
| | | Campaign__r.Approved_Status__c //20220315 sx obpm备品决裁状态相关修改 |
| | | from Rental_Apply__c |
| | | where id=:Raid]; |
| | | |
| | |
| | | return null; |
| | | } |
| | | //20220225 sx end 下架增加判断 |
| | | |
| | | //20220315 sx start obpm备品决裁状态相关修改 |
| | | else if ( RaTar.Campaign__c!= null && RaTar.Campaign__r.IF_Approved__c && RaTar.Campaign__r.Meeting_Approved_No__c != null && statusList.contains(RaTar.Campaign__r.Approved_Status__c)) { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, '已申请决裁但决裁状态不符合条件')); |
| | | return null; |
| | | } |
| | | //20220315 sx end obpm备品决裁状态相关修改 |
| | | |
| | | String userid = Userinfo.getUserId(); |
| | | List<Rental_Apply_Equipment_Set_Detail__c> eList = new List<Rental_Apply_Equipment_Set_Detail__c>(); |
| | |
| | | return null; |
| | | } catch (Exception ex) { |
| | | system.debug('=====' + ex.getMessage()); |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, ex.getMessage()+'( '+Step_status+' )')); |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, ex.getDmlMessage(0))); |
| | | Database.rollback(sp); |
| | | done_flg = false; |
| | | return null; |
| | |
| | | |
| | | List<String> raids = Raid.split(':'); |
| | | //检查是否可以继续 |
| | | List<Rental_Apply__c> RaTarList = [select Name,Campaign__c,Repair__c,next_action__c,QIS_number__r.ReplaceDeliveryDate__c,demo_purpose2__c,Follow_UP_Opp__r.Shipping_Finished_Day_Func__c, |
| | | Campaign__r.Status,Campaign__r.IF_Approved__c,repair__r.Return_Without_Repair_Date__c,Repair__r.Repair_Final_Inspection_Date__c,Repair__r.Repair_Shipped_Date__c |
| | | List<Rental_Apply__c> RaTarList = [select Id,Name,Campaign__c,Repair__c,next_action__c |
| | | ,QIS_number__r.ReplaceDeliveryDate__c,demo_purpose2__c |
| | | ,Follow_UP_Opp__r.Shipping_Finished_Day_Func__c |
| | | ,Campaign__r.Status |
| | | ,Campaign__r.IF_Approved__c |
| | | ,Campaign__r.Meeting_Approved_No__c // 20220315 ljh obpm备品决裁状态相关修改 |
| | | ,Campaign__r.Approved_Status__c // 20220315 ljh obpm备品决裁状态相关修改 |
| | | ,repair__r.Return_Without_Repair_Date__c |
| | | ,Repair__r.Repair_Final_Inspection_Date__c |
| | | ,Repair__r.Repair_Shipped_Date__c |
| | | from Rental_Apply__c |
| | | where id in :raids];//20210602 ljh update 增加查询Name SFDC-C3LBNL |
| | | |
| | | // add lc 20220927 SFDC-CJ48VE 备品预计出库日逻辑调整 start |
| | | Map<Id, String> rentalApplyNameMap = new Map<Id, String>(); |
| | | List<Rental_Apply_Equipment_Set__c> RAESRecords = [ |
| | | SELECT Id,Rental_Apply__c,Rental_Apply__r.Name |
| | | FROM Rental_Apply_Equipment_Set__c |
| | | WHERE Rental_Apply__c in :raids |
| | | AND Cancel_Select__c = False |
| | | AND Rental_Start_Date__c <> :Date.today() |
| | | ORDER BY Rental_Apply__c]; |
| | | |
| | | for (Rental_Apply_Equipment_Set__c RAES : RAESRecords) { |
| | | if (rentalApplyNameMap.isEmpty() || !rentalApplyNameMap.containsKey(RAES.Rental_Apply__c)) { |
| | | rentalApplyNameMap.put(RAES.Rental_Apply__c, RAES.Rental_Apply__r.Name); |
| | | } |
| | | } |
| | | // add lc 20220927 SFDC-CJ48VE 备品预计出库日逻辑调整 end |
| | | |
| | | //20210604 ljh update SFDC-C3LBNL start |
| | | Boolean errorFlag = false; |
| | | String message0 = ''; |
| | |
| | | String message4 = '';//1822 yc 20211025 已购待货目的,新品已有发货日不能出库 |
| | | String message5 = '';//1822 yc 20211108 索赔QIS目的,QIS已有新品发货日不能出库 |
| | | String message6 = ''; |
| | | |
| | | Set<Id> ids = new Set<Id>(); |
| | | for (Rental_Apply__c RaTar : RaTarList) { |
| | | if (String.isNotBlank(RaTar.Campaign__c) && RaTar.Campaign__r.IF_Approved__c){ |
| | | ids.add(RaTar.Campaign__c); |
| | | } |
| | | } |
| | | //查找备品申请对应裁决申请 |
| | | Map<Id, Campaign> campMap = new Map<Id, Campaign>([ |
| | | SELECT Id, IF_Approved__c, Meeting_Approved_No__c, |
| | | Meeting_Approved_No__r.ProcessState__c, |
| | | Meeting_Approved_No__r.MeetingApprovedNo__c |
| | | FROM Campaign |
| | | WHERE id IN :ids]); |
| | | |
| | | String message7 = '';// 20220315 ljh obpm备品决裁状态相关修改 end |
| | | String message8 = '';//add lc 20220927 SFDC-CJ48VE 备品预计出库日逻辑调整 |
| | | // 要判断决裁状态不能是草稿/驳回/终止申请/取消/删除 |
| | | List<String> statusList = System.Label.StatusProcessState.split(','); |
| | | Map<Id, Rental_Apply__c> RaMap = new Map<Id, Rental_Apply__c>(); |
| | | for (Rental_Apply__c RaTar : RaTarList) { |
| | | if( RaTar.Campaign__r.Status == '取消'){ |
| | | // ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, '学会已取消,不能继续操作了')); |
| | |
| | | message5 += RaTar.Name+'、'; |
| | | } |
| | | //1822 yc 20211025 已购待货目的,新品已有发货日不能出库 end |
| | | else if (!campMap.isEmpty() && campMap.containsKey(RaTar.Campaign__c) && campMap.get(RaTar.Campaign__c).IF_Approved__c){ |
| | | if (String.isBlank(campMap.get(RaTar.Campaign__c).Meeting_Approved_No__c) |
| | | || String.isBlank(campMap.get(RaTar.Campaign__c).Meeting_Approved_No__r.MeetingApprovedNo__c)) { |
| | | errorFlag = true; |
| | | message6 = RaTar.Name + '、'; |
| | | } |
| | | // 20220315 ljh obpm备品决裁状态相关修改 start |
| | | // else if (!campMap.isEmpty() && campMap.containsKey(RaTar.Campaign__c) && campMap.get(RaTar.Campaign__c).IF_Approved__c){ |
| | | // if (String.isBlank(campMap.get(RaTar.Campaign__c).Meeting_Approved_No__c) |
| | | // || String.isBlank(campMap.get(RaTar.Campaign__c).Meeting_Approved_No__r.MeetingApprovedNo__c)) { |
| | | // errorFlag = true; |
| | | // message6 = RaTar.Name + '、'; |
| | | // } |
| | | // } |
| | | else if(RaTar.Campaign__c!= null && RaTar.Campaign__r.IF_Approved__c && RaTar.Campaign__r.Meeting_Approved_No__c == null) { |
| | | errorFlag = true; |
| | | message6 += RaTar.Name + '、'; |
| | | } |
| | | else if(RaTar.Campaign__c!= null && RaTar.Campaign__r.IF_Approved__c && RaTar.Campaign__r.Meeting_Approved_No__c != null && statusList.contains(RaTar.Campaign__r.Approved_Status__c)) { |
| | | errorFlag = true; |
| | | message7 += RaTar.Name + '、'; |
| | | } |
| | | // 20220315 ljh obpm备品决裁状态相关修改 end |
| | | //20220217 sx add 备品借出申请-决裁控制 No.3 在出库时增加判断,判断学会是否申请决裁,如果是的话,再判断决裁编号是否不为空,满足条件才能出库,否则提示错误 |
| | | |
| | | } |
| | | |
| | | // add lc 20220927 SFDC-CJ48VE 备品预计出库日逻辑调整 start |
| | | if (!rentalApplyNameMap.isEmpty()) { |
| | | errorFlag = true; |
| | | for (String rentalApplyKey : rentalApplyNameMap.keySet()) { |
| | | message8 += rentalApplyNameMap.get(rentalApplyKey) + '、'; |
| | | } |
| | | } |
| | | // add lc 20220927 SFDC-CJ48VE 备品预计出库日逻辑调整 end |
| | | |
| | | if(errorFlag){ |
| | | if(String.isNotBlank(message0)){ |
| | | message += '单号NO.'+message0.removeEnd('、')+'学会已取消,不能继续操作了'; |
| | |
| | | if(String.isNotBlank(message6)){ |
| | | message += '单号No.'+ message6.removeEnd('、')+ '已申请决裁但决裁编码为空'; |
| | | } |
| | | // 20220315 ljh obpm备品决裁状态相关修改 add start |
| | | if(String.isNotBlank(message7)){ |
| | | message += '单号No.'+ message7.removeEnd('、')+ '已申请决裁但决裁状态不符合条件'; |
| | | } |
| | | // 20220315 ljh obpm备品决裁状态相关修改 add end |
| | | |
| | | // add lc 20220927 SFDC-CJ48VE 备品预计出库日逻辑调整 start |
| | | if(String.isNotBlank(message8)){ |
| | | message += '单号No.'+ message8.removeEnd('、')+ '的备品预计出货日应该等于今天,否则不能发货'; |
| | | } |
| | | // add lc 20220927 SFDC-CJ48VE 备品预计出库日逻辑调整 end |
| | | |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error,message)); |
| | | return null; |
| | | } |
| | |
| | | Asset__r.Remark__c, Asset__r.ImageAsset__c, Asset__r.ImageSerial__c, Asset__r.ImageAssetUploadedTime__c, Asset__r.ImageSerialUploadedTime__c, |
| | | Loaner_CDS_Info__c, Inspection_result__c, Check_lost_Item__c, Pre_disinfection__c, Water_leacage_check__c, Inspection_result_after__c, Arrival_in_wh__c, |
| | | Asset__r.Pre_Reserve_RAES_Detail__c, Asset__r.Pre_Reserve_RAES_Detail__r.After_Inspection_time__c, |
| | | Rental_Apply__r.Request_approval_time__c , Add_Request_approval_time__c ,ApplyToShipmentWorkTime__c, //20220309 ljh SFDC-CC6CLJ phase5上线课题131 提交申请到备品出库时长 |
| | | Inspection_result_after_ng__c, Inspection_result_ng__c, Lost_item_giveup__c, CDS_complete__c, Loaner_accsessary__c,Key_product__c |
| | | from Rental_Apply_Equipment_Set_Detail__c where Id in :eSet for update]; |
| | | Boolean needSaveSet = false; |
| | |
| | | Map<String,boolean> keyPointProduct = new Map<String,boolean>(); |
| | | //wangweipeng 是否是重点产品 2021/08/30 end |
| | | Set<Id> astForLock = new Set<Id>(); |
| | | Map<Datetime, List<Rental_Apply_Equipment_Set_Detail__c>> approvalMap = new Map<Datetime, List<Rental_Apply_Equipment_Set_Detail__c>>();// 20220315 ljh SFDC-CC6CLJ phase5上线课题131 提交申请到备品出库时长 |
| | | for (Rental_Apply_Equipment_Set_Detail__c esd : eList) { |
| | | if (esd.Inspection_result__c <> null && esd.StockDown__c == false) { |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, '备品set未下架,不能填写发货前检查结果')); |
| | |
| | | } |
| | | //wangweipeng 是否是重点产品 2021/08/30 end |
| | | astForLock.add(esd.Asset__c); |
| | | // 20220315 ljh SFDC-CC6CLJ phase5上线课题131 提交申请到备品出库时长 start |
| | | Datetime keyDt = esd.Add_Request_approval_time__c != null?esd.Add_Request_approval_time__c:esd.Rental_Apply__r.Request_approval_time__c; |
| | | List<Rental_Apply_Equipment_Set_Detail__c> tempRaesdL; |
| | | if(approvalMap.containsKey(keyDt)){ |
| | | tempRaesdL = approvalMap.get(keyDt); |
| | | }else{ |
| | | tempRaesdL = new List<Rental_Apply_Equipment_Set_Detail__c>(); |
| | | } |
| | | tempRaesdL.add(esd); |
| | | approvalMap.put(keyDt,tempRaesdL); |
| | | // 20220315 ljh SFDC-CC6CLJ phase5上线课题131 提交申请到备品出库时长 end |
| | | } |
| | | List<Asset> astLock = [select Id |
| | | from Asset |
| | | where id in :astForLock |
| | | for update]; |
| | | |
| | | if (Step_status == '明细') { |
| | | needDeliverySlip = true; |
| | | //if (slip.Id == null) { |
| | |
| | | slip.Shippment_loaner_time__c = Datetime.now(); |
| | | needSaveDetail = true; |
| | | } |
| | | List<Rental_Apply__c> raList = [select Id, DeliverySlip__c, Campaign__c from Rental_Apply__c where Id in :raSet]; |
| | | List<Rental_Apply__c> raList = [select Id, DeliverySlip__c, Campaign__c |
| | | , Campaign__r.IF_Approved__c // 20220315 ljh obpm备品决裁状态相关修改 |
| | | , Campaign__r.Meeting_Approved_No__r.Name // 20220315 ljh obpm备品决裁状态相关修改 |
| | | , Campaign__r.Approved_Status__c // 20220315 ljh obpm备品决裁状态相关修改 |
| | | from Rental_Apply__c where Id in :raSet]; |
| | | Savepoint sp = Database.setSavepoint(); |
| | | try { |
| | | //if (needSaveSet) ControllerUtil.upRAdEquipmentSet(es); |
| | | if (needDeliverySlip) { |
| | | FixtureUtil.withoutUpsertObjects(new List<FixtureDeliverySlip__c>{ slip }); |
| | | //ControllerUtil.updRADeliverySlipDetail(slip); |
| | | // 20220315 ljh SFDC-CC6CLJ phase5上线课题131 提交申请到备品出库时长 start |
| | | map<String,Decimal> ApplyToShipmentMap = new map<String,Decimal>(); |
| | | if(approvalMap.size() > 0 ){ |
| | | // dtList[0] 第一个就是最小时间 |
| | | List<Datetime> dtList = new List<Datetime>(approvalMap.keySet()); |
| | | Date startDateSOQL = date.newinstance(dtList[0].year(), dtList[0].month(), dtList[0].day()); |
| | | List<OlympusCalendar__c> ocList = [SELECT Id, Date__c,IsWorkDay__c |
| | | FROM OlympusCalendar__c |
| | | WHERE Date__c >= :startDateSOQL |
| | | AND Date__c <= :Date.today() |
| | | ORDER BY Date__c ASC]; |
| | | Map<Date,String> ocMap = new Map<Date,String>(); |
| | | for(OlympusCalendar__c oc:ocList){ |
| | | String IsWorkDay = oc.IsWorkDay__c.format(); |
| | | ocMap.put(oc.Date__c,IsWorkDay); |
| | | } |
| | | for(Datetime dt:dtList){ |
| | | Boolean startFlag = false; |
| | | Boolean endFlag = false; |
| | | Datetime startTime = dt; |
| | | Date startDate = Date.newInstance(startTime.year(),startTime.month(),startTime.day()); |
| | | Datetime endTime = Datetime.now(); |
| | | Date endDate = Date.today(); |
| | | // 审批时间是非奥林巴斯工作日 |
| | | // if(ocList[0].IsWorkDay__c == 0){ |
| | | if(ocMap.get(startDate) == '0'){ |
| | | for(OlympusCalendar__c oc:ocList){ |
| | | if(startDate < oc.Date__c && oc.IsWorkDay__c == 1){ |
| | | startTime = Datetime.newInstance(oc.Date__c.year(),oc.Date__c.month(),oc.Date__c.day(),0,0,0); |
| | | startDate = oc.Date__c; |
| | | startFlag = true; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | // 发货时间是非奥林巴斯工作日 |
| | | if(ocList[ocList.size() - 1].IsWorkDay__c == 0){ |
| | | for(Integer i = ocList.size() - 1; i >= 0;i--){ |
| | | if(ocList[i].IsWorkDay__c == 1){ |
| | | endTime = Datetime.newInstance(ocList[i].Date__c.addDays(1).year(),ocList[i].Date__c.addDays(1).month(),ocList[i].Date__c.addDays(1).day(),0,0,0); |
| | | endDate = ocList[i].Date__c.addDays(1); |
| | | endFlag = true; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | Decimal timeDifLast; |
| | | if(ocList[0].IsWorkDay__c == 0 && ocList[ocList.size() - 1].IsWorkDay__c == 0 && !startFlag && !endFlag){ |
| | | timeDifLast = 0; |
| | | }else{ |
| | | Long startL = startTime.getTime(); |
| | | Long tendL = endTime.getTime(); |
| | | Long timeDif = tendL - startL; |
| | | Decimal time11 = timeDif*1.00; |
| | | Decimal time12 = 24*3600*1000*1.00; |
| | | timeDifLast = time11/time12; |
| | | Integer tempWeek = 0; |
| | | for(OlympusCalendar__c oc:ocList){ |
| | | if(oc.IsWorkDay__c == 0 && startDate < oc.Date__c && oc.Date__c < endDate){ |
| | | tempWeek++; |
| | | } |
| | | } |
| | | timeDifLast = timeDifLast - tempWeek; |
| | | } |
| | | // dtestLast 四舍五入 保留1位小数 |
| | | for(Rental_Apply_Equipment_Set_Detail__c raesd00:approvalMap.get(dt)){ |
| | | ApplyToShipmentMap.put(raesd00.Id,timeDifLast.setScale(1)); |
| | | } |
| | | } |
| | | } |
| | | // 20220315 ljh SFDC-CC6CLJ phase5上线课题131 提交申请到备品出库时长 end |
| | | for (Rental_Apply_Equipment_Set_Detail__c esd : eList) { |
| | | esd.DeliverySlip__c = slip.Id; |
| | | // 20220315 ljh SFDC-CC6CLJ phase5上线课题131 提交申请到备品出库时长 start |
| | | if(ApplyToShipmentMap.containsKey(esd.Id)){ |
| | | esd.ApplyToShipmentWorkTime__c = ApplyToShipmentMap.get(esd.Id); |
| | | } |
| | | // 20220315 ljh SFDC-CC6CLJ phase5上线课题131 提交申请到备品出库时长 end |
| | | } |
| | | |
| | | for (Rental_Apply__c ra : raList) { |
| | |
| | | ra.Is_keyPoint_Product__c = keyPointProduct.get(ra.Id); |
| | | //wangweipeng 是否是重点产品 2021/08/30 start |
| | | |
| | | // 20220315 ljh obpm备品决裁状态相关修改 update start |
| | | //20220217 sx add 备品借出申请-决裁控制 No.4 出库成功时,把此时点的决裁编号和决裁状态写到决裁编号(出库)和决裁状态(出库)上 |
| | | if (!campMap.isEmpty() && campMap.containsKey(ra.Campaign__c) && campMap.get(ra.Campaign__c).IF_Approved__c){ |
| | | ra.ApprovedNo_Delivery__c = campMap.get(ra.Campaign__c).Meeting_Approved_No__r.MeetingApprovedNo__c; |
| | | ra.Approved_State_Delivery__c = campMap.get(ra.Campaign__c).Meeting_Approved_No__r.ProcessState__c; |
| | | // if (!campMap.isEmpty() && campMap.containsKey(ra.Campaign__c) && campMap.get(ra.Campaign__c).IF_Approved__c){ |
| | | // ra.ApprovedNo_Delivery__c = campMap.get(ra.Campaign__c).Meeting_Approved_No__r.MeetingApprovedNo__c; |
| | | // ra.Approved_State_Delivery__c = campMap.get(ra.Campaign__c).Meeting_Approved_No__r.ProcessState__c; |
| | | // } |
| | | if (ra.Campaign__c != null&& ra.Campaign__r.IF_Approved__c && ra.Campaign__r.Meeting_Approved_No__r.Name != null){ |
| | | ra.ApprovedNo_Delivery__c = ra.Campaign__r.Meeting_Approved_No__r.Name; |
| | | ra.Approved_State_Delivery__c = ra.Campaign__r.Approved_Status__c; |
| | | } |
| | | // 20220315 ljh obpm备品决裁状态相关修改 update end |
| | | } |
| | | } |
| | | //if (needSaveDetail) ControllerUtil.updRAEquipmentSetDetail(eList); |
| | |
| | | return null; |
| | | } catch (Exception ex) { |
| | | system.debug('=====' + ex.getMessage()); |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, ex.getDmlMessage(0))); |
| | | // ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, ex.getDmlMessage(0))); |
| | | ApexPages.addMessages(ex); |
| | | Database.rollback(sp); |
| | | done_flg = false; |
| | | return null; |
| | |
| | | StaticParameter.EscapeNFM001Trigger = true; |
| | | Oly_TriggerHandler.bypass(ContactTriggerHandler.class.getName()); |
| | | Oly_TriggerHandler.bypass(AgencyHospitalHandler.class.getName()); |
| | | // 20220316 ljh add start |
| | | // 奥林巴斯日历 |
| | | OlympusCalendar__c oc = new OlympusCalendar__c(); |
| | | oc.Date__c = System.Today(); |
| | | oc.Before_1_WorkDay__c = oc.Date__c.addDays(-1); |
| | | insert oc; |
| | | // 20220316 ljh add end |
| | | // システム管理者 |
| | | User user = new User(Test_staff__c = true); |
| | | user.LastName = '_サンブリッジ1'; |
| | |
| | | StaticParameter.EscapeNFM001Trigger = true; |
| | | Oly_TriggerHandler.bypass(ContactTriggerHandler.class.getName()); |
| | | Oly_TriggerHandler.bypass(AgencyHospitalHandler.class.getName()); |
| | | // 20220316 ljh add start |
| | | // 奥林巴斯日历 |
| | | OlympusCalendar__c oc = new OlympusCalendar__c(); |
| | | oc.Date__c = System.Today(); |
| | | oc.Before_1_WorkDay__c = oc.Date__c.addDays(-1); |
| | | insert oc; |
| | | // 20220316 ljh add end |
| | | // システム管理者 |
| | | User user = new User(Test_staff__c = true); |
| | | user.LastName = '_サンブリッジ1'; |
| | |
| | | task.cancelDate__c = date.today(); |
| | | update task; |
| | | //2021-06-09 mzy WLIG-BX3DQ5 【委托】Outlook日历和SFDC日历同步 update start |
| | | String subjectName = targetEvent.Subject; |
| | | if(String.isNotBlank(subjectName)&&subjectName.contains('【')){ |
| | | targetEvent.Subject = subjectName.split('【')[0] + '【已取消】'; |
| | | }else { |
| | | targetEvent.Subject = subjectName +'【已取消】'; |
| | | } |
| | | targetEvent.Subject += '【已取消】'; |
| | | //2021-06-09 mzy WLIG-BX3DQ5 【委托】Outlook日历和SFDC日历同步 update end |
| | | // // 2021-09-15 mzy 任务管理改善开发计划 start |
| | | // //如果任务不为空 |
| | |
| | | // 检索所有有任务(包括主动任务,被动任务)没有报告一览的事件,下月的 |
| | | global EventToEventDetailsBatch(){ |
| | | // this.query = 'select id from Event where task_id__c != \'\' and EventC_ID__c = \'\' and ActivityDate >= '+Date.today().format().ReplaceAll('/', '-')+' and ActivityDate < '+ Date.today().toStartOfMonth().addMonths(2).format().ReplaceAll('/', '-'); |
| | | //20210626 zh 任务框架修改 月末生成本月的报告一览 延期、取消的事件不生成报告一览 start |
| | | // this.query = 'select id from Event where task_id__c != \'\' and EventC_ID__c = \'\' and ActivityDate < '+ Date.today().toStartOfMonth().addMonths(2).format().ReplaceAll('/', '-'); |
| | | this.query = 'select id from Event where task_id__c != \'\' and EventC_ID__c = \'\' and EventStatus__c not in (\'04 取消\',\'05 延期\',\'06 关闭\',\'07 未执行\') and ActivityDate < '+ Date.today().format().ReplaceAll('/', '-'); |
| | | //20210626 zh 任务框架修改 月末生成本月的报告一览 end |
| | | this.query = 'select id from Event where task_id__c != \'\' and EventC_ID__c = \'\' and ActivityDate < '+ Date.today().toStartOfMonth().addMonths(2).format().ReplaceAll('/', '-'); |
| | | system.debug('query:'+query); |
| | | } |
| | | |
| | | // 2021-03-09 mzy WLIG-BYHD79 SFDC环境batch合并调查 start |
| | | global EventToEventDetailsBatch(Boolean NeedExecute) { |
| | | //20210626 zh 任务框架修改 月末生成本月的报告一览 延期、取消的事件不生成报告一览 start |
| | | // this.query = 'select id from Event where task_id__c != \'\' and EventC_ID__c = \'\' and ActivityDate < '+ Date.today().toStartOfMonth().addMonths(2).format().ReplaceAll('/', '-'); |
| | | this.query = 'select id from Event where task_id__c != \'\' and EventC_ID__c = \'\' and EventStatus__c not in (\'04 取消\',\'05 延期\',\'06 关闭\',\'07 未执行\') and ActivityDate < '+ Date.today().format().ReplaceAll('/', '-'); |
| | | //20210626 zh 任务框架修改 月末生成本月的报告一览 end |
| | | this.query = 'select id from Event where task_id__c != \'\' and EventC_ID__c = \'\' and ActivityDate < '+ Date.today().toStartOfMonth().addMonths(2).format().ReplaceAll('/', '-'); |
| | | this.IsNeedExecute = NeedExecute; |
| | | } |
| | | // 2021-03-09 mzy WLIG-BYHD79 SFDC环境batch合并调查 end |
| | |
| | | for(Event eve : (List<Event>)scope){ |
| | | eventIdSet.add(eve.Id); |
| | | } |
| | | List<Event> calenderList = [select id, ActivityDate, OwnerId, Subject, whatid__c, EventC_ID__c, NextEventC_ID__c, AppCdId__c, SyncCreatedDate__c, Task_ID__c,EventStatus__c,cancelReason__c,cancelReasonOther__c,cancelReasonSelect__c,cancelReasonSelectFSE__c,delayReason__c,delayReasonOther__c,delayReasonSelect__c,delayReasonSelectFSE__c,delayToDate__c, |
| | | List<Event> calenderList = [select id, ActivityDate, OwnerId, Subject, whatid__c, EventC_ID__c, NextEventC_ID__c, AppCdId__c, SyncCreatedDate__c, Task_ID__c, |
| | | StartDateTime, DurationInMinutes, Main_Visit_Location__c, Activity_Type2__c, IsScheduled__c, BeforeActivityDate__c, |
| | | Visitor1__c, Visitor2__c, Visitor3__c, Visitor4__c, Visitor5__c, Visitor1_ID__c, Visitor2_ID__c, Visitor3_ID__c, Visitor4_ID__c, Visitor5_ID__c, |
| | | Purpose_Type__c, Location, Related_Opportunity1__c, Related_Service1__c, Related_Opportunity1_ID__c, Related_Service1_ID__c, |
| | |
| | | location = e.Location; |
| | | whatid = e.whatid__c; |
| | | } |
| | | //20210527 zh 任务框架修改 start |
| | | String eventCStatus= ''; |
| | | if ('05 延期'.equals(e.EventStatus__c)) { |
| | | eventCStatus = '延期'; |
| | | }else if ('04 取消'.equals(e.EventStatus__c)) { |
| | | eventCStatus = '取消'; |
| | | } |
| | | //20210527 zh 任务框架修改 end |
| | | Event__c ec = new Event__c( |
| | | Subject__c = e.Subject, |
| | | StartDateTime__c = e.StartDateTime, |
| | |
| | | Activity_PurposeFSE__c = e.Activity_PurposeFSE__c, |
| | | Activity_PurposeEscFSE__c = e.Activity_PurposeEscFSE__c, |
| | | Purpose_TypeFSE__c = e.Purpose_TypeFSE__c, |
| | | Purpose_TypeEscFSE__c = e.Purpose_TypeEscFSE__c, |
| | | //20210527 zh 任务框架修改 start |
| | | eventStatus__c = eventCStatus, |
| | | delayReason__c = e.delayReason__c, |
| | | delayReasonOther__c = e.delayReasonOther__c, |
| | | delayReasonSelect__c = e.delayReasonSelect__c, |
| | | delayReasonSelectFSE__c = e.delayReasonSelectFSE__c, |
| | | CancelReason__c = e.cancelReason__c, |
| | | cancelReasonSelectFSE__c = e.cancelReasonSelectFSE__c, |
| | | cancelReasonSelect__c = e.cancelReasonSelect__c, |
| | | cancelReasonOther__c = e.cancelReasonOther__c, |
| | | delayToDate__c = e.delayToDate__c |
| | | //20210527 zh 任务框架修改 end |
| | | Purpose_TypeEscFSE__c = e.Purpose_TypeEscFSE__c |
| | | ); |
| | | // if(usrJobMap.get(e.OwnerId) != null && usrJobMap.get(e.OwnerId) == '销售服务'){ |
| | | // ec.Activity_PurposeFSE__c = e.Activity_PurposeFSE__c; |
| | |
| | | global class EventToEventDetailsSchedule implements Schedulable { |
| | | global void execute(SchedulableContext sc) { |
| | | // 2021-03-09 mzy WLIG-BYHD79 SFDC环境batch合并调查 start |
| | | //Id execBTId = Database.executeBatch(new EventToEventDetailsBatch(), 20); |
| | | Id execBTId = Database.executeBatch(new EventToEventDetailsBatch(true), 20); |
| | | // 2021-03-09 mzy WLIG-BYHD79 SFDC环境batch合并调查 end |
| | | Id execBTId = Database.executeBatch(new EventToEventDetailsBatch(), 20); |
| | | |
| | | // List < String > accountIdList = new List<String>(); |
| | | // for (Asset acc :[SELECT Id,Hospital__c,Product2.ServiceCategory__c,Product2.Maintenance_Price_Year__c |
| | | // FROM Asset WHERE IF_Coverage_Target_Asset_F__c=1]) { |
| | | // if(!accountIdList.contains(acc.Hospital__c)){ |
| | | // accountIdList.add(acc.Hospital__c); |
| | | // } |
| | | // } |
| | | |
| | | // Id execBTId1 = Database.executebatch(new EquipmentRepairBatch(accountIdList),20); |
| | | Id execBTId1 = Database.executebatch(new EquipmentRepairBatch(),20); |
| | | |
| | | } |
| | | } |
| | |
| | | @isTest |
| | | private class EventToEventDetailsScheduleTest { |
| | | @TestSetup |
| | | static void makeData(){ |
| | | |
| | | Date toDayTime = Date.today(); |
| | | |
| | | Account hospital = new Account(); |
| | | hospital.recordtypeId = [Select Id FROM RecordType WHERE IsActive = true and SobjectType = 'Account' and DeveloperName = 'HP'].id; |
| | | hospital.Name = 'hospitalabc'; |
| | | hospital.Is_Active__c = '有効'; |
| | | hospital.Attribute_Type__c = '卫生部'; |
| | | hospital.Speciality_Type__c = '综合医院'; |
| | | hospital.Grade__c = '一级'; |
| | | hospital.IF_Coverage_Target_HP__c = '1'; |
| | | hospital.OCM_Category__c = 'SLTV'; |
| | | hospital.Is_Medical__c = '医疗机构'; |
| | | hospital.Town__c = '东京'; |
| | | Oly_TriggerHandler.bypass('NFM701ControllerHandler'); |
| | | Oly_TriggerHandler.bypass('UpdateContractAimAmountHandler'); |
| | | insert hospital; |
| | | |
| | | Product2 pro1 = new Product2(Name='name01',IsActive=true,Family='GI', |
| | | Fixture_Model_No__c='n01',Serial_Lot_No__c='S/N tracing', |
| | | Fixture_Model_No_T__c = 'n01', |
| | | Maintenance_Price_Year__c = 999, |
| | | Extend_Gurantee_Start_MD__c = Date.newInstance(toDayTime.year(),3,2), |
| | | Extend_Gurantee_End_MD__c = Date.newInstance(3999,12,31), |
| | | Extend_new_product_gurantee_MD__c = true, |
| | | PartSupplyFinishDate__c = Date.newInstance(toDayTime.year()+2,3,2), |
| | | ProductCode_Ext__c='pc01',Manual_Entry__c=false,Brand_Name__c='奥林巴斯', |
| | | Category2__c='本体', |
| | | Category3__c='电子镜'); |
| | | insert pro1; |
| | | |
| | | Account[] strategicDep = [SELECT ID, Name FROM Account WHERE parentId = :hospital.Id AND recordType.DeveloperName = 'Department_Class_OTH']; |
| | | // 診療科を作る |
| | | Account dep = new Account(); |
| | | dep.recordtypeId = [Select Id FROM RecordType WHERE IsActive = true and SobjectType = 'Account' and DeveloperName = 'Department_OTH'].id; |
| | | dep.Name = 'test dep'; |
| | | dep.AgentCode_Ext__c = System.Label.Account_Asset_FJZ; |
| | | dep.ParentId = strategicDep[0].Id; |
| | | dep.Department_Class__c = strategicDep[0].Id; |
| | | dep.Hospital__c = hospital.Id; |
| | | Oly_TriggerHandler.bypass('NFM701ControllerHandler'); |
| | | Oly_TriggerHandler.bypass('UpdateContractAimAmountHandler'); |
| | | insert dep; |
| | | Asset assetA1 = new Asset(Asset_Owner__c = 'Olympus'); |
| | | assetA1.RecordTypeId = System.Label.Asset_RecordType; |
| | | assetA1.SerialNumber = 'ass01'; |
| | | assetA1.Name = 'ass01'; |
| | | assetA1.AccountId = dep.Id; |
| | | assetA1.Guarantee_period_for_products__c = toDayTime; |
| | | assetA1.Hospital__c = hospital.Id; |
| | | assetA1.Product2Id = pro1.Id; |
| | | assetA1.Quantity = 1; |
| | | assetA1.IF_Coverage_Target_Asset__c = '1'; |
| | | insert assetA1; |
| | | |
| | | } |
| | | |
| | | |
| | | static testMethod void myUnitTest() { |
| | | // This test runs a scheduled job at midnight Sept. 3rd. 2022 |
| | | String CRON_EXP = '0 0 0 3 9 ? 2022'; |
| | | // List<Asset> Assets = [SELECT Id,Hospital__c,Product2.ServiceCategory__c,Product2.Maintenance_Price_Year__c |
| | | // FROM Asset WHERE IF_Coverage_Target_Asset__c = '1']; |
| | | |
| | | // This test runs a scheduled job at midnight Sept. 3rd. 2022 |
| | | String CRON_EXP = '0 0 0 3 9 ? 2023'; |
| | | //System.Test.startTest(); |
| | | // Schedule the test job |
| | | String jobId = |
| | |
| | | // Verify the job has not run |
| | | System.assertEquals(0, ct.TimesTriggered); |
| | | // Verify the next time the job will run |
| | | System.assertEquals('2022-09-03 00:00:00', |
| | | System.assertEquals('2023-09-03 00:00:00', |
| | | String.valueOf(ct.NextFireTime)); |
| | | //System.Test.stopTest(); |
| | | } |
| | |
| | | public FixtureRemindController(){ |
| | | this.snap = new FixtureRemindSnapshot__c(); |
| | | snap.Date__c = System.today(); |
| | | User currentUser = [SELECT UserRole.Name, ProfileId FROM User WHERE Id=: UserInfo.getUserId()]; |
| | | // User currentUser = [SELECT UserRole.Name, ProfileId FROM User WHERE Id= '00510000001OOJx']; |
| | | //User currentUser = [SELECT UserRole.Name, ProfileId FROM User WHERE Id=: UserInfo.getUserId()]; |
| | | User currentUser = [SELECT UserRole.Name, ProfileId FROM User WHERE Id= '00510000001OOJx']; |
| | | this.hasAuthority = false; |
| | | this.hasNorthMap = false; |
| | | this.hasSouthMap = false; |
| | |
| | | public String centreAddress { get; set; } |
| | | public Boolean IsShowLU { get; set; } //是否显示签收单左上角文字 true显示 20201119 LJH OCSM_BP5-61 add |
| | | public Boolean IsMain; //是否是现地分配的主单 20201120 LJH OCSM_BP5-61 add |
| | | |
| | | public string staticResource { get; private set; } |
| | | public string staticResourceFile { get; private set; } |
| | | public Boolean addFlag { get; private set; }//敏感地址使用标记 |
| | | public String qrcode { get; private set; } |
| | | public String barcode { get; private set; } |
| | | // 20220413 ljh 抬头显示 add start |
| | | public String AgencyAddressName { get; private set; } |
| | | public Boolean isAgencyOrCenter { get; private set; } |
| | | public String AgencyOrCenterAddress { get; private set; } |
| | | // 20220413 ljh 抬头显示 add end |
| | | |
| | | public FixtureRentalPDFController() { |
| | | pageNum = Integer.valueOf(ApexPages.currentPage().getParameters().get('page')); |
| | | rentalApplyIdIMG = ApexPages.currentPage().getParameters().get('raid'); |
| | | //Apexpages.currentPage().getHeaders().put('X-UA-Compatible', 'IE=8'); |
| | | // rentalApplyId = ApexPages.currentPage().getParameters().get('raid');//20201120 ljh |
| | | String tempStr = ApexPages.currentPage().getParameters().get('raid'); |
| | | |
| | | addFlag = false; |
| | | rentalApplyId = new List<String>(); |
| | | if(tempStr != null){ |
| | | rentalApplyId.add(tempStr); |
| | |
| | | |
| | | // 画面初始化 |
| | | public void init() { |
| | | staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Rental_Apply__c')); |
| | | staticResourceFile = JSON.serialize(PIHelper.getPIIntegrationInfo('Document')); |
| | | // 新规奥林巴斯备品签收单PDF画面初始化 |
| | | PageCutList = new List<List<String>>(); |
| | | List<Rental_Apply__c> ApplyList = new List<Rental_Apply__c>(); |
| | |
| | | Agency_Address_Id__c,//20201124 LJH OCSM_BP5-61 add |
| | | Root_Rental_Apply__c,//20210617 ljh 1732 add |
| | | BRId__c, // 20211209 ljh SFDC-C923SR add |
| | | direct_send__c, |
| | | QRImg__c, |
| | | QRId__c |
| | | QRId__c, |
| | | AWS_Data_Id__c,//20220304 |
| | | Direct_Shippment_Address_Encrypt__c,//20220304 |
| | | Phone_Number_Encrypt__c//20220304 |
| | | from Rental_Apply__c |
| | | where id = :rentalApplyId]; |
| | | } |
| | | |
| | | if(ApplyList.size()>0){ |
| | | ApplyHeadShow = ApplyList[0]; |
| | | qrcode = ConsumTrialPDFController.GetImageBase64(ApplyHeadShow.QRId__c); |
| | | barcode = ConsumTrialPDFController.GetImageBase64(ApplyHeadShow.BRId__c); |
| | | } |
| | | //增加借出备品SET一览List,为了获取借出备品SET一览明细 |
| | | List<String> RAESSearchList = New List<String>(); |
| | |
| | | ShippMentAdr = ApplyHeadShow.Shippment_adress_detail__c; |
| | | } else { |
| | | ShippMentAdr = ApplyHeadShow.Direct_shippment_address__c; |
| | | addFlag = true; |
| | | } |
| | | |
| | | Integer ShipAdrSize = ShippMentAdr == null ? 0 : ShippMentAdr.length(); |
| | |
| | | Rental_Apply_Equipment_Set__r.Name, |
| | | Rental_Apply_Equipment_Set__r.Fixture_Set__r.Name, |
| | | Rental_Apply_Equipment_Set__r.Loaner_code__c, |
| | | // Rental_Apply_Equipment_Set__r.Received_ng_detail__c,// 20220124 ljh SFDC-C4U3PH add start |
| | | FSD_Name_CHN__c, |
| | | Fixture_Name_text__c, |
| | | Fixture_Model_No_F__c, |
| | |
| | | mainCnt = 0; |
| | | accessoryCnt = 0; |
| | | for (Rental_Apply_Equipment_Set_Detail__c ra : RAESDLine) { |
| | | if (ra.Is_Body__c) { |
| | | if (ra.Is_Body__c) { |
| | | mainCnt += 1; |
| | | } else { |
| | | accessoryCnt += 1; |
| | |
| | | //新建一页 |
| | | |
| | | PDFInfo info = new PDFInfo(new Rental_Apply__c(),New List<Rental_Apply_Equipment_Set_Detail__c>()); |
| | | // 20220413 ljh 抬头显示 update start |
| | | //20201120 LJH OCSM_BP5-61 update start |
| | | // if(!IsShowLU){ |
| | | // if(!IsMain){ |
| | | // info.isAgencyOrCenter = true;//办事处 |
| | | // info.AgencyAddressName = '请将备品回寄至'; |
| | | // info.AgencyAddressName += ApplyHeadShow.ToAgency__c == null ? '' : ApplyHeadShow.ToAgency__c; |
| | | // info.AgencyAddressName += '办事处'; |
| | | // info.AgencyOrCenterAddress = AgencyAddressIdMap.get(ApplyHeadShow.Id); |
| | | // }else{ |
| | | // info.isAgencyOrCenter = false;//备品中心 |
| | | // info.AgencyOrCenterAddress = centerAddressInfo; |
| | | // } |
| | | // }else{ |
| | | // info.isAgencyOrCenter = false;//备品中心 |
| | | // info.AgencyOrCenterAddress = centerAddressInfo; |
| | | // } |
| | | //20201120 LJH OCSM_BP5-61 update end |
| | | if(!IsShowLU){ |
| | | if(!IsMain){ |
| | | info.isAgencyOrCenter = true;//办事处 |
| | | info.AgencyAddressName = '请将备品回寄至'; |
| | | info.AgencyAddressName += ApplyHeadShow.ToAgency__c == null ? '' : ApplyHeadShow.ToAgency__c; |
| | | info.AgencyAddressName += '办事处'; |
| | | info.AgencyOrCenterAddress = AgencyAddressIdMap.get(ApplyHeadShow.Id); |
| | | isAgencyOrCenter = true;//办事处 |
| | | AgencyAddressName = '请将备品回寄至'; |
| | | AgencyAddressName += ApplyHeadShow.ToAgency__c == null ? '' : ApplyHeadShow.ToAgency__c; |
| | | AgencyAddressName += '办事处'; |
| | | AgencyOrCenterAddress = AgencyAddressIdMap.get(ApplyHeadShow.Id); |
| | | }else{ |
| | | info.isAgencyOrCenter = false;//备品中心 |
| | | info.AgencyOrCenterAddress = centerAddressInfo; |
| | | isAgencyOrCenter = false;//备品中心 |
| | | AgencyOrCenterAddress = centerAddressInfo; |
| | | } |
| | | }else{ |
| | | info.isAgencyOrCenter = false;//备品中心 |
| | | info.AgencyOrCenterAddress = centerAddressInfo; |
| | | isAgencyOrCenter = false;//备品中心 |
| | | AgencyOrCenterAddress = centerAddressInfo; |
| | | } |
| | | //20201120 LJH OCSM_BP5-61 update end |
| | | // 20220413 ljh 抬头显示 update end |
| | | integer PageCut = 0; |
| | | if (PageAllNum>=7) { |
| | | PageAllNum=7; |
| | |
| | | // Data Bean |
| | | class PDFInfo { |
| | | public String eSetName { get; private set; } //备品中心管理单号 |
| | | public String AgencyAddressName { get; private set; } //回寄地址 20201123 LJH OCSM_BP5-61 add |
| | | public Boolean isAgencyOrCenter { get; private set; } //备品中心?办事处 20201123 LJH OCSM_BP5-61 add |
| | | public String AgencyOrCenterAddress { get; private set; }//20201124 LJH OCSM_BP5-61 add |
| | | // 20220413 ljh 抬头显示 update start |
| | | // public String AgencyAddressName { get; private set; } //回寄地址 20201123 LJH OCSM_BP5-61 add |
| | | // public Boolean isAgencyOrCenter { get; private set; } //备品中心?办事处 20201123 LJH OCSM_BP5-61 add |
| | | // public String AgencyOrCenterAddress { get; private set; }//20201124 LJH OCSM_BP5-61 add |
| | | // 20220413 ljh 抬头显示 update end |
| | | public String requestOwner { get; private set; } //申请人 |
| | | public String salesDept { get; private set; } //所属本部 |
| | | public String workPlace { get; private set; } //所属办事处 |
| | |
| | | public String dQRCode { get; private set; } // 二维码 |
| | | private Integer maxLineContact; |
| | | public String wh_location { get; private set; } // 货位号 |
| | | // 20220124 ljh SFDC-C4U3PH add start |
| | | // public String Received_ng_detail { get; private set; } // 收到确认NG内容 |
| | | |
| | | |
| | | public String name1 { get; private set; } |
| | |
| | | //serialNumber2 = esd2.SerialNumber__c; |
| | | height = height ==null ? MAXLINEHRIGHT: height; |
| | | wh_location = raesd.Asset__r.WH_location__c; |
| | | // Received_ng_detail = raesd.Rental_Apply_Equipment_Set__r.Received_ng_detail__c; // 20220124 ljh SFDC-C4U3PH add start |
| | | } |
| | | } |
| | | // Data Bean |
| force-app/main/default/classes/FixtureRentalPDFControllerTest.cls
force-app/main/default/classes/FixtureSetHandler.cls
force-app/main/default/classes/FixtureUtil.cls
force-app/main/default/classes/FollowTriggerHandler.cls
force-app/main/default/classes/HospitalApprovalResponseController.cls
force-app/main/default/classes/InquiryFormHandler.cls
force-app/main/default/classes/InquiryFormHandlerTest.cls
force-app/main/default/classes/InquiryVerifyBatch.cls
force-app/main/default/classes/InquiryVerifyBatchTest.cls
force-app/main/default/classes/InsReportPDFController.cls
force-app/main/default/classes/InsReportPDFControllerTest.cls
force-app/main/default/classes/InspectCheckController.cls
force-app/main/default/classes/InspectCheckControllerTest.cls
force-app/main/default/classes/InspectionReportTriggerHandler.cls
force-app/main/default/classes/InstructReportController.cls
force-app/main/default/classes/InstructReportControllerTest.cls
force-app/main/default/classes/InventoryController.cls
force-app/main/default/classes/InventoryHeaderHandler.cls
force-app/main/default/classes/InventoryResultRecordCopyControllerTest.cls
force-app/main/default/classes/InventoryStartAssetSnapshotCopyBatch.cls
force-app/main/default/classes/InventoryStartAssetSnapshotCopyBatchTest.cls
force-app/main/default/classes/IsValidLicenseBatch.cls
force-app/main/default/classes/KPIPreviewScheduel.cls
force-app/main/default/classes/LastbuyProductHandler.cls
force-app/main/default/classes/LastbuyProductHandlerTest.cls
force-app/main/default/classes/LayoutDescriberHelper.cls
force-app/main/default/classes/LeadIntentionController.cls
force-app/main/default/classes/LeadIntentionControllerTest.cls
force-app/main/default/classes/LeadTriggerTest.cls
force-app/main/default/classes/LightningUtil.cls
force-app/main/default/classes/LightningUtilTest.cls
force-app/main/default/classes/LogAutoSendBatch.cls
force-app/main/default/classes/LogAutoSendSchedule.cls
force-app/main/default/classes/LogAutoSendScheduleTest.cls
force-app/main/default/classes/LostCancelReport2AssetTriggerTest.cls
force-app/main/default/classes/LostCancelReportHandler.cls
force-app/main/default/classes/LostCancelReportHandlerTest.cls
force-app/main/default/classes/LostCancelReportOppBatch.cls
force-app/main/default/classes/LostReportEditAssetController.cls
force-app/main/default/classes/LostReportEditControllerTest.cls
force-app/main/default/classes/LostReportHandler.cls
force-app/main/default/classes/LostReportHandlerTest.cls
force-app/main/default/classes/MCAEHandler.cls
force-app/main/default/classes/MCAgentPDFControllerTest.cls
force-app/main/default/classes/MCHPDFControllerTest.cls
force-app/main/default/classes/MCUpdateEstimateCostBatch.cls
force-app/main/default/classes/MDMITMRest.cls
force-app/main/default/classes/MainFixtureSelectController.cls
force-app/main/default/classes/MaintenanceCommissionPDFController.cls
force-app/main/default/classes/MaintenanceContractAssetTriggerTester.cls
force-app/main/default/classes/MaintenanceContractEstimatePDFController.cls
force-app/main/default/classes/MaintenanceContractNotOpenController.cls
force-app/main/default/classes/MaintenanceContractTriggerTest.cls
force-app/main/default/classes/MaintenanceContractVMPDFController.cls
force-app/main/default/classes/MaintenanceProductDataController.cls
force-app/main/default/classes/MaintenanceProductDataControllerTest.cls
force-app/main/default/classes/MaintenanceUpdateProductHandler.cls
force-app/main/default/classes/MceConfigPDFController.cls
force-app/main/default/classes/MeetingDelayApplyTriggerHandler.cls
force-app/main/default/classes/MergeAgencyActivityBatchTest.cls
force-app/main/default/classes/NFM001Controller.cls
force-app/main/default/classes/NFM001TriggerTest.cls
force-app/main/default/classes/NFM007Controller.cls
force-app/main/default/classes/NFM007TriggerTest.cls
force-app/main/default/classes/NFM009Controller.cls
force-app/main/default/classes/NFM009Controller.cls-meta.xml
force-app/main/default/classes/NFM010Rest.cls
force-app/main/default/classes/NFM012Rest.cls
force-app/main/default/classes/NFM103Controller.cls
force-app/main/default/classes/NFM103ControllerTest.cls
force-app/main/default/classes/NFM104Rest.cls
force-app/main/default/classes/NFM105Rest.cls
force-app/main/default/classes/NFM105RestTest.cls
force-app/main/default/classes/NFM106Controller.cls
force-app/main/default/classes/NFM106ControllerTest.cls
force-app/main/default/classes/NFM110Rest.cls
force-app/main/default/classes/NFM112BatchTest.cls
force-app/main/default/classes/NFM115Controller.cls
force-app/main/default/classes/NFM115ControllerTest.cls
force-app/main/default/classes/NFM201Controller.cls
force-app/main/default/classes/NFM202Controller.cls
force-app/main/default/classes/NFM203Rest.cls
force-app/main/default/classes/NFM204Rest.cls
force-app/main/default/classes/NFM206Rest.cls
force-app/main/default/classes/NFM206RestTest.cls
force-app/main/default/classes/NFM211Rest.cls
force-app/main/default/classes/NFM301SendEmail.cls
force-app/main/default/classes/NFM401Controller.cls
force-app/main/default/classes/NFM401ControllerTest.cls
force-app/main/default/classes/NFM402Batch.cls
force-app/main/default/classes/NFM501Controller.cls
force-app/main/default/classes/NFM501ControllerTest.cls
force-app/main/default/classes/NFM501FutureController.cls
force-app/main/default/classes/NFM501FutureControllerTest.cls
force-app/main/default/classes/NFM501HttpCallMock.cls
force-app/main/default/classes/NFM502Controller.cls
force-app/main/default/classes/NFM502ControllerTest.cls
force-app/main/default/classes/NFM503InfoFileBatch.cls
force-app/main/default/classes/NFM503InfoFileBatchTest.cls
force-app/main/default/classes/NFM601Controller.cls
force-app/main/default/classes/NFM601ControllerTest.cls
force-app/main/default/classes/NFM603Batch.cls
force-app/main/default/classes/NFM603Controller.cls
force-app/main/default/classes/NFM603ControllerTest.cls
force-app/main/default/classes/NFM606Controller.cls
force-app/main/default/classes/NFM606Controller.cls-meta.xml
force-app/main/default/classes/NFM606ControllerTest.cls
force-app/main/default/classes/NFM607Rest.cls
force-app/main/default/classes/NFM607RestTest.cls
force-app/main/default/classes/NFM608Rest.cls
force-app/main/default/classes/NFM609RestTest.cls
force-app/main/default/classes/NFM611Rest.cls
force-app/main/default/classes/NFM612Rest.cls
force-app/main/default/classes/NFM612RestTest.cls
force-app/main/default/classes/NFM620Rest.cls
force-app/main/default/classes/NFM620RestTest.cls
force-app/main/default/classes/NFM621Controller.cls
force-app/main/default/classes/NFM623Rest.cls
force-app/main/default/classes/NFM623RestTest.cls
force-app/main/default/classes/NFM624Batch.cls
force-app/main/default/classes/NFM624Rest.cls
force-app/main/default/classes/NFM624RestTest.cls
force-app/main/default/classes/NFM701Controller.cls
force-app/main/default/classes/NFM701ControllerHandler.cls
force-app/main/default/classes/NFM701ControllerHandlerTest.cls
force-app/main/default/classes/NFM701ControllerTest.cls
force-app/main/default/classes/NFM702Controller.cls
force-app/main/default/classes/NFM702ControllerTest.cls
force-app/main/default/classes/NFM703Controller.cls
force-app/main/default/classes/NFM703ControllerTest.cls
force-app/main/default/classes/NFM704Rest.cls
force-app/main/default/classes/NFM704RestTest.cls
force-app/main/default/classes/NFM705Rest.cls
force-app/main/default/classes/NFM705RestTest.cls
force-app/main/default/classes/NFM706RestTest.cls
force-app/main/default/classes/NFM707Rest.cls
force-app/main/default/classes/NFM707RestTest.cls
force-app/main/default/classes/NFMUtil.cls
force-app/main/default/classes/NFMUtilTest.cls
force-app/main/default/classes/NewAndEditAddressController.cls
force-app/main/default/classes/NewAndEditLeadController.cls
force-app/main/default/classes/NewMCAgentPDFController.cls
force-app/main/default/classes/NewMCHLimitPDFController.cls
force-app/main/default/classes/NewMCHPDFController.cls
force-app/main/default/classes/NewPaymentPlanLoadController.cls
force-app/main/default/classes/NewPaymentPlanLoadControllerTest.cls
force-app/main/default/classes/NewQuoteEntryController.cls
force-app/main/default/classes/NewQuoteEntryControllerTest.cls
force-app/main/default/classes/NewQuoteEntryWebService.cls
force-app/main/default/classes/NewQuoteIraiController.cls
force-app/main/default/classes/NewQuoteIraiController.cls-meta.xml
force-app/main/default/classes/NewQuoteIraiControllerTest.cls
force-app/main/default/classes/NewQuoteIraiControllerTest.cls-meta.xml
force-app/main/default/classes/NextMonthVisitBatch.cls
force-app/main/default/classes/OFSCalendarController.cls
force-app/main/default/classes/OFSInsReportLayoutController.cls
force-app/main/default/classes/OFSInsReportLayoutControllerTest.cls
force-app/main/default/classes/OFSInsReportLayoutForVmController.cls
force-app/main/default/classes/OPDPlanCancelPostponePlanLogicBatch.cls
force-app/main/default/classes/OPDPlanCancelPostponePlanLogicBatchTest.cls
force-app/main/default/classes/OPDPlanHandler.cls
force-app/main/default/classes/OPDPlanHandlerTest.cls
force-app/main/default/classes/OPDPlanMarkBatchSchedule.cls
force-app/main/default/classes/OPDPlanMarkBatchScheduleTest.cls
force-app/main/default/classes/OPDPlanSystemDelayBatch.cls
force-app/main/default/classes/OPDSortManageController.cls
force-app/main/default/classes/OPDSortManageControllerTest.cls
force-app/main/default/classes/OdsToUserHandler.cls
force-app/main/default/classes/OdsToUserHandlerTest.cls
force-app/main/default/classes/OncallFinalStatusManager.cls
force-app/main/default/classes/OpdAmountBatch.cls
force-app/main/default/classes/OpdPlanWebService.cls
force-app/main/default/classes/Opponent_Bid_InformationHandler.cls
force-app/main/default/classes/OpportunityAndContactDailyUpdateBatch.cls
force-app/main/default/classes/OpportunityAndContactDailyUpdateTest.cls
force-app/main/default/classes/OpportunityBefInsUpdTriggerTest.cls
force-app/main/default/classes/OpportunityHpDeptUpdTriggerTest.cls
force-app/main/default/classes/OpportunityLineItemTrigger.cls
force-app/main/default/classes/OpportunityLineItemTriggerTest.cls
force-app/main/default/classes/OpportunityPCLController2.cls
force-app/main/default/classes/OpportunityService.cls
force-app/main/default/classes/OpportunityServiceTest.cls
force-app/main/default/classes/OpportunityTrigger.cls
force-app/main/default/classes/OpportunityTriggerTest.cls
force-app/main/default/classes/OpportunityWebService.cls
force-app/main/default/classes/OpportunityWebServiceTest.cls
force-app/main/default/classes/Opportunity_Shipments_ForecastBatch.cls
force-app/main/default/classes/Opportunity_Shipments_ForecastBatchTest.cls
force-app/main/default/classes/OrdergoodsController.cls
force-app/main/default/classes/OrdergoodsControllerTest.cls
force-app/main/default/classes/PAEDecisionRecordController.cls
force-app/main/default/classes/PAEDecisionRecordControllerTest.cls
force-app/main/default/classes/PAEDecisionRecordTriggerTest.cls
force-app/main/default/classes/PCLLostProduct2AssetHandler.cls
force-app/main/default/classes/PCLLostProduct2AssetHandlerTest.cls
force-app/main/default/classes/PCLLostReportController.cls
force-app/main/default/classes/PagePlus.cls
force-app/main/default/classes/PagePlusTest.cls
force-app/main/default/classes/PaymentMaintenanceContractTriggerHTest.cls
force-app/main/default/classes/PaymentMaintenanceContractTriggerHandler.cls
force-app/main/default/classes/PaymentMaintenanceContractTriggerTest.cls
force-app/main/default/classes/PersonalCalendarControllerTest.cls
force-app/main/default/classes/PowerBIUpdateBatch.cls
force-app/main/default/classes/PowerBIUpdateBatchTest.cls
force-app/main/default/classes/PretechBatchEmailUtil.cls
force-app/main/default/classes/PrintConsumblePDFController.cls
force-app/main/default/classes/PrintConsumblePDFControllertTest.cls
force-app/main/default/classes/ProcessInstanceSolController.cls
force-app/main/default/classes/Product2Handler.cls
force-app/main/default/classes/Product2HandlerTest.cls
force-app/main/default/classes/QISMBCTrigger.cls
force-app/main/default/classes/QISPDFController.cls
force-app/main/default/classes/QISPDFControllerTest.cls
force-app/main/default/classes/QISTriggerTest.cls
force-app/main/default/classes/QuoteTrialController.cls
force-app/main/default/classes/QuoteTrialControllerTest.cls
force-app/main/default/classes/ReceivingNoteWaitingReceiptController.cls
force-app/main/default/classes/RemoveBoxController.cls
force-app/main/default/classes/RentalAgencyReceivedControllerTest.cls
force-app/main/default/classes/RentalApplyBeforeUpdateTriggerTest.cls
force-app/main/default/classes/RentalApplyEquipmentSetDetailHandler.cls
force-app/main/default/classes/RentalApplyEquipmentSetDetailHandlerTest.cls
force-app/main/default/classes/RentalApplyEquipmentSetHandler.cls
force-app/main/default/classes/RentalApplyEquipmentSetHandlerTest.cls
force-app/main/default/classes/RentalApplyEquipmentSetWebService.cls
force-app/main/default/classes/RentalApplyExtensionsController.cls
force-app/main/default/classes/RentalApplySequenceController.cls
force-app/main/default/classes/RentalApplyShareHandler.cls
force-app/main/default/classes/RentalApplyShareHandlerTest.cls
force-app/main/default/classes/RentalApplySplitController.cls
force-app/main/default/classes/RentalApplyTriggerHandler.cls
force-app/main/default/classes/RentalApplyTriggerHandlerTest.cls
force-app/main/default/classes/RentalApplyTriggerTest.cls
force-app/main/default/classes/RentalApplyWebService.cls
force-app/main/default/classes/RentalApplyWebServiceTest.cls
force-app/main/default/classes/RentalFixtureManage11Test.cls
force-app/main/default/classes/RentalFixtureManage1Test.cls
force-app/main/default/classes/RentalFixtureSetAssignAgencyControTest.cls
force-app/main/default/classes/RentalFixtureSetAssignAgencyController.cls
force-app/main/default/classes/RentalFixtureSetAssignAgencyCtrlTest.cls
force-app/main/default/classes/RentalFixtureSetAssignController.cls
force-app/main/default/classes/RentalFixtureSetAssignControllerTest.cls
force-app/main/default/classes/RentalHpDeptUpdHandler.cls
force-app/main/default/classes/RentalHpDeptUpdTriggerTest.cls
force-app/main/default/classes/RepairAgainAnHandler.cls
force-app/main/default/classes/RepairAgainAnHandler.cls-meta.xml
force-app/main/default/classes/RepairAgainAnHandlerTest.cls
force-app/main/default/classes/RepairAgainAnHandlerTest.cls-meta.xml
force-app/main/default/classes/RepairAgainAnPDFController.cls
force-app/main/default/classes/RepairAgainAnPDFControllerTest.cls-meta.xml
force-app/main/default/classes/RepairAndQISToPDFController.cls
force-app/main/default/classes/RepairBeforeInsertHandler.cls
force-app/main/default/classes/RepairBeforeInsertHandlerTest.cls
force-app/main/default/classes/RepairHandler.cls
force-app/main/default/classes/RepairHandlerTest.cls
force-app/main/default/classes/RepairQuoteTrigger.cls
force-app/main/default/classes/RepairQuoteTriggerTest.cls
force-app/main/default/classes/RepairSendToETQBatch.cls
force-app/main/default/classes/RepairTrigger.cls
force-app/main/default/classes/RepairTriggerTester.cls
force-app/main/default/classes/RetrospectiveWeeklyReportController.cls
force-app/main/default/classes/RollupToHPBatch.cls
force-app/main/default/classes/RollupToHPBatchTest.cls
force-app/main/default/classes/RollupToMaintenanceContractBatch.cls
force-app/main/default/classes/RollupToMaintenanceContractSchedule.cls
force-app/main/default/classes/RollupToMaintenanceContractScheduleTest.cls
force-app/main/default/classes/RollupToOPDSchedule.cls
force-app/main/default/classes/SI_NewQuoteEntryController.cls
force-app/main/default/classes/SI_NewQuoteEntryControllerTest.cls
force-app/main/default/classes/SLAReportDetailsController.cls
force-app/main/default/classes/SLAReportDetailsControllerTest.cls
force-app/main/default/classes/SSBackorderBatch.cls
force-app/main/default/classes/SSOpportunityBatch.cls
force-app/main/default/classes/SaleOrderController.cls
force-app/main/default/classes/SearchProductController.cls
force-app/main/default/classes/SearchVisitorController.cls
force-app/main/default/classes/SearchVisitorController.cls-meta.xml
force-app/main/default/classes/SearchVistorControllerTest.cls
force-app/main/default/classes/SelectAssetEstimateController.cls
force-app/main/default/classes/SelectAssetEstimateControllerTest.cls
force-app/main/default/classes/SelectAssetEstimateURFController.cls
force-app/main/default/classes/SelectAssetEstimateURFControllerTest.cls
force-app/main/default/classes/SelectAssetEstimateVMControllerTest.cls
force-app/main/default/classes/SelectAssetExtension.cls
force-app/main/default/classes/SelectAssetExtensionTester.cls
force-app/main/default/classes/SetPersonalTargetController.cls
force-app/main/default/classes/SetPersonalTargetControllerTest.cls
force-app/main/default/classes/SetProvinceTargetController.cls
force-app/main/default/classes/SetProvinceTargetControllerTest.cls
force-app/main/default/classes/Sfdc2PoContactBatch.cls
force-app/main/default/classes/Sfdc2PoContactBatchTest.cls
force-app/main/default/classes/Sfdc2SapDealersContractBatch.cls
force-app/main/default/classes/Sfdc2SapDealersContractBatchTest.cls
force-app/main/default/classes/Sfdc2SapDealersContractSchedulable.cls
force-app/main/default/classes/ShipmentController.cls
force-app/main/default/classes/SimpleEventRegisterController.cls
force-app/main/default/classes/SimpleEventRegisterControllerTester.cls
force-app/main/default/classes/SoapApi.cls
force-app/main/default/classes/SpareIsLoanBatch.cls
force-app/main/default/classes/SpareIsLoanBatchSchedule.cls
force-app/main/default/classes/SpareIsLoanBatchScheduleTesT.cls
force-app/main/default/classes/SpareIsLoanBatchTest.cls
force-app/main/default/classes/StartTradingController.cls
force-app/main/default/classes/StartTradingController.cls-meta.xml
force-app/main/default/classes/StartTradingControllerTest.cls
force-app/main/default/classes/StaticParameter.cls
force-app/main/default/classes/StaticParameter.cls-meta.xml
force-app/main/default/classes/StatuAchievementsPCLController.cls
force-app/main/default/classes/StatusPageController.cls
force-app/main/default/classes/StatusPageControllerTest.cls
force-app/main/default/classes/StraightBackAddressController.cls
force-app/main/default/classes/StraightBackAddressControllerTest.cls
force-app/main/default/classes/SubAuthorizedBatch.cls
force-app/main/default/classes/SubmitForApprovalController.cls
force-app/main/default/classes/SyncOpportunityTest.cls
force-app/main/default/classes/TaskFeedbackController.cls
force-app/main/default/classes/TaskObjectTriggerHandle.cls
force-app/main/default/classes/TaskStatusUpdateBatch.cls
force-app/main/default/classes/TenderDeleteLwcController.cls
force-app/main/default/classes/TenderInformationHandler.cls
force-app/main/default/classes/TenderInformationHandlerTest.cls
force-app/main/default/classes/TenderManageController.cls
force-app/main/default/classes/TenderManageControllerTest.cls
force-app/main/default/classes/TenderOpportunityLinkHandler.cls
force-app/main/default/classes/TenderOpportunityLinkHandlerTest.cls
force-app/main/default/classes/TenderWebService.cls
force-app/main/default/classes/TransferApplyDetailHandler.cls
force-app/main/default/classes/TransferApplyDetailHandlerTest.cls
force-app/main/default/classes/TransferApplyHandler.cls
force-app/main/default/classes/TransferApplyPDFController.cls
force-app/main/default/classes/TransferApplySelectDetailController.cls
force-app/main/default/classes/TransferApplySelectDetailControllerTest.cls
force-app/main/default/classes/TransferApplySelectDetailSubController.cls
force-app/main/default/classes/TransferApplySelectDetailSubCtrlTest.cls
force-app/main/default/classes/TransferAutoGiveupBatchSchedule.cls
force-app/main/default/classes/TransferShippmentReceived2Controller.cls
force-app/main/default/classes/TransferShippmentReceived2ControllerTest.cls
force-app/main/default/classes/TransferShippmentReceived5ControllerTest.cls
force-app/main/default/classes/Type2MaintenanceContractBatch.cls
force-app/main/default/classes/Type3MaintenanceContractBatch.cls
force-app/main/default/classes/TypeMaintenanceContractBatch.cls
force-app/main/default/classes/UpdateAssetReturnTimeSchedule.cls
force-app/main/default/classes/UpdateAssetToCurrentMCBatch.cls
force-app/main/default/classes/UpdateContractAimAmountHandler.cls
force-app/main/default/classes/UpdateContractAimAmountHandlerTest.cls
force-app/main/default/classes/UpdateHospitalOppDateBatch.cls
force-app/main/default/classes/UpdateInspectionReportAssetBatch.cls
force-app/main/default/classes/UpdateMonthlyContactSchedule.cls
force-app/main/default/classes/UpdateMonthlyContactScheduleTest.cls
force-app/main/default/classes/UpdateRentalApplyBatch.cls
force-app/main/default/classes/UpdateRentalApplyEquipmentSetBatch.cls
force-app/main/default/classes/UpdateRentalApplyEquipmentSetBatchTest.cls
force-app/main/default/classes/UpdateTenderInformationBatch.cls
force-app/main/default/classes/UpdateTenderInformationBatchTest.cls
force-app/main/default/classes/UpdateURFContactBatch.cls
force-app/main/default/classes/UploadOBPMController.cls
force-app/main/default/classes/UploadOBPMControllerTest.cls
force-app/main/default/classes/UserProfileHandler.cls
force-app/main/default/classes/UserToContactTriggerTest.cls
force-app/main/default/classes/WeeklyReportCmp.cls
force-app/main/default/classes/WeeklyReportCmpTest.cls
force-app/main/default/classes/XinDailyReportController.cls
force-app/main/default/classes/XinDailyReportControllerTest.cls
force-app/main/default/classes/createEmptyDailyReportSchedule.cls
force-app/main/default/classes/createEmptyDailyReportScheduleTest.cls
force-app/main/default/classes/eSignAgencyPageController.cls
force-app/main/default/classes/eSignFormAttachmentController.cls
force-app/main/default/classes/eSignFormAttachmentControllerTest.cls
force-app/main/default/classes/eSignHomePageController.cls
force-app/main/default/classes/rollupToRepairBatch.cls
force-app/main/default/classes/rollupToRepairBatchTest.cls
force-app/main/default/classes/strike_lookupController.cls
force-app/main/default/classes/summonsCreatController.cls
force-app/main/default/classes/taskAlertController.cls
force-app/main/default/classes/taskAlertControllerTest.cls
force-app/main/default/classes/taskManageController.cls
force-app/main/default/classes/updateCampaignMailflg7BeTrueBatch.cls
force-app/main/default/customMetadata/Consum_Apply_Meta.AssetMaintainAutoBatchEmailAddress.md
force-app/main/default/customMetadata/Consum_Apply_Meta.AssetMaintainManualBatchEmailAddress.md
force-app/main/default/customMetadata/Consum_Apply_Meta.ConsumApplyInventoryAutoDeleteBatchError.md
force-app/main/default/customMetadata/Consum_Apply_Meta.ConsumAutoSelectBatchErrorMailAddress.md
force-app/main/default/customMetadata/FSE_Regional_Assistant.HD.md
force-app/main/default/customMetadata/FSE_Regional_Assistant_Account.HD.md
force-app/main/default/customMetadata/Inventory_User_Permission.qingdao.md
force-app/main/default/customMetadata/Inventory_User_Permission.shanghai.md
force-app/main/default/homePageComponents/任务提醒.homePageComponent
force-app/main/default/homePageComponents/办事处首页提醒.homePageComponent
force-app/main/default/homePageComponents/助理营业管理自定义链接.homePageComponent
force-app/main/default/homePageComponents/备品中心%28备品出入库%29.homePageComponent
force-app/main/default/homePageComponents/备品中心%28耗材出入库%29.homePageComponent
force-app/main/default/homePageComponents/备品中心%EF%BC%88备品调拨%EF%BC%89.homePageComponent
force-app/main/default/homePageComponents/备品首页通知.homePageComponent
force-app/main/default/homePageComponents/服务自定义链接.homePageComponent
force-app/main/default/homePageComponents/现地%28备品出入库%29.homePageComponent
force-app/main/default/homePageComponents/经销商管理.homePageComponent
force-app/main/default/homePageComponents/营业管理者自定义链接.homePageComponent
force-app/main/default/homePageComponents/营业管理自定义链接.homePageComponent
force-app/main/default/homePageComponents/销售自定义链接.homePageComponent
force-app/main/default/objects/ASEActivity__c/ASEActivity__c.object-meta.xml
force-app/main/default/objects/ASEActivity__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/ASEActivity__c/fields/Activity_Purpose__c.field-meta.xml
force-app/main/default/objects/ASEActivity__c/fields/CustomerTel_Encrypted__c.field-meta.xml
force-app/main/default/objects/ASEActivity__c/fields/Purpose_Type__c.field-meta.xml
force-app/main/default/objects/ASEActivity__c/fields/ReporterASE__c.field-meta.xml
force-app/main/default/objects/ASEActivity__c/fields/Reporter__c.field-meta.xml
force-app/main/default/objects/ASEActivity__c/fields/VisitStaffEncrypt__c.field-meta.xml
force-app/main/default/objects/ASEActivity__c/fields/WorkDesc__c.field-meta.xml
force-app/main/default/objects/ASEActivity__c/fields/WorkPlace_Encrypted__c.field-meta.xml
force-app/main/default/objects/ASEActivity__c/listViews/AcceptWindow_BJ_ASEActivity.listView-meta.xml
force-app/main/default/objects/ASEActivity__c/listViews/AcceptWindow_GZ_ASEActivity.listView-meta.xml
force-app/main/default/objects/ASEActivity__c/listViews/All.listView-meta.xml
force-app/main/default/objects/ASEActivity__c/listViews/CheckWindow_BJ_ASEActivity.listView-meta.xml
force-app/main/default/objects/ASEActivity__c/listViews/CheckWindow_GZ_ASEActivity.listView-meta.xml
force-app/main/default/objects/ASEActivity__c/webLinks/CopyPI.webLink-meta.xml
force-app/main/default/objects/AWS_Integration_Info__mdt/fields/Confirm_TransactionURL__c.field-meta.xml
force-app/main/default/objects/AWS_Integration_Info__mdt/fields/Host_URL__c.field-meta.xml
force-app/main/default/objects/AWS_Integration_Info__mdt/fields/Max_Query_Number__c.field-meta.xml
force-app/main/default/objects/AWS_Integration_Info__mdt/fields/Token_URL__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/Asset_Cnt_TB_0520__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/Asset_Cnt_TB_0535_0520__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/Asset_Cnt_TB_0535__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/Delivery_cnt_TB_0520__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/Delivery_cnt_TB_0535_0520__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/Delivery_cnt_TB_0535__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/OPD_TB_0520__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/OPD_TB_0535_0520__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/OPD_TB_0535__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/Opp_cnt_TB_0520__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/Opp_cnt_TB_0535_0520__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/Opp_cnt_TB_0535__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/Order_cnt_TB_0520__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/Order_cnt_TB_0535_0520__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/Order_cnt_TB_0535__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/RivalCustomers_first__c.field-meta.xml
force-app/main/default/objects/Account2__c/fields/RivalHostsProportion_first__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/Digestion_Internal_Bunk__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/ERCP_Number__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/ESD_Number__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/EUS_Number__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/Endoscope_Nurse__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/Endoscope_Therapy__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/May_Endoscopic_Doctor__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/May_Hand_Skill_Physician__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/Number_of_case__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/OCM_Period__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/OCM_Year__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/Room_ERCP_Room__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/Room_Stomach_And_Room__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/Stomach_Enteroscopy__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/Stomach_Gastroscopy__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/Year__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/case_Endoscopic_Host__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/case_Mirror__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/case_Olympus_Host__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_case__c/fields/case_Sterilizer__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/AllOP_ThousandY__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Asset_Cnt_190Main__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Asset_Cnt_290MiroGI__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Asset_Cnt_TB_0520__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Asset_Cnt_TB_0535_0520__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Asset_Cnt_TB_0535__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/BO_Forecast_ThousandY__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Budget_SumPrice_Note__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Delivery_cnt_TB_0520__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Delivery_cnt_TB_0535_0520__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Delivery_cnt_TB_0535__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Department_Class_Label__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Is_Target_Account__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Name_OCMCategory__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/OCM_man_province_HP__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/OPD_amount_290MiroGI__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/OPD_amount_TB_0520__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/OPD_amount_TB_0535_0520__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/OPD_amount_TB_0535__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/OPD_cover_TB_0520__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/OPD_cover_TB_0535__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Opp_cnt_TB_0520__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Opp_cnt_TB_0535_0520__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Opp_cnt_TB_0535__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Opportunity_ThousandY__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Order_cnt_TB_0520__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Order_cnt_TB_0535_0520__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Order_cnt_TB_0535__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/PAENGAverageCoverageRate__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/PBENGAverageCoverageRate__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/RivalCustomers__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/RivalCustomers_first__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/RivalHostsProportion__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/RivalHostsProportion_first__c.field-meta.xml
force-app/main/default/objects/Account_Number_of_target__c/fields/Target_amount_ENG_F__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Annual_repair_amount__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/AssetContinueTaget__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Asset_Coverage__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Asset_Renewalrate__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Contract_Volume_Three_Year__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Coverage_Asset__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Coverage_Target_Account__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Equipment_Inventory_Correlation_No__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Equipment_Inventory_No__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Equipment_Inventory_Rigid_No__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Finish_Asset__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Finish_Correlation_Lightsource__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Finish_Coverage_Asset__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Finish_Rigid_Mirror_1__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Finish_Rigid_Mirror_2__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Finish_Rigid_Mirror_3__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/IF_Last_Three_Years_Contract__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/IF_Last_Two_Years_Contract__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/IF_Last_Years_Contract__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Last_Three_Year_Contract_Count__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Last_Three_Years_Contract_Amount__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Last_Three_Years_Contract_Count_del__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Last_Three_Years_IF_Have_Contract__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Last_Two_Years_Contract_Amount__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Last_Two_Years_Contract_Count__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Last_Years_Contract_Amount__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Last_Years_Contract_Count__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/OCSM_Period__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Renew_Finish_Correlation_Lightsource__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Renew_Finish_Else__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Renew_Finish_Rigid_Mirror_1__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Renew_Finish_Rigid_Mirror_3__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Renew_Target_Correlation_Lightsource__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Renew_Target_Rigid_Mirror_2__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Renew_Target_Soft_Mirror_2__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Target_Correlation_Lightsource__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Target_Rigid_Mirror_2__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Target_Soft_Mirror_2__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Three_Years_Repair_Cost_Hard_Mirror__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Three_Years_Repair_Cost_Soft_Mirror__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Three_Years_Repair_Cost_Surrounding_Area__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Three_Years_Repair_Cost_Text__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Total_Pricing_Hard_Mirror__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Total_Pricing_Lightsource__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Total_Pricing_Soft_Mirror__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Total_Pricing__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Total_Proposed_Equipment__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Uninsured_Quantity_Hard_Mirror__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Uninsured_Quantity_Lightsource__c.field-meta.xml
force-app/main/default/objects/Account_Service_Of_Target__c/fields/Uninsured_Quantity_Soft_Mirror__c.field-meta.xml
force-app/main/default/objects/Activity_History_Daily_Report__c/fields/Contact__c.field-meta.xml
force-app/main/default/objects/Address_Level__c/listViews/All.listView-meta.xml
force-app/main/default/objects/Address__c/Address__c.object-meta.xml
force-app/main/default/objects/Address__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Address_Classification__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/City_Name__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/City__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/ContactName_Encrypted__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/ContactName__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Contacts_Name__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Contacts__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Create_Contacts__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Customer_Name__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Customer__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Detailed_Address_Encrypted__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Detailed_Address__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Hospital__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Import_Data_Type__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/IsFromSPO__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/MobilePhone__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Province_Name__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Province__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Telephone_Encrypted__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Telephone__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/TelphoneBK__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/Using_Datetime__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/ZipCode_Encrypted__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/ZipCode__c.field-meta.xml
force-app/main/default/objects/Address__c/fields/delete_check__c.field-meta.xml
force-app/main/default/objects/Address__c/listViews/ALL_dealer.listView-meta.xml
force-app/main/default/objects/Address__c/listViews/All.listView-meta.xml
force-app/main/default/objects/Address__c/listViews/All_BP.listView-meta.xml
force-app/main/default/objects/Address__c/listViews/All_hospital.listView-meta.xml
force-app/main/default/objects/Address__c/listViews/All_office.listView-meta.xml
force-app/main/default/objects/Address__c/recordTypes/mainType.recordType-meta.xml
force-app/main/default/objects/Address__c/webLinks/CopyPI.webLink-meta.xml
force-app/main/default/objects/Advance_Payment__c/webLinks/CustomLink1.webLink-meta.xml
force-app/main/default/objects/Agency_Contact__c/Agency_Contact__c.object-meta.xml
force-app/main/default/objects/Agency_Contact__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Agency_Contact__c/fields/Doctor_Division1_Encrypted__c.field-meta.xml
force-app/main/default/objects/Agency_Contact__c/fields/Doctor_Division1__c.field-meta.xml
force-app/main/default/objects/Agency_Contact__c/fields/Name_Encrypted__c.field-meta.xml
force-app/main/default/objects/Agency_Contact__c/fields/Type_Encrypted__c.field-meta.xml
force-app/main/default/objects/Agency_Contact__c/listViews/All_Agency_Contact.listView-meta.xml
force-app/main/default/objects/Agency_Contact__c/listViews/OCM.listView-meta.xml
force-app/main/default/objects/Agency_Contact__c/recordTypes/Agency.recordType-meta.xml
force-app/main/default/objects/Agency_Contact__c/webLinks/Copy2AgencyContact.webLink-meta.xml
force-app/main/default/objects/Agency_Contact__c/webLinks/CopyPI.webLink-meta.xml
force-app/main/default/objects/Agency_Hospital_Link__c/fields/Agency__c.field-meta.xml
force-app/main/default/objects/Agency_Hospital_Link__c/fields/Hospital__c.field-meta.xml
force-app/main/default/objects/Agency_Hospital_Link__c/webLinks/NewAgencyHospital.webLink-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/Agency_Opportunity__c.object-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/fieldSets/Dealer_enquiry.fieldSet-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/fields/Agency_Person__c.field-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/fields/Change_To_Opportunity_Num__c.field-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/fields/Change_To_Opportunity__c.field-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/fields/Fund_Basis__c.field-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/fields/Product_Category1_P__c.field-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/fields/Product_Category2_P__c.field-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/fields/Product_Category3_P__c.field-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/fields/Sales_Method__c.field-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/fields/Salesdepartment_HP__c.field-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/fields/StageName3__c.field-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/listViews/OPP_Real.listView-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/listViews/Opp_Cancel_Lost.listView-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/listViews/Opp_inprogress.listView-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/listViews/Updated_in_Recent_Month.listView-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/listViews/Updated_in_Recent_Week.listView-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/listViews/View_GIR_All.listView-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/listViews/View_Nearly_a_Week.listView-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/listViews/View_OCSM_Next30.listView-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/listViews/View_Opp_all.listView-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/listViews/View_Opp_complete.listView-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/listViews/View_SP_All.listView-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/listViews/View_oppwithoutconform.listView-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/listViews/View_tar.listView-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/recordTypes/Opportunity.recordType-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/recordTypes/Target.recordType-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/webLinks/Business_confirmation.webLink-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/webLinks/NewIntention.webLink-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/webLinks/Quotation_request.webLink-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/webLinks/SubmitNewOpportunity_Agency_Apply.webLink-meta.xml
force-app/main/default/objects/Agency_Opportunity__c/webLinks/newOpp.webLink-meta.xml
force-app/main/default/objects/Agency_Report_Header__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Agency_Report_Header__c/fields/AccountOCSM__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/ConsumptionOfConsumables__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/Department_Cateogy_text__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/EffectProgress__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/Input_Type__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/Is_Report_Date__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/Management_Code__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/Normal_Input__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/ProductCcategory__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/ProductClassification__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/Purpose_Type__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/WarlockClassification__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/WorkMark__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/WorkRecord__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/doctor3__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/fields/productCategories__c.field-meta.xml
force-app/main/default/objects/Agency_Report__c/recordTypes/WeeklyReport.recordType-meta.xml
force-app/main/default/objects/Application_for_Conference_Adjudication__c/Application_for_Conference_Adjudication__c.object-meta.xml
force-app/main/default/objects/Application_for_Conference_Adjudication__c/fields/BudgetType__c.field-meta.xml
force-app/main/default/objects/Application_for_Conference_Adjudication__c/fields/CampaignTheme__c.field-meta.xml
force-app/main/default/objects/Application_for_Conference_Adjudication__c/fields/Implementation_Purpose1__c.field-meta.xml
force-app/main/default/objects/Application_for_Conference_Adjudication__c/fields/ProcessState__c.field-meta.xml
force-app/main/default/objects/Application_for_Conference_Adjudication__c/listViews/All.listView-meta.xml
force-app/main/default/objects/AssessmentReport__c/webLinks/CreateAssessmentReport.webLink-meta.xml
force-app/main/default/objects/AssetHistory__c/fields/CreateDate__c.field-meta.xml
force-app/main/default/objects/AssetMaintainDetail__c/fields/AssetId__c.field-meta.xml
force-app/main/default/objects/AssetMaintainDetail__c/fields/LostBackDate__c.field-meta.xml
force-app/main/default/objects/AssetMaintainHeader__c/validationRules/Cannot_Change_MaintainType.validationRule-meta.xml
force-app/main/default/objects/AssetMaintainHeader__c/webLinks/Abandon.webLink-meta.xml
force-app/main/default/objects/AssetMaintainHeader__c/webLinks/AssetMaintainPage.webLink-meta.xml
force-app/main/default/objects/AssetMaintainHeader__c/webLinks/delete_apply.webLink-meta.xml
force-app/main/default/objects/AssetMaintainHeader__c/webLinks/submit_approval_process.webLink-meta.xml
force-app/main/default/objects/AssetModifyBelongsChangeDetail__c/fields/AssetNotAccount__c.field-meta.xml
force-app/main/default/objects/Asset_EquipmentSet_Managment_Code__c/fields/Edit_staff_Email_F__c.field-meta.xml
force-app/main/default/objects/Asset_EquipmentSet_Managment_Code__c/fields/codeWarning__c.field-meta.xml
force-app/main/default/objects/BatchIF_Log__c/BatchIF_Log__c.object-meta.xml
force-app/main/default/objects/BatchIF_Log__c/fields/AWS_Transaction_Id__c.field-meta.xml
force-app/main/default/objects/BatchIF_Log__c/fields/DN_retry_cnt__c.field-meta.xml
force-app/main/default/objects/BatchIF_Log__c/fields/IsUpsertDN__c.field-meta.xml
force-app/main/default/objects/BatchIF_Log__c/fields/Log__c.field-meta.xml
force-app/main/default/objects/BatchIF_Log__c/fields/MessageGroupNumber__c.field-meta.xml
force-app/main/default/objects/BatchIF_Log__c/fields/NFM624_Secondary_processing__c.field-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/Alt.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM001.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM007.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM007_20221001.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM009.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM103.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM104.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM105manual.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM106.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM110_Veiwer.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM115.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM116_ToSAP.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM117.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM201.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM203.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM204.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM206.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM501.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM501raw.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM501raw_error.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM502.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM601Account.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM602ToAWS.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM603ToAWS.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM603ToAWS111.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM605ToAWS.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM607_ASE.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM608_FSE.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM609_CIC.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM611_Repair.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM612_RepairSubOrder.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM621User.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM624about.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM701.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM702_Veiwer.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM703_Veiwer.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM704_Veiwer.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM705_Veiwer.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM706.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/NFM707.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/PushNotification.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/RefRequest.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/TenderResultConfirm_Task.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/view_log_NFM501TIDetailHistoryDataBatch.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/view_log_SetFrameNumManageBatchErrorLog.listView-meta.xml
force-app/main/default/objects/BatchIF_Log__c/listViews/view_log_merge.listView-meta.xml
force-app/main/default/objects/BatchIF_Transfer__c/listViews/view_trans_tender_all.listView-meta.xml
force-app/main/default/objects/Bid_Announcement__c/webLinks/Agree.webLink-meta.xml
force-app/main/default/objects/Bid_Announcement__c/webLinks/BidCancel.webLink-meta.xml
force-app/main/default/objects/Bid_Announcement__c/webLinks/Request.webLink-meta.xml
force-app/main/default/objects/Bulletin_Board__c/fields/Buzhang_Zongjian__c.field-meta.xml
force-app/main/default/objects/Bulletin_Board__c/fields/Jingli_Buzhang__c.field-meta.xml
force-app/main/default/objects/Bulletin_Board__c/listViews/ALLCountry_Spare_Display_Board.listView-meta.xml
force-app/main/default/objects/Bulletin_Board__c/validationRules/Only_2B3_Can_Choose.validationRule-meta.xml
force-app/main/default/objects/CampaignLable__c/fields/Campaign__c.field-meta.xml
force-app/main/default/objects/CampaignMember__c/fields/Contact_Encrypted__c.field-meta.xml
force-app/main/default/objects/CampaignMember__c/fields/Contact_F__c.field-meta.xml
force-app/main/default/objects/CampaignMember__c/validationRules/Input_Record_Check.validationRule-meta.xml
force-app/main/default/objects/CancelPostponePlan__c/fields/cancelReasonCombobox__c.field-meta.xml
force-app/main/default/objects/CancelPostponePlan__c/recordTypes/CancelType.recordType-meta.xml
force-app/main/default/objects/CancelPostponePlan__c/recordTypes/PostponeType.recordType-meta.xml
force-app/main/default/objects/CancelPostponePlan__c/webLinks/CommitNeedApproval.webLink-meta.xml
force-app/main/default/objects/Competition_Company__c/listViews/All.listView-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set_Detail__c/Consum_Apply_Equipment_Set_Detail__c.object-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set_Detail__c/fieldSets/ConsumEquipmentSetShipment_R.fieldSet-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set_Detail__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set_Detail__c/fields/CreatedDate__c.field-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set_Detail__c/fields/Fixture_Model_No_F__c.field-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set_Detail__c/fields/Trial_User_Encrypt__c.field-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set_Detail__c/fields/boxbarcodeforReceipt__c.field-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set_Detail__c/validationRules/Cannot_Update_When_Finish.validationRule-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set_Detail__c/webLinks/Clear_Return_DeliverySlip.webLink-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/fields/Yi_Guo_Qi_Ku_Cun_Jia__c.field-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/fields/You_Xiao_Ku_Cun_Jia__c.field-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/fields/You_Xiao_Qi_Ku_Cun_Jia__c.field-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/webLinks/Cancel_Consum_Details.webLink-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/webLinks/Clear_Return_DeliverySlip.webLink-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/webLinks/ConsumDefaultSelect.webLink-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/webLinks/Consum_Select.webLink-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/webLinks/CustomSubmit.webLink-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/webLinks/EquipmentSetRental_Order.webLink-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/webLinks/Loaner_arranged_e_mail.webLink-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/webLinks/Reassign.webLink-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/webLinks/RentalFixtureSetAssign.webLink-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/webLinks/RentalFixtureSetSelect.webLink-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/webLinks/Select_Substitute.webLink-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/webLinks/Shipment_request.webLink-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/webLinks/Split_Apply.webLink-meta.xml
force-app/main/default/objects/Consum_Apply_Equipment_Set__c/webLinks/refresh_status.webLink-meta.xml
force-app/main/default/objects/Consum_Apply__c/Consum_Apply__c.object-meta.xml
force-app/main/default/objects/Consum_Apply__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Consum_Apply__c/fields/Direct_Shippment_Address_Encrypt__c.field-meta.xml
force-app/main/default/objects/Consum_Apply__c/fields/JingliApprovalManager_eq_Buchang__c.field-meta.xml
force-app/main/default/objects/Consum_Apply__c/fields/Loaner_medical_Staff__c.field-meta.xml
force-app/main/default/objects/Consum_Apply__c/fields/Phone_Number_Encrypt__c.field-meta.xml
force-app/main/default/objects/Consum_Apply__c/fields/SalesManager_eq_Buchang__c.field-meta.xml
force-app/main/default/objects/Consum_Apply__c/fields/requestNoJoinStr1__c.field-meta.xml
force-app/main/default/objects/Consum_Apply__c/recordTypes/StandardRequest.recordType-meta.xml
force-app/main/default/objects/Consum_Apply__c/validationRules/After_Request_approve.validationRule-meta.xml
force-app/main/default/objects/Consum_Apply__c/validationRules/After_Request_approve_PIPL.validationRule-meta.xml
force-app/main/default/objects/Consum_Apply__c/validationRules/Applicant_Set_Must_One.validationRule-meta.xml
force-app/main/default/objects/Consum_Apply__c/validationRules/Campaign_CancelStatus_Confim.validationRule-meta.xml
force-app/main/default/objects/Consum_Apply__c/validationRules/Campaign_CancelingStatus_Confim.validationRule-meta.xml
force-app/main/default/objects/Consum_Apply__c/validationRules/Campaign_EndStatus_Confim.validationRule-meta.xml
force-app/main/default/objects/Consum_Apply__c/validationRules/Campaign_SubreportStatus_Confim.validationRule-meta.xml
force-app/main/default/objects/Consum_Apply__c/validationRules/Cannot_Submit_When_NOTHave_ManagerBuzhan.validationRule-meta.xml
force-app/main/default/objects/Consum_Apply__c/validationRules/Detail_Cnt_Can_Not_More_Than500.validationRule-meta.xml
force-app/main/default/objects/Consum_Apply__c/validationRules/Need_AccountInfo.validationRule-meta.xml
force-app/main/default/objects/Consum_Apply__c/validationRules/System_Auto_Cannot_Modify.validationRule-meta.xml
force-app/main/default/objects/Consum_Apply__c/validationRules/Unform_employe_Check.validationRule-meta.xml
force-app/main/default/objects/Consum_Apply__c/webLinks/ConsumApply_FromAccount.webLink-meta.xml
force-app/main/default/objects/Consum_Apply__c/webLinks/ConsumApply_FromCampaign.webLink-meta.xml
force-app/main/default/objects/Consum_Apply__c/webLinks/ConsumApply_FromOPDPlan.webLink-meta.xml
force-app/main/default/objects/Consum_Apply__c/webLinks/ConsumApply_FromQIS.webLink-meta.xml
force-app/main/default/objects/Consum_Apply__c/webLinks/ConsumApply_FromRA.webLink-meta.xml
force-app/main/default/objects/Consum_Apply__c/webLinks/ConsumTrialPDF.webLink-meta.xml
force-app/main/default/objects/Consum_Apply__c/webLinks/CopyPI.webLink-meta.xml
force-app/main/default/objects/Consum_Apply__c/webLinks/Loaner_arranged_e_mail.webLink-meta.xml
force-app/main/default/objects/Consum_Apply__c/webLinks/Lost.webLink-meta.xml
force-app/main/default/objects/Consum_Apply__c/webLinks/all_received_fse.webLink-meta.xml
force-app/main/default/objects/Consum_Apply__c/webLinks/returnDeliverySlip.webLink-meta.xml
force-app/main/default/objects/Consum_Apply__c/webLinks/submit_approval_process.webLink-meta.xml
force-app/main/default/objects/Consum_Apply__c/webLinks/test.webLink-meta.xml
force-app/main/default/objects/Consumable_Orderdetails__c/fields/Product_Pattern__c.field-meta.xml
force-app/main/default/objects/Consumable_order__c/fieldSets/arrive_view.fieldSet-meta.xml
force-app/main/default/objects/Consumable_order__c/fields/Opportunity_code__c.field-meta.xml
force-app/main/default/objects/Consumable_order__c/listViews/D10_approved_view.listView-meta.xml
force-app/main/default/objects/Consumable_order__c/webLinks/SAP_Send_OK.webLink-meta.xml
force-app/main/default/objects/Consumable_order__c/webLinks/SAP_Send_test.webLink-meta.xml
force-app/main/default/objects/Consumable_order_details2__c/Consumable_order_details2__c.object-meta.xml
force-app/main/default/objects/Consumable_order_details2__c/fields/Cancel_remind__c.field-meta.xml
force-app/main/default/objects/Consumable_order_details2__c/fields/DICode__c.field-meta.xml
force-app/main/default/objects/Consumable_order_details2__c/fields/Is_DangerousChemicals__c.field-meta.xml
force-app/main/default/objects/Consumable_order_details2__c/fields/Opportunity_No__c.field-meta.xml
force-app/main/default/objects/Consumable_order_details2__c/fields/Product_Pattern__c.field-meta.xml
force-app/main/default/objects/Consumable_order_details2__c/fields/Recall_shipment__c.field-meta.xml
force-app/main/default/objects/Consumable_order_details2__c/listViews/All.listView-meta.xml
force-app/main/default/objects/Daily_Report__c/Daily_Report__c.object-meta.xml
force-app/main/default/objects/Daily_Report__c/fields/Confirm_Limit_Date__c.field-meta.xml
force-app/main/default/objects/Daily_Report__c/fields/IsFromApplet__c.field-meta.xml
force-app/main/default/objects/Daily_Report__c/fields/Reporter_Salesdepartment__c.field-meta.xml
force-app/main/default/objects/Daily_Report__c/listViews/EditingStatusReport.listView-meta.xml
force-app/main/default/objects/Daily_Report__c/validationRules/Not_submit_before_endding.validationRule-meta.xml
force-app/main/default/objects/DiscountProductApplicationDetail__c/fields/ProductDiscount__c.field-meta.xml
force-app/main/default/objects/DiscountProductApplicationDetail__c/fields/Special_Discount__c.field-meta.xml
force-app/main/default/objects/Equipment_Set_Detail__c/webLinks/select_rental.webLink-meta.xml
force-app/main/default/objects/Equipment_Set__c/webLinks/Fill_other_detail.webLink-meta.xml
force-app/main/default/objects/Equipment_Set__c/webLinks/all_Received.webLink-meta.xml
force-app/main/default/objects/Equipment_Set__c/webLinks/all_Shippment.webLink-meta.xml
force-app/main/default/objects/Equipment_Set__c/webLinks/refresh_status.webLink-meta.xml
force-app/main/default/objects/Event_Oppotunity__c/fields/SalesDepartment__c.field-meta.xml
force-app/main/default/objects/Event_Oppotunity__c/fields/Sales_Division__c.field-meta.xml
force-app/main/default/objects/Event__c/Event__c.object-meta.xml
force-app/main/default/objects/Event__c/fields/Activity_PurposeEscFSE__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Activity_PurposeFSE__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Activity_Purpose__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Activity_Type2__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/IDCompare__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/IsFromApplet__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Minister_Comment__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Opd_Plan__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Purpose_Type2__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Purpose_Type3__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Purpose_Type4__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Purpose_Type5__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Purpose_TypeEscFSE__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Purpose_TypeFSE2__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Purpose_TypeFSE3__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Purpose_TypeFSE4__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Purpose_TypeFSE5__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Purpose_TypeFSE__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/Purpose_Type__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/cancelReasonSelect__c.field-meta.xml
force-app/main/default/objects/Event__c/fields/delayReasonSelect__c.field-meta.xml
force-app/main/default/objects/Event__c/listViews/All_unconformPforlthisweek1.listView-meta.xml
force-app/main/default/objects/Event__c/webLinks/Minister.webLink-meta.xml
force-app/main/default/objects/FieldClassification__c/fields/ProductCcategory__c.field-meta.xml
force-app/main/default/objects/FixtureRemindSnapshot__c/fields/Rental_ApplyRecordtype__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/Fixture_OneToOne_Link__c.object-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Abandoned_RealThing__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Accessory_Asset_Status__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Accessory_Asset__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Accsessary_SerialNumber__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Accsessary_WH_location__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/CountForRepair__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/FSPStore__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Ge_Ti_Fu_Shu_Pin_Key__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/In_wh_Fu_Shu_Pin_You_Xiao_Ku_Cun_F__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/In_wh_Fu_Shu_Pin_You_Xiao_Ku_Cun__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Inventory_Frozen_Quantity__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/MainStore__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Main_Asset_Managment_Code__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Main_Asset_Number_key__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Main_Asset_SerialNumber__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Main_Asset_Status__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Main_Asset_WH_location__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Main_Asset__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Manage_type__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/OneToOne__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Quantity__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/Select_Accessory_Asset_Cnt__c.field-meta.xml
force-app/main/default/objects/Fixture_OneToOne_Link__c/fields/TransferFrozenQuantity__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/Fixture_Set_Detail__c.object-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/DataMigration_Flag__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/Fixture_Model_No_F__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/Fixture_Set_New_Quantity__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/Fixture_Set_New__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/Fixture_Set__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/Is_Body__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/Is_OneToOne__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/Is_Optional__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/Is_Special_Product__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/Name_CHN_Created__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/Name_CHN__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/Product2__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/Product_Status_Flag__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/Quantity__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/SortInt_F__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/SortInt__c.field-meta.xml
force-app/main/default/objects/Fixture_Set_Detail__c/fields/UniqueKey__c.field-meta.xml
force-app/main/default/objects/Fixture_Set__c/fields/Loaner_categoryII__c.field-meta.xml
force-app/main/default/objects/Fixture_Set__c/fields/Loaner_categoryI__c.field-meta.xml
force-app/main/default/objects/GuaranteePeriodAlterationApplication__c/GuaranteePeriodAlterationApplication__c.object-meta.xml
force-app/main/default/objects/GuaranteePeriodAlterationApplication__c/fields/ChangeReason__c.field-meta.xml
force-app/main/default/objects/GuaranteePeriodAlterationApplication__c/fields/ChangeReason_text__c.field-meta.xml
force-app/main/default/objects/GuaranteePeriodAlterationApplication__c/fields/Change_status__c.field-meta.xml
force-app/main/default/objects/GuaranteePeriodAlterationApplication__c/fields/GpaaStatu_AchievementsHospital__c.field-meta.xml
force-app/main/default/objects/GuaranteePeriodAlterationApplication__c/fields/GpaaStatu_Achievements__c.field-meta.xml
force-app/main/default/objects/GuaranteePeriodAlterationApplication__c/fields/OwnerMajordomo__c.field-meta.xml
force-app/main/default/objects/GuaranteePeriodAlterationApplication__c/fields/OwnerManager__c.field-meta.xml
force-app/main/default/objects/GuaranteePeriodAlterationApplication__c/fields/OwnerSectionChief__c.field-meta.xml
force-app/main/default/objects/GuaranteePeriodAlterationApplication__c/fields/RawGuaranteeTime__c.field-meta.xml
force-app/main/default/objects/GuaranteePeriodAlterationApplication__c/fields/WarrantyStartDate__c.field-meta.xml
force-app/main/default/objects/GuaranteePeriodAlterationApplication__c/listViews/ServiceGoodsDepartment_GuaranteePeriodAlterationApplication.listView-meta.xml
force-app/main/default/objects/IS_Opportunity_Demand__c/listViews/All.listView-meta.xml
force-app/main/default/objects/IS_Opportunity_Demand__c/webLinks/Custom_Submit_BTN.webLink-meta.xml
force-app/main/default/objects/IS_Opportunity_Demand__c/webLinks/New_SI_Custom.webLink-meta.xml
force-app/main/default/objects/IS_Opportunity_Demand__c/webLinks/New_SI_Custom_New.webLink-meta.xml
force-app/main/default/objects/IS_Opportunity_Demand__c/webLinks/SI_Abort_Btn.webLink-meta.xml
force-app/main/default/objects/IS_Opportunity_Demand__c/webLinks/SI_Copy_Custom.webLink-meta.xml
force-app/main/default/objects/IS_Opportunity_Demand__c/webLinks/SI_Copy_Custom_New.webLink-meta.xml
force-app/main/default/objects/IS_Opportunity_Demand__c/webLinks/SI_SOD_Create.webLink-meta.xml
force-app/main/default/objects/IS_Opportunity_Demand__c/webLinks/SI_Upsert_BTN.webLink-meta.xml
force-app/main/default/objects/Inquiry_form__c/Inquiry_form__c.object-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/AssistantChangeOwnerTime__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/AssistantRedistributionDate__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/ComPlat_Name__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/CompletedConfirmations__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Confirmation_days__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/ConfirmedOnTime__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/ContactId__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Contact_Name__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/CreateDate__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Depart_Owner__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Email_Encrypted__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/FSE_Owner__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/FSE_Owner_id__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Follow_Content__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/GI_assistant__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/GotoDepartment__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Hospital_Name__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Hospital__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/IfConfirmation__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/IfGotoDepartment__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Last_Name_Encrypted__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/LeadSource__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/MinimumDate__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Ministry_Of_Information__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/OCM_man_province_cus__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/OCSMOwner__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/OCSM_test2__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Opp_Name__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Opportunity_Division__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Phone_Encrypted__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Product1__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/ProductAssumeDate__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Product_Owner__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/RedistributionDate__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Redistribution__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Request1__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/SP_assistant__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/ServiceCorrespond__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Service_Follow_Content_Other__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Service_Follow_Content__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Service_Follow_Date__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Service_Status__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/Status__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/TimeoutDays__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/isFSEDiffWithAccount__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/fields/isOwnerDiffWithAccount__c.field-meta.xml
force-app/main/default/objects/Inquiry_form__c/listViews/All.listView-meta.xml
force-app/main/default/objects/Inquiry_form__c/listViews/All_02.listView-meta.xml
force-app/main/default/objects/Inquiry_form__c/listViews/All_03.listView-meta.xml
force-app/main/default/objects/Inquiry_form__c/listViews/All_04.listView-meta.xml
force-app/main/default/objects/Inquiry_form__c/listViews/MyFSEInquiryOrg.listView-meta.xml
force-app/main/default/objects/Inquiry_form__c/listViews/MyView.listView-meta.xml
force-app/main/default/objects/Inquiry_form__c/listViews/MyViewing.listView-meta.xml
force-app/main/default/objects/Inquiry_form__c/listViews/zhuliView.listView-meta.xml
force-app/main/default/objects/Inquiry_form__c/sharingReasons/FSE_Owner_c_User__c.sharingReason-meta.xml
force-app/main/default/objects/Inquiry_form__c/validationRules/CampaignSource.validationRule-meta.xml
force-app/main/default/objects/Inquiry_form__c/validationRules/Product_Null.validationRule-meta.xml
force-app/main/default/objects/Inquiry_form__c/webLinks/CopyPI.webLink-meta.xml
force-app/main/default/objects/Inquiry_form__c/webLinks/CustomLink1.webLink-meta.xml
force-app/main/default/objects/Inquiry_form__c/webLinks/CustomLink2.webLink-meta.xml
force-app/main/default/objects/Inquiry_form__c/webLinks/Service_Follow.webLink-meta.xml
force-app/main/default/objects/Inspection_Report__c/Inspection_Report__c.object-meta.xml
force-app/main/default/objects/Inspection_Report__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Inspection_Report__c/fields/Hospital__c.field-meta.xml
force-app/main/default/objects/Inspection_Report__c/fields/Reporter__c.field-meta.xml
force-app/main/default/objects/Inspection_Report__c/fields/Responsible_Person_Encrypted__c.field-meta.xml
force-app/main/default/objects/Inspection_Report__c/fields/Technician_HP_Encrypted__c.field-meta.xml
force-app/main/default/objects/Inspection_Report__c/fields/phone_Encrypted__c.field-meta.xml
force-app/main/default/objects/Inspection_Report__c/validationRules/InputFinishInsDateCheck.validationRule-meta.xml
force-app/main/default/objects/Inspection_Report__c/validationRules/Name_Not_ID.validationRule-meta.xml
force-app/main/default/objects/Inspection_Report__c/validationRules/PdfInsDateCheck.validationRule-meta.xml
force-app/main/default/objects/Inspection_Report__c/validationRules/Reporter_isRequired.validationRule-meta.xml
force-app/main/default/objects/Inspection_Report__c/webLinks/CopyPI.webLink-meta.xml
force-app/main/default/objects/Inspection_Report__c/webLinks/insPageBtn.webLink-meta.xml
force-app/main/default/objects/Inspectup_Plan__c/Inspectup_Plan__c.object-meta.xml
force-app/main/default/objects/Inspectup_Plan__c/fields/History_datanew__c.field-meta.xml
force-app/main/default/objects/Inspectup_Plan__c/fields/History_datanew_txt__c.field-meta.xml
force-app/main/default/objects/Inspectup_Plan__c/fields/Implementation_Rates__c.field-meta.xml
force-app/main/default/objects/Inspectup_Plan__c/fields/Need_copy__c.field-meta.xml
force-app/main/default/objects/Inspectup_Plan__c/fields/Timeliness_Rates__c.field-meta.xml
force-app/main/default/objects/Inspectup_Plan__c/fields/history__c.field-meta.xml
force-app/main/default/objects/Inspectup_Plan__c/fields/history_data__c.field-meta.xml
force-app/main/default/objects/Inspectup_Plan__c/fields/overstep_check_interval__c.field-meta.xml
force-app/main/default/objects/Inspectup_Plan__c/fields/plan_num_history__c.field-meta.xml
force-app/main/default/objects/Instruct_report__c/webLinks/CreateInstructReport.webLink-meta.xml
force-app/main/default/objects/Inventory_Detail__c/fields/IsPunishObj__c.field-meta.xml
force-app/main/default/objects/Inventory_Header_Copy__c/Inventory_Header_Copy__c.object-meta.xml
force-app/main/default/objects/Inventory_Header__c/fields/Jingli_Buzhang__c.field-meta.xml
force-app/main/default/objects/Inventory_Header__c/fields/Mail_Content_Diff__c.field-meta.xml
force-app/main/default/objects/Inventory_Header__c/listViews/All1.listView-meta.xml
force-app/main/default/objects/Inventory_Header__c/validationRules/Cannot_Submit_App_When_Have_Dot_Inventor.validationRule-meta.xml
force-app/main/default/objects/Inventory_Header__c/validationRules/Cannot_Submit_When_NOTHave_ManagerBuzhan.validationRule-meta.xml
force-app/main/default/objects/Inventory_Header__c/webLinks/ClearStatus.webLink-meta.xml
force-app/main/default/objects/Inventory_Header__c/webLinks/InventoryPage.webLink-meta.xml
force-app/main/default/objects/LastbuyProduct__c/LastbuyProduct__c.object-meta.xml
force-app/main/default/objects/LastbuyProduct__c/fields/Account__c.field-meta.xml
force-app/main/default/objects/LastbuyProduct__c/fields/ActualQuantity__c.field-meta.xml
force-app/main/default/objects/LastbuyProduct__c/fields/InquiryCode__c.field-meta.xml
force-app/main/default/objects/LastbuyProduct__c/fields/Opportunity_No__c.field-meta.xml
force-app/main/default/objects/LastbuyProduct__c/fields/RemainingNumber__c.field-meta.xml
force-app/main/default/objects/LastbuyProduct__c/fields/Salesdepartment_Owner__c.field-meta.xml
force-app/main/default/objects/LastbuyProduct__c/fields/State_Owner__c.field-meta.xml
force-app/main/default/objects/LastbuyProduct__c/fields/WIN_manual_number__c.field-meta.xml
force-app/main/default/objects/LastbuyProduct__c/fields/productInquiryOnly__c.field-meta.xml
force-app/main/default/objects/LastbuyProduct__c/listViews/All.listView-meta.xml
force-app/main/default/objects/LastbuyProduct__c/listViews/EU_ME2.listView-meta.xml
force-app/main/default/objects/LastbuyProduct__c/webLinks/CB_LBP_New.webLink-meta.xml
force-app/main/default/objects/LogisticsInformation__c/listViews/All.listView-meta.xml
force-app/main/default/objects/LostReport_Detail__c/LostReport_Detail__c.object-meta.xml
force-app/main/default/objects/LostReport__c/fields/BeiPinWindow_Jingli__c.field-meta.xml
force-app/main/default/objects/LostReport__c/fields/isBeipin__c.field-meta.xml
force-app/main/default/objects/LostReport__c/listViews/All.listView-meta.xml
force-app/main/default/objects/LostReport__c/listViews/View.listView-meta.xml
force-app/main/default/objects/LostReport__c/validationRules/Cannot_Submit_When_NOTHave_ManagerBuzhan.validationRule-meta.xml
force-app/main/default/objects/LostReport__c/webLinks/submit_approval_process.webLink-meta.xml
force-app/main/default/objects/Lost_Report__c/fields/MC_Code__c.field-meta.xml
force-app/main/default/objects/Lost_Report__c/fields/Other__c.field-meta.xml
force-app/main/default/objects/Lost_Report__c/fields/Specific_Reasons__c.field-meta.xml
force-app/main/default/objects/Lost_Report__c/fields/Status__c.field-meta.xml
force-app/main/default/objects/Lost_Report__c/fields/To_Where__c.field-meta.xml
force-app/main/default/objects/Lost_Report__c/fields/off_time__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/Cancel_Reason__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/CompetitorAsset1__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/CompetitorAsset2__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/CompetitorAsset3__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/CompetitorAsset4__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/CompetitorProduct1__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/CompetitorProduct2__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/CompetitorProduct3__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/CompetitorProduct4__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/DeveloperName__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/LostTotalAmount__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/LostType__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/Lost_By_Company__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/Lost_Reason_Sub__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/Lost_reason_main__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/fields/Proposal_Competitors__c.field-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/recordTypes/PCL_Cancel_report.recordType-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/recordTypes/PCL_Lost_report.recordType-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/recordTypes/PCL_PartLost_report.recordType-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/validationRules/Lost_By_BrandIsNeed.validationRule-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/validationRules/Lost_By_Opportunity_repeated.validationRule-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/validationRules/Lost_By_ProductIsNeed.validationRule-meta.xml
force-app/main/default/objects/Lost_cancel_report__c/webLinks/Submit_report.webLink-meta.xml
force-app/main/default/objects/MB_Opportunity__c/fields/Opportunity_possibility__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/Maintenance_Contract_Asset_Estimate__c.object-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Adjustment_Lower_price__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Adjustment_Upper_price__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Adjustment_ratio_Lower__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Adjustment_ratio_Upper__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Assemble_product__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Asset2__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Asset_Consumption_rate_F__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Asset_Consumption_rate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Asset_Estimate_RMB__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Asset_Forecast_Consumptionrate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Asset_MaxRepairCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Asset_RepairCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Asset__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Asset_real_Consumptionrate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Asset_situation__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Bef_QuotationDay_1Year_Price__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Benchmark_price__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Characteristic__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Check_Object__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Check_Result_Formula__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Check_Result__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Comment__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/ContractAsset_Amont__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/ContractAsset_key__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Contract_Esti_Start_Date__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/CurrentContract_F_asset__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Department__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Discount_Percentage_formula__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/EquipmentGuaranteeFlgTxt__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/EquipmentGuaranteeFlg__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Equipmentrepairamount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Estimate_Cost_Month__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Estimate_Cost_Month_formula__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Estimate_Cost__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Estimate_List_Price_All_Txt__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Estimate_List_Price_All__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Estimate_List_Price_Page__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Estimate_List_Price_Year__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Estimate_List_Price__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Estimate_Trial_Money_formula__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Fifth_category__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/First_category__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Fourth_category__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/GI_scope__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/IS_Reduced_price_approval__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Installation_Site__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Installation_day__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/IsNew__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/LastMContract_Price_F__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/LastMContract_Price__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/LastSFDCArankRepairReturn_day__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Last_MContract__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Last_Second_Years_Repair_Cost_Text__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Last_Third_Years_Repair_Cost_Text__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Last_Third_Years_Repair_MonthF__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Last_Third_Years_Repair_Month__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Last_Three_Year_Repair__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Last_Two_Year_Repair__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Last_User_Contract_Price_formula__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Last_inspection_day__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Lastyear_Repair_Cost_Text__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Maintenance_Contract_Estimate_Status__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Maintenance_Contract_Estimate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Maintenance_Price_Month__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Maintenance_Price_Year__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Monthly_Repair_Cost__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/NotUse_Oxygenated_Water__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/OwnershipMachine_No__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Posting_Date__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/PredictRepairPrice__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Product_Manual_Text__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Product_Manual__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/RecordType_DeveloperName__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Repair_Price_Auto__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Repair_Price__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Repair_Price_pass__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Repair_Sum_Count_Now__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Repair_total_amount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/ReportForm_Installation_Day__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/SP_scope__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Second_category__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Serial_number__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Serial_number_text__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Series_MaxRepairCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Series_RepairCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Seriesrepairamount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Surcharge_Defective_Contract__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/The_Date_Of_Compute_The_RPCost__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Third_Party_Return__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Third_category__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/Three_Years_Repair_Cost_Text__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/UFR_MaxRepairCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/URF_Contract__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/URF_Series__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/X1_BSS__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset_Estimate__c/fields/ifHaveleftInPrevious__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Adjustment_ratio_Lower__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/AssetWhereabouts__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Asset_Consumption_rate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Asset_Months__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Check_object__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Conform_to_the_Adjust__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Current_Price_Should__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Equipment_Amortization_Coefficient__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Equipment_Amortized_Turnover__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Equipment_Last_Money__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Estimate_Cost__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Field1sxq__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/FixNumber__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/General_Branch_Changeflag__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/IF_LastMContract_Taget__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/IF_NA_MCA__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/IF_Renewalrate_Target_Asset_F__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/IF_Target_MC_Asset_F__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/LastMCFixNumber__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Lowest_Insured_Price__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Maintenance_Price_Amount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Maximum_Insured_Price__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Monthly_Equipment_Amortization_Amount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/New_Contract_TypeF__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/NextOpportunity_Stage__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Next_Contract_End_Date__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Next_Contract_Start_Date__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Next_Maintenance_ContractREC__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Next_Maintenance_Contract__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Next_Management_Code__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Over_FM_Year__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Price_Adjust_Now__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Salesdepartment_HP__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Summary_FM_Months__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Summary_FM_Year__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Summary_FZ__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Summary_Price__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Surcharge_Defective_Contract__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Third_Party_Return__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/Total_Equipment_Amortization_Amount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/test111__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Asset__c/fields/test3__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/BuchangApprovalManagerFSE__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Estimate_List_Price_Sum_P__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Estimate_List_Price_Sum_V__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Estimate_List_Price_Sum__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/IS_Reduced_price_approval__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Inquiry_Approval__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Last_Second_Years_Repair_Cost_Text_Sum__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Last_Third_Years_Repair_Cost_Text_Sum__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Lastyear_Repair_Cost_Text_Sum__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Limit_Price_Amount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Maintenance_Contract_Link__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/New_Contract_Type_TxT__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/New_Estimate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Price_Prediction__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/RepairCount_P__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/RepairCount_V__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Send_Email_To_RC__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Surcharge_Defective_Contract__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Third_Party_Return__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Total_Number_Asset_P__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/Total_Number_Asset_V__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URFMContract1__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URFMContract1_endDate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URFMContract1_startDate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URF_LastMContract1_ConCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URF_LastMContract1_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URF_LastMContract2_ConCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URF_LastMContract2_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URF_LastMContract3_ConCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URF_LastMContract3_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URF_LastMContract4_ConCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URF_LastMContract4_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URF_LastMContract5_ConCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URF_LastMContract5_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URF_P_MaxRepairCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URF_P_RepairTime__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URF_V_MaxRepairCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/fields/URF_V_RepairTime__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/recordTypes/Maintenance_Quote.recordType-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/recordTypes/NewMaintenance_Quote.recordType-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/webLinks/CustomAnew.webLink-meta.xml
force-app/main/default/objects/Maintenance_Contract_Estimate__c/webLinks/Terminal.webLink-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/ActualFrequency_Formula__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Actual_Execution_Quantity_Inplan_Sum__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Actual_Execution_Quantity_Summary__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Actual_adjustment_of_current_price__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Assign_EndDate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Check_Object_sum__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Consumption_rate_Gurante__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/ContractAmortizedTurnover_Inquiry__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/ContractCurrentPeriodPaymentAmountGather__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/ContractM__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Contract_Consumption_rate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Contract_Start_Date_F__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Contract_target_num__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/CurrentPeriodPaymentAmount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Current_price_should_be__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/DY_J1__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Department_Class__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Department__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Description__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Due_Inspection_sum__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Estimation_Decision__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/FM__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/FSE_Regional_Assistant__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/FY2022_2H_halfFinancialEndDate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/FY2022_2H_halfFinancialStartDate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/From_warranty_period__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Gurantee_Renew_startDate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/IF_Coverage_Target_HP_F__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/IF_Taget_MC__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/IF_Target_Renew__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Inspection_Time_F__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Inspectup_Plan_sum__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/JingliApprovalManager_Txt__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/LastMContract1_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/LastMContract2_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/LastMContract3_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/LastMContract4_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/LastMContract5_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Limit_Price_Amount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Limit_Price_Amount_in_Word__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Limit_Price__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Months_amortized_Inquiry__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Months_amortized__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Need_Follow_up_People__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/No_Renewal_Reason__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Open_RenewalQuotation__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/PaymentAmountFlag__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/RC_CC2_F__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/RC_CC2__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/RC_CC_F__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/RC_CC__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/RC_Invoice_Window_F__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/RC_Invoice_Window__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/RC_Recognition_Window_F__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/RC_Recognition_Window_HD1_F__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/RC_Recognition_Window_HD1__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/RC_Recognition_Window_HD2_F__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/RC_Recognition_Window_HD2__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/RC_Recognition_Window__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Remaining_Amount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/RepairCount_P__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/RepairCount_V__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Service_Contract_Staff__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Service_contract_target_numberTXT__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Service_contract_target_number__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Small_Repair_Time__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Status2__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Surcharge_Defective_Contract__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Test520__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/Third_Party_Return_Contract__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/TotalContractAmortizationAmount_Inquiry__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_Contract_F__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_LastMContract1_Code__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_LastMContract1_ConCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_LastMContract1_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_LastMContract1__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_LastMContract1_endDate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_LastMContract1_startDate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_LastMContract2_ConCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_LastMContract2_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_LastMContract3_ConCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_LastMContract3_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_LastMContract4_ConCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_LastMContract4_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_LastMContract5_ConCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_LastMContract5_NO__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_P_RepairTime__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/URF_V_RepairTime__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/VM_Contract_Check__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/check_num_c__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/contractAmountForRate__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/mce_create_day__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/off_time__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/one_year_check_num__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/plan_sum_history__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/signUpServiceCount__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/fields/target_number_c__c.field-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/listViews/X01_All.listView-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/listViews/X02_Selling.listView-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/listViews/X03_Contracted.listView-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/listViews/X05_Lost.listView-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/recordTypes/Maintenance_Contract.recordType-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/recordTypes/NewMaintenance_Contract.recordType-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/recordTypes/VM_Contract.recordType-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/validationRules/Cannot_Change_HP.validationRule-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/validationRules/CheckUpper_limitReason.validationRule-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/validationRules/CheckUpper_limitReason2.validationRule-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/validationRules/CheckUpper_limitReasonOther.validationRule-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/validationRules/LimitPrice_Estimation_Conform.validationRule-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/validationRules/LimitPrice_check.validationRule-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/validationRules/Opportunity_Stage_check.validationRule-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/validationRules/URF_Contract_Estimation_Conform.validationRule-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/webLinks/CreateReport.webLink-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/webLinks/CustomNewCopy2.webLink-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/webLinks/MceContractAgentPDF.webLink-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/webLinks/MceContractHpPDF.webLink-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/webLinks/QuarterlyReport.webLink-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/webLinks/SubmitForApproval.webLink-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/webLinks/pre_contract_submit.webLink-meta.xml
force-app/main/default/objects/Maintenance_Contract__c/webLinks/upload_to_sap.webLink-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fieldSets/ImportantProduct.fieldSet-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fieldSets/ImportantProduct_Old.fieldSet-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Can_Repair_Old__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Can_Repair__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Celon_Product_Old__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Celon_Product__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Key_product_147P_Old__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Key_product_147P__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Key_product_155P_Old__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Key_product_155P__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Service_Category1_Old__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Service_Category2_Old__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Service_Category2__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Service_Category3_Old__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Service_Category3__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Service_Category4_Old__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Service_Category4__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Service_Category5_Old__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Service_Category5__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Service_Category6_Old__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Service_Category6__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Service_Category7_Old__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/Service_Category7__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/suitDepartment_Old__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/fields/suitDepartment__c.field-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/recordTypes/EquipmentInfo.recordType-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/recordTypes/GuranteeMain.recordType-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/recordTypes/GuranteePrice.recordType-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/recordTypes/ImportantProduct.recordType-meta.xml
force-app/main/default/objects/Maintenance_Product_Data_Details__c/recordTypes/RepairInfo.recordType-meta.xml
force-app/main/default/objects/Maintenance_Task__c/webLinks/CreateReport.webLink-meta.xml
force-app/main/default/objects/Monthly_Report__c/webLinks/Cancel_submit.webLink-meta.xml
force-app/main/default/objects/Monthly_Report__c/webLinks/Submit.webLink-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/NewMaintenanceReport_Task__c.object-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/ActualDistributionTimesAll_Quarter__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/ActualDistributionTimes_Quarter__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/CorrespondingPeriod__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/CurrentQuarter__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/Distribution_End_Date__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/Distribution_Method__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/Distribution_Period__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/Distribution_Person__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/Distribution_Quarter__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/Distribution_Start_Date__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/Distribution_TimelyRate__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/FinishedNotInSection__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/Is_Generate_Task__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/NewMaintenance_Contract__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/NumberOfPlan_Quarter__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/OverOrCurrent_F__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/OverOrCurrent__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/PastQuarter__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/QuartersNum__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/RP_Contact_Method__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/Receive_Person__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/Task_End_Date__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/Task_Status__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/Task_Type__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/Task__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/UseReportNum__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/contractDateNotInSection__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/fields/reissueBatch__c.field-meta.xml
force-app/main/default/objects/NewMaintenanceReport_Task__c/webLinks/SLADetails.webLink-meta.xml
force-app/main/default/objects/OCM_Management_Province__c/fields/Consum_assistant4__c.field-meta.xml
force-app/main/default/objects/OCM_Management_Province__c/fields/OBA3_Email_Group2__c.field-meta.xml
force-app/main/default/objects/OCM_Management_Province__c/fields/OBA3_Email_Group__c.field-meta.xml
force-app/main/default/objects/OCM_Management_Province__c/fields/OnlinePlatformP1__c.field-meta.xml
force-app/main/default/objects/OCM_Management_Province__c/fields/OnlinePlatformP2__c.field-meta.xml
force-app/main/default/objects/OCM_Management_Province__c/fields/OnlinePlatformP3__c.field-meta.xml
force-app/main/default/objects/OCM_Management_Province__c/fields/Province__c.field-meta.xml
force-app/main/default/objects/OCM_Management_Province__c/fields/Real_Province__c.field-meta.xml
force-app/main/default/objects/OCM_Management_Province__c/listViews/All_AIpingtai.listView-meta.xml
force-app/main/default/objects/OCM_Management_Province__c/listViews/All_bussnisswin.listView-meta.xml
force-app/main/default/objects/OCM_Management_Province__c/listViews/All_sales.listView-meta.xml
force-app/main/default/objects/OCM_Management_Province__c/listViews/All_spare.listView-meta.xml
force-app/main/default/objects/OCM_Management_Province__c/webLinks/update_to_opp.webLink-meta.xml
force-app/main/default/objects/ODS__c/fields/Category3__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/Category4__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/Category5__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/Category6__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/Email__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/Employee_No__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/Job_Category__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/Job_Type__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/LeaveDate__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/MobilePhone__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/Name__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/Null_Update__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/PositionSubsequence__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/Post__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/Rank__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/Salesdepartment__c.field-meta.xml
force-app/main/default/objects/ODS__c/fields/Work_Location__c.field-meta.xml
force-app/main/default/objects/ODS__c/listViews/allhr123.listView-meta.xml
force-app/main/default/objects/ODS__c/listViews/no_email.listView-meta.xml
force-app/main/default/objects/ODS__c/validationRules/Email_Isblank.validationRule-meta.xml
force-app/main/default/objects/ODS__c/validationRules/Name_Isblank.validationRule-meta.xml
force-app/main/default/objects/ODS__c/validationRules/Stay_or_not_Isblank.validationRule-meta.xml
force-app/main/default/objects/OFSHospitalLayout__c/fields/section13__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/OPDPlan__c.object-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/AdditionalSupport__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/Approved_No__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/Approved_Status__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/BuchangApprovalManagerSales_Txt__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/BuchangApprovalManagerSales__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/BuchangApprovalManagerSales_eq_Zongjian__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/Buzhang_Equipment_Manager__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/If_NextMonth_Plan__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/Is_Beyond_Plan__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/Is_keyPoint_Product__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/NeedReport_IsNotNull__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/NeedReport__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/OCSM_Category__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/OPDPlan_Approval_By__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/RentalReson__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/SalesManager_eq_Buzhang__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/SalesdepartmentOption__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/Share_Produc_Leader__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/Status__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/TAT_Distribute_To_Deliver__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/TAT_Over_Arrive_Days__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/TongkuoZongjian__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/ZongjianApprovalManager__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/ZongjianApprovalManager_eq_Tongkuo__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/if_Newest_HaveOpportunity__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/fields/originalOpdRentalApply__c.field-meta.xml
force-app/main/default/objects/OPDPlan__c/listViews/All.listView-meta.xml
force-app/main/default/objects/OPDPlan__c/listViews/Completed_notreport.listView-meta.xml
force-app/main/default/objects/OPDPlan__c/listViews/On_prosess.listView-meta.xml
force-app/main/default/objects/OPDPlan__c/listViews/On_prosess0930.listView-meta.xml
force-app/main/default/objects/OPDPlan__c/listViews/WaitReport.listView-meta.xml
force-app/main/default/objects/OPDPlan__c/sharingReasons/ProducLeaderShare__c.sharingReason-meta.xml
force-app/main/default/objects/OPDPlan__c/validationRules/IF_Status_jhz.validationRule-meta.xml
force-app/main/default/objects/OPDPlan__c/validationRules/OPDDateCheck.validationRule-meta.xml
force-app/main/default/objects/OPDPlan__c/validationRules/OPDNoReportMCode.validationRule-meta.xml
force-app/main/default/objects/OPDPlan__c/validationRules/OPDPlanNewcp.validationRule-meta.xml
force-app/main/default/objects/OPDPlan__c/validationRules/OPDPlan_ImplementDateCompare.validationRule-meta.xml
force-app/main/default/objects/OPDPlan__c/validationRules/OPDTypeNoUpdate.validationRule-meta.xml
force-app/main/default/objects/OPDPlan__c/validationRules/OPDTypeXD.validationRule-meta.xml
force-app/main/default/objects/OPDPlan__c/validationRules/isNewCheckAccount.validationRule-meta.xml
force-app/main/default/objects/OPDPlan__c/webLinks/CommitNeedApproval.webLink-meta.xml
force-app/main/default/objects/OPDPlan__c/webLinks/CustomLink.webLink-meta.xml
force-app/main/default/objects/OPDPlan__c/webLinks/NewOPDButton.webLink-meta.xml
force-app/main/default/objects/OPDPlan__c/webLinks/NewOPDButton_Account.webLink-meta.xml
force-app/main/default/objects/OPDPlan__c/webLinks/NewSparePartsLoanApplication.webLink-meta.xml
force-app/main/default/objects/OPDPlan__c/webLinks/NoReportApplication.webLink-meta.xml
force-app/main/default/objects/OPDPlan__c/webLinks/OPDSupplementaryApplication.webLink-meta.xml
force-app/main/default/objects/OPDPlan__c/webLinks/OPD_Report.webLink-meta.xml
force-app/main/default/objects/OPDPlan__c/webLinks/PostponeReport.webLink-meta.xml
force-app/main/default/objects/OPDPlan__c/webLinks/Reapply.webLink-meta.xml
force-app/main/default/objects/OlympusCalendar__c/fields/Holiday_Days__c.field-meta.xml
force-app/main/default/objects/OlympusCalendar__c/fields/IsHoliday__c.field-meta.xml
force-app/main/default/objects/On_Call__c/On_Call__c.object-meta.xml
force-app/main/default/objects/On_Call__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/On_Call__c/fields/Caller_Phone_Encrypt__c.field-meta.xml
force-app/main/default/objects/On_Call__c/fields/Hospital__c.field-meta.xml
force-app/main/default/objects/On_Call__c/fields/Oncall_Equipment__c.field-meta.xml
force-app/main/default/objects/On_Call__c/fields/Responsible_PersonHP_Encrypt__c.field-meta.xml
force-app/main/default/objects/On_Call__c/validationRules/First_follow_up_time.validationRule-meta.xml
force-app/main/default/objects/On_Call__c/validationRules/Need_Follow_up_result.validationRule-meta.xml
force-app/main/default/objects/On_Call__c/validationRules/On_call_finish_time.validationRule-meta.xml
force-app/main/default/objects/On_Call__c/validationRules/Request_on_call_document_number.validationRule-meta.xml
force-app/main/default/objects/On_Call__c/validationRules/Request_on_call_follow_time_from.validationRule-meta.xml
force-app/main/default/objects/On_Call__c/validationRules/Request_on_call_follow_time_to.validationRule-meta.xml
force-app/main/default/objects/On_Call__c/validationRules/Requst_On_call_complete_time.validationRule-meta.xml
force-app/main/default/objects/On_Call__c/webLinks/CopyPI.webLink-meta.xml
force-app/main/default/objects/Opponent_Bid_Information__c/webLinks/Submit_report.webLink-meta.xml
force-app/main/default/objects/OpportunityFileOrder__c/validationRules/SpecificInquiryFileType.validationRule-meta.xml
force-app/main/default/objects/OpportunityFileOrder__c/validationRules/SpecificInquiryFileType01.validationRule-meta.xml
force-app/main/default/objects/OpportunitySpecialApply__c/webLinks/specSubmit.webLink-meta.xml
force-app/main/default/objects/PAE_DecisionRecordDetail__c/fields/product_code__c.field-meta.xml
force-app/main/default/objects/PBIAuthorization__c/fields/ImportVolumePurchasedata__c.field-meta.xml
force-app/main/default/objects/PBIAuthorization__c/fields/MKPI_2_KPI__c.field-meta.xml
force-app/main/default/objects/PBIAuthorization__c/fields/MMKT_VolumePurchase_A__c.field-meta.xml
force-app/main/default/objects/PBIAuthorization__c/fields/MMKT_VolumePurchase_B__c.field-meta.xml
force-app/main/default/objects/PBIAuthorization__c/fields/VolumePurchaseProduct_Range__c.field-meta.xml
force-app/main/default/objects/PCLLostBrand__c/fields/Brand_Differentiation__c.field-meta.xml
force-app/main/default/objects/PCLLostBrand__c/fields/LostPrices_ThousandY__c.field-meta.xml
force-app/main/default/objects/PCLLostBrand__c/fields/Lost_By_Company_Text__c.field-meta.xml
force-app/main/default/objects/PCLLostBrand__c/fields/Lost_By_Company__c.field-meta.xml
force-app/main/default/objects/PCLLostBrand__c/validationRules/SelectOtherAgent.validationRule-meta.xml
force-app/main/default/objects/PCLLostProduct__c/fields/LostBrandName__c.field-meta.xml
force-app/main/default/objects/PCLLostProduct__c/fields/LostProductName__c.field-meta.xml
force-app/main/default/objects/PCLLostProduct__c/fields/LostProduct__c.field-meta.xml
force-app/main/default/objects/PCLLostProduct__c/fields/ProductCategory__c.field-meta.xml
force-app/main/default/objects/Product2__c/Product2__c.object-meta.xml
force-app/main/default/objects/Product2__c/fields/Can_Repair__c.field-meta.xml
force-app/main/default/objects/Product2__c/fields/Service_Category1__c.field-meta.xml
force-app/main/default/objects/Product2__c/fields/Service_Category2__c.field-meta.xml
force-app/main/default/objects/Product2__c/fields/Service_Category3__c.field-meta.xml
force-app/main/default/objects/Product2__c/fields/Service_Category4__c.field-meta.xml
force-app/main/default/objects/Product2__c/fields/Service_Category5__c.field-meta.xml
force-app/main/default/objects/Product2__c/fields/Service_Category6__c.field-meta.xml
force-app/main/default/objects/Product2__c/fields/Service_Category7__c.field-meta.xml
force-app/main/default/objects/Product2__c/recordTypes/CompetitiveProductsConsumables.recordType-meta.xml
force-app/main/default/objects/Product2__c/recordTypes/CompetitiveProductsHost.recordType-meta.xml
force-app/main/default/objects/Product2__c/recordTypes/OlympusProducts.recordType-meta.xml
force-app/main/default/objects/Product2__c/recordTypes/Sample.recordType-meta.xml
force-app/main/default/objects/ProductURF__c/ProductURF__c.object-meta.xml
force-app/main/default/objects/ProductURF__c/fields/Maintenance_Price_Year_URF_3__c.field-meta.xml
force-app/main/default/objects/ProductURF__c/fields/Maintenance_Price_Year_URF_Max_3__c.field-meta.xml
force-app/main/default/objects/ProductURF__c/fields/Maintenance_Price_Year_URF_Max__c.field-meta.xml
force-app/main/default/objects/ProductURF__c/fields/Maintenance_Price_Year_URF__c.field-meta.xml
force-app/main/default/objects/ProductURF__c/fields/UFR_Maintenance_Price_Month_3__c.field-meta.xml
force-app/main/default/objects/ProductURF__c/fields/UFR_Maintenance_Price_Month_Max_3__c.field-meta.xml
force-app/main/default/objects/ProductURF__c/fields/UFR_Maintenance_Price_Month_Max__c.field-meta.xml
force-app/main/default/objects/ProductURF__c/fields/UFR_Maintenance_Price_Month__c.field-meta.xml
force-app/main/default/objects/Product_CategoryPrice_Table__c/fields/OCM_Term__c.field-meta.xml
force-app/main/default/objects/Product_Register_Link__c/fields/product_code__c.field-meta.xml
force-app/main/default/objects/Product_Register_Link__c/fields/product_name__c.field-meta.xml
force-app/main/default/objects/Product_Score_Table_History__c/fields/ETAPP_key__c.field-meta.xml
force-app/main/default/objects/Product_Score_Table_History__c/recordTypes/Agency.recordType-meta.xml
force-app/main/default/objects/Product_Score_Table_History__c/recordTypes/Company.recordType-meta.xml
force-app/main/default/objects/Product_Score_Table_History__c/recordTypes/TargetPDCA.recordType-meta.xml
force-app/main/default/objects/Product_Score_Table__c/fields/OCM_Term__c.field-meta.xml
force-app/main/default/objects/PromotionHead__c/PromotionHead__c.object-meta.xml
force-app/main/default/objects/PromotionHead__c/fields/NormalDiscount__c.field-meta.xml
force-app/main/default/objects/PromotionHead__c/fields/Status__c.field-meta.xml
force-app/main/default/objects/PromotionHead__c/listViews/All.listView-meta.xml
force-app/main/default/objects/PromotionHead__c/listViews/ViewCu.listView-meta.xml
force-app/main/default/objects/PromotionHead__c/listViews/ViewTe.listView-meta.xml
force-app/main/default/objects/PromotionHead__c/listViews/ViewYi.listView-meta.xml
force-app/main/default/objects/PromotionSalesProducts__c/fields/Name__c.field-meta.xml
force-app/main/default/objects/PromotionSales__c/fields/IsAssistantAppliedOutTime__c.field-meta.xml
force-app/main/default/objects/PromotionSales__c/fields/Name__c.field-meta.xml
force-app/main/default/objects/QIS_M_BC__c/fields/OCM_Repair_Mail1__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/QIS_Report__c.object-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/AD_Status__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/ApproveBuZhang__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/ApproveManager__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/AssetProModel__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/AwareDateShow__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/AwareDate__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/AwareDatecopy__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Barcode__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/CDS_date__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/CFDA_No_Formular__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Caller_phone_Encrypted__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Comment__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/ComplaintStatus__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Delay_Day__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/FSE_Special_Mail_F__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/FSE_Special_Manager_Mail_F__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Generation_Source__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Hospital__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Is_Box__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/MBC_AwareDate__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/OCM_Manager_Mail_F__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/OCM_Member_Mail_F__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/OCM_Repair_Mail1_F__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/OCM_Repair_Mail_F__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/OCM_quolity_owner_SN__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/OCM_quolity_owner__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/OCSMAdministrativeReportDate__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/OCSMAdministrativeReportNumber__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/OCSMAdministrativeReportStatus__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/OSH_Manager__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/ProduceCompany_formular__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/ProductValidateTo_New__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/QIS_Market_Category__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/QIS_Reply_Comment__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/QisSubOrder__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Responsible_Person_HP_Encrypted__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Sent_ENG_T4__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Sent_ENG__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Sent_ET_T4__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Sent_ET__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Sent_EndoRapid_T4__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Sent_EndoRapid__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/Trable_occur_daY_collect__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/WorkLocation_CC_Mail_F__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/consumable__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/is_CNBuy__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/fields/usage_frequence__c.field-meta.xml
force-app/main/default/objects/QIS_Report__c/listViews/status_QIS.listView-meta.xml
force-app/main/default/objects/QIS_Report__c/recordTypes/AnswerComp.recordType-meta.xml
force-app/main/default/objects/QIS_Report__c/recordTypes/Comp.recordType-meta.xml
force-app/main/default/objects/QIS_Report__c/recordTypes/Final_Lock.recordType-meta.xml
force-app/main/default/objects/QIS_Report__c/recordTypes/OSH.recordType-meta.xml
force-app/main/default/objects/QIS_Report__c/recordTypes/QISRecordType1.recordType-meta.xml
force-app/main/default/objects/QIS_Report__c/recordTypes/RC.recordType-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/ApplyMus_SetUsageProduct.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/ApplyMust_AfterFailureInformation.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/ApplyMust_BreakORFallOff.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/ApplyMust_Delay15Min.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/ApplyMust_DelayReportReason.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/ApplyMust_FailureQInHospital.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/ApplyMust_InformationFrom.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/ApplyMust_UseFailProductFinish.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/ApplyMust_ifDeadHurt.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/CIC_Only_Create_AoHui.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/Charege_to_Customer_not_select_special.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/OSH_input_finish_chk3.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/Ocsm_Cannot_Change_Judgment.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/Opera_Save_Check.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/QIS_MBC_replay_INPUT.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/Troubule_day_smaller_than_contacted_day.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/check_SaveIMF_AE_PAE.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/consumableRequest.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/validationRules/isCelon.validationRule-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/Cancel_QIS_request.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/Create_QIS_From_Asset.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/CustomLink1.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/M_BC_finaly_reply.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/OCM_Submit.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/OCSMNoToReport.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/OCSMToReport.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/OCSM_Nogoods.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/OSH_Inspect.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/OSH_Nogoods.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/OSH_Recieved.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/OSH_Submit.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/QISAgree.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/QIS_Intake_universal_code.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/QIS_SC.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/QIS_Universal_failure_code.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/RC_CDS_complete.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/RC_Recieved.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/RC_Submit.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/RC_inspection_complete_date.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/SendQIS.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/SendQISToEtQ.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/copy_QIS.webLink-meta.xml
force-app/main/default/objects/QIS_Report__c/webLinks/create_repair.webLink-meta.xml
force-app/main/default/objects/QIS_SC_Report__c/webLinks/SC_Submit.webLink-meta.xml
force-app/main/default/objects/QuoteIraiLineItem__c/fields/CanNotCancelledGurantee__c.field-meta.xml
force-app/main/default/objects/QuoteIrai__c/fields/Agency1_entrust__c.field-meta.xml
force-app/main/default/objects/QuoteIrai__c/fields/CreatedTime__c.field-meta.xml
force-app/main/default/objects/QuoteIrai__c/fields/EditLink__c.field-meta.xml
force-app/main/default/objects/QuoteIrai__c/fields/EntrustmentDate__c.field-meta.xml
force-app/main/default/objects/QuoteIrai__c/fields/Headquarters__c.field-meta.xml
force-app/main/default/objects/QuoteIrai__c/fields/LastModifiedTime__c.field-meta.xml
force-app/main/default/objects/QuoteIrai__c/fields/Lead__c.field-meta.xml
force-app/main/default/objects/QuoteIrai__c/fields/Noteplus__c.field-meta.xml
force-app/main/default/objects/QuoteIrai__c/fields/OcsmProvince__c.field-meta.xml
force-app/main/default/objects/QuoteIrai__c/fields/Opportunity__c.field-meta.xml
force-app/main/default/objects/QuoteIrai__c/fields/QuotationNo__c.field-meta.xml
force-app/main/default/objects/QuoteIrai__c/fields/QuoteIrai_Status__c.field-meta.xml
force-app/main/default/objects/QuoteIrai__c/fields/Urgent__c.field-meta.xml
force-app/main/default/objects/QuoteIrai__c/fields/cancelMultiyearInsurance__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/ReceivingNoteDetail__c.object-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/AccepDataConfirmTime_Day__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/AccepDataConfirmTime_Hour__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/AcceptDataArrivalRequestAgainTime_Day__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/AcceptDataArrivalRequestAgainTime_Hour__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/AcceptDataConfirmAgainTime_Day__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/AcceptDataConfirmAgainTime_Hour__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/AcceptanceComments__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/AcceptanceResult__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/AcceptanceStaff__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/AcceptanceTime__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Acceptance_Quantity__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/After_Inspection_date__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/After_Inspection_time__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Arrival_in_wh__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Arrival_wh_Date__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Arrival_wh_Flag_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Arrival_wh_Request_time__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Arrival_wh_time__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Asset_loaner_category_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Barcode_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Barcode__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Change_Point__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Check_Result_Sum__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/CodeKey__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/DataConfirmationAgainStaff__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/DataConfirmationAgainTime__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/DataConfirmationAgain__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/DataConfirmationStaff__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/DataConfirmationTime__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/DataConfirmation__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/DataMigration_Flag__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Default_Fixture_Arrival_Process__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Default_Fixture_Arrival_Product__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Delete_Flag__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Detail_Finish__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/EquipmentSet_Managment_Code_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/EquipmentSet_Managment_Code__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Equipment_Type_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Equipment_Type__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/FSD_Id__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/FSD_OneToOneAccessory_Cnt_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/FSD_OneToOneAccessory_Cnt__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Fixture_Arrival_Process__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Fixture_Arrival_Product__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Fixture_Model_Name_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Fixture_Model_No_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Fixture_Model_No_text__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Fixture_QRCode_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Fixture_QRCode__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Fixture_Set_Detail__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Fixture_Set_New_Quantity__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Guarantee_End_Check_Text__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Guarantee_End_Check__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/ImageAssetBase64__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/ImageSerialBase64__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/IndexFromUniqueKey_Text__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/IndexFromUniqueKey__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/InspectionAcceptanceTime_Day__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/InspectionAcceptanceTime_Hour__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Inspection_Cnt__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Inspection_Comment__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Inspection_result_after_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Inspection_result_after__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Inspection_staff_After__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Internal_Asset_number_key__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Internal_asset_location__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Is_Body_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Is_Body__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Is_First_RND_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Is_Internal_Asset__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Is_Optional_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Loaner_accsessary_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Loaner_accsessary__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Loaner_centre_mail_address_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Loaner_centre_mail_address__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Manage_type_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Manage_type__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Model_Check_Text__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Model_Check__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/NMPA_Approbation_No_Check_Text__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/NMPA_Approbation_No_Check__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/OT_CODE__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/OneToOne_Flag__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Packing_list_Fixture_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/PeriodOfUse_Final__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/PeriodOfUse_Old_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/PeriodOfUse__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Posting_Date_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Produce_Company_Check_Text__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Produce_Company_Check__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/ProductArrivalTime_Day__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/ProductReceiptTotalTime_Day__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Product_Arrival_Product__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Product_Name_Check_Text__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Product_Name_Check__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Product_Name_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Product_Old_Model_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Product_Serial_No__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Product_category_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Product_category__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Production_Date_Check_Text__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Production_Date_Check__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/RNDAssert__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/RND_Status__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Received_Confirm_Date_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Received_Confirm_Time_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Received_Quantity__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/ReceivingNoteDetailNo__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/ReceivingNoteId_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/ReceivingNoteNo_F_New__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/ReceivingNoteNo_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/ReceivingNoteSummary__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/ReceivingNote__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/RejectStaff__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Reject_Reason__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Reject_Time__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Rental_Num__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/SalesProvince__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Salesdepartment_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Salesdepartment__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/SerialNumberLink__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/SerialNumber_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/SerialNumber_Origin_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/SerialNumber_Origin__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/SerialNumber__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Set_Arrival_Product__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/SortInt_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/StockIn_wh_check_staff__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/UniqueKey__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/VF_Rental_Num__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Vender_Check_Text__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/Vender_Check__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/WH_location__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/WarehouseAcceptanceTime_Day__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/WarehouseAcceptanceTime_Hour__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/WarehouseArrivalTime_Day__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/WarehouseArrivalTime_Hour__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/WarehouseReceiptTime_Day__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/passNo2__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/passNo3__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/unknow_serial_NO_product_F__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/fields/unknow_serial_NO_product__c.field-meta.xml
force-app/main/default/objects/ReceivingNoteDetail__c/validationRules/Main_Fields_Cannot_Blank.validationRule-meta.xml
force-app/main/default/objects/ReceivingNoteSummary__c/fields/AssetContact__c.field-meta.xml
force-app/main/default/objects/ReceivingNote__c/fields/ContactPerson__c.field-meta.xml
force-app/main/default/objects/ReceivingNote__c/fields/DateOfDelivery__c.field-meta.xml
force-app/main/default/objects/ReceivingNote__c/listViews/All.listView-meta.xml
force-app/main/default/objects/ReceivingNote__c/listViews/All1.listView-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_DetailPower_B__c/fields/IsPunishObj__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_DetailPower_B__c/fields/LostReportApprovalDate__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_DetailPower_B__c/fields/Salesdepartment_before__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_DetailPower_B__c/fields/createDate__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fieldSets/MainFixtureSelect_RightFieldSet.fieldSet-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Add_Request_approval_time__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/After_Inspection_time_F_New__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/After_Inspection_time_Final__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/After_inspection_day_New__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Asset__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Confirm_Lost_Date__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/ExternalKey__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Fixture_Set_Detail__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Inspection_result_after_NG_F_New__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Inspection_result_after_New__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Is_Body__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Loaner_Giveup_Time__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Loaner_accsessary__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Loaner_cancel_reason__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/LostReportApprovalDate__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Lost_item_check_time__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Lost_item_giveup__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Over90DayObject__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Over_Loaner_Detail_Status__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Pre_NG_abord_reason__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Pre_inspection_day__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Queue_Time_F__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Queue_Time__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Return_wh_chenk_staff__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Salesdept_Apply__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Salesdept__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Shipment_request_New__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Shipment_request_day__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/Shipment_request_time2_New__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/StockDown_New__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/StockDown_date__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/StockDown_time_New__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/fields/StockDown_time__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/validationRules/Inspection_After_NG_Aborted.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/validationRules/Inspection_After_NG_Aborted_Comment.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/validationRules/Receive_After_NG_Aborted.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/validationRules/Start_day_need_to_bigger_than_today.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set_Detail__c/webLinks/Clear_Return_DeliverySlip.webLink-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fieldSets/RentalApplyExtensions_L.fieldSet-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Add_Day_For_RC__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Borrow_day__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Condition_Final_Reply_Days__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Condition_Seven_Days__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Condition_X21_Days__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Delay_Final_Reply_Days_By_Holiday__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Delay_Final_Reply_Days__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Extend_Date_F__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Extend_Final_reply_day_F_Holiday_backup__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Extend_Final_reply_day_Text_Holiday_back__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/FGuzhangpaicha_Final_reply_day_F_Holiday__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Final_reply_day_Holiday_backup__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Final_reply_day__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/First_RAESD_LostReportApprovalDate__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Guzhangpaicha_Final_reply_day_F__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Guzhangpaicha_Final_reply_day_Text_Holid__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Loaner_cancel_reason__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Loaner_categoryI_F__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Min_Final_reply_day_F_Holiday_backup__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Min_Final_reply_day_Text_Holiday_backup__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/NG_Final_reply_day_F_Holiday_backup__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/NG_Final_reply_day_F__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/NG_Final_reply_day_Text_Holiday_backup__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Old_Rental_Apply__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/QIS_Final_reply_day_F_Holiday_backup__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/QIS_Final_reply_day_F__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/QIS_Final_reply_day_Text_Holiday_backup__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Rental_Apply__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Repair_cancel_Final_reply_day_F_Holiday__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Repair_cancel_Final_reply_day_F__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Repair_cancel_Final_reply_day_Text_Holid__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Repair_delete_Final_reply_day_F_Holiday__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Repair_delete_Final_reply_day_Text_Ho__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Return_to_office_Final_reply_day_F_Ho__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Return_to_office_Final_reply_day_F__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Return_to_office_Final_reply_day_Text_Ho__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Return_to_office_Final_reply_day_U_RC_FH__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Return_to_office_Final_reply_day_U_RC_F__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Return_to_office_Final_reply_day_U_RC_Ho__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Set_StockDown_time_New__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Yigoudaihuo_Final_reply_day_F_Holiday__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Yigoudaihuo_Final_reply_day_Text_Holiday__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Yizhouweixiu_Final_reply_day_F_Holiday__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/Yizhouweixiu_Final_reply_day_TextHoliday__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/fields/test__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/validationRules/Can_Not_Change_Received_Confirm.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/webLinks/Cancel_Select.webLink-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/webLinks/Clear_Return_DeliverySlip.webLink-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/webLinks/CustomSubmit.webLink-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/webLinks/EquipmentSetRental_Order.webLink-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/webLinks/Loaner_arranged_e_mail.webLink-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/webLinks/Reassign.webLink-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/webLinks/RentalFixtureSetAssign.webLink-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/webLinks/RentalFixtureSetAssignAgency.webLink-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/webLinks/RentalFixtureSetSelect.webLink-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/webLinks/Select_Substitute.webLink-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/webLinks/Split_Apply.webLink-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/webLinks/Unassign.webLink-meta.xml
force-app/main/default/objects/Rental_Apply_Equipment_Set__c/webLinks/refresh_status.webLink-meta.xml
force-app/main/default/objects/Rental_Apply_Power_BI__c/fields/RAOPDBuchang__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Sequence__c/fields/Apply_Set_Detail_ExternalKey_Queue__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Sequence__c/fields/Apply_Set_Detail_ExternalKey__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Sequence__c/fields/ExternalKey_Series_No__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Sequence__c/fields/ExternalKey__c.field-meta.xml
force-app/main/default/objects/Rental_Apply_Sequence__c/fields/Series_Unequal_Queue_Flag__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/Rental_Apply__c.object-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Approved_State_Create__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/BuchangApprovalManagerSalesSubmit__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/CL5_CL5_CL6_CL6__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Cancel_Reason__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Direct_Shippment_Address_Encrypt__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Equipment_Type_F__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Extension_List_RentalApply__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Extension_Type__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Follow_pcl_status3__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/History_Extension_Much_ID__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Inquiry_Promotion_Formula_New__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Inquiry_Promotion__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Inquiry_Status_History__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Inquiry_Status_Now__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Need_Buzhang_Sale_NewApp__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/OBA3_Email_Group__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/OPDBuchangApprover__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/OPDBuchang_Text__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/OPDBuchang__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/OPDManagerApprover__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/OPDManagerText__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/OPDManager__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/OPDType__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/OPD_Share_one_id__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Phone_Number_Encrypt__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/ProducLeader_Share__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/SF_Id__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/SalesdeptSelect__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Status_of_Inquiry_Promotion__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/Strategic_user__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/faraway__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/haveChange__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/requestNoJoinStr1__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/fields/test1011__c.field-meta.xml
force-app/main/default/objects/Rental_Apply__c/listViews/All.listView-meta.xml
force-app/main/default/objects/Rental_Apply__c/listViews/All_ReturnShipped.listView-meta.xml
force-app/main/default/objects/Rental_Apply__c/listViews/All_Sellected.listView-meta.xml
force-app/main/default/objects/Rental_Apply__c/listViews/All_Shipped.listView-meta.xml
force-app/main/default/objects/Rental_Apply__c/listViews/All_Shipped_check.listView-meta.xml
force-app/main/default/objects/Rental_Apply__c/listViews/All_Waiting_approved01.listView-meta.xml
force-app/main/default/objects/Rental_Apply__c/listViews/All_approved.listView-meta.xml
force-app/main/default/objects/Rental_Apply__c/listViews/X033.listView-meta.xml
force-app/main/default/objects/Rental_Apply__c/recordTypes/AgencyRequest.recordType-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/After_Approval_Can_Not_Change_Status.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/After_Request_approve.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/After_Request_approve_PIPL.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/After_Request_shipping.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/Cannot_Apply_From_The_OPD.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/Cannot_Set_Hope_Lonaer_date_Num.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/Cannot_Submit_When_NOTHave_ManagerBuzhan.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/Check_Opd_Plan_FXH.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/Check_Opd_Plan_XH.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/Cross_Region_Assign.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/For_Repair_loaner_Need_repair_number.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/HP_Recieved_Required_Check.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/Need_Opp_Zhucan.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/NotEditName.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/Purpose2_RepairUser_Have_Contract.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/Purpose2_RepairUser_Have_Flag.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/Repair_Create_RAC_Rule.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/Repair_Status_flag_Confim.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/Request_day_need_to_bigger_than_today.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/Request_not_RC_return_for_repair_apply.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/Request_return_day_date_check.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/validationRules/System_Auto_Cannot_Modify.validationRule-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/Add_submit_approval_process.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/All_Delivery_btn.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/CopyPI.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/Copy_To_Rental.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/EquipmentRentalApply_FromAccount2.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/EquipmentRentalApply_FromCampaign21.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/EquipmentRentalApply_FromOPD2.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/EquipmentRentalApply_FromOPP2.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/EquipmentRentalApply_FromQIS2.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/EquipmentRentalApply_FromRepair2.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/EquipmentRentalApply_FromSA.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/EquipmentRentalPDF.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/EquipmentRentalPicturePDF.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/EquipmentSetRental_Order.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/EquipmentSetRental_Order2.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/Loaner_arranged_e_mail.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/Lost.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/NewTransferApply.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/all_received_fse.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/returnDeliverySlip.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/submit_approval_process.webLink-meta.xml
force-app/main/default/objects/Rental_Apply__c/webLinks/topInQueue.webLink-meta.xml
force-app/main/default/objects/RepairAgainAn__c/RepairAgainAn__c.object-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/ActionOCM__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/ActionOSH2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/AnalysisOCM__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/AnalysisOSH2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/AnalysisReasonOSH2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Complaint_confirm2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Complaint_confirm__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Complaint_otherFault2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Complaint_otherFault__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Countermeasures2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Countermeasures__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Customer_Describe__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Dectect_Picture3_URL__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Dectect_Picture3__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Dectect_Picture4_URL__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Dectect_Picture4__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Delivered_Product__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Incharge_Staff__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/InspectionComment__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/InspectionFailureCause_Last__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/JudgementOSH2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/LastDateCnt__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OCM_Confirmation_Date__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OCM_Confirmer__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OCSM_Approve_Status__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Accept_Day__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Auditor2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Auditor__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Confirmation_Date2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Confirmer2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Dectect_Picture4__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Dectect_Picture5_URL__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Dectect_Picture5__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Dectect_Picture6_URL__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Dectect_Picture6__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Dectect_Picture7_URL__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Dectect_Picture7__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Dectect_Picture8_URL__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Dectect_Picture8__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/OSH_Detector2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/RC_Confirmer__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/RC_Describe__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/RepairAgainAn_Approve_Confirm2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/RepairAgainAn_Approve_Confirm__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/RepairAgainAn_Approve_applyDate2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/RepairAgainAn_Approve_applyDate__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/RepairAgainAn_Approve_status2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/RepairAgainAn_Approve_status__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/RepairAgain_Status__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/ResponseNew__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Response_RF_User1__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Response_RF_User2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Response_RF_User3__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Response_RF_User4__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Response_RF_User5__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Response__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/SORC__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/SerialNumber1__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Start_RepairAgainAn_Day__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/Warranty_Category__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/is_RC_confirm__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/issue_QIS_M_BC2__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/issue_QIS_M_BC__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/fields/repairLast__c.field-meta.xml
force-app/main/default/objects/RepairAgainAn__c/recordTypes/RecordType.recordType-meta.xml
force-app/main/default/objects/RepairAgainAn__c/recordTypes/RepairAgainRecordType1.recordType-meta.xml
force-app/main/default/objects/RepairAgainAn__c/recordTypes/RepairAgainRecordType2.recordType-meta.xml
force-app/main/default/objects/RepairAgainAn__c/recordTypes/RepairAgainRecordType3.recordType-meta.xml
force-app/main/default/objects/RepairAgainAn__c/recordTypes/RepairAgainRecordType4.recordType-meta.xml
force-app/main/default/objects/RepairAgainAn__c/webLinks/FSE_Submit.webLink-meta.xml
force-app/main/default/objects/RepairAgainAn__c/webLinks/OCSMFollowEnd.webLink-meta.xml
force-app/main/default/objects/RepairAgainAn__c/webLinks/OSHAccept.webLink-meta.xml
force-app/main/default/objects/RepairAgainAn__c/webLinks/OSHFollowEnd.webLink-meta.xml
force-app/main/default/objects/RepairAgainAn__c/webLinks/PDF_RepairAgain_OCSM.webLink-meta.xml
force-app/main/default/objects/RepairAgainAn__c/webLinks/PDF_RepairAgain_OSH.webLink-meta.xml
force-app/main/default/objects/RepairAgainAn__c/webLinks/PDF_RepairAgain_RC.webLink-meta.xml
force-app/main/default/objects/RepairAgainAn__c/webLinks/RC_confirm.webLink-meta.xml
force-app/main/default/objects/RepairAgainAn__c/webLinks/new_M_BC.webLink-meta.xml
force-app/main/default/objects/RepairSubOrder__c/RepairSubOrder__c.object-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/ActualVisitDateSecon__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/ActualVisitDateThird__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/ActualVisitTimeFirst__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/ActualVisitTimeSecond__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/ActualVisitTimeThird__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/ApplicanterPhone__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/Applicanter__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/AssetModel__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/CancelleRepairTime__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/Department__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/Fault_Date__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/PlannedVisitDate__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/ProblemDescription__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/ProcessResult__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/ReceiverDate__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/ReceiverTime__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/Receiver__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/RepairApplicantName_Encrypted__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/RepairApplicantName__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/RepairApplicantTel_Encrypted__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/RepairApplicantTel__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/RepairCancelReason__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/RepairFinishDate__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/RepairTime__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/ResponseResultDesc__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/ResponseResultType__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/SFDCRepairApplyDate__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/StartTimeSecond__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/StartTimeThird__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/State__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/fields/Status__c.field-meta.xml
force-app/main/default/objects/RepairSubOrder__c/listViews/RepairSubList_Completed.listView-meta.xml
force-app/main/default/objects/RepairSubOrder__c/listViews/RepairSubList_Pending.listView-meta.xml
force-app/main/default/objects/RepairSubOrder__c/listViews/View_sheng.listView-meta.xml
force-app/main/default/objects/RepairSubOrder__c/webLinks/ApplyForQIS.webLink-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Asset_day__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/CreatedByLocation_sys__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/CreatedByProfileName_sys__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Discount_ratio_denominator__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Discount_reason__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Discount_reason_list_comma_c__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Equipment_Type__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/FSE_Main_TongKuoZongJian__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Failure_Source__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Fixture_Model_No_F__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Internal_Asset_number_key__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Internal_asset_location__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Loaner_Discount_Price__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Loaner_repair_sys__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/RentalApplyDiscountApplyPersonEmail_sys__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/RentalApplyDiscountApplyPerson__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Rental_Apply_AcceptWindow_Date__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Rental_Apply_Director_Date__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Rental_Apply_Discount_Reason__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Rental_Apply_Discount_Request_Date__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Rental_Apply_Discount_Status__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Rental_Apply_SeniorDirector_Date__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Repair_count__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Request_discount_amount__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Request_discount_price__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Request_discount_ratio__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/Spares_Background_Description__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/fields/callback_corresponding__c.field-meta.xml
force-app/main/default/objects/Repair_Quotation__c/validationRules/Edit_Disabled_When_Repair_Finished.validationRule-meta.xml
force-app/main/default/objects/Repair_Quotation__c/validationRules/need_discount_reason.validationRule-meta.xml
force-app/main/default/objects/Repair_Quotation__c/webLinks/Discount_Request.webLink-meta.xml
force-app/main/default/objects/Repair_Quotation__c/webLinks/RentalApplyDiscountApproval.webLink-meta.xml
force-app/main/default/objects/Repair_Quotation__c/webLinks/ServiceCutPriceApply.webLink-meta.xml
force-app/main/default/objects/Repair__c/Repair__c.object-meta.xml
force-app/main/default/objects/Repair__c/fields/AD_Status__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Address_AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Address_Contacts_Encrypt__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Address_Contacts_Name_Encrypt__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Address_Telephone_Encrypt__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Address_Type_Index__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Address_ZipCode_Encrypt__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Address_type__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Advance_Payment_Flag__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Assistant_Mail_Address__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/AwaitToSendAWS__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/AwareDateShow__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/AwareDate__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/AwareDatecopy__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Aware_date2__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Barcode__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/CompanyCodeOfEquipment__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/CompanyOfEquipment_owner__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Contact_AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Contain_UseRSA__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/CurrentPeriodPaymentAmountGather__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/CurrentPeriodPaymentAmount__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/DOJ_Status__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/DW_Sign__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/DateReceiptQuestions__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Day_later_30__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Day_later_366__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Delay_Day__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Dept_is_active__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Detailed_Address_Encrypt__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Detailed_Address__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Dummy_Maintenance_Contract_No_F__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Effective_RentalApply_No__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Encrypt_Update_Flag__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/FSE_Main_WorkLocation__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/FSE_State__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/FailureYear__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Field3__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/IF_ContractUser__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Incharge_Staff_Email__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Invalid_check__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Invoice_Date__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Is_Box__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Limit_Price__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/ListPrice__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/MAFINAL__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/MAINITIAL__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/MBC_AwareDate__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/NFM105__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/NewProductGuarante_Formula__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/OCM_quolity_owner_SN__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/OCM_quolity_owner__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/OCSM_Manager_Mail_F__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/OSH_Affirmant__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/OSH_ConfirmationDate__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/OSH_DOJ_Mail__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/OSH_quolity_owner__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Offer_Rental__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/PAE_email_F__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/PartsreadyDate__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/PaymentAmountFlag__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/ProblemOccurredSelect__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/ProblemOccurred__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/ProductValidateTo_New__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/ProductValidateTo__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/ProvinceCodeOfEquipment__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/RC_Mail_Address1__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/RC_Mail_Address__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Recall_Correspondence__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/ReceiverTime__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/RepairAgainAn_Status__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/RepairReasonTrigger__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/RepairSource_Txt__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Repair_Applicant_Encrypt__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Repair_Date__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Repair_Determine__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Repair_Start_Date__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/ReturnOrderReceive__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/ReturnOrderSendDate__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Returns_Product_way__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/SalesOfficeCode_selection__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Status1Text__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/TAT_Agrees_to_Quote_Days__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/URFLimitSerial__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Usage_Ratio_Price_Contract__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Usage_Ratio_Price_Guarantee__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Usage_Ratio_Price_Service__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/Usage_Ratio_Price__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/UseFailProductFinish__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/ZFLAG_CGSX__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/ZFLAG_SX__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/address_Telephone__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/do_not_repair_return_application__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/is_CNBuy__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/is_aohui_product__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/part_arrangement_complete__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/subtract_Ordered_Occurrence__c.field-meta.xml
force-app/main/default/objects/Repair__c/fields/work_location_select__c.field-meta.xml
force-app/main/default/objects/Repair__c/listViews/All.listView-meta.xml
force-app/main/default/objects/Repair__c/listViews/All2.listView-meta.xml
force-app/main/default/objects/Repair__c/listViews/All2111.listView-meta.xml
force-app/main/default/objects/Repair__c/listViews/Finished_repair_not_return.listView-meta.xml
force-app/main/default/objects/Repair__c/listViews/Recentry_Updated.listView-meta.xml
force-app/main/default/objects/Repair__c/listViews/testzyh.listView-meta.xml
force-app/main/default/objects/Repair__c/recordTypes/RecordType.recordType-meta.xml
force-app/main/default/objects/Repair__c/recordTypes/Repair.recordType-meta.xml
force-app/main/default/objects/Repair__c/validationRules/Aohui_Product_Select_Seivice.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_AfterFailureInformation.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_BreakORFallOff.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_DateReceiptQuestions.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_Delay15Min.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_DelayReportReason.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_FailureQInHospital.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_InformationFrom.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_OperationOrExaminationName.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_ProblemOccurred.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_ProblemOccurredOther.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_ProductFailureRelated.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_ReportAdverseEvents.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_SubOrderCompleteDate_Same.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_SupportingProducts.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_UseFailProductFinish.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_WhatProject.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/ApplyMust_ifDeadHurt.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/Aset_AMM_Repair_chk.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/Aset_SORC_Repair_chk.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/DateReceiptQuestionsAndFailureDate.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/Edit_Disabled_When_Finished.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/Incharge_Staff_Changed.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/Incharge_Staff_invalid.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/MaintenancePredictionVerification.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/Must_Be_Dept_Check.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/No_ChangeIF_After_Draf.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/Repair_Product_Direct_SORC.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/Repair_Product_Input_Day.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/Request_input_collect_money_date.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/Send_NFM103_Chk1.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/When_NFM103_Required.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/When_NFM103_With_Repairing.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/cannot_send_yanshoudan_before_return_ass.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/isCelon.validationRule-meta.xml
force-app/main/default/objects/Repair__c/validationRules/work_location_select_self_or_4RC.validationRule-meta.xml
force-app/main/default/objects/Repair__c/webLinks/ASRC_Editor.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/AS_AC_Editor.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/Address.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/Copy_Repair.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/Create_Repair_From_Asset.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/Create_Repair_From_Department.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/Create_Repair_From_OnCall.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/Create_Repair_From_QIS.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/CustomDelete.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/LabelPrint.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/OCSMNoToReport.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/OCSMToReport.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/Ready_NFM103.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/Repair_Return_Analysis.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/SendRepairsToEtQ.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/Send_NFM103.webLink-meta.xml
force-app/main/default/objects/Repair__c/webLinks/Yanshoudan_request.webLink-meta.xml
force-app/main/default/objects/Repair_reason__c/fields/Insert_Check__c.field-meta.xml
force-app/main/default/objects/ReportMemo__c/ReportMemo__c.object-meta.xml
force-app/main/default/objects/ReportMemo__c/fields/Account_Delay_Apply__c.field-meta.xml
force-app/main/default/objects/ReportMemo__c/fields/Inquiry_form__c.field-meta.xml
force-app/main/default/objects/ReportMemo__c/fields/Opportunity__c.field-meta.xml
force-app/main/default/objects/ReportMemo__c/fields/Report__c.field-meta.xml
force-app/main/default/objects/Report__c/Report__c.object-meta.xml
force-app/main/default/objects/Report__c/fields/AD_Status__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/AE_DetermineResult__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Asset_return_day2__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/AwareDate__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Caller_phone_c_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/ComplaintStatus__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Complaint_remarks__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Daily_Report__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Damage_For_Doc_Or_Pat__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/HospitalDepartment_RecordTypeName_Txt__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/HospitalDepartment_RecordTypeName__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Hospital_Department__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Informed_Date__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Key_product1__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Key_product1_wave__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Key_product2__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Key_product2_wave__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Key_product3_wave__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Key_product4_wave__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Key_product5_wave__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Key_product_wave__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Medical_History_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Model_No__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/OCSM_Manager_Mail_F__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/OCSM_Manager_Mail__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Occur_Date__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/PAE_email_F__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/PAE_email__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Person_In_Charge_Text_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Practitioner1_Part_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Practitioner1__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Practitioner2_Part_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Practitioner2__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Practitioner3_Part_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Practitioner3__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Practitioner4_Part_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Practitioner4__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Practitioner5_Part_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Practitioner5__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Product_Serial_No__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Professor_sigh_text_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Relevant_information__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Responsible_Person_HP_c_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Salesdepartment_Text__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/Staff_Info_Manual_c_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/VOC_Informer_Contact_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/VOC_Informer_Name_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/age_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/fields/sex_Encrypted__c.field-meta.xml
force-app/main/default/objects/Report__c/recordTypes/Competitor.recordType-meta.xml
force-app/main/default/objects/Report__c/recordTypes/Complaint.recordType-meta.xml
force-app/main/default/objects/Report__c/recordTypes/Improvement.recordType-meta.xml
force-app/main/default/objects/Report__c/recordTypes/MarketCondition.recordType-meta.xml
force-app/main/default/objects/Report__c/recordTypes/NTC.recordType-meta.xml
force-app/main/default/objects/Report__c/recordTypes/OPD.recordType-meta.xml
force-app/main/default/objects/Report__c/recordTypes/On_Call.recordType-meta.xml
force-app/main/default/objects/Report__c/recordTypes/Product_Explanation.recordType-meta.xml
force-app/main/default/objects/Report__c/recordTypes/SIS.recordType-meta.xml
force-app/main/default/objects/Report__c/recordTypes/SIS_ENG.recordType-meta.xml
force-app/main/default/objects/Report__c/recordTypes/SIS_ET.recordType-meta.xml
force-app/main/default/objects/Report__c/recordTypes/Visit_With.recordType-meta.xml
force-app/main/default/objects/Report__c/validationRules/ApplyMust_VOCcrectedCheck.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/Approved_cannot_change.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/CHECK_customer_evaluation_sheet.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/Input_comment_before_share_with_MKE.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/Input_result_before_VOC_answer.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/JF_Scope_Need_to_Select_from_Asset.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/Only_OPDtoSIS.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/Product2CanNotEqualProduct1.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/Required_Patient_Status.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/Required_Use_Materials.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/VOC_answer_chk1.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/VOC_answer_chk2.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/VOC_delivery_chk.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/VOC_finish_chk.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/VOC_follow_chk1.validationRule-meta.xml
force-app/main/default/objects/Report__c/validationRules/VOC_follow_chk2.validationRule-meta.xml
force-app/main/default/objects/Report__c/webLinks/Cancel.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/Cancel_submit.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/Complete.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/Copy2.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/OCSMNoToReport.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/OCSMToReport.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/OPD_Report.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/OPD_Report_Consum.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/OPD_to_SIS.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/SIS_to_OPD.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/Submit.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/Submit_competitor_report.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/VOCAnswer.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/VOCCheck.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/VOCConfirm.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/VOCFinish.webLink-meta.xml
force-app/main/default/objects/Report__c/webLinks/VOCSubmit.webLink-meta.xml
force-app/main/default/objects/Request_tedner_doc__c/webLinks/Cancel_submit.webLink-meta.xml
force-app/main/default/objects/Request_tedner_doc__c/webLinks/Submit.webLink-meta.xml
force-app/main/default/objects/Result_for_Conference_Adjudication__c/Result_for_Conference_Adjudication__c.object-meta.xml
force-app/main/default/objects/SI_Attachment__c/webLinks/SI_Submint_BTN.webLink-meta.xml
force-app/main/default/objects/SMARM__c/webLinks/SubmitAndProcess.webLink-meta.xml
force-app/main/default/objects/SS_OPDPlan__c/fields/SSIsSaveOrSubmit_Specify__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/BO_Forecast_ThousandY__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/BeforeSSoppUp__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/BidWinningNumber__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Closing_Bid_Date_Bid__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Equipment_Order_Flg__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Forecast_target_ship_lastmonth__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Forecast_target_ship_prospect__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/If_Account_Change__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/ImportDemonstration_Approval_date__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/ImportDemonstration_Filing_date__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/ImportDemonstration_Rejection_date__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/ImportDemonstration_state__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Important_contract__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/NumberOfBids__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/OCSM_RMB_Without_Tax_1000TR__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/OCSM_RMB_Without_Tax_1000__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/OP_ThousandY__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Opp_Actual_ThousandY__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Opp_Delay_Mark__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Opp_Forecast_ThousandY__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Opp_New_Mark__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Opportunity_ThousandY__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Purchase_Type_Formula__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Purchase_Type__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/TenderBeginDate__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Tender_Number__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Trade__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Update_situation__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/Wholesale_Price_F_RMB__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_5days_list__c/fields/if_NeedImportDemonstration__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/Closing_Bid_Date_Bid__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/DeliveryForecastMonth__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/ENG_New__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/GuranteePriceSum__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/GuranteeType__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/If_Account_Change__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/Important_contract__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/OCSM_RMB_Without_Tax_1000TR__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/OCSM_RMB_Without_Tax_1000__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/Opp_Delay_Mark__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/Opp_New_Mark__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/TenderBeginDate__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/Trade__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/Wholesale_Price_F_RMB__c.field-meta.xml
force-app/main/default/objects/SS_Prospect_detail_product__c/fields/Wholesale_Price_F__c.field-meta.xml
force-app/main/default/objects/SS_backorder_list__c/fields/ContractAmountNoGurantee_F__c.field-meta.xml
force-app/main/default/objects/SS_backorder_list__c/fields/NetWorthNoProviston_DN_F__c.field-meta.xml
force-app/main/default/objects/SS_backorder_list__c/fields/Opp_Delay_Mark__c.field-meta.xml
force-app/main/default/objects/SS_backorder_list__c/fields/Opp_New_Mark__c.field-meta.xml
force-app/main/default/objects/SS_backorder_list__c/fields/Trade__c.field-meta.xml
force-app/main/default/objects/Sample_order_list__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Sample_order_list__c/fields/city__c.field-meta.xml
force-app/main/default/objects/Sample_order_list__c/fields/province__c.field-meta.xml
force-app/main/default/objects/Service_Category7__c/Service_Category7__c.object-meta.xml
force-app/main/default/objects/SolutionProjectRequirements__c/fields/GirWindowDirectorApproved__c.field-meta.xml
force-app/main/default/objects/SolutionProjectRequirements__c/webLinks/Closing_Case.webLink-meta.xml
force-app/main/default/objects/SolutionProjectRequirements__c/webLinks/NewSolutonPro.webLink-meta.xml
force-app/main/default/objects/SolutionProjectRequirements__c/webLinks/Submit_For_Approval.webLink-meta.xml
force-app/main/default/objects/Solution_Programme__c/webLinks/NewSolutionProgramma.webLink-meta.xml
force-app/main/default/objects/Solution_Programme__c/webLinks/SolutionCopy.webLink-meta.xml
force-app/main/default/objects/Solution_Programme__c/webLinks/Submit_For_Approval.webLink-meta.xml
force-app/main/default/objects/Solution_Programme__c/webLinks/newEdit.webLink-meta.xml
force-app/main/default/objects/Statu_Achievements_DN__c/fields/Is_Corrosion__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements_DN__c/fields/aXiReport__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements_DN_details__c/fields/SerialNoorLotNo_Raw__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements_DN_details__c/fields/SerialNumberS__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements_DN_details__c/fields/TracingCode_Raw__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements_DN_details__c/fields/aXiReport__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements_Journal__c/fields/ShippedAmount_without_tax_F__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/BackstageForecastDeliveryDateReport_PBI__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/ForecastAccuracyObject__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/Owner_Category__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/Owner__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/ShippedAmount152P_DN__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/ShippedAmount153P_DN_A__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/ShippedAmount_152P_Sum__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/ShippedAmount_ZM_153P__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/ShippedAmount_ZM_WithoutTax_152P__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/ShippedAmount_without_tax_DN__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/Trade__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/UnshippedAmount_without_tax_A__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/UnshippedAmount_without_tax_Thousand_DN__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/X152PNetWorthNoProviston__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/X152PshipmentAmount__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/X153PNetWorthNoProviston_A__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/fields/aXiReport__c.field-meta.xml
force-app/main/default/objects/Statu_Achievements__c/listViews/All_Shipwithoutanzhuangbaogao_wai.listView-meta.xml
force-app/main/default/objects/SubAuthorized__c/webLinks/cancelSubAuthorizedButton.webLink-meta.xml
force-app/main/default/objects/Tender_Opportunity_Link__c/Tender_Opportunity_Link__c.object-meta.xml
force-app/main/default/objects/Tender_Opportunity_Link__c/fields/IsLeakage__c.field-meta.xml
force-app/main/default/objects/Tender_Opportunity_Link__c/fields/Opportunity__c.field-meta.xml
force-app/main/default/objects/Tender_Opportunity_Link__c/fields/OwnerIsChange__c.field-meta.xml
force-app/main/default/objects/Tender_Opportunity_Link__c/fields/Tender_Opportunity_Uniq__c.field-meta.xml
force-app/main/default/objects/Tender_Opportunity_Link__c/fields/Tender_information__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/Tender_information__c.object-meta.xml
force-app/main/default/objects/Tender_information__c/fields/AWS_Data_Id__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/AgentRelationName_Encrypted__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/AgentRelationWay_Encrypted__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/AreaCity__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/AreaCountry__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/AreaProvince__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/BidWinningNumber__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/BiddingOCSMAdministration__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/BiddingType__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/BudgetAmountNumber__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/BudgetAmount__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/CentralizedProject__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/ConfirmationAssistant__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/ConfirmationofAward__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/Domestic_Or_Import__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/Hospital1__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/Hospital2__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/Hospital3__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/Hospital4__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/Hospital__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/If_Tender_Intime__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/InfoId__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/InfoQianlimaUrl__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/InfoType__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/InvolveBudgetAmount__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/IsBid__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/IsRelateProject__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/Keywords__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/Logical_delete__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/NumberOfBids__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/OBSAP_PR__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/OBSAP_WinnerAmount__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/OCSMProvince__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/OlyNumberHosts__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/OpenBidingTime__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/OpportunityNum__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/OpportunityStatus__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/OwnerIsActive__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/OwnerOcsm__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/RelateOppDate__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/RivalHostsNumber__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/SalesDepartmentOwner__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/Salesdepartment_SAP__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/TAT_Opportunity_Num__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/TAT_Relative_Num__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/TenderBeginTime__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/TenderEndTime__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/TenderManageCode__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/TenderNum__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/Tender_Number__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/Tender_Olympus__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/Tender_Order__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/TotalNumberHosts__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/ViewBidConfirm__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/ViewRelatedOpp__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/ViewWaitConfirm__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/WinnerAmount1__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/WinnerAmountNumber__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/WinnerAmount__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/XmNumber__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/ZhaoRelationName_Encrypted__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/ZhaoRelationName__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/ZhaoRelationWay_Encrypted__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/ZhaoRelationWay__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/ZhongBiaoUnit1__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/ZhongRelationName_Encrypted__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/ZhongRelationWay_Encrypted__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/atypism__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/department__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/department_category__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/irrelevantReasonOther__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/irrelevantReasons__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/irresponsibleReasonOther__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/irresponsibleReason__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/noticeDate__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/proInvolvedManual__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/proInvolved__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/publicDate__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/relativeDate__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/relativeTime_F__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/relativeTime__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/remarks1__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/remarks2__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/status__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/subDepartment1__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/subDepartment2__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/subDepartment3__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/subDepartment4__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/fields/subInfoType__c.field-meta.xml
force-app/main/default/objects/Tender_information__c/listViews/All.listView-meta.xml
force-app/main/default/objects/Tender_information__c/listViews/All_01.listView-meta.xml
force-app/main/default/objects/Tender_information__c/listViews/All_03.listView-meta.xml
force-app/main/default/objects/Tender_information__c/listViews/All_0301.listView-meta.xml
force-app/main/default/objects/Tender_information__c/listViews/All_04.listView-meta.xml
force-app/main/default/objects/Tender_information__c/listViews/All_0401.listView-meta.xml
force-app/main/default/objects/Tender_information__c/listViews/All_05.listView-meta.xml
force-app/main/default/objects/Tender_information__c/listViews/All_0501.listView-meta.xml
force-app/main/default/objects/Tender_information__c/listViews/All_uncomfirmdate.listView-meta.xml
force-app/main/default/objects/Tender_information__c/listViews/View25.listView-meta.xml
force-app/main/default/objects/Tender_information__c/listViews/bidding20220701.listView-meta.xml
force-app/main/default/objects/Tender_information__c/listViews/serviceproject20220118.listView-meta.xml
force-app/main/default/objects/Tender_information__c/recordTypes/Mannual.recordType-meta.xml
force-app/main/default/objects/Tender_information__c/recordTypes/QLM.recordType-meta.xml
force-app/main/default/objects/Tender_information__c/validationRules/InfoType_select_resultdate_check.validationRule-meta.xml
force-app/main/default/objects/Tender_information__c/validationRules/Manually_enter_stage_supplementary_rules.validationRule-meta.xml
force-app/main/default/objects/Tender_information__c/webLinks/Contrary_Logical_del.webLink-meta.xml
force-app/main/default/objects/Tender_information__c/webLinks/CopyPI.webLink-meta.xml
force-app/main/default/objects/Tender_information__c/webLinks/IfResponse.webLink-meta.xml
force-app/main/default/objects/Tender_information__c/webLinks/NewHospital.webLink-meta.xml
force-app/main/default/objects/Tender_information__c/webLinks/NewIntention.webLink-meta.xml
force-app/main/default/objects/Tender_information__c/webLinks/NewOpp.webLink-meta.xml
force-app/main/default/objects/Tender_information__c/webLinks/Quotation_request.webLink-meta.xml
force-app/main/default/objects/Tender_information__c/webLinks/ReactionOpportunityStatus.webLink-meta.xml
force-app/main/default/objects/Tender_information__c/webLinks/RelateOpp.webLink-meta.xml
force-app/main/default/objects/Tender_information__c/webLinks/RelationCheck.webLink-meta.xml
force-app/main/default/objects/Tender_information__c/webLinks/Tender_Lost.webLink-meta.xml
force-app/main/default/objects/Tender_information__c/webLinks/selectAttachment.webLink-meta.xml
force-app/main/default/objects/Tender_information__c/webLinks/selectAttachmentPIPL.webLink-meta.xml
force-app/main/default/objects/Tender_information_details__c/Tender_information_details__c.object-meta.xml
force-app/main/default/objects/Tender_information_details__c/fields/Is_Final__c.field-meta.xml
force-app/main/default/objects/Tender_information_details__c/fields/Price_N__c.field-meta.xml
force-app/main/default/objects/Tender_information_details__c/fields/TotalPrice_N__c.field-meta.xml
force-app/main/default/objects/Transaction_Log__c/Transaction_Log__c.object-meta.xml
force-app/main/default/objects/Transaction_Log__c/fields/Interface_URL__c.field-meta.xml
force-app/main/default/objects/Transaction_Log__c/fields/Module__c.field-meta.xml
force-app/main/default/objects/Transaction_Log__c/fields/Request__c.field-meta.xml
force-app/main/default/objects/Transaction_Log__c/fields/Response__c.field-meta.xml
force-app/main/default/objects/Transaction_Log__c/fields/SFRecordId__c.field-meta.xml
force-app/main/default/objects/TransferApplyDetail__c/fields/AfterAssetId_del__c.field-meta.xml
force-app/main/default/objects/TransferApplyDetail__c/fields/IsPunishObj__c.field-meta.xml
force-app/main/default/objects/TransferApplyDetail__c/fields/MainId__c.field-meta.xml
force-app/main/default/objects/TransferApplyDetail__c/fields/Pre_NG_abord_reason__c.field-meta.xml
force-app/main/default/objects/TransferApplyDetail__c/fields/SalesProvince__c.field-meta.xml
force-app/main/default/objects/TransferApplyDetail__c/fields/Salesdepartment_After__c.field-meta.xml
force-app/main/default/objects/TransferApplyDetail__c/fields/Salesdepartment__c.field-meta.xml
force-app/main/default/objects/TransferApplyDetail__c/fields/Transfer_Apply_Request_approval_time__c.field-meta.xml
force-app/main/default/objects/TransferApplyDetail__c/validationRules/CanNotSetRDeliverySlipWhenConfirmLost.validationRule-meta.xml
force-app/main/default/objects/TransferApplyDetail__c/validationRules/Cannot_Update_When_Finish.validationRule-meta.xml
force-app/main/default/objects/TransferApplyDetail__c/validationRules/Inspection_After_NG_Aborted.validationRule-meta.xml
force-app/main/default/objects/TransferApplyDetail__c/validationRules/Inspection_After_NG_Aborted_Comment.validationRule-meta.xml
force-app/main/default/objects/TransferApplyDetail__c/validationRules/IsBodyOrIsAccessory.validationRule-meta.xml
force-app/main/default/objects/TransferApplyDetail__c/validationRules/Receive_After_NG_Aborted.validationRule-meta.xml
force-app/main/default/objects/TransferApplySummary__c/webLinks/TransferApplySelectDetail.webLink-meta.xml
force-app/main/default/objects/TransferApply__c/fields/AfterCheckEmail_F__c.field-meta.xml
force-app/main/default/objects/TransferApply__c/fields/AfterOCMAssetEmail_F__c.field-meta.xml
force-app/main/default/objects/TransferApply__c/fields/BeforeCheckEmail_F__c.field-meta.xml
force-app/main/default/objects/TransferApply__c/fields/BeforeOCMAssetEmail_F__c.field-meta.xml
force-app/main/default/objects/TransferApply__c/fields/Loaner_centre_accept_Email__c.field-meta.xml
force-app/main/default/objects/TransferApply__c/fields/OBA3_Email_Group__c.field-meta.xml
force-app/main/default/objects/TransferApply__c/fields/ZongJian__c.field-meta.xml
force-app/main/default/objects/TransferApply__c/listViews/All_TransferApply.listView-meta.xml
force-app/main/default/objects/TransferApply__c/listViews/IN.listView-meta.xml
force-app/main/default/objects/TransferApply__c/listViews/View2.listView-meta.xml
force-app/main/default/objects/TransferApply__c/listViews/View4.listView-meta.xml
force-app/main/default/objects/TransferApply__c/webLinks/TransferApplyPDF.webLink-meta.xml
force-app/main/default/objects/TransferApply__c/webLinks/cancelApply.webLink-meta.xml
force-app/main/default/objects/TransferApply__c/webLinks/submit_approval_process.webLink-meta.xml
force-app/main/default/objects/Visit_Report__c/webLinks/Cancel.webLink-meta.xml
force-app/main/default/objects/asset_Power_BI__c/fields/DesperateRetrieveDate__c.field-meta.xml
force-app/main/default/objects/bidInfoFile__c/bidInfoFile__c.object-meta.xml
force-app/main/default/objects/bidInfoFile__c/fields/Tender_information__c.field-meta.xml
force-app/main/default/objects/eSignForm__c/eSignForm__c.object-meta.xml
force-app/main/default/objects/eSignForm__c/fields/agencyAccOrSAPConfirmDate__c.field-meta.xml
force-app/main/default/objects/eSignForm__c/fields/hpAccOrSAPConfirmDate__c.field-meta.xml
force-app/main/default/objects/eSignForm__c/fields/oldSAPReportDate__c.field-meta.xml
force-app/main/default/objects/eSignForm__c/listViews/All1.listView-meta.xml
force-app/main/default/objects/eSignForm__c/listViews/AlleSignFormAgencyOBSAP.listView-meta.xml
force-app/main/default/objects/eSignForm__c/listViews/AlleSignFormHPOBSAP.listView-meta.xml
force-app/main/default/objects/eSignForm__c/webLinks/HPConfirmation.webLink-meta.xml
force-app/main/default/objects/eSignForm__c/webLinks/agencyConfirmation.webLink-meta.xml
force-app/main/default/objects/eSignForm__c/webLinks/selectAttachment.webLink-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/fields/IF_Approved_Old__c.field-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/fields/IF_Approved__c.field-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/fields/MeetingApproved_Old__c.field-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/fields/MeetingApproved__c.field-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/fields/Meeting_Cooperate1_Old__c.field-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/fields/Meeting_Cooperate1__c.field-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/fields/Meeting_Cooperate2_Old__c.field-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/fields/Meeting_Cooperate2__c.field-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/fields/Meeting_Cooperate3_Old__c.field-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/fields/Meeting_Cooperate3__c.field-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/fields/Meeting_Cooperate4_Old__c.field-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/fields/Meeting_Cooperate4__c.field-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/fields/Meeting_Type_Old__c.field-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/fields/Meeting_Type__c.field-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/webLinks/CommitNeedApproval_MeetingDelay.webLink-meta.xml
force-app/main/default/objects/meeting_delay_apply__c/webLinks/MeetingDelayApply.webLink-meta.xml
force-app/main/default/objects/solutionClosingAttachment__c/webLinks/NewSolutionClosingAttachment.webLink-meta.xml
force-app/main/default/objects/task__c/fields/Assignment__c.field-meta.xml
force-app/main/default/objects/task__c/fields/Cancel__c.field-meta.xml
force-app/main/default/objects/task__c/fields/Daily_Report__c.field-meta.xml
force-app/main/default/objects/task__c/fields/Delay_c__c.field-meta.xml
force-app/main/default/objects/task__c/fields/FpzISActive__c.field-meta.xml
force-app/main/default/objects/task__c/fields/IsConfirm__c.field-meta.xml
force-app/main/default/objects/task__c/fields/IsTimelyReport__c.field-meta.xml
force-app/main/default/objects/task__c/fields/LatestFinishDate__c.field-meta.xml
force-app/main/default/objects/task__c/fields/Opp_Tender__c.field-meta.xml
force-app/main/default/objects/task__c/fields/PlanProdDetail__c.field-meta.xml
force-app/main/default/objects/task__c/fields/RelatedInformation_ID__c.field-meta.xml
force-app/main/default/objects/task__c/fields/RelatedInformation_Text__c.field-meta.xml
force-app/main/default/objects/task__c/fields/TaskTyeNotEQ__c.field-meta.xml
force-app/main/default/objects/task__c/fields/Task_After_3_WorkDay__c.field-meta.xml
force-app/main/default/objects/task__c/fields/Tender_information_Task__c.field-meta.xml
force-app/main/default/objects/task__c/fields/cancelReasonSelect__c.field-meta.xml
force-app/main/default/objects/task__c/fields/cancelReason__c.field-meta.xml
force-app/main/default/objects/task__c/fields/delayReasonSelect__c.field-meta.xml
force-app/main/default/objects/task__c/fields/delayReason__c.field-meta.xml
force-app/main/default/objects/task__c/fields/taskStatus__c.field-meta.xml
force-app/main/default/objects/task__c/listViews/All.listView-meta.xml
force-app/main/default/objects/task__c/listViews/AllConfirmationofAwardTask_Tender.listView-meta.xml
force-app/main/default/objects/task__c/listViews/AllLostTask_Tender.listView-meta.xml
force-app/main/default/objects/task__c/listViews/CheckWindow_SH_task.listView-meta.xml
force-app/main/default/objects/task__c/listViews/IsAssignmenter11112.listView-meta.xml
force-app/main/default/objects/task__c/listViews/MyConfirmationofAwardTask_Tender.listView-meta.xml
force-app/main/default/objects/task__c/listViews/MyLostTask_Tender.listView-meta.xml
force-app/main/default/objects/task__c/listViews/OPDpassiveTask_01.listView-meta.xml
force-app/main/default/objects/task__c/listViews/OPDpassiveTask_1.listView-meta.xml
force-app/main/default/objects/task__c/listViews/OPDpassiveTask_boss.listView-meta.xml
force-app/main/default/objects/task__c/listViews/OpppassiveTask_1_noaccepet.listView-meta.xml
force-app/main/default/objects/task__c/listViews/ddepassiveTask_1.listView-meta.xml
force-app/main/default/objects/task__c/listViews/myTask.listView-meta.xml
force-app/main/default/objects/task__c/listViews/passiveTask_1.listView-meta.xml
force-app/main/default/objects/task__c/listViews/passiveTask_2.listView-meta.xml
force-app/main/default/objects/task__c/recordTypes/AgencyVisit.recordType-meta.xml
force-app/main/default/objects/task__c/recordTypes/DailyVisit.recordType-meta.xml
force-app/main/default/objects/task__c/recordTypes/HAccountVisit.recordType-meta.xml
force-app/main/default/objects/task__c/recordTypes/InspectUp_Task.recordType-meta.xml
force-app/main/default/objects/task__c/recordTypes/LoseListTask.recordType-meta.xml
force-app/main/default/objects/task__c/recordTypes/MaintenanceTask.recordType-meta.xml
force-app/main/default/objects/task__c/recordTypes/NewMaintenanceTask.recordType-meta.xml
force-app/main/default/objects/task__c/recordTypes/OPD.recordType-meta.xml
force-app/main/default/objects/task__c/recordTypes/SLAReport_Task.recordType-meta.xml
force-app/main/default/objects/task__c/recordTypes/ServiceQuarterlyReport.recordType-meta.xml
force-app/main/default/objects/task__c/recordTypes/TargetAccountVisit.recordType-meta.xml
force-app/main/default/objects/task__c/recordTypes/VM_Contract_Task.recordType-meta.xml
force-app/main/default/objects/task__c/recordTypes/campaignFollow.recordType-meta.xml
force-app/main/default/objects/task__c/recordTypes/priceApplyTask.recordType-meta.xml
force-app/main/default/objects/task__c/recordTypes/winBiddingTask.recordType-meta.xml
force-app/main/default/objects/task__c/validationRules/HopeDateAndWorkDesDontEdit.validationRule-meta.xml
force-app/main/default/objects/task__c/validationRules/NotAdminCannotCreateTask.validationRule-meta.xml
force-app/main/default/objects/task__c/validationRules/YouCanNotEditTaskDifferent.validationRule-meta.xml
force-app/main/default/objects/task__c/validationRules/winBiddingLoseCancelListTask.validationRule-meta.xml
force-app/main/default/objects/task__c/webLinks/LoseBid.webLink-meta.xml
force-app/main/default/objects/task__c/webLinks/OLYwinBid.webLink-meta.xml
force-app/main/default/objects/task__c/webLinks/OppLose.webLink-meta.xml
force-app/main/default/pages/AL_MobileApp_Land.page
force-app/main/default/pages/AL_MobileApp_Menus.page
force-app/main/default/pages/AL_MobileApp_Photos.page
force-app/main/default/pages/AL_MobileApp_Send.page
force-app/main/default/pages/AccessoryAdd.page
force-app/main/default/pages/AccessorySelect.page
force-app/main/default/pages/AccountCaseHospital.page
force-app/main/default/pages/AccountCaseTab.page
force-app/main/default/pages/AccountPCL.page
force-app/main/default/pages/AccountTargetHospital.page
force-app/main/default/pages/AccountTargetTab.page
force-app/main/default/pages/AddAccIpadActivity.page
force-app/main/default/pages/AddCtIpadActivity.page
force-app/main/default/pages/AddMcIpadActivity.page
force-app/main/default/pages/AddOppIpadActivity.page
force-app/main/default/pages/AgencyConfirmPage.page
force-app/main/default/pages/AgencyHospitalLink.page
force-app/main/default/pages/AssessmentReport.page
force-app/main/default/pages/AssetGuaranteePeriodAlteration.page
force-app/main/default/pages/AssetMaintain.page
force-app/main/default/pages/AssetMaintainAbandonSummary.page
force-app/main/default/pages/AssetMaintainDetail.page
force-app/main/default/pages/AssetModifyBelongs.page
force-app/main/default/pages/AssetQR.page
force-app/main/default/pages/AssetTable.page
force-app/main/default/pages/AttachmentPreview.page
force-app/main/default/pages/BMEWorkPage.page
force-app/main/default/pages/BandwidthExceeded.page
force-app/main/default/pages/BatchSelectRepairPage.page
force-app/main/default/pages/BeforeOPDPDF.page
force-app/main/default/pages/BidAnnounceIframe.page
force-app/main/default/pages/Bidding.page
force-app/main/default/pages/CICReport.page
force-app/main/default/pages/CM_SearchContact.page
force-app/main/default/pages/CM_SearchContactService.page
force-app/main/default/pages/CM_SearchDepartment.page
force-app/main/default/pages/CM_SearchDepartmentService.page
force-app/main/default/pages/CampaignBTPDF.page
force-app/main/default/pages/CampaignCreate.page
force-app/main/default/pages/CampaignMeetingcost.page
force-app/main/default/pages/CampaignMember.page
force-app/main/default/pages/CampaignMember.page-meta.xml
force-app/main/default/pages/CampaignMemberBMEEditAndDelete.page
force-app/main/default/pages/CampaignMemberEditAndDelete.page
force-app/main/default/pages/CampaignMemberService.page
force-app/main/default/pages/CampaignPlanProd.page
force-app/main/default/pages/CancelRemoveBox.page
force-app/main/default/pages/ChangeDealerApproval.page
force-app/main/default/pages/CheckAllOlympusAsset.page
force-app/main/default/pages/CheckPlanDeleteButton.page
force-app/main/default/pages/ChoiceAsset.page
force-app/main/default/pages/CommunitiesSelfReg.page
force-app/main/default/pages/CommunitiesSelfRegConfirm.page
force-app/main/default/pages/CommunitiesTemplate.page
force-app/main/default/pages/ConSearchAgencyPlace.page
force-app/main/default/pages/ConsumApplyBR.page
force-app/main/default/pages/ConsumApplyCancel.page
force-app/main/default/pages/ConsumApplyEquipmentSetSRList.page
force-app/main/default/pages/ConsumApplyQR.page
force-app/main/default/pages/ConsumApplySplit.page
force-app/main/default/pages/ConsumAssignCancel.page
force-app/main/default/pages/ConsumDefaultSelect.page
force-app/main/default/pages/ConsumEquipmentRentalResponse.page
force-app/main/default/pages/ConsumEquipmentRentalResponsePopUp.page
force-app/main/default/pages/ConsumEquipmentSetReceived.page
force-app/main/default/pages/ConsumEquipmentSetReturn.page
force-app/main/default/pages/ConsumEquipmentSetShipment.page
force-app/main/default/pages/ConsumFixtureSetSelect.page
force-app/main/default/pages/ConsumInventoryReportDetail.page
force-app/main/default/pages/ConsumReassign.page
force-app/main/default/pages/ConsumSelect.page
force-app/main/default/pages/ConsumTrial.page
force-app/main/default/pages/ConsumTrialConfirm.page
force-app/main/default/pages/ConsumTrialDis.page
force-app/main/default/pages/ConsumTrialPDF.page
force-app/main/default/pages/ConsumTrialUpdate.page
force-app/main/default/pages/ConsumUploadPicture.page
force-app/main/default/pages/ConsumableArrDet.page
force-app/main/default/pages/ConsumableNotArrDet.page
force-app/main/default/pages/ContentPreview.page
force-app/main/default/pages/ContractDetailPDF.page
force-app/main/default/pages/Create_Opportunity_by_Agency_Opportunity.page
force-app/main/default/pages/CustomDeleteVF.page
force-app/main/default/pages/DateModify.page
force-app/main/default/pages/Dealer_enquiry.page
force-app/main/default/pages/DeleteEventEntry.page
force-app/main/default/pages/DigCasesNumber.page
force-app/main/default/pages/DirectAssign.page
force-app/main/default/pages/DiscountProductApplication.page
force-app/main/default/pages/Enquiry.page
force-app/main/default/pages/EnquiryDetails.page
force-app/main/default/pages/EquipmentManage.page
force-app/main/default/pages/EquipmentRentalExtend.page
force-app/main/default/pages/EquipmentSetSRList2.page
force-app/main/default/pages/EquipmentSetShippmentReceived1.page
force-app/main/default/pages/EquipmentSetShippmentReceived2.page
force-app/main/default/pages/EquipmentSetShippmentReceived3.page
force-app/main/default/pages/EquipmentSetShippmentReceived4.page
force-app/main/default/pages/EquipmentSetShippmentReceived5.page
force-app/main/default/pages/EquipmentSetShippmentReceived6.page
force-app/main/default/pages/EventComment.page
force-app/main/default/pages/Exception.page
force-app/main/default/pages/ExportAllOlympusAsset.page
force-app/main/default/pages/FileNotFound.page
force-app/main/default/pages/FixtureRemind.page
force-app/main/default/pages/FixtureRemindForAgencyRequest.page
force-app/main/default/pages/FixtureRentalPDF.page
force-app/main/default/pages/FixtureSetManage.page
force-app/main/default/pages/FollowPage.page
force-app/main/default/pages/ForgotPassword.page
force-app/main/default/pages/ForgotPasswordConfirm.page
force-app/main/default/pages/GSurveys.page
force-app/main/default/pages/Getting_Started_With_Survey_Force.page
force-app/main/default/pages/HPConfirmPage.page
force-app/main/default/pages/HomeBulletinBoard.page
force-app/main/default/pages/HospitalApprovalResponse.page
force-app/main/default/pages/HospitalApprovalResponsePopUp.page
force-app/main/default/pages/ISO_DemandOAD_PDF.page
force-app/main/default/pages/ISO_DemandOperAndDemons.page
force-app/main/default/pages/ISO_DemandOperAndDemonsNew.page
force-app/main/default/pages/ISO_NewDemandOAD_PDF.page
force-app/main/default/pages/IdeasHome.page
force-app/main/default/pages/InMaintenance.page
force-app/main/default/pages/InitCreateSolutionPage.page
force-app/main/default/pages/InsReportPDF.page
force-app/main/default/pages/InsReportPDFOuter.page
force-app/main/default/pages/InstructReport.page
force-app/main/default/pages/InventoryList.page
force-app/main/default/pages/InventoryLostReport.page
force-app/main/default/pages/InventoryReport.page
force-app/main/default/pages/InventoryReportDetail.page
force-app/main/default/pages/InventoryResultRecord.page
force-app/main/default/pages/InventoryResultRecordCopy.page
force-app/main/default/pages/LeadIntention.page
force-app/main/default/pages/ListAssetForHospital.page
force-app/main/default/pages/ListShip.page
force-app/main/default/pages/LookupPage.page
force-app/main/default/pages/LostCreatePage1.page
force-app/main/default/pages/LostEditPage1.page
force-app/main/default/pages/LostReportEdit.page
force-app/main/default/pages/LostReportEditAsset.page
force-app/main/default/pages/LostViewPage1.page
force-app/main/default/pages/Lost_Return_DeliverySlip.page
force-app/main/default/pages/MCAgentPDF.page
force-app/main/default/pages/MCHPDF.page
force-app/main/default/pages/MCLastMContract.page
force-app/main/default/pages/Maintenance.page
force-app/main/default/pages/MaintenanceCommissionPDF.page
force-app/main/default/pages/MaintenanceContractEstimatePDF.page
force-app/main/default/pages/MaintenanceContractEstimateVMPDF.page
force-app/main/default/pages/MaintenanceContractPCL.page
force-app/main/default/pages/MaintenanceDailyReport.page
force-app/main/default/pages/MaintenanceProductData.page
force-app/main/default/pages/MaintenanceProductDataManage.page
force-app/main/default/pages/MaintenanceTaskCSVExport.page
force-app/main/default/pages/MaxManagmentCode.page
force-app/main/default/pages/MaxManagmentCodeTransfer.page
force-app/main/default/pages/MceConfigPDF.page
force-app/main/default/pages/MceContractAgentPDF.page
force-app/main/default/pages/MceContractHpPDF.page
force-app/main/default/pages/MergeAgencyActivity.page
force-app/main/default/pages/MicrobatchSelfReg.page
force-app/main/default/pages/MoreMaintenanceContract.page
force-app/main/default/pages/MoreMaintenanceContractPop.page
force-app/main/default/pages/Morethan7days.page
force-app/main/default/pages/MyProfilePage.page
force-app/main/default/pages/NewAndEditLead.page
force-app/main/default/pages/NewMCAgentPDF.page
force-app/main/default/pages/NewMCHPDF.page
force-app/main/default/pages/NewMCHPDFLimit.page
force-app/main/default/pages/NewPaymentPlanLoad.page
force-app/main/default/pages/NewQuoteEntry.page
force-app/main/default/pages/NewQuoteIrai.page
force-app/main/default/pages/NotReceivingNoteListFirst.page
force-app/main/default/pages/NotReceivingNoteWaitingReceipt.page
force-app/main/default/pages/OFSBulletinBoard.page
force-app/main/default/pages/OFSCalendar.page
force-app/main/default/pages/OFSCommentPopup.page
force-app/main/default/pages/OFSDailyReport.page
force-app/main/default/pages/OFSHospitalLayout.page
force-app/main/default/pages/OFSHoverView.page
force-app/main/default/pages/OFSInsReportLayout.page
force-app/main/default/pages/OFSInsReportLayoutForVm.page
force-app/main/default/pages/OFSRepairConsignPDF.page
force-app/main/default/pages/OFSRepairConsignPDFOuter.page
force-app/main/default/pages/OFSWindowClose.page
force-app/main/default/pages/OPDNoReportApplication.page
force-app/main/default/pages/OPDPlanProd.page
force-app/main/default/pages/OPDSortManage.page
force-app/main/default/pages/Opportunity12Rating.page
force-app/main/default/pages/OpportunityPCLNew.page
force-app/main/default/pages/Ordergoods.page
force-app/main/default/pages/PAEDecisionRecord.page
force-app/main/default/pages/PAEDecisionRecordjump.page
force-app/main/default/pages/PAEListjump.page
force-app/main/default/pages/PBIAuthorization.page
force-app/main/default/pages/PCLLostReportPage.page
force-app/main/default/pages/PaymentPlanLoad.page
force-app/main/default/pages/PersonalCalendar.page
force-app/main/default/pages/PersonalEvaluation.page
force-app/main/default/pages/PersonalEvaluation2.page
force-app/main/default/pages/PersonalEvaluationClipEdit.page
force-app/main/default/pages/PersonalEvaluationCommentImg.page
force-app/main/default/pages/PersonalEvaluationCommentList.page
force-app/main/default/pages/PersonalEvaluationInTabBF.page
force-app/main/default/pages/PersonalEvaluationInTabBasic.page
force-app/main/default/pages/PersonalEvaluationInTabENT.page
force-app/main/default/pages/PersonalEvaluationInTabGI.page
force-app/main/default/pages/PersonalEvaluationInTabGS.page
force-app/main/default/pages/PersonalEvaluationInTabGYN.page
force-app/main/default/pages/PersonalEvaluationInTabHP.page
force-app/main/default/pages/PersonalEvaluationInTabHP_FSE.page
force-app/main/default/pages/PersonalEvaluationInTabNameJ.page
force-app/main/default/pages/PersonalEvaluationInTabURO.page
force-app/main/default/pages/PrintInspectupReport.page
force-app/main/default/pages/PrintInspectupReportPDF.page
force-app/main/default/pages/ProcessInstance.page
force-app/main/default/pages/ProductRepairQuote.page
force-app/main/default/pages/ProductSetRollup.page
force-app/main/default/pages/Product_Documentation_E_Learning.page
force-app/main/default/pages/ProvinceEvaluation.page
force-app/main/default/pages/ProvinceEvaluationInProvinceBasic.page
force-app/main/default/pages/ProvinceEvaluationInProvinceHP.page
force-app/main/default/pages/ProvinceEvaluationInProvinceNameJ.page
force-app/main/default/pages/QISPDF.page
force-app/main/default/pages/QLMAttachmentPreview.page
force-app/main/default/pages/QLMAttachmentPreview1.page
force-app/main/default/pages/QuestionnaireAllowance.page
force-app/main/default/pages/QueuePageByAssetId.page
force-app/main/default/pages/QuoteExcelImport.page
force-app/main/default/pages/QuotePDF.page
force-app/main/default/pages/QuoteTrial.page
force-app/main/default/pages/ReantalApplySeriesNo.page
force-app/main/default/pages/ReceivingNoteAcceptance.page
force-app/main/default/pages/ReceivingNoteDetailSelect.page
force-app/main/default/pages/ReceivingNoteExamination.page
force-app/main/default/pages/ReceivingNoteList.page
force-app/main/default/pages/ReceivingNoteListFirst.page
force-app/main/default/pages/ReceivingNotePDF.page
force-app/main/default/pages/ReceivingNoteQR.page
force-app/main/default/pages/ReceivingNoteQRScan.page
force-app/main/default/pages/ReceivingNoteStockIn.page
force-app/main/default/pages/ReceivingNoteStockInRequest.page
force-app/main/default/pages/ReceivingNoteSummarySelect.page
force-app/main/default/pages/ReceivingNoteWaitingReceipt.page
force-app/main/default/pages/Relevance.page
force-app/main/default/pages/RentalAgencyReceived.page
force-app/main/default/pages/RentalApplyBR.page
force-app/main/default/pages/RentalApplyCancel.page
force-app/main/default/pages/RentalApplyExtensions.page
force-app/main/default/pages/RentalApplyJump.page
force-app/main/default/pages/RentalApplyMultiPostpone.page
force-app/main/default/pages/RentalApplyQR.page
force-app/main/default/pages/RentalApplySequence.page
force-app/main/default/pages/RentalFixtureSetAssign.page
force-app/main/default/pages/RentalFixtureSetDetilSelect.page
force-app/main/default/pages/RentalSequenceWatch.page
force-app/main/default/pages/RepPAEDecisionRecord.page
force-app/main/default/pages/RepairAgainAnPDF.page
force-app/main/default/pages/RepairAndQISToPDF.page
force-app/main/default/pages/RepairPCL.page
force-app/main/default/pages/Repair_Redirect.page
force-app/main/default/pages/ReportCAlertPage.page
force-app/main/default/pages/SISearchSetProduct.page
force-app/main/default/pages/SI_CsvModel.page
force-app/main/default/pages/SI_NewQuoteEntry.page
force-app/main/default/pages/SI_Opportunity_Response.page
force-app/main/default/pages/SLAReportDetails.page
force-app/main/default/pages/SampleInventory.page
force-app/main/default/pages/SampleInventorySection.page
force-app/main/default/pages/SaveAssetByCopy.page
force-app/main/default/pages/SaveAssetFromReport.page
force-app/main/default/pages/SaveLeadFromReport.page
force-app/main/default/pages/SaveMContractFromReport.page
force-app/main/default/pages/SaveMaintenanceByCopy.page
force-app/main/default/pages/SaveSolutionFromReport.page
force-app/main/default/pages/SearchContract.page
force-app/main/default/pages/SearchProduct.page
force-app/main/default/pages/SearchProductCS.page
force-app/main/default/pages/SearchProductIrai.page
force-app/main/default/pages/SearchSetProduct.page
force-app/main/default/pages/SearchVisitor.page
force-app/main/default/pages/SelectAssetEstimate.page
force-app/main/default/pages/SelectAssetEstimateJumpPage.page
force-app/main/default/pages/SelectAssetEstimateJumpPage2.page
force-app/main/default/pages/SelectAssetEstimateURF.page
force-app/main/default/pages/SelectAssetEstimateVM.page
force-app/main/default/pages/SelectProduct2CIC.page
force-app/main/default/pages/ServiceMaintenanceAlert.page
force-app/main/default/pages/ServiceMaintenanceTaskPage.page
force-app/main/default/pages/SetPersonalProductTarget.page
force-app/main/default/pages/SetPersonalProductTargetcvs.page
force-app/main/default/pages/SetPersonalTarget.page
force-app/main/default/pages/SetPersonalTargetEng.page
force-app/main/default/pages/SetPersonalTargetcsv.page
force-app/main/default/pages/SetProductTarget.page
force-app/main/default/pages/SetProvinceTarget.page
force-app/main/default/pages/SetProvinceTargetEng.page
force-app/main/default/pages/SetupCheck.page
force-app/main/default/pages/SetupCheck_PicklistValuesGet.page
force-app/main/default/pages/SimpleEventRegister.page
force-app/main/default/pages/SiteLogin.page
force-app/main/default/pages/SiteRegister.page
force-app/main/default/pages/SiteRegisterConfirm.page
force-app/main/default/pages/SiteTemplate.page
force-app/main/default/pages/SolApproval.page
force-app/main/default/pages/Solution_ProgrammeDelete.page
force-app/main/default/pages/SpecialDiscount.page
force-app/main/default/pages/SpecialPrice.page
force-app/main/default/pages/StartTrading.page
force-app/main/default/pages/StatuAchievementsPCL.page
force-app/main/default/pages/StatusPage.page
force-app/main/default/pages/StraightBackAddress.page
force-app/main/default/pages/SubAuthorizedCreate.page
force-app/main/default/pages/SubmitForApprovalPage.page
force-app/main/default/pages/SurveyManagerPage.page
force-app/main/default/pages/SurveyPage.page
force-app/main/default/pages/TakeSurvey.page
force-app/main/default/pages/TenderAttachment.page
force-app/main/default/pages/TenderDeletePage.page
force-app/main/default/pages/TransferAgencyReceived.page
force-app/main/default/pages/TransferAgencyShipment.page
force-app/main/default/pages/TransferApplyNew.page
force-app/main/default/pages/TransferApplyPDF.page
force-app/main/default/pages/TransferApplyQR.page
force-app/main/default/pages/TransferApplyResponse.page
force-app/main/default/pages/TransferApplyResponsePopUp.page
force-app/main/default/pages/TransferApplySelectDetail.page
force-app/main/default/pages/TransferApplySelectDetailSub.page
force-app/main/default/pages/TransferEquipmentSetSRList.page
force-app/main/default/pages/TransferShippmentReceived1.page
force-app/main/default/pages/TransferShippmentReceived2.page
force-app/main/default/pages/TransferShippmentReceived3.page
force-app/main/default/pages/TransferShippmentReceived4.page
force-app/main/default/pages/TransferShippmentReceived5.page
force-app/main/default/pages/TransferShippmentReceived6.page
force-app/main/default/pages/Unauthorized.page
force-app/main/default/pages/UnderConstruct.page
force-app/main/default/pages/UnderConstruction.page
force-app/main/default/pages/UploadOBPM.page
force-app/main/default/pages/User.page
force-app/main/default/pages/UserInProcess.page
force-app/main/default/pages/VFClosePage.page
force-app/main/default/pages/VisitReportAlertPage.page
force-app/main/default/pages/WaveLabsApp.page
force-app/main/default/pages/WebToEquipmentSetShippmentReceived.page
force-app/main/default/pages/WorkflowEditor.page
force-app/main/default/pages/XMDEditor.page
force-app/main/default/pages/XinDailyReport.page
force-app/main/default/pages/Xin_SearchMaintenanceContract.page
force-app/main/default/pages/Xin_SearchVisitorPlace.page
force-app/main/default/pages/Xin_SearchVisitorPlace_Campaign.page
force-app/main/default/pages/Xin_SearchVisitorPlace_Sales.page
force-app/main/default/pages/Xin_SearchVisitorPlace_Training.page
force-app/main/default/pages/contact_phone.page
force-app/main/default/pages/eSignFormAttachment.page
force-app/main/default/pages/eSignFormQR.page
force-app/main/default/pages/genjinbaobiao.page
force-app/main/default/pages/labs_survey_css.page
force-app/main/default/pages/maintenanceContractNotOpen.page
force-app/main/default/pages/maintenanceContractPage.page
force-app/main/default/pages/productsh.page
force-app/main/default/pages/searchAimsAccount.page
force-app/main/default/pages/searchHospital.page
force-app/main/default/pages/taskAlert.page
force-app/main/default/staticresources/NewQuoteEntryJS.js
force-app/main/default/staticresources/NewQuoteEntryJS.resource-meta.xml
force-app/main/default/staticresources/NewQuoteIraiJS.js
force-app/main/default/staticresources/OpportunityPCLJs.js
force-app/main/default/staticresources/XinDailyReportTuning2Js.js
force-app/main/default/staticresources/curleft.resource-meta.xml
force-app/main/default/staticresources/curright.resource-meta.xml
force-app/main/default/staticresources/instascan.js
force-app/main/default/triggers/AccountTrigger.trigger
force-app/main/default/triggers/AfterUpdateReport.trigger
force-app/main/default/triggers/AgencyContactTrigger.trigger
force-app/main/default/triggers/AgencyHospitalTrigger.trigger
force-app/main/default/triggers/AgencyOppUpd.trigger
force-app/main/default/triggers/AssetTrigger.trigger
force-app/main/default/triggers/AttachmentTrigger.trigger
force-app/main/default/triggers/CampaignMemberTrigger.trigger
force-app/main/default/triggers/CaseHpDeptUpd.trigger
force-app/main/default/triggers/ChangedDepartmentOwner.trigger
force-app/main/default/triggers/CheckInspectionSubmitUser.trigger
force-app/main/default/triggers/ConLostReportTrigger.trigger
force-app/main/default/triggers/ConLostReportTrigger.trigger-meta.xml
force-app/main/default/triggers/ConsumApplyEquipmentSetDetailTrigger.trigger
force-app/main/default/triggers/ConsumApplyTrigger.trigger
force-app/main/default/triggers/ConsumableOrderDetail1Trigger.trigger
force-app/main/default/triggers/ConsumableOrderDetail2Trigger.trigger
force-app/main/default/triggers/ConsumableOrderTrigger.trigger
force-app/main/default/triggers/ConsumableOrdertosap.trigger
force-app/main/default/triggers/ContactHpDeptUpd.trigger
force-app/main/default/triggers/ContactToUser.trigger
force-app/main/default/triggers/ContactTrigger.trigger
force-app/main/default/triggers/EventOpportunityPileUp.trigger
force-app/main/default/triggers/FollowTrigger.trigger
force-app/main/default/triggers/InquiryForm.trigger
force-app/main/default/triggers/InspectionReportTrigger.trigger
force-app/main/default/triggers/LastbuyProductTrigger.trigger
force-app/main/default/triggers/LeadTrigger.trigger
force-app/main/default/triggers/LostCancelReportTrigger.trigger
force-app/main/default/triggers/MCAETrigger.trigger
force-app/main/default/triggers/MCESTrigger.trigger
force-app/main/default/triggers/MCESTrigger.trigger-meta.xml
force-app/main/default/triggers/MaintenanceContractAfterUpdate.trigger
force-app/main/default/triggers/MaintenanceContractAssetTrigger.trigger
force-app/main/default/triggers/MaintenanceContractAssetTrigger.trigger-meta.xml
force-app/main/default/triggers/MaintenanceContractHpDeptUpd.trigger
force-app/main/default/triggers/MaintenanceContractTrigger.trigger
force-app/main/default/triggers/MakeAssetHistory.trigger
force-app/main/default/triggers/NFM001.trigger
force-app/main/default/triggers/NFM007.trigger
force-app/main/default/triggers/NFM010UpsertStatuAchievements.trigger
force-app/main/default/triggers/NFM202Opp.trigger
force-app/main/default/triggers/NFM207.trigger
force-app/main/default/triggers/OdsTrigger.trigger
force-app/main/default/triggers/OnCallTrigger.trigger
force-app/main/default/triggers/Opponent_Bid_InformationTrigger.trigger
force-app/main/default/triggers/OpportunityBefUpd.trigger
force-app/main/default/triggers/OpportunityHpDeptUpd.trigger
force-app/main/default/triggers/OpportunityTrigger.trigger
force-app/main/default/triggers/QISTrigger.trigger
force-app/main/default/triggers/RentalApplyBeforeUpdate.trigger
force-app/main/default/triggers/RentalApplyOtherTrigger.trigger
force-app/main/default/triggers/RentalApplyShare.trigger
force-app/main/default/triggers/RentalApplyTrigger.trigger
force-app/main/default/triggers/RentalHpDeptUpd.trigger
force-app/main/default/triggers/Repair.trigger
force-app/main/default/triggers/RepairAgainAnTrigger.trigger
force-app/main/default/triggers/RepairAgainAnTrigger.trigger-meta.xml
force-app/main/default/triggers/RepairHpDeptUpd.trigger
force-app/main/default/triggers/RepairQuoteTrigger.trigger
force-app/main/default/triggers/ReportCPileUp.trigger
force-app/main/default/triggers/ReportHpDeptUpd.trigger
force-app/main/default/triggers/ReportTrigger.trigger
force-app/main/default/triggers/Report_BeforeFieldCopy.trigger
force-app/main/default/triggers/SolutionProjectRequirementsTrigger.trigger
force-app/main/default/triggers/SyncMBOpportunity.trigger
force-app/main/default/triggers/SyncOpportunity.trigger
force-app/main/default/triggers/SyncProduct2.trigger
force-app/main/default/triggers/SyncRepairFromMCAETrigger.trigger
force-app/main/default/triggers/TenderInformationTrigger.trigger
force-app/main/default/triggers/TenderOpportunityLinkTrigger.trigger
force-app/main/default/triggers/UserRoleChangeToLeaveStaff.trigger-meta.xml
force-app/main/default/triggers/UserToContact.trigger
force-app/main/default/triggers/XinEventC2Event.trigger
force-app/main/default/triggers/taskObjectTrigger.trigger
sfdx-project.json |