Example #1
0
 public void Delete(int docID)
 {
     string sql = "delete from assess where docID=" + SQLString.GetQuotedString(Convert.ToString(docID));
     Database db = new Database();
     db.ExecuteSQL(sql);
 }
Example #2
0
 public bool Delete(string ID)
 {
     string sql = "delete from [author] where authorID=" + SQLString.GetQuotedString(ID);
     Database db = new Database();
     if (db.ExecuteSQL(sql)>0)
     {
         return true;
     }
     return false;
 }
Example #3
0
 public bool Delete(string editor)
 {
     string sql = "delete from editor where editorID=" + SQLString.GetQuotedString(editor);
     Database db = new Database();
     if (db.ExecuteSQL(sql)>0)
     {
         return true;
     }
     else
     {
         return false;
     }
 }
Example #4
0
 public bool Update_Column(string editor, string column)
 {
     string sql = "update editor set editorColumn=" + SQLString.GetQuotedString(column) + "where editorID=" + SQLString.GetQuotedString(editor);
     Database db = new Database();
     if (db.ExecuteSQL(sql) > 0)
     {
         return true;
     }
     return false;
 }
Example #5
0
 //更新稿件版面信息
 public bool Update_board(int ID,string rank,string money,string state)
 {
     string sql = "update board set boardRank=" + SQLString.GetQuotedString(rank) + ",boardMoney=" + SQLString.GetQuotedString(money) + ",boardState=" + SQLString.GetQuotedString(state) + "where docID=" + SQLString.GetQuotedString(Convert.ToString(ID));
     Database db = new Database();
     if (db.ExecuteSQL(sql) > 0)
     {
         return true;
     }
     return false;
 }
Example #6
0
 //上传返修稿件后更改状态
 public void Update_attach(int docID, string state)
 {
     string sql = "update document set docState=" + SQLString.GetQuotedString(state) + "where docID=" + SQLString.GetQuotedString(Convert.ToString(docID));
     Database db = new Database();
     db.ExecuteSQL(sql);
 }
Example #7
0
 public void Delete(string ID)
 {
     string sql = "delete from [column] where columnID=" + SQLString.GetQuotedString(ID);
     Database db = new Database();
     db.ExecuteSQL(sql);
 }
Example #8
0
 //打开消息后改变状态
 public void Update_state(int messageID)
 {
     string sql = "update message set messageState=" + SQLString.GetQuotedString("1") + "where messageID=" + SQLString.GetQuotedString(Convert .ToString (messageID));
     Database db = new Database();
     db.ExecuteSQL(sql);
 }
Example #9
0
 //删除消息
 public void Delete_msg(int messageID)
 {
     string sql = "delete from message where messageID=" + SQLString.GetQuotedString(Convert.ToString(messageID));
     Database db = new Database();
     db.ExecuteSQL(sql);
 }