Beispiel #1
0
        public bool UpdateSoState(int soId, int userid, SoStateEnum state)
        {
            string strSql = string.Format("update so set soStates={0},approverId={1},approveDate='{2}' where soId={3}", (int)state, userid, DateTime.Now.ToShortDateString(), soId);

            if (db.ExecDataBySql(strSql) == 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Beispiel #2
0
 public bool UpdateSoState(int soId,int userid, SoStateEnum state)
 {
     string strSql = string.Format("update so set soStates={0},approverId={1},approveDate='{2}' where soId={3}",(int)state,userid,DateTime.Now.ToShortDateString(),soId);
        if (db.ExecDataBySql(strSql) == 1)
        {
        return true;
        }
        else
        {
        return false;
        }
 }