private MEmployeeLeave GetEmployeeLeaveInfo() { MEmployee emp = (MEmployee)vw; CTable o = OnixWebServiceAPI.SubmitObjectAPI("GetEmployeeLeaveInfo", emp.GetDbObject()); MEmployeeLeave el = new MEmployeeLeave(o); el.InitializeAfterLoaded(); el.DepartmentName = Path.GetFileName(emp.DepartmentObj.Description); el.PositionName = Path.GetFileName(emp.PositionObj.Description); return(el); }
private MEmployeeLeave GetEmployeeLeaveInfo() { MEmployeeLeave mv = (MEmployeeLeave)vw; CTable t = new CTable(""); t.SetFieldValue("EMPLOYEE_ID", mv.EmployeeID); CTable e = OnixWebServiceAPI.SubmitObjectAPI("GetEmployeeInfo", t); MEmployee emp = new MEmployee(e); CTable o = OnixWebServiceAPI.SubmitObjectAPI("GetEmployeeLeaveInfo", emp.GetDbObject()); MEmployeeLeave el = new MEmployeeLeave(o); el.InitializeAfterLoaded(); el.DepartmentName = Path.GetFileName(emp.DepartmentObj.Description); el.PositionName = Path.GetFileName(emp.PositionObj.Description); return(el); }