Exemple #1
0
        private void Print_OnBeginExport(object sender, EventArgs e)
        {
            if (m_print == null || m_print.m_ls == null || m_print.m_ls.Count == 0)
            {
                return;
            }
            Print print = new Print();

            m_Entity = m_print.m_CurrEntity as EntityLetterSend;
            print.SetPrintBeginExport(m_print, m_Entity);
        }
Exemple #2
0
        private void ucPrint_OnAttachExport(object sender, EventArgs e)
        {
            Print            print   = new Print();
            EntityLetterSend cEntity = null;

            if (base.IsPreview)
            {
                cEntity = base.EntityData != null ? base.EntityData as EntityLetterSend : new EntityLetterSend();
            }
            else
            {
                cEntity = this.ControlToEntity(false) as EntityLetterSend;
            }
            print.SetPrintBeginExport(ucPrint, cEntity);
        }
Exemple #3
0
        private void ucPrint_OnBeginExport(object sender, EventArgs e)
        {
            //string sRes = "";
            //this.Devolve(out sRes);
            Print print = new Print();
            //EntityLetterSend entity = base.EntityData != null ? base.EntityData as EntityLetterSend : new EntityLetterSend();
            EntityLetterSend cEntity = null;

            if (base.IsPreview)
            {
                cEntity = base.EntityData != null ? base.EntityData as EntityLetterSend : new EntityLetterSend();
            }
            else
            {
                cEntity = this.ControlToEntity(false) as EntityLetterSend;
            }
            print.SetPrintBeginExport(ucPrint, cEntity);
        }
        private void Print_OnBeginExport(object sender, EventArgs e)
        {
            if (m_print == null || m_print.m_ls == null || m_print.m_ls.Count == 0) return;
            Print print = new Print();

            m_Entity = m_print.m_CurrEntity as EntityLetterSend;
            print.SetPrintBeginExport(m_print, m_Entity);
        }
 private void ucPrint_OnBeginExport(object sender, EventArgs e)
 {
     //string sRes = "";
     //this.Devolve(out sRes);
     Print print = new Print();
     //EntityLetterSend entity = base.EntityData != null ? base.EntityData as EntityLetterSend : new EntityLetterSend();
     EntityLetterSend cEntity = null;
     if (base.IsPreview)
     {
         cEntity = base.EntityData != null ? base.EntityData as EntityLetterSend : new EntityLetterSend();
     }
     else
     {
         cEntity = this.ControlToEntity(false) as EntityLetterSend;
     }
     print.SetPrintBeginExport(ucPrint, cEntity);
 }
 private void ucPrint_OnAttachExport(object sender, EventArgs e)
 {
     Print print = new Print();
     EntityLetterSend cEntity = null;
     if (base.IsPreview)
     {
         cEntity = base.EntityData != null ? base.EntityData as EntityLetterSend : new EntityLetterSend();
     }
     else
     {
         cEntity = this.ControlToEntity(false) as EntityLetterSend;
     }
     print.SetPrintBeginExport(ucPrint, cEntity);
 }