Exemplo n.º 1
0
 private void bt_Del_Click(object sender, EventArgs e)
 {
     try
     {
         uAEnumBindingSource.EndEdit();
         Model = uAEnumBindingSource.DataSource as UA_Enum;
         if (Model.EnumType == null)
         {
             ClsMsg.ShowInfoMsg("请选择要删除的数据");
         }
         else
         {
             if (bgWait.IsBusy == false)
             {
                 if (ClsMsg.ShowQuestionMsg("是否要删除该字典名称?") == System.Windows.Forms.DialogResult.Yes)
                 {
                     bgWait.RunWorkerAsync("DelDateDictionary");
                 }
             }
         }
     }
     catch (Exception ex)
     {
         Utils.Logger.Error(ex.ToString());
         ClsMsg.ShowInfoMsg(ex.Message);
     }
 }
Exemplo n.º 2
0
 //新增字典子集
 private void tsmi_AddEnumSubset_Click(object sender, EventArgs e)
 {
     try
     {
         if (tv_DateDictionary.SelectedNode == null)
         {
             ClsMsg.ShowInfoMsg("请先选择要增加子项的字典类型!");
         }
         else
         {
             Model = new UA_Enum
             {
                 EnumType = tv_DateDictionary.SelectedNode.Name,
                 TypeName = tv_DateDictionary.SelectedNode.Tag.ToString(),
                 SysCode  = context.SysCode
             };
             uAEnumBindingSource.DataSource       = Model;
             EnumTypeTextEdit.Properties.ReadOnly = true;
             TypeNameTextEdit.Properties.ReadOnly = true;
         }
     }
     catch (Exception ex)
     {
         Utils.Logger.Error(ex.ToString());
         ClsMsg.ShowInfoMsg(ex.Message);
     }
 }
Exemplo n.º 3
0
 private void bgWait_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             if (e.Result is UA_Enum[])
             {
                 bindingSource.DataSource = e.Result;
             }
             else if (e.Result is bool)
             {
                 if ((bool)e.Result)
                 {
                     bgWait.RunWorkerAsync("LoadDateDictionaryList");
                 }
             }
             else if (e.Result.ToString() == "LoadTreeDate")
             {
                 bgWait.RunWorkerAsync("LoadTreeDate");
             }
             Model = new UA_Enum();
             uAEnumBindingSource.DataSource       = Model;
             EnumTypeTextEdit.Properties.ReadOnly = false;
             TypeNameTextEdit.Properties.ReadOnly = false;
         }
     }
     catch (Exception ex)
     {
         Utils.Logger.Error(ex.ToString());
         ClsMsg.ShowInfoMsg(ex.Message);
     }
 }
Exemplo n.º 4
0
        private void ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                SaveFileDialog saveFileDialog = new SaveFileDialog();
                saveFileDialog.Title  = "截图";
                saveFileDialog.Filter = "Jpeg文件(*.jpg)|*.jpg";
                DialogResult dialogResult = saveFileDialog.ShowDialog(this);

                if (dialogResult == DialogResult.OK)
                {
                    if (SourceControlName == "Temperature_Chart")
                    {
                        Temperature_Chart.ExportToImage(saveFileDialog.FileName, System.Drawing.Imaging.ImageFormat.Png);
                    }
                    else if (SourceControlName == "Vacuo_Chart")
                    {
                        Vacuo_Chart.ExportToImage(saveFileDialog.FileName, System.Drawing.Imaging.ImageFormat.Png);
                    }
                    ClsMsg.ShowInfoMsg(saveFileDialog.FileName + " 保存成功!");
                }
            }
            catch (Exception ex)
            {
                Utils.Logger.Error(ex.ToString());
                //ClsMsg.ShowInfoMsg(ex.Message);
                lb_Prompt.Text = ex.Message;
            }
        }
Exemplo n.º 5
0
 private void bgwWait_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (e.Result != null)
     {
         if (e.Result is SRBase.CraftsParameterContrast[])
         {
             lstCPContrast = new List <CPContrast>();
             (e.Result as SRBase.CraftsParameterContrast[]).ToList().ForEach(item =>
             {
                 lstCPContrast.Add(new CPContrast(item));
             });
             cPContrastBindingSource.DataSource = lstCPContrast;
         }
         else if (e.Result is bool)
         {
             if (Convert.ToBoolean(e.Result))
             {
                 lstCPContrast.Remove(gridView1.GetRow(gridView1.FocusedRowHandle) as CPContrast);
                 cPContrastBindingSource.DataSource = lstCPContrast;
                 gridControl1.RefreshDataSource();
                 ClsMsg.ShowInfoMsg("删除成功!");
             }
         }
     }
 }
Exemplo n.º 6
0
        private void SaveFun()
        {
            try
            {
                using (SRUserRole.UserRoleServiceClient client = new SRUserRole.UserRoleServiceClient())
                {
                    SRUserRole.CommonResult resData = null;
                    var model = modelSource.DataSource as SRUserRole.UAD_Role;

                    if (model != null)
                    {
                        if (EidtStatus == 0)
                        {
                            resData = client.AddRole(model);
                        }
                        else
                        {
                            resData = client.EditRole(model);
                        }
                        if (resData.IsSuccess)
                        {
                            ClsMsg.ShowInfoMsg("保存成功!");
                        }
                        else
                        {
                            ClsMsg.ShowErrMsg(resData.Message);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                ClsMsg.ShowErrMsg(ex.ToString());
            }
        }
Exemplo n.º 7
0
 private void OparatorNameTextEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     try
     {
         if (OparatorNameTextEdit.Properties.ReadOnly == false)
         {
             var frmUser = new frmUserList(context);
             if (frmUser.ShowDialog() == DialogResult.OK)
             {
                 if (frmUser.Tag != null)
                 {
                     var UserModel = frmUser.Tag as Client.Utility.SRSysBase.User;
                     Model.OparatorName             = UserModel.cUserName;
                     Model.OparatorCode             = UserModel.cUserCode;
                     personBindingSource.DataSource = Model;
                 }
             }
         }
     }
     catch (Exception ex)
     {
         ClsMsg.ShowInfoMsg(ex.Message);
         Utils.Logger.Error(ex.ToString());
     }
 }
Exemplo n.º 8
0
 private void IsOperatorCheckEdit_CheckStateChanged(object sender, EventArgs e)
 {
     try
     {
         if (IsOperatorCheckEdit.CheckState == (CheckState.Checked))
         {
             OparatorCodeTextEdit.Properties.ReadOnly = false;
             OparatorNameTextEdit.Properties.ReadOnly = false;
         }
         else if (IsOperatorCheckEdit.CheckState == (CheckState.Unchecked))
         {
             OparatorCodeTextEdit.Properties.ReadOnly = true;
             OparatorNameTextEdit.Properties.ReadOnly = true;
             Model.OparatorCode = "";
             Model.OparatorName = "";
             //this.OparatorNameTextEdit.Text = null;
             //this.OparatorCodeTextEdit.Text = null;
         }
     }
     catch (Exception ex)
     {
         ClsMsg.ShowInfoMsg(ex.Message);
         Utils.Logger.Error(ex.ToString());
     }
 }
Exemplo n.º 9
0
        private void bgWait_DoWork(object sender, DoWorkEventArgs e)
        {
            bgWait.ReportProgress(0);
            try
            {
                switch (e.Argument.ToString())
                {
                case "LoadArrangedVouchCodeList":
                    if (string.IsNullOrEmpty(te_Date.Text) == false)
                    {
                        using (AVClient = new SRArrangedVouch.ArrangedVServiceClient())
                        {
                            var mindate   = Convert.ToDateTime(te_Date.Text).Date;
                            var maxdate   = Convert.ToDateTime(te_Date.Text).Date.AddHours(23.99);
                            int iPageSize = (int)Page.PageSize;
                            int iCurrPage = (int)Page.CurrentPage;

                            Tuple <StringBuilder, List <object> > dtFilter = Tuple.Create <StringBuilder, List <object> >(new StringBuilder(), new List <object>());
                            dtFilter.Item1.Append("1=1");
                            FilterProcess.MergeFilterCondition("CreateTime", mindate, ref dtFilter, objValues1: maxdate, dataType: FilterProcess.DataType.DateTime);
                            //FilterProcess.MergeFilterCondition("CreateTime", maxdate, ref dtFilter, "<=", dataType: FilterProcess.DataType.DateTime);
                            FilterProcess.MergeFilterCondition("UserStatus", "1", ref dtFilter, "!=", dataType: FilterProcess.DataType.Int);

                            var ret = AVClient.GetArrangedVouchList(context.SessionID, Tuple.Create <string, object[]>(dtFilter.Item1.ToString(), dtFilter.Item2.ToArray()), iPageSize, iCurrPage);
                            if (ret.IsSuccess)
                            {
                                Page.PageSize    = iPageSize;
                                Page.CurrentPage = iCurrPage;
                                e.Result         = ret.Data;
                            }
                            else
                            {
                                ClsMsg.ShowInfoMsg(ret.Message);
                            }
                        }
                    }
                    else
                    {
                        ClsMsg.ShowWarningEmptyMsg(lb_Date.Text);
                    }
                    break;

                default:
                    break;
                }
            }
            catch (FaultException <SRZhuanGu.CustomFaultMessage> fex)
            {
                bgWait.ReportProgress(102, fex.Message);
                Utils.Logger.Error(fex.ToString());
            }
            catch (Exception ex)
            {
                bgWait.ReportProgress(102, ex.Message);
                Utils.Logger.Error(ex.ToString());
            }
            bgWait.ReportProgress(100);
        }
Exemplo n.º 10
0
 private void bt_Save_Click(object sender, EventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(EnumTypeTextEdit.Text))
         {
             ClsMsg.ShowWarningEmptyMsg(ItemForEnumType.Text);
         }
         else if (string.IsNullOrEmpty(TypeNameTextEdit.Text))
         {
             ClsMsg.ShowWarningEmptyMsg(ItemForTypeName.Text);
         }
         else if (string.IsNullOrEmpty(EnumCodeTextEdit.Text))
         {
             ClsMsg.ShowWarningEmptyMsg(ItemForEnumCode.Text);
         }
         else if (string.IsNullOrEmpty(ItemForEnumCode.Text))
         {
             ClsMsg.ShowWarningEmptyMsg(ItemForEnumName.Text);
         }
         else if (string.IsNullOrEmpty(IOrderTextEdit.Text))
         {
             ClsMsg.ShowWarningEmptyMsg(ItemForIOrder.Text);
         }
         else if (string.IsNullOrEmpty(SysCodeTextEdit.Text))
         {
             ClsMsg.ShowWarningEmptyMsg(ItemForSysCode.Text);
         }
         else
         {
             if (bgWait.IsBusy == false)
             {
                 if (AutoIDSpinEdit.Text != "0")
                 {
                     if (ClsMsg.ShowQuestionMsg("是否保存修改后的数据?") == System.Windows.Forms.DialogResult.Yes)
                     {
                         bgWait.RunWorkerAsync("UpdateDateDictionary");
                     }
                 }
                 else
                 {
                     if (ClsMsg.ShowQuestionMsg("是否保存新增数据?") == System.Windows.Forms.DialogResult.Yes)
                     {
                         bgWait.RunWorkerAsync("AddDateDictionary");
                     }
                 }
             }
         }
     }
     catch (Exception ex)
     {
         Utils.Logger.Error(ex.ToString());
         ClsMsg.ShowInfoMsg(ex.Message);
     }
 }
Exemplo n.º 11
0
 private void bt_Search_Click(object sender, EventArgs e)
 {
     try
     {
         bgWait.RunWorkerAsync("LoadUserData");
     }
     catch (Exception ex)
     {
         ClsMsg.ShowInfoMsg(ex.Message);
         Utils.Logger.Error(ex.ToString());
     }
 }
Exemplo n.º 12
0
        private void GetPipelineOpereate(string PipelineCode)
        {
            try
            {
                using (var client = new SRPiPeline.PipelineServiceClient())
                {
                    var ret = client.GetDaviceInformation(context.SessionID, "06", PipelineCode);

                    if (ret.IsSuccess)
                    {
                        Model          = new SRPiPeline.MainPipelineInfo();
                        Model.Operator = context.UserName;
                        Model.Creator  = context.UserName;
                        //mainPipelineInfoBindingSource.DataSource = Model;
                        Model.DeveCode = ret.Data.DevCode;
                        Model.DeveName = ret.Data.DevName;
                        mainPipelineInfoBindingSource.DataSource = Model;
                        int iCurrPage = 0;
                        int iPageSize = 0;
                        Tuple <StringBuilder, List <object> > dtFilter = Tuple.Create <StringBuilder, List <object> >(new StringBuilder(), new List <object>());
                        dtFilter.Item1.Append("1 = 1");
                        FilterProcess.MergeFilterCondition("DeveCode", ret.Data.DevCode, ref dtFilter);
                        var mp_ret = client.GetOperatingRecord(context.SessionID, Tuple.Create <string, object[]>(dtFilter.Item1.ToString(), dtFilter.Item2.ToArray()), iCurrPage, iPageSize);
                        if (mp_ret.IsSuccess && mp_ret.Data.Count() > 0)
                        {
                            // PipelineStatusTextEdit.Properties.ReadOnly = true;
                            Model.PipelineStatus = mp_ret.Data.First(t => t.OperatingTime < DateTime.Now).PipelineStatus;

                            //if (PipelineStatusTextEdit.Text == "管道打开")
                            //{
                            //    Model.PromptDes = "管道关闭";
                            //}
                            //else if (PipelineStatusTextEdit.Text == "管道关闭")
                            //{
                            //    Model.PromptDes = "管道打开";
                            //}
                            mainPipelineInfoBindingSource.DataSource = Model;
                        }
                    }
                    else
                    {
                        ClsMsg.ShowInfoMsg(ret.Message);
                    }
                }
            }
            catch (Exception ex)
            {
                Utils.Logger.Error(ex.ToString());
                ClsMsg.ShowErrMsg(ex.Message);
            }
        }
Exemplo n.º 13
0
 private void bt_Search_Click(object sender, EventArgs e)
 {
     try
     {
         if (bgWait.IsBusy == false)
         {
             bgWait.RunWorkerAsync("LoadArrangedVouchCodeList");
         }
     }
     catch (Exception ex)
     {
         Utils.Logger.Error(ex.ToString());
         ClsMsg.ShowInfoMsg(ex.Message);
     }
 }
Exemplo n.º 14
0
 private void gridViewPaging1_PagingChanged(object sender, MyPagingEventArgs e)
 {
     try
     {
         if (bgWait.IsBusy == false)
         {
             bgWait.RunWorkerAsync("LoadArrangedVouchCodeList");
         }
     }
     catch (Exception ex)
     {
         Utils.Logger.Error(ex.ToString());
         ClsMsg.ShowInfoMsg(ex.Message);
     }
 }
Exemplo n.º 15
0
 private void bgWait_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             UserbindingSource.DataSource = e.Result as List <Client.Utility.SRSysBase.User>;
         }
     }
     catch (Exception ex)
     {
         ClsMsg.ShowInfoMsg(ex.Message);
         Utils.Logger.Error(ex.ToString());
     }
 }
Exemplo n.º 16
0
 //新增字典类型
 private void tsmi_AddEnumType_Click(object sender, EventArgs e)
 {
     try
     {
         Model         = new UA_Enum();
         Model.SysCode = context.SysCode;
         uAEnumBindingSource.DataSource       = Model;
         EnumTypeTextEdit.Properties.ReadOnly = false;
         TypeNameTextEdit.Properties.ReadOnly = false;
     }
     catch (Exception ex)
     {
         Utils.Logger.Error(ex.ToString());
         ClsMsg.ShowInfoMsg(ex.Message);
     }
 }
Exemplo n.º 17
0
        private void barManager_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                switch (e.Item.Name)
                {
                case "bbtniAdd":
                    if (string.IsNullOrEmpty(te_DepCode.Text))
                    {
                        ClsMsg.ShowInfoMsg("请选择相应的部门!");
                    }
                    else
                    {
                        var frm = new frmPersonalInfo(context, te_DepCode.Text);
                        if (frm.ShowDialog() == DialogResult.OK)
                        {
                            bgWait.RunWorkerAsync("LoadPersonData");
                        }
                    }
                    break;

                case "bbtniModify":
                    if (gvPerson.FocusedRowHandle >= 0)
                    {
                        var model = gvPerson.GetRow(gvPerson.FocusedRowHandle) as SRPersonInfo.Person;
                        var fPI   = new frmPersonalInfo(context, model.DepCode, model.PersonCode);
                        if (fPI.ShowDialog() == DialogResult.OK)
                        {
                            bgWait.RunWorkerAsync("LoadPersonData");
                        }
                    }
                    break;

                case "bbtniExit":
                    this.Close();
                    break;

                default:
                    break;
                }
            }
            catch (Exception ex)
            {
                ClsMsg.ShowErrMsg(ex.Message);
                Utils.Logger.Error(ex.ToString());
            }
        }
Exemplo n.º 18
0
 private void gcUser_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         if (gvUser.FocusedRowHandle >= 0)
         {
             var ret = gvUser.GetRow(gvUser.FocusedRowHandle) as Client.Utility.SRSysBase.User;
             this.Tag          = ret;
             this.DialogResult = DialogResult.OK;
         }
     }
     catch (Exception ex)
     {
         ClsMsg.ShowInfoMsg(ex.Message);
         Utils.Logger.Error(ex.ToString());
     }
 }
Exemplo n.º 19
0
        private void gridControl1_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                if (gv_ArrangedVouchCode.FocusedRowHandle >= 0)
                {
                    var model = gv_ArrangedVouchCode.GetRow(gv_ArrangedVouchCode.FocusedRowHandle) as SRArrangedVouch.ArrangedVouch;

                    var value = model.ArrangedVouchCode;
                    PMonit.Tag        = value;
                    this.DialogResult = DialogResult.OK;
                }
            }
            catch (Exception ex)
            {
                Utils.Logger.Error(ex.ToString());
                ClsMsg.ShowInfoMsg(ex.Message);
            }
        }
Exemplo n.º 20
0
        private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e)
        {
            backgroundWorker.ReportProgress(0);
            try
            {
                switch (e.Argument.ToString())
                {
                case "AddOperatingData":
                    using (var Client = new SRPiPeline.PipelineServiceClient())
                    {
                        mainPipelineInfoBindingSource.EndEdit();
                        Model = mainPipelineInfoBindingSource.DataSource as SRPiPeline.MainPipelineInfo;
                        Model.OperatingTime = Convert.ToDateTime(OperatingTimeTextEdit.Text);
                        // Model.OperatorReamrk = PipelineStatusTextEdit.Text;
                        Model.PipelineStatus = PromptDesTextEdit.Text;
                        Model.CreateDate     = Convert.ToDateTime(CreateDateDateEdit.Text);
                        var ret = Client.AddOperatingData(context.SessionID, Model);
                        if (ret.IsSuccess)
                        {
                            ClsMsg.ShowInfoMsg("操作数据保存成功!");
                        }
                    }
                    break;

                default:
                    break;
                }
            }
            catch (System.ServiceModel.FaultException <CustomFaultMessage> fex)
            {
                backgroundWorker.ReportProgress(102, fex.Message);
                Utils.Logger.Error(fex.ToString());
            }
            catch (Exception ex)
            {
                ClsMsg.ShowErrMsg(ex.Message);
                Utils.Logger.Error(ex.ToString());
            }
            backgroundWorker.ReportProgress(100);
        }
Exemplo n.º 21
0
 private void bgWait_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             if (e.Result is SRArrangedVouch.ArrangedVouch[])
             {
                 bindingSource.DataSource = (e.Result as SRArrangedVouch.ArrangedVouch[]);
                 if ((e.Result as SRArrangedVouch.ArrangedVouch[]).Count() == 0)
                 {
                     ClsMsg.ShowInfoMsg(te_Date.Text + " 当天没有已完成的排配单!");
                 }
             }
         }
     }
     catch (Exception ex)
     {
         Utils.Logger.Error(ex.ToString());
         ClsMsg.ShowInfoMsg(ex.Message);
     }
 }
Exemplo n.º 22
0
 private void bgwWait_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             if (e.Result is bool)
             {
                 ClsMsg.ShowInfoMsg("提交成功!");
                 this.Close();
             }
             else if (e.Result is string && e.Result.ToString().Equals("LoadData"))
             {
                 qCFindLeakDrumsSetBindingSource.DataSource       = model;
                 qCFindLeakDrumsSetDetailBindingSource.DataSource = detailList;
             }
         }
     }
     catch (Exception ex)
     {
         ClsMsg.ShowErrMsg(ex.Message);
     }
 }
Exemplo n.º 23
0
        private void bgWait_DoWork(object sender, DoWorkEventArgs e)
        {
            try
            {
                switch (e.Argument.ToString())
                {
                case "LoadUserData":
                    var ret = SbsClient.GetBaseUserList(context.SessionID);
                    if (ret.IsSuccess)
                    {
                        if (string.IsNullOrEmpty(te_UserName.Text) && string.IsNullOrEmpty(te_UserCode.Text))
                        {
                            UserList = ret.Data.ToList();
                        }
                        else if (string.IsNullOrEmpty(te_UserName.Text) == false)
                        {
                            UserList = ret.Data.Where(t => t.cUserName == te_UserName.Text).ToList();
                        }
                        else if (string.IsNullOrEmpty(te_UserCode.Text) == false)
                        {
                            UserList = ret.Data.Where(t => t.cUserCode == te_UserCode.Text).ToList();
                        }
                        e.Result = UserList;
                    }
                    break;

                default:
                    break;
                }
            }
            catch (Exception ex)
            {
                ClsMsg.ShowInfoMsg(ex.Message);
                Utils.Logger.Error(ex.ToString());
            }
        }
Exemplo n.º 24
0
        private void bgWait_DoWork(object sender, DoWorkEventArgs e)
        {
            bgWait.ReportProgress(PubConstant.WaitMessageStatus.START);
            try
            {
                switch (e.Argument.ToString())
                {
                case "LoadTreeDate":
                    LoadTreeDate();
                    break;

                case "LoadDateDictionaryList":
                    if (string.IsNullOrEmpty(te_Selected.Text) == false)
                    {
                        var ret = SbsClient.GetEnumByEnumType(context.SessionID, context.SysCode, te_Selected.Text);
                        e.Result = ret.Data;
                    }
                    break;

                case "AddDateDictionary":
                    uAEnumBindingSource.EndEdit();
                    Model = uAEnumBindingSource.DataSource as UA_Enum;
                    var existornot = SbsClient.GetEnumByEnumType(context.SessionID, context.SysCode, Model.EnumType).Data;
                    var addret     = SbsClient.AddEnum(context.SessionID, Model);
                    if (addret.Data)
                    {
                        if (existornot.Count() > 0)
                        {
                            e.Result = true;
                        }
                        else
                        {
                            e.Result = "LoadTreeDate";
                        }
                        ClsMsg.ShowInfoMsg("新增数据成功!");
                    }
                    else
                    {
                        e.Result = false;
                        ClsMsg.ShowInfoMsg(addret.Message);
                    }
                    break;

                case "DelDateDictionary":
                    uAEnumBindingSource.EndEdit();
                    Model = uAEnumBindingSource.DataSource as UA_Enum;
                    var delret      = SbsClient.DelEnumByID(context.SessionID, Model.AutoID);
                    var existornot2 = SbsClient.GetEnumByEnumType(context.SessionID, context.SysCode, Model.EnumType).Data;
                    if (delret.Data)
                    {
                        if (existornot2.Count() > 0)
                        {
                            e.Result = true;
                        }
                        else
                        {
                            e.Result = "LoadTreeDate";
                        }
                        ClsMsg.ShowInfoMsg("数据删除成功!");
                    }
                    else
                    {
                        e.Result = false;
                        ClsMsg.ShowInfoMsg(delret.Message);
                    }
                    break;

                case "UpdateDateDictionary":
                    uAEnumBindingSource.EndEdit();
                    Model = uAEnumBindingSource.DataSource as UA_Enum;
                    var upret = SbsClient.UpdateEnum(context.SessionID, Model);
                    if (upret.Data)
                    {
                        e.Result = true;
                        ClsMsg.ShowInfoMsg("数据更新成功!");
                    }
                    else
                    {
                        e.Result = false;
                        ClsMsg.ShowInfoMsg(upret.Message);
                    }
                    break;

                default:
                    break;
                }
            }
            catch (Exception ex)
            {
                Utils.Logger.Error(ex.ToString());
                ClsMsg.ShowInfoMsg(ex.Message);
            }
            bgWait.ReportProgress(PubConstant.WaitMessageStatus.END);
        }