Exemplo n.º 1
0
 public static void SetSize(ReportItemType pControl, double pWidth, double pHeight)
 {
     if (pControl is LineType)
     {
         LineType vLine = pControl as LineType;
         vLine.Width.Value  = pWidth;
         vLine.Height.Value = pHeight;
     }
     else if (pControl is RectangleType)
     {
         RectangleType vLine = pControl as RectangleType;
         vLine.Width.Value  = pWidth;
         vLine.Height.Value = pHeight;
     }
     else if (pControl is TextboxType)
     {
         TextboxType vLine = pControl as TextboxType;
         vLine.Width.Value  = pWidth;
         vLine.Height.Value = pHeight;
     }
     else if (pControl is ImageType)
     {
         ImageType vLine = pControl as ImageType;
         vLine.Width.Value  = pWidth;
         vLine.Height.Value = pHeight;
     }
     else if (pControl is SubreportType)
     {
         SubreportType vLine = pControl as SubreportType;
         vLine.Width.Value  = pWidth;
         vLine.Height.Value = pHeight;
     }
     else if (pControl is ListType)
     {
         ListType vLine = pControl as ListType;
         vLine.Width.Value  = pWidth;
         vLine.Height.Value = pHeight;
     }
     else if (pControl is MatrixType)
     {
         MatrixType vLine = pControl as MatrixType;
         vLine.Width.Value  = pWidth;
         vLine.Height.Value = pHeight;
     }
     else if (pControl is TableType)
     {
         TableType vLine = pControl as TableType;
         vLine.Width.Value  = pWidth;
         vLine.Height.Value = pHeight;
     }
     else if (pControl is ChartType)
     {
         ChartType vLine = pControl as ChartType;
         vLine.Width.Value  = pWidth;
         vLine.Height.Value = pHeight;
     }
     else if (pControl is CustomReportItemType)
     {
         CustomReportItemType vLine = pControl as CustomReportItemType;
         vLine.Width.Value  = pWidth;
         vLine.Height.Value = pHeight;
     }
 }
Exemplo n.º 2
0
        ////public static void SetCompanyParameterValues(LocalReport pLocalReport)
        ////{
        ////    Global.FetchCurrentCompany();
        ////    ///
        ////    ReportParameter[] rparams = new ReportParameter[] {
        ////        new ReportParameter("COMPANY_NAME", Global.COMPANY_NAME),
        ////        new ReportParameter("COMP_ADDRESS_1", Global.COMP_ADDRESS_1),
        ////        new ReportParameter("COMP_ADDRESS_2", Global.COMP_ADDRESS_2),
        ////        new ReportParameter("COMP_ADDRESS_3", Global.COMP_ADDRESS_3),
        ////        new ReportParameter("COMP_CITY", Global.COMP_CITY),
        ////        new ReportParameter("COMP_STATE", Global.COMP_STATE),
        ////        new ReportParameter("COMP_PIN", Global.COMP_PIN),
        ////        new ReportParameter("COMP_PHONE", Global.COMP_PHONE),
        ////        new ReportParameter("COMP_CELL", Global.COMP_CELL),
        ////        new ReportParameter("COMP_FAX", Global.COMP_FAX),
        ////        new ReportParameter("COMP_EMAIL", Global.COMP_EMAIL),
        ////        new ReportParameter("COMP_TIN_NO", Global.COMP_TIN_NO),
        ////        new ReportParameter("COMP_CST_NO", Global.COMP_CST_NO)
        ////        };
        ////    pLocalReport.SetParameters(rparams);
        ////}


        public static void SetBounds(ReportItemType pControl, double pLeft, double pTop, double pWidth, double pHeight)
        {
            SetLocation(pControl, pLeft, pTop);
            SetSize(pControl, pWidth, pHeight);
        }
Exemplo n.º 3
0
 public static void SetLocation(ReportItemType pControl, double pLeft, double pTop)
 {
     if (pControl is LineType)
     {
         LineType vLine = pControl as LineType;
         vLine.Left.Value = pLeft;
         vLine.Top.Value  = pTop;
     }
     else if (pControl is RectangleType)
     {
         RectangleType vLine = pControl as RectangleType;
         vLine.Left.Value = pLeft;
         vLine.Top.Value  = pTop;
     }
     else if (pControl is TextboxType)
     {
         TextboxType vLine = pControl as TextboxType;
         vLine.Left.Value = pLeft;
         vLine.Top.Value  = pTop;
     }
     else if (pControl is ImageType)
     {
         ImageType vLine = pControl as ImageType;
         vLine.Left.Value = pLeft;
         vLine.Top.Value  = pTop;
     }
     else if (pControl is SubreportType)
     {
         SubreportType vLine = pControl as SubreportType;
         vLine.Left.Value = pLeft;
         vLine.Top.Value  = pTop;
     }
     else if (pControl is ListType)
     {
         ListType vLine = pControl as ListType;
         vLine.Left.Value = pLeft;
         vLine.Top.Value  = pTop;
     }
     else if (pControl is MatrixType)
     {
         MatrixType vLine = pControl as MatrixType;
         vLine.Left.Value = pLeft;
         vLine.Top.Value  = pTop;
     }
     else if (pControl is TableType)
     {
         TableType vLine = pControl as TableType;
         vLine.Left.Value = pLeft;
         vLine.Top.Value  = pTop;
     }
     else if (pControl is ChartType)
     {
         ChartType vLine = pControl as ChartType;
         vLine.Left.Value = pLeft;
         vLine.Top.Value  = pTop;
     }
     else if (pControl is CustomReportItemType)
     {
         CustomReportItemType vLine = pControl as CustomReportItemType;
         vLine.Left.Value = pLeft;
         vLine.Top.Value  = pTop;
     }
 }
Exemplo n.º 4
0
 public UrakawaDomValidationReportItem(TreeNode node, string message, ReportItemType type)
 {
     Node     = node;
     Message  = message;
     ItemType = type;
 }