Exemple #1
0
 public AgrRequest(OMTSRequestType t, string name, uint count, string a = "")
 {
     Type       = t;
     Name       = name;
     TotalCount = count;
     Article    = a;
 }
        // Редактируем недокомплекты
        void EditRequest(ProjectPropertyType type, OMTSRequestType rType, Project project)
        {
            var win = new RequestWindow(rType, project)
            {
                Owner = Window.GetWindow(this)
            };

            if (win.ShowDialog() != true)
            {
                return;
            }
        }
        // Редактируем недокомплекты
        void EditRequest(ProjectPropertyType type, OMTSRequestType rType, Project project)
        {
            var win = new RequestWindow(rType, project)
            {
                Owner = Window.GetWindow(this)
            };

            if (win.ShowDialog() != true)
            {
                return;
            }

            ProjectManager.ChangeProjectPropety(project.ProjectID, type, win.Requests);
        }
        public RequestWindow(OMTSRequestType t, Project p, bool isCanComplete = false)
        {
            InitializeComponent();

            type            = t;
            listRequest.Tag = isCanComplete;

            currentProject = p;

            expProject.IsExpanded = isExpanderProjectOpen;

            InitData(p);

            DataContext = this;
        }
Exemple #5
0
 public OMTSRequest(OMTSRequestType t, string name, uint count)
 {
     type       = t;
     Name       = name;
     TotalCount = count;
 }
Exemple #6
0
 public AgrRequest(OMTSRequestType t, string name)
 {
     Type = t;
     Name = name;
 }