private void InitData() { try { if (actions == FormTypes.New) { CtappObj = new T_OA_CONTRACTAPP(); CtappObj.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); this.StartTime.Text = DateTime.Now.ToShortDateString(); this.EndTime.Text = DateTime.Now.ToShortDateString(); } else { if (actions == FormTypes.Audit) { actionFlag = DataActionFlag.SubmitComplete; } cmsfc.GetContractApprovalByIdAsync(ctappID); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString()); } }