Beispiel #1
0
 public SessionInfo(PersonOnJob oPersonOnJob)
 {
     try
     {
         this.oCurrentPerson = oPersonOnJob.StandardPerson;
         this.oCurrentJob    = oPersonOnJob.OperationJob;
         this.oCurrentOrg    = oPersonOnJob.OperationJob.OperationOrg;
     }
     catch
     {
     }
 }
Beispiel #2
0
 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();");
         }
     }
 }
Beispiel #3
0
    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
        {
        }
    }
Beispiel #4
0
 public SessionInfo(StandardPerson oCurrentPerson, OperationJob oCurrentJob, OperationOrg oCurrentOrg)
 {
     this.oCurrentPerson = oCurrentPerson;
     this.oCurrentJob    = oCurrentJob;
     this.oCurrentOrg    = oCurrentOrg;
 }