Populating Job Type
Populating the 'Job Type' field for ActiveH Repairs
<MISTask obj="CRQTask" target="JobTypeID" dtype="int" length="4" type="RD" KFparent="Repair" KFsource="../Nominal_Code" KFsourceType="MIS_REPAIR" sql="SELECT '[value]'" /><MISTask obj="CRQTask" target="EstimatedCost" dtype="money" length="8" type="RD" KFparent="Repair" KFsource="RepairCode" KFsourceType="MIS_REPAIR" sql="SELECT Unit_Price_DC FROM Shared_SORs_T WITH (nolock) WHERE SOR_Code_VC = '[value]'" />
<MISTask obj="CRQTask" target="PriorityID" dtype="int" length="4" type="RD" KFparent="Repair" KFsource="Priority" KFsourceType="MIS_REPAIR" sql="" />
<MISTask obj="CRQTask" target="SpecialInstructions" dtype="varchar" length="500" type="RD" KFparent="Repair" KFsource="../Special_Instructions" KFsourceType="MIS_REPAIR" sql="" />
<MISTask obj="CRQTask" target="TenantRecharge" dtype="bit" length="1" type="RD" KFparent="Fault" KFsource="Recharge" KFsourceType="MIS_REPAIR" sql="" />
<MISTask obj="CRQTask" target="CITScope" dtype="bit" length="1" type="RD" KFparent="Repair" KFsource="RepairCode" KFsourceType="MIS_REPAIR" sql="SELECT CISApplicable_BT FROM Shared_SORs_T WITH (nolock) WHERE SOR_Code_VC = '[value]'" />
<MISTask obj="CRQTask" target="TradeCodeIDEx" dtype="int" length="4" type="RD" KFparent="Repair" KFsource="RepairCode" KFsourceType="MIS_REPAIR" sql="SELECT ISNULL(sstt.Trade_ID,0) FROM Shared_SORs_T ss WITH (nolock) INNER JOIN Shared_SOR_Table_Sections_T ssts WITH (nolock) ON ss.Table_Section_ID = ssts.Table_Section_ID INNER JOIN Shared_SOR_Table_Trades_T sstt WITH (nolock) ON ssts.Table_Trade_ID = sstt.Table_Trade_ID WHERE ss.SOR_Code_VC = '[value]'" />
<MISTask obj="CRQTask" target="JobTypeID" dtype="int" length="4" type="RD" KFparent="Repair" KFsource="../Nominal_Code" KFsourceType="MIS_REPAIR" sql="SELECT '[value]'" />Getting a list of Job Type Code_ID's

Last updated