コード例 #1
0
 public override void OperateHandled(ModelOperate operate)
 {
     if (operate.Operate == OperateTypes.New.ToString())
     {
         frmBudgetEditEx form = new frmBudgetEditEx();
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.Modify.ToString())
     {
         frmBudgetEditEx form = new frmBudgetEditEx();
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.View.ToString())
     {
         frmBudgetEditEx form = new frmBudgetEditEx();
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.Revoke.ToString())
     {
         XtraMessageBox.Show("申请修改");
     }
     else if (operate.Operate == OperateTypes.Close.ToString())
     {
         XtraMessageBox.Show("关闭预算单");
     }
     else if (operate.Operate == "Test")
     {
         XtraMessageBox.Show("Test");
     }
     else
     {
         XtraMessageBox.Show("未定义的操作");
     }
 }
コード例 #2
0
        public override void OperateHandled(ModelOperate operate)
        {
            if (operate.Operate == OperateTypes.New.ToString())
            {
                frmVoucherNotesEdit form = new frmVoucherNotesEdit();

                form.ShowDialog(this);
            }
            else if (operate.Operate == OperateTypes.ImportData.ToString())
            {
                XtraMessageBox.Show("导入开票记录");
            }
            else if (operate.Operate == OperateTypes.View.ToString())
            {
                frmVoucherNotesEdit form = new frmVoucherNotesEdit();
                form.ShowDialog(this);
            }
            else if (operate.Operate == "Test1")
            {
                XtraMessageBox.Show("Test1");
            }
            else
            {
                XtraMessageBox.Show("未定义的操作1");
            }
        }
コード例 #3
0
 public override void OperateHandled(ModelOperate operate)
 {
     if (operate.Operate == OperateTypes.New.ToString())
     {
         frmSupplierEdit form = new frmSupplierEdit()
         {
             WorkModel = EditFormWorkModels.New
         };
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.Modify.ToString())
     {
         frmSupplierEdit form = new frmSupplierEdit()
         {
             WorkModel = EditFormWorkModels.View
         };
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.Enabled.ToString())
     {
         XtraMessageBox.Show("启用供应商,如果是合格供商则发启合格供商发启流程。");
     }
     else if (operate.Operate == OperateTypes.Disabled.ToString())
     {
         XtraMessageBox.Show("停用供应商");
     }
     else if (operate.Operate == OperateTypes.View.ToString())
     {
         frmSupplierEdit form = new frmSupplierEdit()
         {
             WorkModel = EditFormWorkModels.View
         };
         form.ShowDialog(this);
     }
 }
コード例 #4
0
 public override void OperateHandled(ModelOperate operate)
 {
     if (operate.Operate == OperateTypes.New.ToString())
     {
         frmInMemoryEdit form = new frmInMemoryEdit();
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.Modify.ToString())
     {
         frmInMemorySplitToBudgetEdit form = new frmInMemorySplitToBudgetEdit();
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.SplitCost.ToString())
     {
         frmInMemorySplitCostEdit form = new frmInMemorySplitCostEdit();
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.Delete.ToString())
     {
         XtraMessageBox.Show("删除入账");
     }
     else if (operate.Operate == OperateTypes.View.ToString())
     {
         frmInMemoryEdit form = new frmInMemoryEdit();
         form.ShowDialog(this);
     }
 }
コード例 #5
0
 public override void OperateHandled(ModelOperate operate)
 {
     if (operate.Operate == OperateTypes.New.ToString())
     {
         frmOutMemoryEdit form = new frmOutMemoryEdit();
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.Modify.ToString())
     {
         frmOutMemoryEdit form = new frmOutMemoryEdit();
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.View.ToString())
     {
         frmOutMemoryEdit form = new frmOutMemoryEdit();
         form.ShowDialog(this);
     }
     else if (operate.Operate == "Test1")
     {
         XtraMessageBox.Show("Test1");
     }
     else
     {
         XtraMessageBox.Show("未定义的操作1");
     }
 }
コード例 #6
0
 public override void OperateHandled(ModelOperate operate)
 {
     if (operate.Operate == OperateTypes.New.ToString())
     {
         frmCustomerEdit form = new frmCustomerEdit();
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.Modify.ToString())
     {
         frmCustomerEdit form = new frmCustomerEdit();
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.View.ToString())
     {
         frmCustomerEdit form = new frmCustomerEdit();
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.Relate.ToString())
     {
     }
     else if (operate.Operate == OperateTypes.Revoke.ToString())
     {
         XtraMessageBox.Show("Revoke");
     }
     else if (operate.Operate == "Test")
     {
         XtraMessageBox.Show("Test");
     }
     else
     {
         XtraMessageBox.Show("未定义的操作");
     }
 }
コード例 #7
0
 public override void OperateHandled(ModelOperate operate)
 {
     if (operate.Operate == OperateTypes.View.ToString())
     {
         frmBudgetEditEx form = new frmBudgetEditEx();
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.Revoke.ToString())
     {
         XtraMessageBox.Show("撤回选中流程");
     }
     else
     {
         XtraMessageBox.Show("未定义的操作");
     }
 }
コード例 #8
0
 public override void OperateHandled(ModelOperate operate)
 {
     if (operate.Operate == OperateTypes.ViewMoney.ToString())
     {
         frmMoneyInOutDetailEdit form = new frmMoneyInOutDetailEdit();
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.ViewMoneyDetail.ToString())
     {
         frmMoneyDetailEdit form = new frmMoneyDetailEdit();
         form.ShowDialog(this);
     }
     else
     {
         XtraMessageBox.Show("未定义的操作");
     }
 }
コード例 #9
0
 public override void OperateHandled(ModelOperate operate)
 {
     if (operate.Operate == OperateTypes.Modify.ToString())
     {
         frmFlowEdit form = new frmFlowEdit()
         {
             WorkModel = EditFormWorkModels.New
         };
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.View.ToString())
     {
         frmFlowEdit form = new frmFlowEdit()
         {
             WorkModel = EditFormWorkModels.View
         };
         form.ShowDialog(this);
     }
 }
コード例 #10
0
 public override void OperateHandled(ModelOperate operate)
 {
     if (operate.Operate == OperateTypes.Agree.ToString())
     {
         frmApprovalEdit form = new frmApprovalEdit();
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.View.ToString())
     {
         frmBudgetEditEx form = new frmBudgetEditEx();
         form.ShowDialog(this);
     }
     else if (operate.Operate == "Test")
     {
         XtraMessageBox.Show("Test");
     }
     else
     {
         XtraMessageBox.Show("未定义的操作");
     }
 }
コード例 #11
0
 public override void OperateHandled(ModelOperate operate)
 {
     if (operate.Operate == OperateTypes.New.ToString())
     {
         frmDepartmentEdit form = new frmDepartmentEdit()
         {
             WorkModel = EditFormWorkModels.New
         };
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.Modify.ToString())
     {
         frmDepartmentEdit form = new frmDepartmentEdit()
         {
             WorkModel = EditFormWorkModels.Modify
         };
         form.ShowDialog(this);
     }
     else if (operate.Operate == OperateTypes.View.ToString())
     {
         XtraMessageBox.Show("删除");
     }
 }
コード例 #12
0
        public static ModelOperate GetOperate(OperateTypes operate, string caption = "")
        {
            string text       = "";
            string group      = "";
            int    order      = (int)operate;
            int    imageIndex = -1;

            if (operate == OperateTypes.New)
            {
                text       = "新增";
                group      = "编辑";
                imageIndex = 48;
            }
            else if (operate == OperateTypes.Modify)
            {
                text       = "修改";
                group      = "编辑";
                imageIndex = 49;
            }
            else if (operate == OperateTypes.Delete)
            {
                text       = "删除";
                group      = "编辑";
                imageIndex = 50;
            }
            else if (operate == OperateTypes.View)
            {
                text       = "查看";
                group      = "查看";
                imageIndex = 3;
            }
            else if (operate == OperateTypes.Revoke)
            {
                text       = "撤回";
                group      = "操作";
                imageIndex = 9;
            }
            else if (operate == OperateTypes.Relate)
            {
                text       = "关联";
                group      = "操作";
                imageIndex = 28;
            }
            else if (operate == OperateTypes.Disabled)
            {
                text       = "停用";
                group      = "操作";
                imageIndex = 54;
            }
            else if (operate == OperateTypes.Enabled)
            {
                text       = "启用";
                group      = "操作";
                imageIndex = 34;
            }
            else if (operate == OperateTypes.Agree)
            {
                text       = "审核";
                group      = "操作";
                imageIndex = 2;
            }
            else if (operate == OperateTypes.SplitCost)
            {
                text       = "费用拆分";
                group      = "操作";
                imageIndex = 55;
            }
            else if (operate == OperateTypes.Close)
            {
                text       = "关闭预算单";
                group      = "操作";
                imageIndex = 56;
            }
            else if (operate == OperateTypes.ViewMoney)
            {
                text       = "查看合同收付";
                group      = "操作";
                imageIndex = 46;
            }
            else if (operate == OperateTypes.ViewMoneyDetail)
            {
                text       = "查看合同货款往来";
                group      = "操作";
                imageIndex = 22;
            }
            else if (operate == OperateTypes.ImportData)
            {
                text       = "导入";
                group      = "操作";
                imageIndex = 57;
            }
            else if (operate == OperateTypes.Print)
            {
                text       = "打印";
                group      = "打印";
                imageIndex = 58;
            }
            else if (operate == OperateTypes.Confirm)
            {
                text       = "确认";
                group      = "操作";
                imageIndex = 59;
            }
            else if (operate == OperateTypes.GiveUp)
            {
                text       = "放弃";
                group      = "操作";
                imageIndex = 60;
            }
            ModelOperate mm = new ModelOperate(operate, string.IsNullOrEmpty(caption) ? text : caption, group, order, imageIndex);

            return(mm);
        }
コード例 #13
0
 public override void OperateHandled(ModelOperate operate)
 {
 }
コード例 #14
0
 public virtual void OperateHandled(ModelOperate operate)
 {
 }