Exemple #1
0
        public void CreateSchema(Wizardsgroup.Repository.IContext context)
        {
            var register = new GridSchemaCollectionRegistrator(context, _commonGridDataSchema);

            register.Register(reg =>
            {
                reg.For(_commonGridDataSchema.PrimaryKeyName, 1)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateCheckbox()
                     .CellProperties(string.Empty, 30).GetWrapperInstance());

                reg.For("Name", 2)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateLinkModal()
                     .CellBehaviour(true, true)
                     .CellProperties("Card Type")
                     .ControllerProperties("Common", "CardPrefix", "Edit")
                     .ModalProperties("Edit Card Prefix", 550, 400).GetWrapperInstance());

                reg.For("Status", 3)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Status").GetWrapperInstance());
            });
        }
        public void CreateSchema(IContext context)
        {
            var register = new GridSchemaCollectionRegistrator(context, _commonGridDataSchema);

            register.Register(reg =>
            {
                reg.For(_commonGridDataSchema.PrimaryKeyName, 1)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateCheckbox()
                     .CellProperties(string.Empty, 30).GetWrapperInstance());

                reg.For("PfizerCode", 2)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateLinkModal()
                     .CellBehaviour(true, true)
                     .CellProperties("Pfizer Code")
                     .ControllerProperties("Common", "ConversionFactor", "Edit")
                     .ModalProperties("Edit Conversion Factor", 550, 400).GetWrapperInstance());

                reg.For("Description", 3)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Unit of Measure").GetWrapperInstance());

                reg.For("Factor", 4)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Conversion Factor").GetWrapperInstance());
            });
        }
Exemple #3
0
        public void CreateSchema(IContext context)
        {
            var register = new GridSchemaCollectionRegistrator(context, _commonGridDataSchema);

            register.Register(reg =>
            {
                reg.For("SettingName", 1)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateLinkModal()
                     .CellBehaviour(true, true)
                     .CellProperties("Name")
                     .ControllerProperties("Common", "SystemSetting", "Edit")
                     .ModalProperties("Edit System Setting", 400, 320).GetWrapperInstance());

                reg.For("SettingValue", 2)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Value").GetWrapperInstance());

                reg.For("DataType", 3)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Type").GetWrapperInstance());
            });
        }
        public void CreateSchema(IContext context)
        {
            var register = new GridSchemaCollectionRegistrator(context, _commonGridDataSchema);

            register.Register(reg =>
            {
                reg.For(_commonGridDataSchema.PrimaryKeyName, 1)
                .Use(() => new GridSettingDataBuilderWrapper().CreateCheckbox()
                     .CellProperties(string.Empty, 30).GetWrapperInstance());

                reg.For("Model", 2)
                .Use(() => new GridSettingDataBuilderWrapper().CreateLinkModal()
                     .CellBehaviour(true, true)
                     .CellProperties("ViewModel Type")
                     .ControllerProperties("Common", "DataDictionary", "Edit")
                     .ModalProperties("Edit Data Dictionary", 300, 400)
                     .GetWrapperInstance());

                reg.For("FieldName", 3)
                .Use(() => new GridSettingDataBuilderWrapper().CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Field Name", 150).GetWrapperInstance());

                reg.For("FieldDisplayText", 4)
                .Use(() => new GridSettingDataBuilderWrapper().CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Field Display Text", 150).GetWrapperInstance());
            });
        }
Exemple #5
0
        public void CreateSchema(IContext context)
        {
            var register = new GridSchemaCollectionRegistrator(context, _commonGridDataSchema);

            register.Register(reg =>
            {
                reg.For(_commonGridDataSchema.PrimaryKeyName, 1)
                .Use(() => new GridSettingDataBuilderWrapper().CreateCheckbox()
                     .CellProperties(string.Empty, 30).GetWrapperInstance());

                reg.For("Name", 2)
                .Use(() => new GridSettingDataBuilderWrapper().CreateLinkModal()
                     .CellBehaviour(true, true)
                     .CellProperties("Program", 186)
                     .ControllerProperties("Common", "Program", "Edit")
                     .ModalProperties("Edit Program", 550, 600).GetWrapperInstance());

                reg.For("Description", 3)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Description", 296).GetWrapperInstance());

                reg.For("CardTypeName", 4)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Card Type", 108).GetWrapperInstance());

                reg.For(_commonGridDataSchema.PrimaryKeyName, 5)
                .Use(() => new GridSettingDataBuilderWrapper().CreateLinkDetail()
                     .CellBehaviour(false)
                     .CellProperties("Products", 100)
                     .CellLinkDetail(3)
                     .CellDisplayFormat(string.Empty, "View Details")
                     .ControllerProperties("Common", "ProgramProductMapping", "Index").GetWrapperInstance());

                reg.For(_commonGridDataSchema.PrimaryKeyName, 6)
                .Use(() => new GridSettingDataBuilderWrapper().CreateLinkDetail()
                     .CellBehaviour(true, true)
                     .CellProperties("Prefix", 95)
                     .CellLinkDetail(3)
                     .CellDisplayFormat(string.Empty, "View Details")
                     .ControllerProperties("Common", "CardPrefix", "Index").GetWrapperInstance());

                reg.For("CardIdCount", 7)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Card IDs", 101).GetWrapperInstance());

                reg.For("Status", 8)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Status").GetWrapperInstance());
            });
        }
Exemple #6
0
        public void CreateSchema(IContext context)
        {
            var register = new GridSchemaCollectionRegistrator(context, _commonGridDataSchema);

            register.Register(reg =>
            {
                reg.For(_commonGridDataSchema.PrimaryKeyName, 1)
                .Use(() => new GridSettingDataBuilderWrapper().CreateCheckbox()
                     .CellProperties(string.Empty, 30).GetWrapperInstance());

                reg.For("Controller", 2)
                .Use(() => new GridSettingDataBuilderWrapper().CreateLinkModal()
                     .CellBehaviour(true, true)
                     .CellProperties("Controller")
                     .ControllerProperties("Common", "RuleDatastore", "Edit")
                     .ModalProperties("Edit Rule", 300, 600).GetWrapperInstance());

                reg.For("ControllerAction", 3)
                .Use(() => new GridSettingDataBuilderWrapper().CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("ControllerAction").GetWrapperInstance());

                reg.For("Field", 4)
                .Use(() => new GridSettingDataBuilderWrapper().CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Field").GetWrapperInstance());

                reg.For("RuleOperator", 5)
                .Use(() => new GridSettingDataBuilderWrapper().CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("RuleOperator").GetWrapperInstance());

                reg.For("Value", 6)
                .Use(() => new GridSettingDataBuilderWrapper().CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Value").GetWrapperInstance());

                reg.For("ValidationMessage", 7)
                .Use(() => new GridSettingDataBuilderWrapper().CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("ValidationMessage").GetWrapperInstance());
            });
        }
        public void CreateSchema(IContext context)
        {
            var register = new GridSchemaCollectionRegistrator(context, _commonGridDataSchema);

            register.Register(reg =>
            {
                reg.For("Name", 1)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Program").GetWrapperInstance());

                reg.For("Description", 2)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Description").GetWrapperInstance());
            });
        }
Exemple #8
0
        public void CreateSchema(IContext context)
        {
            var register = new GridSchemaCollectionRegistrator(context, _commonGridDataSchema);

            register.Register(reg =>
            {
                reg.For(_commonGridDataSchema.PrimaryKeyName, 1)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateCheckbox()
                     .CellProperties(string.Empty, 30).GetWrapperInstance());

                reg.For("From", 2)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("From").GetWrapperInstance());

                reg.For("To", 3)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("To").GetWrapperInstance());

                reg.For("PriceTypeName", 4)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Price Type").GetWrapperInstance());

                reg.For("Price", 5)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Price").GetWrapperInstance());

                reg.For("ConversionPerUnit", 6)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Conversion per Unit").GetWrapperInstance());
            });
        }
Exemple #9
0
        public void CreateSchema(IContext context)
        {
            var register = new GridSchemaCollectionRegistrator(context, _commonGridDataSchema);

            register.Register(reg =>
            {
                reg.For(_commonGridDataSchema.PrimaryKeyName, 1)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateCheckbox()
                     .CellProperties(string.Empty, 30).GetWrapperInstance());

                reg.For("Name", 2)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateLinkModal()
                     .CellBehaviour(true, true)
                     .CellProperties("Dosage Form", 250)
                     .ControllerProperties("Common", "Dosage", "Edit")
                     .ModalProperties("Edit Dosage", 550, 400).GetWrapperInstance());

                reg.For("NoOfCoversionFactor", 3)
                .Use(() => new GridSettingDataBuilderWrapper().CreateLinkDetail()
                     .CellBehaviour(false)
                     .CellProperties("Pfizer Code & Conversion Factor", 100)
                     .CellLinkDetail(2)
                     //TODO: Change "View Details" static title to the total count of Pfizer code assigned to the dosage form
                     .CellDisplayFormat(string.Empty, "View Details")
                     .ControllerProperties("Common", "ConversionFactor", "Index").GetWrapperInstance());

                reg.For(_commonGridDataSchema.PrimaryKeyName, 4)
                .Use(() => new GridSettingDataBuilderWrapper().CreateLinkDetail()
                     .CellBehaviour(false)
                     .CellProperties("Price")
                     .CellLinkDetail(0).CellDisplayFormat(string.Empty, "View Details")
                     .ControllerProperties("Common", "SalesRetailPrice", "Index").GetWrapperInstance());

                reg.For("Status", 5)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Status").GetWrapperInstance());
            });
        }
        public void CreateSchema(IContext context)
        {
            var register = new GridSchemaCollectionRegistrator(context, _commonGridDataSchema);

            register.Register(reg =>
            {
                reg.For(_commonGridDataSchema.PrimaryKeyName, 1)
                .Use(() => new GridSettingDataBuilderWrapper().CreateCheckbox()
                     .CellProperties(string.Empty, 30).GetWrapperInstance());

                reg.For("UserGroupName", 2)
                .Use(() => new GridSettingDataBuilderWrapper().CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Group Name").GetWrapperInstance());

                reg.For("UserGroupDesc", 3)
                .Use(() => new GridSettingDataBuilderWrapper().CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Description").GetWrapperInstance());
            });
        }
        public void CreateSchema(IContext context)
        {
            var register = new GridSchemaCollectionRegistrator(context, _commonGridDataSchema);

            register.Register(reg =>
            {
                reg.For(_commonGridDataSchema.PrimaryKeyName, 1)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateCheckbox()
                     .CellProperties(string.Empty, 30).GetWrapperInstance());

                reg.For("Name", 2)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateLinkModal()
                     .CellBehaviour(true, true)
                     .CellProperties("Product")
                     .ControllerProperties("Common", "Product", "Edit")
                     .ModalProperties("Edit Product", 550, 400).GetWrapperInstance());

                reg.For("Description", 3)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Description").GetWrapperInstance());

                reg.For(_commonGridDataSchema.PrimaryKeyName, 4)
                .Use(() => new GridSettingDataBuilderWrapper().CreateLinkDetail()
                     .CellBehaviour(false)
                     .CellProperties("Dosage Form")
                     .CellLinkDetail(2)
                     .CellDisplayFormat(string.Empty, "View Details")
                     .ControllerProperties("Common", "Dosage", "Index").GetWrapperInstance());

                reg.For("Status", 5)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Status").GetWrapperInstance());
            });
        }
        public void CreateSchema(IContext context)
        {
            var register = new GridSchemaCollectionRegistrator(context, _commonGridDataSchema);

            register.Register(reg =>
            {
                reg.For(_commonGridDataSchema.PrimaryKeyName, 1)
                .Use(() => new GridSettingDataBuilderWrapper().CreateCheckbox()
                     .CellProperties(string.Empty, 30).GetWrapperInstance());

                reg.For("UserName", 2)
                .Use(() => new GridSettingDataBuilderWrapper().CreateLinkModal()
                     .CellBehaviour(true, true)
                     .CellProperties("User Name")
                     .ControllerProperties("Security", "User", "Edit")
                     .ModalProperties("Edit User", 500, 500).GetWrapperInstance());

                reg.For("FullName", 3)
                .Use(() => new GridSettingDataBuilderWrapper().CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Name").GetWrapperInstance());

                reg.For(_commonGridDataSchema.PrimaryKeyName, 4)
                .Use(() => new GridSettingDataBuilderWrapper().CreateLinkDetail()
                     .CellBehaviour(false)
                     .CellProperties("User Group Map")
                     .CellLinkDetail(1)
                     .CellDisplayFormat(string.Empty, "View Detail")
                     .ControllerProperties("Security", "UserGroupMap", "Index").GetWrapperInstance());

                reg.For("Status", 5)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Status").GetWrapperInstance());
            });
        }
Exemple #13
0
        public void CreateSchema(IContext context)
        {
            var register = new GridSchemaCollectionRegistrator(context, _commonGridDataSchema);

            register.Register(reg =>
            {
                reg.For(_commonGridDataSchema.PrimaryKeyName, 1)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateCheckbox()
                     .CellProperties(string.Empty, 30).GetWrapperInstance());

                reg.For("FullName", 2)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateLinkModal()
                     .CellBehaviour(true, true)
                     .CellProperties("Employee Name", 250)
                     .ControllerProperties("Common", "Employee", "Edit")
                     .ModalProperties("Edit Employee", 550, 630).GetWrapperInstance());

                reg.For("CompanyName", 3)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Company Name", 200).GetWrapperInstance());

                reg.For("DepartmentName", 4)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Department", 200).GetWrapperInstance());

                reg.For("TelephoneNo", 5)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Telephone Number", 150).GetWrapperInstance());

                reg.For("MobileNo", 6)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Mobile Number", 150).GetWrapperInstance());

                reg.For("Email", 7)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Email Address", 200).GetWrapperInstance());

                reg.For("EmployeeTypes", 8)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Employee Type", 150).GetWrapperInstance());

                reg.For("IsSupervisor", 9)
                .Use(() => new GridSettingDataBuilderWrapper()
                     .CreateRegularCell()
                     .CellBehaviour(true, true)
                     .CellProperties("Supervisor", 100).GetWrapperInstance());
            });
        }