예제 #1
0
 public static bool InsertSysTableRow(SysTableRow sysTableContent, string nvGuide)
 {
     try
     {
         SqlParameter[] param = { new SqlParameter("iSysTableId", sysTableContent.nvSysTableNameEng),
                                  new SqlParameter("nvValue",     sysTableContent.nvValue),
                                  new SqlParameter("iUserId",     sysTableContent.iUserId) };
         DataSet        ds = SqlDataAccess.ExecuteDatasetSP("TSysTableRow_INS", param);
         return(true);
     }
     catch (Exception ex)
     {
         Log.ExceptionLog(ex.Message, "InsertSysTableRow");
         return(false);
     }
 }
예제 #2
0
 public static bool DeleteSysTableRow(SysTableRow sysTableContent)
 {
     try
     {
         SqlParameter[] param =
         {
             new SqlParameter("iSysTableRowId", sysTableContent.iSysTableRowId),
             new SqlParameter("iUserId", 1)
         };
         DataSet ds = SqlDataAccess.ExecuteDatasetSP("TSysTableRow_DEL", param);
         return(true);
     }
     catch (Exception ex)
     {
         Log.ExceptionLog(ex.Message, "DeleteSysTableRow");
         return(false);
     }
 }