コード例 #1
0
 public SearchClearCommand(I_BaseSearchEntityArea searchArea) : base()
 {
     SearchArea = searchArea;
     CommandManager.SetTitle("پاک کردن");
     CommandManager.ImagePath = "Images//Clear.png";
     CommandManager.Clicked  += CommandManager_Clicked;
 }
コード例 #2
0
        public void Execute(I_BaseSearchEntityArea searchEntityArea)
        {
            //////  searchEntityArea.UpdateSearchData();


            //var command = new AG_CommandExecutionRequest();
            //command.Request = new DR_Request();
            //command.Request.Type = Enum_DR_RequestType.SearchView;
            //command.Request.RequestExecutionTime = new List<DR_RequestExecutionTime>();
            //command.Request.RequestExecutionTime.Add(new DR_RequestExecutionTime() { EnumType = Enum_DR_ExecutionTime.Now });
            //command.Request.SearchViewRequest = new DR_SearchViewRequest();
            //command.Request.SearchViewRequest.SearchDataItem = searchEntityArea.GetData();
            //command.Request.SearchViewRequest.EntityID = searchEntityArea.SearchInitializer.SearchEntity.ID;
            //  command.Request.SearchViewRequest.ViewPackage = searchViewArea.SearchViewInitializer.ViewEntity;
            //////   command.Request.EditRequest.EditPackages = packageArea.DataPackages;
            //command.SourceSearchView = searchViewArea;

            //var result = AgentUICoreMediator.GetAgentUICoreMediator.ExecuteCommand(command);
            //if (result.SearchViewResult.DPPackages.Count > 0)
            //    searchEntityArea.ViewEntityArea.AddData(result.SearchViewResult.DPPackages, true);


            //var result = AgentUICoreMediator.GetAgentUICoreMediator.ExecuteCommand(command);
            //if (result.SearchViewResult.DPPackages.Count > 0)
            //    searchEntityArea.ViewEntityArea.AddData(result.SearchViewResult.DPPackages, true);

            //AgentUICoreMediator.GetAgentUICoreMediator.ExecuteCommand(command);

            //command.Request.EditRequest.EditPackages =
            //command.Request.EditRequest.RemovedPackages = packageArea.MainEntityArea.GetRemovedData();
            //command.SourcePackageArea = packageArea as IAG_PackageArea;
            //command.DestinationPackageArea = packageArea as IAG_PackageArea;



            //}
            //else
            //{
            //    AgentUICoreMediator.GetAgentUICoreMediator.UIManager.ShowInfo(searchEntityArea.SearchInitializer.Title + " : " + "داده ای جهت ورود اطلاعات موجود نمیباشد", "", MyUILibrary.Temp.InfoColor.Red);
            //}
            //}

            //catch (Exception ex)
            //{
            //    var mesage = ex.Message;
            //    mesage += (ex.InnerException != null ? Environment.NewLine + ex.InnerException.Message : "");
            //    AgentUICoreMediator.GetAgentUICoreMediator.UIManager.ShowInfo(searchEntityArea.SearchInitializer.Title + " : " + "خطا در عملیات", mesage, MyUILibrary.Temp.InfoColor.Red);
            //}
        }