|
|
@ -1907,50 +1907,73 @@ namespace DSWeb.Areas.Account.Controllers
|
|
|
|
var IntFeeCount = Convert.ToInt16(FeeCount);
|
|
|
|
var IntFeeCount = Convert.ToInt16(FeeCount);
|
|
|
|
if (IntFeeCount == 0)
|
|
|
|
if (IntFeeCount == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
var cmdUpdate = db.GetSqlStringCommand( @"UPDATE " + enumValue.OPLB + " SET FEESTATUS=1 WHERE BSNO=@BSNO ");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (enumValue.OPLB == "tMsWlPcHead")
|
|
|
|
if (enumValue.OPLB == "tMsWlPcHead")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var cmdUpdate = db.GetSqlStringCommand(
|
|
|
|
cmdUpdate = db.GetSqlStringCommand(
|
|
|
|
@"UPDATE " + enumValue.OPLB + " SET FEESTATUS=1 WHERE GID=@BSNO ");
|
|
|
|
@"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")
|
|
|
|
else if (enumValue.OPLB == "WMS")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var cmdUpdate = db.GetSqlStringCommand(
|
|
|
|
cmdUpdate = db.GetSqlStringCommand(
|
|
|
|
@"UPDATE " + enumValue.OPLB + " SET FEESTATUS=1,ISLOCK2=1 WHERE GID=@BSNO ");
|
|
|
|
@"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")
|
|
|
|
else if (enumValue.OPLB == "WMS_IN")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var cmdUpdate = db.GetSqlStringCommand(
|
|
|
|
cmdUpdate = db.GetSqlStringCommand(
|
|
|
|
@"UPDATE WMS SET FEESTATUS=1,ISLOCK2=1 WHERE GID=@BSNO ");
|
|
|
|
@"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")
|
|
|
|
else if (enumValue.OPLB == "WMS_OUT")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var cmdUpdate = db.GetSqlStringCommand(
|
|
|
|
cmdUpdate = db.GetSqlStringCommand(
|
|
|
|
@"UPDATE " + enumValue.OPLB + " SET FEESTATUS=1 WHERE GID=@BSNO ");
|
|
|
|
@"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
|
|
|
|
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(
|
|
|
|
var cmdUpdateamend = db.GetSqlStringCommand(
|
|
|
|
@"UPDATE OP_AMEND SET FEESTATUS=1 WHERE BSNO=@BSNO ");
|
|
|
|
@"UPDATE OP_AMEND SET FEESTATUS=1 WHERE BSNO=@BSNO ");
|
|
|
|