#region 根据用户ID生成定单
public static int GenerateDealById(string id)
{
if(Utils.IsNumber(id))
{
//ArrayList al = new ArrayList();
//al.Add( " ");
//al.Add( " ");
// DbHelperOleDb.ExecuteSqlTran(al);
using (TransactionScope scope = new TransactionScope())
{
TX.Components.BLL.orderinfo OrderInfo = new TX.Components.BLL.orderinfo();
orderinfo _orderinfo = new orderinfo();
_orderinfo.orderinfo_dealman = 0;
_orderinfo.orderinfo_paymethod = 2;
_orderinfo.orderinfo_postdate = DateTime.Now;
_orderinfo.orderinfo_remark = " ";
_orderinfo.orderinfo_shippeddate = DateTime.Now;
_orderinfo.orderinfo_status = 1;
_orderinfo.orderinfo_total = 0;
_orderinfo.orderinfo_uid = Convert.ToInt32(id);
int n = OrderInfo.Add(_orderinfo);//取订单id