Ejemplo n.º 1
0
        private GridData InitializeProtocolsGridData(HtmlHelper htmlHelper)
        {
            var action = "DisplayProtocols";

            var gridData = new GridData("oapAuditPlanProtocolsGrid", "OapAuditPlan", action, "Protocols", "AddProtocols", "Add", "search results", initializeCallBack: true, historicalRow: false);

            gridData.ToolBarOptions.DisplayCustomAddNew = false;
            gridData.AddRemoveCustomAddNew();
            gridData.ToolBarOptions.DisplayXlsExport = true;

            var displayColumns = new List <GridDisplayColumn>
            {
                new GridDisplayColumn("BUId", displayName: "BU", width: 10),
                new GridDisplayColumn("RigId", displayName: "Rig", width: 10),
                new GridDisplayColumn("Id", displayName: "ID", width: 10),
                new GridDisplayColumn("Protocol", displayName: "Protocol", width: 10),
                new GridDisplayColumn("OapCategory", displayName: "OAP Category", width: 20),
                new GridDisplayColumn("OapLevel", displayName: "OAP Level", width: 10),
                new GridDisplayColumn("OwnerId", displayName: "Assessor", width: 10),
                new GridDisplayColumn("DueDate", displayName: "Due Date", width: 10),
                new GridDisplayColumn("DateCompleted", displayName: "Date Completed", width: 10),
                new GridDisplayColumn("Findings", displayName: "Findings", width: 10),
                new GridDisplayColumn("Status", displayName: "Status", width: 10)
            };

            gridData.DisplayColumns = displayColumns;

            return(gridData);
        }
Ejemplo n.º 2
0
        private GridData InitializeSummaryGridData(HtmlHelper htmlHelper)
        {
            var action = "DisplaySummaryDetails";

            var gridData = new GridData("oapAuditPlanSummaryGrid", "OapAuditPlan", action, "Summary Details", "AddSummary", "Add", "search results", initializeCallBack: true, historicalRow: false);

            gridData.ToolBarOptions.DisplayCustomAddNew = false;
            gridData.AddRemoveCustomAddNew();
            gridData.ToolBarOptions.DisplayXlsExport = true;

            var displayColumns = new List <GridDisplayColumn>
            {
                new GridDisplayColumn("BUId", displayName: "BU", width: 10),
                new GridDisplayColumn("RigId", displayName: "Rig", width: 10),
                new GridDisplayColumn("Protocol", displayName: "Protocol", width: 10),
                new GridDisplayColumn("ProtocolCompleteCount", displayName: "Complete", width: 20),
                new GridDisplayColumn("ProtocolCompletePercentage", displayName: "%", width: 10),
                new GridDisplayColumn("Findings", displayName: "Findings", width: 10),
                new GridDisplayColumn("FindingsCompleteCount", displayName: "Complete", width: 10),
                new GridDisplayColumn("FindingsCompletePercentage", displayName: "%", width: 10),
                new GridDisplayColumn("Capa", displayName: "CAPA", width: 10),
                new GridDisplayColumn("CapaCompleteCount", displayName: "Complete", width: 10),
                new GridDisplayColumn("CapaCompletePercentage", displayName: "%", width: 10),
            };

            gridData.DisplayColumns = displayColumns;

            return(gridData);
        }
Ejemplo n.º 3
0
        private GridData InitializeRegulatoryAuditComplianceMissingProtocolsGridData(HtmlHelper htmlHelper)
        {
            var action = "DisplayRACMissingProtocols";

            var gridData = new GridData("oapAuditPlanRACMissingProtocolsGrid", "OapAuditPlan", action, "Missing Protocols", "AddProtocols", "Add", "search results", initializeCallBack: true, historicalRow: false);

            gridData.ToolBarOptions.DisplayCustomAddNew = false;
            gridData.AddRemoveCustomAddNew();
            gridData.ToolBarOptions.DisplayXlsExport = true;

            var displayColumns = new List <GridDisplayColumn>
            {
                new GridDisplayColumn("BUId", displayName: "BU", width: 10),
                new GridDisplayColumn("RigId", displayName: "Rig", width: 10),
                new GridDisplayColumn("AuditType", displayName: "Regulatory Audit Type", width: 10),
                new GridDisplayColumn("Element", displayName: "Element / Criteria", width: 10),
                new GridDisplayColumn("ProtocolId", displayName: "Protocol ID", width: 20),
                new GridDisplayColumn("Protocol", displayName: "Protocol", width: 10),
                new GridDisplayColumn("OapLevel", displayName: "OAP Level", width: 10),
                new GridDisplayColumn("DateCompleted", displayName: "Date Completed", width: 10),
                new GridDisplayColumn("TotalFindings", displayName: "Total Findings", width: 10),
                new GridDisplayColumn("OpenFindings", displayName: "Open Findings", width: 10),
                new GridDisplayColumn("TotalCapa", displayName: "Total CAPA", width: 10),
                new GridDisplayColumn("OpenCapa", displayName: "Open CAPA", width: 10)
            };

            gridData.DisplayColumns = displayColumns;

            return(gridData);
        }
Ejemplo n.º 4
0
        private void InitializeProtocolScoringGridData(GridData gridData, string updateAction)
        {
            gridData.ButtonOptions.DisplayDeleteButton  = false;
            gridData.ToolBarOptions.DisplayCustomAddNew = false;

            gridData.AddRemoveCustomAddNew();

            var displayColumns = new List <GridDisplayColumn>
            {
                new GridDisplayColumn("Group", displayName: "Group"),
                new GridDisplayColumn("Topic", displayName: "Topic"),
                new GridDisplayColumn("Question", displayName: "Question"),
                new GridDisplayColumn("YesValue", displayName: "Yes"),
                new GridDisplayColumn("NoValue", displayName: "No", columnType: MVCxGridViewColumnType.SpinEdit, editLayoutWidth: 50, isReadOnly: false),
                new GridDisplayColumn("MaxScore", displayName: "Max Score"),
                new GridDisplayColumn("Score", displayName: "Score"),
                new GridDisplayColumn("AverageScore", displayName: "Score Average"),
                new GridDisplayColumn("EditNoValue", displayName: "EditNoValue", isVisible: false)
            };

            gridData.DisplayColumns = displayColumns;


            gridData.Routes = new List <GridRoute>()
            {
                new GridRoute(GridRouteTypes.Update, new { Controller = BaseController, Action = updateAction }),
            };

            gridData.LayoutColumns = new List <GridEditLayoutColumn>()
            {
                new GridEditLayoutColumn("NoValue", displayName: "No Value", width: 100),
            };

            gridData.FormLayout = new GridEditFormLayout(GridData.LayoutColumns
                                                         , i =>
            {
                i.HorizontalAlign = FormLayoutHorizontalAlign.Right;
                i.Width           = Unit.Percentage(100);
            }, 1);
        }
Ejemplo n.º 5
0
        private GridData InitializeCVTComplianceGridData(HtmlHelper htmlHelper)
        {
            var action = "DisplayCVTCompliance";

            var gridData = new GridData("oapAuditPlanCVTGrid", "OapAuditPlan", action, "Compliance", "AddProtocols", "Add", "search results", initializeCallBack: true, historicalRow: false);

            gridData.ToolBarOptions.DisplayCustomAddNew = false;
            gridData.AddRemoveCustomAddNew();
            gridData.ToolBarOptions.DisplayXlsExport = true;

            var displayColumns = new List <GridDisplayColumn>
            {
                new GridDisplayColumn("BUId", displayName: "BU", width: 10),
                new GridDisplayColumn("RigId", displayName: "Rig", width: 10),
                new GridDisplayColumn("LastCompleted", displayName: "Last Completed", width: 10),
                new GridDisplayColumn("DueDate", displayName: "Next Due Date", width: 10),
                new GridDisplayColumn("NextSchedule", displayName: "Next Schedule", width: 10),
                new GridDisplayColumn("Compliant", displayName: "Compliant", width: 10)
            };

            gridData.DisplayColumns = displayColumns;

            return(gridData);
        }