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_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) { return; } distributeMaster = e.Result; welfareInfoID = distributeMaster.WELFAREDISTRIBUTEMASTERID; txtReleaseName.Text = distributeMaster.WELFAREDISTRIBUTETITLE;//福利发放名 } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString()); } }
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()); } }