public ComplainRecordForm(FormTypes type, string kpirecordComplainID) { InitializeComponent(); FormType = type; kpirecord = new T_HR_KPIRECORD(); KPIRecordComplain = new T_HR_KPIRECORDCOMPLAIN(); KPIRecordComplain.COMPLAINID = kpirecordComplainID; InitParas(); }
/// <summary> /// 获取KPI记录 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void client_CheckRecordIsSummarizeCompleted(object sender, CheckRecordIsSummarizeCompletedEventArgs e) { if (e.Error != null && e.Error.Message != "") { //异常 //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { //获取类别 bool result = e.Result; result = false; if (!result) { Complain = new T_HR_KPIRECORDCOMPLAIN(); Complain.COMPLAINID = Guid.NewGuid().ToString(); Complain.COMPLAINANTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; Complain.COMPLAINDATE = DateTime.Now; Complain.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; Complain.CREATEDATE = DateTime.Now; Complain.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID; Complain.UPDATEDATE = DateTime.Now; Complain.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString(); // 1s 冉龙军 SetToolBar(); // 1e SetComplainIsEnable(true); //获取KPI明细记录 client.GetKPIRecordByIdAsync(kpiRecordID); } else { // 1s 冉龙军 //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("PROMPT"), Utility.GetResourceStr("ALREADYSUMMARIZE", "KPIRECORDCOMPLAIN")); //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("PROMPT"), Utility.GetResourceStr("ALREADYSUMMARIZE")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), Utility.GetResourceStr("ALREADYSUMMARIZE"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); // 1e return; } } }
private void InitParas() { client = new PerformanceServiceClient(); client.KPIRecordUpdateCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(client_KPIRecordUpdateCompleted); client.GetCompainRecordByIDCompleted += new EventHandler <GetCompainRecordByIDCompletedEventArgs>(client_GetCompainRecordByIDCompleted); client.CompainRecordUpdateCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(client_CompainRecordUpdateCompleted); client.UpdateKPIRecordComplainCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(client_UpdateKPIRecordComplainCompleted); client.GetVcomplainRecordByIDCompleted += new EventHandler <GetVcomplainRecordByIDCompletedEventArgs>(client_GetVcomplainRecordByIDCompleted); client.CompainRecordUpdateOverCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(client_CompainRecordUpdateOverCompleted); if (FormType == FormTypes.New) { KPIRecordComplain = new T_HR_KPIRECORDCOMPLAIN(); KPIRecordComplain.COMPLAINID = Guid.NewGuid().ToString(); KPIRecordComplain.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString(); SetToolBar(); } else { client.GetVcomplainRecordByIDAsync(KPIRecordComplain.COMPLAINID); //client.GetCompainRecordByIDAsync(KPIRecordComplain.COMPLAINID); } }
public void CompainRecordUpdate(T_HR_KPIRECORDCOMPLAIN entity) { using (KPIRecordComplainBll bll = new KPIRecordComplainBll()) { bll.CompainRecordUpdate(entity); } }
public void UpdateKPIRecordComplain(T_HR_KPIRECORDCOMPLAIN entType) { using (KPIRecordComplainBll bll = new KPIRecordComplainBll()) { bll.UpdateKPIRecordComplain(entType); } }
private void InitParas() { client = new PerformanceServiceClient(); client.KPIRecordUpdateCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_KPIRecordUpdateCompleted); client.GetCompainRecordByIDCompleted += new EventHandler<GetCompainRecordByIDCompletedEventArgs>(client_GetCompainRecordByIDCompleted); client.CompainRecordUpdateCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_CompainRecordUpdateCompleted); client.UpdateKPIRecordComplainCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_UpdateKPIRecordComplainCompleted); client.GetVcomplainRecordByIDCompleted += new EventHandler<GetVcomplainRecordByIDCompletedEventArgs>(client_GetVcomplainRecordByIDCompleted); client.CompainRecordUpdateOverCompleted += new EventHandler<System.ComponentModel.AsyncCompletedEventArgs>(client_CompainRecordUpdateOverCompleted); if (FormType == FormTypes.New) { KPIRecordComplain = new T_HR_KPIRECORDCOMPLAIN(); KPIRecordComplain.COMPLAINID = Guid.NewGuid().ToString(); KPIRecordComplain.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString(); SetToolBar(); } else { client.GetVcomplainRecordByIDAsync(KPIRecordComplain.COMPLAINID); //client.GetCompainRecordByIDAsync(KPIRecordComplain.COMPLAINID); } }