Example #1
0
 public CIObject(String bioCode, BioSession ownerSession) {
   this._ownerSession = ownerSession;
   this.bioCode = bioCode;
   this._ownerSession.IObj_set(this.bioCode, this);
   this._locPath = Utl.GenBioLocalPath(this.bioCode);
   if(this._locPath.Length > 0)
     this._locPath = this.OwnerSession.Cfg.IniPath + this._locPath;
 }
    //private ExportFormatType FExpType = ExportFormatType.PortableDocFormat;

    public CRptBuilderCR(BioSession pSess, String pRptCode) {
      this.FSess = pSess;
      this.FRptCode = pRptCode;
      this.FRptFile = this.FSess.Cfg.IniPath + this.FRptCode.Replace(".", "\\") + ".rpt";
      this.FRptFullPath_ws = this.FSess.Cfg.RptLogsPath + Utl.GenBioLocalPath(this.FRptCode);
      this.FRptDonePath = Path.GetDirectoryName(this.FRptFullPath_ws) + "\\done\\"; Directory.CreateDirectory(this.FRptDonePath);
      this.FRptTmpPath = Path.GetDirectoryName(this.FRptFullPath_ws) + "\\tmp\\";
      this.FRptLogPath = Path.GetDirectoryName(this.FRptFullPath_ws) + "\\log\\";
    }
 public RmtThreadHandler(BioSession bioSess, String contentType, String instanceUID) {
   this.BioSess = bioSess;
   this.Context = this.BioSess.CurBioHandler.Context;
   this.ContentType = contentType;
   var iObj = this.BioSess.CurBiObject;
   this.AppURL = this.BioSess.Cfg.AppURL;
   this.BioCode = this.BioSess.CurBioCode;
   this.BioDoc = (iObj != null) ? iObj.IniDocument.XmlDoc : null;
   this.InstanceUID = instanceUID;
 }
Example #4
0
 public static CIObject CreateIObject(String bioCode, BioSession ownerSession, bool suppressErrors) {
   CIObject vResult = null;
   String vIniFileName = SrvUtl.bldiniFileName(ownerSession.Cfg.IniPath, bioCode);
   if(File.Exists(vIniFileName)) {
     vResult = ownerSession.IObj_get(bioCode);
     if(vResult == null) {
       vResult = new CIObject(bioCode, ownerSession);
     }
     //TIObject vResult = new TIObject(pIOCode, pIOUID, pOwnerSession);
     try {
       vResult.initIO(ownerSession.Cfg.DoReloadIOOnInit);
     } catch {
       if(!suppressErrors)
         throw;
       else
         vResult = null;
     }
   }
   return vResult;
 }
Example #5
0
 public static CIObject CreateIObject(String bioCode, BioSession ownerSession) {
   return CreateIObject(bioCode, ownerSession, false);
 }