コード例 #1
0
 public EditModel(IClientService clientService, IClientTypeService clientTypeService, IIdentificationTypeService identificationTypeService)
 {
     _clientTypeService         = clientTypeService;
     _identificationTypeService = identificationTypeService;
     _clientTypeService         = clientTypeService;
     _clientService             = clientService;
 }
コード例 #2
0
        public ClientTypeControl()
        {
            _clientTypeService = DiConfig.Resolve <IClientTypeService>();

            InitializeComponent();

            UCClientTypeGrid.DataGridDoubleClick += DataGrid_MouseDoubleClick;
            UCClientTypeForm.ButtonSaveClick     += Button_Save;
            UCClientTypeForm.ButtonDeleteClick   += Button_Delete;
        }
コード例 #3
0
        public ClientFormControl()
        {
            _clientService     = DiConfig.Resolve <IClientService>();
            _clientTypeService = DiConfig.Resolve <IClientTypeService>();

            InitializeComponent();

            ComboBoxClientType.ItemsSource       = _clientTypeService.GetAll();
            ComboBoxClientType.DisplayMemberPath = "Name";
            ComboBoxClientType.SelectedValuePath = "Id";
        }
コード例 #4
0
        public ClientTypeGridControl()
        {
            _clientTypeService = DiConfig.Resolve <IClientTypeService>();

            InitializeComponent();

            DataContext = new Data {
                ClientTypeItems = _clientTypeService.GetAll()
            };

            ClientTypeDataGrid.MouseDoubleClick += DataGrid_MouseDoubleClick;
        }
コード例 #5
0
ファイル: PublicMethod.cs プロジェクト: masicub5/sctframe
 /// <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;
 }
コード例 #6
0
 public ClientTypesController(IClientTypeService clientTypeService)
 {
     _clientTypeService = clientTypeService;
 }
コード例 #7
0
 public ClientTypeController(IClientTypeService clientTypeService)
 {
     this.clientTypeService = clientTypeService;
 }
コード例 #8
0
        public ClientTypeFormControl()
        {
            _clientTypeService = DiConfig.Resolve <IClientTypeService>();

            InitializeComponent();
        }