public override SqlException Logging(int intUserCode, int intTableCode, Macro.Action aAction, string strIP) { if (intUserCode > 0) { DataTable dtDataTable = new DataTable(); DataRow drDataRow; string strSQL = "SELECT * FROM _Log WHERE 1 = 0"; try { SqlException eSqlException = pDAL.GetDataTable(ref dtDataTable, strSQL); if (eSqlException != null) { return(eSqlException); } drDataRow = dtDataTable.NewRow(); drDataRow["SolarDate"] = pSCL.GetSolarDate('/'); drDataRow["SolarTime"] = pSCL.GetSolarTime(':'); drDataRow["FK_TableCode"] = intTableCode; drDataRow["FK_ActionCode"] = aAction; drDataRow["FK_UserID"] = intUserCode; drDataRow["IP"] = strIP; dtDataTable.Rows.Add(drDataRow); eSqlException = pDAL.SetDataTable(dtDataTable, strSQL); if (eSqlException != null) { return(eSqlException); } } catch { return(null); } } return(null); }
public abstract SqlException Logging(int intUserCode, int intTableCode, Macro.Action aAction, string strIP);
public Boolean getPermission(Macro.Action aAction) { return(Permission[(int)aAction]); }
public override SqlException Logging(int intUserCode, int intTableCode, Macro.Action pAction, string strIP) { return(pBRL.Logging(intUserCode, intTableCode, pAction, strIP)); }