Ejemplo n.º 1
0
 public static bool SaveReportFile(string rptFilePath, MESReportFileObj robj)
 {
     try
     {
         return(PMS.Libraries.ToolControls.PMSPublicInfo.PMSFileClass.SaveFile(rptFilePath, robj));
     }
     catch (System.IO.IOException)
     {
         return(false);
     }
 }
Ejemplo n.º 2
0
 public static bool LoadReportFile(string rptFilePath, ref MESReportFileObj robj)
 {
     try
     {
         object obj = robj;
         if (PMS.Libraries.ToolControls.PMSPublicInfo.PMSFileClass.LoadFile(rptFilePath, ref obj, new UBinder()))
         {
             robj = obj as MESReportFileObj;
             return(true);
         }
         return(false);
     }
     catch (System.IO.IOException)
     {
         return(false);
     }
 }
Ejemplo n.º 3
0
 public bool LoadReportConfig(string rptFile)
 {
     try
     {
         Dispose();
         if (_FieldTreeViewData != null)
         {
             _FieldTreeViewData = null;
         }
         MESReportFileObj reportFileObj = new MESReportFileObj();
         if (!DBFileManager.LoadReportFile(rptFile, ref reportFileObj))
         {
             return(false);
         }
         _DesignerControl   = new Host.DesignerControl(reportFileObj.strXMLDoc, 1, false);
         _FieldTreeViewData = reportFileObj.dataSource;
     }
     catch (System.Exception ex)
     {
         return(false);
     }
     return(true);
 }