Example #1
0
        internal void m_mthPrintDirect()
        {
            DataTable m_dtbPrint = new DataTable();
            long      m_lngSid   = m_objViewer.m_lngMainSEQ;
            int       m_intState = Convert.ToInt32(this.m_objViewer.m_dtbMedicineInfo.Rows[0]["STATUS"].ToString());

            Sybase.DataWindow.DataStore dsData = new Sybase.DataWindow.DataStore();
            dsData.LibraryList = clsMedicineStoreFormFactory.PBLPath;
            int m_intType = 0;//默认格式

            ((clsDcl_StockPlan_Detail)m_objDomain).m_lngGetPrintType(out m_intType);
            if (m_intType == 0)
            {
                ((clsDcl_StockPlan_Detail)m_objDomain).m_lngGetStockPlanForPrint(m_lngSid, m_intState, out m_dtbPrint);
                dsData.DataWindowObject = "ms_stockplan";
            }
            else if (m_intType == 1)
            {
                ((clsDcl_StockPlan_Detail)m_objDomain).m_lngGetStockPlanForPrintTaiShan(m_lngSid, m_intState, out m_dtbPrint);
                dsData.DataWindowObject = "ms_stockplan_ts";
            }
            dsData.Retrieve(m_dtbPrint);
            clsCtl_Public clsPub = new clsCtl_Public();

            clsPub.ChoosePrintDialog_DataStore(dsData, true);
        }
Example #2
0
        /// <summary>
        /// 打印
        /// </summary>
        public void m_mthPrint()
        {
            Sybase.DataWindow.DataStore dsData = new Sybase.DataWindow.DataStore();
            dsData.LibraryList      = clsPublic.PBLPath;
            dsData.DataWindowObject = "ms_medicinelimit";
            dsData.Retrieve(dtbLimit);
            clsCtl_Public clsPub = new clsCtl_Public();

            clsPub.ChoosePrintDialog_DataStore(dsData, true);
        }