void Get_VMRecordCompleted(object sender, Get_VMRecordCompletedEventArgs e) { if (e.Result != null) { conserVation = e.Result; Utility.SetComboboxSelectByText(cmbRepairName, conserVation.CONTENT, -1); SetForms(); Utility.SetComboboxSelectByText(cmbRepairName, conserVation.MAINTENANCETYPE, -1); txtContent.Text = conserVation.CONTENT; txtReMark.Text = conserVation.REMARK == null ? "" : conserVation.REMARK; txtMAINTENANCEAPPID.Text = conserVation.T_OA_MAINTENANCEAPP.MAINTENANCEAPPID; txtVehicleVIN.Text = conserVation.T_OA_MAINTENANCEAPP.T_OA_VEHICLE.VIN; dateREPAIRDATE.Text = Convert.ToDateTime(conserVation.REPAIRDATE).ToShortDateString(); dateRETRIEVEDATE.Text = Convert.ToDateTime(conserVation.RETRIEVEDATE).ToShortDateString(); txtREPAIRCOMPANY.Text = conserVation.REPAIRCOMPANY; txtTel.Text = conserVation.TEL; txtContent.Text = conserVation.CONTENT; ckbHasFee.IsChecked = conserVation.ISCHARGE == "1" ? true : false; txtFee.Text = conserVation.CHARGEMONEY.ToString(); RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); InitFBControl(); //viewApproval.XmlObject = DataObjectToXml<T_OA_MAINTENANCERECORD>.ObjListToXml(conserVation, "OA"); } }
void _VM_Get_VMRecordCompleted(object sender, Get_VMRecordCompletedEventArgs e) { if (e.Result != null) { conserVation = e.Result; Utility.SetComboboxSelectByText(cmbRepairName, conserVation.CONTENT, -1); Utility.SetComboboxSelectByText(cmbRepairName, conserVation.MAINTENANCETYPE, -1); txtContent.Text = conserVation.CONTENT; txtReMark.Text = conserVation.REMARK == null ? "" : conserVation.REMARK; txtMAINTENANCEAPPID.Text = conserVation.T_OA_MAINTENANCEAPP.MAINTENANCEAPPID; txtVehicleVIN.Text = conserVation.T_OA_MAINTENANCEAPP.T_OA_VEHICLE.VIN; dateREPAIRDATE.Text = Convert.ToDateTime(conserVation.REPAIRDATE).ToShortDateString(); dateRETRIEVEDATE.Text = Convert.ToDateTime(conserVation.RETRIEVEDATE).ToShortDateString(); txtREPAIRCOMPANY.Text = conserVation.REPAIRCOMPANY; txtTel.Text = conserVation.TEL; txtContent.Text = conserVation.CONTENT; ckbHasFee.IsChecked = conserVation.ISCHARGE == "1" ? true : false; txtFee.Text = conserVation.CHARGEMONEY.ToString(); if (actions == FormTypes.Resubmit)//重新提交 { conserVation.CHECKSTATE = (Convert.ToInt32(CheckStates.UnSubmit)).ToString(); } RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); InitFBControl(); } }