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); }
private void Print_OnBeginExport(object sender, EventArgs e) { if (m_print == null || m_print.m_ls == null || m_print.m_ls.Count == 0) return; LR_Print print = new LR_Print(); m_Entity = m_print.m_CurrEntity as B_LetterReceive; print.SetPrintBeginExport(m_print, m_Entity); }
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); }
private void Print_OnBeginExport(object sender, EventArgs e) { if (m_print == null || m_print.m_ls == null || m_print.m_ls.Count == 0) { return; } LR_Print print = new LR_Print(); m_Entity = m_print.m_CurrEntity as B_LetterReceive; print.SetPrintBeginExport(m_print, m_Entity); }
private void ucPrint_OnBeginExport(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.SetPrintBeginExport(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); }