예제 #1
0
        internal int GetPrintPage(string reportGroupID, string applicationId)
        {
            int            page           = 0;
            List <string>  list           = new List <string>();
            clsPrintReport clsPrintReport = new clsPrintReport();

            if (list.IndexOf(reportGroupID + applicationId) < 0)
            {
                list.Add(reportGroupID + applicationId);
                clsPrintReport.m_mthGetPrintContentFromDB(reportGroupID, applicationId, true);
                DataTable           m_dtbResult = clsPrintReport.m_ObjPrintInfo.m_dtbResult;
                DataTable           m_dtbSample = clsPrintReport.m_ObjPrintInfo.m_dtbBaseInfo;
                clsUnifyReportPrint printReport = new clsUnifyReportPrint();
                float p_fltX         = 41.3500023F;
                float p_fltY         = 127.796875F;
                float p_fltWidth     = 744.3F;
                float p_fltHeight    = 360.203125F;
                float p_fltMaxHeight = 360.203125F;
                printReport.m_dtbSample = m_dtbSample;
                printReport.m_mthInitalPrintTool();
                clsPrintPerPageInfo[] m_objPrintPage = printReport.m_objConstructPrintPageInfoGetPage(m_dtbResult, p_fltX, p_fltY, p_fltWidth, p_fltHeight, p_fltMaxHeight);
                page = m_objPrintPage.Length;
            }

            return(page);
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        internal void Print(string reportGroupID, string applicationId)
        {
            List <string>  list           = new List <string>();
            clsPrintReport clsPrintReport = new clsPrintReport();

            if (list.IndexOf(reportGroupID + applicationId) < 0)
            {
                list.Add(reportGroupID + applicationId);
                clsPrintReport.m_mthGetPrintContentFromDB(reportGroupID, applicationId, true);
                clsPrintReport.m_mthPrint();
            }
        }
예제 #3
0
        internal void Print()
        {
            bool          flag  = false;
            string        text  = string.Empty;
            string        text2 = string.Empty;
            List <string> list  = new List <string>();

            text  = "000000";
            text2 = "000000000004952076";
            clsPrintReport clsPrintReport = new clsPrintReport();

            if (list.IndexOf(text + text2) < 0)
            {
                list.Add(text + text2);
                clsPrintReport.m_mthGetPrintContentFromDB(text, text2, true);
                //clsPrintReport.m_mthPrint();
                flag = true;
            }
            if (!flag)
            {
                MessageBox.Show("请选择需要打印的的检验报告记录.");
            }
        }