/// <summary> /// 添加调拨物品 /// </summary> /// <param name="model"></param> /// <returns></returns> public int AddAllotedit(Allotedit model) { int i = db.Ado.ExecuteCommand($"insert into Allotedit values('{model.Allotedit_iiid}','{model.Allotedit_bianma}','{model.Allotedit_name}','{model.Allotedit_kucun}','{model.Allotedit_number}','{model.Allotedit_shenpi}','{model.Allotedit_yichuku}','{model.Allotedit_zhouzhuank}','{model.Allotedit_danwei}','{model.Allotedit_danjia}','{model.Allotedit_image}')"); return(i); }
public int AddAllotedit(string model) { Allotedit model1 = JsonConvert.DeserializeObject <Allotedit>(model); return(_dal.AddAllotedit(model1)); }