Beispiel #1
0
 /// <summary>
 /// 取界面控件所编辑值
 /// </summary>
 void SetValue()
 {
     roleArgs.ListFunctionId.Clear();
     roleArgs.RoleName = txtRoleName.Text;
     for (int i = 0; i < cklstRoleFunction.CheckedIndices.Count; i++)
     {
         InnerUser uChecked = (InnerUser)(this.cklstRoleFunction.CheckedItems[i]);
         roleArgs.ListFunctionId.Add(uChecked.GetFieldID());
     }
 }
Beispiel #2
0
        /// <summary>
        /// 为View层参数赋值
        /// </summary>
        private void SetValue()
        {
            userArgs.ListRoleId.Clear();
            userArgs.ListRoleName.Clear();
            userArgs.UserNo         = txtUserNo.Text;
            userArgs.UserName       = txtUserName.Text;
            userArgs.DeptId         = rtlkDept.DisplayValue;
            userArgs.DoctorDescript = cboDoctorDescript.EditValue.ToString();

            for (int i = 0; i < cklstUserRole.Items.Count; i++)
            {
                if (cklstUserRole.Items[i].CheckState == CheckState.Checked)
                {
                    InnerUser uChecked = (InnerUser)(this.cklstUserRole.Items[i].Value);
                    userArgs.ListRoleId.Add(uChecked.GetFieldID());
                    userArgs.ListRoleName.Add(uChecked.GetFieldName());
                }
            }
        }