本文整理汇总了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);
}
}
示例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);
}
}
}
示例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;
}
}
示例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);
}
示例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);
}
}
示例6: UpdateEmployeeInfo
public string UpdateEmployeeInfo(SMT.HRM.CustomModel.Permission.EmployeeInfo employeeInfo)
{
using (InstantMessageBll bll = new InstantMessageBll())
{
string StrReturn = bll.UpdateEmployeeInfo(employeeInfo);
return StrReturn;
}
}
示例7: UpdateEmployeeInfo
public string UpdateEmployeeInfo(SMT.SaaS.Permission.DAL.views.EmployeeInfo employeeInfo)
{
using (InstantMessageBll bll = new InstantMessageBll())
{
string StrReturn = bll.UpdateEmployeeInfo(employeeInfo);
return StrReturn;
}
}
示例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;
}
}
}
示例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;
}
}
示例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);
}
示例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 = "审核不通过";
//}
}
示例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 "";
}
}
示例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);
}
}
示例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;
}
示例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;
}