Пример #1
0
 // required for those apps ( enterprise) which don't use security class
 public int InsertAuditData(Audit_History objAH, bool NoLoginInfo)
 {
     using (AuditDataContext Adc = _createContext())
     {
         return(Adc.InsertAuditData(objAH.Audit_User_ID, objAH.Audit_User_Name, objAH.Audit_Module_ID, objAH.Audit_Module_Name, objAH.Audit_Screen_Name,
                                    objAH.Audit_Slot, objAH.Audit_Field, objAH.Audit_Old_Vl, objAH.Audit_New_Vl, objAH.Audit_Desc, objAH.Audit_Operation_Type));
     }
 }
Пример #2
0
        internal int InsertAuditData_internal(Audit_History objAH)
        {
            using (AuditDataContext Adc = _createContext())
            {
                if (SecurityHelper.CurrentUser != null && SecurityHelper.CurrentUser.SecurityUserID != 0 && SecurityHelper.CurrentUser.UserName != null)
                {
                    objAH.Audit_User_ID   = SecurityHelper.CurrentUser.SecurityUserID;
                    objAH.Audit_User_Name = SecurityHelper.CurrentUser.DisplayName;
                }

                return(Adc.InsertAuditData(objAH.Audit_User_ID, objAH.Audit_User_Name, objAH.Audit_Module_ID, objAH.Audit_Module_Name, objAH.Audit_Screen_Name,
                                           objAH.Audit_Slot, objAH.Audit_Field, objAH.Audit_Old_Vl, objAH.Audit_New_Vl, objAH.Audit_Desc, objAH.Audit_Operation_Type));
            }
        }
Пример #3
0
        public int[] InsertAuditData(Audit_History[] objAH)
        {
            using (AuditDataContext Adc = _createContext())
            {
                int[] nReturnValue = new int[objAH.Length];

                for (int nCount = 0; nCount < objAH.Length; nCount++)
                {
                    objAH[nCount].Audit_User_ID   = SecurityHelper.CurrentUser.SecurityUserID;
                    objAH[nCount].Audit_User_Name = SecurityHelper.CurrentUser.DisplayName;

                    nReturnValue[nCount] = Adc.InsertAuditData(objAH[nCount].Audit_User_ID, objAH[nCount].Audit_User_Name, objAH[nCount].Audit_Module_ID, objAH[nCount].Audit_Module_Name, objAH[nCount].Audit_Screen_Name,
                                                               objAH[nCount].Audit_Slot, objAH[nCount].Audit_Field, objAH[nCount].Audit_Old_Vl, objAH[nCount].Audit_New_Vl, objAH[nCount].Audit_Desc, objAH[nCount].Audit_Operation_Type);
                }
                return(nReturnValue);
            }
        }