====== pears.NetClientCurrentRequirement ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Original SQL =====
create procedure "pears"."NetClientCurrentRequirement"( in "pWebUserID" char(20) )
result( "RowID" char(20),"StartDate" char(20),"CombinedTime" char(20),"IsShift" smallint,"Position" char(50),"ShiftDescription" char(50),
"CompanyName" char(60),"ContactName" char(60),"Consultant" char(60),"OurRef" char(20),"ContractRef" char(20),"ShiftRef" char(20),
"FilledBy" char(250),"StartTime" char(15),"FinishTime" char(15),
"FinishDate" char(30),"LongDescription" long varchar,"PersonID" char(20),
"TextStatus" char(100),"CreatedBy" char(255),"CancelState" char(50),"ReqDescription" char(10),"ClientNote" char(50),
"VacancyNotes" long varchar,"TextStatusFull" char(100) )
begin
select *
from "NetClientRequirementList"("pWebUserID" =
"pWebUserID","pSlice" =
0,"pSliceSize" =
20,"pStartDate" =
"dateformat"(current date-7,'dd/mm/yyyy'),"pEndDate" =
"dateformat"(current date,'dd/mm/yyyy'))
order by "StartDate" asc
end /* DOC
2017-05-18 PC Doc
2017-07-13 PC modified date format
2018-05-30 PC IW-588 add liststatus and detailstatus columns
2018-06-06 MHS changed result set to match NetClientRequirementList, sorted
date format, reduced slice to 20. But this produced odd results, perhaps because
of reversing the sort order so this function is NOT currently in use:
NetClientRequirementList is called directly by the client home page.
Wrapper for NetClientRequirementList. Takes a short sample of current requirements for a dashboard widget.
*/
go
COMMENT TO PRESERVE FORMAT ON PROCEDURE "pears"."NetClientCurrentRequirement" IS
{create PROCEDURE pears."NetClientCurrentRequirement"(pWebUserID char(20))
result( RowID char(20),StartDate char(20),CombinedTime char(20),IsShift smallint,Position char(50),ShiftDescription char(50),
CompanyName char(60),ContactName char(60),Consultant char(60),OurRef char(20),ContractRef char(20),ShiftRef char(20),
FilledBy char(250),StartTime char(15),FinishTime char(15),
FinishDate char(30),LongDescription long varchar, PersonID char(20),
TextStatus char(100),CreatedBy char(255),CancelState char(50), ReqDescription char(10), ClientNote char(50),
VacancyNotes Long Varchar, TextStatusFull char(100) )
BEGIN
SELECT *
FROM
"NetClientRequirementList"(
"pWebUserID" = pWebUserID,
"pSlice" = 0,
"pSliceSize" = 20,
"pStartDate" = dateformat(current date-7, 'dd/mm/yyyy'),
"pEndDate" = dateformat(current date, 'dd/mm/yyyy')
)
ORDER BY
StartDate ASC
END
/* DOC
2017-05-18 PC Doc
2017-07-13 PC modified date format
2018-05-30 PC IW-588 add liststatus and detailstatus columns
2018-06-06 MHS changed result set to match NetClientRequirementList, sorted
date format, reduced slice to 20. But this produced odd results, perhaps because
of reversing the sort order so this function is NOT currently in use:
NetClientRequirementList is called directly by the client home page.
Wrapper for NetClientRequirementList. Takes a short sample of current requirements for a dashboard widget.
*/
}