public SaleController() { smSaleModule = new SqlSchema(); smSaleModule.Bind("grp", SqlDbType.NVarChar, 50) .Bind("device", SqlDbType.NVarChar, 50) .Bind("mid", SqlDbType.Int) .Bind("parentid", SqlDbType.Int); smSaleProd = new SqlSchema(); smSaleProd.Bind("id", SqlDbType.Int) .Bind("mid", SqlDbType.Int) .Bind("pnum", SqlDbType.NVarChar, 50) .Bind("pv", SqlDbType.NVarChar, 50) .Bind("sort", SqlDbType.Int) .Bind("name", SqlDbType.NVarChar, 128) .Bind("lprice", SqlDbType.Money) .Bind("oprice", SqlDbType.Money) .Bind("plimit", SqlDbType.Int) .Bind("tlimit", SqlDbType.Int) .Bind("status", SqlDbType.Int) .Bind("createtime", SqlDbType.DateTime) .Bind("updatetime", SqlDbType.DateTime) .Bind("quantityleft", SqlDbType.Int) .Bind("pimg", SqlDbType.NVarChar, 4000); }