public static Rdl.ReportItemsType CreateItems(string groupBy, string fromDate, string toDate, string billStatus, string reportName)
        {
            ClsTimeSheet objts = new ClsTimeSheet();

            // ClsConfiguration objconfi = new ClsConfiguration();
            Rdl.ReportItemsType items = new Rdl.ReportItemsType();
            items.Items = new Rdl.TextboxType[6]; //4 because we just need 4 textboxes. Name, Address and Date from Database.
            DataSet ds = new DataSet();

            objts.id       = "";
            objts.taskType = "Task";
            objts.action   = "getalltasks";
            ds             = objts.timesheetrdlcreport();
            if (ds.Tables[0].Rows.Count > 0)
            {
                items.Items[0] = CreateTableCellTextbox(ds.Tables[0].Rows[0]["companyname"].ToString(), true, 1);  //passing 1,2,3 and 4 in order to set their corresponding left,right,top,bottom and width property
                items.Items[1] = CreateTableCellTextbox(ds.Tables[0].Rows[0]["address"].ToString()
                                                        + "\n" + "Tel: " + ds.Tables[0].Rows[0]["phone"].ToString()
                                                        + "\n" + "Fax: " + ds.Tables[0].Rows[0]["fax"].ToString()
                                                        + "\n" + ds.Tables[0].Rows[0]["email"].ToString()
                                                        + "\n" + ds.Tables[0].Rows[0]["website"].ToString()
                                                        , false, 2);
                var    dateOfToday = DateTime.Now;
                string strDate     = dateOfToday.ToString("MM/dd/yyyy");
                items.Items[2] = CreateTableCellTextbox("Printed on: " + strDate, false, 3);
                items.Items[3] = CreateTableCellTextbox(reportName + "( Billable : " + billStatus + ")", true, 4); //passing 1,2,3 and 4 in order to set their
                items.Items[4] = CreateTableCellTextbox("From : " + fromDate + " To : " + toDate, true, 5);        //passing 1,2,3 and 4 in order to set their
            }
            return(items);
        }
        private Rdl.ReportItemsType CreateHeaderTableCellReportItems(Column fieldColumn)
        {
            var headerTableCellReportItems = new Rdl.ReportItemsType {
                Items = new object[] { CreateHeaderTableCellTextbox(fieldColumn) }
            };

            return(headerTableCellReportItems);
        }
        private Rdl.ReportItemsType CreateTableCellReportItems(string fieldName)
        {
            var reportItems = new Rdl.ReportItemsType {
                Items = new object[] { CreateTableCellTextbox(fieldName) }
            };

            return(reportItems);
        }
        private Rdl.ReportItemsType CreateReportItems()
        {
            Rdl.ReportItemsType reportItems = new Rdl.ReportItemsType();
            TableRdlGenerator   tableGen    = new TableRdlGenerator();

            tableGen.Fields   = m_selectedFields;
            reportItems.Items = new object[] { tableGen.CreateTable() };
            return(reportItems);
        }
Beispiel #5
0
        private Rdl.ReportItemsType CreateReportItems()
        {
            var reportItems = new Rdl.ReportItemsType();
            var tableGen    = new TableRdlGenerator {
                Fields = _mSelectedFields
            };

            reportItems.Items = new object[] { tableGen.CreateTable() };
            return(reportItems);
        }
 public Rdl.ReportItemsType CreateItems()
 {
     Rdl.ReportItemsType items = new Rdl.ReportItemsType();
     items.Items = new Rdl.TextboxType[m_fields.Count];
     int i = 0;
     foreach (string key in m_fields.Keys)
     {
         items.Items[i++] = CreateTextBox(m_fields[key]);
     }
     return items;
 }
Beispiel #7
0
        private Rdl.ReportItemsType CreateReportItems()
        {
            Rdl.ReportItemsType reportItems = new Rdl.ReportItemsType();
            MatrixRdlGenerator  matrixGen   = new MatrixRdlGenerator();

            matrixGen.ColumnFields     = m_columnFields;
            matrixGen.RowFields        = m_rowFields;
            matrixGen.SummarizedFields = m_summarizedFields;
            reportItems.Items          = new object[] { matrixGen.CreateMatrix() };
            return(reportItems);
        }
Beispiel #8
0
        public Rdl.ReportItemsType CreateItems()
        {
            Rdl.ReportItemsType items = new Rdl.ReportItemsType();
            items.Items = new Rdl.TextboxType[m_fields.Count];
            int i = 0;

            foreach (string key in m_fields.Keys)
            {
                items.Items[i++] = CreateTextBox(m_fields[key]);
            }
            return(items);
        }
        private static Rdl.ReportItemsType CreateReportItems(string groupBy)
        {
            Rdl.ReportItemsType reportItems = new Rdl.ReportItemsType();
            TableRdlGenerator   tableGen    = new TableRdlGenerator();

            try
            {
                tableGen.Fields   = allColumns;
                reportItems.Items = new object[] { tableGen.CreateList(groupBy) }; //create a list, why list ? we will explain in its definition
            }
            catch (Exception ex) { }
            return(reportItems);
        }
 private Rdl.ReportItemsType CreateTableCellReportItems(string fieldName)
 {
     Rdl.ReportItemsType reportItems = new Rdl.ReportItemsType();
     reportItems.Items = new object[] { CreateTableCellTextbox(fieldName) };
     return reportItems;
 }
Beispiel #11
0
 private Rdl.ReportItemsType CreateReportItems(object[] reportItemArray)
 {
     Rdl.ReportItemsType reportItems = new Rdl.ReportItemsType();
     reportItems.Items = reportItemArray;
     return(reportItems);
 }
Beispiel #12
0
 private Rdl.ReportItemsType CreateReportItems()
 {
     Rdl.ReportItemsType reportItems = new Rdl.ReportItemsType();
     TableRdlGenerator tableGen = new TableRdlGenerator();
     tableGen.Fields = _rpc.DataItem;
     reportItems.Items = new object[] { tableGen.CreateTable() };
     return reportItems;
 }
Beispiel #13
0
 private Rdl.ReportItemsType CreateHeaderTableCellReportItems(string fieldName)
 {
     Rdl.ReportItemsType headerTableCellReportItems = new Rdl.ReportItemsType();
     headerTableCellReportItems.Items = new object[] { CreateHeaderTableCellTextbox(fieldName) };
     return(headerTableCellReportItems);
 }
Beispiel #14
0
 private static Rdl.ReportItemsType CreateTableCellReportItems(string fieldName)
 {
     Rdl.ReportItemsType reportItems = new Rdl.ReportItemsType();
     reportItems.Items = new object[] { TableRdlGenerator.CreateTableCellTextbox(fieldName) };
     return(reportItems);
 }
 private Rdl.ReportItemsType CreateHeaderTableCellReportItems(TextItem item)
 {
     Rdl.ReportItemsType headerTableCellReportItems = new Rdl.ReportItemsType();
     headerTableCellReportItems.Items = new object[] { CreateHeaderTableCellTextbox(item) };
     return headerTableCellReportItems;
 }
Beispiel #16
0
 private Rdl.ReportItemsType CreateHeaderTableCellReportItems(TextItem item)
 {
     Rdl.ReportItemsType headerTableCellReportItems = new Rdl.ReportItemsType();
     headerTableCellReportItems.Items = new object[] { CreateHeaderTableCellTextbox(item) };
     return(headerTableCellReportItems);
 }
Beispiel #17
0
 private Rdl.ReportItemsType CreateReportItems()
 {
     Rdl.ReportItemsType reportItems = new Rdl.ReportItemsType();
     TableRdlGenerator tableGen = new TableRdlGenerator();
     tableGen.Fields = m_selectedFields;
     tableGen.Captions = m_captionFields;
     tableGen.Width = m_widthFields;
     reportItems.Items = new object[] { tableGen.CreateTable() };
     return reportItems;
 }
 private static Rdl.ReportItemsType CreateHeaderTableCellReportItems(string fieldName)
 {
     Rdl.ReportItemsType headerTableCellReportItems = new Rdl.ReportItemsType();
     headerTableCellReportItems.Items = new object[] { TableRdlGenerator.CreateHeaderTableCellTextbox(fieldName) };
     return headerTableCellReportItems;
 }