private void SetFormDefalueValue(T_OA_VEHICLEDISPATCH vehDispatchInfo) { txtContent.Text = vehDispatchInfo.CONTENT; txtDriverID.Text = vehDispatchInfo.DRIVER; txtDriverName.Text = vehDispatchInfo.DRIVER; txtNum.Text = vehDispatchInfo.NUM; txtRoute.Text = vehDispatchInfo.ROUTE; txtTel.Text = vehDispatchInfo.TEL; dtiStartDate.DateTimeValue = Convert.ToDateTime(vehDispatchInfo.STARTTIME); dtiEndDate.DateTimeValue = Convert.ToDateTime(vehDispatchInfo.ENDTIME); if (types == FormTypes.Resubmit)//重新提交 { vehDispatchInfo.CHECKSTATE = (Convert.ToInt32(CheckStates.UnSubmit)).ToString(); } RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); //InitAudit(vupId); //加载已经派车的申请用车数据 _VM.Get_ByParentIDAsync(vupId); PersonnelServiceClient client = new PersonnelServiceClient(); client.GetEmployeeByIDAsync(vehDispatchInfo.DRIVER); client.GetEmployeeByIDCompleted += new EventHandler <GetEmployeeByIDCompletedEventArgs>(client_GetEmployeeByIDCompleted); }
private void SetFormDefalueValue(T_OA_VEHICLEDISPATCH vehDispatchInfo) { txtContent.Text = vehDispatchInfo.CONTENT; txtDriverID.Text = vehDispatchInfo.DRIVER; txtDriverName.Text = vehDispatchInfo.DRIVER; txtNum.Text = vehDispatchInfo.NUM; txtRoute.Text = vehDispatchInfo.ROUTE; txtTel.Text = vehDispatchInfo.TEL; dtiStartDate.DateTimeValue = Convert.ToDateTime(vehDispatchInfo.STARTTIME); dtiEndDate.DateTimeValue = Convert.ToDateTime(vehDispatchInfo.ENDTIME); //加载已经派车的申请用车数据 _VM.Get_ByParentIDAsync(vehDispatchInfo.VEHICLEDISPATCHID); PersonnelServiceClient client = new PersonnelServiceClient(); client.GetEmployeeByIDAsync(vehDispatchInfo.DRIVER); client.GetEmployeeByIDCompleted += new EventHandler <GetEmployeeByIDCompletedEventArgs>(client_GetEmployeeByIDCompleted); }