private void Print_OnAttachExport(object sender, EventArgs e) { if (m_print == null || m_Entity == null) return; Print print = new Print(); //B_WorkRelation cEntity = new B_WorkRelation(); //B_WorkRelation cEntity = ControlToEntity(false) as B_WorkRelation;//GetFormData(cEntity, Submit.保存); 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; Print print = new Print(); m_Entity = m_print.m_CurrEntity as B_WorkRelation; //B_WorkRelation cEntity = new B_WorkRelation(); //B_WorkRelation cEntity = ControlToEntity(false) as B_WorkRelation;//GetFormData(cEntity, Submit.保存); print.SetPrintBeginExport(m_print, m_Entity); }
private void Print_OnExtraExport(object sender, EventArgs e) { if (m_print == null || m_Entity == null) return; Print print = new Print(); switch (ucPrint.FileName) { case "工作联系单表单": m_print.BatchAddPicture("工作联系单", "工作联系单表单", m_Entity); break; case "工作联系单": m_print.BatchAddPicture("工作联系单", "工作联系单", m_Entity); break; } }
private void ucPrint_OnBeginExport(object sender, EventArgs e) { Print print = new Print(); //B_WorkRelation cEntity = new B_WorkRelation(); B_WorkRelation cEntity = null; if (base.IsPreview) { cEntity = base.EntityData != null ? base.EntityData as B_WorkRelation : new B_WorkRelation(); } else { cEntity = ControlToEntity(false) as B_WorkRelation;//GetFormData(cEntity, Submit.保存); } print.SetPrintBeginExport(ucPrint, cEntity); }