예제 #1
0
        /// <summary>
        /// 添加调拨表
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int AddResert(Allottable model)
        {
            int i = db.Ado.ExecuteCommand($"insert into Allottable values('{model.Allottable_danhao}','{model.Allottable_diaochu}','{model.Allottable_diaoru}','{model.Allottable_people}','{model.Allottable_state}','{model.Allottable_Statess}','{model.Allottable_number}','{model.Allottable_ID}')");

            return(i);
        }
예제 #2
0
        public int AddResert(string model)
        {
            Allottable model1 = JsonConvert.DeserializeObject <Allottable>(model);

            return(_dal.AddResert(model1));
        }