Exemple #1
0
        private void InitSalePerson(string groupName, RibbonPageGroup ribbonGroup)
        {
            BarEditItem saleItem = new BarEditItem();

            saleItem.Width            = 100;
            saleItem.Caption          = GetLocalizedCaption("OwnerPerson");
            saleItem.CaptionAlignment = DevExpress.Utils.HorzAlignment.Near;
            saleData = new RepositoryItemPopupContainerEdit();
            saleData.InitEdit("User", "Department", true);
            saleItem.Edit = saleData;
            ribbonGroup.ItemLinks.Add(saleItem, true);
        }
Exemple #2
0
        private void InitTechnicianPerson(string groupName, RibbonPageGroup ribbonGroup)
        {
            BarEditItem technicianItem = new BarEditItem();

            technicianItem.Width            = 100;
            technicianItem.Caption          = GetLocalizedCaption("TechnologyPerson");
            technicianItem.CaptionAlignment = DevExpress.Utils.HorzAlignment.Near;
            technicianData = new RepositoryItemPopupContainerEdit();
            technicianData.InitEdit("User", "Department", true);
            technicianItem.Edit = technicianData;
            ribbonGroup.ItemLinks.Add(technicianItem);
        }
        private void InitProject(string groupName, RibbonPageGroup ribbonGroup)
        {
            BarEditItem projectItem = new BarEditItem();

            projectItem.Width            = 100;
            projectItem.Caption          = GetLocalizedCaption("ProjectName");
            projectItem.CaptionAlignment = DevExpress.Utils.HorzAlignment.Near;
            projectData = new RepositoryItemPopupContainerEdit();
            projectData.InitEdit("Project", "", true);
            projectItem.Edit = projectData;
            ribbonGroup.ItemLinks.Add(projectItem, true);
        }
        private void InitManagerPerson(string groupName, RibbonPageGroup ribbonGroup)
        {
            BarEditItem managerItem = new BarEditItem();

            managerItem.Width            = 100;
            managerItem.Caption          = GetLocalizedCaption("ProjectManager");
            managerItem.CaptionAlignment = DevExpress.Utils.HorzAlignment.Near;
            managerData = new RepositoryItemPopupContainerEdit();
            managerData.InitEdit("User", "Department", true);
            managerItem.Edit = managerData;
            ribbonGroup.ItemLinks.Add(managerItem);
        }
Exemple #5
0
 public static void InitEdit(this RepositoryItemPopupContainerEdit edit, string layoutEntityName, string filterEntityName, bool isMarkCheck)
 {
     edit.InitEdit(layoutEntityName, filterEntityName, isMarkCheck, null);
 }