public SessionInfo(PersonOnJob oPersonOnJob) { try { this.oCurrentPerson = oPersonOnJob.StandardPerson; this.oCurrentJob = oPersonOnJob.OperationJob; this.oCurrentOrg = oPersonOnJob.OperationJob.OperationOrg; } catch { } }
public void btnSureClick(object sender, EventArgs e) { if (this.tvTitle.CheckedNodes.Count > 0) { string sID = this.tvTitle.CheckedNodes[0].Value; OperationOrg oAccount = ResourceSvr.OperationOrgService.GetOperationOrgById(sID); if (oAccount != null) { hdSelectData.Value = UtilClass.ObjectToJson(oAccount); UtilClass.ExecuteScript(this, "Sure();"); } } }
public SessionInfo(string sUserCode, string sPassWord, string sJobID) { ObjectQuery oQuery = new ObjectQuery(); oQuery.AddCriterion(Expression.Eq("StandardPerson.Code", sUserCode)); oQuery.AddCriterion(Expression.Eq("StandardPerson.Password", sPassWord)); oQuery.AddCriterion(Expression.Eq("OperationJob.Id", sJobID)); //oQuery.AddFetchMode("OperationJob", FetchMode.Eager); //oQuery.AddFetchMode("OperationJob.OperationOrg", FetchMode.Eager); //oQuery.AddFetchMode("StandardPerson", FetchMode.Eager); IList lstPersonOnJob = ResourceSvr.PersonOnJobManager.GetOnJobPersonList(oQuery); if (lstPersonOnJob != null && lstPersonOnJob.Count > 0) { PersonOnJob oPersonOnJob = lstPersonOnJob[0] as PersonOnJob; this.oCurrentPerson = oPersonOnJob.StandardPerson; this.oCurrentJob = oPersonOnJob.OperationJob; this.oCurrentOrg = oPersonOnJob.OperationJob.OperationOrg; } else { } }
public SessionInfo(StandardPerson oCurrentPerson, OperationJob oCurrentJob, OperationOrg oCurrentOrg) { this.oCurrentPerson = oCurrentPerson; this.oCurrentJob = oCurrentJob; this.oCurrentOrg = oCurrentOrg; }