Exemple #1
0
        /// <summary>
        /// 批量更新状态
        /// </summary>
        /// <param name="sysNos">编号集合</param>
        /// <param name="status">状态</param>
        private void BatchUpdateStatus(List <int> sysNos, ECCentral.BizEntity.ExternalSYS.ValidStatus status)
        {
            var user = ExternalDomainBroker.GetUserBySysNo(ServiceContext.Current.UserSysNo);

            //原来数据库编辑格式的值为IPPSystemAdmin\bitkoo\IPPSystemAdmin[8601]
            m_da.UpdateVendorUserStatus(sysNos, status, user.UserName);
        }
Exemple #2
0
        public void UpdateVendorUserStatus(List <int> sysNos, ECCentral.BizEntity.ExternalSYS.ValidStatus status, string editUser)
        {
            DataCommand dc = DataCommandManager.GetDataCommand("External_Update_VendorUserStatus");

            dc.SetParameterValue("@Status", LegacyEnumMapper.ConvertValidStatus(status));
            dc.SetParameterValue("@EditUser", editUser);
            dc.ReplaceParameterValue("#SysNos#", string.Join(",", sysNos));
            dc.ExecuteNonQuery();
        }