Exemplo n.º 1
0
        private void ExportMM_Click(object sender, EventArgs e)
        {
            IScheduleFm  actFm = this.ActiveMdiChild as IScheduleFm;
            VCExportData data  = ExportMatrix.GetExportData(actFm.Entity);

            VcExport.ExportData((sender as ToolStripItem).Tag as String, data);
        }
Exemplo n.º 2
0
        public static VCExportData GetExportData(BaseEntity entity)
        {
            VCExportData result = new VCExportData();

            result.Name   = entity.Name;
            result.Matrix = GetExportMatrix();
            result.Data   = GetMatrixStringArray(result.Matrix, entity);

            return(result);
        }
Exemplo n.º 3
0
        public static VCExportDataGroup GetExportData(String name, IList <BaseEntity> entities)
        {
            VCExportDataGroup result = new VCExportDataGroup();

            result.Name   = name;
            result.Matrix = GetExportMatrix();
            result.Data   = new List <VCExportData>();
            foreach (BaseEntity entity in entities)
            {
                VCExportData data = new VCExportData();
                data.Name   = entity.Name;
                data.Matrix = result.Matrix;
                data.Data   = GetMatrixStringArray(result.Matrix, entity);

                result.Data.Add(data);
            }

            return(result);
        }