Beruflich Dokumente
Kultur Dokumente
REQUIREMENT ANALYSIS
#include <stdio.h>
#include<string.h>
{
char fname[20];
char lname[20];
char sub_taken[20];
char last_edu[20];
char join_date[20];
int id;
int age;
float bsal;
}
int main(void)
{
int id, check;
Employee emp;
char fname[20];
char lname[20];
long int recsize;
fp=fopen("EMP.DAT","rb+");
if(fp==NULL)
{
fp=fopen( "EMP.DAT","wb+");
if(fp==NULL)
{
printf("Can't Open File");
}
}
recsize=sizeof(emp);
while(1)
{
printf("1.Add Records 2.Delete Records 3.Modify
Records 4.ListRecords 5.Exit");
printf("Enter your choice");
scanf("%c",&choice);
switch(choice)
{
while(fread(&emp,recsize,1,fp)==1)
{
if(emp.id!=id)
fwrite(&emp,recsize,1,ft);
}
fclose(fp);
fclose(ft);
remove("EMP.DAT");
rename("TEMP.DAT","EMP.DAT");
fp=fopen("EMP.DAT","rb+");
printf("Delete another Record(Y/N): ");
fflush(stdin);
another=getchar();
}
break;
case '3':
another='Y';
while(another=='Y'|| another=='y')
{
printf(" Enter name of employee to modify : ");
scanf("%s",emp.fname);
rewind(fp);
while(fread(&emp,recsize,1,fp)==1)
{
if(emp.id!=id)
{
printf("Enter new fname,new
lname,age,basicsalary,joining_date,subject taken
and last education : ");
scanf("%s%s%d%f%s%s
%s",emp.fname,emp.lname,&emp.age,&emp.bsal,
emp.join_date,emp.sub_taken,
emp.last_edu);
fseek(fp,-recsize,SEEK_CUR);
fwrite(&emp,recsize,1,fp);
break;
}
}
printf("Want to Modify another record(Y/N): ");
fflush(stdin);
another=getchar();
}
break;
case '4':
rewind(fp);
while(fread(&emp,recsize,1,fp)==1)
printf("%s %s %d
%g",emp.fname,emp.lname,emp.age,emp.bsal,em
p.join_date,emp.last_edu,emp
.sub_taken);
break;
case '5':
fclose(fp);
return 0;
}
}
}
3. USE OF SMS
3.1 Overall Process
Overall the SMS appropriately supports salary management.
The SMS application software provides the necessary
functions to support salary management in the Department of
Justice. Below we provide a summary of some aspects of the
SMS. Further details on the system’s processes are found in
Appendix B.
The SMS is complex because of its interfaces with other
systems and the need to record pertinent employee and
assignment information that determines salary expenses. The
SMS contains actual and calculated year-to-date salary
expenses. Actual year-to-date salary expenses are updated with
the pay records received from the PWGSC’s Regional Pay
System. The calculated year-to-date salary expenses are
derived from data contained in the SMS.
SMS information is used to prepare the FSRs used by
responsibility centre managers. Furthermore, the Aboriginal
Affairs and Tax Law portfolios use the SMS reports to invoice
clients to recover salary costs based on staff utilization by their
clients.
Administrators initiate staffing actions and update the SMS at
various times. PWGSC prepares salary payments according to
data entered by HR into the PWGSC’s Regional Pay System.
The Systems Section updates SMS tables used for both data
entry in the SMS and for calculation of salary forecasts. These
include financial codes, employee classification, and salaries.
In our opinion, overall the SMS appropriately supports the
salary management function.
There are some issues with the special processes for entering
data in the SMS at year-end.
Users must use special processes for entering data in the SMS
at year-end. At all times, users can view all the information in
the SMS for which they are responsible, including information
from prior years. However, they can enter data only for the
current year. In March users can enter data for both the current
year and the next year. On April 1, it is no longer possible to
enter data for the prior year. Users advised the audit team of a
number of issues with the year-end process:
• The SMS sometimes drops certain assignments.
Therefore, some administrators take the time to check all
assignments with end dates in the new year.
• Saved reports are not carried forward to the new year.
• Access to the current year and the next year are required
earlier than March so that data for the next year can be
updated immediately.
• Assignments for temporary staff with an end date of
March 31 are not carried forward to the new year, even
though administrators know the staff will remain in place.
Some administrators use the April 1 end date to avoid this
problem and change the end date later.
• Vacant positions with end dates of March 31 are not
rolled over to the new year even though the positions
continue to exist.
• Comments that can be entered against assignments are
not carried forward to the next year.
• Some administrators make the forecast for the next year
on spreadsheets, usually based on a count of all positions,
because it is too much work to correct all the assignments
in the SMS.
Recommendation and Management Response
9. It is recommended that the Chief Financial Officer
ensure that issues related to the special processes for
entering data in the SMS at year-end are reviewed and
addressed as required.
Agree. Documentation has been distributed to inform users
regarding the 2009-10 fiscal year-end issues with SMS. As
well, future fiscal year ends will be addressed as part of the
documentation and training provided with the July 1, 2010
implementation of SFT.