コード例 #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);
 }
コード例 #2
0
 public abstract SqlException Logging(int intUserCode, int intTableCode, Macro.Action aAction, string strIP);
コード例 #3
0
ファイル: Table.cs プロジェクト: bkhandzad/ATSAM_SERVER
 public Boolean getPermission(Macro.Action aAction)
 {
     return(Permission[(int)aAction]);
 }
コード例 #4
0
 public override SqlException Logging(int intUserCode, int intTableCode, Macro.Action pAction, string strIP)
 {
     return(pBRL.Logging(intUserCode, intTableCode, pAction, strIP));
 }