예제 #1
0
        public void SetReportparam(List <ReportParameter> paramarr)
        {
            // txt_title.Text = MainWindow.resourcemanager.GetString("trSales");
            paramarr.Add(new ReportParameter("trSaleDetails", MainWindow.resourcemanagerreport.GetString("trSaleDetails")));
            paramarr.Add(new ReportParameter("trAgentHint", MainWindow.resourcemanagerreport.GetString("trAgent")));

            paramarr.Add(new ReportParameter("trCustomerHint", MainWindow.resourcemanagerreport.GetString("trCustomer")));
            paramarr.Add(new ReportParameter("trServerState", MainWindow.resourcemanagerreport.GetString("trServerState")));
            paramarr.Add(new ReportParameter("trPeriod", MainWindow.resourcemanagerreport.GetString("trPeriod")));
            paramarr.Add(new ReportParameter("trPackageDetails", MainWindow.resourcemanagerreport.GetString("trPackageDetails")));
            paramarr.Add(new ReportParameter("trCode", MainWindow.resourcemanagerreport.GetString("trCode")));
            paramarr.Add(new ReportParameter("trName", MainWindow.resourcemanagerreport.GetString("trName")));
            paramarr.Add(new ReportParameter("trPrice", MainWindow.resourcemanagerreport.GetString("trPrice")));
            paramarr.Add(new ReportParameter("trStatus", MainWindow.resourcemanagerreport.GetString("trStatus")));
            paramarr.Add(new ReportParameter("trSerials", MainWindow.resourcemanagerreport.GetString("trSerials")));
            paramarr.Add(new ReportParameter("trExpirationDate", MainWindow.resourcemanagerreport.GetString("trExpirationDate")));
            paramarr.Add(new ReportParameter("trActive", MainWindow.resourcemanagerreport.GetString("trActive")));
            paramarr.Add(new ReportParameter("trProgramDetails", MainWindow.resourcemanagerreport.GetString("trProgramDetails")));
            paramarr.Add(new ReportParameter("trProgram", MainWindow.resourcemanagerreport.GetString("trProgram")));
            paramarr.Add(new ReportParameter("trVersion", MainWindow.resourcemanagerreport.GetString("trVersion")));
            paramarr.Add(new ReportParameter("trPackageLimits", MainWindow.resourcemanagerreport.GetString("trPackageLimits")));
            paramarr.Add(new ReportParameter("trBranches", MainWindow.resourcemanagerreport.GetString("trBranches")));
            paramarr.Add(new ReportParameter("trUsers", MainWindow.resourcemanagerreport.GetString("trUsers")));
            paramarr.Add(new ReportParameter("trCustomers", MainWindow.resourcemanagerreport.GetString("trCustomers")));
            paramarr.Add(new ReportParameter("trInvoices", MainWindow.resourcemanagerreport.GetString("trInvoices")));
            paramarr.Add(new ReportParameter("trStores", MainWindow.resourcemanagerreport.GetString("trStores")));
            paramarr.Add(new ReportParameter("trPOSs", MainWindow.resourcemanagerreport.GetString("trPOSs")));
            paramarr.Add(new ReportParameter("trVendors", MainWindow.resourcemanagerreport.GetString("trVendors")));
            paramarr.Add(new ReportParameter("trItems", MainWindow.resourcemanagerreport.GetString("trItems")));
            paramarr.Add(new ReportParameter("trOfflineActivation", MainWindow.resourcemanagerreport.GetString("trActivationType")));
            paramarr.Add(new ReportParameter("trChangeDevice", MainWindow.resourcemanagerreport.GetString("trChangeDevice")));
            paramarr.Add(new ReportParameter("trBookNum", MainWindow.resourcemanagerreport.GetString("trBookNum")));
            paramarr.Add(new ReportParameter("trNotes", MainWindow.resourcemanagerreport.GetString("trTerms")));

            paramarr.Add(new ReportParameter("packageNumber", packUserRep.packageNumber.ToString()));
            paramarr.Add(new ReportParameter("Agent", FillCombo.AgentNameConv(agentmodel)));
            paramarr.Add(new ReportParameter("Customer", cumstomerModel.company));
            paramarr.Add(new ReportParameter("ServerState", ""));
            paramarr.Add(new ReportParameter("Period", FillCombo.PeriodConv(CountryPackageDateModel)));
            paramarr.Add(new ReportParameter("Code", PackagesModel.packageCode));
            paramarr.Add(new ReportParameter("Name", PackagesModel.packageName));
            paramarr.Add(new ReportParameter("Price", CountryPackageDateModel.price.ToString() + " " + CountryPackageDateModel.currency));
            paramarr.Add(new ReportParameter("Status", FillCombo.serverActiveConv(packUserRep.isActive)));
            paramarr.Add(new ReportParameter("ExpirationDate", FillCombo.DateConvert(PayOpModel.expireDate)));
            //  paramarr.Add(new ReportParameter("Active", ));
            paramarr.Add(new ReportParameter("Program", PackagesModel.programName));
            paramarr.Add(new ReportParameter("Version", PackagesModel.verName));
            paramarr.Add(new ReportParameter("Branches", FillCombo.UnlimitedConvert(PackagesModel.branchCount)));
            paramarr.Add(new ReportParameter("Users", FillCombo.UnlimitedConvert(PackagesModel.userCount)));
            paramarr.Add(new ReportParameter("Customers", FillCombo.UnlimitedConvert(PackagesModel.customerCount)));
            paramarr.Add(new ReportParameter("Invoices", FillCombo.UnlimitedConvert(PackagesModel.salesInvCount)));
            paramarr.Add(new ReportParameter("Stores", FillCombo.UnlimitedConvert(PackagesModel.storeCount)));
            paramarr.Add(new ReportParameter("POSs", FillCombo.UnlimitedConvert(PackagesModel.posCount)));
            paramarr.Add(new ReportParameter("Vendors", FillCombo.UnlimitedConvert(PackagesModel.vendorCount)));
            paramarr.Add(new ReportParameter("Items", FillCombo.UnlimitedConvert(PackagesModel.itemCount)));
            paramarr.Add(new ReportParameter("OfflineActivation", FillCombo.serverActiveationTypeConv(packUserRep.isOnlineServer)));
            paramarr.Add(new ReportParameter("ChangeDevice", ""));
            //trTerms

            paramarr.Add(new ReportParameter("Notes", terms.value));
        }