Exemplo n.º 1
0
 public InvoiceController(IInvoiceRepo iInvoiceRepo,IOrderDetailRepo iOrderDetailRepo, IOptionsRepo ioptionsRepo)
 {
     svc = new InvoiceSvc(iInvoiceRepo);
     odSvc = new OrderDetailSvc(iOrderDetailRepo);
     optionsSvc = new OptionsSvc(ioptionsRepo);
 }
Exemplo n.º 2
0
        public List<KeyValuePair<string, string>> GetCompanyReportInfo()
        {
            OptionsSvc optionSvc = new OptionsSvc();
            string company_address = String.IsNullOrEmpty(optionSvc.GetOption("company_address"))?
                "Company Address":optionSvc.GetOption("company_address");
            string company_name = String.IsNullOrEmpty(optionSvc.GetOption("company_name")) ?
                "Company Name":optionSvc.GetOption("company_name");
            //string logoImage = new Uri(_controller.Request.MapPath("~/Images/ThickPotentialLogo.jpg")).AbsoluteUri;
            string logoImage = new Uri(System.Web.Hosting.HostingEnvironment.MapPath("~/Content/image/ThickPotentialLogo.jpg")).AbsoluteUri;

            List<KeyValuePair<string, string>> list = new List<KeyValuePair<string, string>>();
            list.Add(new KeyValuePair<string, string>("rp_company", company_name));
            list.Add(new KeyValuePair<string, string>("rp_company_address", company_address));
            list.Add(new KeyValuePair<string, string>("rp_logoImage", logoImage));

            return list;
        }