コード例 #1
0
        /// <summary>
        /// 更改用户权限
        /// </summary>
        /// <param name="CustomerSysNo"></param>
        /// <param name="AvtarImageStatus"></param>
        public void UpdateCustomerRights(CustomerRightMaintainView vm, EventHandler <RestClientEventArgs <List <CustomerRight> > > callback)
        {
            CustomerRightReq msg = new CustomerRightReq();

            msg.CustomerSysNo = vm.CustomerSysNo;
            vm.RightList.ForEach(item =>
            {
                if (item.ItemChecked)
                {
                    msg.RightList.Add(item.ConvertVM <CustomerRightVM, CustomerRight>());
                }
            });
            string relativeUrl = "/CustomerService/Customer/UpdateCustomerRights";

            restClient.Update <List <CustomerRight> >(relativeUrl, msg, callback);
        }
コード例 #2
0
 public CustomerRightMaintain()
 {
     viewModel = new CustomerRightMaintainView();
     InitializeComponent();
 }