|
@ -910,6 +910,7 @@ namespace QMAPP.FJC.DAL.FrmPlace |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ArrayList sqllist = new ArrayList(); |
|
|
ArrayList sqllist = new ArrayList(); |
|
|
|
|
|
ArrayList sqllistMP4 = new ArrayList(); |
|
|
StringBuilder strSql = new StringBuilder(); |
|
|
StringBuilder strSql = new StringBuilder(); |
|
|
StringBuilder strFields = new StringBuilder(); |
|
|
StringBuilder strFields = new StringBuilder(); |
|
|
StringBuilder strValues = new StringBuilder(); |
|
|
StringBuilder strValues = new StringBuilder(); |
|
@ -943,7 +944,7 @@ namespace QMAPP.FJC.DAL.FrmPlace |
|
|
strSql.Append(" (" + strValues.ToString() + ")"); |
|
|
strSql.Append(" (" + strValues.ToString() + ")"); |
|
|
|
|
|
|
|
|
sqllist.Add(strSql.ToString()); |
|
|
sqllist.Add(strSql.ToString()); |
|
|
|
|
|
List<DataParameter> parameters = new List<DataParameter>(); |
|
|
foreach (EPasteDetailsCard decard in ppastecard.DetailsCardlist) |
|
|
foreach (EPasteDetailsCard decard in ppastecard.DetailsCardlist) |
|
|
{ |
|
|
{ |
|
|
int rowindex = strindex; |
|
|
int rowindex = strindex; |
|
@ -954,7 +955,19 @@ namespace QMAPP.FJC.DAL.FrmPlace |
|
|
sqllist.Add(strinsertsql.ToString()); |
|
|
sqllist.Add(strinsertsql.ToString()); |
|
|
sqllist.Add(updatesql.ToString()); |
|
|
sqllist.Add(updatesql.ToString()); |
|
|
sqllist.Add(updatesql2.ToString()); |
|
|
sqllist.Add(updatesql2.ToString()); |
|
|
|
|
|
var TABLE = new DataTable(); |
|
|
|
|
|
using (IDataSession session = AppDataFactory.CreateMainSession()) |
|
|
|
|
|
{ |
|
|
|
|
|
TABLE = session.GetTable($"select * from T_AW_PRODUCT where PID = '{decard.PRODUCT_PID}'", parameters.ToArray()); |
|
|
|
|
|
} |
|
|
|
|
|
if (TABLE.Rows.Count > 0) |
|
|
|
|
|
{ |
|
|
sqllist.Add(updatesql3.ToString()); |
|
|
sqllist.Add(updatesql3.ToString()); |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
sqllistMP4.Add(updatesql3.ToString()); |
|
|
|
|
|
} |
|
|
strindex++; |
|
|
strindex++; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -970,6 +983,14 @@ namespace QMAPP.FJC.DAL.FrmPlace |
|
|
session.ExecuteSql(sqllist[i].ToString()); |
|
|
session.ExecuteSql(sqllist[i].ToString()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
for (var i = 0; i < sqllistMP4.Count; i++) |
|
|
|
|
|
{ |
|
|
|
|
|
using (IDataSession session = AppDataFactory.CreateSession("maindbBC316_MP4")) |
|
|
|
|
|
{ |
|
|
|
|
|
session.ExecuteSql(sqllistMP4[i].ToString()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
return reindex; |
|
|
return reindex; |
|
|
|
|
|
|
|
|