本文整理汇总了C#中SMT.SaaS.FrameworkUI.ChildWidow.ComfirmWindow类的典型用法代码示例。如果您正苦于以下问题:C# ComfirmWindow类的具体用法?C# ComfirmWindow怎么用?C# ComfirmWindow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ComfirmWindow类属于SMT.SaaS.FrameworkUI.ChildWidow命名空间,在下文中一共展示了ComfirmWindow类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ButtonDelete_Click
/// <summary>
/// 删除
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void ButtonDelete_Click(object sender, RoutedEventArgs e)
{
if (dgModelCode.SelectedItems.Count > 1)
{
ComfirmWindow.ConfirmationBox("提示信息", "只能选择一条需要删除的记录!", "确定");
return;
}
if (dgModelCode.SelectedItems.Count == 1)
{
string Result = "";
ComfirmWindow com = new ComfirmWindow();
com.OnSelectionBoxClosed += (obj, result) =>
{
pBar.Start();
FLOW_MODELDEFINE_T define = (dgModelCode.SelectedItem as FLOW_MODELDEFINE_T);
ObservableCollection<string> delete = new ObservableCollection<string>();
delete.Add(define.MODELCODE);
client.DeleteModelDefineAsync(delete);
};
com.SelectionBox("删除确定", "你确定删除选中的记录吗?", ComfirmWindow.titlename, Result);
}
else
{
ComfirmWindow.ConfirmationBox("提示信息", "请先选择一条需要删除的记录!", "确定");
}
}
示例2: btnDelete_Click
void btnDelete_Click(object sender, RoutedEventArgs e)
{
string Result = "";
if (Perm != null)
{
ComfirmWindow com = new ComfirmWindow();
com.OnSelectionBoxClosed += (obj, result) =>
{
ServiceClient.EntityMenuCustomPermDeleteAsync(Perm.ENTITYMENUCUSTOMPERMID);
};
com.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("DELETEALTER"), ComfirmWindow.titlename, Result);
}
else
{
ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTDATAALERT"), Utility.GetResourceStr("CONFIRMBUTTON"));
}
}
示例3: btnDelete_Click
void btnDelete_Click(object sender, RoutedEventArgs e)
{
if (Permission != null)
{
string Result = "";
ComfirmWindow com = new ComfirmWindow();
com.OnSelectionBoxClosed += (obj, result) =>
{
ServiceClient.SysPermissionDeleteAsync(Permission.PERMISSIONID);
};
com.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("DELETEALTER"), ComfirmWindow.titlename, Result);
}
else
{
ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), "请选择需要删除的记录",
Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
}
}
示例4: DoAction
public void DoAction(string actionType)
{
switch (actionType)
{
case "0":
refreshType = RefreshedTypes.All;
Save();
break;
case "3":
string Result = "";
ComfirmWindow com = new ComfirmWindow();
com.OnSelectionBoxClosed += (obj, result) =>
{
bool FBControl = true;
ObservableCollection<string> businesstripId = new ObservableCollection<string>();//出差申请ID
businesstripId.Add(Master_Golbal.BUSINESSTRIPID);
this.RefreshUI(RefreshedTypes.ShowProgressBar);
OaPersonOfficeClient.DeleteTravelmanagementAsync(businesstripId, FBControl);
};
com.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), "确认是否删除此条记录?", ComfirmWindow.titlename, Result);
break;
}
}
示例5: btnDelete_Click
void btnDelete_Click(object sender, RoutedEventArgs e)
{
string Result = "";
string strMsg = "";
if (SelectDepartment != null)
{
if (SelectDepartment.CHECKSTATE != Convert.ToInt32(CheckStates.UnSubmit).ToString())
{
ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("Msg_NoDeleteOrder"),
Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
return;
}
//if (!SMT.SaaS.FrameworkUI.Common.Utility.ToolBarButtonOperationPermission(SelectDepartment, "T_HR_DEPARTMENT", SMT.SaaS.FrameworkUI.OperationType.Delete, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID))
//{
// ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("NODELETEPERMISSION", SelectDepartment.T_HR_DEPARTMENTDICTIONARY.DEPARTMENTNAME),
// Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
// return;
//}
ComfirmWindow com = new ComfirmWindow();
com.OnSelectionBoxClosed += (obj, result) =>
{
client.DepartmentDeleteAsync(SelectDepartment.DEPARTMENTID, strMsg);
};
com.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("DELETEALTER"), ComfirmWindow.titlename, Result);
}
else
{
//Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "DELETE"));
ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "DELETE"),
Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
}
}
示例6: btnDelete_Click
private void btnDelete_Click(object sender, RoutedEventArgs e)
{
if (DaGr.SelectedItems.Count > 0)
{
string Result = "";
DelInfosList = new ObservableCollection<string>();
ComfirmWindow com = new ComfirmWindow();
com.OnSelectionBoxClosed += (obj, result) =>
{
string StrTip = "";
for (int i = 0; i < DaGr.SelectedItems.Count; i++)
{
T_OA_SENDDOCTYPE doctype = new T_OA_SENDDOCTYPE();
doctype =DaGr.SelectedItems[i] as T_OA_SENDDOCTYPE;
if (!(SMT.SaaS.FrameworkUI.Common.Utility.ToolBarButtonOperationPermission(doctype, "OABUMFDOCTYPE", OperationType.Delete, Common.CurrentLoginUserInfo.EmployeeID)))
{
StrTip = "您不能删除您选中的第" + (i + 1).ToString() + "条,标题为" + doctype.SENDDOCTYPE + "的信息";
ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), StrTip, Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
return;
}
string DocTypeID = "";
DocTypeID = (DaGr.SelectedItems[i] as T_OA_SENDDOCTYPE).SENDDOCTYPEID;
if (!(DelInfosList.IndexOf(DocTypeID) > -1))
{
DelInfosList.Add(DocTypeID);
}
}
if(DelInfosList.Count >0)
BumfClient.DocTypeBatchDelAsync(DelInfosList);
else
ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), "删除记录不能为空", Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
};
com.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("DELETEALTER"), ComfirmWindow.titlename, Result);
}
else
{
ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "DELETE"), Utility.GetResourceStr("CONFIRMBUTTON"));
}
}
示例7: delete
//删除薪资体系设置
public void delete(string strID)
{
string Result = "";
//提示是否删除
ComfirmWindow com = new ComfirmWindow();
ObservableCollection<string> ids = new ObservableCollection<string>();
ids.Add(strID);
com.OnSelectionBoxClosed += (obj, result) =>
{
client.SalarySystemDeleteAsync(ids);
};
com.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("DELETEALTER"), ComfirmWindow.titlename, Result);
}
示例8: btnDelete_Click
/// <summary>
/// 删除指定考勤方案应用记录(物理删除,待定)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void btnDelete_Click(object sender, RoutedEventArgs e)
{
string strID = "";
if (dgAttSolAsignList.SelectedItems == null)
{
ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "DELETE"), Utility.GetResourceStr("CONFIRMBUTTON"));
return;
}
if (dgAttSolAsignList.SelectedItems.Count == 0)
{
ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "DELETE"), Utility.GetResourceStr("CONFIRMBUTTON"));
return;
}
ObservableCollection<string> strids = new ObservableCollection<string>();
foreach (object ovj in dgAttSolAsignList.SelectedItems)
{
T_HR_NOATTENDCARDEMPLOYEES ent = ovj as T_HR_NOATTENDCARDEMPLOYEES;
if (ent != null)
{
strID = ent.NOATTENDCARDEMPLOYEESID.ToString();
if (ent.CHECKSTATE != Convert.ToInt32(CheckStates.UnSubmit).ToString())
{
ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("DELETEAUDITERROR"), Utility.GetResourceStr("CONFIRMBUTTON"));
return;
}
strids.Add(strID);
}
}
ComfirmWindow delComfirm = new ComfirmWindow();
delComfirm.OnSelectionBoxClosed += (obj, result) =>
{
clientAtt.DeleteNoAttendCardEmployeesRdAsync(strids);
};
string Result = "";
delComfirm.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("DELETEALTER"), ComfirmWindow.titlename, Result);
}
示例9: delete
public void delete(string strid)
{
string Result = "";
string strMsg = string.Empty;
//提示是否删除
ComfirmWindow com = new ComfirmWindow();
com.OnSelectionBoxClosed += (obj, result) =>
{
client.DepartmentDeleteAsync(strid, strMsg);
};
com.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("确定要删除该部门信息?"), ComfirmWindow.titlename, Result);
}
示例10: btnDelete_Click
void btnDelete_Click(object sender, RoutedEventArgs e)
{
agentsetId = new ObservableCollection<string>();
if (DaGr.SelectedItems.Count > 0)
{
for (int i = 0; i < DaGr.SelectedItems.Count; i++)
{
T_OA_AGENTSET ent = DaGr.SelectedItems[i] as T_OA_AGENTSET;
agentsetId.Add((DaGr.SelectedItems[i] as T_OA_AGENTSET).AGENTSETID);
string Result = "";
ComfirmWindow com = new ComfirmWindow();
com.OnSelectionBoxClosed += (obj, result) =>
{
SoaChannel.DeleteAgentSetAsync(agentsetId);
LoadData();
};
com.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("DELETEALTER"), ComfirmWindow.titlename, Result);
}
}
else
{
ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "DELETE"), Utility.GetResourceStr("CONFIRMBUTTON"));
}
}
示例11: BtnSet_FindClick
private void BtnSet_FindClick(object sender, RoutedEventArgs e)
{
//string SysUserID = "";
ForbidInfosList.Add(sysUser.EMPLOYEEID);
if (ForbidInfosList.Count() > 0)
{
string Result = "";
ComfirmWindow com = new ComfirmWindow();
com.OnSelectionBoxClosed += (obj, result) =>
{
if (sysUser.STATE == "1")
{
ServiceClent.SysUserBatchUpdateAsync(ForbidInfosList, Common.CurrentLoginUserInfo.SysUserID, Common.CurrentLoginUserInfo.EmployeeName, "0");
}
else
{
ServiceClent.SysUserBatchUpdateAsync(ForbidInfosList, Common.CurrentLoginUserInfo.SysUserID, Common.CurrentLoginUserInfo.EmployeeName, "1");
}
};
if (sysUser.STATE == "1")
{
com.SelectionBox("禁用用户", "确定禁用用户吗?", ComfirmWindow.titlename, Result);
}
if (sysUser.STATE == "0")
{
com.SelectionBox("启用用户", "确定启用用户吗?", ComfirmWindow.titlename, Result);
}
}
}
示例12: Save
public void Save()
{
string Result = "";
ComfirmWindow com = new ComfirmWindow();
com.OnSelectionBoxClosed += (objects, result) =>
{
RefreshUI(RefreshedTypes.ShowProgressBar);
System.Collections.ObjectModel.ObservableCollection<T_HR_SALARYITEM> lists = new System.Collections.ObjectModel.ObservableCollection<T_HR_SALARYITEM>();
foreach (var ent in SalaryItemList)
{
lists.Add(ent);
}
client.FormulaTemplateAddAsync(lists);
};
com.SelectionBox(Utility.GetResourceStr("SALARYITEM"), Utility.GetResourceStr("SALARYITEMDESC"), ComfirmWindow.confirmation, Result);
}
示例13: btnDelete_Click
void btnDelete_Click(object sender, RoutedEventArgs e)
{
//ComfirmBox deleComfir = new ComfirmBox();
//deleComfir.Title = Utility.GetResourceStr("DELETECONFIRM");
//deleComfir.MessageTextBox.Text = Utility.GetResourceStr("DELETEALTER");
//deleComfir.ButtonOK.Click += new RoutedEventHandler(ButtonOK1_Click);
//deleComfir.Show();
string Result = "";
if (DtGrid.SelectedItems.Count > 0)
{
ObservableCollection<string> ids = new ObservableCollection<string>();
foreach (T_HR_SALARYITEM tmp in DtGrid.SelectedItems)
{
ids.Add(tmp.SALARYITEMID);
}
ComfirmWindow com = new ComfirmWindow();
com.OnSelectionBoxClosed += (obj, result) =>
{
client.SalaryItemSetDeleteAsync(ids);
};
com.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("DELETEALTER"), ComfirmWindow.titlename, Result);
}
else
{
ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "DELETE"),
Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation);
//Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SELECTERROR", "DELETE"));
}
}
示例14: _ImgButtonExecuteSalaryItemSql_Click
/// <summary>
/// 2012-8-24
/// xiedx
/// 初始化按钮
/// </summary>
void _ImgButtonExecuteSalaryItemSql_Click(object sender, RoutedEventArgs e)
{
string Result = "";
ComfirmWindow com = new ComfirmWindow();
T_HR_SALARYITEM temp = new T_HR_SALARYITEM();
temp.SALARYITEMID = Guid.NewGuid().ToString();
if (string.IsNullOrWhiteSpace(companyID))
{
temp.OWNERCOMPANYID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
companyName = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyName;
}
else
{
temp.OWNERCOMPANYID = companyID;
}
temp.OWNERDEPARTMENTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID;
temp.OWNERPOSTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostID;
temp.OWNERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
temp.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
com.OnSelectionBoxClosed += (obj, result) =>
{
ObservableCollection<string> ids = new ObservableCollection<string>();
client.ExecuteSalaryItemSqlAsync(temp);
};
com.SelectionBox(Utility.GetResourceStr("CAUTION"), "该选项会初始化 "+companyName+" 的薪资,请向相关部门确认先", ComfirmWindow.titlename, Result);
}
示例15: btnDelete_Click
/// <summary>
/// 删除指定的带薪假设置(物理删除,待定)
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void btnDelete_Click(object sender, RoutedEventArgs e)
{
string strID = "";
if (dgFreeLeaveDaySetList.SelectedItems == null)
{
ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "DELETE"), Utility.GetResourceStr("CONFIRMBUTTON"));
return;
}
if (dgFreeLeaveDaySetList.SelectedItems.Count == 0)
{
ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "DELETE"), Utility.GetResourceStr("CONFIRMBUTTON"));
return;
}
foreach (object ovj in dgFreeLeaveDaySetList.SelectedItems)
{
T_HR_FREELEAVEDAYSET ent = ovj as T_HR_FREELEAVEDAYSET;
string Result = "";
if (ent != null)
{
strID = ent.FREELEAVEDAYSETID.ToString();
ComfirmWindow delComfirm = new ComfirmWindow();
delComfirm.OnSelectionBoxClosed += (obj, result) =>
{
clientAtt.RemoveFreeLeaveDaySetAsync(strID);
};
delComfirm.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("DELETEALTER"), ComfirmWindow.titlename, Result);
}
}
}