private void Print_OnBeginExport(object sender, EventArgs e) { if (m_print == null || m_print.m_ls == null || m_print.m_ls.Count == 0) { return; } ComSnd_Print print = new ComSnd_Print(); print.m_ProcessID = base.ProcessID; print.m_TemplateID = base.TemplateName; //base.TemplateID; print.m_WorkItemID = base.WorkItemID; m_Entity = m_print.m_CurrEntity as EntitySend; print.SetPrintBeginExport(m_print, m_Entity); }
private void ucPrint_OnBeginExport(object sender, EventArgs e) { ComSnd_Print print = new ComSnd_Print(); //EntitySend cEntity = new EntitySend(); //SetEntity(cEntity); EntitySend cEntity = null; if (base.IsPreview) { cEntity = base.EntityData != null ? base.EntityData as EntitySend : new EntitySend(); } else { cEntity = this.ControlToEntity(false) as EntitySend; } print.m_ProcessID = base.ProcessID; print.m_TemplateID = base.TemplateName; //base.TemplateID; print.m_WorkItemID = base.WorkItemID; print.SetPrintBeginExport(ucPrint, cEntity); }
private void ucPrint_OnBeginExport(object sender, EventArgs e) { ComSnd_Print print = new ComSnd_Print(); //EntitySend cEntity = new EntitySend(); //SetEntity(cEntity); EntitySend cEntity = null; if (base.IsPreview) { cEntity = base.EntityData != null ? base.EntityData as EntitySend : new EntitySend(); } else { cEntity = this.ControlToEntity(false) as EntitySend; } print.m_ProcessID = base.ProcessID; print.m_TemplateID = base.TemplateName; //base.TemplateID; print.m_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; ComSnd_Print print = new ComSnd_Print(); print.m_ProcessID = base.ProcessID; print.m_TemplateID = base.TemplateName; //base.TemplateID; print.m_WorkItemID = base.WorkItemID; m_Entity = m_print.m_CurrEntity as EntitySend; print.SetPrintBeginExport(m_print, m_Entity); }