示例#1
0
 private void initViewBags()
 {
     ViewBag.AmountType        = dropDownmanager.getAmountTypeDropDownList();    // adet miktar türü listesi
     ViewBag.ErrorResourceList = dropDownmanager.getErrorResourceDropDownList(); // hata kaynağı listesi
     ViewBag.CostumerList      = dropDownmanager.getCustomersDropDownList();     // Customer listesi
     ViewBag.ErrorCodes        = dropDownmanager.getErrorCodesDropDownList();    // hata kodları listesi
 }
        private void sameMethodsWithoutDate()
        {
            // CustomersDropDown için ViewBag Gönderilir
            var customerList = dropDownManager.getCustomersDropDownList();

            ViewBag.CustomerList = customerList;


            // Get ErrorResource List
            var errorResourceList = dropDownManager.getErrorResourceDropDownList();

            ViewBag.ErrorResourceList = errorResourceList;

            // Müşteriye ait Hata tanımları grafiği
            var errorDefineListForCustomer   = chartHelper.getCustomerErrorDefines(true, ""); // bütün müşteriler
            var errorDefineForCustomerLabels = new List <String>();
            var errorDefineForCustomerValues = new List <int>();

            foreach (var creatorModel in errorDefineListForCustomer)
            {
                errorDefineForCustomerLabels.Add(creatorModel.label);
                errorDefineForCustomerValues.Add(creatorModel.y);
            }
            ViewBag.ErrorDefineForCustomerLabels = errorDefineForCustomerLabels;
            ViewBag.ErrorDefineForCustomerValues = errorDefineForCustomerValues;

            //---------------------------------------


            // Sisteme En Çok Hata Giren Kullanıcılar Listesi--------------
            var mostErrorCreaterUserLabels = new List <String>();
            var mostErrorCreaterUserValues = new List <int>();

            foreach (var creatorModel in chartHelper.getUserNameForMostWriteError())
            {
                mostErrorCreaterUserLabels.Add(creatorModel.label);
                mostErrorCreaterUserValues.Add(creatorModel.y);
            }
            ViewBag.MostErrorCreaterUserLabels = mostErrorCreaterUserLabels;
            ViewBag.MostErrorCreaterUserValues = mostErrorCreaterUserValues;
            //----------------------------------------------------------------



            // Aylık Müşteri bazlı hata sayıları--------------
            var listOfMontlyErrorCountByCustomers = chartHelper.getErrorCountMonthly(true, ""); // deafult olarak bütün firmalar dahil gelicek
            var customerErrorCountMonthlyLabels   = new List <String>();
            var customerErrorCountMonthlyValues   = new List <int>();

            foreach (var creatorModel in listOfMontlyErrorCountByCustomers)
            {
                customerErrorCountMonthlyLabels.Add(creatorModel.label);
                customerErrorCountMonthlyValues.Add(creatorModel.y);
            }
            ViewBag.ListOfMontlyErrorCountByLabels = customerErrorCountMonthlyLabels;
            ViewBag.ListOfMontlyErrorCountByValues = customerErrorCountMonthlyValues;
            //----------------------------------------------------------------



            // Seçilen Müşteriye Ait Açık 8D sayıları grafiği-------------
            var customerListForOpenErrorCount = chartHelper.getOpenErrorCountForAllCustomer(); // deafult olarak bütün firmalar dahil gelicek
            var customerName           = new List <String>();
            var customerOpenErrorCount = new List <int>();

            foreach (var listItem in customerListForOpenErrorCount)
            {
                customerName.Add(listItem.label);
                customerOpenErrorCount.Add(listItem.y);
            }
            ViewBag.CustomerWithOpenErrorCountLabels = customerName;
            ViewBag.CustomerWithOpenErrorCountValues = customerOpenErrorCount;
            //----------------------------------------------------------------



            // 5M methotları grafiği-------------
            var dFourTablesStatistics = chartHelper.getDFourTablesStatistics();
            var methodNames           = new List <String>();
            var methodCounts          = new List <int>();

            foreach (var listItem in dFourTablesStatistics)
            {
                methodNames.Add(listItem.label);
                methodCounts.Add(listItem.y);
            }
            ViewBag.DFourMethotsLabels = methodNames;
            ViewBag.DFourMethotsValues = methodCounts;
            //----------------------------------------------------------------
        }