Ejemplo n.º 1
0
        /// <summary>
        ///  更新一条数据
        /// </summary>
        public int Update(Entities.CustHistoryLog model)
        {
            SqlParameter[] parameters =
            {
                new SqlParameter("@RecID",              SqlDbType.BigInt,       8),
                new SqlParameter("@TaskID",             SqlDbType.VarChar,     20),
                new SqlParameter("@SolveUserEID",       SqlDbType.Int,          4),
                new SqlParameter("@SolveUserID",        SqlDbType.Int,          4),
                new SqlParameter("@SolveTime",          SqlDbType.DateTime),
                new SqlParameter("@Comment",            SqlDbType.NVarChar,  2000),
                new SqlParameter("@Action",             SqlDbType.Int,          4),
                new SqlParameter("@Status",             SqlDbType.Int,          4),
                new SqlParameter("@Pid",                SqlDbType.BigInt,       8),
                new SqlParameter("@ToNextSolveUserEID", SqlDbType.Int),
                new SqlParameter("@ToNextSolveUserID",  SqlDbType.Int),
                new SqlParameter("@CallRecordID",       SqlDbType.BigInt, 8)
            };
            parameters[0].Value  = model.RecID;
            parameters[1].Value  = model.TaskID;
            parameters[2].Value  = model.SolveUserEID;
            parameters[3].Value  = model.SolveUserID;
            parameters[4].Value  = model.SolveTime;
            parameters[5].Value  = model.Comment;
            parameters[6].Value  = model.Action;
            parameters[7].Value  = model.Status;
            parameters[8].Value  = model.Pid;
            parameters[9].Value  = model.ToNextSolveUserEID;
            parameters[10].Value = model.ToNextSolveUserID;
            parameters[11].Value = model.CallRecordID;

            return(SqlHelper.ExecuteNonQuery(CONNECTIONSTRINGS, CommandType.StoredProcedure, P_CUSTHISTORYLOG_UPDATE, parameters));
        }
Ejemplo n.º 2
0
        private Entities.CustHistoryLog LoadSingleCustHistoryLog(DataRow row)
        {
            Entities.CustHistoryLog model = new Entities.CustHistoryLog();

            if (row["RecID"].ToString() != "")
            {
                model.RecID = long.Parse(row["RecID"].ToString());
            }
            model.TaskID = row["TaskID"].ToString();
            if (row["SolveUserEID"].ToString() != "")
            {
                model.SolveUserEID = int.Parse(row["SolveUserEID"].ToString());
            }
            if (row["SolveUserID"].ToString() != "")
            {
                model.SolveUserID = int.Parse(row["SolveUserID"].ToString());
            }
            if (row["SolveTime"].ToString() != "")
            {
                model.SolveTime = DateTime.Parse(row["SolveTime"].ToString());
            }
            model.Comment = row["Comment"].ToString();
            if (row["Action"].ToString() != "")
            {
                model.Action = int.Parse(row["Action"].ToString());
            }
            if (row["Status"].ToString() != "")
            {
                model.Status = int.Parse(row["Status"].ToString());
            }
            if (row["Pid"].ToString() != "")
            {
                model.Pid = long.Parse(row["Pid"].ToString());
            }
            if (row["CallRecordID"].ToString() != "")
            {
                model.CallRecordID = long.Parse(row["CallRecordID"].ToString());
            }
            return(model);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public int Update(Entities.CustHistoryLog model)
 {
     return(Dal.CustHistoryLog.Instance.Update(model));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public long Insert(Entities.CustHistoryLog model)
 {
     return(Dal.CustHistoryLog.Instance.Insert(model));
 }