DS7_HYRD
ddlucky 9 months ago
parent 2d637b6fd5
commit f8b37ed5ed

@ -1907,50 +1907,73 @@ namespace DSWeb.Areas.Account.Controllers
var IntFeeCount = Convert.ToInt16(FeeCount);
if (IntFeeCount == 0)
{
var cmdUpdate = db.GetSqlStringCommand( @"UPDATE " + enumValue.OPLB + " SET FEESTATUS=1 WHERE BSNO=@BSNO ");
if (enumValue.OPLB == "tMsWlPcHead")
{
var cmdUpdate = db.GetSqlStringCommand(
cmdUpdate = db.GetSqlStringCommand(
@"UPDATE " + enumValue.OPLB + " SET FEESTATUS=1 WHERE GID=@BSNO ");
cmdUpdate.Parameters.Clear();
db.AddInParameter(cmdUpdate, "@BSNO", DbType.String, enumValue.BSNO);
db.ExecuteNonQuery(cmdUpdate, tran);
}
else if (enumValue.OPLB == "WMS")
{
var cmdUpdate = db.GetSqlStringCommand(
cmdUpdate = db.GetSqlStringCommand(
@"UPDATE " + enumValue.OPLB + " SET FEESTATUS=1,ISLOCK2=1 WHERE GID=@BSNO ");
cmdUpdate.Parameters.Clear();
db.AddInParameter(cmdUpdate, "@BSNO", DbType.String, enumValue.BSNO);
db.ExecuteNonQuery(cmdUpdate, tran);
}
else if (enumValue.OPLB == "WMS_IN")
{
var cmdUpdate = db.GetSqlStringCommand(
cmdUpdate = db.GetSqlStringCommand(
@"UPDATE WMS SET FEESTATUS=1,ISLOCK2=1 WHERE GID=@BSNO ");
cmdUpdate.Parameters.Clear();
db.AddInParameter(cmdUpdate, "@BSNO", DbType.String, enumValue.BSNO);
db.ExecuteNonQuery(cmdUpdate, tran);
}
else if (enumValue.OPLB == "WMS_OUT")
{
var cmdUpdate = db.GetSqlStringCommand(
cmdUpdate = db.GetSqlStringCommand(
@"UPDATE " + enumValue.OPLB + " SET FEESTATUS=1 WHERE GID=@BSNO ");
cmdUpdate.Parameters.Clear();
db.AddInParameter(cmdUpdate, "@BSNO", DbType.String, enumValue.BSNO);
db.ExecuteNonQuery(cmdUpdate, tran);
}
else if (enumValue.OPLB == "OP_WMS_FEEDUI")
{
cmdUpdate = db.GetSqlStringCommand(
@"UPDATE OP_WMS_FEEDUI_STORAGE SET BillLock=1 WHERE WMSDUIID in(select MASTERNO from v_op_bs where BSNO=@BSNO) ");
}
else if (enumValue.OPLB == "OP_WMS_MOVE")
{
cmdUpdate = db.GetSqlStringCommand(
@"UPDATE OP_WMS_MOVE SET BillLock=1 WHERE WMSDOID=@BSNO ");
}
else if (enumValue.OPLB == "OP_WMS_TRANSFERGOODS")
{
cmdUpdate = db.GetSqlStringCommand(
@"UPDATE OP_WMS_TRANSFERGOODS SET FEESTATUS=1 WHERE WMSTRANSFERGOODSID=@BSNO ");
}
else if (enumValue.OPLB == "OP_WMS_IN_DO")
{
cmdUpdate = db.GetSqlStringCommand(
@"UPDATE OP_WMS_IN_DO SET FEESTATUS=1 WHERE WMSDOID=@BSNO ");
}
else if (enumValue.OPLB == "OP_WMS_OUT_DO")
{
cmdUpdate = db.GetSqlStringCommand(
@"UPDATE OP_WMS_OUT_DO SET FEESTATUS=1 WHERE WMSDOID=@BSNO ");
}
else if (enumValue.OPLB == "VW_OP_WMS_OUT_PLAN")
{
cmdUpdate = db.GetSqlStringCommand(
@"UPDATE OP_WMS_OUT_PLAN SET FEESTATUS=1 WHERE WMSPLANID=@BSNO ");
}
else if (enumValue.OPLB == "OP_WMS_IN_PLAN")
{
cmdUpdate = db.GetSqlStringCommand(
@"UPDATE OP_WMS_IN_PLAN SET FEESTATUS=1 WHERE WMSPLANID=@BSNO ");
}
else
{
var cmdUpdate = db.GetSqlStringCommand(
@"UPDATE " + enumValue.OPLB + " SET FEESTATUS=1 WHERE BSNO=@BSNO ");
cmdUpdate.Parameters.Clear();
db.AddInParameter(cmdUpdate, "@BSNO", DbType.String, enumValue.BSNO);
db.ExecuteNonQuery(cmdUpdate, tran);
}
cmdUpdate.Parameters.Clear();
db.AddInParameter(cmdUpdate, "@BSNO", DbType.String, enumValue.BSNO);
db.ExecuteNonQuery(cmdUpdate, tran);
var cmdUpdateamend = db.GetSqlStringCommand(
@"UPDATE OP_AMEND SET FEESTATUS=1 WHERE BSNO=@BSNO ");

@ -691,14 +691,14 @@ Ext.extend(Shipping.MsRptFeeStatusIndex, Ext.Panel, {
id: "btntest",
menu: [
{
text: Zi.LAN.FEESTATUSREF,
text: Zi.LAN.SaveGrid2,
//text:"保存列表",
handler: function (button, event) {
_this.onSaveGridClick(button, event);
}
}, {
text: Zi.LAN.FEESTATUSREF,
text: Zi.LAN.InitGrid,
//text:"列表初始化",
handler: function (button, event) {
_this.oninitGridClick(button, event);

Loading…
Cancel
Save