void BenefitsAdministration_GetProvisionByIdCompleted(object sender, GetProvisionByIdCompletedEventArgs e)//根据发放ID查询 { try { if (e.Error != null && !string.IsNullOrEmpty(e.Error.Message)) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } else { if (e.Result == null) { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DIDNOTFINDRELEVANT", "WELFAREPROVISIONPAGE")); return; } InfoObj = e.Result; if (actions == FormTypes.Resubmit)//重新提交 { InfoObj.CHECKSTATE = (Convert.ToInt32(CheckStates.UnSubmit)).ToString(); } this.ReleaseTime.Text = Convert.ToDateTime(InfoObj.DISTRIBUTEDATE).ToShortDateString(); //发放时间 if (InfoObj.ISWAGE == "1") //是否随薪发?0:非随工资发 1:随工资发 { RedYes.IsChecked = true; } //if (actions == FormTypes.Audit) //{ // audit.XmlObject = DataObjectToXml<T_OA_WELFAREDISTRIBUTEMASTER>.ObjListToXml(InfoObj, "OA"); //} BenefitsAdministration.GetByIdWelfarePaymentDetailsAsync(InfoObj.WELFAREDISTRIBUTEMASTERID); //InitAudit();//获取审核控件的数据 RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString()); } }
void BenefitsAdministration_GetWelfarePaymentWithdrawalByIdCompleted(object sender, GetWelfarePaymentWithdrawalByIdCompletedEventArgs e) { try { if (e.Error != null && !string.IsNullOrEmpty(e.Error.Message)) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); } else { if (e.Result == null) { //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DIDNOTFINDRELEVANT", "WELFAREPAYMENTWITHDRAWAL")); return; } InfoObj = e.Result; if (actions == FormTypes.Resubmit)//重新提交 { InfoObj.CHECKSTATE = (Convert.ToInt32(CheckStates.UnSubmit)).ToString(); } distributeMaster = InfoObj.T_OA_WELFAREDISTRIBUTEMASTER; //福利发放主表 txtReleaseName.Text = distributeMaster.WELFAREDISTRIBUTETITLE; //福利发放名 welfareInfoID = distributeMaster.WELFAREDISTRIBUTEMASTERID; txtTELL.Text = InfoObj.TEL; //联系电话 txtRemark.Text = InfoObj.REMARK; //备注 this.txtRemoveName.Text = InfoObj.OWNERNAME; //撤销人姓名 this.txtCompanyId.Text = Utility.GetCompanyName(InfoObj.OWNERCOMPANYID); //所属公司ID this.txtDepartmentId.Text = Utility.GetDepartmentName(InfoObj.OWNERDEPARTMENTID); //所属部门ID //if (actions == FormTypes.Audit) //{ // audit.XmlObject = DataObjectToXml<T_OA_WELFAREDISTRIBUTEUNDO>.ObjListToXml(InfoObj, "OA"); //} BenefitsAdministration.GetByIdWelfarePaymentDetailsAsync(welfareInfoID); //InitAudit();//获取审核控件的数据 RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString()); } }