コード例 #1
0
        public string CreateRequestTitle(Employee employee)
        {
            OrgServiceClient client       = new OrgServiceClient();
            string           deptName     = client.GetDepartment(this.DepartmentId).Name;
            string           positionName = client.GetPosition(this.PositionId).Name;

            return(string.Format("{0} for {1} created by {2} ({3})", positionName, deptName, employee.Name, DateTime.Now.ToString()));
        }
コード例 #2
0
        // get the name of the department
        string GetDepartmentName(string id)
        {
            OrgServiceClient client = new OrgServiceClient();
            Department       dept   = client.GetDepartment(id);

            client.Close();
            return(dept.Name);
        }
コード例 #3
0
 // get the name of the department
 string GetDepartmentName(string id)
 {
     OrgServiceClient client = new OrgServiceClient();
     Department dept = client.GetDepartment(id);
     client.Close();
     return dept.Name;
 }
コード例 #4
0
 public string CreateRequestTitle(Employee employee)
 {
     OrgServiceClient client = new OrgServiceClient();
     string deptName = client.GetDepartment(this.DepartmentId).Name;
     string positionName = client.GetPosition(this.PositionId).Name;
     return string.Format("{0} for {1} created by {2} ({3})", positionName, deptName, employee.Name, DateTime.Now.ToString());
 }