private void InitData() { if (action == Action.Add) { this.sDate.SelectedDate = DateTime.Now; this.eDate.SelectedDate = DateTime.Now.AddYears(1); houseInfo = new T_OA_HOUSEINFO(); houseList = new V_HouseHireList(); hireApp = new T_OA_HIREAPP(); hireApp.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString(); } else { if (action == Action.AUDIT) { actionFlag = DataActionFlag.SubmitComplete; } client.GetHireAppByIDAsync(hireAppID); } if (checkState != ((int)CheckStates.UnSubmit).ToString() && checkState != ((int)CheckStates.UnApproved).ToString() && FromFormFlag == "0") //只有未提交和未通过才能修改 { if (action != Action.Add) { SetReadOnly(); } } else { SetToolBar(); } //if (action == Action.Return) //{ // //SetReturnBar(); // this.sDate.IsEnabled = false; // this.eDate.IsEnabled = false; // this.rbtPay.IsEnabled = false; // this.RbtShared.IsEnabled = false; // this.rbtWhole.IsEnabled = false; // this.RbtCash.IsEnabled = false; //} }