|
|
@ -299,10 +299,14 @@ namespace WeighBusiness.BL |
|
|
{ |
|
|
{ |
|
|
string insertSql = InsertUtil.GetInsertSql(TableNames.客户端产品分类, |
|
|
string insertSql = InsertUtil.GetInsertSql(TableNames.客户端产品分类, |
|
|
new string[] { "ProductCatalog_ID", "Name", "Sequence", "RowVersion" }, |
|
|
new string[] { "ProductCatalog_ID", "Name", "Sequence", "RowVersion" }, |
|
|
new string[] { catalog.ProductCatalog_ID.ToString(), catalog.ProductCatalog_ID.ToString(), catalog.Sequence.ToString(),"0" }); |
|
|
|
|
|
she.ExecuteNonQuery(insertSql, out success); |
|
|
|
|
|
if (!success) |
|
|
|
|
|
she.Rollback(); |
|
|
|
|
|
|
|
|
new string[] { catalog.ProductCatalog_ID.ToString(), catalog.ProductCatalog_ID.ToString(), catalog.Sequence == null ? "null" : catalog.Sequence.ToString(), "0" }); |
|
|
|
|
|
she.ExecuteNonQuery(insertSql, out success, out errorMessage); |
|
|
|
|
|
if (!success) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new ApplicationException(errorMessage); |
|
|
|
|
|
//she.Rollback();
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
she.Commit(); |
|
|
she.Commit(); |
|
|
|