public WelfarePaymentWithdrawalControl(FormTypes action, V_WelfareProvision AppObj) { InitializeComponent(); this.actions = action; WelfareProvision = AppObj; InitEvent(); InitData(); if (action == FormTypes.New) { BenefitsAdministration.GetProvisionByIdAsync(welfareInfoID); client.GetEmployeeDetailByIDAsync(Common.CurrentLoginUserInfo.EmployeeID); //获取当期用户信息 } if (action == FormTypes.Audit || action == FormTypes.Browse) //审批,查看 { ShieldedControl(); } }
private void InitData() { try { if (actions == FormTypes.New) { InfoObj = new T_OA_WELFAREDISTRIBUTEMASTER(); InfoObj.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); } else { if (actions == FormTypes.Audit) { actionFlag = DataActionFlag.SubmitComplete; } BenefitsAdministration.GetProvisionByIdAsync(welfareInfoID); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString()); } }