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


C# SMT类代码示例

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


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

示例1: orgClient_GetCompanyActivedCompleted

        void orgClient_GetCompanyActivedCompleted(object sender, SMT.Saas.Tools.OrganizationWS.GetCompanyActivedCompletedEventArgs e)
        {
            if (e.Error != null && e.Error.Message != "")
            {
                //loadbar.Stop();//有错误停止转圈                
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"),
                Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
                return;
            }
            else
            {
                if (e.Result == null)
                {
                    return;
                }

                ObservableCollection<SMT.Saas.Tools.OrganizationWS.T_HR_COMPANY> entTemps = e.Result;
                allCompanys = new List<SMT.Saas.Tools.OrganizationWS.T_HR_COMPANY>();
                allCompanys.Clear();
                var ents = entTemps.OrderBy(c => c.FATHERID);
                ents.ForEach(item =>
                {
                    allCompanys.Add(item);
                });

                UICache.CreateCache("SYS_CompanyInfo", allCompanys);
                orgClient.GetDepartmentActivedAsync(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID);
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:29,代码来源:BindOrgTree.cs

示例2: LoadData

 public void LoadData(SMT.SaaS.FrameworkUI.FormTypes type, string resumeID)
 {
     formType = type;
     if (formType == FormTypes.Browse)
     {
         this.IsEnabled = false;
     }
     if (formType == SMT.SaaS.FrameworkUI.FormTypes.New)
     {
         if (Resume == null)
         {
             Resume = new T_HR_RESUME();
             Resume.RESUMEID = Guid.NewGuid().ToString();
             Resume.CREATEDATE = DateTime.Now;
             Resume.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
         }
     }
     else
     {
         if (Resume == null)
         {
             client.GetResumeByidAsync(resumeID);
         }
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:25,代码来源:BaseinfoForm.xaml.cs

示例3: personelClient_GetEmployeeDetailByIDCompleted

 void personelClient_GetEmployeeDetailByIDCompleted(object sender, SMT.Saas.Tools.PersonnelWS.GetEmployeeDetailByIDCompletedEventArgs e)
 {
     if (e.Result != null)
     {
        // SMT.SAAS.Main.CurrentContext.Common.CurrentConfig.CurrentUser.EmployeeInfo = e.Result;
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:7,代码来源:Rein.xaml.cs

示例4: LooKUP

        public LooKUP(SMT.SaaS.FrameworkUI.OrgTreeItemTypes orgTreeItemType,string title)
        {
            InitializeComponent();
            this.Title = title;
            //object objs = null;
            //if (Application.Current.Resources["CurrentUserID"] != null)
            //{
            //    objs = Application.Current.Resources["CurrentUserID"];
            //    Application.Current.Resources.Remove("CurrentUserID");
            //    Application.Current.Resources.Add("CurrentUserID", "");
            //}
            //if (Application.Current.Resources["CurrentUserID"] == null)
            //{
            //    Application.Current.Resources.Add("CurrentUserID", "");
            //}

            SMT.SaaS.FrameworkUI.OrganizationControl.OrganizationLookup lookup = new SMT.SaaS.FrameworkUI.OrganizationControl.OrganizationLookup();
            lookup.SelectedObjType = orgTreeItemType;
            lookup.SelectedClick += (obj, ev) =>
            {
                List<SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj> ent = lookup.SelectedObj as List<SMT.SaaS.FrameworkUI.OrganizationControl.ExtOrgObj>;
                if (ent != null && ent.Count > 0)
                {
                    SelectList = ent;

                }
            };
            (lookup.FindName("OKButton") as Button).Click += new RoutedEventHandler(LooKUP_Click);
            (lookup.FindName("CancelButton") as Button).Click += new RoutedEventHandler(CancelButton_Click);
            lookup.MultiSelected = false;
            LayoutRoot.Children.Add(lookup);
        }
开发者ID:JuRogn,项目名称:OA,代码行数:32,代码来源:LooKUP.xaml.cs

示例5: orgClient_GetCompanyActivedCompleted

        void orgClient_GetCompanyActivedCompleted(object sender, SMT.Saas.Tools.OrganizationWS.GetCompanyActivedCompletedEventArgs e)
        {
            if (e.Error != null && e.Error.Message != "")
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }
            else
            {
                if (e.Result == null)
                {
                    return;
                }

                ObservableCollection<SMT.Saas.Tools.OrganizationWS.T_HR_COMPANY> entTemps = e.Result;
                allCompanys = new List<SMT.Saas.Tools.OrganizationWS.T_HR_COMPANY>();
                allCompanys.Clear();
                var ents = entTemps.OrderBy(c => c.FATHERID);
                ents.ForEach(item =>
                {
                    allCompanys.Add(item);
                });

                UICache.CreateCache("ORGTREESYSCompanyInfo", allCompanys);
                UICache.CreateCache("SYS_CompanyInfo", allCompanys);
                orgClient.GetDepartmentActivedAsync(SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID);
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:27,代码来源:OrganizationTreeView.xaml.cs

示例6: UpdateEmployeeInfo

 public string UpdateEmployeeInfo(SMT.HRM.CustomModel.Permission.EmployeeInfo employeeInfo)
 {
     using (InstantMessageBll bll = new InstantMessageBll())
     {
         string StrReturn = bll.UpdateEmployeeInfo(employeeInfo);
         return StrReturn;
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:8,代码来源:InstantMessagingServices.svc.cs

示例7: UpdateEmployeeInfo

 public string UpdateEmployeeInfo(SMT.SaaS.Permission.DAL.views.EmployeeInfo employeeInfo)
 {
     using (InstantMessageBll bll = new InstantMessageBll())
     {
         string StrReturn = bll.UpdateEmployeeInfo(employeeInfo);
         return StrReturn;
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:8,代码来源:InstantMessagingServices.svc.cs

示例8: _client_DeleteFileCompleted

 //WCF删除
 void _client_DeleteFileCompleted(object sender, SMT.Saas.Tools.NewFileUploadWS.DeleteFileCompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (e.Result != null)
         {
             string txt = e.Result;
         }
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:11,代码来源:FileUploadRowControl.xaml.cs

示例9: RelationPostForm

        /// <summary>
        /// 
        /// </summary>
        /// <param name="type"></param>
        /// <param name="strID"></param>
        /// <param name="PostID">当前岗位ID</param>
        public RelationPostForm(SMT.SaaS.FrameworkUI.FormTypes type, string strID,T_HR_POST post)
        {
            InitializeComponent();
            FormType = type;
            Post = post;
            InitParas(strID);

            if (Post != null)
            {
                txtPostCode.Text = Post.T_HR_POSTDICTIONARY.POSTCODE;
                txtPostName.Text = Post.T_HR_POSTDICTIONARY.POSTNAME;
            }
        }
开发者ID:JuRogn,项目名称:OA,代码行数:19,代码来源:RelationPostForm.xaml.cs

示例10: SetToolBar

        //设置工具条
        private void SetToolBar(SMT.SaaS.FrameworkUI.FormToolBar ToolBar)
        {
            ToolBar.btnRefresh.Visibility = System.Windows.Visibility.Collapsed;
            ToolBar.cbxCheckState.Visibility = System.Windows.Visibility.Collapsed;
            ToolBar.BtnView.Visibility = System.Windows.Visibility.Collapsed;
            ToolBar.btnAudit.Visibility = System.Windows.Visibility.Collapsed;
            ToolBar.txtCheckStateName.Visibility = System.Windows.Visibility.Collapsed;
            ToolBar.btnEdit.Visibility = System.Windows.Visibility.Collapsed;
            ToolBar.btnNew.Visibility = System.Windows.Visibility.Collapsed;
            ToolBar.btnDelete.Visibility = System.Windows.Visibility.Collapsed;


            CreateControl(ToolBar);
        }
开发者ID:JuRogn,项目名称:OA,代码行数:15,代码来源:TipsShow.xaml.cs

示例11: auditControl_AuditCompleted

        void auditControl_AuditCompleted(object sender, SMT.SaaS.FrameworkUI.AuditControl.AuditEventArgs e)
        {
            //if (e.Result == AuditEventArgs.AuditResult.Auditing)
            //{
            //    this.Order.EditState = "审核中";
            //}
            //else if (e.Result == AuditEventArgs.AuditResult.Successful)
            //{
            //    this.Order.EditState = "审核通过";
            //}
            //else if (e.Result == AuditEventArgs.AuditResult.Fail)
            //{
            //    this.Order.EditState = "审核不通过";

            //}
        }
开发者ID:JuRogn,项目名称:OA,代码行数:16,代码来源:Test.xaml.cs

示例12: CN

 public static string CN(SMT.FileUpLoad.Constants.FileStates _state)
 {
     switch (_state)
     {
         case SMT.FileUpLoad.Constants.FileStates.Pending:
             return "选中";
         case SMT.FileUpLoad.Constants.FileStates.Uploading:
             return "上传中..";
         case SMT.FileUpLoad.Constants.FileStates.Finished:
             return "完成";
         case SMT.FileUpLoad.Constants.FileStates.Error:
             return "错误";
         case SMT.FileUpLoad.Constants.FileStates.Deleted:
             return "删除";
         case SMT.FileUpLoad.Constants.FileStates.Removed:
             return "移除";
         case SMT.FileUpLoad.Constants.FileStates.Cancel:
             return "取消";
         default:
             return "";
     }
 }
开发者ID:JuRogn,项目名称:OA,代码行数:22,代码来源:Constants.cs

示例13: SetFlowRecordEntity

        public void SetFlowRecordEntity(SMT.SaaS.FrameworkUI.AuditControl.Flow_FlowRecord_T entity)
        {
            //string strXmlObjectSource = string.Empty;
            //strXmlObjectSource = Utility.ObjListToXml<T_HR_SALARYSYSTEM>(salarySystem, "HR");
            //Utility.SetAuditEntity(entity, "T_HR_SALARYSYSTEM", salarySystem.SALARYSYSTEMID, strXmlObjectSource);

            Dictionary<string, string> para = new Dictionary<string, string>();
            para.Add("SALARYSYSTEMNAME", salarySystem.SALARYSYSTEMNAME);
            para.Add("EntityKey", salarySystem.SALARYSYSTEMID);

            Dictionary<string, string> para2 = new Dictionary<string, string>();

            string strXmlObjectSource = string.Empty;
            string strKeyName = "SALARYSYSTEMID";
            string strKeyValue = salarySystem.SALARYSYSTEMID;
            strXmlObjectSource = Utility.ObjListToXml<T_HR_SALARYSYSTEM>(salarySystem, para, "HR", para2, strKeyName, strKeyValue);



            Dictionary<string, string> paraIDs = new Dictionary<string, string>();
            paraIDs.Add("CreateUserID", salarySystem.CREATEUSERID);
            paraIDs.Add("CreatePostID", salarySystem.OWNERPOSTID);
            paraIDs.Add("CreateDepartmentID", salarySystem.OWNERDEPARTMENTID);
            paraIDs.Add("CreateCompanyID", salarySystem.OWNERCOMPANYID);

            if (salarySystem.CHECKSTATE == Convert.ToInt32(CheckStates.UnSubmit).ToString())
            {
                Utility.SetAuditEntity(entity, "T_HR_SALARYSYSTEM", salarySystem.SALARYSYSTEMID, strXmlObjectSource, paraIDs);
            }
            else
            {
                Utility.SetAuditEntity(entity, "T_HR_SALARYSYSTEM", salarySystem.SALARYSYSTEMID, strXmlObjectSource);
            }

        }
开发者ID:JuRogn,项目名称:OA,代码行数:35,代码来源:SalarySystemNameForm.xaml.cs

示例14: IsLevelAdded

        private bool IsLevelAdded(SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY dict)
        {
            bool rslt = false;

            var ents = from p in postLevels
                       where p.POSTLEVEL == Convert.ToDecimal(dict.DICTIONARYVALUE)
                       select p;
            rslt = ents.Count() > 0;
            return rslt;
        }
开发者ID:JuRogn,项目名称:OA,代码行数:10,代码来源:SalarySystemNameForm.xaml.cs

示例15: ShowOrganization

        private void ShowOrganization(SMT.SaaS.FrameworkUI.OrgTreeItemTypes orgTreeItemType, string nameType)
        {
            LooKUP up = new LooKUP(orgTreeItemType, "你选择的条件是:" + lookTitle);
            up.Width = 700;
            up.SelectedClick += (obj, ev) =>
            {
                if (up.SelectList != null)
                {
                    string selectid = "";
                    if (SMT.SaaS.FrameworkUI.OrgTreeItemTypes.Company == orgTreeItemType)
                    {
                        if (nameType == "COMPANYNAME")
                        {
                            selectid = ((SMT.Saas.Tools.OrganizationWS.T_HR_COMPANY)(up.SelectList.FirstOrDefault().ObjectInstance)).CNAME;
                        }
                        else
                        {
                            selectid = ((SMT.Saas.Tools.OrganizationWS.T_HR_COMPANY)(up.SelectList.FirstOrDefault().ObjectInstance)).COMPANYID;
                        }
                    }
                    if (SMT.SaaS.FrameworkUI.OrgTreeItemTypes.Department == orgTreeItemType)
                    {
                        if (nameType == "DEPARTMENTNAME")
                        {
                            selectid = ((SMT.Saas.Tools.OrganizationWS.T_HR_DEPARTMENT)(up.SelectList.FirstOrDefault().ObjectInstance)).T_HR_DEPARTMENTDICTIONARY.DEPARTMENTNAME;
                        }
                        else
                        {
                            selectid = ((SMT.Saas.Tools.OrganizationWS.T_HR_DEPARTMENT)(up.SelectList.FirstOrDefault().ObjectInstance)).DEPARTMENTID;
                        }
                    }
                    if (SMT.SaaS.FrameworkUI.OrgTreeItemTypes.Post == orgTreeItemType)
                    {
                        if (nameType == "POSTNAME")
                        {
                            selectid = ((SMT.Saas.Tools.OrganizationWS.T_HR_POST)(up.SelectList.FirstOrDefault().ObjectInstance)).T_HR_POSTDICTIONARY.POSTNAME;
                        }
                        else
                        {
                            selectid = ((SMT.Saas.Tools.OrganizationWS.T_HR_POST)(up.SelectList.FirstOrDefault().ObjectInstance)).POSTID;
                        }

                    }
                    if (SMT.SaaS.FrameworkUI.OrgTreeItemTypes.Personnel == orgTreeItemType)
                    {
                        if (nameType == "OWNER"
                            || nameType == "CREATEUSERNAME"
                            || nameType == "OWNERNAME"
                            || nameType == "CURRENTEMPLOYEENAME"
                            || nameType == "CLAIMSWERENAME"
                            || nameType == "EMPLOYEENAME"
                            || nameType == "UPDATEUSERNAME"
                            )
                        {
                            selectid = ((SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE)(up.SelectList.FirstOrDefault().ObjectInstance)).EMPLOYEECNAME;
                        }
                        else
                        {
                            selectid = ((SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE)(up.SelectList.FirstOrDefault().ObjectInstance)).EMPLOYEEID;
                        }

                    }
                    txtCompareValue.Text = selectid;
                }              
            };
            up.Show();
            return;
        }
开发者ID:JuRogn,项目名称:OA,代码行数:68,代码来源:LineProperty.xaml.cs


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