本文整理汇总了C#中Email.ProjectStaff方法的典型用法代码示例。如果您正苦于以下问题:C# Email.ProjectStaff方法的具体用法?C# Email.ProjectStaff怎么用?C# Email.ProjectStaff使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Email
的用法示例。
在下文中一共展示了Email.ProjectStaff方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Unnamed_Click
protected void Unnamed_Click(object sender, EventArgs e)
{
Project newProject = (Project)Application["newProject"];
newProject.ManagersDescription = txtManagerNote.Text;
string s = newProject.InsertNewProject(newProject);
//Insert Project products
foreach (ProjectProducts pp in ProjectProductsBindingList.RequestedProjectProductList)
{
ClientVehicleProduct cvp = new ClientVehicleProduct();
cvp.GenericVehicleProductNumber = pp.GenericVehicleProductNumber;
cvp.ProjectNumber = newProject.ProjectNumber;
cvp.ClientVehicleNumber = newProject.ClientVehicleNumber;
s = cvp.InsertClientVehicleProducts(cvp);
}
//Insert Project Staff
foreach (ProjectStaff ps in ProjectStaffBindingList.ProjectStaffList)
{
s = ps.InsertProjectStaffMember(ps);
//Send Email
foreach (TweekPerformance_BT.Employee emp in EmployeeBindingList.EmployeeList)
{
if (ps.UserNumber == emp.UserNumber)
{
foreach (ClientVehicle cv in ClientVehicleBindingList.ClientVehicleList)
{
if (newProject.ClientVehicleNumber == cv.ClientVehicleNumber)
{
Email sendEmail = new Email();
sendEmail.ProjectStaff("[email protected]", emp.FirstName, newProject, cv);
}
}
}
}
}
Response.Redirect("./Overview");
}