Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public abstract SqlException Logging(int intUserCode, int intTableCode, Macro.Action aAction, string strIP);
Ejemplo n.º 3
0
 public Boolean getPermission(Macro.Action aAction)
 {
     return(Permission[(int)aAction]);
 }
Ejemplo n.º 4
0
 public override SqlException Logging(int intUserCode, int intTableCode, Macro.Action pAction, string strIP)
 {
     return(pBRL.Logging(intUserCode, intTableCode, pAction, strIP));
 }