|
|
@ -25,17 +25,17 @@ namespace Win.Sfs.SettleAccount |
|
|
|
|
|
|
|
|
|
|
|
[UnitOfWork(false)] |
|
|
|
public virtual bool Execute(string server,string billnum, string date) |
|
|
|
public virtual bool Execute(string billnum, string date) |
|
|
|
{ |
|
|
|
string sqlString = |
|
|
|
"DECLARE\t@return_value int\n" + |
|
|
|
"EXEC\t@return_value = [dbo].[p_wms_output_jit]\n" + |
|
|
|
"@billnum = N'{1}',\n" + |
|
|
|
"@billnum = N'{0}',\n" + |
|
|
|
"@type = 0,\n" + |
|
|
|
"@date = N'{2}'\n" + |
|
|
|
"@date = N'{1}'\n" + |
|
|
|
"SELECT\t'Return Value' = @return_value\n"; |
|
|
|
|
|
|
|
string _sql = string.Format(sqlString,server, billnum, date); |
|
|
|
string _sql = string.Format(sqlString, billnum, date); |
|
|
|
var _query = DbConnection.ExecuteScalar(_sql, null, null, 1200, System.Data.CommandType.Text); |
|
|
|
|
|
|
|
return true; |
|
|
|