1
duhe
8 天以前 16593a5ca1e6b7f84a3e1aa140407cee9b1f5ab6
WebAPI/Controllers/SCGL/Èռƻ®¹ÜÀí/Xs_SendGoodsPlanBillController.cs
@@ -332,6 +332,14 @@
                        }
                        oCN.Commit();//结束事务
                    }
                    else
                    {
                        objJsonResult.code = "0";
                        objJsonResult.count = 0;
                        objJsonResult.Message = "当前单据不存在,无法删除!";
                        objJsonResult.data = null;
                        return objJsonResult;
                    }
                }
                objJsonResult.code = "1";
                objJsonResult.count = 1;
@@ -339,50 +347,8 @@
                objJsonResult.data = null;
                return objJsonResult;
                
                //else if (DataType == 2)
                //{
                //    var NumData = HInterID.Split(',');
                //    //获取系统参数
                //    string sReturn = "";
                //    oSystemParameter.ShowBill(ref sReturn);
                //    for (int i = 0; i < NumData.Length; i++)
                //    {
                //        ds = oCN.RunProcReturn("select * from h_v_JIT_Sc_WorkBillSortBillList_Left where 1=1 and hmainid=" + NumData[i], "h_v_JIT_Sc_WorkBillSortBillList");
                //        if (ds.Tables[0].Rows.Count > 0)
                //        {
                //            if (ds.Tables[0].Rows[0]["单据状态"].ToString() != "1")
                //            {
                //                objJsonResult.code = "0";
                //                objJsonResult.count = 0;
                //                objJsonResult.Message = "当前单据不能删除!";
                //                objJsonResult.data = null;
                //                return objJsonResult;
                //            }
                //            oCN.BeginTran();//开启事务
                //            oCN.RunProc($"delete from Sc_WorkBillSortBillMain where HInterID={ NumData[i]}");
                //            oCN.Commit();//结束事务
                //        }
                //    }
                //    objJsonResult.code = "1";
                //    objJsonResult.count = 1;
                //    objJsonResult.Message = "删除成功!";
                //    objJsonResult.data = null;
                //    return objJsonResult;
                //}
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "当前单据不存在,无法删除!";
                objJsonResult.data = null;
                return objJsonResult;
            }
            catch (Exception e)
            {