Exemplo n.º 1
0
 public static void AddParameters(ReportParametersType pParams, string[] pParameterNames)
 {
     foreach (string pName in pParameterNames)
     {
         ReportParameterType param = new ReportParameterType(pName);
         param.DataType   = DataTypeEnum.String;
         param.Nullable   = true;
         param.AllowBlank = true;
         param.Prompt     = param.Name;
         pParams.Add(param);
     }
 }
Exemplo n.º 2
0
 public static void AddCompanyParameters(ReportParametersType pParams)
 {
     AddParameters(pParams, new string[] {
         "COMPANY_NAME"
         , "COMP_ADDRESS_1"
         , "COMP_ADDRESS_2"
         , "COMP_ADDRESS_3"
         , "COMP_CITY"
         , "COMP_STATE"
         , "COMP_PIN"
         , "COMP_PHONE"
         , "COMP_CELL"
         , "COMP_FAX"
         , "COMP_EMAIL"
         , "COMP_TIN_NO"
         , "COMP_CST_NO"
         , "COPY"
     }
                   );
 }