|
|
@ -96,15 +96,15 @@ namespace ICSSoft.DataProject |
|
|
|
try |
|
|
|
{ |
|
|
|
|
|
|
|
string chekksql = @"select c.EATTRIBUTE1 FROM ICSSDN a
|
|
|
|
INNER JOIN ICSInventory c on a.InvCode=c.InvCode and a.WorkPoint=c.WorkPoint |
|
|
|
WHERE a.Sequence='{2}' AND a.SDNCode='{0}' AND a.WorkPoint='{1}' and c.AmountEnable='1'";
|
|
|
|
chekksql = string.Format(chekksql, TransCode, WorkPoint, TransSequence); |
|
|
|
DataTable dta = DBHelper.SQlReturnData(chekksql, cmd); |
|
|
|
if (dta.Rows.Count > 0) |
|
|
|
{ |
|
|
|
Quantity = (decimal.Parse(Quantity) * decimal.Parse(dta.Rows[0]["EATTRIBUTE1"].ToString())).ToString(); |
|
|
|
} |
|
|
|
//string chekksql = @"select c.EATTRIBUTE1 FROM ICSSDN a
|
|
|
|
// INNER JOIN ICSInventory c on a.InvCode=c.InvCode and a.WorkPoint=c.WorkPoint
|
|
|
|
// WHERE a.Sequence='{2}' AND a.SDNCode='{0}' AND a.WorkPoint='{1}' and c.AmountEnable='1'";
|
|
|
|
//chekksql = string.Format(chekksql, TransCode, WorkPoint, TransSequence);
|
|
|
|
//DataTable dta = DBHelper.SQlReturnData(chekksql, cmd);
|
|
|
|
//if (dta.Rows.Count > 0)
|
|
|
|
//{
|
|
|
|
// Quantity = (decimal.Parse(Quantity) * decimal.Parse(dta.Rows[0]["EATTRIBUTE1"].ToString())).ToString();
|
|
|
|
//}
|
|
|
|
string sql = @"DECLARE @Status VARCHAR(10)
|
|
|
|
SELECT @Status=a.Status FROM ICSSDN a |
|
|
|
WHERE a.SDNCode='{0}' AND a.Sequence='{3}' AND a.WorkPoint='{1}' AND a.Type='1' |
|
|
|