stringgetSubOrderSql=$"select workorder_code,product_code,product_name,quantity_split,unit from pro_order_workorder where parent_order = '{selectRow["workorder_code"]}'";
#region 订单不能是已经被删除的
stringgetSubOrderSql=$"select workorder_code,product_code,product_name,quantity_split,unit from pro_order_workorder where parent_order = '{selectRow["workorder_code"]}' and del_flag=0";
#endregion
//string getSubOrderSql = $"select workorder_code,product_code,product_name,quantity_split,unit from pro_order_workorder where parent_order = '{selectRow["workorder_code"]}'";
stringsubOrder="";
stringsubOrder="";
//string subProductCode = "";
//string subProductCode = "";
//string subProductName = "";
//string subProductName = "";
@ -779,7 +782,9 @@ VALUES
{
{
//获取子工单的信息
//获取子工单的信息
stringgetSubOrderSql=$"select workorder_code,product_code,product_name,quantity_split,unit from pro_order_workorder where parent_order = '{orderId}'";
#region 子单不能是已经被删除的
stringgetSubOrderSql=$"select workorder_code,product_code,product_name,quantity_split,unit from pro_order_workorder where parent_order = '{orderId}' and del_flag=0";