private void Print_OnAttachExport(object sender, EventArgs e)
        {
            if (m_print == null || m_Entity == null) return;
            LR_Print print = new LR_Print();

            print.SetPrintAttachExport(m_print, m_Entity);
        }
Exemplo n.º 2
0
        private void Print_OnAttachExport(object sender, EventArgs e)
        {
            if (m_print == null || m_Entity == null)
            {
                return;
            }
            LR_Print print = new LR_Print();

            print.SetPrintAttachExport(m_print, m_Entity);
        }
Exemplo n.º 3
0
        private void ucPrint_OnAttachExport(object sender, EventArgs e)
        {
            LR_Print print = new LR_Print();
            //B_LetterReceive cEntity = new B_LetterReceive();
            //this.PopulateEntity(cEntity, base.ViewIDorName, base.WorkItemID);
            B_LetterReceive cEntity = null;//this.ControlToEntity(false) as B_LetterReceive;

            if (base.IsPreview)
            {
                cEntity = base.EntityData != null ? base.EntityData as B_LetterReceive : new B_LetterReceive();
            }
            else
            {
                cEntity = this.ControlToEntity(false) as B_LetterReceive;
            }
            //SetEntity(cEntity);
            print.SetPrintAttachExport(ucPrint, cEntity);
        }
 private void ucPrint_OnAttachExport(object sender, EventArgs e)
 {
     LR_Print print = new LR_Print();
     //B_LetterReceive cEntity = new B_LetterReceive();
     //this.PopulateEntity(cEntity, base.ViewIDorName, base.WorkItemID);
     B_LetterReceive cEntity = null;//this.ControlToEntity(false) as B_LetterReceive;
     if (base.IsPreview)
     {
         cEntity = base.EntityData != null ? base.EntityData as B_LetterReceive : new B_LetterReceive();
     }
     else
     {
         cEntity = this.ControlToEntity(false) as B_LetterReceive;
     }
     //SetEntity(cEntity);
     print.SetPrintAttachExport(ucPrint, cEntity);
 }