/// <summary> /// 存放商品,添加商品数量 /// </summary> /// <param name="sto"></param> /// <returns></returns> public static int InsertStore(StoreF sto) { string str = "insert into StotreF values(@NewDate,@Repertory.@TypeID.@Guardian)"; SqlParameter[] p = { new SqlParameter("@NewDate", sto.NewDate), new SqlParameter("@Repertory", sto.Repertory), new SqlParameter("@TypeID", sto.TypeID), new SqlParameter("@Guardian", sto.Guardian) }; return(DbHelp.ExecuteNonQuary(str, p)); }
public static string InsertStore(StoreF sto) { string str = ""; switch (StoreFDal.InsertStore(sto)) { case 1: str = "成功修改!"; break; default: str = "修改失败"; break; } return(str); }