private void Get_VCRecordCompleted(object sender, Get_VCRecordCompletedEventArgs e) { if (e.Result != null) { conserVation = e.Result; if (conserVation != null) { txtMAINTENANCEAPPID.Text = conserVation.CONSERVATIONRECORDID; Utility.SetComboboxSelectByText(cmbConserVationName, conserVation.CONSERVATYPE, -1); dateREPAIRDATE.Text = Convert.ToDateTime(conserVation.REPAIRDATE).ToShortDateString(); dateRETRIEVEDATE.Text = Convert.ToDateTime(conserVation.RETRIEVEDATE).ToShortDateString(); txtTel.Text = conserVation.TEL; txtContent.Text = conserVation.CONTENT; txtReMark.Text = conserVation.REMARK == null ? "" : conserVation.REMARK; txtCONSERVATIONRANGE.Text = conserVation.CONSERVATIONRANGE.ToString(); if (conserVation.T_OA_CONSERVATION != null) { txtVehicleVIN.Text = conserVation.T_OA_CONSERVATION.T_OA_VEHICLE.VIN; } txtFee.Text = conserVation.CHARGEMONEY.ToString(); ckbHasFee.IsChecked = conserVation.ISCHARGE == "1" ? true : false; } if (types == FormTypes.Resubmit)//重新提交 { conserVation.CHECKSTATE = (Convert.ToInt32(CheckStates.UnSubmit)).ToString(); } RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); InitFBControl(); } }