public EditModel(IClientService clientService, IClientTypeService clientTypeService, IIdentificationTypeService identificationTypeService) { _clientTypeService = clientTypeService; _identificationTypeService = identificationTypeService; _clientTypeService = clientTypeService; _clientService = clientService; }
public ClientTypeControl() { _clientTypeService = DiConfig.Resolve <IClientTypeService>(); InitializeComponent(); UCClientTypeGrid.DataGridDoubleClick += DataGrid_MouseDoubleClick; UCClientTypeForm.ButtonSaveClick += Button_Save; UCClientTypeForm.ButtonDeleteClick += Button_Delete; }
public ClientFormControl() { _clientService = DiConfig.Resolve <IClientService>(); _clientTypeService = DiConfig.Resolve <IClientTypeService>(); InitializeComponent(); ComboBoxClientType.ItemsSource = _clientTypeService.GetAll(); ComboBoxClientType.DisplayMemberPath = "Name"; ComboBoxClientType.SelectedValuePath = "Id"; }
public ClientTypeGridControl() { _clientTypeService = DiConfig.Resolve <IClientTypeService>(); InitializeComponent(); DataContext = new Data { ClientTypeItems = _clientTypeService.GetAll() }; ClientTypeDataGrid.MouseDoubleClick += DataGrid_MouseDoubleClick; }
/// <summary> /// 获取区域类型 /// </summary> /// <param name="ClientTypeService"></param> /// <param name="key">移除当前键,当为""或null不移除</param> /// <returns></returns> public static List<ChooseDictionary> ListAllClientTypeInfo(IClientTypeService ClientTypeService, string key) { NameValueCollection nvc = new NameValueCollection(); nvc.Add("isvalid", "1"); NameValueCollection orderby = new NameValueCollection(); orderby.Add("clienttypename", "asc"); List<ClientTypeInfo> datalist = ClientTypeService.ListAllByCondition(nvc, orderby); if (!string.IsNullOrEmpty(key)) { datalist.Remove(datalist.Where(x => x.Id.Equals(key)).SingleOrDefault()); } var dicClientType = (from slist in datalist select new ChooseDictionary { Text = slist.ClientTypeName, Value = slist.Id, ParentId = slist.ParentId }).ToList(); return dicClientType; }
public ClientTypesController(IClientTypeService clientTypeService) { _clientTypeService = clientTypeService; }
public ClientTypeController(IClientTypeService clientTypeService) { this.clientTypeService = clientTypeService; }
public ClientTypeFormControl() { _clientTypeService = DiConfig.Resolve <IClientTypeService>(); InitializeComponent(); }