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_PF; m_Entity.ProcessID = base.ProcessID; m_Entity.WorkItemID = base.WorkItemID; print.SetPrintBeginExport(m_print, m_Entity); }
private void ucPrint_OnBeginExport(object sender, EventArgs e) { UC_Print ucPrint = sender as UC_Print; Print print = new Print(); B_PF cEntity = null; //SetEntity(cEntity); if (base.IsPreview) { cEntity = base.EntityData != null ? base.EntityData as B_PF : new B_PF(); } else { cEntity = this.ControlToEntity(false) as B_PF; } cEntity.ProcessID = base.ProcessID; cEntity.WorkItemID = base.WorkItemID; print.SetPrintBeginExport(ucPrint, cEntity); }
private void ucPrint_OnBeginExport(object sender, EventArgs e) { UC_Print ucPrint = sender as UC_Print; Print print = new Print(); B_PF cEntity = null; //SetEntity(cEntity); if (base.IsPreview) { cEntity = base.EntityData != null ? base.EntityData as B_PF : new B_PF(); } else { cEntity = this.ControlToEntity(false) as B_PF; } cEntity.ProcessID = base.ProcessID; cEntity.WorkItemID = base.WorkItemID; 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 B_PF; m_Entity.ProcessID = base.ProcessID; m_Entity.WorkItemID = base.WorkItemID; print.SetPrintBeginExport(m_print, m_Entity); }