当前位置: 首页>>代码示例>>C#>>正文


C# SimpleActionExecuteEventArgs类代码示例

本文整理汇总了C#中SimpleActionExecuteEventArgs的典型用法代码示例。如果您正苦于以下问题:C# SimpleActionExecuteEventArgs类的具体用法?C# SimpleActionExecuteEventArgs怎么用?C# SimpleActionExecuteEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SimpleActionExecuteEventArgs类属于命名空间,在下文中一共展示了SimpleActionExecuteEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: showOperationsAction_Execute

 private void showOperationsAction_Execute(object sender, SimpleActionExecuteEventArgs e)
 {
     var newView = Application.CreateDetailView(Application.CreateObjectSpace(), new OperationObjects());
     e.ShowViewParameters.CreatedView = newView;
     e.ShowViewParameters.TargetWindow = TargetWindow.NewModalWindow;
     e.ShowViewParameters.Context = TemplateContext.PopupWindow;
 }
开发者ID:LSTANCZYK,项目名称:devexpress_xaf_aurum,代码行数:7,代码来源:OperationWindowController.cs

示例2: hideAction_Execute

 private void hideAction_Execute(object sender, SimpleActionExecuteEventArgs e)
 {
     if (View.CanClose())
     {
         View.Close();
     }
 }
开发者ID:LSTANCZYK,项目名称:devexpress_xaf_aurum,代码行数:7,代码来源:OperationObject_DetailViewController.cs

示例3: AcceptAction_Execute

 // Завершение мастера
 private void AcceptAction_Execute(object sender, SimpleActionExecuteEventArgs e)
 {
     Validator.RuleSet.Validate(objectSpace, wizard, ContextIdentifier.Save);
     OwnedReportData reportData = objectSpace.CreateObject<OwnedReportData>();
     wizard.Generate(Application.TypesInfo, reportData, style);
     objectSpace.CommitChanges();
 }
开发者ID:LSTANCZYK,项目名称:devexpress_xaf_aurum,代码行数:8,代码来源:OwnedReportWizardController.cs

示例4: btnCompleteShipment_Execute

        private void btnCompleteShipment_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            UnitOfWork uow = (UnitOfWork)View.ObjectSpace.Session;

            try
            {
                foreach (Shipment shipment in e.SelectedObjects)
                {
                    if (shipment.Status == Shipment.PackStatus.Ready)
                    {
                        shipment.AddPackedQty(shipment.UnPackedQty);

                    }

                    if (shipment.Status == Shipment.PackStatus.Active)
                    {
                        shipment.CompleteShipment();
                    }

                }

                uow.CommitChanges();
            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show(ex.Message, "¿ù»~", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
                uow.RollbackTransaction();
            }

            View.ObjectSpace.Refresh();
        }
开发者ID:kamchung322,项目名称:Namwah,代码行数:31,代码来源:ShipmentComplete_View.cs

示例5: XafBootstrapConfigurationActionItem_Execute

 private void XafBootstrapConfigurationActionItem_Execute(object sender, SimpleActionExecuteEventArgs e)
 {
     XAFBootstrapConfiguration._Instance = null;
     var os = Application.CreateObjectSpace();
     var view = Application.CreateDetailView(os, XAF_Bootstrap.DatabaseUpdate.Updater.Configuration(os));
     Application.MainWindow.SetView(view);
 }
开发者ID:Terricks,项目名称:XAFBootstrap,代码行数:7,代码来源:XafBootstrapConfigurationAction.cs

示例6: btnCheckBomLine_Execute

        private void btnCheckBomLine_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            StringBuilder sbLog = new StringBuilder();
            UnitOfWork uow = (UnitOfWork)((XPObjectSpace)View.ObjectSpace).Session;
            uow.BeginTransaction();

            foreach (BomLine bomLine in View.SelectedObjects)
            {
                if (bomLine.LineType == Item.ItemSource.Make)
                {
                    if (bomLine.BomItem.RouteLines.Count == 0 || bomLine.BomItem.BomLines.Count == 0)
                    {
                        sbLog.AppendLine(string.Format("��Ʒ : '{0}', Bom��Ʒ : '{1}'�����Ϊ��ʱ����Ҫ��Bom����������.", bomLine.Item.ItemNo, bomLine.BomItem.ItemNo));
                        bomLine.LineType = Item.ItemSource.None;
                        bomLine.Save();
                    }

                    if (bomLine.BomItem == bomLine.Item)
                    {
                        sbLog.AppendLine(string.Format("��Ʒ : '{0}', Bom��Ʒ : '{1}'�IJ��������ѵ�BOM.", bomLine.Item.ItemNo, bomLine.BomItem.ItemNo));
                    }
                }
            }

            uow.CommitChanges();
            if (sbLog.ToString() != "")
            {
                sbLog.AppendLine("����Bom����Դ�Ѿ��Զ�תΪδ��");
                XtraMessageBox.Show(sbLog.ToString(), "������ !!");
                View.ObjectSpace.Refresh();
            }
            else
                XtraMessageBox.Show("��ϲ, û�д��� !!");
        }
开发者ID:kamchung322,项目名称:Namwah,代码行数:34,代码来源:BomLine_View.cs

示例7: btnListDetail_Execute

        private void btnListDetail_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            if (View.CurrentObject == null)
                return;

            ControlDrawing drawing = (ControlDrawing)View.CurrentObject;

            if (drawing.Control == null)
            {
                XtraMessageBox.Show("����ѡ�������� !!!");
                return;
            }

            DialogResult dr = XtraMessageBox.Show("ע�� : ԭ�еĹ���ͼ���Ͻ���ɾ�� !!!", "����", MessageBoxButtons.OKCancel);

            if (dr == DialogResult.Cancel)
                return;

            foreach (ControlDrawingDetail detail in drawing.ControlDrawingDetails)
            {
                detail.Delete();
            }

            foreach (Dim dim in drawing.Control.Dims)
            {
                ControlDrawingDetail detail = new ControlDrawingDetail(drawing.Session);
                detail.ControlDrawing = drawing;
                detail.Dim = dim;
                detail.Save();
            }
        }
开发者ID:kamchung322,项目名称:Namwah,代码行数:31,代码来源:ControlDrawing_View.cs

示例8: btnConfirmIQC_Execute

        private void btnConfirmIQC_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            if (View.CurrentObject == null)
            {
                XtraMessageBox.Show("����ѡȡҪIQCȷ�ϵĵ�");
                return;
            }

            SubPurchOrderLine poLine = (SubPurchOrderLine)View.CurrentObject;

            if (poLine.OrderStatus != SubPurchOrderLine.PurchOrderStatus.Waiting)
            {
                XtraMessageBox.Show("�ⵥ��״̬����Waiting");
                return;
            }

            if (poLine.SubItem.ItemType != SubItem.SubItemType.Subcon)
            {
                XtraMessageBox.Show("�ⵥ���Ǿ�����");
                return;
            }

            frmSubConfirmIQC frm = new frmSubConfirmIQC();
            frm.poLine = poLine;
            frm.ShowDialog();

            View.ObjectSpace.Refresh();
        }
开发者ID:kamchung322,项目名称:Namwah,代码行数:28,代码来源:SubPurchOrder_View.cs

示例9: btnConfirmSubCon_Execute

        private void btnConfirmSubCon_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            if (View.CurrentObject == null)
            {
                XtraMessageBox.Show("����ѡȡҪ4¥���ȷ�ϵĵ�");
                return;
            }

            UnitOfWork uow = new UnitOfWork();
            uow.BeginTransaction();

            foreach (SubPurchOrderLine pLine in View.SelectedObjects)
            {
                if (pLine.SubItem.ItemType == SubItem.SubItemType.QC &&
                    pLine.OrderStatus == SubPurchOrderLine.PurchOrderStatus.Waiting)
                {
                    SubPurchOrderLine poLine = uow.GetObjectByKey<SubPurchOrderLine>(pLine.Oid);
                    poLine.OrderStatus = SubPurchOrderLine.PurchOrderStatus.Active;
                    poLine.Save();
                }
            }

            uow.CommitTransaction();
            View.ObjectSpace.Refresh();
        }
开发者ID:kamchung322,项目名称:Namwah,代码行数:25,代码来源:SubPurchOrder_View.cs

示例10: AcceptActionOnExecute

 void AcceptActionOnExecute(object sender, SimpleActionExecuteEventArgs simpleActionExecuteEventArgs) {
     var currentObject = simpleActionExecuteEventArgs.CurrentObject;
     var jobDataMap = new JobDataMap();
     GetDataMapMemberInfos(TypesInfo.FindTypeInfo(currentObject.GetType())).Each(MapItsValue(jobDataMap, currentObject));
     var jobDetail = ((IJobDetail)View.CurrentObject);
     jobDetail.JobDataMap = jobDataMap;
 }
开发者ID:aries544,项目名称:eXpand,代码行数:7,代码来源:_JobDataMapController.cs

示例11: btnCancelPurchOrderReceive_Execute

        private void btnCancelPurchOrderReceive_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            if (View.CurrentObject == null)
                return;

            StringBuilder sb = new StringBuilder();

            sb.AppendLine("请确认是否把以下采购单取消 !!");

            foreach (PurchOrderReceive poReceive in View.SelectedObjects)
                sb.AppendLine(string.Format("采购单号 : {0}, 产品编码 ; {1}, 数量 ; {2}", poReceive.PurchOrderLine.PurchOrderNo, poReceive.Item.ItemNo, poReceive.Qty));

            DialogResult dr = XtraMessageBox.Show(sb.ToString(), "确认取消", MessageBoxButtons.YesNo);

            if (dr == DialogResult.Yes)
            {
                UnitOfWork uow = (UnitOfWork)((XPObjectSpace)View.ObjectSpace).Session;
                uow.BeginTransaction();

                foreach (PurchOrderReceive poReceive in e.SelectedObjects)
                    poReceive.CancelPurchOrderReceive();

                uow.CommitChanges();
                View.ObjectSpace.Refresh();
            }
        }
开发者ID:kamchung322,项目名称:Namwah,代码行数:26,代码来源:PurchOrderReceive_View.cs

示例12: btnMassPurchOrderReceive_Execute

 private void btnMassPurchOrderReceive_Execute(object sender, SimpleActionExecuteEventArgs e)
 {
     CreatePurchOrderReceive(SubItem.SubItemType.QC);
     View.ObjectSpace.Refresh();
     btnMassPurchOrderReceive.Enabled["ABC"] = false;
     XtraMessageBox.Show("����ɳ�����ֻ�, \n����Ҫ�ٳ���ֻ�, Ո���˳���ҳ��");
 }
开发者ID:kamchung322,项目名称:Namwah,代码行数:7,代码来源:SubPurchOrderReceive_View.cs

示例13: btnCreateProdOrderPickList_Execute

        private void btnCreateProdOrderPickList_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            if (View.CurrentObject == null)
                return;

            XPObjectSpace objectSpace = (XPObjectSpace)Application.CreateObjectSpace();

            ProdBom pBom = (ProdBom)View.CurrentObject;
            XPCollection<ProdBom> prodBoms = new XPCollection<ProdBom>(objectSpace.Session);
            prodBoms.Criteria = DevExpress.Data.Filtering.CriteriaOperator.Parse(string.Format("Oid = '{0}'", pBom.Oid));

            ProdBom prodBom = prodBoms[0];
            ProdOrder pOrder = prodBom.ProdOrder;
            ProdOrderStart prodOrderStart = pOrder.GetLastProdOrderStart();
            ProdOrderPickList pickList = objectSpace.CreateObject<ProdOrderPickList>();
            pickList.ProdBom = prodBom;
            pickList.ProdOrderStart = prodOrderStart;
            pickList.PickQty = pickList.RecommendQty;

            e.ShowViewParameters.CreatedView = Application.CreateDetailView(objectSpace, pickList);
            e.ShowViewParameters.TargetWindow = TargetWindow.NewModalWindow;
            e.ShowViewParameters.Context = TemplateContext.PopupWindow;
            e.ShowViewParameters.CreateAllControllers = true;

            DialogController dialogController = new DialogController();
            e.ShowViewParameters.Controllers.Add(dialogController);
        }
开发者ID:kamchung322,项目名称:Namwah,代码行数:27,代码来源:ProdBom_View.cs

示例14: collectExecute

 void collectExecute(object sender, SimpleActionExecuteEventArgs e)
 {
     if (detController != null && detController.View != null)
     {
         XafDeltaModule.Instance.CollectObjectSpace(detController.View.ObjectSpace);
     }
 }
开发者ID:xafdelta,项目名称:xafdelta,代码行数:7,代码来源:VcWebActions.cs

示例15: btnAddDwgDrawing_Execute

        private void btnAddDwgDrawing_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            if (View.CurrentObject == null)
                return;

            Namwah.Module.ENG.Control control = View.CurrentObject as Namwah.Module.ENG.Control;

            if (control.IsNewRecord())
            {
                XtraMessageBox.Show("���ȴ����¼��ż�DWGͼ");
                return;
            }

            using (OpenFileDialog fileDialog = new OpenFileDialog())
            {
                fileDialog.Filter = "Dwg File (*.dwg)|*.dwg";
                fileDialog.Title = "��ѡȡ��ص�DWG��";

                if (fileDialog.ShowDialog() == DialogResult.OK)
                {
                    string cadFilePath = string.Format("{0}{1}.dwg", DefaultDwgFolder, control.ControlNo);
                    System.IO.File.Copy(fileDialog.FileName, cadFilePath, true);
                    CADHelper.ExportToJpg(fileDialog.FileName, string.Format("{0}{1}_DWG.jpg", DefaultImagesFolder, control.ControlNo));
                }
            }
        }
开发者ID:kamchung322,项目名称:Namwah,代码行数:26,代码来源:Control_View.cs


注:本文中的SimpleActionExecuteEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。