Beispiel #1
0
 private void FillViewBagData()
 {
     ViewBag.AllowSelectCustomerCode = QPConfiguration.AllowSelectCustomerCode;
     ViewBag.CustomerCodes           = QPConfiguration.GetCustomerCodes().Select(cc => new QPSelectListItem {
         Text = cc, Value = cc
     }).OrderBy(cc => cc.Text);
 }
Beispiel #2
0
 private void InitViewBag(DirectLinkOptions directLinkOptions)
 {
     ViewBag.AllowSelectCustomerCode = QPConfiguration.AllowSelectCustomerCode;
     ViewBag.CustomerCodes           = QPConfiguration.GetCustomerCodes().Select(c => new QPSelectListItem {
         Text = c, Value = c
     }).OrderBy(n => n.Text);
     ViewBag.AutoLoginLinkQuery = "?UseAutoLogin=false";
     if (directLinkOptions != null && directLinkOptions.IsDefined())
     {
         ViewBag.AutoLoginLinkQuery += "&" + directLinkOptions.ToUrlParams();
     }
 }