public void DoAction(string actionType)
        {
            if (conserVation == null)
            {
                conserVation                  = new T_OA_MAINTENANCEAPP();
                conserVation.CHECKSTATE       = "0";
                conserVation.MAINTENANCEAPPID = System.Guid.NewGuid().ToString();
            }
            if (!Check())
            {
                return;
            }
            RefreshUI(RefreshedTypes.ShowProgressBar);
            switch (actionType)
            {
            case "0":
                saveType     = RefreshedTypes.HideProgressBar; _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
                isSubmitFlow = false;
                Save();
                break;

            case "1":
                saveType = RefreshedTypes.CloseAndReloadData; _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
                Save();
                break;
            }
        }
Exemple #2
0
        public void DoAction(string actionType)
        {
            if (actionType.ToInt32() == 2)
            {
                sel_vDipatch();
            }
            else
            {
                if (!Check())
                {
                    return;
                }
                RefreshUI(RefreshedTypes.ShowProgressBar);
                switch (actionType)
                {
                case "0":
                    _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
                    saveType   = RefreshedTypes.ProgressBar;
                    Save();
                    break;

                case "1":
                    _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
                    saveType   = RefreshedTypes.CloseAndReloadData;
                    Save();
                    break;
                }
            }
        }
Exemple #3
0
        public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
        {
            string state     = "";
            string UserState = "Audit";

            switch (args)
            {
            case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
                state      = Utility.GetCheckState(CheckStates.Approving);
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approving;
                break;

            case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
                state      = Utility.GetCheckState(CheckStates.Approved);
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approved;
                break;

            case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
                state      = Utility.GetCheckState(CheckStates.UnApproved);
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnApproved;
                break;
            }
            if (roleInfo.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
            {
                UserState = "Submit";
            }
            roleInfo.CHECKSTATE = state;
            roleInfo.UPDATEUSER = Common.CurrentLoginUserInfo.EmployeeID;
            //_VM.UpdateApporvalAsync(approvalInfo, UserState);
            string StrResult = "";

            permClient.SysRoleInfoUpdateAsync(roleInfo, StrResult, UserState);
        }
Exemple #4
0
        public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
        {
            string state     = "";
            string UserState = "Audit";

            switch (args)
            {
            case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
                state      = Utility.GetCheckState(CheckStates.Approving);
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approving;
                break;

            case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
                state      = Utility.GetCheckState(CheckStates.Approved);
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approved;
                break;

            case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
                state      = Utility.GetCheckState(CheckStates.UnApproved);
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnApproved;
                break;
            }
            if (conserVation.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
            {
                UserState = "Submit";
            }

            conserVation.CHECKSTATE = state;

            _VM.UpdateConserVationAsync(conserVation, UserState);
        }
        public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
        {
            string state     = "";
            string UserState = string.Empty;

            switch (args)
            {
            case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
                state      = Utility.GetCheckState(CheckStates.Approving);
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approving;
                break;

            case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
                state      = Utility.GetCheckState(CheckStates.Approved);
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approved;
                break;

            case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
                state      = Utility.GetCheckState(CheckStates.UnApproved);
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnApproved;
                break;
            }
            if (vehicleDispatchRecord.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
            {
                UserState = "Submit";
            }
            vehicleDispatchRecord.CHECKSTATE = state;
            isSubmitFlow = true;
            ObservableCollection <T_OA_VEHICLEDISPATCHRECORD> o = new ObservableCollection <T_OA_VEHICLEDISPATCHRECORD>();

            o.Add(vehicleDispatchRecord);
            _VM.Upd_VDRecordAsync(o, UserState);
        }
Exemple #6
0
        public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
        {
            string state = "";

            switch (args)
            {
            case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
                state      = Utility.GetCheckState(CheckStates.Approving);
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approving;
                break;

            case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
                state      = Utility.GetCheckState(CheckStates.Approved);
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approved;
                break;

            case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
                state      = Utility.GetCheckState(CheckStates.UnApproved);
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnApproved;
                break;
            }
            _record.CHECKSTATE = state;
            isSubmitFlow       = true;
            Save();
        }
        public void DoAction(string actionType)
        {
            switch (actionType)
            {
            case "0":
                saveType   = RefreshedTypes.All;
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
                Save();
                break;

            case "1":
                saveType   = RefreshedTypes.CloseAndReloadData;
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
                Save();
                break;
            }
        }
Exemple #8
0
        public void DoAction(string actionType)
        {
            if (!Check())
            {
                return;
            }
            RefreshUI(RefreshedTypes.ShowProgressBar);
            switch (actionType)
            {
            case "0":
                saveType     = RefreshedTypes.HideProgressBar; _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
                isSubmitFlow = false;
                Save();
                break;

            case "1":
                saveType = RefreshedTypes.CloseAndReloadData; _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
                Save();
                break;
            }
        }
Exemple #9
0
        //public static string GetDepartmentNameByID(string departmentID)
        //{
        //    List<SMT.Saas.Tools.OrganizationWS.T_HR_DEPARTMENT> dictc = Application.Current.Resources["SYS_DepartmentInfo"] as List<SMT.Saas.Tools.OrganizationWS.T_HR_DEPARTMENT>;
        //    if (dictc == null)
        //    {
        //        return null;
        //    }
        //    var objc = from a in dictc
        //               where a.DEPARTMENTID == departmentID
        //               select a.T_HR_DEPARTMENTDICTIONARY.DEPARTMENTNAME;
        //    return objc.Count() > 0 ? objc.FirstOrDefault() : null;
        //}

        public static SMT.SaaS.FrameworkUI.CheckStates GetCheckStateByValue(string value)
        {
            int a = Convert.ToInt32(value);

            SMT.SaaS.FrameworkUI.CheckStates state = (SMT.SaaS.FrameworkUI.CheckStates)a;

            //string name = System.Enum.GetName(typeof(SMT.SaaS.FrameworkUI.CheckStates), int.Parse(value));
            //switch(name)
            //{
            //    case "UnSubmit":
            //        return SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
            //    case "Approved":
            //        return SMT.SaaS.FrameworkUI.CheckStates.Approved;
            //    case "Approving":
            //        return SMT.SaaS.FrameworkUI.CheckStates.Approving;
            //    case "UnApproved":
            //        return SMT.SaaS.FrameworkUI.CheckStates.UnApproved;
            //    case "WaittingApproval":
            //        return SMT.SaaS.FrameworkUI.CheckStates.Approving;
            //}
            return(state);
            //int a = Convert.ToInt32
        }
 public void DoAction(string actionType)
 {
     if (!Check()) return;
     RefreshUI(RefreshedTypes.ShowProgressBar);
     switch (actionType)
     {
         case "0":
             saveType = RefreshedTypes.HideProgressBar; _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
             isSubmitFlow = false;
             Save();
             break;
         case "1":
             saveType = RefreshedTypes.CloseAndReloadData; _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
             Save();
             break;
     }
 }
Exemple #11
0
 public void DoAction(string actionType)
 {
     if (conserVation == null)
     {
         conserVation = new T_OA_MAINTENANCEAPP();
         conserVation.CHECKSTATE = "0";
         conserVation.MAINTENANCEAPPID = System.Guid.NewGuid().ToString();
     }
     if (!Check()) return;
     RefreshUI(RefreshedTypes.ShowProgressBar);
     switch (actionType)
     {
         case "0":
             saveType = RefreshedTypes.HideProgressBar; _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
             isSubmitFlow = false;
             Save();
             break;
         case "1":
             saveType = RefreshedTypes.CloseAndReloadData; _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
             Save();
             break;
     }
 }
Exemple #12
0
        public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
        {
            Utility.InitFileLoad(FormTypes.Audit, uploadFile,approvalInfo.APPROVALID,false);
            string state = "";
            SetControlsEnable();
            string UserState = "Audit";
            
            switch (args)
            {
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
                    state = Utility.GetCheckState(CheckStates.Approving);
                    _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approving;
                    isAuditing = true;
                    break;
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
                    state = Utility.GetCheckState(CheckStates.Approved);
                    _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approved;
                    break;
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
                    state = Utility.GetCheckState(CheckStates.UnApproved);
                    _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnApproved;
                    break;
            }

            RefreshUI(RefreshedTypes.HideProgressBar);
            if (_flwResult == SMT.SaaS.FrameworkUI.CheckStates.Approving)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSSUBMITAUDIT"),
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
            }
            if (_flwResult == SMT.SaaS.FrameworkUI.CheckStates.Approved)
            {
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSAUDIT"),
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
            }

            approvalInfo.CHECKSTATE = state;    
            RefreshUI(RefreshedTypes.AuditInfo);
            RefreshUI(saveType);

            
            //Logger.Current.Log("事项审批进入了状态修改", Category.Debug, Priority.Low);
            
            
        }
Exemple #13
0
 public void DoAction(string actionType)
 {
     switch (actionType)
     {
         case "0":
             saveType = RefreshedTypes.All;
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
             Save();
             break;
         case "1":
             saveType = RefreshedTypes.CloseAndReloadData;
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
             Save();
             break;
     }
 }
 public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
 {
     string state = "";
     string UserState = string.Empty;
     switch (args)
     {
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
             state = Utility.GetCheckState(CheckStates.Approving);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approving;
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
             state = Utility.GetCheckState(CheckStates.Approved);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approved;
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
             state = Utility.GetCheckState(CheckStates.UnApproved);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnApproved;
             break;
     }
     if (vehicleDispatchRecord.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
     {
         UserState = "Submit";
     }
     vehicleDispatchRecord.CHECKSTATE = state;
     isSubmitFlow = true;
     ObservableCollection<T_OA_VEHICLEDISPATCHRECORD> o = new ObservableCollection<T_OA_VEHICLEDISPATCHRECORD>();
     o.Add(vehicleDispatchRecord);
     _VM.Upd_VDRecordAsync(o, UserState);
 }
Exemple #15
0
        public void DoAction(string actionType)
        {
            if (cmbVehicleAssetId.SelectedIndex < 0)
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARNING"), Utility.GetResourceStr("PLEASESELECT", "Vehicle"));
                return;
            }
            if (cmbConserVationName.SelectedIndex < 0)
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARNING"), Utility.GetResourceStr("PLEASESELECT", "ConserVationName"));
                return;
            }
            if (string.IsNullOrEmpty(txtCONSERVATIONRANGE.Text))
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARNING"), Utility.GetResourceStr("REQUIRED", "CONSERVATIONRANGE"));
                return;
            }
            else
            {
                //判断是否为整数
                int iResult = 0;
                if (!int.TryParse(txtCONSERVATIONRANGE.Text.Trim(), out iResult))
                {
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("FORMATERROR", "CONSERVATIONRANGE"));
                    return;
                }
            }
            if (ckbHasFee.IsChecked == true)
            {
                if (string.IsNullOrEmpty(txtFee.Text))
                {
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARNING"), Utility.GetResourceStr("REQUIRED", "MaintenanceFees"));
                    return;
                }
                if (!CheckInputIsDecimal(txtFee.Text.Trim()))
                {
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARNING"), Utility.GetResourceStr("IsDouble", "MaintenanceFees"));
                    return;
                }
            }
            if (types == FormTypes.New)
            {
                conserVation                = new T_OA_CONSERVATION();
                conserVation.CHECKSTATE     = ((int)CheckStates.UnSubmit).ToString();
                conserVation.CONSERVATIONID = System.Guid.NewGuid().ToString();
            }
            if (!Check())
            {
                return;
            }
            RefreshUI(RefreshedTypes.ShowProgressBar);
            switch (actionType)
            {
            case "0":
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
                saveType   = RefreshedTypes.HideProgressBar;
                Save();
                break;

            case "1":
                _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
                saveType   = RefreshedTypes.CloseAndReloadData;
                Save();
                break;
            }
        }
 public void DoAction(string actionType)
 {
     if (actionType == "2")
         sel_App();
     else
     {
         if (!Check()) return;
         RefreshUI(RefreshedTypes.ShowProgressBar);
         switch (actionType)
         {
             case "0":
                 _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
                 saveType = RefreshedTypes.ProgressBar;
                 Save();
                 break;
             case "1":
                 _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
                 saveType = RefreshedTypes.CloseAndReloadData;
                 Save();
                 break;
         }
     }
 }
Exemple #17
0
        public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
        {
            string state = "";
            string UserState = "Audit";
            switch (args)
            {
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
                    state = Utility.GetCheckState(CheckStates.Approving);
                    _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approving;
                    break;
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
                    state = Utility.GetCheckState(CheckStates.Approved);
                    _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approved;
                    break;
                case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
                    state = Utility.GetCheckState(CheckStates.UnApproved);
                    _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnApproved;
                    break;
            }
            if (conserVation.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
            {
                UserState = "Submit";
            }

            conserVation.CHECKSTATE = state;

            _VM.UpdateConserVationAsync(conserVation, UserState);
        }
Exemple #18
0
        public void DoAction(string actionType)
        {
            if (cmbVehicleAssetId.SelectedIndex < 0)
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARNING"), Utility.GetResourceStr("PLEASESELECT", "Vehicle"));
                return;
            }
            if (cmbConserVationName.SelectedIndex < 0)
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARNING"), Utility.GetResourceStr("PLEASESELECT", "ConserVationName"));
                return;
            }
            if (string.IsNullOrEmpty(txtCONSERVATIONRANGE.Text))
            {
                Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARNING"), Utility.GetResourceStr("REQUIRED", "CONSERVATIONRANGE"));
                return;
            }
            else
            {
                //判断是否为整数
                int iResult = 0;
                if (!int.TryParse(txtCONSERVATIONRANGE.Text.Trim(), out iResult))
                {
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("FORMATERROR", "CONSERVATIONRANGE"));
                    return;
                }

            }
            if (ckbHasFee.IsChecked == true)
            {
                if (string.IsNullOrEmpty(txtFee.Text))
                {
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARNING"), Utility.GetResourceStr("REQUIRED", "MaintenanceFees"));
                    return;
                }
                if (!CheckInputIsDecimal(txtFee.Text.Trim()))
                {
                    Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("WARNING"), Utility.GetResourceStr("IsDouble", "MaintenanceFees"));
                    return;
                }
            }
            if (types == FormTypes.New)
            {
                conserVation = new T_OA_CONSERVATION();
                conserVation.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString();
                conserVation.CONSERVATIONID = System.Guid.NewGuid().ToString();
            }
            if (!Check()) return;
            RefreshUI(RefreshedTypes.ShowProgressBar);
            switch (actionType)
            {
                case "0":
                    _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
                    saveType = RefreshedTypes.HideProgressBar;
                    Save();
                    break;
                case "1":
                    _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnSubmit;
                    saveType = RefreshedTypes.CloseAndReloadData;
                    Save();
                    break;
            }
        }
 public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
 {
     string state = "";
     switch (args)
     {
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
             state = Utility.GetCheckState(CheckStates.Approving);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approving;
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
             state = Utility.GetCheckState(CheckStates.Approved);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approved;
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
             state = Utility.GetCheckState(CheckStates.UnApproved);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnApproved;
             break;
     }
     conserVation.CHECKSTATE = state;
     isSubmitFlow = true;
     Save();
 }
Exemple #20
0
 public void OnSubmitCompleted(FrameworkUI.AuditControl.AuditEventArgs.AuditResult args)
 {
     string state = "";
     string UserState = "Audit";
     switch (args)
     {
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Auditing:
             state = Utility.GetCheckState(CheckStates.Approving);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approving;
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Successful:
             state = Utility.GetCheckState(CheckStates.Approved);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.Approved;
             break;
         case SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs.AuditResult.Fail:
             state = Utility.GetCheckState(CheckStates.UnApproved);
             _flwResult = SMT.SaaS.FrameworkUI.CheckStates.UnApproved;
             break;
     }
     if (roleInfo.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
     {
         UserState = "Submit";
     }
     roleInfo.CHECKSTATE = state;
     roleInfo.UPDATEUSER = Common.CurrentLoginUserInfo.EmployeeID;
     //_VM.UpdateApporvalAsync(approvalInfo, UserState);
     string StrResult = "";
     permClient.SysRoleInfoUpdateAsync(roleInfo,StrResult,UserState);
 }