Find Jobs
Hire Freelancers

565888 PayrollSystem

N/A

Completed
Posted almost 12 years ago

N/A

Paid on delivery
Hi Nick, Gary here. I know you've never worked with C#, but the previous program files I had about this are no longer in my possession, I've gone to Maria and she said I could forward you this. I recommend you don't deviate from this as it explains step-by-step how to accomplish the various project deliverables your likely to see. I've done this program before, unfortunately, like I said, I don't have the files anymore. I'm also sorry because if I wasn't swamped with work, I'd do the program again myself. Here is the original write-up. All deliverables and modifications are due to Felicia by Sunday, 7 p.m., PST. 1. Utilize Microsoft Visio 2008. 2. Create a new ASP.NET website called "PayrollSystem. When the "New Website" dialog opens, select "ASP.NET Website" as the Template, select "File System" as the Location, and select "Visual C#" as the Language. Click Browse and navigate to the folder where you want to save your website. Add "PayrollSystem" at the end of the file path. Click OK if you are prompted to create a new folder. Click OK in the New Website dialog to finish creating the website. 3. Edit the [login to view URL] file (the home page for your site) to add the message "Hello, World." To do this, if necessary, click the Design button below the editing window to switch to Design view, then click in the editing window and type "Hello, World" (without the quotes). 4. Save [login to view URL] 5. Add a new form to your web application called frmSalaryCalculator.aspx. Make sure "Place Code in separate file" is checked when you add the form. To add a new form, click (single-click, not double-click) on the project node in the solution explorer. 6. Open the aspx page in Design view and, from the Toolbox, add three labels, two text box controls, and a button control. You can add controls by dragging the control from the Toolbox – Standard section onto your form. 7. Change the text displayed in each label so that the first label displays "Annual Hours"; the second label should display "Rate" and the third label should display "$". (Hint: To change the text displayed, change the Text property of each control.) 8. Change the button text to display "Calculate Salary." See frmSalaryCalculator2. 9. Set the ID property of the top text box to txtAnnualHours. Set the ID property of the second textbox to txtRate. Set the ID of the bottom label (the one we set the text property to "$") to lblSalary. (Note: We set these IDs as we will be accessing the control values from the C# code. You can set the button ID and the other two labels' ID properties as well, but we won't be accessing them from our code.) 10. In Design view, add a C# event handler for the button-click event by double-clicking on the Calculate Salary button. This will place you in the page code behind file the editor. This is the code that should be displayed: See frmSalaryCalculator3. This code will be called each time the user presses the button. Now comes the tricky part I know your going to struggle with Nick. Add code that will get the text in the txtAnnualHours text box, convert it to a Double, and store it in a double variable. Add code that will get the text from the txtRate text box, convert it to a Double, and store it in another variable. Create a third variable of type Double and set its value to the annual hours variable value multiplied by the rate double variable value. Take this resulting value and convert it to a string (text), and update the lblSalary Text property with this new string. Recommendations: A control's property can be accessed by simply using the control ID followed by a . followed by the name of the property. For example, the value stored in the Text property of the txtAnnualHours control can be accessed by using this: txtAnnualHours.Text. Text properties on controls are of type string. To convert a string to a Double you can use the Convert class. If we had a string variable called str1 and a double variable called myNumber, the C# code to convert this would be as follows: See frmSalaryCalculator4. When converting from one type to another, we are assuming that the value stored in the type being converted is compatible with the type we are converting to. In the example above, if the value stored in str1 was not type compatible with a Double (for example "tiger") an error would be raised. To set the value of a control on a web form, you can access the control and set the property directly. If I had a label control called lblCar and I wanted to update the text that was displayed in the label, I could do something like this: See frmSalaryCalculator5. DO NOT DO THIS: See frmSalaryCalculator6. All of the base types in C# (double, int etc) have a ToString() method you can call. If you had a double variable that you wanted to convert to a string and set that string to my label's text, you would do the following: frmSalaryCalculator7 This will take whatever value was stored in the myNumber Double and convert it to a string. To add a $ to output you can use string concatenation in C# like this: frmSalaryCalculator8. 11. Set the form to "Set as Start Page." Test it. This I failed to accomplish. My boss has come forward and requested me to replicate the program to these instructions. Problem is, I have tested this program for the past week, plus this one and I still am hitting major roadblocks. Not only this, but I have another deliverable dependent on those instructions above. So I need that source code. I hope you tell me you can accomplish this. With that said, I have new project deliverables for this week on top of those above: The website should function as follows: Nick. Gary again. Here is the second write-up I've had. Once again, please have the deliverables to Felicia by Sunday, 7 p.m., PST. When you run the website, you will be presented with a page (frmMain) that allows you to go to the different parts of the website you are developing. You will be able to go to the annual salary calculator we added last week and to the data entry form for personnel this week. When you go to the personnel data entry page you should be able to enter data in the frmPersonnel form and have it displayed in the frmPersonnelVerified form. Your salary calculator will also be available from the main page and will calculate properly when you enter data. Each page should link back to the main page via the CoolBiz logo hyperlink. Instructions: Process instructions for program: Microsoft Visio 2008. 1. Open the payroll system website from Week1Deliverable. 2. Create a new form called frmPersonnel. To do this, pull down the website menu, select "Add New Item," then type [login to view URL] for the name. 3. Go to the Design mode of the form by clicking the Design tab (as opposed to the Source tab). 4. Copy/paste this text for the CoolBiz Productions, Inc. logo onto the form at the very top. Please note this is a placeholder. We will be modifying it later. Set the alignment to center by highlighting the text then clicking Format, Justify, Center. You can switch to Source view and add the following HTML to create the logo: <font color="black" size="2"><strong><font color="blue" face="Comic Sans MS" size="4">Cool</font><font color="#ff6600" face="Comic Sans MS" size="4">Biz</font><font face="Comic Sans MS" size="4"> <font color="#993366">Productions</font>, Inc.</font></strong> </font> 5. From the ToolBox, drag-and-drop a Panel control underneath the logo text. 6. Click the A/Z button in the Properties dialog so that all the properties are sorted alphabetically. 7. Change the height property of the Panel to 250px and the width to 300px. Go to the Panel, and then go to the Properties pane. Scroll down the list, and then type the value in for each property. 8. Change the panel's HorizontalAlign property to left. 9. From the ToolBox, drag-and-drop five Labels and five TextBoxes onto the Panel. From the ToolBox, drag-and-drop two buttons onto the Panel below the last Label and TextBox. 10. I recommend testing your web page right now Nick. Make sure the coding is solid, their shouldn't be any complications right now. 11. Now rename the Label's properties as defined below. You can do this by selecting each Label, scrolling to the property, and then typing in the value. Property Value Label1 – Text First Name: Label2 – Text Last Name: Label3 – Text Pay Rate: Label4 – Text Start Date: Label5 – Text End Date: 12. Rename each TextBox's property as defined below. You can do this by selecting each TextBox, scrolling to the property, and then typing in the value. Property Value TextBox1 – (ID) txtFirstName TextBox2 – (ID) txtLastName TextBox3 – (ID) txtPayRate TextBox4 – (ID) txtStartDate TextBox5 – (ID) txtEndDate 13. Change each button's ID and Text properties as defined below. You can do this by selecting each button, scrolling to the property, and then typing in the value. Property Value Button1 – (ID) btnSubmit Button1 – Text Submit Button2 – (ID) btnCancel Button2 – Text Cancel 14. In order to format the TextBoxes and Labels, we will make them the same size. Bring up the Layout Toolbar by clicking View, Toolbars, Layout. 15. Highlight each Label by pressing and holding the keyboard Ctrl button and then clicking each Label. Make sure you click on the longest Label last. 16. Click the icon "Make Same Width" on the Layout Toolbar. (You may also select Format and then Make Same Size and then select width). 17. Test the program again. You're done with this part. 22. Create a new web form called [login to view URL] 23. Click the Design tab for the [login to view URL] and add a Label and a TextBox. Set the properties as follows: Property Value Label – Text Information to submit Textbox – (ID) txtVerifiedInfo Textbox – Height 80px Textbox – Width 400px Textbox – TextMode Multiline 24. Double-click anywhere on a blank part of the web page to open the code portion. The cursor should be in the protected void Page_Load (object sender, EventArgs) function. Enter the following information: //Add your comments here [login to view URL] = Request["txtFirstName"] + "\n" + Request["txtLastName"] + "\n" + Request["txtPayRate"] + "\n" + Request["txtStartDate"] + "\n" + Request["txtEndDate"]; 25. Return to the frmPersonnel web page, click the btnSubmit button, go to the PostBackUrl property, and set it to frmPersonalVerified.aspx. To do this, you can click the ellipse to the right of this property to open a Browse dialog and click [login to view URL] there. This will insert the correct path into the PostBackUrl property. 26. Create a folder in Solution Explorer called images. 27. Add a new web form called frmMain. A. Add the CoolBiz Logo to the top of the form (centered). B. Create links using a link button for each of the following items. Salary Calculator Add New Employee C. Create or find appropriate images for the Salary Calculator and New Employee links. Copy the images to the images folder created above. D. Add the images to the images folder by right-clicking on the images folder in Solution Explorer and selecting Add Existing Items. Select both images and Add to the images folder. E. Next to each link item, add an image button. F. Set each image button's image to the appropriate image in the images folder. G. You may work with the format to make this page look nice by using tables or other HTML/CSS elements. H. Set the PostbackURL property to the appropriate page for each image and each link. 28. On the frmPersonnel page, make the CoolBiz logo be a link that will take the user to the frmMain page. Use an ASP.Net Hyperlink control to do this. 29. Update the frmPersonnel, frmPersonnelVerified, and frmSalaryCalculator to include the CoolBiz logo at the top of each page (centered) with the logo set as a hyperlink that will return to the frmMain page. 30. On the frmPersonnel page, make it so that if the user presses the Cancel button then that user is taken back to the frmMain. 31. Test the program. Save it.
Project ID: 2311847

About the project

1 proposal
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Ready as discussed. Thanks.
$50 USD in 1 day
4.9 (200 reviews)
5.7
5.7

About the client

Flag of
5.0
16
Member since Aug 8, 2010

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.