Exemplo n.º 1
0
        /// <summary>
        /// VGI08_1報表(列印鈕)
        /// </summary>
        /// <param name="ParameterList">變數清單</param>        
        /// <returns>回傳查詢結果</returns>
        public DataTable IVM23_1(ArrayList ParameterList, string ReportOutputFormat, ref ReportList.ExcelOtherType EOT)
        {

            #region

            IVMModel.PrintRtnTemplateStock BCO = new IVMModel.PrintRtnTemplateStock(ConntionDB);

            DataTable Dt = BCO.PrintRpt01(ParameterList);

            if (Dt.Rows.Count == 0)
            {
                throw new Exception("查無資料");
            }

            //設定使用第三方元件匯出EXCEL
            if (ReportOutputFormat == "EXCEL")
            {
                EOT = ReportList.ExcelOtherType.None;
            }

            return Dt;


            #endregion
        }
Exemplo n.º 2
0
    public DataTable queryData()
    {
        ResultMsgLabel.Text = "";
        BCO.PrintRtnTemplateStock bco = new BCO.PrintRtnTemplateStock(ConntionDB);

        DataTable Dt = null;

        ArrayList aList = this.getParameterList();


        Dt = bco.PrintRpt01(aList);

        return Dt;
    }