)>}]
شركة التطبيقات المتكاملة لتصميم وبرمجة البرمجيات الخاصة ش.ش.و.
Integrated Applications Programming Company
Home » Code Library » Kpi (Ia.Ftn.Wa.Models.Administration)

Public general use code classes and xml files that we've compiled and used over the years:

    1: using Microsoft.AspNetCore.Identity;
    2: using Microsoft.AspNetCore.Mvc.Rendering;
    3: using System.Text;
    4: using System.Text.RegularExpressions;
    5:  
    6: namespace Ia.Ftn.Wa.Models.Administration
    7: {
    8:     ////////////////////////////////////////////////////////////////////////////
    9:  
   10:     /// <summary publish="true">
   11:     ///
   12:     /// </summary>
   13:     /// 
   14:     /// <remarks> 
   15:     /// Copyright © 2006-2025 Jasem Y. Al-Shamlan (info@ia.com.kw), Integrated Applications - Kuwait. All Rights Reserved.
   16:     ///
   17:     /// This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
   18:     /// the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   19:     ///
   20:     /// This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
   21:     /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   22:     /// 
   23:     /// You should have received a copy of the GNU General Public License along with this library. If not, see http://www.gnu.org/licenses.
   24:     /// 
   25:     /// Copyright notice: This notice may not be removed or altered from any source distribution.
   26:     /// </remarks> 
   27:     public static class Kpi
   28:     {
   29:         ////////////////////////////////////////////////////////////////////////////
   30:  
   31:         /// <summary>
   32:         ///
   33:         /// </summary>
   34:         public static Ia.Ftn.Wa.Models.Administration.KpiViewModel ViewModel()
   35:         {
   36:             var kpiViewModel = new Ia.Ftn.Wa.Models.Administration.KpiViewModel();
   37:  
   38:             var list = Ia.Ftn.Cl.Models.Data.Administration.ServiceProvisioningInImsSwitchAndAccessNetworkStatistic();
   39:  
   40:             //serviceInImsSwitchAndAccessNetworkChart.Labels = (from l in list select l.YearMonth).ToList();
   41:             //serviceInImsSwitchAndAccessNetworkChart.Label1 = "Total Provisioned Services";
   42:             //serviceInImsSwitchAndAccessNetworkChart.Data1 = (from l in list select l.Total).ToList();
   43:             //serviceInImsSwitchAndAccessNetworkChart.DataBind();
   44:  
   45:             kpiViewModel.ServiceProvisioningInImsSwitchAndAccessNetworkChart = new Ia.Cl.Models.Ui.Chart();
   46:             kpiViewModel.ServiceProvisioningInImsSwitchAndAccessNetworkChart.Id = "char1";
   47:  
   48:             kpiViewModel.ServiceProvisioningInImsSwitchAndAccessNetworkChart.Labels = (from l in list select l.YearMonth).ToList();
   49:             kpiViewModel.ServiceProvisioningInImsSwitchAndAccessNetworkChart.Label1 = "Provisioned Services";
   50:             kpiViewModel.ServiceProvisioningInImsSwitchAndAccessNetworkChart.Data1 = (from l in list select l.Provisioned).ToList();
   51:             kpiViewModel.ServiceProvisioningInImsSwitchAndAccessNetworkChart.Label2 = "Deprovisioned Services";
   52:             kpiViewModel.ServiceProvisioningInImsSwitchAndAccessNetworkChart.Data2 = (from l in list select l.Deprovisioned).ToList();
   53:  
   54:             kpiViewModel.ServiceProvisioningInImsSwitchAndAccessNetworkChart.Type = "bar";
   55:             kpiViewModel.ServiceProvisioningInImsSwitchAndAccessNetworkChart.Width = 1600;
   56:             kpiViewModel.ServiceProvisioningInImsSwitchAndAccessNetworkChart.Height = 600;
   57:  
   58:             kpiViewModel.ServiceProvisioningInImsSwitchAndAccessNetworkChart.DataBind();
   59:  
   60:  
   61:  
   62:  
   63:             list = Ia.Ftn.Cl.Models.Data.Administration.ServiceProvisioningInFtnSwitchNetworkStatistic();
   64:  
   65:             //serviceInImsSwitchNetworkChart.Labels = (from l in list select l.YearMonth).ToList();
   66:             //serviceInImsSwitchNetworkChart.Label1 = "Total Provisioned Services";
   67:             //serviceInImsSwitchNetworkChart.Data1 = (from l in list select l.Total).ToList();
   68:             //serviceInImsSwitchNetworkChart.DataBind();
   69:  
   70:             kpiViewModel.ServiceProvisioningInImsSwitchNetworkChart = new Ia.Cl.Models.Ui.Chart();
   71:             kpiViewModel.ServiceProvisioningInImsSwitchNetworkChart.Id = "char2";
   72:  
   73:             kpiViewModel.ServiceProvisioningInImsSwitchNetworkChart.Labels = (from l in list select l.YearMonth).ToList();
   74:             kpiViewModel.ServiceProvisioningInImsSwitchNetworkChart.Label1 = "Provisioned Services";
   75:             kpiViewModel.ServiceProvisioningInImsSwitchNetworkChart.Data1 = (from l in list select l.Provisioned).ToList();
   76:             kpiViewModel.ServiceProvisioningInImsSwitchNetworkChart.Label2 = "Deprovisioned Services";
   77:             kpiViewModel.ServiceProvisioningInImsSwitchNetworkChart.Data2 = (from l in list select l.Deprovisioned).ToList();
   78:  
   79:             kpiViewModel.ServiceProvisioningInImsSwitchNetworkChart.Type = "bar";
   80:             kpiViewModel.ServiceProvisioningInImsSwitchNetworkChart.Width = 1600;
   81:             kpiViewModel.ServiceProvisioningInImsSwitchNetworkChart.Height = 600;
   82:  
   83:             kpiViewModel.ServiceProvisioningInImsSwitchNetworkChart.DataBind();
   84:  
   85:             return kpiViewModel;
   86:         }
   87:  
   88:         ////////////////////////////////////////////////////////////////////////////
   89:         ////////////////////////////////////////////////////////////////////////////
   90:     }
   91:  
   92:     ////////////////////////////////////////////////////////////////////////////
   93:     ////////////////////////////////////////////////////////////////////////////
   94: }