private void Print_OnAttachExport(object sender, EventArgs e) { if (m_print == null || m_Entity == null) return; Print print = new Print(); //B_RequestReport cEntity = this.ControlToEntity(false) as B_RequestReport; print.SetPrintAttachExport(m_print, m_Entity); }
private void Print_OnAttachExport(object sender, EventArgs e) { if (m_print == null || m_Entity == null) { return; } Print print = new Print(); //B_RequestReport cEntity = this.ControlToEntity(false) as B_RequestReport; print.SetPrintAttachExport(m_print, m_Entity); }
private void ucPrint_OnAttachExport(object sender, EventArgs e) { Print print = new Print(); //B_RequestReport cEntity = new B_RequestReport(); //GetFormData(cEntity, Submit.保存); B_RequestReport cEntity = null; if (base.IsPreview) { cEntity = base.EntityData != null ? base.EntityData as B_RequestReport : new B_RequestReport(); } else { cEntity = this.ControlToEntity(false) as B_RequestReport; } print.SetPrintAttachExport(ucPrint, cEntity); }
private void ucPrint_OnAttachExport(object sender, EventArgs e) { Print print = new Print(); //B_RequestReport cEntity = new B_RequestReport(); //GetFormData(cEntity, Submit.保存); B_RequestReport cEntity = null; if (base.IsPreview) { cEntity = base.EntityData != null ? base.EntityData as B_RequestReport : new B_RequestReport(); } else { cEntity = this.ControlToEntity(false) as B_RequestReport; } print.SetPrintAttachExport(ucPrint, cEntity); }