本文整理汇总了C#中Service1Client.GetEmployee方法的典型用法代码示例。如果您正苦于以下问题:C# Service1Client.GetEmployee方法的具体用法?C# Service1Client.GetEmployee怎么用?C# Service1Client.GetEmployee使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Service1Client
的用法示例。
在下文中一共展示了Service1Client.GetEmployee方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
static void Main(string[] args)
{
Service1Client proxy = new Service1Client();
EmployeeDTO emp = new EmployeeDTO
{
Name = "dj",
City = "Delhi",
Id = "E99"
};
proxy.AddEmployee(emp);
var result = proxy.GetEmployee();
foreach (var r in result)
{
Console.WriteLine(r.Name);
}
Console.ReadKey(true);
}
示例2: btnSendReport_Click
// Sparar ner rapport
protected void btnSendReport_Click(object sender, EventArgs e)
{
BeraknaTraktAv();
setEID();
countExpenses();
CheckCar();
//Skapar en ny rapport för sparning.
CompositeReport rep = new CompositeReport();
rep.REPID = repID;
rep.EID = eid;
rep.Expenses = totalExpenses;
rep.MID = missionID;
rep.Car = car;
rep.Miles = km;
//Rapportör
CompositeEmployee emp = new CompositeEmployee();
//ChefObjekt
CompositeEmployee empChef = new CompositeEmployee();
//Mission för att hämta manager.
CompositeMission mission = new CompositeMission();
//Chef
int chefID = 0;
using (var client = new Service1Client())
{
client.SaveReport(rep);
SaveExpenses();
SaveSubsistences();
SaveDeviations();
emp = client.GetEmployee(eid);
mission = client.GetMission(missionID);
chefID = mission.Manager;
empChef = client.GetEmployee(chefID);
}
bool epostSkickat = Klasser.Epost.Skicka(empChef.Email, "Ny Rapport", "Du har en ny rapport att godkänna från: " + emp.FirstName + " " + emp.LastName);
if (epostSkickat)
{
}
}