示例#1
0
        private void ShowType213ObjectOperations(string AStrItemData)
        {
            if (App.IDataTableOperation.Select("C002 = 111021302").Length > 0)
            {
                IUCResourceType211.IBoolCanEdit = true;
            }
            else
            {
                IUCResourceType211.IBoolCanEdit = false;
            }

            if (App.IDataTableOperation.Select("C002 = 111021399").Length > 0)
            {
                UCValidationData LUCValidationDataOperation = new UCValidationData("1110999");
                LUCValidationDataOperation.ShowOperationDetails(null);
                LUCValidationDataOperation.Margin           = new Thickness(0, 1, 0, 1);
                LUCValidationDataOperation.IOperationEvent += LUCObjectOperationsEvent;
                StackPanelObjectOperations.Children.Add(LUCValidationDataOperation);
            }
        }
示例#2
0
        private void ShowType212ObjectOperations(string AStrItemData)
        {
            if (App.IDataTableOperation.Select("C002 = 111021202").Length > 0)
            {
                IUCResourceType212B.IBoolCanEdit = true;
            }
            else
            {
                IUCResourceType212B.IBoolCanEdit = false;
            }

            if (App.IDataTableOperation.Select("C002 = 111021299").Length > 0)
            {
                UCValidationData LUCValidationDataOperation = new UCValidationData("1110999");
                LUCValidationDataOperation.ShowOperationDetails(null);
                LUCValidationDataOperation.Margin           = new Thickness(0, 1, 0, 1);
                LUCValidationDataOperation.IOperationEvent += LUCObjectOperationsEvent;
                StackPanelObjectOperations.Children.Add(LUCValidationDataOperation);
            }

            TreeViewItem        LTreeViewItemCurrent = TreeViewResourceList.SelectedItem as TreeViewItem;
            OperationParameters LOperationParameters = new OperationParameters();
            List <string>       LListStrOperationID  = new List <string>();

            //选择DEC根级目录
            if (AStrItemData.Length == 3)
            {
                LListStrOperationID.Add("111021202");
                LListStrOperationID.Add("");
                LListStrOperationID.Add("111021206");
                LListStrOperationID.Add("111021207");
                LOperationParameters.StrObjectTag  = "212";
                LOperationParameters.ObjectSource1 = App.IDataTableOperation;
                LOperationParameters.ObjectSource2 = LListStrOperationID;
                LOperationParameters.ObjectSource3 = LTreeViewItemCurrent;

                UCObjectOperationGroup LUCObjectOperationGroup = new UCObjectOperationGroup();
                LUCObjectOperationGroup.ShowObjectAllOperations(LOperationParameters);
                LUCObjectOperationGroup.IOperationEvent += LUCObjectOperationsEvent;
                LUCObjectOperationGroup.Margin           = new Thickness(0, 1, 0, 1);
                StackPanelObjectOperations.Children.Add(LUCObjectOperationGroup);
                return;
            }
            else
            {
                TreeViewItem LTreeViewItemParent = LTreeViewItemCurrent.Parent as TreeViewItem;

                LListStrOperationID.Add("111021206");
                LOperationParameters.StrObjectTag  = "212";
                LOperationParameters.ObjectSource1 = App.IDataTableOperation;
                LOperationParameters.ObjectSource2 = LListStrOperationID;
                LOperationParameters.ObjectSource3 = LTreeViewItemParent;

                UCObjectOperationGroup LUCObjectOperationGroup1 = new UCObjectOperationGroup();
                LUCObjectOperationGroup1.ShowObjectAllOperations(LOperationParameters);
                LUCObjectOperationGroup1.IOperationEvent += LUCObjectOperationsEvent;
                LUCObjectOperationGroup1.Margin           = new Thickness(0, 1, 0, 1);
                StackPanelObjectOperations.Children.Add(LUCObjectOperationGroup1);

                LListStrOperationID.Clear();
                LListStrOperationID.Add("111021207");
                LOperationParameters.StrObjectTag  = "212";
                LOperationParameters.ObjectSource1 = App.IDataTableOperation;
                LOperationParameters.ObjectSource2 = LListStrOperationID;
                LOperationParameters.ObjectSource3 = LTreeViewItemCurrent;

                UCObjectOperationGroup LUCObjectOperationGroup2 = new UCObjectOperationGroup();
                LUCObjectOperationGroup2.ShowObjectAllOperations(LOperationParameters);
                LUCObjectOperationGroup2.IOperationEvent += LUCObjectOperationsEvent;
                LUCObjectOperationGroup2.Margin           = new Thickness(0, 1, 0, 1);
                StackPanelObjectOperations.Children.Add(LUCObjectOperationGroup2);
            }
        }