예제 #1
0
파일: ToolsDL.cs 프로젝트: Jaylala03/CIMS
 public DataTable ReportDesigner_I(ToolsBase ToolsBase)
 {
     dtContainer = new DataTable();
     dsContainer = new DataSet();
     try
     {
         MyParameter[] myParams =
         {
             new MyParameter("@ReportName",   ToolsBase.ReportName),
             new MyParameter("@ReportRole",   ToolsBase.Role),
             new MyParameter("@ReportLayout", ToolsBase.ReportLayout),
             new MyParameter("@ReportSql",    ToolsBase.ExecuteSql),
             new MyParameter("@ReportID",     ToolsBase.ReportID),
             new MyParameter("@WholeLayout",  ToolsBase.WholeLayout)
         };
         Common.Set_Procedures("ReportDesigner_I");
         Common.Set_ParameterLength(myParams.Length);
         Common.Set_Parameters(myParams);
         dtContainer = Common.Execute_Procedures_LoadData();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(dtContainer);
 }
예제 #2
0
 public ActionResult LoadTableColumnsTreeNode_ReportDesign(ToolsBase ToolsBase)
 {
     actionResult = new ActionResult();
     try
     {
         actionResult.dtResult = toolsDL.LoadTableColumnsTreeNode_ReportDesign(ToolsBase);
         if (actionResult.dtResult != null && actionResult.dtResult.Rows.Count > 0)
         {
             actionResult.IsSuccess = true;
         }
     }
     catch (Exception ex)
     {
     }
     return(actionResult);
 }
예제 #3
0
 public ActionResult ReportDesigner_I(ToolsBase ToolsBase)
 {
     actionResult = new ActionResult();
     try
     {
         actionResult.dtResult = toolsDL.ReportDesigner_I(ToolsBase);
         if (actionResult.dtResult != null && actionResult.dtResult.Rows.Count > 0)
         {
             actionResult.IsSuccess = true;
         }
     }
     catch (Exception ex)
     {
     }
     return(actionResult);
 }
예제 #4
0
파일: ToolsDL.cs 프로젝트: Jaylala03/CIMS
 public DataTable LoadDataTablesTree_ReportDesign(ToolsBase ToolsBase)
 {
     dtContainer = new DataTable();
     dsContainer = new DataSet();
     try
     {
         MyParameter[] myParams =
         {
             new MyParameter("@GroupName", ToolsBase.GroupName)
         };
         Common.Set_Procedures("LoadDataTablesTree_ReportDesign");
         Common.Set_ParameterLength(myParams.Length);
         Common.Set_Parameters(myParams);
         dtContainer = Common.Execute_Procedures_LoadData();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(dtContainer);
 }
예제 #5
0
파일: ToolsDL.cs 프로젝트: Jaylala03/CIMS
 public DataTable ReportSQL_Load(ToolsBase ToolsBase)
 {
     dtContainer = new DataTable();
     dsContainer = new DataSet();
     try
     {
         MyParameter[] myParams =
         {
             new MyParameter("@ReportID", ToolsBase.ReportID)
         };
         Common.Set_Procedures("ReportSQL_Load");
         Common.Set_ParameterLength(myParams.Length);
         Common.Set_Parameters(myParams);
         dtContainer = Common.Execute_Procedures_LoadData();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(dtContainer);
 }
예제 #6
0
파일: ToolsDL.cs 프로젝트: Jaylala03/CIMS
 public DataTable ExecuteReport_Sql(ToolsBase ToolsBase)
 {
     dtContainer = new DataTable();
     dsContainer = new DataSet();
     try
     {
         MyParameter[] myParams =
         {
             new MyParameter("@datacolumn", ToolsBase.ExecuteSql)
         };
         Common.Set_Procedures("ExecuteReport_Sql");
         Common.Set_ParameterLength(myParams.Length);
         Common.Set_Parameters(myParams);
         dtContainer = Common.Execute_Procedures_LoadData();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(dtContainer);
 }