The document provides instructions for building out a payroll system website in Microsoft Visual Studio. It includes steps to open and set up the solution, add database functionality using an Access database, create classes and datasets to access the database, add forms for user activity tracking and personnel data entry with validation. The steps add navigation between forms to view activity logs and submit personnel data with validation to ensure required fields are complete and dates are in the proper order.
Unit testing your code can be hard and confusing. Particularly, for complex object structures you mock away functionality of collaborators and stub in expected return values, but covering every interaction seems difficult and pointless. In all your code, some parts call APIs to implement a functionality while they also provide an interface that can be used by others. A class' interface can be seen as a boundary with a contract to distinguish client code that uses the class, from service code that implements it's interface. Following this distinction, unit tests can be separated into collaboration and contract tests. In this talk, you'll see examples for different APIs and learn what is tested by existing tests to distinguish between collaboration and contract tests. You'll learn how to use mock objects to implement collaboration and contract tests, and see how integrated tests can be replaced with selected unit tests.
The talk presents how we established a TDD cycle within the complex AEM technology stack using a "unified testing API". It illustrates how such an API can be built and discusses various advantages over other approaches such as the Sling Testing API.
Better Bullshit Driven Development [SeleniumCamp 2017]automician
Slides for the SeleniumCamp 2017 talk: http://seleniumcamp.com/talk/better-bullshit-driven-development/
Presented by Julia Iluhina, Software Developer in Test at Automician.
Talk description:
BDD stands as Behaviour Driven Development and was invented to increase efficiency of ATDD by involving Business Analysts/Product Owners to write Acceptance Criteria in “ready to be automated by developers” format – Gherkin. Then customers and managers invented Bullshit Driven Development when had made automation engineers write both Gherkin and implementation of its steps just for one reason: make tests and their reports readable. This is a classic “hammering nails with a microscope” example, when engineers have to add additional limiting layers to test framework for no any valuable reason. Because… There is much simpler and more powerful way to make simple xUnit tests and reports readable. And in this talk we will learn how. How to implement common xUnit tests in BDD style and make everyone happy – test automation engineer, customer and manager.
In depth overview of the Flex data binding code generation. Provides info on accomplish data binding through actionscript as well as limitations of the process.
Previous weeks work has been uploaded as well as any other pieces ne.docxkeilenettie
Previous weeks work has been uploaded as well as any other pieces needed.
Deliverables
All files are located in the subdirectory of the project. The project should function as specified: When you visit the Personnel form page (frmPersonnel.aspx), a record should be saved in the tblUserActivity table with the IP address, form name accessed (frmPersonnel), and the date accessed. When you click the View Activity button, you should see at least one record with this information. When the user goes to the frmPersonnel web form and enters data, the following business rules are to be enforced.
Fields may not be empty or filled with spaces. If any field is empty, turn that field background color to yellow and add to/create an error message to be shown in the error label.
The end date must be greater than the start date. If the end date is less than the start date turn both date fields yellow and add to/create an error message to be shown in the error label.
If all fields validate properly, then the session state items should be set properly and the user should see the frmPersonnelVerified form with all the values displayed. You will also add a new item to frmMain that will take the user to the new frmUserActivity form you added. Add the proper link and a hyperlinked image to allow the user to select this new option. Once you have verified that everything works, save your website, zip up all files, and submit it.
STEP 1: Step Title
1. Open Microsoft Visual Studio.NET.
2. Open the PayrollSystem website by clicking on it in the Recent Projects list, or by pulling down the File menu, selecting Open Website, navigating to the folder where you previously saved the PayrollSystem, and clicking Open.
3. Download the PayrollSystem_DB.accdb file from the Files section and save it on your local computer. (Note: your operating system may lock or block the file. Once you have copied it locally, right click on the file and select Properties and then Unblock if available). Then add it to the PayrollSystem website as follows: In Visual Studio, in the
Solution
Explorer click Website, Add Existing Item, then navigate to the PayrollSystem_DB.accdb file you downloaded, and click the Add button.
Make sure you select file types, which include *.accdb, *.accdb, etc. Otherwise, you will not be able to see the database file to select.
4. Now we need to create a new connection to the PayrollSystem_DB.accdb. To begin, click View Server Explorer.
5. When the Server Explorer toolbox appears, click the Connect to Database button.
6. When the Add Connection dialog appears, click the Change button. In the Change Data Source dialog, select MS Access Database File; Uncheck Always use this Selection; then click OK.
Press Continue to get the following screen.
7. Click the Browse button to navigate to the PayrollSystem_DB.accdb file in your website folder, then click Open. (NOTE: Be sure you select the PayrollSystem_DB.accdb file in your PayrollSystem website folder ...
CIS407AWk2iLabDefault.aspx Greetings and Salutations.docxclarebernice
CIS407AWk2iLab/Default.aspx
Greetings and Salutations. I will master ASP.NET in this course.
CIS407AWk2iLab/Default.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
CIS407AWk2iLab/frmMain.aspx
Academy of Computing and Information Technology
Annual Salary Calculator
Personnel
CIS407AWk2iLab/frmMain.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class frmMain : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
CIS407AWk2iLab/frmPersonnel.aspx
Academy of Computing and Information Technology
CIS407AWk2iLab/frmPersonnel.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class frmPersonnel : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void TextBox2_TextChanged(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
}
}
CIS407AWk2iLab/frmPersonnelVerified.aspx
Academy of Computing and Information Technology
CIS407AWk2iLab/frmPersonnelVerified.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class frmPersonnelVerified : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
txtVerifiedInfo.Text = Request["txtFirstName"] +
"\n" + Request["txtLastName"] +
"\n" + Request["txtPayRate"] +
"\n" + Request["txtStartDate"] +
"\n" + Request["txtEndDate"];
}
}
CIS407AWk2iLab/frmSalaryCalculator.aspx
Academy of Computing and Information Technology
CIS407AWk2iLab/frmSalaryCalculator.aspx.cs
using System;
using Syste ...
Unit testing your code can be hard and confusing. Particularly, for complex object structures you mock away functionality of collaborators and stub in expected return values, but covering every interaction seems difficult and pointless. In all your code, some parts call APIs to implement a functionality while they also provide an interface that can be used by others. A class' interface can be seen as a boundary with a contract to distinguish client code that uses the class, from service code that implements it's interface. Following this distinction, unit tests can be separated into collaboration and contract tests. In this talk, you'll see examples for different APIs and learn what is tested by existing tests to distinguish between collaboration and contract tests. You'll learn how to use mock objects to implement collaboration and contract tests, and see how integrated tests can be replaced with selected unit tests.
The talk presents how we established a TDD cycle within the complex AEM technology stack using a "unified testing API". It illustrates how such an API can be built and discusses various advantages over other approaches such as the Sling Testing API.
Better Bullshit Driven Development [SeleniumCamp 2017]automician
Slides for the SeleniumCamp 2017 talk: http://seleniumcamp.com/talk/better-bullshit-driven-development/
Presented by Julia Iluhina, Software Developer in Test at Automician.
Talk description:
BDD stands as Behaviour Driven Development and was invented to increase efficiency of ATDD by involving Business Analysts/Product Owners to write Acceptance Criteria in “ready to be automated by developers” format – Gherkin. Then customers and managers invented Bullshit Driven Development when had made automation engineers write both Gherkin and implementation of its steps just for one reason: make tests and their reports readable. This is a classic “hammering nails with a microscope” example, when engineers have to add additional limiting layers to test framework for no any valuable reason. Because… There is much simpler and more powerful way to make simple xUnit tests and reports readable. And in this talk we will learn how. How to implement common xUnit tests in BDD style and make everyone happy – test automation engineer, customer and manager.
In depth overview of the Flex data binding code generation. Provides info on accomplish data binding through actionscript as well as limitations of the process.
Previous weeks work has been uploaded as well as any other pieces ne.docxkeilenettie
Previous weeks work has been uploaded as well as any other pieces needed.
Deliverables
All files are located in the subdirectory of the project. The project should function as specified: When you visit the Personnel form page (frmPersonnel.aspx), a record should be saved in the tblUserActivity table with the IP address, form name accessed (frmPersonnel), and the date accessed. When you click the View Activity button, you should see at least one record with this information. When the user goes to the frmPersonnel web form and enters data, the following business rules are to be enforced.
Fields may not be empty or filled with spaces. If any field is empty, turn that field background color to yellow and add to/create an error message to be shown in the error label.
The end date must be greater than the start date. If the end date is less than the start date turn both date fields yellow and add to/create an error message to be shown in the error label.
If all fields validate properly, then the session state items should be set properly and the user should see the frmPersonnelVerified form with all the values displayed. You will also add a new item to frmMain that will take the user to the new frmUserActivity form you added. Add the proper link and a hyperlinked image to allow the user to select this new option. Once you have verified that everything works, save your website, zip up all files, and submit it.
STEP 1: Step Title
1. Open Microsoft Visual Studio.NET.
2. Open the PayrollSystem website by clicking on it in the Recent Projects list, or by pulling down the File menu, selecting Open Website, navigating to the folder where you previously saved the PayrollSystem, and clicking Open.
3. Download the PayrollSystem_DB.accdb file from the Files section and save it on your local computer. (Note: your operating system may lock or block the file. Once you have copied it locally, right click on the file and select Properties and then Unblock if available). Then add it to the PayrollSystem website as follows: In Visual Studio, in the
Solution
Explorer click Website, Add Existing Item, then navigate to the PayrollSystem_DB.accdb file you downloaded, and click the Add button.
Make sure you select file types, which include *.accdb, *.accdb, etc. Otherwise, you will not be able to see the database file to select.
4. Now we need to create a new connection to the PayrollSystem_DB.accdb. To begin, click View Server Explorer.
5. When the Server Explorer toolbox appears, click the Connect to Database button.
6. When the Add Connection dialog appears, click the Change button. In the Change Data Source dialog, select MS Access Database File; Uncheck Always use this Selection; then click OK.
Press Continue to get the following screen.
7. Click the Browse button to navigate to the PayrollSystem_DB.accdb file in your website folder, then click Open. (NOTE: Be sure you select the PayrollSystem_DB.accdb file in your PayrollSystem website folder ...
CIS407AWk2iLabDefault.aspx Greetings and Salutations.docxclarebernice
CIS407AWk2iLab/Default.aspx
Greetings and Salutations. I will master ASP.NET in this course.
CIS407AWk2iLab/Default.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
CIS407AWk2iLab/frmMain.aspx
Academy of Computing and Information Technology
Annual Salary Calculator
Personnel
CIS407AWk2iLab/frmMain.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class frmMain : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
CIS407AWk2iLab/frmPersonnel.aspx
Academy of Computing and Information Technology
CIS407AWk2iLab/frmPersonnel.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class frmPersonnel : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void TextBox2_TextChanged(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
}
}
CIS407AWk2iLab/frmPersonnelVerified.aspx
Academy of Computing and Information Technology
CIS407AWk2iLab/frmPersonnelVerified.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class frmPersonnelVerified : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
txtVerifiedInfo.Text = Request["txtFirstName"] +
"\n" + Request["txtLastName"] +
"\n" + Request["txtPayRate"] +
"\n" + Request["txtStartDate"] +
"\n" + Request["txtEndDate"];
}
}
CIS407AWk2iLab/frmSalaryCalculator.aspx
Academy of Computing and Information Technology
CIS407AWk2iLab/frmSalaryCalculator.aspx.cs
using System;
using Syste ...
This is part 1 of 3STEP 1 Modify the clsDataLayer to Use a Two-St.docxabhi353063
This is part 1 of 3
STEP 1: Modify the clsDataLayer to Use a Two-Step Process
1. Open Microsoft Visual Studio.NET.
2. Click the ASP.NET project called
PayrollSystem
to open it.
3. Open the
clsDataLayer
class.
4. Modify the
SavePersonnel
() function so that instead of just doing a single
SQL INSERT
operation with all of the personnel data, it does an
INSERT
with only the FirstName and LastName, followed by an
UPDATE
to save the PayRate, StartDate, and EndDate into the new record. (This two-step approach is not really necessary here because we are dealing with only one table, tblPersonnel, but we are doing it to simulate a case with more complex processing requirements, in which we would need to insert or update data in more than one table or maybe even more than one database.)
Find the following existing code in the SavePersonnel() function:
// Add your comments here
strSQL
=
"Insert into tblPersonnel "
+
"(FirstName, LastName, PayRate, StartDate, EndDate) values ('"
+
FirstName
+
"', '"
+
LastName
+
"', "
+
PayRate
+
", '"
+
StartDate
+
"', '"
+
EndDate
+
"')"
;
// Add your comments here
command
.
CommandType
=
CommandType
.
Text
;
command
.
CommandText
=
strSQL
;
// Add your comments here
command
.
ExecuteNonQuery
();
Modify it so that it reads as follows:
// Add your comments here
strSQL
=
"Insert into tblPersonnel "
+
"(FirstName, LastName) values ('"
+
FirstName
+
"', '"
+
LastName
+
"')"
;
// Add your comments here
command
.
CommandType
=
CommandType
.
Text
;
command
.
CommandText
=
strSQL
;
// Add your comments here
command
.
ExecuteNonQuery
();
// Add your comments here
strSQL
=
"Update tblPersonnel "
+
"Set PayRate="
+
PayRate
+
", "
+
"StartDate='"
+
StartDate
+
"', "
+
"EndDate='"
+
EndDate
+
"' "
+
"Where ID=(Select Max(ID) From tblPersonnel)"
;
// Add your comments here
command
.
CommandType
=
CommandType
.
Text
;
command
.
CommandText
=
strSQL
;
// Add your comments here
command
.
ExecuteNonQuery
();
5. Set
frmMain
as the startup form and run the PayrollSystem Web application to test the changes. When valid data values are entered for a new employee, things should work exactly as they did previously. To test it, enter valid data for a new employee in frmPersonnel and click Submit. The frmPersonnelVerified form should be displayed with the entered data values and a message that the record was saved successfully. Click the View Personnel button and check that the new personnel record was indeed saved to the database and that all entered data values, including the PayRate, StartDate, and EndDate, were stored correctly. Close the browser window.
Now run the PayrollSystem Web application again, but this time, enter some invalid data (a nonnumeric value) in the PayRate field to cause an error, like this:
6. Now, when you click Submit, the frmPersonnelVerified form should display a message indicatin ...
Lab StepsSTEP 1 Login Form1. In order to do this lab, we need.docxsmile790243
Lab Steps
STEP 1: Login Form
1. In order to do this lab, we need to assign a primary key to the tblUserLogin table. This will allow us to modify the user login table from our Manage Users form that we will create later. Go to Windows Explorer and open the PayrollSystem_DB.accdb. Set the UserID as the Primary key and save the table. Close the database.
2. Open Microsoft Visual Studio.NET.
3. Click the ASP.NET website named PayrollSystem to open it.
4. Create a new Web form named frmLogin.
5. Add the ACIT logo to the top of the frmLogin page. Do not hyperlink the logo.
6. Under the login controls, you will see Login. Drop the Login control onto the form. Set the properties of the login control as follows:
Property
Value
DestinationPageUrl
frmMain.aspx
TitleText
Please enter your UserName and Password in order to log in to the system.
7. Highlight everything in the form, then click Format, Justify, Center. Save your work.
8. Go to the
Solution
Explorer, right-click on frmLogin, and left-click on Set As Start Page.
Then run the website to check if the Web form appears correctly.
If you receive an error, add the following code to the web.config file right above the </configuration> line:
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
</appSettings>
STEP 2: Login Check
9. Create a new DataSet called dsUser. Use the table tblUserLogin as the database table for this dataset. Do this in the same way that you added datasets in the previous labs.
10. Open the clsDataLayer and add the following function:
// This function verifies a user in the tblUser table
public static dsUser VerifyUser(string Database, string UserName, string UserPassword)
{
// Add your comments here
dsUser DS;
OleDbConnection sqlConn;
OleDbDataAdapter sqlDA;
// Add your comments here
sqlConn = new OleDbConnection("PROVIDER=Microsoft.ACE.OLEDB.12.0;" +
"Data Source=" + Database);
// Add your comments here
sqlDA = new OleDbDataAdapter("Select SecurityLevel from tblUserLogin " +
"where UserName like '" + UserName + "' " +
"and UserPassword like '" + UserPassword + "'", sqlConn);
// Add your comments here
DS = new dsUser();
// Add your comments here
sqlDA.Fill(DS.tblUserLogin);
// Add your comments here
return DS;
}
11. Double-click on the login control that you added. Add the following code to the login control Authenticate event handler:
// Add your comments here
dsUser dsUserLogin;
// Add your comments here
string SecurityLevel;
// Add your comments here
dsUserLogin = clsDataLayer.VerifyUser(Server.MapPath("PayrollSystem_DB.accdb"),
Login1.UserName, Login1.Password);
// Add your comments here
if (dsUserLogin.tblUserLogin.Count < 1)
{
e.Authenticated = false;
return;
}
// Add your comments here
SecurityLevel = dsUserLogin.tblUserLogin[0].SecurityLevel.ToString();
// Add your comments here
switch (SecurityLevel)
{
case "A":
// Add your comments here
e.Authenticated = true;
Session["SecurityLevel"] = "A";
break;
case "U":
// Add your comments ...
This lesson describes the whole exercise from the perspective of a Process Developer
defining Human Task Services, System Services, Business Rules, Conditional Logic, Script Tasks and binding them to the process activities. We will also generate and customize User Interface Forms. Lastly, we will deploy the BPM process to the BPM Suite’s runtime engine.
Once the Application has started up and you are at the Start Page, s.docxarnit1
Once the Application has started up and you are at the Start Page, select the create a new project option. When presented with the New Project window like the one below, be sure that you have highlighted Console Application under the Templates window. Now give the new project the name INV_GRAB in the Name field, and have the location field pointing to the F:\SAI430 folder you have on the F: drive. The diagram below depicts what your New Project window should look similar to.
Once you have done this, select OK to complete this operation. You may get a "Microsoft Development Environment" message box stating that the project location is not a fully trusted .NET runtime location. You can ignore this and just select OK. You should now see your new project listed in the
Solution
Explorer window on the upper right hand corner of the editor window. You are now ready to begin setting up your form.
STEP 2: Setting Up a Database Connection
Back to Top
The first step now is to set up a database connection with Access and then a data set that can be used to transport the data from the database to the application to be written to a file. For the purposes of this lab and your project, you will only need data from two columns in the ITEMS table of the INVENTORY database, but we will control that with the code written later. The following steps will lead you through the process of setting up the connection.
To begin, you need to add the following three namespaces to the top of your application code:
using System.IO;
using System.Data;
using System.Data.OleDb;
Since you are going to be not only connecting to a database but also writing data to a file, you will need all three of these listed.
Now you can set up the connection to your Access database that you downloaded and put in your folder. The actual connection string is @"Provider=Microsoft.JET.OLEDB.4.0; data source=F:\inventory.mdb". This is a standard connection string for MS Access. You will want to precede this with the command - string conString = so that the finished connection looks like this.
string conString = @"Provider=Microsoft.JET.OLEDB.4.0; data source=F:\SAI430\inventory.mdb";
This is simply defining a string variable named conString and assigning the connection string to it. We will use this variable later.
Now we need to define an OleDbConnection that will be used to connect to the database. To do this you will need to define a connection variable as a new OleDbConnection and point it to the connection string defined in the previous step. Your code should look like the following.
OleDbConnection conn = new OleDbConnection(conString);
Now you can connect and open the database with the following command entered right below the line above.
conn.Open();
Last, we need to declare a variable that will be used later on. Although this really has nothing to do with setting up the database connection, this is as good a place as any to do this. You need to define a single variable named rowCount as an.
systems labOnce the Application has started up and you are at the .docxperryk1
systems lab
Once the Application has started up and you are at the Start Page, select the create a new project option. When presented with the New Project window like the one below, be sure that you have highlighted Console Application under the Templates window. Now give the new project the name INV_GRAB in the Name field, and have the location field pointing to the F:\SAI430 folder you have on the F: drive. The diagram below depicts what your New Project window should look similar to.
Once you have done this, select OK to complete this operation. You may get a "Microsoft Development Environment" message box stating that the project location is not a fully trusted .NET runtime location. You can ignore this and just select OK. You should now see your new project listed in the
Solution
Explorer window on the upper right hand corner of the editor window. You are now ready to begin setting up your form.
STEP 2: Setting Up a Database Connection
Back to Top
The first step now is to set up a database connection with Access and then a data set that can be used to transport the data from the database to the application to be written to a file. For the purposes of this lab and your project, you will only need data from two columns in the ITEMS table of the INVENTORY database, but we will control that with the code written later. The following steps will lead you through the process of setting up the connection.
To begin, you need to add the following three namespaces to the top of your application code:
using System.IO;
using System.Data;
using System.Data.OleDb;
Since you are going to be not only connecting to a database but also writing data to a file, you will need all three of these listed.
Now you can set up the connection to your Access database that you downloaded and put in your folder. The actual connection string is @"Provider=Microsoft.JET.OLEDB.4.0; data source=F:\inventory.mdb". This is a standard connection string for MS Access. You will want to precede this with the command - string conString = so that the finished connection looks like this.
string conString = @"Provider=Microsoft.JET.OLEDB.4.0; data source=F:\SAI430\inventory.mdb";
This is simply defining a string variable named conString and assigning the connection string to it. We will use this variable later.
Now we need to define an OleDbConnection that will be used to connect to the database. To do this you will need to define a connection variable as a new OleDbConnection and point it to the connection string defined in the previous step. Your code should look like the following.
OleDbConnection conn = new OleDbConnection(conString);
Now you can connect and open the database with the following command entered right below the line above.
conn.Open();
Last, we need to declare a variable that will be used later on. Although this really has nothing to do with setting up the database connection, this is as good a place as any to do this. You need to define a single variable named ro.
WINDOWS ADMINISTRATION AND WORKING WITH OBJECTS : PowerShell ISEHitesh Mohapatra
WINDOWS ADMINISTRATION AND WORKING WITH OBJECTS
CREATING AND MANAGING ACTIVE DIRECTORY OBJECTS
CONFIGURING NETWORK SETTINGS ON WINDOWS SERVER
CREATING A WEB SITE
SELECTING, SORTING, AND DISPLAYING DATA
FILTERING OBJECTS AND ENUMERATING OBJECTS
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Introduction to AI for Nonprofits with Tapp NetworkTechSoup
Dive into the world of AI! Experts Jon Hill and Tareq Monaur will guide you through AI's role in enhancing nonprofit websites and basic marketing strategies, making it easy to understand and apply.
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Embracing GenAI - A Strategic ImperativePeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
1. Open Microsoft Visual Studio.NET
FOR MORE CLASSES VISIT
tutorialoutletdotcom
1. Open Microsoft Visual Studio.NET.
2. Open the PayrollSystem website by clicking on it in the Recent
Projects list, or by pulling down the File menu, selecting Open Website,
navigating to the folder where you previously saved the PayrollSystem,
and clicking Open.
3. Download the PayrollSystem_DB.accdb file from Doc Sharing and
save it on your local computer. (Note: your operating system may lock
or block the file. Once you have copied it locally, right click on the file
and select Properties and then Unblock if available). Then add it to the
PayrollSystem website as follows: In Visual Studio, in the Solution
Explorer click Website, Add Existing Item, then navigate to the
PayrollSystem_DB.accdb file you downloaded, and click the Add
button.
Make sure you select file types, which include *.accdb, *.accdb, etc.
Otherwise, you will not be able to see the database file to select.
4. Now we need to create a new connection to the
PayrollSystem_DB.accdb. To begin, click View Server Explorer.
5. When the Server Explorer toolbox appears, click the Connect to
Database button.
2. 6. When the Add Connection dialog appears, click the Change button. In
the Change Data Source dialog, select MS Access Database File;
Uncheck Always use this Selection; then click OK.
Press Continue to get the following screen.
7. Click the Browse button to navigate to the PayrollSystem_DB.accdb
file in your website folder, then click Open. (NOTE: Be sure you select
the PayrollSystem_DB.accdb file in your PayrollSystem website folder,
not the one you originally downloaded from Doc Sharing!) Click Test
Connection. You should receive a message that the test connection
succeeded. Click OK to acknowledge the message, then click OK again
to close the Add Connection dialog.
8. The PayrollSystemDB.accdb should be added to the Server Explorer.
Expand the database, then expand the Tables entry under the database
until you see tblUserActivity. Leave the Server Explorer window open
for now as you will be returning to it in a moment.
9. Create a new dataset by selecting Website-> Add New Item. Under
Templates, select the Dataset item. Enter dsUserActivity.xsd for the
name. Click Add.
10. If the following message appears, select Yes. You want to make this
dataset available to your entire website.
3. 11. If the TableAdapter Configuration Wizard dialog appears, click
Cancel. (We will be configuring a Data Adapter for this dataset later in
C# code, so we do not need to run this wizard.)
12. Drag-and-drop the tblUserActivity table from the Server Explorer
window into the dsUserActivity dataset in the editor window.
NOTE: If you see a message that says your connection uses a local data
file that is not in the current project, that indicates you did not select the
correct PayrollSystem_DB.accdb file when you created your data
connection. To fix this problem, click No, then right-click on
PayrollSystemDB.accdb in the Server Explorer window and choose
Modify Connection. Click the Browse button, navigate to the
PayrollSystemDB.accdb file that is in your PayrollSystem website
folder, and click Open. Test the connection, then click OK.
Click the Save icon on the toolbar to save the dsUserActivity.xsd
dataset.
(You can now close the Server Explorer window if you wish.)
13. Create a new class to contain the C# code that will access this
dataset. To do so, click Website, Add New Item. In the Add New Item
dialog, select the Class template, and enter clsDataLayer for the name.
Make sure the Language is set to Visual C#. Click Add.
14. If the following message appears, select Yes. You want to make this
class available to everything in your solution.
4. 15. Add the following to the top of your class, below any other using
statements created for you by Visual Studio.
Add to top of class
// Add your comments here
using System.Data.OleDb;
using System.Net;
using System.Data;
16. Add the following three functions inside the squiggly braces for the
public class clsDataLayer class, above the beginning of the public
clsDataLayer() constructor and save the class.
Class
// This function gets the user activity from the tblUserActivity
public static dsUserActivity GetUserActivity(string Database)
{
// Add your comments here
dsUserActivity DS;
OleDbConnection sqlConn;
OleDbDataAdapter sqlDA;
// Add your comments here
sqlConn = new
OleDbConnection("PROVIDER=Microsoft.ACE.OLEDB.12.0;" +
"Data Source=" + Database);
5. // Add your comments here
sqlDA = new OleDbDataAdapter("select * from tblUserActivity",
sqlConn);
// Add your comments here
DS = new dsUserActivity();
// Add your comments here
sqlDA.Fill(DS.tblUserActivity);
// Add your comments here
return DS;
}
// This function saves the user activity
public static void SaveUserActivity(string Database, string
FormAccessed)
{
// Add your comments here
OleDbConnection conn = new
OleDbConnection("PROVIDER=Microsoft.ACE.OLEDB.12.0;" +
"Data Source=" + Database);
conn.Open();
OleDbCommand command = conn.CreateCommand();
string strSQL;
6. strSQL = "Insert into tblUserActivity (UserIP, FormAccessed) values ('"
+
GetIP4Address() + "', '" + FormAccessed + "')";
command.CommandType = CommandType.Text;
command.CommandText = strSQL;
command.ExecuteNonQuery();
conn.Close();
}
// This function gets the IP Address
public static string GetIP4Address()
{
string IP4Address = string.Empty ;
foreach (IPAddress IPA in
Dns.GetHostAddresses(HttpContext.Current.Request.UserHostAddress)
) {
if (IPA.AddressFamily.ToString() == "InterNetwork") {
IP4Address = IPA.ToString();
break;
}
}
if (IP4Address != string.Empty) {
7. return IP4Address;
}
foreach (IPAddress IPA in
Dns.GetHostAddresses(Dns.GetHostName())) {
if (IPA.AddressFamily.ToString() == "InterNetwork") {
IP4Address = IPA.ToString();
break;
}
}
return IP4Address;
}
Listen
STEP 2: frmUserActivity, frmPersonnel, frmMain
17. Create a new web form called frmUserActivity. Switch to Design
Mode and add the ACIT logo to the page as an ImageButton and link it
back to frmMain. Below the image button add a panel. To the panel, add
a Label and GridView (found under the Toolbox, Data tab) having the
following properties.
Label – Text User Activity
GridView – (ID)grdUserActivity
8. 18. Go to the Page_Load method by double clicking an empty space on
the page and add the following code.
Page_Load method for frmUserActivity.aspx
if (!Page.IsPostBack) {
// Declares the DataSet
dsUserActivity myDataSet = new dsUserActivity();
// Fill the dataset with what is returned from the function
myDataSet =
clsDataLayer.GetUserActivity(Server.MapPath("PayrollSystem_DB.acc
db"));
// Sets the DataGrid to the DataSource based on the table
grdUserActivity.DataSource = myDataSet.Tables["tblUserActivity"];
// Binds the DataGrid
grdUserActivity.DataBind();
}
19. Open the frmMain form, add a new link button and image button to
point to the new frmUserActivity. Find an image to use for the image
button and add the new option as View User Activity.
20. Go to the frmMain Page_Load and add the following code.
frmMain.aspx Page_Load code
// Add your comments here
clsDataLayer.SaveUserActivity(Server.MapPath("PayrollSystem_DB.ac
cdb"), "frmPersonnel");
9. 21. In the Solution Explorer, right click on the frmMain.aspx form and
select Set As Start Page. Run your project. When you open the project, a
record should be saved in the tblUserActivity table with the IP address,
form name accessed (frmPersonnel), and the date accessed. When you
click the View Activity button, you should see at least one record with
this information.
23. You will now add server side validation code to the frmPersonnel
page. Currently, when the Submit button is pressed, the
frmPersonnelVerified page is displayed. This is because the
frmPersonnelVerified page is set as the Submit button's PostBackUrl
property. Instead of having the page go directly to the
frmPersonnelVerified page when the Submit button is pressed, we want
to do some server side validation. If any of the validation rules fail, we
will redisplay the frmPersonnel page with the fields in question
highlighted in yellow with an error message displayed.
First, it is important to understand what is currently happening when the
submit button is pressed. This is causing a postback of the form to the
frmPersonnelVerified form. When this postback happens, all of the data
in the fields on the frmPersonnel form are sent to the
frmPersonnelVerified form as name value pairs. In the Page_Load code
of frmPersonnelVerified these values are picked up from the Request
object and displayed. Each name value pair will be in the Request object
as the ID of the control containing the value and the value itself. We can
pass data between pages by using Session state instead. In order to do
validation on the values but still have the values visible on the
frmPersonnelVerified page, we will need to change not only the
PostBack URL of the frmPersonnel page but also how the
frmPersonnelVerified form is getting the data—it will need to get it from
Session state rather than from the Request object.
In order to do this, we will make the following changes.
Clear the Submit button PostBackURL Property on the frmPersonnel
form. Remove the value in the PostBackUrl that is highlighted.
10. In thebtnSubmit_Click event handler get each value from the data entry
fields and set Session state items for each. (instructions below)
Change the frmPersonnelVerified code behind to get the values from the
Session state items you created in the previous step. (instructions below)
When you are done with these steps, you should be able to enter data on
the frmPersonnel data entry form and then click the Submit button. The
frmPersonnelVerified page should then be displayed with the values that
were in the data entry fields on frmPersonnel.
23. Add a label to the frmPersonnel form with an ID of lblError. Do not
place the label to the right or left of any of the controls on the form. Add
it below the controls or above the controls. The text property of this
label should be set to an empty string.
24. Add code to perform server side validation in response to the submit
button being clicked. Here are the business rules we want to enforce
(remember this will be server C# code in the frmPersonnel code behind):
Fields may not be empty or filled with spaces. If any field is empty, turn
that field background color to yellow and add to/create an error message
to be shown in the error label. The end date must be greater than the start
date. If the end date is less than the start date, turn both date fields
yellow and add to/create an error message to be shown in the error label.
If all fields validate properly then the session state items should be set
properly and the user should see the frmPersonnelVerified form with all
the values displayed.
frmPersonnel.aspx Lab Hints
1. The server side validation should be in the Submit button's event
handler. There is a Trim method on the string object that will
automatically remove spaces from the beginning and end of a string. To
11. test if txtFirstName is empty or filled with spaces, use the following
code.
if (Request["txtFirstName"].ToString().Trim() == "")
2. To set the background color of the txtFirstName field, use the
following code.
txtFirstName.BackColor = System.Drawing.Color.Yellow;
3. To set a value in session state and redirect the response to the
frmPersonnelVerified.aspx do the following. txtFirstName is the key and
txtFirstName.Text is the value.
Session["txtFirstName"] = txtFirstName.Text;
//Need to set session variables for all text boxes
Response.Redirect("frmPersonnelVerified.aspx");
4. You may want to create variables to work with for validation rather
than using the Request item objects directly.
To turn a string into a DateTime object you can use the DateTime
method Parse. If you had a date value stored in a string called strDate,
you could turn it into a DateTime object like this.
DateTime myDateTimeObject = DateTime.Parse(strDate);
You can compare two DateTime objects by using the
DateTime.Compare method. If you had two DateTime objects called dt1
and dt2 you can check to see if dt1 is greater than dt2 by doing this.
if (DateTime.Compare(dt1,dt2) > 0)
DateTime.Compare will return a 0 if the two dates are equal, a 1 if dt1 is
greater than dt2, and a -1 if dt1 is less than dt2.
12. If you put in an invalid date for either of the date fields, you will get an
exception/server error when trying to parse the values. We will address
this in a later lab—for now make sure you enter valid dates (valid
meaning a date in the form of mm/dd/yyyy).
5. An example of the code you might want to use to test if the end date is
after the start date follows.
DateTime startDate = DateTime.Parse(Request["txtStartDate"]);
DateTime endDate = DateTime.Parse(Request["txtEndDate"]);
if (DateTime.Compare(startDate, endDate) > 0)
{
txtStartDate.BackColor = System.Drawing.Color.Yellow;
txtEndDate.BackColor = System.Drawing.Color.Yellow;
Msg = Msg + "The end date must be a later date than the start date.";
//The Msg text will be displayed in lblError.Text after all the error
messages are concatenated
validatedState= false;
//Boolean value - test each textbox to see if the data entered is valid, if
not set validState=false.
//If after testing each validation rule, the validatedState value is true,
then submit to frmPersonnelVerified.aspx, if not, then display error
message
}
else
13. {
txtStartDate.BackColor = System.Drawing.Color.White;
txtEndDate.BackColor = System.Drawing.Color.White;
}
Remember to clear the PostBackURL property of the Submit button!
frmPersonnelVerified.aspx Lab Hints
When using the Session state in frmPersonnel.aspx for txtFirstName,
you used the following code: Session["txtFirstName"] =
txtFirstName.Text;
To get this same value back from the session we use the key and the
Session object in the Page_Load of frmPersonnellVerified.aspx (instead
of using Request, use Session) as follows.
Session["txtLastName"].ToString()
Listen
STEP 3: Verify and Submit
23. View the video above on what functions your lab should have so far.
24. Run your project. When you open the project and go to the main
menu form a record should be saved in the tblUserActivity table with the
IP address, form name accessed (frmPersonnel), and the date accessed.
When you click the View Activity button you should see at least one
record with this information. The validation and error display should
work for entering data. All navigation and hyperlinks should work.
14. Once you have verified that it works, save your project, zip up all files,
and submit in the Dropbox.
************************************************