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